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 Resilience Management service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Resilience Management service API instance.
+ */
+ public ResilienceManagementManager 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.resiliencemanagement")
+ .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 ResilienceManagementManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /**
+ * Gets the resource collection API of 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 GoalAssignments.
+ *
+ * @return Resource collection API of GoalAssignments.
+ */
+ public GoalAssignments goalAssignments() {
+ if (this.goalAssignments == null) {
+ this.goalAssignments = new GoalAssignmentsImpl(clientObject.getGoalAssignments(), this);
+ }
+ return goalAssignments;
+ }
+
+ /**
+ * Gets the resource collection API of GoalTemplates.
+ *
+ * @return Resource collection API of GoalTemplates.
+ */
+ public GoalTemplates goalTemplates() {
+ if (this.goalTemplates == null) {
+ this.goalTemplates = new GoalTemplatesImpl(clientObject.getGoalTemplates(), this);
+ }
+ return goalTemplates;
+ }
+
+ /**
+ * Gets the resource collection API of GoalResources.
+ *
+ * @return Resource collection API of GoalResources.
+ */
+ public GoalResources goalResources() {
+ if (this.goalResources == null) {
+ this.goalResources = new GoalResourcesImpl(clientObject.getGoalResources(), this);
+ }
+ return goalResources;
+ }
+
+ /**
+ * Gets the resource collection API of RecoveryPlans.
+ *
+ * @return Resource collection API of RecoveryPlans.
+ */
+ public RecoveryPlans recoveryPlans() {
+ if (this.recoveryPlans == null) {
+ this.recoveryPlans = new RecoveryPlansImpl(clientObject.getRecoveryPlans(), this);
+ }
+ return recoveryPlans;
+ }
+
+ /**
+ * Gets the resource collection API of RecoveryPlanActions.
+ *
+ * @return Resource collection API of RecoveryPlanActions.
+ */
+ public RecoveryPlanActions recoveryPlanActions() {
+ if (this.recoveryPlanActions == null) {
+ this.recoveryPlanActions = new RecoveryPlanActionsImpl(clientObject.getRecoveryPlanActions(), this);
+ }
+ return recoveryPlanActions;
+ }
+
+ /**
+ * Gets the resource collection API of RecoveryResources.
+ *
+ * @return Resource collection API of RecoveryResources.
+ */
+ public RecoveryResources recoveryResources() {
+ if (this.recoveryResources == null) {
+ this.recoveryResources = new RecoveryResourcesImpl(clientObject.getRecoveryResources(), this);
+ }
+ return recoveryResources;
+ }
+
+ /**
+ * Gets the resource collection API of RecoveryJobs.
+ *
+ * @return Resource collection API of RecoveryJobs.
+ */
+ public RecoveryJobs recoveryJobs() {
+ if (this.recoveryJobs == null) {
+ this.recoveryJobs = new RecoveryJobsImpl(clientObject.getRecoveryJobs(), this);
+ }
+ return recoveryJobs;
+ }
+
+ /**
+ * Gets the resource collection API of RecoveryJobResources.
+ *
+ * @return Resource collection API of RecoveryJobResources.
+ */
+ public RecoveryJobResources recoveryJobResources() {
+ if (this.recoveryJobResources == null) {
+ this.recoveryJobResources = new RecoveryJobResourcesImpl(clientObject.getRecoveryJobResources(), this);
+ }
+ return recoveryJobResources;
+ }
+
+ /**
+ * Gets the resource collection API of Drills.
+ *
+ * @return Resource collection API of Drills.
+ */
+ public Drills drills() {
+ if (this.drills == null) {
+ this.drills = new DrillsImpl(clientObject.getDrills(), this);
+ }
+ return drills;
+ }
+
+ /**
+ * Gets the resource collection API of DrillResources.
+ *
+ * @return Resource collection API of DrillResources.
+ */
+ public DrillResources drillResources() {
+ if (this.drillResources == null) {
+ this.drillResources = new DrillResourcesImpl(clientObject.getDrillResources(), this);
+ }
+ return drillResources;
+ }
+
+ /**
+ * Gets the resource collection API of DrillRuns.
+ *
+ * @return Resource collection API of DrillRuns.
+ */
+ public DrillRuns drillRuns() {
+ if (this.drillRuns == null) {
+ this.drillRuns = new DrillRunsImpl(clientObject.getDrillRuns(), this);
+ }
+ return drillRuns;
+ }
+
+ /**
+ * Gets the resource collection API of DrillRunResources.
+ *
+ * @return Resource collection API of DrillRunResources.
+ */
+ public DrillRunResources drillRunResources() {
+ if (this.drillRunResources == null) {
+ this.drillRunResources = new DrillRunResourcesImpl(clientObject.getDrillRunResources(), this);
+ }
+ return drillRunResources;
+ }
+
+ /**
+ * Gets the resource collection API of UnifiedResilienceItems.
+ *
+ * @return Resource collection API of UnifiedResilienceItems.
+ */
+ public UnifiedResilienceItems unifiedResilienceItems() {
+ if (this.unifiedResilienceItems == null) {
+ this.unifiedResilienceItems
+ = new UnifiedResilienceItemsImpl(clientObject.getUnifiedResilienceItems(), this);
+ }
+ return unifiedResilienceItems;
+ }
+
+ /**
+ * Gets the resource collection API of UsagePlans. It manages UsagePlan.
+ *
+ * @return Resource collection API of UsagePlans.
+ */
+ public UsagePlans usagePlans() {
+ if (this.usagePlans == null) {
+ this.usagePlans = new UsagePlansImpl(clientObject.getUsagePlans(), this);
+ }
+ return usagePlans;
+ }
+
+ /**
+ * Gets the resource collection API of Enrollments. It manages Enrollment.
+ *
+ * @return Resource collection API of Enrollments.
+ */
+ public Enrollments enrollments() {
+ if (this.enrollments == null) {
+ this.enrollments = new EnrollmentsImpl(clientObject.getEnrollments(), this);
+ }
+ return enrollments;
+ }
+
+ /**
+ * Gets wrapped service client ResilienceManagementManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client ResilienceManagementManagementClient.
+ */
+ public ResilienceManagementManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/DrillResourcesClient.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/DrillResourcesClient.java
new file mode 100644
index 000000000000..7ba8f22edce6
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/DrillResourcesClient.java
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.fluent.models.DrillResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in DrillResourcesClient.
+ */
+public interface DrillResourcesClient {
+ /**
+ * Get a DrillResource.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillResourceName The name of the DrillResource (GUID).
+ * @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 DrillResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String serviceGroupName, String drillName, String drillResourceName,
+ Context context);
+
+ /**
+ * Get a DrillResource.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillResourceName The name of the DrillResource (GUID).
+ * @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 DrillResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DrillResourceInner get(String serviceGroupName, String drillName, String drillResourceName);
+
+ /**
+ * List DrillResource resources by Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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 DrillResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String drillName);
+
+ /**
+ * List DrillResource resources by Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @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 DrillResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String drillName, String skipToken, Integer top,
+ Context context);
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/DrillRunResourcesClient.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/DrillRunResourcesClient.java
new file mode 100644
index 000000000000..8d87d3ef67dc
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/DrillRunResourcesClient.java
@@ -0,0 +1,80 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.fluent.models.DrillRunResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in DrillRunResourcesClient.
+ */
+public interface DrillRunResourcesClient {
+ /**
+ * Get a DrillRunResource.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @param drillRunResourceName The unique name (GUID) of the recovery job resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a DrillRunResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String serviceGroupName, String drillName, String drillRunName,
+ String drillRunResourceName, Context context);
+
+ /**
+ * Get a DrillRunResource.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @param drillRunResourceName The unique name (GUID) of the recovery job resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a DrillRunResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DrillRunResourceInner get(String serviceGroupName, String drillName, String drillRunName,
+ String drillRunResourceName);
+
+ /**
+ * List DrillRunResource resources by DrillRun.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @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 DrillRunResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String drillName, String drillRunName);
+
+ /**
+ * List DrillRunResource resources by DrillRun.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @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 DrillRunResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String drillName, String drillRunName,
+ Context context);
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/DrillRunsClient.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/DrillRunsClient.java
new file mode 100644
index 000000000000..38be1e03574a
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/DrillRunsClient.java
@@ -0,0 +1,407 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.fluent.models.DrillRunInner;
+import com.azure.resourcemanager.resiliencemanagement.models.DrillRunAddNotesRequest;
+import com.azure.resourcemanager.resiliencemanagement.models.DrillRunFailoverRequest;
+import com.azure.resourcemanager.resiliencemanagement.models.MarkAsCompleteRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in DrillRunsClient.
+ */
+public interface DrillRunsClient {
+ /**
+ * Get a DrillRun.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @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 DrillRun along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String serviceGroupName, String drillName, String drillRunName,
+ Context context);
+
+ /**
+ * Get a DrillRun.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @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 DrillRun.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DrillRunInner get(String serviceGroupName, String drillName, String drillRunName);
+
+ /**
+ * List DrillRun resources by Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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 DrillRun list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String drillName);
+
+ /**
+ * List DrillRun resources by Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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 DrillRun list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String drillName, Context context);
+
+ /**
+ * This initiates a new Failover operation on this Drill Run.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of request body for TestFailoverCleanup API.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginFailOver(String serviceGroupName, String operationId, String drillName,
+ String drillRunName, DrillRunFailoverRequest body);
+
+ /**
+ * This initiates a new Failover operation on this Drill Run.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of request body for TestFailoverCleanup API.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginFailOver(String serviceGroupName, String operationId, String drillName,
+ String drillRunName, DrillRunFailoverRequest body, Context context);
+
+ /**
+ * This initiates a new Failover operation on this Drill Run.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void failOver(String serviceGroupName, String operationId, String drillName, String drillRunName,
+ DrillRunFailoverRequest body);
+
+ /**
+ * This initiates a new Failover operation on this Drill Run.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void failOver(String serviceGroupName, String operationId, String drillName, String drillRunName,
+ DrillRunFailoverRequest body, Context context);
+
+ /**
+ * This initiates a new Reprotect operation on this Drill Run.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @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 request body for TestFailoverCleanup API.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginReprotect(String serviceGroupName, String operationId, String drillName,
+ String drillRunName);
+
+ /**
+ * This initiates a new Reprotect operation on this Drill Run.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @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 request body for TestFailoverCleanup API.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginReprotect(String serviceGroupName, String operationId, String drillName,
+ String drillRunName, Context context);
+
+ /**
+ * This initiates a new Reprotect operation on this Drill Run.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @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 reprotect(String serviceGroupName, String operationId, String drillName, String drillRunName);
+
+ /**
+ * This initiates a new Reprotect operation on this Drill Run.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @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 reprotect(String serviceGroupName, String operationId, String drillName, String drillRunName, Context context);
+
+ /**
+ * This enables the user to add notes on this Drill Run.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of request body for TestFailoverCleanup API.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginAddNotes(String serviceGroupName, String operationId, String drillName,
+ String drillRunName, DrillRunAddNotesRequest body);
+
+ /**
+ * This enables the user to add notes on this Drill Run.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of request body for TestFailoverCleanup API.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginAddNotes(String serviceGroupName, String operationId, String drillName,
+ String drillRunName, DrillRunAddNotesRequest body, Context context);
+
+ /**
+ * This enables the user to add notes on this Drill Run.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void addNotes(String serviceGroupName, String operationId, String drillName, String drillRunName,
+ DrillRunAddNotesRequest body);
+
+ /**
+ * This enables the user to add notes on this Drill Run.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void addNotes(String serviceGroupName, String operationId, String drillName, String drillRunName,
+ DrillRunAddNotesRequest body, Context context);
+
+ /**
+ * This unblocks a Failover workflow that is paused after the Fault stage, to proceed to the Failover stage.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @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 request body for TestFailoverCleanup API.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginResume(String serviceGroupName, String operationId, String drillName,
+ String drillRunName);
+
+ /**
+ * This unblocks a Failover workflow that is paused after the Fault stage, to proceed to the Failover stage.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @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 request body for TestFailoverCleanup API.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginResume(String serviceGroupName, String operationId, String drillName,
+ String drillRunName, Context context);
+
+ /**
+ * This unblocks a Failover workflow that is paused after the Fault stage, to proceed to the Failover stage.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @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 resume(String serviceGroupName, String operationId, String drillName, String drillRunName);
+
+ /**
+ * This unblocks a Failover workflow that is paused after the Fault stage, to proceed to the Failover stage.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @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 resume(String serviceGroupName, String operationId, String drillName, String drillRunName, Context context);
+
+ /**
+ * This enables the user to mark this stage as complete, disabling further retries on it.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response body for MarkAsComplete API.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginMarkAsComplete(String serviceGroupName, String operationId,
+ String drillName, String drillRunName, MarkAsCompleteRequest body);
+
+ /**
+ * This enables the user to mark this stage as complete, disabling further retries on it.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response body for MarkAsComplete API.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginMarkAsComplete(String serviceGroupName, String operationId,
+ String drillName, String drillRunName, MarkAsCompleteRequest body, Context context);
+
+ /**
+ * This enables the user to mark this stage as complete, disabling further retries on it.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void markAsComplete(String serviceGroupName, String operationId, String drillName, String drillRunName,
+ MarkAsCompleteRequest body);
+
+ /**
+ * This enables the user to mark this stage as complete, disabling further retries on it.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void markAsComplete(String serviceGroupName, String operationId, String drillName, String drillRunName,
+ MarkAsCompleteRequest body, Context context);
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/DrillsClient.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/DrillsClient.java
new file mode 100644
index 000000000000..f247144b725d
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/DrillsClient.java
@@ -0,0 +1,557 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.fluent.models.DrillInner;
+import com.azure.resourcemanager.resiliencemanagement.models.AddOrUpdateResourcesRequest;
+import com.azure.resourcemanager.resiliencemanagement.models.DrillEndRequest;
+import com.azure.resourcemanager.resiliencemanagement.models.DrillStartRequest;
+import com.azure.resourcemanager.resiliencemanagement.models.DrillUpdate;
+import com.azure.resourcemanager.resiliencemanagement.models.ValidateForExecutionRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in DrillsClient.
+ */
+public interface DrillsClient {
+ /**
+ * Get a Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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 Drill along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String serviceGroupName, String drillName, Context context);
+
+ /**
+ * Get a Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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 Drill.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DrillInner get(String serviceGroupName, String drillName);
+
+ /**
+ * Create a Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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 drill resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DrillInner> beginCreate(String serviceGroupName, String drillName,
+ DrillInner resource);
+
+ /**
+ * Create a Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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 drill resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DrillInner> beginCreate(String serviceGroupName, String drillName,
+ DrillInner resource, Context context);
+
+ /**
+ * Create a Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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 drill resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DrillInner create(String serviceGroupName, String drillName, DrillInner resource);
+
+ /**
+ * Create a Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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 drill resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DrillInner create(String serviceGroupName, String drillName, DrillInner resource, Context context);
+
+ /**
+ * Update a Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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 drill resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpdate(String serviceGroupName, String drillName, DrillUpdate properties);
+
+ /**
+ * Update a Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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 drill resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpdate(String serviceGroupName, String drillName, DrillUpdate properties,
+ Context context);
+
+ /**
+ * Update a Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void update(String serviceGroupName, String drillName, DrillUpdate properties);
+
+ /**
+ * Update a Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void update(String serviceGroupName, String drillName, DrillUpdate properties, Context context);
+
+ /**
+ * Delete a Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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 serviceGroupName, String drillName);
+
+ /**
+ * Delete a Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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 serviceGroupName, String drillName, Context context);
+
+ /**
+ * Delete a Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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 serviceGroupName, String drillName);
+
+ /**
+ * Delete a Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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 serviceGroupName, String drillName, Context context);
+
+ /**
+ * List Drill resources by tenant.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @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 Drill list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName);
+
+ /**
+ * List Drill resources by tenant.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @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 Drill list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String skipToken, Integer top, Context context);
+
+ /**
+ * This returns eligible resource to be faulted or failed over.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of validateForExecution post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginValidateForExecution(String serviceGroupName, String operationId,
+ String drillName, ValidateForExecutionRequest body);
+
+ /**
+ * This returns eligible resource to be faulted or failed over.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of validateForExecution post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginValidateForExecution(String serviceGroupName, String operationId,
+ String drillName, ValidateForExecutionRequest body, Context context);
+
+ /**
+ * This returns eligible resource to be faulted or failed over.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void validateForExecution(String serviceGroupName, String operationId, String drillName,
+ ValidateForExecutionRequest body);
+
+ /**
+ * This returns eligible resource to be faulted or failed over.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void validateForExecution(String serviceGroupName, String operationId, String drillName,
+ ValidateForExecutionRequest body, Context context);
+
+ /**
+ * This starts a new running instance of the Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response body of Drill actions.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginStart(String serviceGroupName, String operationId, String drillName,
+ DrillStartRequest body);
+
+ /**
+ * This starts a new running instance of the Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response body of Drill actions.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginStart(String serviceGroupName, String operationId, String drillName,
+ DrillStartRequest body, Context context);
+
+ /**
+ * This starts a new running instance of the Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void start(String serviceGroupName, String operationId, String drillName, DrillStartRequest body);
+
+ /**
+ * This starts a new running instance of the Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void start(String serviceGroupName, String operationId, String drillName, DrillStartRequest body, Context context);
+
+ /**
+ * This ends the currently running instance of the Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response body of Drill actions.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginEnd(String serviceGroupName, String operationId, String drillName,
+ DrillEndRequest body);
+
+ /**
+ * This ends the currently running instance of the Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response body of Drill actions.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginEnd(String serviceGroupName, String operationId, String drillName,
+ DrillEndRequest body, Context context);
+
+ /**
+ * This ends the currently running instance of the Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void end(String serviceGroupName, String operationId, String drillName, DrillEndRequest body);
+
+ /**
+ * This ends the currently running instance of the Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void end(String serviceGroupName, String operationId, String drillName, DrillEndRequest body, Context context);
+
+ /**
+ * This enables the user to include, exclude or update resources from their Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginAddOrUpdateResources(String serviceGroupName, String operationId,
+ String drillName, AddOrUpdateResourcesRequest body);
+
+ /**
+ * This enables the user to include, exclude or update resources from their Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginAddOrUpdateResources(String serviceGroupName, String operationId,
+ String drillName, AddOrUpdateResourcesRequest body, Context context);
+
+ /**
+ * This enables the user to include, exclude or update resources from their Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void addOrUpdateResources(String serviceGroupName, String operationId, String drillName,
+ AddOrUpdateResourcesRequest body);
+
+ /**
+ * This enables the user to include, exclude or update resources from their Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void addOrUpdateResources(String serviceGroupName, String operationId, String drillName,
+ AddOrUpdateResourcesRequest body, Context context);
+
+ /**
+ * This triggers detection of any drifts from the desired state of Resources and RBAC.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @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> beginResyncReadinessCheck(String serviceGroupName, String operationId,
+ String drillName);
+
+ /**
+ * This triggers detection of any drifts from the desired state of Resources and RBAC.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @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> beginResyncReadinessCheck(String serviceGroupName, String operationId,
+ String drillName, Context context);
+
+ /**
+ * This triggers detection of any drifts from the desired state of Resources and RBAC.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @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 resyncReadinessCheck(String serviceGroupName, String operationId, String drillName);
+
+ /**
+ * This triggers detection of any drifts from the desired state of Resources and RBAC.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param drillName The name of the Drill.
+ * @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 resyncReadinessCheck(String serviceGroupName, String operationId, String drillName, Context context);
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/EnrollmentsClient.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/EnrollmentsClient.java
new file mode 100644
index 000000000000..a57aee1894b2
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/EnrollmentsClient.java
@@ -0,0 +1,200 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.fluent.models.EnrollmentInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in EnrollmentsClient.
+ */
+public interface EnrollmentsClient {
+ /**
+ * Get an Enrollment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @param enrollmentName The name of the enrollment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Enrollment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String usagePlanName, String enrollmentName,
+ Context context);
+
+ /**
+ * Get an Enrollment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @param enrollmentName The name of the enrollment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Enrollment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EnrollmentInner get(String resourceGroupName, String usagePlanName, String enrollmentName);
+
+ /**
+ * Create or update an Enrollment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @param enrollmentName The name of the enrollment.
+ * @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 an enrollment that links a usage plan to a service group.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EnrollmentInner> beginCreateOrUpdate(String resourceGroupName,
+ String usagePlanName, String enrollmentName, EnrollmentInner resource);
+
+ /**
+ * Create or update an Enrollment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @param enrollmentName The name of the enrollment.
+ * @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 an enrollment that links a usage plan to a service group.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EnrollmentInner> beginCreateOrUpdate(String resourceGroupName,
+ String usagePlanName, String enrollmentName, EnrollmentInner resource, Context context);
+
+ /**
+ * Create or update an Enrollment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @param enrollmentName The name of the enrollment.
+ * @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 an enrollment that links a usage plan to a service group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EnrollmentInner createOrUpdate(String resourceGroupName, String usagePlanName, String enrollmentName,
+ EnrollmentInner resource);
+
+ /**
+ * Create or update an Enrollment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @param enrollmentName The name of the enrollment.
+ * @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 an enrollment that links a usage plan to a service group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EnrollmentInner createOrUpdate(String resourceGroupName, String usagePlanName, String enrollmentName,
+ EnrollmentInner resource, Context context);
+
+ /**
+ * Delete an Enrollment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @param enrollmentName The name of the enrollment.
+ * @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 usagePlanName,
+ String enrollmentName);
+
+ /**
+ * Delete an Enrollment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @param enrollmentName The name of the enrollment.
+ * @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 usagePlanName,
+ String enrollmentName, Context context);
+
+ /**
+ * Delete an Enrollment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @param enrollmentName The name of the enrollment.
+ * @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 usagePlanName, String enrollmentName);
+
+ /**
+ * Delete an Enrollment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @param enrollmentName The name of the enrollment.
+ * @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 usagePlanName, String enrollmentName, Context context);
+
+ /**
+ * List Enrollments by Usage Plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @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 Enrollment list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String usagePlanName);
+
+ /**
+ * List Enrollments by Usage Plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @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 Enrollment list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String usagePlanName, Context context);
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/GoalAssignmentsClient.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/GoalAssignmentsClient.java
new file mode 100644
index 000000000000..06ca1a9bfde2
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/GoalAssignmentsClient.java
@@ -0,0 +1,425 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.fluent.models.GoalAssignmentInner;
+import com.azure.resourcemanager.resiliencemanagement.models.RecommendCapacityRequest;
+import com.azure.resourcemanager.resiliencemanagement.models.UpdateGoalResourceRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in GoalAssignmentsClient.
+ */
+public interface GoalAssignmentsClient {
+ /**
+ * Get a GoalAssignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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 GoalAssignment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String serviceGroupName, String goalAssignmentName, Context context);
+
+ /**
+ * Get a GoalAssignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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 GoalAssignment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GoalAssignmentInner get(String serviceGroupName, String goalAssignmentName);
+
+ /**
+ * Create a GoalAssignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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 goal assignment a AzureResilienceProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginCreateOrUpdate(String serviceGroupName, String goalAssignmentName,
+ GoalAssignmentInner resource);
+
+ /**
+ * Create a GoalAssignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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 goal assignment a AzureResilienceProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginCreateOrUpdate(String serviceGroupName, String goalAssignmentName,
+ GoalAssignmentInner resource, Context context);
+
+ /**
+ * Create a GoalAssignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void createOrUpdate(String serviceGroupName, String goalAssignmentName, GoalAssignmentInner resource);
+
+ /**
+ * Create a GoalAssignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void createOrUpdate(String serviceGroupName, String goalAssignmentName, GoalAssignmentInner resource,
+ Context context);
+
+ /**
+ * Update a GoalAssignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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 goal assignment a AzureResilienceProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpdate(String serviceGroupName, String goalAssignmentName,
+ GoalAssignmentInner properties);
+
+ /**
+ * Update a GoalAssignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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 goal assignment a AzureResilienceProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpdate(String serviceGroupName, String goalAssignmentName,
+ GoalAssignmentInner properties, Context context);
+
+ /**
+ * Update a GoalAssignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void update(String serviceGroupName, String goalAssignmentName, GoalAssignmentInner properties);
+
+ /**
+ * Update a GoalAssignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void update(String serviceGroupName, String goalAssignmentName, GoalAssignmentInner properties, Context context);
+
+ /**
+ * Action to exclude a resource from goal assignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response model for update goal resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpdateGoalResources(String serviceGroupName, String goalAssignmentName,
+ UpdateGoalResourceRequest body);
+
+ /**
+ * Action to exclude a resource from goal assignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of response model for update goal resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpdateGoalResources(String serviceGroupName, String goalAssignmentName,
+ UpdateGoalResourceRequest body, Context context);
+
+ /**
+ * Action to exclude a resource from goal assignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void updateGoalResources(String serviceGroupName, String goalAssignmentName, UpdateGoalResourceRequest body);
+
+ /**
+ * Action to exclude a resource from goal assignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void updateGoalResources(String serviceGroupName, String goalAssignmentName, UpdateGoalResourceRequest body,
+ Context context);
+
+ /**
+ * Refreshes the goal resources under a goal assignment. This operation scans for new resources under the scope of
+ * the assignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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 response model for refresh goal resources.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginRefreshGoalResources(String serviceGroupName, String goalAssignmentName);
+
+ /**
+ * Refreshes the goal resources under a goal assignment. This operation scans for new resources under the scope of
+ * the assignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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 response model for refresh goal resources.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginRefreshGoalResources(String serviceGroupName, String goalAssignmentName,
+ Context context);
+
+ /**
+ * Refreshes the goal resources under a goal assignment. This operation scans for new resources under the scope of
+ * the assignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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 refreshGoalResources(String serviceGroupName, String goalAssignmentName);
+
+ /**
+ * Refreshes the goal resources under a goal assignment. This operation scans for new resources under the scope of
+ * the assignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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 refreshGoalResources(String serviceGroupName, String goalAssignmentName, Context context);
+
+ /**
+ * Delete a GoalAssignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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 serviceGroupName, String goalAssignmentName);
+
+ /**
+ * Delete a GoalAssignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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 serviceGroupName, String goalAssignmentName, Context context);
+
+ /**
+ * Delete a GoalAssignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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 serviceGroupName, String goalAssignmentName);
+
+ /**
+ * Delete a GoalAssignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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 serviceGroupName, String goalAssignmentName, Context context);
+
+ /**
+ * Recommends capacity improvements for resources under the goal assignments scope. Returns AI-powered capacity
+ * assessments and recommendations.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of result of a completed recommend capacity operation, containing
+ * per-resource assessments and cross-cutting recommendations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginRecommendCapacity(String serviceGroupName, String goalAssignmentName,
+ RecommendCapacityRequest body);
+
+ /**
+ * Recommends capacity improvements for resources under the goal assignments scope. Returns AI-powered capacity
+ * assessments and recommendations.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of result of a completed recommend capacity operation, containing
+ * per-resource assessments and cross-cutting recommendations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginRecommendCapacity(String serviceGroupName, String goalAssignmentName,
+ RecommendCapacityRequest body, Context context);
+
+ /**
+ * Recommends capacity improvements for resources under the goal assignments scope. Returns AI-powered capacity
+ * assessments and recommendations.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void recommendCapacity(String serviceGroupName, String goalAssignmentName, RecommendCapacityRequest body);
+
+ /**
+ * Recommends capacity improvements for resources under the goal assignments scope. Returns AI-powered capacity
+ * assessments and recommendations.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void recommendCapacity(String serviceGroupName, String goalAssignmentName, RecommendCapacityRequest body,
+ Context context);
+
+ /**
+ * List GoalAssignment resources by tenant.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @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 GoalAssignment list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName);
+
+ /**
+ * List GoalAssignment resources by tenant.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @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 GoalAssignment list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String skipToken, Integer top, Context context);
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/GoalResourcesClient.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/GoalResourcesClient.java
new file mode 100644
index 000000000000..688ada8da5ab
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/GoalResourcesClient.java
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.fluent.models.GoalResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in GoalResourcesClient.
+ */
+public interface GoalResourcesClient {
+ /**
+ * Get a GoalResource.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @param goalResourceName The name of the GoalAssignment.
+ * @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 GoalResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String serviceGroupName, String goalAssignmentName,
+ String goalResourceName, Context context);
+
+ /**
+ * Get a GoalResource.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @param goalResourceName The name of the GoalAssignment.
+ * @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 GoalResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GoalResourceInner get(String serviceGroupName, String goalAssignmentName, String goalResourceName);
+
+ /**
+ * List GoalResource resources by GoalAssignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @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 GoalResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String goalAssignmentName);
+
+ /**
+ * List GoalResource resources by GoalAssignment.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalAssignmentName The name of the GoalAssignment.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @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 GoalResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String goalAssignmentName, String skipToken,
+ Integer top, Context context);
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/GoalTemplatesClient.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/GoalTemplatesClient.java
new file mode 100644
index 000000000000..5c14a2ccabec
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/GoalTemplatesClient.java
@@ -0,0 +1,244 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.fluent.models.GoalTemplateInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in GoalTemplatesClient.
+ */
+public interface GoalTemplatesClient {
+ /**
+ * Get a GoalTemplate.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalTemplateName The name of the goalTemplate.
+ * @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 GoalTemplate along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String serviceGroupName, String goalTemplateName, Context context);
+
+ /**
+ * Get a GoalTemplate.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalTemplateName The name of the goalTemplate.
+ * @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 GoalTemplate.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GoalTemplateInner get(String serviceGroupName, String goalTemplateName);
+
+ /**
+ * Create a GoalTemplate.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalTemplateName The name of the goalTemplate.
+ * @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 goal template a AzureResilienceProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GoalTemplateInner> beginCreateOrUpdate(String serviceGroupName,
+ String goalTemplateName, GoalTemplateInner resource);
+
+ /**
+ * Create a GoalTemplate.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalTemplateName The name of the goalTemplate.
+ * @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 goal template a AzureResilienceProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GoalTemplateInner> beginCreateOrUpdate(String serviceGroupName,
+ String goalTemplateName, GoalTemplateInner resource, Context context);
+
+ /**
+ * Create a GoalTemplate.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalTemplateName The name of the goalTemplate.
+ * @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 goal template a AzureResilienceProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GoalTemplateInner createOrUpdate(String serviceGroupName, String goalTemplateName, GoalTemplateInner resource);
+
+ /**
+ * Create a GoalTemplate.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalTemplateName The name of the goalTemplate.
+ * @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 goal template a AzureResilienceProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GoalTemplateInner createOrUpdate(String serviceGroupName, String goalTemplateName, GoalTemplateInner resource,
+ Context context);
+
+ /**
+ * Update a GoalTemplate.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalTemplateName The name of the goalTemplate.
+ * @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 goal template a AzureResilienceProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpdate(String serviceGroupName, String goalTemplateName,
+ GoalTemplateInner properties);
+
+ /**
+ * Update a GoalTemplate.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalTemplateName The name of the goalTemplate.
+ * @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 goal template a AzureResilienceProviderHub resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpdate(String serviceGroupName, String goalTemplateName,
+ GoalTemplateInner properties, Context context);
+
+ /**
+ * Update a GoalTemplate.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalTemplateName The name of the goalTemplate.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void update(String serviceGroupName, String goalTemplateName, GoalTemplateInner properties);
+
+ /**
+ * Update a GoalTemplate.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalTemplateName The name of the goalTemplate.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void update(String serviceGroupName, String goalTemplateName, GoalTemplateInner properties, Context context);
+
+ /**
+ * Delete a GoalTemplate.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalTemplateName The name of the goalTemplate.
+ * @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 serviceGroupName, String goalTemplateName);
+
+ /**
+ * Delete a GoalTemplate.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalTemplateName The name of the goalTemplate.
+ * @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 serviceGroupName, String goalTemplateName, Context context);
+
+ /**
+ * Delete a GoalTemplate.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalTemplateName The name of the goalTemplate.
+ * @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 serviceGroupName, String goalTemplateName);
+
+ /**
+ * Delete a GoalTemplate.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param goalTemplateName The name of the goalTemplate.
+ * @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 serviceGroupName, String goalTemplateName, Context context);
+
+ /**
+ * List GoalTemplate resources by tenant.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @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 GoalTemplate list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName);
+
+ /**
+ * List GoalTemplate resources by tenant.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @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 GoalTemplate list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String skipToken, Integer top, Context context);
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/OperationStatusClient.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/OperationStatusClient.java
new file mode 100644
index 000000000000..082e7f4d084e
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/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.resiliencemanagement.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.resiliencemanagement.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 location name.
+ * @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 location name.
+ * @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/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/OperationsClient.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/OperationsClient.java
new file mode 100644
index 000000000000..20d8bcb63598
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/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.resiliencemanagement.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.resiliencemanagement.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/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/RecoveryJobResourcesClient.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/RecoveryJobResourcesClient.java
new file mode 100644
index 000000000000..529dae6b6e20
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/RecoveryJobResourcesClient.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.fluent.models.RecoveryJobResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in RecoveryJobResourcesClient.
+ */
+public interface RecoveryJobResourcesClient {
+ /**
+ * Get a RecoveryJobResource.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryJobName The unique name (GUID) of the recovery job.
+ * @param recoveryJobResourceName The unique name (GUID) of the recovery job resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a RecoveryJobResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String serviceGroupName, String recoveryPlanName,
+ String recoveryJobName, String recoveryJobResourceName, Context context);
+
+ /**
+ * Get a RecoveryJobResource.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryJobName The unique name (GUID) of the recovery job.
+ * @param recoveryJobResourceName The unique name (GUID) of the recovery job resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a RecoveryJobResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoveryJobResourceInner get(String serviceGroupName, String recoveryPlanName, String recoveryJobName,
+ String recoveryJobResourceName);
+
+ /**
+ * List RecoveryJobResource resources by RecoveryJob.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryJobName The unique name (GUID) of the recovery job.
+ * @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 RecoveryJobResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String recoveryPlanName,
+ String recoveryJobName);
+
+ /**
+ * List RecoveryJobResource resources by RecoveryJob.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryJobName The unique name (GUID) of the recovery job.
+ * @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 RecoveryJobResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String recoveryPlanName,
+ String recoveryJobName, Context context);
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/RecoveryJobsClient.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/RecoveryJobsClient.java
new file mode 100644
index 000000000000..31a050699b69
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/RecoveryJobsClient.java
@@ -0,0 +1,310 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.fluent.models.RecoveryJobInner;
+import com.azure.resourcemanager.resiliencemanagement.models.ArmResponseErrorResponse;
+import com.azure.resourcemanager.resiliencemanagement.models.RecoveryActionRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in RecoveryJobsClient.
+ */
+public interface RecoveryJobsClient {
+ /**
+ * Get a RecoveryJob.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryJobName The unique name (GUID) of the recovery job.
+ * @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 RecoveryJob along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String serviceGroupName, String recoveryPlanName, String recoveryJobName,
+ Context context);
+
+ /**
+ * Get a RecoveryJob.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryJobName The unique name (GUID) of the recovery job.
+ * @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 RecoveryJob.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoveryJobInner get(String serviceGroupName, String recoveryPlanName, String recoveryJobName);
+
+ /**
+ * List RecoveryJob resources by RecoveryPlan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 RecoveryJob list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String recoveryPlanName);
+
+ /**
+ * List RecoveryJob resources by RecoveryPlan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 RecoveryJob list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String recoveryPlanName, Context context);
+
+ /**
+ * This action attempts to cancel the ongoing recovery orchestration job.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryJobName The unique name (GUID) of the recovery job.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @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, ArmResponseErrorResponse> beginCancel(String serviceGroupName,
+ String operationId, String recoveryPlanName, String recoveryJobName, RecoveryActionRequest body);
+
+ /**
+ * This action attempts to cancel the ongoing recovery orchestration job.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryJobName The unique name (GUID) of the recovery job.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @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, ArmResponseErrorResponse> beginCancel(String serviceGroupName,
+ String operationId, String recoveryPlanName, String recoveryJobName, RecoveryActionRequest body,
+ Context context);
+
+ /**
+ * This action attempts to cancel the ongoing recovery orchestration job.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryJobName The unique name (GUID) of the recovery job.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArmResponseErrorResponse cancel(String serviceGroupName, String operationId, String recoveryPlanName,
+ String recoveryJobName, RecoveryActionRequest body);
+
+ /**
+ * This action attempts to cancel the ongoing recovery orchestration job.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryJobName The unique name (GUID) of the recovery job.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArmResponseErrorResponse cancel(String serviceGroupName, String operationId, String recoveryPlanName,
+ String recoveryJobName, RecoveryActionRequest body, Context context);
+
+ /**
+ * This action resumes the ongoing recovery orchestration job that was paused for required user intervention.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryJobName The unique name (GUID) of the recovery job.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @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, ArmResponseErrorResponse> beginResume(String serviceGroupName,
+ String operationId, String recoveryPlanName, String recoveryJobName, RecoveryActionRequest body);
+
+ /**
+ * This action resumes the ongoing recovery orchestration job that was paused for required user intervention.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryJobName The unique name (GUID) of the recovery job.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @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, ArmResponseErrorResponse> beginResume(String serviceGroupName,
+ String operationId, String recoveryPlanName, String recoveryJobName, RecoveryActionRequest body,
+ Context context);
+
+ /**
+ * This action resumes the ongoing recovery orchestration job that was paused for required user intervention.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryJobName The unique name (GUID) of the recovery job.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArmResponseErrorResponse resume(String serviceGroupName, String operationId, String recoveryPlanName,
+ String recoveryJobName, RecoveryActionRequest body);
+
+ /**
+ * This action resumes the ongoing recovery orchestration job that was paused for required user intervention.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryJobName The unique name (GUID) of the recovery job.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArmResponseErrorResponse resume(String serviceGroupName, String operationId, String recoveryPlanName,
+ String recoveryJobName, RecoveryActionRequest body, Context context);
+
+ /**
+ * This action retries the ongoing recovery orchestration job for resources that failed in previous attempts.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryJobName The unique name (GUID) of the recovery job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @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, ArmResponseErrorResponse> beginRetry(String serviceGroupName,
+ String operationId, String recoveryPlanName, String recoveryJobName);
+
+ /**
+ * This action retries the ongoing recovery orchestration job for resources that failed in previous attempts.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryJobName The unique name (GUID) of the recovery job.
+ * @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @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, ArmResponseErrorResponse> beginRetry(String serviceGroupName,
+ String operationId, String recoveryPlanName, String recoveryJobName, Context context);
+
+ /**
+ * This action retries the ongoing recovery orchestration job for resources that failed in previous attempts.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryJobName The unique name (GUID) of the recovery job.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArmResponseErrorResponse retry(String serviceGroupName, String operationId, String recoveryPlanName,
+ String recoveryJobName);
+
+ /**
+ * This action retries the ongoing recovery orchestration job for resources that failed in previous attempts.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryJobName The unique name (GUID) of the recovery job.
+ * @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArmResponseErrorResponse retry(String serviceGroupName, String operationId, String recoveryPlanName,
+ String recoveryJobName, Context context);
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/RecoveryPlanActionsClient.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/RecoveryPlanActionsClient.java
new file mode 100644
index 000000000000..ff5340d1e319
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/RecoveryPlanActionsClient.java
@@ -0,0 +1,983 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.resiliencemanagement.fluent.models.RecoveryPlanActionBaseResponseInner;
+import com.azure.resourcemanager.resiliencemanagement.fluent.models.UpdateRecoveryResourcesResponseInner;
+import com.azure.resourcemanager.resiliencemanagement.fluent.models.ValidateForRecoveryOperationBaseResponseInner;
+import com.azure.resourcemanager.resiliencemanagement.models.ArmResponseErrorResponse;
+import com.azure.resourcemanager.resiliencemanagement.models.FailoverRequest;
+import com.azure.resourcemanager.resiliencemanagement.models.ReprotectRequest;
+import com.azure.resourcemanager.resiliencemanagement.models.TestFailoverCleanupRequest;
+import com.azure.resourcemanager.resiliencemanagement.models.UpdateRecoveryResourcesRequest;
+import com.azure.resourcemanager.resiliencemanagement.models.ValidateForOperationRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in RecoveryPlanActionsClient.
+ */
+public interface RecoveryPlanActionsClient {
+ /**
+ * This action finalizes the recovery orchestration plan, ensuring all necessary configurations are in place.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @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, ArmResponseErrorResponse> beginFinalize(String serviceGroupName,
+ String operationId, String recoveryPlanName);
+
+ /**
+ * This action finalizes the recovery orchestration plan, ensuring all necessary configurations are in place.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @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, ArmResponseErrorResponse> beginFinalize(String serviceGroupName,
+ String operationId, String recoveryPlanName, Context context);
+
+ /**
+ * This action finalizes the recovery orchestration plan, ensuring all necessary configurations are in place.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArmResponseErrorResponse finalize(String serviceGroupName, String operationId, String recoveryPlanName);
+
+ /**
+ * This action finalizes the recovery orchestration plan, ensuring all necessary configurations are in place.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArmResponseErrorResponse finalize(String serviceGroupName, String operationId, String recoveryPlanName,
+ Context context);
+
+ /**
+ * This action adds or updates the resources to be included in the recovery orchestration plan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of recoveryResources post action request to update in batch.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, UpdateRecoveryResourcesResponseInner>
+ beginUpdateResources(String serviceGroupName, String operationId, String recoveryPlanName,
+ UpdateRecoveryResourcesRequest body);
+
+ /**
+ * This action adds or updates the resources to be included in the recovery orchestration plan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of recoveryResources post action request to update in batch.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, UpdateRecoveryResourcesResponseInner>
+ beginUpdateResources(String serviceGroupName, String operationId, String recoveryPlanName,
+ UpdateRecoveryResourcesRequest body, Context context);
+
+ /**
+ * This action adds or updates the resources to be included in the recovery orchestration plan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return recoveryResources post action request to update in batch.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ UpdateRecoveryResourcesResponseInner updateResources(String serviceGroupName, String operationId,
+ String recoveryPlanName, UpdateRecoveryResourcesRequest body);
+
+ /**
+ * This action adds or updates the resources to be included in the recovery orchestration plan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return recoveryResources post action request to update in batch.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ UpdateRecoveryResourcesResponseInner updateResources(String serviceGroupName, String operationId,
+ String recoveryPlanName, UpdateRecoveryResourcesRequest body, Context context);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for operations like failover and reprotect,
+ * ensuring it meets the necessary criteria.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @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, ArmResponseErrorResponse> beginValidateForOperation(
+ String serviceGroupName, String operationId, String recoveryPlanName, ValidateForOperationRequest body);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for operations like failover and reprotect,
+ * ensuring it meets the necessary criteria.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @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, ArmResponseErrorResponse> beginValidateForOperation(
+ String serviceGroupName, String operationId, String recoveryPlanName, ValidateForOperationRequest body,
+ Context context);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for operations like failover and reprotect,
+ * ensuring it meets the necessary criteria.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArmResponseErrorResponse validateForOperation(String serviceGroupName, String operationId, String recoveryPlanName,
+ ValidateForOperationRequest body);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for operations like failover and reprotect,
+ * ensuring it meets the necessary criteria.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 200.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArmResponseErrorResponse validateForOperation(String serviceGroupName, String operationId, String recoveryPlanName,
+ ValidateForOperationRequest body, Context context);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for failover operation, ensuring it meets the
+ * necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ValidateForRecoveryOperationBaseResponseInner>
+ beginValidateForFailover(String serviceGroupName, String operationId, String recoveryPlanName,
+ FailoverRequest body);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for failover operation, ensuring it meets the
+ * necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ValidateForRecoveryOperationBaseResponseInner>
+ beginValidateForFailover(String serviceGroupName, String operationId, String recoveryPlanName,
+ FailoverRequest body, Context context);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for failover operation, ensuring it meets the
+ * necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidateForRecoveryOperationBaseResponseInner validateForFailover(String serviceGroupName, String operationId,
+ String recoveryPlanName, FailoverRequest body);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for failover operation, ensuring it meets the
+ * necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidateForRecoveryOperationBaseResponseInner validateForFailover(String serviceGroupName, String operationId,
+ String recoveryPlanName, FailoverRequest body, Context context);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for failover commit operation, ensuring it
+ * meets the necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ValidateForRecoveryOperationBaseResponseInner>
+ beginValidateForFailoverCommit(String serviceGroupName, String operationId, String recoveryPlanName);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for failover commit operation, ensuring it
+ * meets the necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ValidateForRecoveryOperationBaseResponseInner>
+ beginValidateForFailoverCommit(String serviceGroupName, String operationId, String recoveryPlanName,
+ Context context);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for failover commit operation, ensuring it
+ * meets the necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidateForRecoveryOperationBaseResponseInner validateForFailoverCommit(String serviceGroupName, String operationId,
+ String recoveryPlanName);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for failover commit operation, ensuring it
+ * meets the necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidateForRecoveryOperationBaseResponseInner validateForFailoverCommit(String serviceGroupName, String operationId,
+ String recoveryPlanName, Context context);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for test failover operation, ensuring it meets
+ * the necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ValidateForRecoveryOperationBaseResponseInner>
+ beginValidateForTestFailover(String serviceGroupName, String operationId, String recoveryPlanName,
+ FailoverRequest body);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for test failover operation, ensuring it meets
+ * the necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ValidateForRecoveryOperationBaseResponseInner>
+ beginValidateForTestFailover(String serviceGroupName, String operationId, String recoveryPlanName,
+ FailoverRequest body, Context context);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for test failover operation, ensuring it meets
+ * the necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidateForRecoveryOperationBaseResponseInner validateForTestFailover(String serviceGroupName, String operationId,
+ String recoveryPlanName, FailoverRequest body);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for test failover operation, ensuring it meets
+ * the necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidateForRecoveryOperationBaseResponseInner validateForTestFailover(String serviceGroupName, String operationId,
+ String recoveryPlanName, FailoverRequest body, Context context);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for test failover cleanup operation, ensuring
+ * it meets the necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ValidateForRecoveryOperationBaseResponseInner>
+ beginValidateForTestFailoverCleanup(String serviceGroupName, String operationId, String recoveryPlanName);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for test failover cleanup operation, ensuring
+ * it meets the necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ValidateForRecoveryOperationBaseResponseInner>
+ beginValidateForTestFailoverCleanup(String serviceGroupName, String operationId, String recoveryPlanName,
+ Context context);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for test failover cleanup operation, ensuring
+ * it meets the necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidateForRecoveryOperationBaseResponseInner validateForTestFailoverCleanup(String serviceGroupName,
+ String operationId, String recoveryPlanName);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for test failover cleanup operation, ensuring
+ * it meets the necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidateForRecoveryOperationBaseResponseInner validateForTestFailoverCleanup(String serviceGroupName,
+ String operationId, String recoveryPlanName, Context context);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for reprotect operation, ensuring it meets the
+ * necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ValidateForRecoveryOperationBaseResponseInner>
+ beginValidateForReprotect(String serviceGroupName, String operationId, String recoveryPlanName);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for reprotect operation, ensuring it meets the
+ * necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ValidateForRecoveryOperationBaseResponseInner>
+ beginValidateForReprotect(String serviceGroupName, String operationId, String recoveryPlanName,
+ ReprotectRequest body, Context context);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for reprotect operation, ensuring it meets the
+ * necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidateForRecoveryOperationBaseResponseInner validateForReprotect(String serviceGroupName, String operationId,
+ String recoveryPlanName);
+
+ /**
+ * This action checks if the recovery orchestration plan is eligible for reprotect operation, ensuring it meets the
+ * necessary criteria and provides a list of qualified and unqualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return validateForRecoveryOperation post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ValidateForRecoveryOperationBaseResponseInner validateForReprotect(String serviceGroupName, String operationId,
+ String recoveryPlanName, ReprotectRequest body, Context context);
+
+ /**
+ * This action performs the necessary readiness check on the recovery orchestration plan to ensure it is in the
+ * desired state and eligible for all recovery actions, including all protected resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginCheckReadiness(String serviceGroupName, String operationId,
+ String recoveryPlanName);
+
+ /**
+ * This action performs the necessary readiness check on the recovery orchestration plan to ensure it is in the
+ * desired state and eligible for all recovery actions, including all protected resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginCheckReadiness(String serviceGroupName, String operationId,
+ String recoveryPlanName, Context context);
+
+ /**
+ * This action performs the necessary readiness check on the recovery orchestration plan to ensure it is in the
+ * desired state and eligible for all recovery actions, including all protected resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 checkReadiness(String serviceGroupName, String operationId, String recoveryPlanName);
+
+ /**
+ * This action performs the necessary readiness check on the recovery orchestration plan to ensure it is in the
+ * desired state and eligible for all recovery actions, including all protected resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 checkReadiness(String serviceGroupName, String operationId, String recoveryPlanName, Context context);
+
+ /**
+ * This action triggers the failover operation on the recovery orchestration plan for the qualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RecoveryPlanActionBaseResponseInner>
+ beginFailover(String serviceGroupName, String operationId, String recoveryPlanName, FailoverRequest body);
+
+ /**
+ * This action triggers the failover operation on the recovery orchestration plan for the qualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RecoveryPlanActionBaseResponseInner> beginFailover(
+ String serviceGroupName, String operationId, String recoveryPlanName, FailoverRequest body, Context context);
+
+ /**
+ * This action triggers the failover operation on the recovery orchestration plan for the qualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoveryPlanActionBaseResponseInner failover(String serviceGroupName, String operationId, String recoveryPlanName,
+ FailoverRequest body);
+
+ /**
+ * This action triggers the failover operation on the recovery orchestration plan for the qualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoveryPlanActionBaseResponseInner failover(String serviceGroupName, String operationId, String recoveryPlanName,
+ FailoverRequest body, Context context);
+
+ /**
+ * This action triggers the failover commit operation on the recovery orchestration plan for the qualified
+ * resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RecoveryPlanActionBaseResponseInner>
+ beginFailoverCommit(String serviceGroupName, String operationId, String recoveryPlanName);
+
+ /**
+ * This action triggers the failover commit operation on the recovery orchestration plan for the qualified
+ * resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RecoveryPlanActionBaseResponseInner>
+ beginFailoverCommit(String serviceGroupName, String operationId, String recoveryPlanName, Context context);
+
+ /**
+ * This action triggers the failover commit operation on the recovery orchestration plan for the qualified
+ * resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoveryPlanActionBaseResponseInner failoverCommit(String serviceGroupName, String operationId,
+ String recoveryPlanName);
+
+ /**
+ * This action triggers the failover commit operation on the recovery orchestration plan for the qualified
+ * resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoveryPlanActionBaseResponseInner failoverCommit(String serviceGroupName, String operationId,
+ String recoveryPlanName, Context context);
+
+ /**
+ * This action triggers the reprotect operation on the recovery orchestration plan for the qualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RecoveryPlanActionBaseResponseInner>
+ beginReprotect(String serviceGroupName, String operationId, String recoveryPlanName);
+
+ /**
+ * This action triggers the reprotect operation on the recovery orchestration plan for the qualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RecoveryPlanActionBaseResponseInner> beginReprotect(
+ String serviceGroupName, String operationId, String recoveryPlanName, ReprotectRequest body, Context context);
+
+ /**
+ * This action triggers the reprotect operation on the recovery orchestration plan for the qualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoveryPlanActionBaseResponseInner reprotect(String serviceGroupName, String operationId, String recoveryPlanName);
+
+ /**
+ * This action triggers the reprotect operation on the recovery orchestration plan for the qualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoveryPlanActionBaseResponseInner reprotect(String serviceGroupName, String operationId, String recoveryPlanName,
+ ReprotectRequest body, Context context);
+
+ /**
+ * This action triggers the test failover operation on the recovery orchestration plan for the qualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RecoveryPlanActionBaseResponseInner>
+ beginTestFailover(String serviceGroupName, String operationId, String recoveryPlanName, FailoverRequest body);
+
+ /**
+ * This action triggers the test failover operation on the recovery orchestration plan for the qualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RecoveryPlanActionBaseResponseInner> beginTestFailover(
+ String serviceGroupName, String operationId, String recoveryPlanName, FailoverRequest body, Context context);
+
+ /**
+ * This action triggers the test failover operation on the recovery orchestration plan for the qualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoveryPlanActionBaseResponseInner testFailover(String serviceGroupName, String operationId,
+ String recoveryPlanName, FailoverRequest body);
+
+ /**
+ * This action triggers the test failover operation on the recovery orchestration plan for the qualified resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoveryPlanActionBaseResponseInner testFailover(String serviceGroupName, String operationId,
+ String recoveryPlanName, FailoverRequest body, Context context);
+
+ /**
+ * This action triggers the test failover cleanup operation on the recovery orchestration plan for the qualified
+ * resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RecoveryPlanActionBaseResponseInner>
+ beginTestFailoverCleanup(String serviceGroupName, String operationId, String recoveryPlanName,
+ TestFailoverCleanupRequest body);
+
+ /**
+ * This action triggers the test failover cleanup operation on the recovery orchestration plan for the qualified
+ * resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RecoveryPlanActionBaseResponseInner>
+ beginTestFailoverCleanup(String serviceGroupName, String operationId, String recoveryPlanName,
+ TestFailoverCleanupRequest body, Context context);
+
+ /**
+ * This action triggers the test failover cleanup operation on the recovery orchestration plan for the qualified
+ * resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoveryPlanActionBaseResponseInner testFailoverCleanup(String serviceGroupName, String operationId,
+ String recoveryPlanName, TestFailoverCleanupRequest body);
+
+ /**
+ * This action triggers the test failover cleanup operation on the recovery orchestration plan for the qualified
+ * resources.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param operationId A GUID that represents the Long Running OperationId.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return recovery Orchestration Plan post action response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoveryPlanActionBaseResponseInner testFailoverCleanup(String serviceGroupName, String operationId,
+ String recoveryPlanName, TestFailoverCleanupRequest body, Context context);
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/RecoveryPlansClient.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/RecoveryPlansClient.java
new file mode 100644
index 000000000000..b4e0659111dd
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/RecoveryPlansClient.java
@@ -0,0 +1,251 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.fluent.models.RecoveryPlanInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in RecoveryPlansClient.
+ */
+public interface RecoveryPlansClient {
+ /**
+ * Get a RecoveryPlan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 RecoveryPlan along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String serviceGroupName, String recoveryPlanName, Context context);
+
+ /**
+ * Get a RecoveryPlan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 RecoveryPlan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoveryPlanInner get(String serviceGroupName, String recoveryPlanName);
+
+ /**
+ * Create a RecoveryPlan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 represents a recovery orchestration plan resource in the Azure
+ * Resilience Management provider namespace.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RecoveryPlanInner> beginCreateOrUpdate(String serviceGroupName,
+ String recoveryPlanName, RecoveryPlanInner resource);
+
+ /**
+ * Create a RecoveryPlan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 represents a recovery orchestration plan resource in the Azure
+ * Resilience Management provider namespace.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RecoveryPlanInner> beginCreateOrUpdate(String serviceGroupName,
+ String recoveryPlanName, RecoveryPlanInner resource, Context context);
+
+ /**
+ * Create a RecoveryPlan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 represents a recovery orchestration plan resource in the Azure Resilience Management provider namespace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoveryPlanInner createOrUpdate(String serviceGroupName, String recoveryPlanName, RecoveryPlanInner resource);
+
+ /**
+ * Create a RecoveryPlan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 represents a recovery orchestration plan resource in the Azure Resilience Management provider namespace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoveryPlanInner createOrUpdate(String serviceGroupName, String recoveryPlanName, RecoveryPlanInner resource,
+ Context context);
+
+ /**
+ * Update a RecoveryPlan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 represents a recovery orchestration plan resource in the Azure
+ * Resilience Management provider namespace.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RecoveryPlanInner> beginUpdate(String serviceGroupName,
+ String recoveryPlanName, RecoveryPlanInner properties);
+
+ /**
+ * Update a RecoveryPlan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 represents a recovery orchestration plan resource in the Azure
+ * Resilience Management provider namespace.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RecoveryPlanInner> beginUpdate(String serviceGroupName,
+ String recoveryPlanName, RecoveryPlanInner properties, Context context);
+
+ /**
+ * Update a RecoveryPlan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 represents a recovery orchestration plan resource in the Azure Resilience Management provider namespace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoveryPlanInner update(String serviceGroupName, String recoveryPlanName, RecoveryPlanInner properties);
+
+ /**
+ * Update a RecoveryPlan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 represents a recovery orchestration plan resource in the Azure Resilience Management provider namespace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoveryPlanInner update(String serviceGroupName, String recoveryPlanName, RecoveryPlanInner properties,
+ Context context);
+
+ /**
+ * Delete a RecoveryPlan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 serviceGroupName, String recoveryPlanName);
+
+ /**
+ * Delete a RecoveryPlan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 serviceGroupName, String recoveryPlanName, Context context);
+
+ /**
+ * Delete a RecoveryPlan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 serviceGroupName, String recoveryPlanName);
+
+ /**
+ * Delete a RecoveryPlan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 serviceGroupName, String recoveryPlanName, Context context);
+
+ /**
+ * List RecoveryPlan resources by tenant.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @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 RecoveryPlan list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName);
+
+ /**
+ * List RecoveryPlan resources by tenant.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @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 RecoveryPlan list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String skipToken, Integer top, Context context);
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/RecoveryResourcesClient.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/RecoveryResourcesClient.java
new file mode 100644
index 000000000000..f5e897246fea
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/RecoveryResourcesClient.java
@@ -0,0 +1,74 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.fluent.models.RecoveryResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in RecoveryResourcesClient.
+ */
+public interface RecoveryResourcesClient {
+ /**
+ * Get a RecoveryResource.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryResourceName The unique name (Guid) of the recovery resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a RecoveryResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String serviceGroupName, String recoveryPlanName,
+ String recoveryResourceName, Context context);
+
+ /**
+ * Get a RecoveryResource.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @param recoveryResourceName The unique name (Guid) of the recovery resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a RecoveryResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecoveryResourceInner get(String serviceGroupName, String recoveryPlanName, String recoveryResourceName);
+
+ /**
+ * List RecoveryResource resources by RecoveryPlan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 RecoveryResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String recoveryPlanName);
+
+ /**
+ * List RecoveryResource resources by RecoveryPlan.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param recoveryPlanName The name of the recovery orchestration plan.
+ * @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 RecoveryResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String recoveryPlanName, Context context);
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/ResilienceManagementManagementClient.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/ResilienceManagementManagementClient.java
new file mode 100644
index 000000000000..adfdd4d689dd
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/ResilienceManagementManagementClient.java
@@ -0,0 +1,167 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/**
+ * The interface for ResilienceManagementManagementClient class.
+ */
+public interface ResilienceManagementManagementClient {
+ /**
+ * Gets Service host.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Version parameter.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the OperationStatusClient object to access its operations.
+ *
+ * @return the OperationStatusClient object.
+ */
+ OperationStatusClient getOperationStatus();
+
+ /**
+ * Gets the GoalAssignmentsClient object to access its operations.
+ *
+ * @return the GoalAssignmentsClient object.
+ */
+ GoalAssignmentsClient getGoalAssignments();
+
+ /**
+ * Gets the GoalTemplatesClient object to access its operations.
+ *
+ * @return the GoalTemplatesClient object.
+ */
+ GoalTemplatesClient getGoalTemplates();
+
+ /**
+ * Gets the GoalResourcesClient object to access its operations.
+ *
+ * @return the GoalResourcesClient object.
+ */
+ GoalResourcesClient getGoalResources();
+
+ /**
+ * Gets the RecoveryPlansClient object to access its operations.
+ *
+ * @return the RecoveryPlansClient object.
+ */
+ RecoveryPlansClient getRecoveryPlans();
+
+ /**
+ * Gets the RecoveryPlanActionsClient object to access its operations.
+ *
+ * @return the RecoveryPlanActionsClient object.
+ */
+ RecoveryPlanActionsClient getRecoveryPlanActions();
+
+ /**
+ * Gets the RecoveryResourcesClient object to access its operations.
+ *
+ * @return the RecoveryResourcesClient object.
+ */
+ RecoveryResourcesClient getRecoveryResources();
+
+ /**
+ * Gets the RecoveryJobsClient object to access its operations.
+ *
+ * @return the RecoveryJobsClient object.
+ */
+ RecoveryJobsClient getRecoveryJobs();
+
+ /**
+ * Gets the RecoveryJobResourcesClient object to access its operations.
+ *
+ * @return the RecoveryJobResourcesClient object.
+ */
+ RecoveryJobResourcesClient getRecoveryJobResources();
+
+ /**
+ * Gets the DrillsClient object to access its operations.
+ *
+ * @return the DrillsClient object.
+ */
+ DrillsClient getDrills();
+
+ /**
+ * Gets the DrillResourcesClient object to access its operations.
+ *
+ * @return the DrillResourcesClient object.
+ */
+ DrillResourcesClient getDrillResources();
+
+ /**
+ * Gets the DrillRunsClient object to access its operations.
+ *
+ * @return the DrillRunsClient object.
+ */
+ DrillRunsClient getDrillRuns();
+
+ /**
+ * Gets the DrillRunResourcesClient object to access its operations.
+ *
+ * @return the DrillRunResourcesClient object.
+ */
+ DrillRunResourcesClient getDrillRunResources();
+
+ /**
+ * Gets the UnifiedResilienceItemsClient object to access its operations.
+ *
+ * @return the UnifiedResilienceItemsClient object.
+ */
+ UnifiedResilienceItemsClient getUnifiedResilienceItems();
+
+ /**
+ * Gets the UsagePlansClient object to access its operations.
+ *
+ * @return the UsagePlansClient object.
+ */
+ UsagePlansClient getUsagePlans();
+
+ /**
+ * Gets the EnrollmentsClient object to access its operations.
+ *
+ * @return the EnrollmentsClient object.
+ */
+ EnrollmentsClient getEnrollments();
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/UnifiedResilienceItemsClient.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/UnifiedResilienceItemsClient.java
new file mode 100644
index 000000000000..47a9f65c3693
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/UnifiedResilienceItemsClient.java
@@ -0,0 +1,73 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.fluent.models.UnifiedResilienceItemInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in UnifiedResilienceItemsClient.
+ */
+public interface UnifiedResilienceItemsClient {
+ /**
+ * Get a UnifiedResilienceItem.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param unifiedResilienceItemName The name of the unified resilience item.
+ * @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 UnifiedResilienceItem along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String serviceGroupName, String unifiedResilienceItemName,
+ Context context);
+
+ /**
+ * Get a UnifiedResilienceItem.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param unifiedResilienceItemName The name of the unified resilience item.
+ * @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 UnifiedResilienceItem.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ UnifiedResilienceItemInner get(String serviceGroupName, String unifiedResilienceItemName);
+
+ /**
+ * List UnifiedResilienceItem resources by tenant.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @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 UnifiedResilienceItem list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName);
+
+ /**
+ * List UnifiedResilienceItem resources by tenant.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @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 UnifiedResilienceItem list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String serviceGroupName, String skipToken, Integer top,
+ Context context);
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/UsagePlansClient.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/UsagePlansClient.java
new file mode 100644
index 000000000000..0d6ec0f91007
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/UsagePlansClient.java
@@ -0,0 +1,269 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.fluent.models.UsagePlanInner;
+import com.azure.resourcemanager.resiliencemanagement.models.UsagePlanTagsUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in UsagePlansClient.
+ */
+public interface UsagePlansClient {
+ /**
+ * Get a UsagePlan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @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 UsagePlan along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String usagePlanName,
+ Context context);
+
+ /**
+ * Get a UsagePlan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @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 UsagePlan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ UsagePlanInner getByResourceGroup(String resourceGroupName, String usagePlanName);
+
+ /**
+ * Create a UsagePlan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a usage plan resource for Resiliency feature billing.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, UsagePlanInner> beginCreateOrUpdate(String resourceGroupName,
+ String usagePlanName, UsagePlanInner resource);
+
+ /**
+ * Create a UsagePlan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a usage plan resource for Resiliency feature billing.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, UsagePlanInner> beginCreateOrUpdate(String resourceGroupName,
+ String usagePlanName, UsagePlanInner resource, Context context);
+
+ /**
+ * Create a UsagePlan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a usage plan resource for Resiliency feature billing.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ UsagePlanInner createOrUpdate(String resourceGroupName, String usagePlanName, UsagePlanInner resource);
+
+ /**
+ * Create a UsagePlan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a usage plan resource for Resiliency feature billing.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ UsagePlanInner createOrUpdate(String resourceGroupName, String usagePlanName, UsagePlanInner resource,
+ Context context);
+
+ /**
+ * Update a UsagePlan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a usage plan resource for Resiliency feature billing.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, UsagePlanInner> beginUpdate(String resourceGroupName, String usagePlanName,
+ UsagePlanTagsUpdate properties);
+
+ /**
+ * Update a UsagePlan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a usage plan resource for Resiliency feature billing.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, UsagePlanInner> beginUpdate(String resourceGroupName, String usagePlanName,
+ UsagePlanTagsUpdate properties, Context context);
+
+ /**
+ * Update a UsagePlan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a usage plan resource for Resiliency feature billing.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ UsagePlanInner update(String resourceGroupName, String usagePlanName, UsagePlanTagsUpdate properties);
+
+ /**
+ * Update a UsagePlan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a usage plan resource for Resiliency feature billing.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ UsagePlanInner update(String resourceGroupName, String usagePlanName, UsagePlanTagsUpdate properties,
+ Context context);
+
+ /**
+ * Delete a UsagePlan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @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 usagePlanName);
+
+ /**
+ * Delete a UsagePlan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @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 usagePlanName, Context context);
+
+ /**
+ * Delete a UsagePlan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @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 usagePlanName);
+
+ /**
+ * Delete a UsagePlan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param usagePlanName The name of the usage plan.
+ * @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 usagePlanName, Context context);
+
+ /**
+ * List UsagePlan resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a UsagePlan list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List UsagePlan resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a UsagePlan list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List UsagePlan resources by subscription ID.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a UsagePlan list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List UsagePlan resources by subscription ID.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a UsagePlan list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/DrillInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/DrillInner.java
new file mode 100644
index 000000000000..f823c9e0d8fc
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/DrillInner.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.resiliencemanagement.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.resiliencemanagement.models.DrillProperties;
+import com.azure.resourcemanager.resiliencemanagement.models.ManagedServiceIdentity;
+import java.io.IOException;
+
+/**
+ * Drill resource.
+ */
+@Fluent
+public final class DrillInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private DrillProperties properties;
+
+ /*
+ * The managed service identities assigned to this resource.
+ */
+ private ManagedServiceIdentity identity;
+
+ /*
+ * 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 DrillInner class.
+ */
+ public DrillInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public DrillProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the DrillInner object itself.
+ */
+ public DrillInner withProperties(DrillProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the identity property: The managed service identities assigned to this resource.
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The managed service identities assigned to this resource.
+ *
+ * @param identity the identity value to set.
+ * @return the DrillInner object itself.
+ */
+ public DrillInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ 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);
+ jsonWriter.writeJsonField("identity", this.identity);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DrillInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DrillInner 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 DrillInner.
+ */
+ public static DrillInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DrillInner deserializedDrillInner = new DrillInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedDrillInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedDrillInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedDrillInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedDrillInner.properties = DrillProperties.fromJson(reader);
+ } else if ("identity".equals(fieldName)) {
+ deserializedDrillInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedDrillInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDrillInner;
+ });
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/DrillResourceInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/DrillResourceInner.java
new file mode 100644
index 000000000000..69db6846d43a
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/DrillResourceInner.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.resiliencemanagement.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.resiliencemanagement.models.DrillResourceProperties;
+import java.io.IOException;
+
+/**
+ * Drill Resource.
+ */
+@Immutable
+public final class DrillResourceInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private DrillResourceProperties 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 DrillResourceInner class.
+ */
+ private DrillResourceInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public DrillResourceProperties 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 DrillResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DrillResourceInner 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 DrillResourceInner.
+ */
+ public static DrillResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DrillResourceInner deserializedDrillResourceInner = new DrillResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedDrillResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedDrillResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedDrillResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedDrillResourceInner.properties = DrillResourceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedDrillResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDrillResourceInner;
+ });
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/DrillRunInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/DrillRunInner.java
new file mode 100644
index 000000000000..5a91962e55f0
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/DrillRunInner.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.resiliencemanagement.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.resiliencemanagement.models.DrillRunProperties;
+import java.io.IOException;
+
+/**
+ * DrillRun resource.
+ */
+@Immutable
+public final class DrillRunInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private DrillRunProperties 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 DrillRunInner class.
+ */
+ private DrillRunInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public DrillRunProperties 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 DrillRunInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DrillRunInner 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 DrillRunInner.
+ */
+ public static DrillRunInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DrillRunInner deserializedDrillRunInner = new DrillRunInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedDrillRunInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedDrillRunInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedDrillRunInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedDrillRunInner.properties = DrillRunProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedDrillRunInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDrillRunInner;
+ });
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/DrillRunResourceInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/DrillRunResourceInner.java
new file mode 100644
index 000000000000..da549f40c455
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/DrillRunResourceInner.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.resiliencemanagement.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.resiliencemanagement.models.DrillRunResourceProperties;
+import java.io.IOException;
+
+/**
+ * Represents a Drill Run job resource in the Azure Resilience Management provider namespace.
+ */
+@Immutable
+public final class DrillRunResourceInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private DrillRunResourceProperties 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 DrillRunResourceInner class.
+ */
+ private DrillRunResourceInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public DrillRunResourceProperties 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 DrillRunResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DrillRunResourceInner 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 DrillRunResourceInner.
+ */
+ public static DrillRunResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DrillRunResourceInner deserializedDrillRunResourceInner = new DrillRunResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedDrillRunResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedDrillRunResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedDrillRunResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedDrillRunResourceInner.properties = DrillRunResourceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedDrillRunResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDrillRunResourceInner;
+ });
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/EnrollmentInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/EnrollmentInner.java
new file mode 100644
index 000000000000..de672fc60499
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/EnrollmentInner.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.resiliencemanagement.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.resiliencemanagement.models.EnrollmentProperties;
+import java.io.IOException;
+
+/**
+ * An enrollment that links a usage plan to a service group.
+ */
+@Fluent
+public final class EnrollmentInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private EnrollmentProperties 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 EnrollmentInner class.
+ */
+ public EnrollmentInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public EnrollmentProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the EnrollmentInner object itself.
+ */
+ public EnrollmentInner withProperties(EnrollmentProperties 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 EnrollmentInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EnrollmentInner 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 EnrollmentInner.
+ */
+ public static EnrollmentInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EnrollmentInner deserializedEnrollmentInner = new EnrollmentInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedEnrollmentInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedEnrollmentInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedEnrollmentInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedEnrollmentInner.properties = EnrollmentProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedEnrollmentInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEnrollmentInner;
+ });
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/GoalAssignmentInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/GoalAssignmentInner.java
new file mode 100644
index 000000000000..e077420bd8e1
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/GoalAssignmentInner.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.resiliencemanagement.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.resiliencemanagement.models.GoalAssignmentProperties;
+import java.io.IOException;
+
+/**
+ * Goal assignment a AzureResilienceProviderHub resource.
+ */
+@Fluent
+public final class GoalAssignmentInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private GoalAssignmentProperties 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 GoalAssignmentInner class.
+ */
+ public GoalAssignmentInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public GoalAssignmentProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the GoalAssignmentInner object itself.
+ */
+ public GoalAssignmentInner withProperties(GoalAssignmentProperties 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 GoalAssignmentInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of GoalAssignmentInner 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 GoalAssignmentInner.
+ */
+ public static GoalAssignmentInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ GoalAssignmentInner deserializedGoalAssignmentInner = new GoalAssignmentInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedGoalAssignmentInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedGoalAssignmentInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedGoalAssignmentInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedGoalAssignmentInner.properties = GoalAssignmentProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedGoalAssignmentInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedGoalAssignmentInner;
+ });
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/GoalResourceInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/GoalResourceInner.java
new file mode 100644
index 000000000000..0e4c881eedc6
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/GoalResourceInner.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.resiliencemanagement.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.resiliencemanagement.models.GoalResourceProperties;
+import java.io.IOException;
+
+/**
+ * Goal Resource a AzureResilienceProviderHub resource.
+ */
+@Fluent
+public final class GoalResourceInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private GoalResourceProperties 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 GoalResourceInner class.
+ */
+ public GoalResourceInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public GoalResourceProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the GoalResourceInner object itself.
+ */
+ public GoalResourceInner withProperties(GoalResourceProperties 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 GoalResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of GoalResourceInner 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 GoalResourceInner.
+ */
+ public static GoalResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ GoalResourceInner deserializedGoalResourceInner = new GoalResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedGoalResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedGoalResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedGoalResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedGoalResourceInner.properties = GoalResourceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedGoalResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedGoalResourceInner;
+ });
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/GoalTemplateInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/GoalTemplateInner.java
new file mode 100644
index 000000000000..cfa5e28081bb
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/GoalTemplateInner.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.resiliencemanagement.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.resiliencemanagement.models.GoalTemplateProperties;
+import java.io.IOException;
+
+/**
+ * Goal template a AzureResilienceProviderHub resource.
+ */
+@Fluent
+public final class GoalTemplateInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private GoalTemplateProperties 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 GoalTemplateInner class.
+ */
+ public GoalTemplateInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public GoalTemplateProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the GoalTemplateInner object itself.
+ */
+ public GoalTemplateInner withProperties(GoalTemplateProperties 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 GoalTemplateInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of GoalTemplateInner 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 GoalTemplateInner.
+ */
+ public static GoalTemplateInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ GoalTemplateInner deserializedGoalTemplateInner = new GoalTemplateInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedGoalTemplateInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedGoalTemplateInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedGoalTemplateInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedGoalTemplateInner.properties = GoalTemplateProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedGoalTemplateInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedGoalTemplateInner;
+ });
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/OperationInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..901d0c7caea7
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/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.resiliencemanagement.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.resiliencemanagement.models.ActionType;
+import com.azure.resourcemanager.resiliencemanagement.models.OperationDisplay;
+import com.azure.resourcemanager.resiliencemanagement.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/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/OperationStatusResultInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/OperationStatusResultInner.java
new file mode 100644
index 000000000000..f17eeaa0a4a3
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/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.resiliencemanagement.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/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/RecoveryJobInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/RecoveryJobInner.java
new file mode 100644
index 000000000000..9c4739a0cf3b
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/RecoveryJobInner.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.resiliencemanagement.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.resiliencemanagement.models.RecoveryJobProperties;
+import java.io.IOException;
+
+/**
+ * Represents a recovery job resource in the Azure Resilience Management provider namespace.
+ */
+@Immutable
+public final class RecoveryJobInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private RecoveryJobProperties 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 RecoveryJobInner class.
+ */
+ private RecoveryJobInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public RecoveryJobProperties 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 RecoveryJobInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RecoveryJobInner 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 RecoveryJobInner.
+ */
+ public static RecoveryJobInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RecoveryJobInner deserializedRecoveryJobInner = new RecoveryJobInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedRecoveryJobInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedRecoveryJobInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedRecoveryJobInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedRecoveryJobInner.properties = RecoveryJobProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedRecoveryJobInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRecoveryJobInner;
+ });
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/RecoveryJobResourceInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/RecoveryJobResourceInner.java
new file mode 100644
index 000000000000..c623eb5ef42b
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/RecoveryJobResourceInner.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.resiliencemanagement.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.resiliencemanagement.models.RecoveryJobResourceProperties;
+import java.io.IOException;
+
+/**
+ * Represents a recovery orchestration job resource in the Azure Resilience Management provider namespace.
+ */
+@Immutable
+public final class RecoveryJobResourceInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private RecoveryJobResourceProperties 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 RecoveryJobResourceInner class.
+ */
+ private RecoveryJobResourceInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public RecoveryJobResourceProperties 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 RecoveryJobResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RecoveryJobResourceInner 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 RecoveryJobResourceInner.
+ */
+ public static RecoveryJobResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RecoveryJobResourceInner deserializedRecoveryJobResourceInner = new RecoveryJobResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedRecoveryJobResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedRecoveryJobResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedRecoveryJobResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedRecoveryJobResourceInner.properties = RecoveryJobResourceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedRecoveryJobResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRecoveryJobResourceInner;
+ });
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/RecoveryPlanActionBaseResponseInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/RecoveryPlanActionBaseResponseInner.java
new file mode 100644
index 000000000000..395f1537254d
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/RecoveryPlanActionBaseResponseInner.java
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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 java.io.IOException;
+
+/**
+ * Recovery Orchestration Plan post action response.
+ */
+@Immutable
+public final class RecoveryPlanActionBaseResponseInner
+ implements JsonSerializable {
+ /*
+ * JobId of the job triggered for Recovery Orchestration Plan.
+ */
+ private String jobId;
+
+ /**
+ * Creates an instance of RecoveryPlanActionBaseResponseInner class.
+ */
+ private RecoveryPlanActionBaseResponseInner() {
+ }
+
+ /**
+ * Get the jobId property: JobId of the job triggered for Recovery Orchestration Plan.
+ *
+ * @return the jobId value.
+ */
+ public String jobId() {
+ return this.jobId;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("jobId", this.jobId);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RecoveryPlanActionBaseResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RecoveryPlanActionBaseResponseInner 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 RecoveryPlanActionBaseResponseInner.
+ */
+ public static RecoveryPlanActionBaseResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RecoveryPlanActionBaseResponseInner deserializedRecoveryPlanActionBaseResponseInner
+ = new RecoveryPlanActionBaseResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("jobId".equals(fieldName)) {
+ deserializedRecoveryPlanActionBaseResponseInner.jobId = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRecoveryPlanActionBaseResponseInner;
+ });
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/RecoveryPlanInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/RecoveryPlanInner.java
new file mode 100644
index 000000000000..8d10b54d680a
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/RecoveryPlanInner.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.resiliencemanagement.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.resiliencemanagement.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.resiliencemanagement.models.RecoveryPlanProperties;
+import java.io.IOException;
+
+/**
+ * Represents a recovery orchestration plan resource in the Azure Resilience Management provider namespace.
+ */
+@Fluent
+public final class RecoveryPlanInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private RecoveryPlanProperties properties;
+
+ /*
+ * The managed service identities assigned to this resource.
+ */
+ private ManagedServiceIdentity identity;
+
+ /*
+ * 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 RecoveryPlanInner class.
+ */
+ public RecoveryPlanInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public RecoveryPlanProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the RecoveryPlanInner object itself.
+ */
+ public RecoveryPlanInner withProperties(RecoveryPlanProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the identity property: The managed service identities assigned to this resource.
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The managed service identities assigned to this resource.
+ *
+ * @param identity the identity value to set.
+ * @return the RecoveryPlanInner object itself.
+ */
+ public RecoveryPlanInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ 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);
+ jsonWriter.writeJsonField("identity", this.identity);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RecoveryPlanInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RecoveryPlanInner 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 RecoveryPlanInner.
+ */
+ public static RecoveryPlanInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RecoveryPlanInner deserializedRecoveryPlanInner = new RecoveryPlanInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedRecoveryPlanInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedRecoveryPlanInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedRecoveryPlanInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedRecoveryPlanInner.properties = RecoveryPlanProperties.fromJson(reader);
+ } else if ("identity".equals(fieldName)) {
+ deserializedRecoveryPlanInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedRecoveryPlanInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRecoveryPlanInner;
+ });
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/RecoveryResourceInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/RecoveryResourceInner.java
new file mode 100644
index 000000000000..201d12b7ab7f
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/RecoveryResourceInner.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.resiliencemanagement.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.resiliencemanagement.models.RecoveryResourceProperties;
+import java.io.IOException;
+
+/**
+ * RecoveryPlan Resource a AzureResilienceProviderHub resource.
+ */
+@Fluent
+public final class RecoveryResourceInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private RecoveryResourceProperties 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 RecoveryResourceInner class.
+ */
+ public RecoveryResourceInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public RecoveryResourceProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the RecoveryResourceInner object itself.
+ */
+ public RecoveryResourceInner withProperties(RecoveryResourceProperties 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 RecoveryResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RecoveryResourceInner 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 RecoveryResourceInner.
+ */
+ public static RecoveryResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RecoveryResourceInner deserializedRecoveryResourceInner = new RecoveryResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedRecoveryResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedRecoveryResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedRecoveryResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedRecoveryResourceInner.properties = RecoveryResourceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedRecoveryResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRecoveryResourceInner;
+ });
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/RecoveryResourceQualificationInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/RecoveryResourceQualificationInner.java
new file mode 100644
index 000000000000..fc9ba964a3cd
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/RecoveryResourceQualificationInner.java
@@ -0,0 +1,96 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.models.OperationQualificationDetails;
+import java.io.IOException;
+
+/**
+ * Details of resource and its qualification for an operation.
+ */
+@Immutable
+public final class RecoveryResourceQualificationInner implements JsonSerializable {
+ /*
+ * Recovery orchestration resource.
+ */
+ private RecoveryResourceInner recoveryResource;
+
+ /*
+ * Details of qualification for the operation.
+ */
+ private OperationQualificationDetails operationQualificationDetails;
+
+ /**
+ * Creates an instance of RecoveryResourceQualificationInner class.
+ */
+ private RecoveryResourceQualificationInner() {
+ }
+
+ /**
+ * Get the recoveryResource property: Recovery orchestration resource.
+ *
+ * @return the recoveryResource value.
+ */
+ public RecoveryResourceInner recoveryResource() {
+ return this.recoveryResource;
+ }
+
+ /**
+ * Get the operationQualificationDetails property: Details of qualification for the operation.
+ *
+ * @return the operationQualificationDetails value.
+ */
+ public OperationQualificationDetails operationQualificationDetails() {
+ return this.operationQualificationDetails;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("recoveryResource", this.recoveryResource);
+ jsonWriter.writeJsonField("operationQualificationDetails", this.operationQualificationDetails);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RecoveryResourceQualificationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RecoveryResourceQualificationInner 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 RecoveryResourceQualificationInner.
+ */
+ public static RecoveryResourceQualificationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RecoveryResourceQualificationInner deserializedRecoveryResourceQualificationInner
+ = new RecoveryResourceQualificationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("recoveryResource".equals(fieldName)) {
+ deserializedRecoveryResourceQualificationInner.recoveryResource
+ = RecoveryResourceInner.fromJson(reader);
+ } else if ("operationQualificationDetails".equals(fieldName)) {
+ deserializedRecoveryResourceQualificationInner.operationQualificationDetails
+ = OperationQualificationDetails.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRecoveryResourceQualificationInner;
+ });
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/UnifiedResilienceItemInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/UnifiedResilienceItemInner.java
new file mode 100644
index 000000000000..afdb7c0feda6
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/UnifiedResilienceItemInner.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.resiliencemanagement.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.resiliencemanagement.models.UnifiedResilienceItemProperties;
+import java.io.IOException;
+
+/**
+ * A unified resilience item represents a computed and aggregated resilience information of Azure Applications.
+ */
+@Immutable
+public final class UnifiedResilienceItemInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private UnifiedResilienceItemProperties 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 UnifiedResilienceItemInner class.
+ */
+ private UnifiedResilienceItemInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public UnifiedResilienceItemProperties 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 UnifiedResilienceItemInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of UnifiedResilienceItemInner 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 UnifiedResilienceItemInner.
+ */
+ public static UnifiedResilienceItemInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ UnifiedResilienceItemInner deserializedUnifiedResilienceItemInner = new UnifiedResilienceItemInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedUnifiedResilienceItemInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedUnifiedResilienceItemInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedUnifiedResilienceItemInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedUnifiedResilienceItemInner.properties
+ = UnifiedResilienceItemProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedUnifiedResilienceItemInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedUnifiedResilienceItemInner;
+ });
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/UpdateRecoveryResourcesResponseInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/UpdateRecoveryResourcesResponseInner.java
new file mode 100644
index 000000000000..2203f85819c8
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/UpdateRecoveryResourcesResponseInner.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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 java.io.IOException;
+import java.util.List;
+
+/**
+ * RecoveryResources post action request to update in batch.
+ */
+@Immutable
+public final class UpdateRecoveryResourcesResponseInner
+ implements JsonSerializable {
+ /*
+ * A list of error details associated with resources for which the update has failed.
+ */
+ private List failedResources;
+
+ /**
+ * Creates an instance of UpdateRecoveryResourcesResponseInner class.
+ */
+ private UpdateRecoveryResourcesResponseInner() {
+ }
+
+ /**
+ * Get the failedResources property: A list of error details associated with resources for which the update has
+ * failed.
+ *
+ * @return the failedResources value.
+ */
+ public List failedResources() {
+ return this.failedResources;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("failedResources", this.failedResources,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of UpdateRecoveryResourcesResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of UpdateRecoveryResourcesResponseInner 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 UpdateRecoveryResourcesResponseInner.
+ */
+ public static UpdateRecoveryResourcesResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ UpdateRecoveryResourcesResponseInner deserializedUpdateRecoveryResourcesResponseInner
+ = new UpdateRecoveryResourcesResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("failedResources".equals(fieldName)) {
+ List failedResources
+ = reader.readArray(reader1 -> RecoveryResourceInner.fromJson(reader1));
+ deserializedUpdateRecoveryResourcesResponseInner.failedResources = failedResources;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedUpdateRecoveryResourcesResponseInner;
+ });
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/UsagePlanInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/UsagePlanInner.java
new file mode 100644
index 000000000000..f4ded5f4caa6
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/UsagePlanInner.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.resiliencemanagement.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.resiliencemanagement.models.UsagePlanProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * A usage plan resource for Resiliency feature billing.
+ */
+@Fluent
+public final class UsagePlanInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private UsagePlanProperties 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 UsagePlanInner class.
+ */
+ public UsagePlanInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public UsagePlanProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the UsagePlanInner object itself.
+ */
+ public UsagePlanInner withProperties(UsagePlanProperties 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 UsagePlanInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public UsagePlanInner 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 UsagePlanInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of UsagePlanInner 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 UsagePlanInner.
+ */
+ public static UsagePlanInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ UsagePlanInner deserializedUsagePlanInner = new UsagePlanInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedUsagePlanInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedUsagePlanInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedUsagePlanInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedUsagePlanInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedUsagePlanInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedUsagePlanInner.properties = UsagePlanProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedUsagePlanInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedUsagePlanInner;
+ });
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/ValidateForRecoveryOperationBaseResponseInner.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/ValidateForRecoveryOperationBaseResponseInner.java
new file mode 100644
index 000000000000..7d7053401f14
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/ValidateForRecoveryOperationBaseResponseInner.java
@@ -0,0 +1,82 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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 java.io.IOException;
+import java.util.List;
+
+/**
+ * ValidateForRecoveryOperation post action response.
+ */
+@Immutable
+public final class ValidateForRecoveryOperationBaseResponseInner
+ implements JsonSerializable {
+ /*
+ * Qualification details of resources for the operation.
+ */
+ private List recoveryResourceQualifications;
+
+ /**
+ * Creates an instance of ValidateForRecoveryOperationBaseResponseInner class.
+ */
+ private ValidateForRecoveryOperationBaseResponseInner() {
+ }
+
+ /**
+ * Get the recoveryResourceQualifications property: Qualification details of resources for the operation.
+ *
+ * @return the recoveryResourceQualifications value.
+ */
+ public List recoveryResourceQualifications() {
+ return this.recoveryResourceQualifications;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("recoveryResourceQualifications", this.recoveryResourceQualifications,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ValidateForRecoveryOperationBaseResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ValidateForRecoveryOperationBaseResponseInner 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 ValidateForRecoveryOperationBaseResponseInner.
+ */
+ public static ValidateForRecoveryOperationBaseResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ValidateForRecoveryOperationBaseResponseInner deserializedValidateForRecoveryOperationBaseResponseInner
+ = new ValidateForRecoveryOperationBaseResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("recoveryResourceQualifications".equals(fieldName)) {
+ List recoveryResourceQualifications
+ = reader.readArray(reader1 -> RecoveryResourceQualificationInner.fromJson(reader1));
+ deserializedValidateForRecoveryOperationBaseResponseInner.recoveryResourceQualifications
+ = recoveryResourceQualifications;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedValidateForRecoveryOperationBaseResponseInner;
+ });
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/package-info.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/package-info.java
new file mode 100644
index 000000000000..3e4783291af6
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/models/package-info.java
@@ -0,0 +1,8 @@
+// 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 ResilienceManagement.
+ */
+package com.azure.resourcemanager.resiliencemanagement.fluent.models;
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/package-info.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/package-info.java
new file mode 100644
index 000000000000..89f46ee6533b
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/fluent/package-info.java
@@ -0,0 +1,8 @@
+// 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 ResilienceManagement.
+ */
+package com.azure.resourcemanager.resiliencemanagement.fluent;
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillImpl.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillImpl.java
new file mode 100644
index 000000000000..0f75bc759d6b
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillImpl.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.resiliencemanagement.fluent.models.DrillInner;
+import com.azure.resourcemanager.resiliencemanagement.models.Drill;
+import com.azure.resourcemanager.resiliencemanagement.models.DrillProperties;
+import com.azure.resourcemanager.resiliencemanagement.models.ManagedServiceIdentity;
+
+public final class DrillImpl implements Drill {
+ private DrillInner innerObject;
+
+ private final com.azure.resourcemanager.resiliencemanagement.ResilienceManagementManager serviceManager;
+
+ DrillImpl(DrillInner innerObject,
+ com.azure.resourcemanager.resiliencemanagement.ResilienceManagementManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public DrillProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public DrillInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.resiliencemanagement.ResilienceManagementManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillResourceImpl.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillResourceImpl.java
new file mode 100644
index 000000000000..1770c1b41f2d
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillResourceImpl.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.resiliencemanagement.fluent.models.DrillResourceInner;
+import com.azure.resourcemanager.resiliencemanagement.models.DrillResource;
+import com.azure.resourcemanager.resiliencemanagement.models.DrillResourceProperties;
+
+public final class DrillResourceImpl implements DrillResource {
+ private DrillResourceInner innerObject;
+
+ private final com.azure.resourcemanager.resiliencemanagement.ResilienceManagementManager serviceManager;
+
+ DrillResourceImpl(DrillResourceInner innerObject,
+ com.azure.resourcemanager.resiliencemanagement.ResilienceManagementManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public DrillResourceProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public DrillResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.resiliencemanagement.ResilienceManagementManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillResourcesClientImpl.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillResourcesClientImpl.java
new file mode 100644
index 000000000000..a8f0ce73601b
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillResourcesClientImpl.java
@@ -0,0 +1,390 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.fluent.DrillResourcesClient;
+import com.azure.resourcemanager.resiliencemanagement.fluent.models.DrillResourceInner;
+import com.azure.resourcemanager.resiliencemanagement.implementation.models.DrillResourceListResult;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in DrillResourcesClient.
+ */
+public final class DrillResourcesClientImpl implements DrillResourcesClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final DrillResourcesService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ResilienceManagementManagementClientImpl client;
+
+ /**
+ * Initializes an instance of DrillResourcesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ DrillResourcesClientImpl(ResilienceManagementManagementClientImpl client) {
+ this.service
+ = RestProxy.create(DrillResourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ResilienceManagementManagementClientDrillResources to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "ResilienceManagementManagementClientDrillResources")
+ public interface DrillResourcesService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillResources/{drillResourceName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("endpoint") String endpoint,
+ @PathParam("serviceGroupName") String serviceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("drillName") String drillName, @PathParam("drillResourceName") String drillResourceName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillResources/{drillResourceName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getSync(@HostParam("endpoint") String endpoint,
+ @PathParam("serviceGroupName") String serviceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("drillName") String drillName, @PathParam("drillResourceName") String drillResourceName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillResources")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @PathParam("serviceGroupName") String serviceGroupName, @QueryParam("api-version") String apiVersion,
+ @QueryParam("$skipToken") String skipToken, @QueryParam("$top") Integer top,
+ @PathParam("drillName") String drillName, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillResources")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSync(@HostParam("endpoint") String endpoint,
+ @PathParam("serviceGroupName") String serviceGroupName, @QueryParam("api-version") String apiVersion,
+ @QueryParam("$skipToken") String skipToken, @QueryParam("$top") Integer top,
+ @PathParam("drillName") String drillName, @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);
+ }
+
+ /**
+ * Get a DrillResource.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillResourceName The name of the DrillResource (GUID).
+ * @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 DrillResource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String serviceGroupName, String drillName,
+ String drillResourceName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), serviceGroupName,
+ this.client.getApiVersion(), drillName, drillResourceName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a DrillResource.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillResourceName The name of the DrillResource (GUID).
+ * @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 DrillResource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String serviceGroupName, String drillName, String drillResourceName) {
+ return getWithResponseAsync(serviceGroupName, drillName, drillResourceName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a DrillResource.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillResourceName The name of the DrillResource (GUID).
+ * @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 DrillResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String serviceGroupName, String drillName,
+ String drillResourceName, Context context) {
+ final String accept = "application/json";
+ return service.getSync(this.client.getEndpoint(), serviceGroupName, this.client.getApiVersion(), drillName,
+ drillResourceName, accept, context);
+ }
+
+ /**
+ * Get a DrillResource.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillResourceName The name of the DrillResource (GUID).
+ * @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 DrillResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DrillResourceInner get(String serviceGroupName, String drillName, String drillResourceName) {
+ return getWithResponse(serviceGroupName, drillName, drillResourceName, Context.NONE).getValue();
+ }
+
+ /**
+ * List DrillResource resources by Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @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 DrillResource list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String serviceGroupName, String drillName,
+ String skipToken, Integer top) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), serviceGroupName,
+ this.client.getApiVersion(), skipToken, top, drillName, 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 DrillResource resources by Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @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 DrillResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String serviceGroupName, String drillName, String skipToken,
+ Integer top) {
+ return new PagedFlux<>(() -> listSinglePageAsync(serviceGroupName, drillName, skipToken, top),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List DrillResource resources by Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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 DrillResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String serviceGroupName, String drillName) {
+ final String skipToken = null;
+ final Integer top = null;
+ return new PagedFlux<>(() -> listSinglePageAsync(serviceGroupName, drillName, skipToken, top),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List DrillResource resources by Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @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 DrillResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(String serviceGroupName, String drillName,
+ String skipToken, Integer top) {
+ final String accept = "application/json";
+ Response res = service.listSync(this.client.getEndpoint(), serviceGroupName,
+ this.client.getApiVersion(), skipToken, top, drillName, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List DrillResource resources by Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @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 DrillResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(String serviceGroupName, String drillName,
+ String skipToken, Integer top, Context context) {
+ final String accept = "application/json";
+ Response res = service.listSync(this.client.getEndpoint(), serviceGroupName,
+ this.client.getApiVersion(), skipToken, top, drillName, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List DrillResource resources by Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @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 DrillResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String serviceGroupName, String drillName) {
+ final String skipToken = null;
+ final Integer top = null;
+ return new PagedIterable<>(() -> listSinglePage(serviceGroupName, drillName, skipToken, top),
+ nextLink -> listNextSinglePage(nextLink));
+ }
+
+ /**
+ * List DrillResource resources by Drill.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param skipToken Skip over when retrieving results.
+ * @param top Number of elements to return when retrieving results.
+ * @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 DrillResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String serviceGroupName, String drillName, String skipToken,
+ Integer top, Context context) {
+ return new PagedIterable<>(() -> listSinglePage(serviceGroupName, drillName, skipToken, top, context),
+ nextLink -> listNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a DrillResource list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a DrillResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a DrillResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillResourcesImpl.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillResourcesImpl.java
new file mode 100644
index 000000000000..9a7afb9877e8
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillResourcesImpl.java
@@ -0,0 +1,66 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.fluent.DrillResourcesClient;
+import com.azure.resourcemanager.resiliencemanagement.fluent.models.DrillResourceInner;
+import com.azure.resourcemanager.resiliencemanagement.models.DrillResource;
+import com.azure.resourcemanager.resiliencemanagement.models.DrillResources;
+
+public final class DrillResourcesImpl implements DrillResources {
+ private static final ClientLogger LOGGER = new ClientLogger(DrillResourcesImpl.class);
+
+ private final DrillResourcesClient innerClient;
+
+ private final com.azure.resourcemanager.resiliencemanagement.ResilienceManagementManager serviceManager;
+
+ public DrillResourcesImpl(DrillResourcesClient innerClient,
+ com.azure.resourcemanager.resiliencemanagement.ResilienceManagementManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(String serviceGroupName, String drillName, String drillResourceName,
+ Context context) {
+ Response inner
+ = this.serviceClient().getWithResponse(serviceGroupName, drillName, drillResourceName, context);
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new DrillResourceImpl(inner.getValue(), this.manager()));
+ }
+
+ public DrillResource get(String serviceGroupName, String drillName, String drillResourceName) {
+ DrillResourceInner inner = this.serviceClient().get(serviceGroupName, drillName, drillResourceName);
+ if (inner != null) {
+ return new DrillResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public PagedIterable list(String serviceGroupName, String drillName) {
+ PagedIterable inner = this.serviceClient().list(serviceGroupName, drillName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new DrillResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String serviceGroupName, String drillName, String skipToken, Integer top,
+ Context context) {
+ PagedIterable inner
+ = this.serviceClient().list(serviceGroupName, drillName, skipToken, top, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new DrillResourceImpl(inner1, this.manager()));
+ }
+
+ private DrillResourcesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.resiliencemanagement.ResilienceManagementManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillRunImpl.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillRunImpl.java
new file mode 100644
index 000000000000..83c1948e2e15
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillRunImpl.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.resiliencemanagement.fluent.models.DrillRunInner;
+import com.azure.resourcemanager.resiliencemanagement.models.DrillRun;
+import com.azure.resourcemanager.resiliencemanagement.models.DrillRunProperties;
+
+public final class DrillRunImpl implements DrillRun {
+ private DrillRunInner innerObject;
+
+ private final com.azure.resourcemanager.resiliencemanagement.ResilienceManagementManager serviceManager;
+
+ DrillRunImpl(DrillRunInner innerObject,
+ com.azure.resourcemanager.resiliencemanagement.ResilienceManagementManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public DrillRunProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public DrillRunInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.resiliencemanagement.ResilienceManagementManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillRunResourceImpl.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillRunResourceImpl.java
new file mode 100644
index 000000000000..6d18779dfa99
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillRunResourceImpl.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.resiliencemanagement.fluent.models.DrillRunResourceInner;
+import com.azure.resourcemanager.resiliencemanagement.models.DrillRunResource;
+import com.azure.resourcemanager.resiliencemanagement.models.DrillRunResourceProperties;
+
+public final class DrillRunResourceImpl implements DrillRunResource {
+ private DrillRunResourceInner innerObject;
+
+ private final com.azure.resourcemanager.resiliencemanagement.ResilienceManagementManager serviceManager;
+
+ DrillRunResourceImpl(DrillRunResourceInner innerObject,
+ com.azure.resourcemanager.resiliencemanagement.ResilienceManagementManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public DrillRunResourceProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public DrillRunResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.resiliencemanagement.ResilienceManagementManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillRunResourcesClientImpl.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillRunResourcesClientImpl.java
new file mode 100644
index 000000000000..a25b04968f69
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillRunResourcesClientImpl.java
@@ -0,0 +1,376 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.fluent.DrillRunResourcesClient;
+import com.azure.resourcemanager.resiliencemanagement.fluent.models.DrillRunResourceInner;
+import com.azure.resourcemanager.resiliencemanagement.implementation.models.DrillRunResourceListResult;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in DrillRunResourcesClient.
+ */
+public final class DrillRunResourcesClientImpl implements DrillRunResourcesClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final DrillRunResourcesService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ResilienceManagementManagementClientImpl client;
+
+ /**
+ * Initializes an instance of DrillRunResourcesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ DrillRunResourcesClientImpl(ResilienceManagementManagementClientImpl client) {
+ this.service
+ = RestProxy.create(DrillRunResourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ResilienceManagementManagementClientDrillRunResources to be used by
+ * the proxy service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "ResilienceManagementManagementClientDrillRunResources")
+ public interface DrillRunResourcesService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillRuns/{drillRunName}/drillRunResources/{drillRunResourceName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("endpoint") String endpoint,
+ @PathParam("serviceGroupName") String serviceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("drillName") String drillName, @PathParam("drillRunName") String drillRunName,
+ @PathParam("drillRunResourceName") String drillRunResourceName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillRuns/{drillRunName}/drillRunResources/{drillRunResourceName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getSync(@HostParam("endpoint") String endpoint,
+ @PathParam("serviceGroupName") String serviceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("drillName") String drillName, @PathParam("drillRunName") String drillRunName,
+ @PathParam("drillRunResourceName") String drillRunResourceName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillRuns/{drillRunName}/drillRunResources")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @PathParam("serviceGroupName") String serviceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("drillName") String drillName, @PathParam("drillRunName") String drillRunName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillRuns/{drillRunName}/drillRunResources")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSync(@HostParam("endpoint") String endpoint,
+ @PathParam("serviceGroupName") String serviceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("drillName") String drillName, @PathParam("drillRunName") String drillRunName,
+ @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);
+ }
+
+ /**
+ * Get a DrillRunResource.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @param drillRunResourceName The unique name (GUID) of the recovery job resource.
+ * @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 DrillRunResource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String serviceGroupName, String drillName,
+ String drillRunName, String drillRunResourceName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), serviceGroupName,
+ this.client.getApiVersion(), drillName, drillRunName, drillRunResourceName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a DrillRunResource.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @param drillRunResourceName The unique name (GUID) of the recovery job resource.
+ * @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 DrillRunResource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String serviceGroupName, String drillName, String drillRunName,
+ String drillRunResourceName) {
+ return getWithResponseAsync(serviceGroupName, drillName, drillRunName, drillRunResourceName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a DrillRunResource.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @param drillRunResourceName The unique name (GUID) of the recovery job resource.
+ * @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 DrillRunResource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String serviceGroupName, String drillName,
+ String drillRunName, String drillRunResourceName, Context context) {
+ final String accept = "application/json";
+ return service.getSync(this.client.getEndpoint(), serviceGroupName, this.client.getApiVersion(), drillName,
+ drillRunName, drillRunResourceName, accept, context);
+ }
+
+ /**
+ * Get a DrillRunResource.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @param drillRunResourceName The unique name (GUID) of the recovery job resource.
+ * @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 DrillRunResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DrillRunResourceInner get(String serviceGroupName, String drillName, String drillRunName,
+ String drillRunResourceName) {
+ return getWithResponse(serviceGroupName, drillName, drillRunName, drillRunResourceName, Context.NONE)
+ .getValue();
+ }
+
+ /**
+ * List DrillRunResource resources by DrillRun.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @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 DrillRunResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String serviceGroupName, String drillName,
+ String drillRunName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), serviceGroupName,
+ this.client.getApiVersion(), drillName, drillRunName, 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 DrillRunResource resources by DrillRun.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @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 DrillRunResource list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String serviceGroupName, String drillName, String drillRunName) {
+ return new PagedFlux<>(() -> listSinglePageAsync(serviceGroupName, drillName, drillRunName),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List DrillRunResource resources by DrillRun.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @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 DrillRunResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(String serviceGroupName, String drillName,
+ String drillRunName) {
+ final String accept = "application/json";
+ Response res = service.listSync(this.client.getEndpoint(), serviceGroupName,
+ this.client.getApiVersion(), drillName, drillRunName, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List DrillRunResource resources by DrillRun.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @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 DrillRunResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(String serviceGroupName, String drillName,
+ String drillRunName, Context context) {
+ final String accept = "application/json";
+ Response res = service.listSync(this.client.getEndpoint(), serviceGroupName,
+ this.client.getApiVersion(), drillName, drillRunName, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List DrillRunResource resources by DrillRun.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @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 DrillRunResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String serviceGroupName, String drillName, String drillRunName) {
+ return new PagedIterable<>(() -> listSinglePage(serviceGroupName, drillName, drillRunName),
+ nextLink -> listNextSinglePage(nextLink));
+ }
+
+ /**
+ * List DrillRunResource resources by DrillRun.
+ *
+ * @param serviceGroupName The name of the service group.
+ * @param drillName The name of the Drill.
+ * @param drillRunName The name of the DrillRun (GUID).
+ * @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 DrillRunResource list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String serviceGroupName, String drillName, String drillRunName,
+ Context context) {
+ return new PagedIterable<>(() -> listSinglePage(serviceGroupName, drillName, drillRunName, context),
+ nextLink -> listNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a DrillRunResource list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a DrillRunResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a DrillRunResource list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillRunResourcesImpl.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillRunResourcesImpl.java
new file mode 100644
index 000000000000..e0cb88bb661d
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillRunResourcesImpl.java
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.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.resiliencemanagement.fluent.DrillRunResourcesClient;
+import com.azure.resourcemanager.resiliencemanagement.fluent.models.DrillRunResourceInner;
+import com.azure.resourcemanager.resiliencemanagement.models.DrillRunResource;
+import com.azure.resourcemanager.resiliencemanagement.models.DrillRunResources;
+
+public final class DrillRunResourcesImpl implements DrillRunResources {
+ private static final ClientLogger LOGGER = new ClientLogger(DrillRunResourcesImpl.class);
+
+ private final DrillRunResourcesClient innerClient;
+
+ private final com.azure.resourcemanager.resiliencemanagement.ResilienceManagementManager serviceManager;
+
+ public DrillRunResourcesImpl(DrillRunResourcesClient innerClient,
+ com.azure.resourcemanager.resiliencemanagement.ResilienceManagementManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(String serviceGroupName, String drillName, String drillRunName,
+ String drillRunResourceName, Context context) {
+ Response inner = this.serviceClient()
+ .getWithResponse(serviceGroupName, drillName, drillRunName, drillRunResourceName, context);
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new DrillRunResourceImpl(inner.getValue(), this.manager()));
+ }
+
+ public DrillRunResource get(String serviceGroupName, String drillName, String drillRunName,
+ String drillRunResourceName) {
+ DrillRunResourceInner inner
+ = this.serviceClient().get(serviceGroupName, drillName, drillRunName, drillRunResourceName);
+ if (inner != null) {
+ return new DrillRunResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public PagedIterable list(String serviceGroupName, String drillName, String drillRunName) {
+ PagedIterable inner
+ = this.serviceClient().list(serviceGroupName, drillName, drillRunName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new DrillRunResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String serviceGroupName, String drillName, String drillRunName,
+ Context context) {
+ PagedIterable inner
+ = this.serviceClient().list(serviceGroupName, drillName, drillRunName, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new DrillRunResourceImpl(inner1, this.manager()));
+ }
+
+ private DrillRunResourcesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.resiliencemanagement.ResilienceManagementManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillRunsClientImpl.java b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillRunsClientImpl.java
new file mode 100644
index 000000000000..158748f132ca
--- /dev/null
+++ b/sdk/azureresiliencemanagement/azure-resourcemanager-resiliencemanagement/src/main/java/com/azure/resourcemanager/resiliencemanagement/implementation/DrillRunsClientImpl.java
@@ -0,0 +1,1390 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.resiliencemanagement.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.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.resiliencemanagement.fluent.DrillRunsClient;
+import com.azure.resourcemanager.resiliencemanagement.fluent.models.DrillRunInner;
+import com.azure.resourcemanager.resiliencemanagement.implementation.models.DrillRunListResult;
+import com.azure.resourcemanager.resiliencemanagement.models.DrillRunAddNotesRequest;
+import com.azure.resourcemanager.resiliencemanagement.models.DrillRunFailoverRequest;
+import com.azure.resourcemanager.resiliencemanagement.models.MarkAsCompleteRequest;
+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 DrillRunsClient.
+ */
+public final class DrillRunsClientImpl implements DrillRunsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final DrillRunsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ResilienceManagementManagementClientImpl client;
+
+ /**
+ * Initializes an instance of DrillRunsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ DrillRunsClientImpl(ResilienceManagementManagementClientImpl client) {
+ this.service
+ = RestProxy.create(DrillRunsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ResilienceManagementManagementClientDrillRuns to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "ResilienceManagementManagementClientDrillRuns")
+ public interface DrillRunsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillRuns/{drillRunName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("endpoint") String endpoint,
+ @PathParam("serviceGroupName") String serviceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("drillName") String drillName, @PathParam("drillRunName") String drillRunName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillRuns/{drillRunName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getSync(@HostParam("endpoint") String endpoint,
+ @PathParam("serviceGroupName") String serviceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("drillName") String drillName, @PathParam("drillRunName") String drillRunName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillRuns")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @PathParam("serviceGroupName") String serviceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("drillName") String drillName, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillRuns")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSync(@HostParam("endpoint") String endpoint,
+ @PathParam("serviceGroupName") String serviceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("drillName") String drillName, @HeaderParam("Accept") String accept, Context context);
+
+ @Post("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillRuns/{drillRunName}/failOver")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> failOver(@HostParam("endpoint") String endpoint,
+ @PathParam("serviceGroupName") String serviceGroupName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("operation-id") String operationId, @PathParam("drillName") String drillName,
+ @PathParam("drillRunName") String drillRunName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") DrillRunFailoverRequest body,
+ Context context);
+
+ @Post("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillRuns/{drillRunName}/failOver")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response failOverSync(@HostParam("endpoint") String endpoint,
+ @PathParam("serviceGroupName") String serviceGroupName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("operation-id") String operationId, @PathParam("drillName") String drillName,
+ @PathParam("drillRunName") String drillRunName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") DrillRunFailoverRequest body,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillRuns/{drillRunName}/reprotect")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> reprotect(@HostParam("endpoint") String endpoint,
+ @PathParam("serviceGroupName") String serviceGroupName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("operation-id") String operationId, @PathParam("drillName") String drillName,
+ @PathParam("drillRunName") String drillRunName, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillRuns/{drillRunName}/reprotect")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response reprotectSync(@HostParam("endpoint") String endpoint,
+ @PathParam("serviceGroupName") String serviceGroupName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("operation-id") String operationId, @PathParam("drillName") String drillName,
+ @PathParam("drillRunName") String drillRunName, @HeaderParam("Accept") String accept, Context context);
+
+ @Post("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillRuns/{drillRunName}/addNotes")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> addNotes(@HostParam("endpoint") String endpoint,
+ @PathParam("serviceGroupName") String serviceGroupName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("operation-id") String operationId, @PathParam("drillName") String drillName,
+ @PathParam("drillRunName") String drillRunName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") DrillRunAddNotesRequest body,
+ Context context);
+
+ @Post("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillRuns/{drillRunName}/addNotes")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response addNotesSync(@HostParam("endpoint") String endpoint,
+ @PathParam("serviceGroupName") String serviceGroupName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("operation-id") String operationId, @PathParam("drillName") String drillName,
+ @PathParam("drillRunName") String drillRunName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") DrillRunAddNotesRequest body,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/providers/Microsoft.AzureResilienceManagement/drills/{drillName}/drillRuns/{drillRunName}/resume")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono