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 Platform Validation service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Platform Validation service API instance.
+ */
+ public PlatformValidationManager 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.platformvalidation")
+ .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 PlatformValidationManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /**
+ * Gets the resource collection API of OperationStatus.
+ *
+ * @return Resource collection API of OperationStatus.
+ */
+ public OperationStatus operationStatus() {
+ if (this.operationStatus == null) {
+ this.operationStatus = new OperationStatusImpl(clientObject.getOperationStatus(), this);
+ }
+ return operationStatus;
+ }
+
+ /**
+ * 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 CloudValidations. It manages CloudValidation.
+ *
+ * @return Resource collection API of CloudValidations.
+ */
+ public CloudValidations cloudValidations() {
+ if (this.cloudValidations == null) {
+ this.cloudValidations = new CloudValidationsImpl(clientObject.getCloudValidations(), this);
+ }
+ return cloudValidations;
+ }
+
+ /**
+ * Gets the resource collection API of ValidationExecutionPlans. It manages ValidationExecutionPlan.
+ *
+ * @return Resource collection API of ValidationExecutionPlans.
+ */
+ public ValidationExecutionPlans validationExecutionPlans() {
+ if (this.validationExecutionPlans == null) {
+ this.validationExecutionPlans
+ = new ValidationExecutionPlansImpl(clientObject.getValidationExecutionPlans(), this);
+ }
+ return validationExecutionPlans;
+ }
+
+ /**
+ * Gets the resource collection API of ExecutionPlanRuns. It manages ExecutionPlanRun.
+ *
+ * @return Resource collection API of ExecutionPlanRuns.
+ */
+ public ExecutionPlanRuns executionPlanRuns() {
+ if (this.executionPlanRuns == null) {
+ this.executionPlanRuns = new ExecutionPlanRunsImpl(clientObject.getExecutionPlanRuns(), this);
+ }
+ return executionPlanRuns;
+ }
+
+ /**
+ * Gets the resource collection API of ValidationTestRuns. It manages ValidationTestRun.
+ *
+ * @return Resource collection API of ValidationTestRuns.
+ */
+ public ValidationTestRuns validationTestRuns() {
+ if (this.validationTestRuns == null) {
+ this.validationTestRuns = new ValidationTestRunsImpl(clientObject.getValidationTestRuns(), this);
+ }
+ return validationTestRuns;
+ }
+
+ /**
+ * Gets the resource collection API of ValidationTests.
+ *
+ * @return Resource collection API of ValidationTests.
+ */
+ public ValidationTests validationTests() {
+ if (this.validationTests == null) {
+ this.validationTests = new ValidationTestsImpl(clientObject.getValidationTests(), this);
+ }
+ return validationTests;
+ }
+
+ /**
+ * Gets the resource collection API of ValidationTestVersions.
+ *
+ * @return Resource collection API of ValidationTestVersions.
+ */
+ public ValidationTestVersions validationTestVersions() {
+ if (this.validationTestVersions == null) {
+ this.validationTestVersions
+ = new ValidationTestVersionsImpl(clientObject.getValidationTestVersions(), this);
+ }
+ return validationTestVersions;
+ }
+
+ /**
+ * Gets the resource collection API of ValidationTestCategories.
+ *
+ * @return Resource collection API of ValidationTestCategories.
+ */
+ public ValidationTestCategories validationTestCategories() {
+ if (this.validationTestCategories == null) {
+ this.validationTestCategories
+ = new ValidationTestCategoriesImpl(clientObject.getValidationTestCategories(), this);
+ }
+ return validationTestCategories;
+ }
+
+ /**
+ * Gets wrapped service client PlatformValidationManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client PlatformValidationManagementClient.
+ */
+ public PlatformValidationManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/CloudValidationsClient.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/CloudValidationsClient.java
new file mode 100644
index 000000000000..f30d22dd7d81
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/CloudValidationsClient.java
@@ -0,0 +1,273 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.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.platformvalidation.fluent.models.CloudValidationInner;
+import com.azure.resourcemanager.platformvalidation.models.CloudValidationUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in CloudValidationsClient.
+ */
+public interface CloudValidationsClient {
+ /**
+ * Get a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloud validation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String cloudValidationName,
+ Context context);
+
+ /**
+ * Get a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 cloud validation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CloudValidationInner getByResourceGroup(String resourceGroupName, String cloudValidationName);
+
+ /**
+ * Create or update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloud Validation Resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CloudValidationInner> beginCreateOrUpdate(String resourceGroupName,
+ String cloudValidationName, CloudValidationInner resource);
+
+ /**
+ * Create or update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloud Validation Resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CloudValidationInner> beginCreateOrUpdate(String resourceGroupName,
+ String cloudValidationName, CloudValidationInner resource, Context context);
+
+ /**
+ * Create or update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloud Validation Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CloudValidationInner createOrUpdate(String resourceGroupName, String cloudValidationName,
+ CloudValidationInner resource);
+
+ /**
+ * Create or update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloud Validation Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CloudValidationInner createOrUpdate(String resourceGroupName, String cloudValidationName,
+ CloudValidationInner resource, Context context);
+
+ /**
+ * Update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of cloud Validation Resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CloudValidationInner> beginUpdate(String resourceGroupName,
+ String cloudValidationName, CloudValidationUpdate properties);
+
+ /**
+ * Update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of cloud Validation Resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CloudValidationInner> beginUpdate(String resourceGroupName,
+ String cloudValidationName, CloudValidationUpdate properties, Context context);
+
+ /**
+ * Update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Validation Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CloudValidationInner update(String resourceGroupName, String cloudValidationName, CloudValidationUpdate properties);
+
+ /**
+ * Update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Validation Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CloudValidationInner update(String resourceGroupName, String cloudValidationName, CloudValidationUpdate properties,
+ Context context);
+
+ /**
+ * Delete a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String cloudValidationName);
+
+ /**
+ * Delete a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String cloudValidationName,
+ Context context);
+
+ /**
+ * Delete a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 cloudValidationName);
+
+ /**
+ * Delete a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String cloudValidationName, Context context);
+
+ /**
+ * List cloud validations by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a CloudValidation list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List cloud validations by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param filter The OData filter expression to apply to the list operation.
+ * @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 CloudValidation list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, String filter, Context context);
+
+ /**
+ * List cloud validations by subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a CloudValidation list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List cloud validations by subscription.
+ *
+ * @param filter The OData filter expression to apply to the list operation.
+ * @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 CloudValidation list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, Context context);
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/ExecutionPlanRunsClient.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/ExecutionPlanRunsClient.java
new file mode 100644
index 000000000000..76ff83d5643d
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/ExecutionPlanRunsClient.java
@@ -0,0 +1,221 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.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.platformvalidation.fluent.models.ExecutionPlanRunInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ExecutionPlanRunsClient.
+ */
+public interface ExecutionPlanRunsClient {
+ /**
+ * Get a Validation test execution plan run details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 Validation test execution plan run details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, Context context);
+
+ /**
+ * Get a Validation test execution plan run details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Validation test execution plan run details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ExecutionPlanRunInner get(String resourceGroupName, String cloudValidationName, String validationExecutionPlanName,
+ String executionPlanRunName);
+
+ /**
+ * Create or update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 the properties of the execution plan run.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ExecutionPlanRunInner> beginCreateOrUpdate(String resourceGroupName,
+ String cloudValidationName, String validationExecutionPlanName, String executionPlanRunName,
+ ExecutionPlanRunInner resource);
+
+ /**
+ * Create or update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 the properties of the execution plan run.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ExecutionPlanRunInner> beginCreateOrUpdate(String resourceGroupName,
+ String cloudValidationName, String validationExecutionPlanName, String executionPlanRunName,
+ ExecutionPlanRunInner resource, Context context);
+
+ /**
+ * Create or update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 properties of the execution plan run.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ExecutionPlanRunInner createOrUpdate(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, ExecutionPlanRunInner resource);
+
+ /**
+ * Create or update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 properties of the execution plan run.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ExecutionPlanRunInner createOrUpdate(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, ExecutionPlanRunInner resource,
+ Context context);
+
+ /**
+ * Delete a validation test execution plan run resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName);
+
+ /**
+ * Delete a validation test execution plan run resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, Context context);
+
+ /**
+ * Delete a validation test execution plan run resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 cloudValidationName, String validationExecutionPlanName,
+ String executionPlanRunName);
+
+ /**
+ * Delete a validation test execution plan run resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String cloudValidationName, String validationExecutionPlanName,
+ String executionPlanRunName, Context context);
+
+ /**
+ * List Validation test execution plan runs for an execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 ExecutionPlanRun list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByExecutionPlan(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName);
+
+ /**
+ * List Validation test execution plan runs for an execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param filter The OData filter expression to apply to the list operation.
+ * @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 ExecutionPlanRun list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByExecutionPlan(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String filter, Context context);
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/OperationStatusClient.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/OperationStatusClient.java
new file mode 100644
index 000000000000..9bbc611de2e0
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/OperationStatusClient.java
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.platformvalidation.fluent.models.OperationStatusResultInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in OperationStatusClient.
+ */
+public interface OperationStatusClient {
+ /**
+ * Returns the current status of an async operation.
+ *
+ * @param location The name of the Azure region.
+ * @param operationId The ID of an ongoing async operation.
+ * @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 current status of an async operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String location, String operationId, Context context);
+
+ /**
+ * Returns the current status of an async operation.
+ *
+ * @param location The name of the Azure region.
+ * @param operationId The ID of an ongoing async 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 current status of an async operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusResultInner get(String location, String operationId);
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/OperationsClient.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/OperationsClient.java
new file mode 100644
index 000000000000..58451a30ce03
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/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.platformvalidation.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.platformvalidation.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/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/PlatformValidationManagementClient.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/PlatformValidationManagementClient.java
new file mode 100644
index 000000000000..9607ed51cb6f
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/PlatformValidationManagementClient.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.platformvalidation.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/**
+ * The interface for PlatformValidationManagementClient class.
+ */
+public interface PlatformValidationManagementClient {
+ /**
+ * 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 OperationStatusClient object to access its operations.
+ *
+ * @return the OperationStatusClient object.
+ */
+ OperationStatusClient getOperationStatus();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the CloudValidationsClient object to access its operations.
+ *
+ * @return the CloudValidationsClient object.
+ */
+ CloudValidationsClient getCloudValidations();
+
+ /**
+ * Gets the ValidationExecutionPlansClient object to access its operations.
+ *
+ * @return the ValidationExecutionPlansClient object.
+ */
+ ValidationExecutionPlansClient getValidationExecutionPlans();
+
+ /**
+ * Gets the ExecutionPlanRunsClient object to access its operations.
+ *
+ * @return the ExecutionPlanRunsClient object.
+ */
+ ExecutionPlanRunsClient getExecutionPlanRuns();
+
+ /**
+ * Gets the ValidationTestRunsClient object to access its operations.
+ *
+ * @return the ValidationTestRunsClient object.
+ */
+ ValidationTestRunsClient getValidationTestRuns();
+
+ /**
+ * Gets the ValidationTestsClient object to access its operations.
+ *
+ * @return the ValidationTestsClient object.
+ */
+ ValidationTestsClient getValidationTests();
+
+ /**
+ * Gets the ValidationTestVersionsClient object to access its operations.
+ *
+ * @return the ValidationTestVersionsClient object.
+ */
+ ValidationTestVersionsClient getValidationTestVersions();
+
+ /**
+ * Gets the ValidationTestCategoriesClient object to access its operations.
+ *
+ * @return the ValidationTestCategoriesClient object.
+ */
+ ValidationTestCategoriesClient getValidationTestCategories();
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/ValidationExecutionPlansClient.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/ValidationExecutionPlansClient.java
new file mode 100644
index 000000000000..888bdfc7a88b
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/ValidationExecutionPlansClient.java
@@ -0,0 +1,278 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.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.platformvalidation.fluent.models.ValidationExecutionPlanInner;
+import com.azure.resourcemanager.platformvalidation.models.ValidationExecutionPlanUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in ValidationExecutionPlansClient.
+ */
+public interface ValidationExecutionPlansClient {
+ /**
+ * Get a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @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 validation test execution plan along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, Context context);
+
+ /**
+ * Get a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 validation test execution plan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidationExecutionPlanInner get(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName);
+
+ /**
+ * Create or update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @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 validation Test Execution Plan.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ValidationExecutionPlanInner> beginCreateOrUpdate(
+ String resourceGroupName, String cloudValidationName, String validationExecutionPlanName,
+ ValidationExecutionPlanInner resource);
+
+ /**
+ * Create or update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @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 validation Test Execution Plan.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ValidationExecutionPlanInner> beginCreateOrUpdate(
+ String resourceGroupName, String cloudValidationName, String validationExecutionPlanName,
+ ValidationExecutionPlanInner resource, Context context);
+
+ /**
+ * Create or update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @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 validation Test Execution Plan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidationExecutionPlanInner createOrUpdate(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, ValidationExecutionPlanInner resource);
+
+ /**
+ * Create or update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @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 validation Test Execution Plan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidationExecutionPlanInner createOrUpdate(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, ValidationExecutionPlanInner resource, Context context);
+
+ /**
+ * Update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of validation Test Execution Plan.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ValidationExecutionPlanInner> beginUpdate(
+ String resourceGroupName, String cloudValidationName, String validationExecutionPlanName,
+ ValidationExecutionPlanUpdate properties);
+
+ /**
+ * Update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of validation Test Execution Plan.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ValidationExecutionPlanInner> beginUpdate(
+ String resourceGroupName, String cloudValidationName, String validationExecutionPlanName,
+ ValidationExecutionPlanUpdate properties, Context context);
+
+ /**
+ * Update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return validation Test Execution Plan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidationExecutionPlanInner update(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, ValidationExecutionPlanUpdate properties);
+
+ /**
+ * Update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return validation Test Execution Plan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidationExecutionPlanInner update(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, ValidationExecutionPlanUpdate properties, Context context);
+
+ /**
+ * Delete a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName);
+
+ /**
+ * Delete a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, Context context);
+
+ /**
+ * Delete a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 cloudValidationName, String validationExecutionPlanName);
+
+ /**
+ * Delete a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String cloudValidationName, String validationExecutionPlanName,
+ Context context);
+
+ /**
+ * List validation test execution plans by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 ValidationExecutionPlan list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName,
+ String cloudValidationName);
+
+ /**
+ * List validation test execution plans by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param filter The OData filter expression to apply to the list operation.
+ * @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 ValidationExecutionPlan list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName,
+ String cloudValidationName, String filter, Context context);
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/ValidationTestCategoriesClient.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/ValidationTestCategoriesClient.java
new file mode 100644
index 000000000000..691fdb60cb44
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/ValidationTestCategoriesClient.java
@@ -0,0 +1,65 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.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.platformvalidation.fluent.models.ValidationTestCategoryInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ValidationTestCategoriesClient.
+ */
+public interface ValidationTestCategoriesClient {
+ /**
+ * Get a validation test category catalog entry.
+ *
+ * @param validationTestCategoryName The name of the ValidationTestCategory.
+ * @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 validation test category catalog entry along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String validationTestCategoryName, Context context);
+
+ /**
+ * Get a validation test category catalog entry.
+ *
+ * @param validationTestCategoryName The name of the ValidationTestCategory.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 validation test category catalog entry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidationTestCategoryInner get(String validationTestCategoryName);
+
+ /**
+ * List validation test category catalog entries for a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ValidationTestCategory list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List validation test category catalog entries for a subscription.
+ *
+ * @param filter Filter expression used to constrain the returned items.
+ * @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 ValidationTestCategory list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, Context context);
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/ValidationTestRunsClient.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/ValidationTestRunsClient.java
new file mode 100644
index 000000000000..1a2109b742a0
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/ValidationTestRunsClient.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.platformvalidation.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.platformvalidation.fluent.models.ValidationTestRunInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ValidationTestRunsClient.
+ */
+public interface ValidationTestRunsClient {
+ /**
+ * Get a validation test run details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @param validationTestRunName The name of the ValidationTestRun.
+ * @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 validation test run details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, String validationTestRunName, Context context);
+
+ /**
+ * Get a validation test run details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @param validationTestRunName The name of the ValidationTestRun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 validation test run details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidationTestRunInner get(String resourceGroupName, String cloudValidationName, String validationExecutionPlanName,
+ String executionPlanRunName, String validationTestRunName);
+
+ /**
+ * Create or update a validation test run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @param validationTestRunName The name of the ValidationTestRun.
+ * @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 validation Test Run represents execution instance(s) of a
+ * Validation Test instance under execution plan.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ValidationTestRunInner> beginCreateOrUpdate(String resourceGroupName,
+ String cloudValidationName, String validationExecutionPlanName, String executionPlanRunName,
+ String validationTestRunName, ValidationTestRunInner resource);
+
+ /**
+ * Create or update a validation test run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @param validationTestRunName The name of the ValidationTestRun.
+ * @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 validation Test Run represents execution instance(s) of a
+ * Validation Test instance under execution plan.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ValidationTestRunInner> beginCreateOrUpdate(String resourceGroupName,
+ String cloudValidationName, String validationExecutionPlanName, String executionPlanRunName,
+ String validationTestRunName, ValidationTestRunInner resource, Context context);
+
+ /**
+ * Create or update a validation test run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @param validationTestRunName The name of the ValidationTestRun.
+ * @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 validation Test Run represents execution instance(s) of a Validation Test instance under execution plan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidationTestRunInner createOrUpdate(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, String validationTestRunName,
+ ValidationTestRunInner resource);
+
+ /**
+ * Create or update a validation test run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @param validationTestRunName The name of the ValidationTestRun.
+ * @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 validation Test Run represents execution instance(s) of a Validation Test instance under execution plan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidationTestRunInner createOrUpdate(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, String validationTestRunName,
+ ValidationTestRunInner resource, Context context);
+
+ /**
+ * Delete a validation test run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @param validationTestRunName The name of the ValidationTestRun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, String validationTestRunName);
+
+ /**
+ * Delete a validation test run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @param validationTestRunName The name of the ValidationTestRun.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, String validationTestRunName, Context context);
+
+ /**
+ * Delete a validation test run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @param validationTestRunName The name of the ValidationTestRun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 cloudValidationName, String validationExecutionPlanName,
+ String executionPlanRunName, String validationTestRunName);
+
+ /**
+ * Delete a validation test run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @param validationTestRunName The name of the ValidationTestRun.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String cloudValidationName, String validationExecutionPlanName,
+ String executionPlanRunName, String validationTestRunName, Context context);
+
+ /**
+ * List validation test runs for an execution plan run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 ValidationTestRun list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByExecutionPlanRun(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName);
+
+ /**
+ * List validation test runs for an execution plan run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 ValidationTestRun list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByExecutionPlanRun(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, Context context);
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/ValidationTestVersionsClient.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/ValidationTestVersionsClient.java
new file mode 100644
index 000000000000..3e4f6b156629
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/ValidationTestVersionsClient.java
@@ -0,0 +1,70 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.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.platformvalidation.fluent.models.ValidationTestVersionInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ValidationTestVersionsClient.
+ */
+public interface ValidationTestVersionsClient {
+ /**
+ * Get a validation test version catalog entry.
+ *
+ * @param validationTestName The name of the ValidationTest.
+ * @param version The name of the ValidationTestVersion.
+ * @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 validation test version catalog entry along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String validationTestName, String version, Context context);
+
+ /**
+ * Get a validation test version catalog entry.
+ *
+ * @param validationTestName The name of the ValidationTest.
+ * @param version The name of the ValidationTestVersion.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 validation test version catalog entry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidationTestVersionInner get(String validationTestName, String version);
+
+ /**
+ * List validation test version catalog entries.
+ *
+ * @param validationTestName The name of the ValidationTest.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 ValidationTestVersion list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String validationTestName);
+
+ /**
+ * List validation test version catalog entries.
+ *
+ * @param validationTestName The name of the ValidationTest.
+ * @param filter Filter expression used to constrain the returned items.
+ * @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 ValidationTestVersion list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String validationTestName, String filter, Context context);
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/ValidationTestsClient.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/ValidationTestsClient.java
new file mode 100644
index 000000000000..a687ece878ab
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/ValidationTestsClient.java
@@ -0,0 +1,65 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.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.platformvalidation.fluent.models.ValidationTestInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ValidationTestsClient.
+ */
+public interface ValidationTestsClient {
+ /**
+ * Get a validation test catalog entry.
+ *
+ * @param validationTestName The name of the ValidationTest.
+ * @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 validation test catalog entry along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String validationTestName, Context context);
+
+ /**
+ * Get a validation test catalog entry.
+ *
+ * @param validationTestName The name of the ValidationTest.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 validation test catalog entry.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidationTestInner get(String validationTestName);
+
+ /**
+ * List validation test catalog entries for a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ValidationTest list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List validation test catalog entries for a subscription.
+ *
+ * @param filter Filter expression used to constrain the returned items.
+ * @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 ValidationTest list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, Context context);
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/CloudValidationInner.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/CloudValidationInner.java
new file mode 100644
index 000000000000..8039bf499166
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/CloudValidationInner.java
@@ -0,0 +1,181 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.platformvalidation.models.CloudValidationProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * Cloud Validation Resource.
+ */
+@Fluent
+public final class CloudValidationInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private CloudValidationProperties 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 CloudValidationInner class.
+ */
+ public CloudValidationInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public CloudValidationProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the CloudValidationInner object itself.
+ */
+ public CloudValidationInner withProperties(CloudValidationProperties 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;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public CloudValidationInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public CloudValidationInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CloudValidationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CloudValidationInner 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 CloudValidationInner.
+ */
+ public static CloudValidationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CloudValidationInner deserializedCloudValidationInner = new CloudValidationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedCloudValidationInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedCloudValidationInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedCloudValidationInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedCloudValidationInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedCloudValidationInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedCloudValidationInner.properties = CloudValidationProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedCloudValidationInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCloudValidationInner;
+ });
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/ExecutionPlanRunInner.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/ExecutionPlanRunInner.java
new file mode 100644
index 000000000000..e3dfa550e629
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/ExecutionPlanRunInner.java
@@ -0,0 +1,155 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.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.platformvalidation.models.ExecutionPlanRunProperties;
+import java.io.IOException;
+
+/**
+ * The properties of the execution plan run.
+ */
+@Fluent
+public final class ExecutionPlanRunInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ExecutionPlanRunProperties 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 ExecutionPlanRunInner class.
+ */
+ public ExecutionPlanRunInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public ExecutionPlanRunProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the ExecutionPlanRunInner object itself.
+ */
+ public ExecutionPlanRunInner withProperties(ExecutionPlanRunProperties 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;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ExecutionPlanRunInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ExecutionPlanRunInner 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 ExecutionPlanRunInner.
+ */
+ public static ExecutionPlanRunInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ExecutionPlanRunInner deserializedExecutionPlanRunInner = new ExecutionPlanRunInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedExecutionPlanRunInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedExecutionPlanRunInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedExecutionPlanRunInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedExecutionPlanRunInner.properties = ExecutionPlanRunProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedExecutionPlanRunInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedExecutionPlanRunInner;
+ });
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/OperationInner.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..2e4f93a239e0
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/OperationInner.java
@@ -0,0 +1,150 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.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.platformvalidation.models.ActionType;
+import com.azure.resourcemanager.platformvalidation.models.OperationDisplay;
+import com.azure.resourcemanager.platformvalidation.models.Origin;
+import java.io.IOException;
+
+/**
+ * REST API Operation
+ *
+ * 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;
+ }
+
+ /**
+ * {@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/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/OperationStatusResultInner.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/OperationStatusResultInner.java
new file mode 100644
index 000000000000..cb92a37c0671
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/OperationStatusResultInner.java
@@ -0,0 +1,222 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.exception.ManagementError;
+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;
+import java.time.format.DateTimeFormatter;
+import java.util.List;
+
+/**
+ * The current status of an async operation.
+ */
+@Immutable
+public final class OperationStatusResultInner implements JsonSerializable {
+ /*
+ * Fully qualified ID for the async operation.
+ */
+ private String id;
+
+ /*
+ * Name of the async operation.
+ */
+ private String name;
+
+ /*
+ * Operation status.
+ */
+ private String status;
+
+ /*
+ * Percent of the operation that is complete.
+ */
+ private Double percentComplete;
+
+ /*
+ * The start time of the operation.
+ */
+ private OffsetDateTime startTime;
+
+ /*
+ * The end time of the operation.
+ */
+ private OffsetDateTime endTime;
+
+ /*
+ * The operations list.
+ */
+ private List operations;
+
+ /*
+ * If present, details of the operation error.
+ */
+ private ManagementError error;
+
+ /*
+ * Fully qualified ID of the resource against which the original async operation was started.
+ */
+ private String resourceId;
+
+ /**
+ * Creates an instance of OperationStatusResultInner class.
+ */
+ private OperationStatusResultInner() {
+ }
+
+ /**
+ * Get the id property: Fully qualified ID for the async operation.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the name property: Name of the async operation.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the status property: Operation status.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Get the percentComplete property: Percent of the operation that is complete.
+ *
+ * @return the percentComplete value.
+ */
+ public Double percentComplete() {
+ return this.percentComplete;
+ }
+
+ /**
+ * Get the startTime property: The start time of the operation.
+ *
+ * @return the startTime value.
+ */
+ public OffsetDateTime startTime() {
+ return this.startTime;
+ }
+
+ /**
+ * Get the endTime property: The end time of the operation.
+ *
+ * @return the endTime value.
+ */
+ public OffsetDateTime endTime() {
+ return this.endTime;
+ }
+
+ /**
+ * Get the operations property: The operations list.
+ *
+ * @return the operations value.
+ */
+ public List operations() {
+ return this.operations;
+ }
+
+ /**
+ * Get the error property: If present, details of the operation error.
+ *
+ * @return the error value.
+ */
+ public ManagementError error() {
+ return this.error;
+ }
+
+ /**
+ * Get the resourceId property: Fully qualified ID of the resource against which the original async operation was
+ * started.
+ *
+ * @return the resourceId value.
+ */
+ public String resourceId() {
+ return this.resourceId;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("status", this.status);
+ jsonWriter.writeStringField("id", this.id);
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeNumberField("percentComplete", this.percentComplete);
+ jsonWriter.writeStringField("startTime",
+ this.startTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.startTime));
+ jsonWriter.writeStringField("endTime",
+ this.endTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.endTime));
+ jsonWriter.writeArrayField("operations", this.operations, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("error", this.error);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationStatusResultInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationStatusResultInner 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 OperationStatusResultInner.
+ */
+ public static OperationStatusResultInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationStatusResultInner deserializedOperationStatusResultInner = new OperationStatusResultInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("status".equals(fieldName)) {
+ deserializedOperationStatusResultInner.status = reader.getString();
+ } else if ("id".equals(fieldName)) {
+ deserializedOperationStatusResultInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedOperationStatusResultInner.name = reader.getString();
+ } else if ("percentComplete".equals(fieldName)) {
+ deserializedOperationStatusResultInner.percentComplete = reader.getNullable(JsonReader::getDouble);
+ } else if ("startTime".equals(fieldName)) {
+ deserializedOperationStatusResultInner.startTime = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("endTime".equals(fieldName)) {
+ deserializedOperationStatusResultInner.endTime = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("operations".equals(fieldName)) {
+ List operations
+ = reader.readArray(reader1 -> OperationStatusResultInner.fromJson(reader1));
+ deserializedOperationStatusResultInner.operations = operations;
+ } else if ("error".equals(fieldName)) {
+ deserializedOperationStatusResultInner.error = ManagementError.fromJson(reader);
+ } else if ("resourceId".equals(fieldName)) {
+ deserializedOperationStatusResultInner.resourceId = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationStatusResultInner;
+ });
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/ValidationExecutionPlanInner.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/ValidationExecutionPlanInner.java
new file mode 100644
index 000000000000..81f1c52df919
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/ValidationExecutionPlanInner.java
@@ -0,0 +1,182 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.platformvalidation.models.ValidationExecutionPlanProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * Validation Test Execution Plan.
+ */
+@Fluent
+public final class ValidationExecutionPlanInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ValidationExecutionPlanProperties 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 ValidationExecutionPlanInner class.
+ */
+ public ValidationExecutionPlanInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public ValidationExecutionPlanProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the ValidationExecutionPlanInner object itself.
+ */
+ public ValidationExecutionPlanInner withProperties(ValidationExecutionPlanProperties 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;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ValidationExecutionPlanInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ValidationExecutionPlanInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ValidationExecutionPlanInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ValidationExecutionPlanInner 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 ValidationExecutionPlanInner.
+ */
+ public static ValidationExecutionPlanInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ValidationExecutionPlanInner deserializedValidationExecutionPlanInner = new ValidationExecutionPlanInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedValidationExecutionPlanInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedValidationExecutionPlanInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedValidationExecutionPlanInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedValidationExecutionPlanInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedValidationExecutionPlanInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedValidationExecutionPlanInner.properties
+ = ValidationExecutionPlanProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedValidationExecutionPlanInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedValidationExecutionPlanInner;
+ });
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/ValidationTestCategoryInner.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/ValidationTestCategoryInner.java
new file mode 100644
index 000000000000..1a07003c8505
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/ValidationTestCategoryInner.java
@@ -0,0 +1,145 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.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.platformvalidation.models.ValidationTestCategoryProperties;
+import java.io.IOException;
+
+/**
+ * Validation test category catalog entry.
+ */
+@Immutable
+public final class ValidationTestCategoryInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ValidationTestCategoryProperties 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 ValidationTestCategoryInner class.
+ */
+ private ValidationTestCategoryInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public ValidationTestCategoryProperties 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;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ValidationTestCategoryInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ValidationTestCategoryInner 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 ValidationTestCategoryInner.
+ */
+ public static ValidationTestCategoryInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ValidationTestCategoryInner deserializedValidationTestCategoryInner = new ValidationTestCategoryInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedValidationTestCategoryInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedValidationTestCategoryInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedValidationTestCategoryInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedValidationTestCategoryInner.properties
+ = ValidationTestCategoryProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedValidationTestCategoryInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedValidationTestCategoryInner;
+ });
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/ValidationTestInner.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/ValidationTestInner.java
new file mode 100644
index 000000000000..a653d1e0bae7
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/ValidationTestInner.java
@@ -0,0 +1,144 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.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.platformvalidation.models.ValidationTestProperties;
+import java.io.IOException;
+
+/**
+ * Validation test catalog entry.
+ */
+@Immutable
+public final class ValidationTestInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ValidationTestProperties 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 ValidationTestInner class.
+ */
+ private ValidationTestInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public ValidationTestProperties 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;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ValidationTestInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ValidationTestInner 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 ValidationTestInner.
+ */
+ public static ValidationTestInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ValidationTestInner deserializedValidationTestInner = new ValidationTestInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedValidationTestInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedValidationTestInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedValidationTestInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedValidationTestInner.properties = ValidationTestProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedValidationTestInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedValidationTestInner;
+ });
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/ValidationTestRunInner.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/ValidationTestRunInner.java
new file mode 100644
index 000000000000..bcfb9850125e
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/ValidationTestRunInner.java
@@ -0,0 +1,155 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.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.platformvalidation.models.ValidationTestRunProperties;
+import java.io.IOException;
+
+/**
+ * Validation Test Run represents execution instance(s) of a Validation Test instance under execution plan.
+ */
+@Fluent
+public final class ValidationTestRunInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ValidationTestRunProperties 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 ValidationTestRunInner class.
+ */
+ public ValidationTestRunInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public ValidationTestRunProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the ValidationTestRunInner object itself.
+ */
+ public ValidationTestRunInner withProperties(ValidationTestRunProperties 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;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ValidationTestRunInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ValidationTestRunInner 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 ValidationTestRunInner.
+ */
+ public static ValidationTestRunInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ValidationTestRunInner deserializedValidationTestRunInner = new ValidationTestRunInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedValidationTestRunInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedValidationTestRunInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedValidationTestRunInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedValidationTestRunInner.properties = ValidationTestRunProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedValidationTestRunInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedValidationTestRunInner;
+ });
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/ValidationTestVersionInner.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/ValidationTestVersionInner.java
new file mode 100644
index 000000000000..c627d99c801a
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/ValidationTestVersionInner.java
@@ -0,0 +1,145 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.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.platformvalidation.models.ValidationTestVersionProperties;
+import java.io.IOException;
+
+/**
+ * Validation test version catalog entry.
+ */
+@Immutable
+public final class ValidationTestVersionInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ValidationTestVersionProperties 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 ValidationTestVersionInner class.
+ */
+ private ValidationTestVersionInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public ValidationTestVersionProperties 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;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ValidationTestVersionInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ValidationTestVersionInner 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 ValidationTestVersionInner.
+ */
+ public static ValidationTestVersionInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ValidationTestVersionInner deserializedValidationTestVersionInner = new ValidationTestVersionInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedValidationTestVersionInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedValidationTestVersionInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedValidationTestVersionInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedValidationTestVersionInner.properties
+ = ValidationTestVersionProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedValidationTestVersionInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedValidationTestVersionInner;
+ });
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/package-info.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/models/package-info.java
new file mode 100644
index 000000000000..2b2add15d08c
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/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 PlatformValidation.
+ * Microsoft.PlatformValidation Resource Provider management API.
+ */
+package com.azure.resourcemanager.platformvalidation.fluent.models;
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/package-info.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/fluent/package-info.java
new file mode 100644
index 000000000000..30fffbbd6df4
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/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 PlatformValidation.
+ * Microsoft.PlatformValidation Resource Provider management API.
+ */
+package com.azure.resourcemanager.platformvalidation.fluent;
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/CloudValidationImpl.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/CloudValidationImpl.java
new file mode 100644
index 000000000000..b848cef1c456
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/CloudValidationImpl.java
@@ -0,0 +1,184 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.platformvalidation.fluent.models.CloudValidationInner;
+import com.azure.resourcemanager.platformvalidation.models.CloudValidation;
+import com.azure.resourcemanager.platformvalidation.models.CloudValidationProperties;
+import com.azure.resourcemanager.platformvalidation.models.CloudValidationUpdate;
+import com.azure.resourcemanager.platformvalidation.models.CloudValidationUpdateProperties;
+import java.util.Collections;
+import java.util.Map;
+
+public final class CloudValidationImpl implements CloudValidation, CloudValidation.Definition, CloudValidation.Update {
+ private CloudValidationInner innerObject;
+
+ private final com.azure.resourcemanager.platformvalidation.PlatformValidationManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public CloudValidationProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public CloudValidationInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.platformvalidation.PlatformValidationManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String cloudValidationName;
+
+ private CloudValidationUpdate updateProperties;
+
+ public CloudValidationImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public CloudValidation create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getCloudValidations()
+ .createOrUpdate(resourceGroupName, cloudValidationName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public CloudValidation create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getCloudValidations()
+ .createOrUpdate(resourceGroupName, cloudValidationName, this.innerModel(), context);
+ return this;
+ }
+
+ CloudValidationImpl(String name,
+ com.azure.resourcemanager.platformvalidation.PlatformValidationManager serviceManager) {
+ this.innerObject = new CloudValidationInner();
+ this.serviceManager = serviceManager;
+ this.cloudValidationName = name;
+ }
+
+ public CloudValidationImpl update() {
+ this.updateProperties = new CloudValidationUpdate();
+ return this;
+ }
+
+ public CloudValidation apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getCloudValidations()
+ .update(resourceGroupName, cloudValidationName, updateProperties, Context.NONE);
+ return this;
+ }
+
+ public CloudValidation apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getCloudValidations()
+ .update(resourceGroupName, cloudValidationName, updateProperties, context);
+ return this;
+ }
+
+ CloudValidationImpl(CloudValidationInner innerObject,
+ com.azure.resourcemanager.platformvalidation.PlatformValidationManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.cloudValidationName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "cloudValidations");
+ }
+
+ public CloudValidation refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getCloudValidations()
+ .getByResourceGroupWithResponse(resourceGroupName, cloudValidationName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public CloudValidation refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getCloudValidations()
+ .getByResourceGroupWithResponse(resourceGroupName, cloudValidationName, context)
+ .getValue();
+ return this;
+ }
+
+ public CloudValidationImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public CloudValidationImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public CloudValidationImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateProperties.withTags(tags);
+ return this;
+ }
+ }
+
+ public CloudValidationImpl withProperties(CloudValidationProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+
+ public CloudValidationImpl withProperties(CloudValidationUpdateProperties properties) {
+ this.updateProperties.withProperties(properties);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel() == null || this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/CloudValidationsClientImpl.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/CloudValidationsClientImpl.java
new file mode 100644
index 000000000000..26e3a8522d22
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/CloudValidationsClientImpl.java
@@ -0,0 +1,1159 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.platformvalidation.fluent.CloudValidationsClient;
+import com.azure.resourcemanager.platformvalidation.fluent.models.CloudValidationInner;
+import com.azure.resourcemanager.platformvalidation.implementation.models.CloudValidationListResult;
+import com.azure.resourcemanager.platformvalidation.models.CloudValidationUpdate;
+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 CloudValidationsClient.
+ */
+public final class CloudValidationsClientImpl implements CloudValidationsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final CloudValidationsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final PlatformValidationManagementClientImpl client;
+
+ /**
+ * Initializes an instance of CloudValidationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ CloudValidationsClientImpl(PlatformValidationManagementClientImpl client) {
+ this.service
+ = RestProxy.create(CloudValidationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for PlatformValidationManagementClientCloudValidations to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "PlatformValidationManagementClientCloudValidations")
+ public interface CloudValidationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PlatformValidation/cloudValidations/{cloudValidationName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cloudValidationName") String cloudValidationName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PlatformValidation/cloudValidations/{cloudValidationName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cloudValidationName") String cloudValidationName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PlatformValidation/cloudValidations/{cloudValidationName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cloudValidationName") String cloudValidationName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") CloudValidationInner resource, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PlatformValidation/cloudValidations/{cloudValidationName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createOrUpdateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cloudValidationName") String cloudValidationName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") CloudValidationInner resource, Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PlatformValidation/cloudValidations/{cloudValidationName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cloudValidationName") String cloudValidationName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") CloudValidationUpdate properties, Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PlatformValidation/cloudValidations/{cloudValidationName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response updateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cloudValidationName") String cloudValidationName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") CloudValidationUpdate properties, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PlatformValidation/cloudValidations/{cloudValidationName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cloudValidationName") String cloudValidationName, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PlatformValidation/cloudValidations/{cloudValidationName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cloudValidationName") String cloudValidationName, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PlatformValidation/cloudValidations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("$filter") String filter,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PlatformValidation/cloudValidations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("$filter") String filter,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.PlatformValidation/cloudValidations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.PlatformValidation/cloudValidations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listBySubscriptionNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloud validation along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String cloudValidationName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloud validation on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName, String cloudValidationName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, cloudValidationName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloud validation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(String resourceGroupName,
+ String cloudValidationName, Context context) {
+ final String accept = "application/json";
+ return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, accept, context);
+ }
+
+ /**
+ * Get a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloud validation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CloudValidationInner getByResourceGroup(String resourceGroupName, String cloudValidationName) {
+ return getByResourceGroupWithResponse(resourceGroupName, cloudValidationName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create or update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloud Validation Resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String cloudValidationName, CloudValidationInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, contentType, accept, resource,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloud Validation Resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String cloudValidationName,
+ CloudValidationInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, contentType, accept, resource,
+ Context.NONE);
+ }
+
+ /**
+ * Create or update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloud Validation Resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String cloudValidationName,
+ CloudValidationInner resource, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, contentType, accept, resource,
+ context);
+ }
+
+ /**
+ * Create or update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloud Validation Resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, CloudValidationInner>
+ beginCreateOrUpdateAsync(String resourceGroupName, String cloudValidationName, CloudValidationInner resource) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, cloudValidationName, resource);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ CloudValidationInner.class, CloudValidationInner.class, this.client.getContext());
+ }
+
+ /**
+ * Create or update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloud Validation Resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, CloudValidationInner>
+ beginCreateOrUpdate(String resourceGroupName, String cloudValidationName, CloudValidationInner resource) {
+ Response response = createOrUpdateWithResponse(resourceGroupName, cloudValidationName, resource);
+ return this.client.getLroResult(response,
+ CloudValidationInner.class, CloudValidationInner.class, Context.NONE);
+ }
+
+ /**
+ * Create or update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloud Validation Resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, CloudValidationInner> beginCreateOrUpdate(
+ String resourceGroupName, String cloudValidationName, CloudValidationInner resource, Context context) {
+ Response response
+ = createOrUpdateWithResponse(resourceGroupName, cloudValidationName, resource, context);
+ return this.client.getLroResult(response,
+ CloudValidationInner.class, CloudValidationInner.class, context);
+ }
+
+ /**
+ * Create or update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloud Validation Resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String cloudValidationName,
+ CloudValidationInner resource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, cloudValidationName, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloud Validation Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CloudValidationInner createOrUpdate(String resourceGroupName, String cloudValidationName,
+ CloudValidationInner resource) {
+ return beginCreateOrUpdate(resourceGroupName, cloudValidationName, resource).getFinalResult();
+ }
+
+ /**
+ * Create or update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloud Validation Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CloudValidationInner createOrUpdate(String resourceGroupName, String cloudValidationName,
+ CloudValidationInner resource, Context context) {
+ return beginCreateOrUpdate(resourceGroupName, cloudValidationName, resource, context).getFinalResult();
+ }
+
+ /**
+ * Update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Validation Resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName,
+ String cloudValidationName, CloudValidationUpdate properties) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, contentType, accept,
+ properties, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Validation Resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String cloudValidationName,
+ CloudValidationUpdate properties) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, contentType, accept, properties,
+ Context.NONE);
+ }
+
+ /**
+ * Update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Validation Resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String cloudValidationName,
+ CloudValidationUpdate properties, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, contentType, accept, properties,
+ context);
+ }
+
+ /**
+ * Update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of cloud Validation Resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, CloudValidationInner>
+ beginUpdateAsync(String resourceGroupName, String cloudValidationName, CloudValidationUpdate properties) {
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, cloudValidationName, properties);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ CloudValidationInner.class, CloudValidationInner.class, this.client.getContext());
+ }
+
+ /**
+ * Update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of cloud Validation Resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, CloudValidationInner> beginUpdate(String resourceGroupName,
+ String cloudValidationName, CloudValidationUpdate properties) {
+ Response response = updateWithResponse(resourceGroupName, cloudValidationName, properties);
+ return this.client.getLroResult(response,
+ CloudValidationInner.class, CloudValidationInner.class, Context.NONE);
+ }
+
+ /**
+ * Update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of cloud Validation Resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, CloudValidationInner> beginUpdate(String resourceGroupName,
+ String cloudValidationName, CloudValidationUpdate properties, Context context) {
+ Response response = updateWithResponse(resourceGroupName, cloudValidationName, properties, context);
+ return this.client.getLroResult(response,
+ CloudValidationInner.class, CloudValidationInner.class, context);
+ }
+
+ /**
+ * Update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Validation Resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String cloudValidationName,
+ CloudValidationUpdate properties) {
+ return beginUpdateAsync(resourceGroupName, cloudValidationName, properties).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Validation Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CloudValidationInner update(String resourceGroupName, String cloudValidationName,
+ CloudValidationUpdate properties) {
+ return beginUpdate(resourceGroupName, cloudValidationName, properties).getFinalResult();
+ }
+
+ /**
+ * Update a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Validation Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CloudValidationInner update(String resourceGroupName, String cloudValidationName,
+ CloudValidationUpdate properties, Context context) {
+ return beginUpdate(resourceGroupName, cloudValidationName, properties, context).getFinalResult();
+ }
+
+ /**
+ * Delete a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloudValidationName) {
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String cloudValidationName) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, Context.NONE);
+ }
+
+ /**
+ * Delete a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String cloudValidationName,
+ Context context) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, context);
+ }
+
+ /**
+ * Delete a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String cloudValidationName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, cloudValidationName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String cloudValidationName) {
+ Response response = deleteWithResponse(resourceGroupName, cloudValidationName);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Delete a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String cloudValidationName,
+ Context context) {
+ Response response = deleteWithResponse(resourceGroupName, cloudValidationName, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloudValidationName) {
+ return beginDeleteAsync(resourceGroupName, cloudValidationName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @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 cloudValidationName) {
+ beginDelete(resourceGroupName, cloudValidationName).getFinalResult();
+ }
+
+ /**
+ * Delete a cloud validation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String cloudValidationName, Context context) {
+ beginDelete(resourceGroupName, cloudValidationName, context).getFinalResult();
+ }
+
+ /**
+ * List cloud validations by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param filter The OData filter expression to apply to the list 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 CloudValidation list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName,
+ String filter) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, filter, 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 cloud validations by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param filter The OData filter expression to apply to the list 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 CloudValidation list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName, String filter) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, filter),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List cloud validations by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a CloudValidation list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ final String filter = null;
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, filter),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List cloud validations by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param filter The OData filter expression to apply to the list 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 CloudValidation list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, String filter) {
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, filter, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List cloud validations by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param filter The OData filter expression to apply to the list operation.
+ * @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 CloudValidation list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, String filter,
+ Context context) {
+ final String accept = "application/json";
+ Response res = service.listByResourceGroupSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, filter, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List cloud validations by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a CloudValidation list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ final String filter = null;
+ return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, filter),
+ nextLink -> listByResourceGroupNextSinglePage(nextLink));
+ }
+
+ /**
+ * List cloud validations by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param filter The OData filter expression to apply to the list operation.
+ * @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 CloudValidation list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName, String filter,
+ Context context) {
+ return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, filter, context),
+ nextLink -> listByResourceGroupNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * List cloud validations by subscription.
+ *
+ * @param filter The OData filter expression to apply to the list 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 CloudValidation list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String filter) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), filter, 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 cloud validations by subscription.
+ *
+ * @param filter The OData filter expression to apply to the list 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 CloudValidation list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String filter) {
+ return new PagedFlux<>(() -> listSinglePageAsync(filter),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List cloud validations by subscription.
+ *
+ * @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 CloudValidation list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ final String filter = null;
+ return new PagedFlux<>(() -> listSinglePageAsync(filter),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List cloud validations by subscription.
+ *
+ * @param filter The OData filter expression to apply to the list 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 CloudValidation list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(String filter) {
+ final String accept = "application/json";
+ Response res = service.listSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), filter, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List cloud validations by subscription.
+ *
+ * @param filter The OData filter expression to apply to the list operation.
+ * @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 CloudValidation list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(String filter, Context context) {
+ final String accept = "application/json";
+ Response res = service.listSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), filter, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List cloud validations by subscription.
+ *
+ * @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 CloudValidation list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ final String filter = null;
+ return new PagedIterable<>(() -> listSinglePage(filter),
+ nextLink -> listBySubscriptionNextSinglePage(nextLink));
+ }
+
+ /**
+ * List cloud validations by subscription.
+ *
+ * @param filter The OData filter expression to apply to the list operation.
+ * @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 CloudValidation list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String filter, Context context) {
+ return new PagedIterable<>(() -> listSinglePage(filter, context),
+ nextLink -> listBySubscriptionNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a CloudValidation list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a CloudValidation list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a CloudValidation list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * 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 CloudValidation list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a CloudValidation list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listBySubscriptionNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a CloudValidation list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listBySubscriptionNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/CloudValidationsImpl.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/CloudValidationsImpl.java
new file mode 100644
index 000000000000..c0250cc01b47
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/CloudValidationsImpl.java
@@ -0,0 +1,144 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.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.platformvalidation.fluent.CloudValidationsClient;
+import com.azure.resourcemanager.platformvalidation.fluent.models.CloudValidationInner;
+import com.azure.resourcemanager.platformvalidation.models.CloudValidation;
+import com.azure.resourcemanager.platformvalidation.models.CloudValidations;
+
+public final class CloudValidationsImpl implements CloudValidations {
+ private static final ClientLogger LOGGER = new ClientLogger(CloudValidationsImpl.class);
+
+ private final CloudValidationsClient innerClient;
+
+ private final com.azure.resourcemanager.platformvalidation.PlatformValidationManager serviceManager;
+
+ public CloudValidationsImpl(CloudValidationsClient innerClient,
+ com.azure.resourcemanager.platformvalidation.PlatformValidationManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getByResourceGroupWithResponse(String resourceGroupName,
+ String cloudValidationName, Context context) {
+ Response inner
+ = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, cloudValidationName, context);
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new CloudValidationImpl(inner.getValue(), this.manager()));
+ }
+
+ public CloudValidation getByResourceGroup(String resourceGroupName, String cloudValidationName) {
+ CloudValidationInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, cloudValidationName);
+ if (inner != null) {
+ return new CloudValidationImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void deleteByResourceGroup(String resourceGroupName, String cloudValidationName) {
+ this.serviceClient().delete(resourceGroupName, cloudValidationName);
+ }
+
+ public void delete(String resourceGroupName, String cloudValidationName, Context context) {
+ this.serviceClient().delete(resourceGroupName, cloudValidationName, context);
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new CloudValidationImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName, String filter,
+ Context context) {
+ PagedIterable inner
+ = this.serviceClient().listByResourceGroup(resourceGroupName, filter, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new CloudValidationImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new CloudValidationImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String filter, Context context) {
+ PagedIterable inner = this.serviceClient().list(filter, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new CloudValidationImpl(inner1, this.manager()));
+ }
+
+ public CloudValidation 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 cloudValidationName = ResourceManagerUtils.getValueFromIdByName(id, "cloudValidations");
+ if (cloudValidationName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'cloudValidations'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, cloudValidationName, 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 cloudValidationName = ResourceManagerUtils.getValueFromIdByName(id, "cloudValidations");
+ if (cloudValidationName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'cloudValidations'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, cloudValidationName, 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 cloudValidationName = ResourceManagerUtils.getValueFromIdByName(id, "cloudValidations");
+ if (cloudValidationName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'cloudValidations'.", id)));
+ }
+ this.delete(resourceGroupName, cloudValidationName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String cloudValidationName = ResourceManagerUtils.getValueFromIdByName(id, "cloudValidations");
+ if (cloudValidationName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'cloudValidations'.", id)));
+ }
+ this.delete(resourceGroupName, cloudValidationName, context);
+ }
+
+ private CloudValidationsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.platformvalidation.PlatformValidationManager manager() {
+ return this.serviceManager;
+ }
+
+ public CloudValidationImpl define(String name) {
+ return new CloudValidationImpl(name, this.manager());
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/ExecutionPlanRunImpl.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/ExecutionPlanRunImpl.java
new file mode 100644
index 000000000000..8342e5c34d66
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/ExecutionPlanRunImpl.java
@@ -0,0 +1,143 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.platformvalidation.fluent.models.ExecutionPlanRunInner;
+import com.azure.resourcemanager.platformvalidation.models.ExecutionPlanRun;
+import com.azure.resourcemanager.platformvalidation.models.ExecutionPlanRunProperties;
+
+public final class ExecutionPlanRunImpl
+ implements ExecutionPlanRun, ExecutionPlanRun.Definition, ExecutionPlanRun.Update {
+ private ExecutionPlanRunInner innerObject;
+
+ private final com.azure.resourcemanager.platformvalidation.PlatformValidationManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public ExecutionPlanRunProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public ExecutionPlanRunInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.platformvalidation.PlatformValidationManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String cloudValidationName;
+
+ private String validationExecutionPlanName;
+
+ private String executionPlanRunName;
+
+ public ExecutionPlanRunImpl withExistingValidationExecutionPlan(String resourceGroupName,
+ String cloudValidationName, String validationExecutionPlanName) {
+ this.resourceGroupName = resourceGroupName;
+ this.cloudValidationName = cloudValidationName;
+ this.validationExecutionPlanName = validationExecutionPlanName;
+ return this;
+ }
+
+ public ExecutionPlanRun create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getExecutionPlanRuns()
+ .createOrUpdate(resourceGroupName, cloudValidationName, validationExecutionPlanName, executionPlanRunName,
+ this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public ExecutionPlanRun create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getExecutionPlanRuns()
+ .createOrUpdate(resourceGroupName, cloudValidationName, validationExecutionPlanName, executionPlanRunName,
+ this.innerModel(), context);
+ return this;
+ }
+
+ ExecutionPlanRunImpl(String name,
+ com.azure.resourcemanager.platformvalidation.PlatformValidationManager serviceManager) {
+ this.innerObject = new ExecutionPlanRunInner();
+ this.serviceManager = serviceManager;
+ this.executionPlanRunName = name;
+ }
+
+ public ExecutionPlanRunImpl update() {
+ return this;
+ }
+
+ public ExecutionPlanRun apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getExecutionPlanRuns()
+ .createOrUpdate(resourceGroupName, cloudValidationName, validationExecutionPlanName, executionPlanRunName,
+ this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public ExecutionPlanRun apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getExecutionPlanRuns()
+ .createOrUpdate(resourceGroupName, cloudValidationName, validationExecutionPlanName, executionPlanRunName,
+ this.innerModel(), context);
+ return this;
+ }
+
+ ExecutionPlanRunImpl(ExecutionPlanRunInner innerObject,
+ com.azure.resourcemanager.platformvalidation.PlatformValidationManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.cloudValidationName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "cloudValidations");
+ this.validationExecutionPlanName
+ = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "validationExecutionPlans");
+ this.executionPlanRunName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "executionPlanRuns");
+ }
+
+ public ExecutionPlanRun refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getExecutionPlanRuns()
+ .getWithResponse(resourceGroupName, cloudValidationName, validationExecutionPlanName, executionPlanRunName,
+ Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ExecutionPlanRun refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getExecutionPlanRuns()
+ .getWithResponse(resourceGroupName, cloudValidationName, validationExecutionPlanName, executionPlanRunName,
+ context)
+ .getValue();
+ return this;
+ }
+
+ public ExecutionPlanRunImpl withProperties(ExecutionPlanRunProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/ExecutionPlanRunsClientImpl.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/ExecutionPlanRunsClientImpl.java
new file mode 100644
index 000000000000..3ef5cdc633ef
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/ExecutionPlanRunsClientImpl.java
@@ -0,0 +1,863 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.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.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.platformvalidation.fluent.ExecutionPlanRunsClient;
+import com.azure.resourcemanager.platformvalidation.fluent.models.ExecutionPlanRunInner;
+import com.azure.resourcemanager.platformvalidation.implementation.models.ExecutionPlanRunListResult;
+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 ExecutionPlanRunsClient.
+ */
+public final class ExecutionPlanRunsClientImpl implements ExecutionPlanRunsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ExecutionPlanRunsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final PlatformValidationManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ExecutionPlanRunsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ExecutionPlanRunsClientImpl(PlatformValidationManagementClientImpl client) {
+ this.service
+ = RestProxy.create(ExecutionPlanRunsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for PlatformValidationManagementClientExecutionPlanRuns to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "PlatformValidationManagementClientExecutionPlanRuns")
+ public interface ExecutionPlanRunsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PlatformValidation/cloudValidations/{cloudValidationName}/validationExecutionPlans/{validationExecutionPlanName}/executionPlanRuns/{executionPlanRunName}")
+ @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("cloudValidationName") String cloudValidationName,
+ @PathParam("validationExecutionPlanName") String validationExecutionPlanName,
+ @PathParam("executionPlanRunName") String executionPlanRunName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PlatformValidation/cloudValidations/{cloudValidationName}/validationExecutionPlans/{validationExecutionPlanName}/executionPlanRuns/{executionPlanRunName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cloudValidationName") String cloudValidationName,
+ @PathParam("validationExecutionPlanName") String validationExecutionPlanName,
+ @PathParam("executionPlanRunName") String executionPlanRunName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PlatformValidation/cloudValidations/{cloudValidationName}/validationExecutionPlans/{validationExecutionPlanName}/executionPlanRuns/{executionPlanRunName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cloudValidationName") String cloudValidationName,
+ @PathParam("validationExecutionPlanName") String validationExecutionPlanName,
+ @PathParam("executionPlanRunName") String executionPlanRunName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ExecutionPlanRunInner resource, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PlatformValidation/cloudValidations/{cloudValidationName}/validationExecutionPlans/{validationExecutionPlanName}/executionPlanRuns/{executionPlanRunName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createOrUpdateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cloudValidationName") String cloudValidationName,
+ @PathParam("validationExecutionPlanName") String validationExecutionPlanName,
+ @PathParam("executionPlanRunName") String executionPlanRunName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ExecutionPlanRunInner resource, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PlatformValidation/cloudValidations/{cloudValidationName}/validationExecutionPlans/{validationExecutionPlanName}/executionPlanRuns/{executionPlanRunName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cloudValidationName") String cloudValidationName,
+ @PathParam("validationExecutionPlanName") String validationExecutionPlanName,
+ @PathParam("executionPlanRunName") String executionPlanRunName, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PlatformValidation/cloudValidations/{cloudValidationName}/validationExecutionPlans/{validationExecutionPlanName}/executionPlanRuns/{executionPlanRunName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cloudValidationName") String cloudValidationName,
+ @PathParam("validationExecutionPlanName") String validationExecutionPlanName,
+ @PathParam("executionPlanRunName") String executionPlanRunName, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PlatformValidation/cloudValidations/{cloudValidationName}/validationExecutionPlans/{validationExecutionPlanName}/executionPlanRuns")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByExecutionPlan(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cloudValidationName") String cloudValidationName,
+ @PathParam("validationExecutionPlanName") String validationExecutionPlanName,
+ @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PlatformValidation/cloudValidations/{cloudValidationName}/validationExecutionPlans/{validationExecutionPlanName}/executionPlanRuns")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByExecutionPlanSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("cloudValidationName") String cloudValidationName,
+ @PathParam("validationExecutionPlanName") String validationExecutionPlanName,
+ @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByExecutionPlanNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByExecutionPlanNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get a Validation test execution plan run details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 Validation test execution plan run details along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName,
+ String cloudValidationName, String validationExecutionPlanName, String executionPlanRunName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, validationExecutionPlanName,
+ executionPlanRunName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a Validation test execution plan run details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 Validation test execution plan run details on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName) {
+ return getWithResponseAsync(resourceGroupName, cloudValidationName, validationExecutionPlanName,
+ executionPlanRunName).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a Validation test execution plan run details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 Validation test execution plan run details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, Context context) {
+ final String accept = "application/json";
+ return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, cloudValidationName, validationExecutionPlanName, executionPlanRunName, accept, context);
+ }
+
+ /**
+ * Get a Validation test execution plan run details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 Validation test execution plan run details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ExecutionPlanRunInner get(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName) {
+ return getWithResponse(resourceGroupName, cloudValidationName, validationExecutionPlanName,
+ executionPlanRunName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create or update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 properties of the execution plan run along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String cloudValidationName, String validationExecutionPlanName, String executionPlanRunName,
+ ExecutionPlanRunInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, validationExecutionPlanName,
+ executionPlanRunName, contentType, accept, resource, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 properties of the execution plan run along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, ExecutionPlanRunInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, validationExecutionPlanName,
+ executionPlanRunName, contentType, accept, resource, Context.NONE);
+ }
+
+ /**
+ * Create or update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 properties of the execution plan run along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, ExecutionPlanRunInner resource,
+ Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, validationExecutionPlanName,
+ executionPlanRunName, contentType, accept, resource, context);
+ }
+
+ /**
+ * Create or update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 the properties of the execution plan run.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ExecutionPlanRunInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String cloudValidationName, String validationExecutionPlanName,
+ String executionPlanRunName, ExecutionPlanRunInner resource) {
+ Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, cloudValidationName,
+ validationExecutionPlanName, executionPlanRunName, resource);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), ExecutionPlanRunInner.class, ExecutionPlanRunInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create or update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 the properties of the execution plan run.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ExecutionPlanRunInner> beginCreateOrUpdate(
+ String resourceGroupName, String cloudValidationName, String validationExecutionPlanName,
+ String executionPlanRunName, ExecutionPlanRunInner resource) {
+ Response response = createOrUpdateWithResponse(resourceGroupName, cloudValidationName,
+ validationExecutionPlanName, executionPlanRunName, resource);
+ return this.client.getLroResult(response,
+ ExecutionPlanRunInner.class, ExecutionPlanRunInner.class, Context.NONE);
+ }
+
+ /**
+ * Create or update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 the properties of the execution plan run.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ExecutionPlanRunInner> beginCreateOrUpdate(
+ String resourceGroupName, String cloudValidationName, String validationExecutionPlanName,
+ String executionPlanRunName, ExecutionPlanRunInner resource, Context context) {
+ Response response = createOrUpdateWithResponse(resourceGroupName, cloudValidationName,
+ validationExecutionPlanName, executionPlanRunName, resource, context);
+ return this.client.getLroResult(response,
+ ExecutionPlanRunInner.class, ExecutionPlanRunInner.class, context);
+ }
+
+ /**
+ * Create or update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 properties of the execution plan run on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, ExecutionPlanRunInner resource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, cloudValidationName, validationExecutionPlanName,
+ executionPlanRunName, resource).last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 properties of the execution plan run.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ExecutionPlanRunInner createOrUpdate(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, ExecutionPlanRunInner resource) {
+ return beginCreateOrUpdate(resourceGroupName, cloudValidationName, validationExecutionPlanName,
+ executionPlanRunName, resource).getFinalResult();
+ }
+
+ /**
+ * Create or update a validation test execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 properties of the execution plan run.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ExecutionPlanRunInner createOrUpdate(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, ExecutionPlanRunInner resource,
+ Context context) {
+ return beginCreateOrUpdate(resourceGroupName, cloudValidationName, validationExecutionPlanName,
+ executionPlanRunName, resource, context).getFinalResult();
+ }
+
+ /**
+ * Delete a validation test execution plan run resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 cloudValidationName, String validationExecutionPlanName, String executionPlanRunName) {
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, validationExecutionPlanName,
+ executionPlanRunName, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a validation test execution plan run resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, validationExecutionPlanName,
+ executionPlanRunName, Context.NONE);
+ }
+
+ /**
+ * Delete a validation test execution plan run resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, Context context) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, validationExecutionPlanName,
+ executionPlanRunName, context);
+ }
+
+ /**
+ * Delete a validation test execution plan run resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, cloudValidationName,
+ validationExecutionPlanName, executionPlanRunName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete a validation test execution plan run resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName) {
+ Response response = deleteWithResponse(resourceGroupName, cloudValidationName,
+ validationExecutionPlanName, executionPlanRunName);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Delete a validation test execution plan run resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, Context context) {
+ Response response = deleteWithResponse(resourceGroupName, cloudValidationName,
+ validationExecutionPlanName, executionPlanRunName, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete a validation test execution plan run resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName) {
+ return beginDeleteAsync(resourceGroupName, cloudValidationName, validationExecutionPlanName,
+ executionPlanRunName).last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a validation test execution plan run resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @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 cloudValidationName, String validationExecutionPlanName,
+ String executionPlanRunName) {
+ beginDelete(resourceGroupName, cloudValidationName, validationExecutionPlanName, executionPlanRunName)
+ .getFinalResult();
+ }
+
+ /**
+ * Delete a validation test execution plan run resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param executionPlanRunName The name of the ExecutionPlanRun.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String cloudValidationName, String validationExecutionPlanName,
+ String executionPlanRunName, Context context) {
+ beginDelete(resourceGroupName, cloudValidationName, validationExecutionPlanName, executionPlanRunName, context)
+ .getFinalResult();
+ }
+
+ /**
+ * List Validation test execution plan runs for an execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param filter The OData filter expression to apply to the list 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 ExecutionPlanRun list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByExecutionPlanSinglePageAsync(String resourceGroupName,
+ String cloudValidationName, String validationExecutionPlanName, String filter) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByExecutionPlan(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, cloudValidationName, validationExecutionPlanName,
+ filter, 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 Validation test execution plan runs for an execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param filter The OData filter expression to apply to the list 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 ExecutionPlanRun list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByExecutionPlanAsync(String resourceGroupName,
+ String cloudValidationName, String validationExecutionPlanName, String filter) {
+ return new PagedFlux<>(() -> listByExecutionPlanSinglePageAsync(resourceGroupName, cloudValidationName,
+ validationExecutionPlanName, filter), nextLink -> listByExecutionPlanNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List Validation test execution plan runs for an execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @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 ExecutionPlanRun list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByExecutionPlanAsync(String resourceGroupName,
+ String cloudValidationName, String validationExecutionPlanName) {
+ final String filter = null;
+ return new PagedFlux<>(() -> listByExecutionPlanSinglePageAsync(resourceGroupName, cloudValidationName,
+ validationExecutionPlanName, filter), nextLink -> listByExecutionPlanNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List Validation test execution plan runs for an execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param filter The OData filter expression to apply to the list 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 ExecutionPlanRun list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByExecutionPlanSinglePage(String resourceGroupName,
+ String cloudValidationName, String validationExecutionPlanName, String filter) {
+ final String accept = "application/json";
+ Response res = service.listByExecutionPlanSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, cloudValidationName,
+ validationExecutionPlanName, filter, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List Validation test execution plan runs for an execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param filter The OData filter expression to apply to the list operation.
+ * @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 ExecutionPlanRun list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByExecutionPlanSinglePage(String resourceGroupName,
+ String cloudValidationName, String validationExecutionPlanName, String filter, Context context) {
+ final String accept = "application/json";
+ Response res = service.listByExecutionPlanSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, cloudValidationName,
+ validationExecutionPlanName, filter, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List Validation test execution plan runs for an execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @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 ExecutionPlanRun list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByExecutionPlan(String resourceGroupName,
+ String cloudValidationName, String validationExecutionPlanName) {
+ final String filter = null;
+ return new PagedIterable<>(() -> listByExecutionPlanSinglePage(resourceGroupName, cloudValidationName,
+ validationExecutionPlanName, filter), nextLink -> listByExecutionPlanNextSinglePage(nextLink));
+ }
+
+ /**
+ * List Validation test execution plan runs for an execution plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param cloudValidationName The name of the CloudValidation.
+ * @param validationExecutionPlanName The name of the ValidationExecutionPlan.
+ * @param filter The OData filter expression to apply to the list operation.
+ * @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 ExecutionPlanRun list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByExecutionPlan(String resourceGroupName,
+ String cloudValidationName, String validationExecutionPlanName, String filter, Context context) {
+ return new PagedIterable<>(() -> listByExecutionPlanSinglePage(resourceGroupName, cloudValidationName,
+ validationExecutionPlanName, filter, context),
+ nextLink -> listByExecutionPlanNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ExecutionPlanRun list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByExecutionPlanNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByExecutionPlanNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ExecutionPlanRun list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByExecutionPlanNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listByExecutionPlanNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ExecutionPlanRun list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByExecutionPlanNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listByExecutionPlanNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/ExecutionPlanRunsImpl.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/ExecutionPlanRunsImpl.java
new file mode 100644
index 000000000000..0949bd3bd0ae
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/ExecutionPlanRunsImpl.java
@@ -0,0 +1,188 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.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.platformvalidation.fluent.ExecutionPlanRunsClient;
+import com.azure.resourcemanager.platformvalidation.fluent.models.ExecutionPlanRunInner;
+import com.azure.resourcemanager.platformvalidation.models.ExecutionPlanRun;
+import com.azure.resourcemanager.platformvalidation.models.ExecutionPlanRuns;
+
+public final class ExecutionPlanRunsImpl implements ExecutionPlanRuns {
+ private static final ClientLogger LOGGER = new ClientLogger(ExecutionPlanRunsImpl.class);
+
+ private final ExecutionPlanRunsClient innerClient;
+
+ private final com.azure.resourcemanager.platformvalidation.PlatformValidationManager serviceManager;
+
+ public ExecutionPlanRunsImpl(ExecutionPlanRunsClient innerClient,
+ com.azure.resourcemanager.platformvalidation.PlatformValidationManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName, Context context) {
+ Response inner = this.serviceClient()
+ .getWithResponse(resourceGroupName, cloudValidationName, validationExecutionPlanName, executionPlanRunName,
+ context);
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ExecutionPlanRunImpl(inner.getValue(), this.manager()));
+ }
+
+ public ExecutionPlanRun get(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String executionPlanRunName) {
+ ExecutionPlanRunInner inner = this.serviceClient()
+ .get(resourceGroupName, cloudValidationName, validationExecutionPlanName, executionPlanRunName);
+ if (inner != null) {
+ return new ExecutionPlanRunImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String cloudValidationName, String validationExecutionPlanName,
+ String executionPlanRunName) {
+ this.serviceClient()
+ .delete(resourceGroupName, cloudValidationName, validationExecutionPlanName, executionPlanRunName);
+ }
+
+ public void delete(String resourceGroupName, String cloudValidationName, String validationExecutionPlanName,
+ String executionPlanRunName, Context context) {
+ this.serviceClient()
+ .delete(resourceGroupName, cloudValidationName, validationExecutionPlanName, executionPlanRunName, context);
+ }
+
+ public PagedIterable listByExecutionPlan(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName) {
+ PagedIterable inner = this.serviceClient()
+ .listByExecutionPlan(resourceGroupName, cloudValidationName, validationExecutionPlanName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new ExecutionPlanRunImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByExecutionPlan(String resourceGroupName, String cloudValidationName,
+ String validationExecutionPlanName, String filter, Context context) {
+ PagedIterable inner = this.serviceClient()
+ .listByExecutionPlan(resourceGroupName, cloudValidationName, validationExecutionPlanName, filter, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new ExecutionPlanRunImpl(inner1, this.manager()));
+ }
+
+ public ExecutionPlanRun 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 cloudValidationName = ResourceManagerUtils.getValueFromIdByName(id, "cloudValidations");
+ if (cloudValidationName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'cloudValidations'.", id)));
+ }
+ String validationExecutionPlanName = ResourceManagerUtils.getValueFromIdByName(id, "validationExecutionPlans");
+ if (validationExecutionPlanName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
+ .format("The resource ID '%s' is not valid. Missing path segment 'validationExecutionPlans'.", id)));
+ }
+ String executionPlanRunName = ResourceManagerUtils.getValueFromIdByName(id, "executionPlanRuns");
+ if (executionPlanRunName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'executionPlanRuns'.", id)));
+ }
+ return this
+ .getWithResponse(resourceGroupName, cloudValidationName, validationExecutionPlanName, executionPlanRunName,
+ 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 cloudValidationName = ResourceManagerUtils.getValueFromIdByName(id, "cloudValidations");
+ if (cloudValidationName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'cloudValidations'.", id)));
+ }
+ String validationExecutionPlanName = ResourceManagerUtils.getValueFromIdByName(id, "validationExecutionPlans");
+ if (validationExecutionPlanName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
+ .format("The resource ID '%s' is not valid. Missing path segment 'validationExecutionPlans'.", id)));
+ }
+ String executionPlanRunName = ResourceManagerUtils.getValueFromIdByName(id, "executionPlanRuns");
+ if (executionPlanRunName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'executionPlanRuns'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, cloudValidationName, validationExecutionPlanName,
+ executionPlanRunName, 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 cloudValidationName = ResourceManagerUtils.getValueFromIdByName(id, "cloudValidations");
+ if (cloudValidationName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'cloudValidations'.", id)));
+ }
+ String validationExecutionPlanName = ResourceManagerUtils.getValueFromIdByName(id, "validationExecutionPlans");
+ if (validationExecutionPlanName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
+ .format("The resource ID '%s' is not valid. Missing path segment 'validationExecutionPlans'.", id)));
+ }
+ String executionPlanRunName = ResourceManagerUtils.getValueFromIdByName(id, "executionPlanRuns");
+ if (executionPlanRunName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'executionPlanRuns'.", id)));
+ }
+ this.delete(resourceGroupName, cloudValidationName, validationExecutionPlanName, executionPlanRunName,
+ Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String cloudValidationName = ResourceManagerUtils.getValueFromIdByName(id, "cloudValidations");
+ if (cloudValidationName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'cloudValidations'.", id)));
+ }
+ String validationExecutionPlanName = ResourceManagerUtils.getValueFromIdByName(id, "validationExecutionPlans");
+ if (validationExecutionPlanName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
+ .format("The resource ID '%s' is not valid. Missing path segment 'validationExecutionPlans'.", id)));
+ }
+ String executionPlanRunName = ResourceManagerUtils.getValueFromIdByName(id, "executionPlanRuns");
+ if (executionPlanRunName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'executionPlanRuns'.", id)));
+ }
+ this.delete(resourceGroupName, cloudValidationName, validationExecutionPlanName, executionPlanRunName, context);
+ }
+
+ private ExecutionPlanRunsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.platformvalidation.PlatformValidationManager manager() {
+ return this.serviceManager;
+ }
+
+ public ExecutionPlanRunImpl define(String name) {
+ return new ExecutionPlanRunImpl(name, this.manager());
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/OperationImpl.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/OperationImpl.java
new file mode 100644
index 000000000000..90fe30d65dcd
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/OperationImpl.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.implementation;
+
+import com.azure.resourcemanager.platformvalidation.fluent.models.OperationInner;
+import com.azure.resourcemanager.platformvalidation.models.ActionType;
+import com.azure.resourcemanager.platformvalidation.models.Operation;
+import com.azure.resourcemanager.platformvalidation.models.OperationDisplay;
+import com.azure.resourcemanager.platformvalidation.models.Origin;
+
+public final class OperationImpl implements Operation {
+ private OperationInner innerObject;
+
+ private final com.azure.resourcemanager.platformvalidation.PlatformValidationManager serviceManager;
+
+ OperationImpl(OperationInner innerObject,
+ com.azure.resourcemanager.platformvalidation.PlatformValidationManager 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.platformvalidation.PlatformValidationManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/OperationStatusClientImpl.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/OperationStatusClientImpl.java
new file mode 100644
index 000000000000..15064c545fa5
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/OperationStatusClientImpl.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.platformvalidation.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.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.platformvalidation.fluent.OperationStatusClient;
+import com.azure.resourcemanager.platformvalidation.fluent.models.OperationStatusResultInner;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in OperationStatusClient.
+ */
+public final class OperationStatusClientImpl implements OperationStatusClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final OperationStatusService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final PlatformValidationManagementClientImpl client;
+
+ /**
+ * Initializes an instance of OperationStatusClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ OperationStatusClientImpl(PlatformValidationManagementClientImpl client) {
+ this.service
+ = RestProxy.create(OperationStatusService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for PlatformValidationManagementClientOperationStatus to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "PlatformValidationManagementClientOperationStatus")
+ public interface OperationStatusService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.PlatformValidation/locations/{location}/operationStatuses/{operationId}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location, @PathParam("operationId") String operationId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.PlatformValidation/locations/{location}/operationStatuses/{operationId}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location, @PathParam("operationId") String operationId,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Returns the current status of an async operation.
+ *
+ * @param location The name of the Azure region.
+ * @param operationId The ID of an ongoing async 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 current status of an async operation along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String location, String operationId) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), location, operationId, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Returns the current status of an async operation.
+ *
+ * @param location The name of the Azure region.
+ * @param operationId The ID of an ongoing async 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 current status of an async operation on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String location, String operationId) {
+ return getWithResponseAsync(location, operationId).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Returns the current status of an async operation.
+ *
+ * @param location The name of the Azure region.
+ * @param operationId The ID of an ongoing async operation.
+ * @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 current status of an async operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String location, String operationId, Context context) {
+ final String accept = "application/json";
+ return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ location, operationId, accept, context);
+ }
+
+ /**
+ * Returns the current status of an async operation.
+ *
+ * @param location The name of the Azure region.
+ * @param operationId The ID of an ongoing async 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 current status of an async operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OperationStatusResultInner get(String location, String operationId) {
+ return getWithResponse(location, operationId, Context.NONE).getValue();
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/OperationStatusImpl.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/OperationStatusImpl.java
new file mode 100644
index 000000000000..34f7118e85a4
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/OperationStatusImpl.java
@@ -0,0 +1,52 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.implementation;
+
+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.platformvalidation.fluent.OperationStatusClient;
+import com.azure.resourcemanager.platformvalidation.fluent.models.OperationStatusResultInner;
+import com.azure.resourcemanager.platformvalidation.models.OperationStatus;
+import com.azure.resourcemanager.platformvalidation.models.OperationStatusResult;
+
+public final class OperationStatusImpl implements OperationStatus {
+ private static final ClientLogger LOGGER = new ClientLogger(OperationStatusImpl.class);
+
+ private final OperationStatusClient innerClient;
+
+ private final com.azure.resourcemanager.platformvalidation.PlatformValidationManager serviceManager;
+
+ public OperationStatusImpl(OperationStatusClient innerClient,
+ com.azure.resourcemanager.platformvalidation.PlatformValidationManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(String location, String operationId, Context context) {
+ Response inner
+ = this.serviceClient().getWithResponse(location, operationId, context);
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new OperationStatusResultImpl(inner.getValue(), this.manager()));
+ }
+
+ public OperationStatusResult get(String location, String operationId) {
+ OperationStatusResultInner inner = this.serviceClient().get(location, operationId);
+ if (inner != null) {
+ return new OperationStatusResultImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private OperationStatusClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.platformvalidation.PlatformValidationManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/OperationStatusResultImpl.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/OperationStatusResultImpl.java
new file mode 100644
index 000000000000..f112f6bde773
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/OperationStatusResultImpl.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.platformvalidation.implementation;
+
+import com.azure.core.management.exception.ManagementError;
+import com.azure.resourcemanager.platformvalidation.fluent.models.OperationStatusResultInner;
+import com.azure.resourcemanager.platformvalidation.models.OperationStatusResult;
+import java.time.OffsetDateTime;
+import java.util.Collections;
+import java.util.List;
+import java.util.stream.Collectors;
+
+public final class OperationStatusResultImpl implements OperationStatusResult {
+ private OperationStatusResultInner innerObject;
+
+ private final com.azure.resourcemanager.platformvalidation.PlatformValidationManager serviceManager;
+
+ OperationStatusResultImpl(OperationStatusResultInner innerObject,
+ com.azure.resourcemanager.platformvalidation.PlatformValidationManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String status() {
+ return this.innerModel().status();
+ }
+
+ public Double percentComplete() {
+ return this.innerModel().percentComplete();
+ }
+
+ public OffsetDateTime startTime() {
+ return this.innerModel().startTime();
+ }
+
+ public OffsetDateTime endTime() {
+ return this.innerModel().endTime();
+ }
+
+ public List operations() {
+ List inner = this.innerModel().operations();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner.stream()
+ .map(inner1 -> new OperationStatusResultImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public ManagementError error() {
+ return this.innerModel().error();
+ }
+
+ public String resourceId() {
+ return this.innerModel().resourceId();
+ }
+
+ public OperationStatusResultInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.platformvalidation.PlatformValidationManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/OperationsClientImpl.java b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/OperationsClientImpl.java
new file mode 100644
index 000000000000..decbe632c46d
--- /dev/null
+++ b/sdk/platformvalidation/azure-resourcemanager-platformvalidation/src/main/java/com/azure/resourcemanager/platformvalidation/implementation/OperationsClientImpl.java
@@ -0,0 +1,242 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.platformvalidation.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.platformvalidation.fluent.OperationsClient;
+import com.azure.resourcemanager.platformvalidation.fluent.models.OperationInner;
+import com.azure.resourcemanager.platformvalidation.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 PlatformValidationManagementClientImpl client;
+
+ /**
+ * Initializes an instance of OperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ OperationsClientImpl(PlatformValidationManagementClientImpl client) {
+ this.service
+ = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for PlatformValidationManagementClientOperations to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "PlatformValidationManagementClientOperations")
+ public interface OperationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.PlatformValidation/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("/providers/Microsoft.PlatformValidation/operations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSync(@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);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listNextSync(@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() {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context))
+ .