diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 38b2ee55a7f0..9529ea6f5e01 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -292,6 +292,7 @@ com.azure.resourcemanager:azure-resourcemanager-managedapplications;1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-videoanalyzer;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-maps;1.0.0-beta.1;1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-imagebuilder;1.0.0-beta.1;1.0.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-storagesync;1.0.0-beta.1;1.0.0-beta.1
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
# version. Unreleased dependencies are only valid for dependency versions.
diff --git a/pom.xml b/pom.xml
index f0103afe9662..7bd4462ca48f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -795,6 +795,7 @@
sdk/storagesdk/storagecachesdk/storageimportexport
+ sdk/storagesyncsdk/streamanalyticssdk/subscriptionsdk/support
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/CHANGELOG.md b/sdk/storagesync/azure-resourcemanager-storagesync/CHANGELOG.md
new file mode 100644
index 000000000000..2629987fc248
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2021-05-13)
+
+- Azure Resource Manager Storagesync client library for Java. This package contains Microsoft Azure SDK for Storagesync Management SDK. Microsoft Storage Sync Service API. Package tag package-2020-09-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/README.md b/sdk/storagesync/azure-resourcemanager-storagesync/README.md
new file mode 100644
index 000000000000..44c19f016fb2
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/README.md
@@ -0,0 +1,99 @@
+# Azure Resource Manager Storagesync client library for Java
+
+Azure Resource Manager Storagesync client library for Java.
+
+This package contains Microsoft Azure SDK for Storagesync Management SDK. Microsoft Storage Sync Service API. Package tag package-2020-09-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+## We'd love to hear your feedback
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-storagesync;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-storagesync
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Include the recommended packages
+
+Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
+
+[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+
+### Authentication
+
+By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
+
+- `AZURE_CLIENT_ID` for Azure client ID.
+- `AZURE_TENANT_ID` for Azure tenant ID.
+- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+
+In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
+
+With above configuration, `azure` client can be authenticated by following code:
+
+```java
+AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+TokenCredential credential = new DefaultAzureCredentialBuilder()
+ .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
+ .build();
+StoragesyncManager manager = StoragesyncManager
+ .authenticate(credential, profile);
+```
+
+The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+
+See [Authentication][authenticate] for more options.
+
+## Key concepts
+
+See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
+
+## Examples
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/master/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/pom.xml b/sdk/storagesync/azure-resourcemanager-storagesync/pom.xml
new file mode 100644
index 000000000000..1b8658664f4c
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/pom.xml
@@ -0,0 +1,67 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-storagesync
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for Storagesync Management
+ This package contains Microsoft Azure SDK for Storagesync Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft Storage Sync Service API. Package tag package-2020-09-01.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+
+
+
+
+ com.azure
+ azure-core
+ 1.16.0
+
+
+ com.azure
+ azure-core-management
+ 1.2.2
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+ true
+
+
+
+
+
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/StoragesyncManager.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/StoragesyncManager.java
new file mode 100644
index 000000000000..36ed3a8ee4de
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/StoragesyncManager.java
@@ -0,0 +1,325 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync;
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
+import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpPipelinePolicy;
+import com.azure.core.http.policy.HttpPolicyProviders;
+import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.storagesync.fluent.MicrosoftStorageSync;
+import com.azure.resourcemanager.storagesync.implementation.CloudEndpointsImpl;
+import com.azure.resourcemanager.storagesync.implementation.MicrosoftStorageSyncBuilder;
+import com.azure.resourcemanager.storagesync.implementation.OperationStatusOperationsImpl;
+import com.azure.resourcemanager.storagesync.implementation.OperationsImpl;
+import com.azure.resourcemanager.storagesync.implementation.PrivateEndpointConnectionsImpl;
+import com.azure.resourcemanager.storagesync.implementation.PrivateLinkResourcesImpl;
+import com.azure.resourcemanager.storagesync.implementation.RegisteredServersImpl;
+import com.azure.resourcemanager.storagesync.implementation.ServerEndpointsImpl;
+import com.azure.resourcemanager.storagesync.implementation.StorageSyncServicesImpl;
+import com.azure.resourcemanager.storagesync.implementation.SyncGroupsImpl;
+import com.azure.resourcemanager.storagesync.implementation.WorkflowsImpl;
+import com.azure.resourcemanager.storagesync.models.CloudEndpoints;
+import com.azure.resourcemanager.storagesync.models.OperationStatusOperations;
+import com.azure.resourcemanager.storagesync.models.Operations;
+import com.azure.resourcemanager.storagesync.models.PrivateEndpointConnections;
+import com.azure.resourcemanager.storagesync.models.PrivateLinkResources;
+import com.azure.resourcemanager.storagesync.models.RegisteredServers;
+import com.azure.resourcemanager.storagesync.models.ServerEndpoints;
+import com.azure.resourcemanager.storagesync.models.StorageSyncServices;
+import com.azure.resourcemanager.storagesync.models.SyncGroups;
+import com.azure.resourcemanager.storagesync.models.Workflows;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/** Entry point to StoragesyncManager. Microsoft Storage Sync Service API. */
+public final class StoragesyncManager {
+ private Operations operations;
+
+ private StorageSyncServices storageSyncServices;
+
+ private PrivateLinkResources privateLinkResources;
+
+ private PrivateEndpointConnections privateEndpointConnections;
+
+ private SyncGroups syncGroups;
+
+ private CloudEndpoints cloudEndpoints;
+
+ private ServerEndpoints serverEndpoints;
+
+ private RegisteredServers registeredServers;
+
+ private Workflows workflows;
+
+ private OperationStatusOperations operationStatusOperations;
+
+ private final MicrosoftStorageSync clientObject;
+
+ private StoragesyncManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new MicrosoftStorageSyncBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of Storagesync service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Storagesync service API instance.
+ */
+ public static StoragesyncManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return configure().authenticate(credential, profile);
+ }
+
+ /**
+ * Gets a Configurable instance that can be used to create StoragesyncManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new StoragesyncManager.Configurable();
+ }
+
+ /** The Configurable allowing configurations to be set. */
+ public static final class Configurable {
+ private final ClientLogger logger = new ClientLogger(Configurable.class);
+
+ private HttpClient httpClient;
+ private HttpLogOptions httpLogOptions;
+ private final List policies = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of Storagesync service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Storagesync service API instance.
+ */
+ public StoragesyncManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.storagesync")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (retryPolicy == null) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new RequestIdPolicy());
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies
+ .add(
+ new BearerTokenAuthenticationPolicy(
+ credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
+ policies.addAll(this.policies);
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new StoragesyncManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @return Resource collection API of Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /** @return Resource collection API of StorageSyncServices. */
+ public StorageSyncServices storageSyncServices() {
+ if (this.storageSyncServices == null) {
+ this.storageSyncServices = new StorageSyncServicesImpl(clientObject.getStorageSyncServices(), this);
+ }
+ return storageSyncServices;
+ }
+
+ /** @return Resource collection API of PrivateLinkResources. */
+ public PrivateLinkResources privateLinkResources() {
+ if (this.privateLinkResources == null) {
+ this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ }
+ return privateLinkResources;
+ }
+
+ /** @return Resource collection API of PrivateEndpointConnections. */
+ public PrivateEndpointConnections privateEndpointConnections() {
+ if (this.privateEndpointConnections == null) {
+ this.privateEndpointConnections =
+ new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ }
+ return privateEndpointConnections;
+ }
+
+ /** @return Resource collection API of SyncGroups. */
+ public SyncGroups syncGroups() {
+ if (this.syncGroups == null) {
+ this.syncGroups = new SyncGroupsImpl(clientObject.getSyncGroups(), this);
+ }
+ return syncGroups;
+ }
+
+ /** @return Resource collection API of CloudEndpoints. */
+ public CloudEndpoints cloudEndpoints() {
+ if (this.cloudEndpoints == null) {
+ this.cloudEndpoints = new CloudEndpointsImpl(clientObject.getCloudEndpoints(), this);
+ }
+ return cloudEndpoints;
+ }
+
+ /** @return Resource collection API of ServerEndpoints. */
+ public ServerEndpoints serverEndpoints() {
+ if (this.serverEndpoints == null) {
+ this.serverEndpoints = new ServerEndpointsImpl(clientObject.getServerEndpoints(), this);
+ }
+ return serverEndpoints;
+ }
+
+ /** @return Resource collection API of RegisteredServers. */
+ public RegisteredServers registeredServers() {
+ if (this.registeredServers == null) {
+ this.registeredServers = new RegisteredServersImpl(clientObject.getRegisteredServers(), this);
+ }
+ return registeredServers;
+ }
+
+ /** @return Resource collection API of Workflows. */
+ public Workflows workflows() {
+ if (this.workflows == null) {
+ this.workflows = new WorkflowsImpl(clientObject.getWorkflows(), this);
+ }
+ return workflows;
+ }
+
+ /** @return Resource collection API of OperationStatusOperations. */
+ public OperationStatusOperations operationStatusOperations() {
+ if (this.operationStatusOperations == null) {
+ this.operationStatusOperations =
+ new OperationStatusOperationsImpl(clientObject.getOperationStatusOperations(), this);
+ }
+ return operationStatusOperations;
+ }
+
+ /**
+ * @return Wrapped service client MicrosoftStorageSync providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ */
+ public MicrosoftStorageSync serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/CloudEndpointsClient.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/CloudEndpointsClient.java
new file mode 100644
index 000000000000..a5b3eaf0b11c
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/CloudEndpointsClient.java
@@ -0,0 +1,758 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.storagesync.fluent.models.CloudEndpointInner;
+import com.azure.resourcemanager.storagesync.fluent.models.PostBackupResponseInner;
+import com.azure.resourcemanager.storagesync.models.BackupRequest;
+import com.azure.resourcemanager.storagesync.models.CloudEndpointCreateParameters;
+import com.azure.resourcemanager.storagesync.models.CloudEndpointsGetResponse;
+import com.azure.resourcemanager.storagesync.models.CloudEndpointsRestoreheartbeatResponse;
+import com.azure.resourcemanager.storagesync.models.PostRestoreRequest;
+import com.azure.resourcemanager.storagesync.models.PreRestoreRequest;
+import com.azure.resourcemanager.storagesync.models.TriggerChangeDetectionParameters;
+
+/** An instance of this class provides access to all the operations defined in CloudEndpointsClient. */
+public interface CloudEndpointsClient {
+ /**
+ * Create a new CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, CloudEndpointInner> beginCreate(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ CloudEndpointCreateParameters parameters);
+
+ /**
+ * Create a new CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, CloudEndpointInner> beginCreate(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ CloudEndpointCreateParameters parameters,
+ Context context);
+
+ /**
+ * Create a new CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CloudEndpointInner create(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ CloudEndpointCreateParameters parameters);
+
+ /**
+ * Create a new CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CloudEndpointInner create(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ CloudEndpointCreateParameters parameters,
+ Context context);
+
+ /**
+ * Get a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a given CloudEndpoint.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CloudEndpointInner get(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String cloudEndpointName);
+
+ /**
+ * Get a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a given CloudEndpoint.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CloudEndpointsGetResponse getWithResponse(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ Context context);
+
+ /**
+ * Delete a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String cloudEndpointName);
+
+ /**
+ * Delete a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ Context context);
+
+ /**
+ * Delete a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 storageSyncServiceName, String syncGroupName, String cloudEndpointName);
+
+ /**
+ * Delete a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ Context context);
+
+ /**
+ * Get a CloudEndpoint List.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a CloudEndpoint List.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listBySyncGroup(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName);
+
+ /**
+ * Get a CloudEndpoint List.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a CloudEndpoint List.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listBySyncGroup(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, Context context);
+
+ /**
+ * Pre Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginPreBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters);
+
+ /**
+ * Pre Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginPreBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters,
+ Context context);
+
+ /**
+ * Pre Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 preBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters);
+
+ /**
+ * Pre Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 preBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters,
+ Context context);
+
+ /**
+ * Post Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return post Backup Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, PostBackupResponseInner> beginPostBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters);
+
+ /**
+ * Post Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return post Backup Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, PostBackupResponseInner> beginPostBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters,
+ Context context);
+
+ /**
+ * Post Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return post Backup Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PostBackupResponseInner postBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters);
+
+ /**
+ * Post Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return post Backup Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PostBackupResponseInner postBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters,
+ Context context);
+
+ /**
+ * Pre Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginPreRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PreRestoreRequest parameters);
+
+ /**
+ * Pre Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginPreRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PreRestoreRequest parameters,
+ Context context);
+
+ /**
+ * Pre Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 preRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PreRestoreRequest parameters);
+
+ /**
+ * Pre Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 preRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PreRestoreRequest parameters,
+ Context context);
+
+ /**
+ * Restore Heartbeat a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 restoreheartbeat(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String cloudEndpointName);
+
+ /**
+ * Restore Heartbeat a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CloudEndpointsRestoreheartbeatResponse restoreheartbeatWithResponse(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ Context context);
+
+ /**
+ * Post Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginPostRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PostRestoreRequest parameters);
+
+ /**
+ * Post Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginPostRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PostRestoreRequest parameters,
+ Context context);
+
+ /**
+ * Post Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 postRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PostRestoreRequest parameters);
+
+ /**
+ * Post Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 postRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PostRestoreRequest parameters,
+ Context context);
+
+ /**
+ * Triggers detection of changes performed on Azure File share connected to the specified Azure File Sync Cloud
+ * Endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Trigger Change Detection Action parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginTriggerChangeDetection(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ TriggerChangeDetectionParameters parameters);
+
+ /**
+ * Triggers detection of changes performed on Azure File share connected to the specified Azure File Sync Cloud
+ * Endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Trigger Change Detection Action parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginTriggerChangeDetection(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ TriggerChangeDetectionParameters parameters,
+ Context context);
+
+ /**
+ * Triggers detection of changes performed on Azure File share connected to the specified Azure File Sync Cloud
+ * Endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Trigger Change Detection Action parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 triggerChangeDetection(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ TriggerChangeDetectionParameters parameters);
+
+ /**
+ * Triggers detection of changes performed on Azure File share connected to the specified Azure File Sync Cloud
+ * Endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Trigger Change Detection Action parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 triggerChangeDetection(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ TriggerChangeDetectionParameters parameters,
+ Context context);
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/MicrosoftStorageSync.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/MicrosoftStorageSync.java
new file mode 100644
index 000000000000..a948cc40b64b
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/MicrosoftStorageSync.java
@@ -0,0 +1,116 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for MicrosoftStorageSync class. */
+public interface MicrosoftStorageSync {
+ /**
+ * Gets The ID of the target subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the StorageSyncServicesClient object to access its operations.
+ *
+ * @return the StorageSyncServicesClient object.
+ */
+ StorageSyncServicesClient getStorageSyncServices();
+
+ /**
+ * Gets the PrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the PrivateLinkResourcesClient object.
+ */
+ PrivateLinkResourcesClient getPrivateLinkResources();
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+
+ /**
+ * Gets the SyncGroupsClient object to access its operations.
+ *
+ * @return the SyncGroupsClient object.
+ */
+ SyncGroupsClient getSyncGroups();
+
+ /**
+ * Gets the CloudEndpointsClient object to access its operations.
+ *
+ * @return the CloudEndpointsClient object.
+ */
+ CloudEndpointsClient getCloudEndpoints();
+
+ /**
+ * Gets the ServerEndpointsClient object to access its operations.
+ *
+ * @return the ServerEndpointsClient object.
+ */
+ ServerEndpointsClient getServerEndpoints();
+
+ /**
+ * Gets the RegisteredServersClient object to access its operations.
+ *
+ * @return the RegisteredServersClient object.
+ */
+ RegisteredServersClient getRegisteredServers();
+
+ /**
+ * Gets the WorkflowsClient object to access its operations.
+ *
+ * @return the WorkflowsClient object.
+ */
+ WorkflowsClient getWorkflows();
+
+ /**
+ * Gets the OperationStatusOperationsClient object to access its operations.
+ *
+ * @return the OperationStatusOperationsClient object.
+ */
+ OperationStatusOperationsClient getOperationStatusOperations();
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/OperationStatusOperationsClient.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/OperationStatusOperationsClient.java
new file mode 100644
index 000000000000..c25d4f84b3d4
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/OperationStatusOperationsClient.java
@@ -0,0 +1,48 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.storagesync.fluent.models.OperationStatusInner;
+import com.azure.resourcemanager.storagesync.models.OperationStatusOperationsGetResponse;
+
+/** An instance of this class provides access to all the operations defined in OperationStatusOperationsClient. */
+public interface OperationStatusOperationsClient {
+ /**
+ * Get Operation status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param locationName The desired region to obtain information from.
+ * @param workflowId workflow Id.
+ * @param operationId operation Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return operation status.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusInner get(String resourceGroupName, String locationName, String workflowId, String operationId);
+
+ /**
+ * Get Operation status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param locationName The desired region to obtain information from.
+ * @param workflowId workflow Id.
+ * @param operationId operation Id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return operation status.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusOperationsGetResponse getWithResponse(
+ String resourceGroupName, String locationName, String workflowId, String operationId, Context context);
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/OperationsClient.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/OperationsClient.java
new file mode 100644
index 000000000000..1baa94236002
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/OperationsClient.java
@@ -0,0 +1,38 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.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.storagesync.fluent.models.OperationEntityInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Lists all of the available Storage Sync Rest API operations.
+ *
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of storage sync operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the available Storage Sync Rest API operations.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of storage sync operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/PrivateEndpointConnectionsClient.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/PrivateEndpointConnectionsClient.java
new file mode 100644
index 000000000000..8ad7450c8ea8
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/PrivateEndpointConnectionsClient.java
@@ -0,0 +1,238 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.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.storagesync.fluent.models.PrivateEndpointConnectionInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
+public interface PrivateEndpointConnectionsClient {
+ /**
+ * Gets the specified private endpoint connection associated with the storage sync service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName The name of the storage sync service name within the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified private endpoint connection associated with the storage sync service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner get(
+ String resourceGroupName, String storageSyncServiceName, String privateEndpointConnectionName);
+
+ /**
+ * Gets the specified private endpoint connection associated with the storage sync service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName The name of the storage sync service name within the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified private endpoint connection associated with the storage sync service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String storageSyncServiceName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Update the state of specified private endpoint connection associated with the storage sync service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName The name of the storage sync service name within the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param properties The private endpoint connection properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Private Endpoint Connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, PrivateEndpointConnectionInner> beginCreate(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner properties);
+
+ /**
+ * Update the state of specified private endpoint connection associated with the storage sync service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName The name of the storage sync service name within the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param properties The private endpoint connection properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Private Endpoint Connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, PrivateEndpointConnectionInner> beginCreate(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner properties,
+ Context context);
+
+ /**
+ * Update the state of specified private endpoint connection associated with the storage sync service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName The name of the storage sync service name within the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param properties The private endpoint connection properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Private Endpoint Connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner create(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner properties);
+
+ /**
+ * Update the state of specified private endpoint connection associated with the storage sync service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName The name of the storage sync service name within the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param properties The private endpoint connection properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Private Endpoint Connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner create(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner properties,
+ Context context);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the storage sync service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName The name of the storage sync service name within the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String storageSyncServiceName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the storage sync service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName The name of the storage sync service name within the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String storageSyncServiceName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the storage sync service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName The name of the storage sync service name within the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 storageSyncServiceName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the storage sync service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName The name of the storage sync service name within the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
+ * resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 storageSyncServiceName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Get a PrivateEndpointConnection List.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a PrivateEndpointConnection List.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByStorageSyncService(
+ String resourceGroupName, String storageSyncServiceName);
+
+ /**
+ * Get a PrivateEndpointConnection List.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a PrivateEndpointConnection List.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByStorageSyncService(
+ String resourceGroupName, String storageSyncServiceName, Context context);
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/PrivateLinkResourcesClient.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/PrivateLinkResourcesClient.java
new file mode 100644
index 000000000000..fa4b345e5bd9
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/PrivateLinkResourcesClient.java
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.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.storagesync.fluent.models.PrivateLinkResourceListResultInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */
+public interface PrivateLinkResourcesClient {
+ /**
+ * Gets the private link resources that need to be created for a storage sync service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName The name of the storage sync service name within the specified resource 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 private link resources that need to be created for a storage sync service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateLinkResourceListResultInner listByStorageSyncService(
+ String resourceGroupName, String storageSyncServiceName);
+
+ /**
+ * Gets the private link resources that need to be created for a storage sync service.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName The name of the storage sync service name within the specified resource group.
+ * @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 private link resources that need to be created for a storage sync service.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listByStorageSyncServiceWithResponse(
+ String resourceGroupName, String storageSyncServiceName, Context context);
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/RegisteredServersClient.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/RegisteredServersClient.java
new file mode 100644
index 000000000000..0b1c9d0357c0
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/RegisteredServersClient.java
@@ -0,0 +1,304 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.storagesync.fluent.models.RegisteredServerInner;
+import com.azure.resourcemanager.storagesync.models.RegisteredServerCreateParameters;
+import com.azure.resourcemanager.storagesync.models.RegisteredServersGetResponse;
+import com.azure.resourcemanager.storagesync.models.TriggerRolloverRequest;
+
+/** An instance of this class provides access to all the operations defined in RegisteredServersClient. */
+public interface RegisteredServersClient {
+ /**
+ * Get a given registered server list.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a given registered server list.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByStorageSyncService(
+ String resourceGroupName, String storageSyncServiceName);
+
+ /**
+ * Get a given registered server list.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a given registered server list.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByStorageSyncService(
+ String resourceGroupName, String storageSyncServiceName, Context context);
+
+ /**
+ * Get a given registered server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param serverId GUID identifying the on-premises server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a given registered server.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegisteredServerInner get(String resourceGroupName, String storageSyncServiceName, String serverId);
+
+ /**
+ * Get a given registered server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param serverId GUID identifying the on-premises server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a given registered server.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegisteredServersGetResponse getWithResponse(
+ String resourceGroupName, String storageSyncServiceName, String serverId, Context context);
+
+ /**
+ * Add a new registered server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param serverId GUID identifying the on-premises server.
+ * @param parameters Body of Registered Server object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return registered Server resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, RegisteredServerInner> beginCreate(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String serverId,
+ RegisteredServerCreateParameters parameters);
+
+ /**
+ * Add a new registered server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param serverId GUID identifying the on-premises server.
+ * @param parameters Body of Registered Server object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return registered Server resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, RegisteredServerInner> beginCreate(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String serverId,
+ RegisteredServerCreateParameters parameters,
+ Context context);
+
+ /**
+ * Add a new registered server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param serverId GUID identifying the on-premises server.
+ * @param parameters Body of Registered Server object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return registered Server resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegisteredServerInner create(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String serverId,
+ RegisteredServerCreateParameters parameters);
+
+ /**
+ * Add a new registered server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param serverId GUID identifying the on-premises server.
+ * @param parameters Body of Registered Server object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return registered Server resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RegisteredServerInner create(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String serverId,
+ RegisteredServerCreateParameters parameters,
+ Context context);
+
+ /**
+ * Delete the given registered server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param serverId GUID identifying the on-premises server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String storageSyncServiceName, String serverId);
+
+ /**
+ * Delete the given registered server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param serverId GUID identifying the on-premises server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String storageSyncServiceName, String serverId, Context context);
+
+ /**
+ * Delete the given registered server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param serverId GUID identifying the on-premises server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 storageSyncServiceName, String serverId);
+
+ /**
+ * Delete the given registered server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param serverId GUID identifying the on-premises server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 storageSyncServiceName, String serverId, Context context);
+
+ /**
+ * Triggers Server certificate rollover.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param serverId Server Id.
+ * @param parameters Body of Trigger Rollover request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginTriggerRollover(
+ String resourceGroupName, String storageSyncServiceName, String serverId, TriggerRolloverRequest parameters);
+
+ /**
+ * Triggers Server certificate rollover.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param serverId Server Id.
+ * @param parameters Body of Trigger Rollover request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginTriggerRollover(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String serverId,
+ TriggerRolloverRequest parameters,
+ Context context);
+
+ /**
+ * Triggers Server certificate rollover.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param serverId Server Id.
+ * @param parameters Body of Trigger Rollover request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 triggerRollover(
+ String resourceGroupName, String storageSyncServiceName, String serverId, TriggerRolloverRequest parameters);
+
+ /**
+ * Triggers Server certificate rollover.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param serverId Server Id.
+ * @param parameters Body of Trigger Rollover request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 triggerRollover(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String serverId,
+ TriggerRolloverRequest parameters,
+ Context context);
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/ServerEndpointsClient.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/ServerEndpointsClient.java
new file mode 100644
index 000000000000..93bce7111e51
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/ServerEndpointsClient.java
@@ -0,0 +1,459 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.storagesync.fluent.models.ServerEndpointInner;
+import com.azure.resourcemanager.storagesync.models.RecallActionParameters;
+import com.azure.resourcemanager.storagesync.models.ServerEndpointCreateParameters;
+import com.azure.resourcemanager.storagesync.models.ServerEndpointUpdateParameters;
+import com.azure.resourcemanager.storagesync.models.ServerEndpointsGetResponse;
+
+/** An instance of this class provides access to all the operations defined in ServerEndpointsClient. */
+public interface ServerEndpointsClient {
+ /**
+ * Create a new ServerEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @param parameters Body of Server Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ServerEndpointInner> beginCreate(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String serverEndpointName,
+ ServerEndpointCreateParameters parameters);
+
+ /**
+ * Create a new ServerEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @param parameters Body of Server Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ServerEndpointInner> beginCreate(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String serverEndpointName,
+ ServerEndpointCreateParameters parameters,
+ Context context);
+
+ /**
+ * Create a new ServerEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @param parameters Body of Server Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerEndpointInner create(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String serverEndpointName,
+ ServerEndpointCreateParameters parameters);
+
+ /**
+ * Create a new ServerEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @param parameters Body of Server Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerEndpointInner create(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String serverEndpointName,
+ ServerEndpointCreateParameters parameters,
+ Context context);
+
+ /**
+ * Patch a given ServerEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @param parameters Any of the properties applicable in PUT request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ServerEndpointInner> beginUpdate(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String serverEndpointName,
+ ServerEndpointUpdateParameters parameters);
+
+ /**
+ * Patch a given ServerEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @param parameters Any of the properties applicable in PUT request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ServerEndpointInner> beginUpdate(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String serverEndpointName,
+ ServerEndpointUpdateParameters parameters,
+ Context context);
+
+ /**
+ * Patch a given ServerEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @param parameters Any of the properties applicable in PUT request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerEndpointInner update(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String serverEndpointName,
+ ServerEndpointUpdateParameters parameters);
+
+ /**
+ * Patch a given ServerEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerEndpointInner update(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String serverEndpointName);
+
+ /**
+ * Patch a given ServerEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @param parameters Any of the properties applicable in PUT request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return server Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerEndpointInner update(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String serverEndpointName,
+ ServerEndpointUpdateParameters parameters,
+ Context context);
+
+ /**
+ * Get a ServerEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ServerEndpoint.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerEndpointInner get(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String serverEndpointName);
+
+ /**
+ * Get a ServerEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ServerEndpoint.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerEndpointsGetResponse getWithResponse(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String serverEndpointName,
+ Context context);
+
+ /**
+ * Delete a given ServerEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String serverEndpointName);
+
+ /**
+ * Delete a given ServerEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String serverEndpointName,
+ Context context);
+
+ /**
+ * Delete a given ServerEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 storageSyncServiceName, String syncGroupName, String serverEndpointName);
+
+ /**
+ * Delete a given ServerEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 storageSyncServiceName,
+ String syncGroupName,
+ String serverEndpointName,
+ Context context);
+
+ /**
+ * Get a ServerEndpoint list.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ServerEndpoint list.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listBySyncGroup(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName);
+
+ /**
+ * Get a ServerEndpoint list.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ServerEndpoint list.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listBySyncGroup(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, Context context);
+
+ /**
+ * Recall a server endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @param parameters Body of Recall Action object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginRecallAction(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String serverEndpointName,
+ RecallActionParameters parameters);
+
+ /**
+ * Recall a server endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @param parameters Body of Recall Action object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginRecallAction(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String serverEndpointName,
+ RecallActionParameters parameters,
+ Context context);
+
+ /**
+ * Recall a server endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @param parameters Body of Recall Action object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 recallAction(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String serverEndpointName,
+ RecallActionParameters parameters);
+
+ /**
+ * Recall a server endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param serverEndpointName Name of Server Endpoint object.
+ * @param parameters Body of Recall Action object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 recallAction(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String serverEndpointName,
+ RecallActionParameters parameters,
+ Context context);
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/StorageSyncServicesClient.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/StorageSyncServicesClient.java
new file mode 100644
index 000000000000..c25fc54e4034
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/StorageSyncServicesClient.java
@@ -0,0 +1,347 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.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.storagesync.fluent.models.CheckNameAvailabilityResultInner;
+import com.azure.resourcemanager.storagesync.fluent.models.StorageSyncServiceInner;
+import com.azure.resourcemanager.storagesync.models.CheckNameAvailabilityParameters;
+import com.azure.resourcemanager.storagesync.models.StorageSyncServiceCreateParameters;
+import com.azure.resourcemanager.storagesync.models.StorageSyncServiceUpdateParameters;
+import com.azure.resourcemanager.storagesync.models.StorageSyncServicesGetByResourceGroupResponse;
+
+/** An instance of this class provides access to all the operations defined in StorageSyncServicesClient. */
+public interface StorageSyncServicesClient {
+ /**
+ * Check the give namespace name availability.
+ *
+ * @param locationName The desired region for the name check.
+ * @param parameters Parameters to check availability of the given namespace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the CheckNameAvailability operation response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CheckNameAvailabilityResultInner checkNameAvailability(
+ String locationName, CheckNameAvailabilityParameters parameters);
+
+ /**
+ * Check the give namespace name availability.
+ *
+ * @param locationName The desired region for the name check.
+ * @param parameters Parameters to check availability of the given namespace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the CheckNameAvailability operation response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ String locationName, CheckNameAvailabilityParameters parameters, Context context);
+
+ /**
+ * Create a new StorageSyncService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param parameters Storage Sync Service resource name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return storage Sync Service object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, StorageSyncServiceInner> beginCreate(
+ String resourceGroupName, String storageSyncServiceName, StorageSyncServiceCreateParameters parameters);
+
+ /**
+ * Create a new StorageSyncService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param parameters Storage Sync Service resource name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return storage Sync Service object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, StorageSyncServiceInner> beginCreate(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ StorageSyncServiceCreateParameters parameters,
+ Context context);
+
+ /**
+ * Create a new StorageSyncService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param parameters Storage Sync Service resource name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return storage Sync Service object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageSyncServiceInner create(
+ String resourceGroupName, String storageSyncServiceName, StorageSyncServiceCreateParameters parameters);
+
+ /**
+ * Create a new StorageSyncService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param parameters Storage Sync Service resource name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return storage Sync Service object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageSyncServiceInner create(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ StorageSyncServiceCreateParameters parameters,
+ Context context);
+
+ /**
+ * Get a given StorageSyncService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a given StorageSyncService.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageSyncServiceInner getByResourceGroup(String resourceGroupName, String storageSyncServiceName);
+
+ /**
+ * Get a given StorageSyncService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a given StorageSyncService.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageSyncServicesGetByResourceGroupResponse getByResourceGroupWithResponse(
+ String resourceGroupName, String storageSyncServiceName, Context context);
+
+ /**
+ * Patch a given StorageSyncService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param parameters Storage Sync Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return storage Sync Service object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, StorageSyncServiceInner> beginUpdate(
+ String resourceGroupName, String storageSyncServiceName, StorageSyncServiceUpdateParameters parameters);
+
+ /**
+ * Patch a given StorageSyncService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param parameters Storage Sync Service resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return storage Sync Service object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, StorageSyncServiceInner> beginUpdate(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ StorageSyncServiceUpdateParameters parameters,
+ Context context);
+
+ /**
+ * Patch a given StorageSyncService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param parameters Storage Sync Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return storage Sync Service object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageSyncServiceInner update(
+ String resourceGroupName, String storageSyncServiceName, StorageSyncServiceUpdateParameters parameters);
+
+ /**
+ * Patch a given StorageSyncService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return storage Sync Service object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageSyncServiceInner update(String resourceGroupName, String storageSyncServiceName);
+
+ /**
+ * Patch a given StorageSyncService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param parameters Storage Sync Service resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return storage Sync Service object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StorageSyncServiceInner update(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ StorageSyncServiceUpdateParameters parameters,
+ Context context);
+
+ /**
+ * Delete a given StorageSyncService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String storageSyncServiceName);
+
+ /**
+ * Delete a given StorageSyncService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String storageSyncServiceName, Context context);
+
+ /**
+ * Delete a given StorageSyncService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 storageSyncServiceName);
+
+ /**
+ * Delete a given StorageSyncService.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 storageSyncServiceName, Context context);
+
+ /**
+ * Get a StorageSyncService list by Resource group name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a StorageSyncService list by Resource group name.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get a StorageSyncService list by Resource group name.
+ *
+ * @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.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a StorageSyncService list by Resource group name.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Get a StorageSyncService list by subscription.
+ *
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a StorageSyncService list by subscription.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get a StorageSyncService list by subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a StorageSyncService list by subscription.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/SyncGroupsClient.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/SyncGroupsClient.java
new file mode 100644
index 000000000000..531e6646b916
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/SyncGroupsClient.java
@@ -0,0 +1,153 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.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.storagesync.fluent.models.SyncGroupInner;
+import com.azure.resourcemanager.storagesync.models.SyncGroupCreateParameters;
+import com.azure.resourcemanager.storagesync.models.SyncGroupsCreateResponse;
+import com.azure.resourcemanager.storagesync.models.SyncGroupsDeleteResponse;
+import com.azure.resourcemanager.storagesync.models.SyncGroupsGetResponse;
+
+/** An instance of this class provides access to all the operations defined in SyncGroupsClient. */
+public interface SyncGroupsClient {
+ /**
+ * Get a SyncGroup List.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a SyncGroup List.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByStorageSyncService(String resourceGroupName, String storageSyncServiceName);
+
+ /**
+ * Get a SyncGroup List.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a SyncGroup List.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByStorageSyncService(
+ String resourceGroupName, String storageSyncServiceName, Context context);
+
+ /**
+ * Create a new SyncGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param parameters Sync Group Body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return sync Group object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncGroupInner create(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ SyncGroupCreateParameters parameters);
+
+ /**
+ * Create a new SyncGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param parameters Sync Group Body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return sync Group object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncGroupsCreateResponse createWithResponse(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ SyncGroupCreateParameters parameters,
+ Context context);
+
+ /**
+ * Get a given SyncGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a given SyncGroup.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncGroupInner get(String resourceGroupName, String storageSyncServiceName, String syncGroupName);
+
+ /**
+ * Get a given SyncGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a given SyncGroup.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncGroupsGetResponse getWithResponse(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, Context context);
+
+ /**
+ * Delete a given SyncGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 storageSyncServiceName, String syncGroupName);
+
+ /**
+ * Delete a given SyncGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncGroupsDeleteResponse deleteWithResponse(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, Context context);
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/WorkflowsClient.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/WorkflowsClient.java
new file mode 100644
index 000000000000..31d6cd23d0b0
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/WorkflowsClient.java
@@ -0,0 +1,109 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.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.storagesync.fluent.models.WorkflowInner;
+import com.azure.resourcemanager.storagesync.models.WorkflowsAbortResponse;
+import com.azure.resourcemanager.storagesync.models.WorkflowsGetResponse;
+
+/** An instance of this class provides access to all the operations defined in WorkflowsClient. */
+public interface WorkflowsClient {
+ /**
+ * Get a Workflow List.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Workflow List.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByStorageSyncService(String resourceGroupName, String storageSyncServiceName);
+
+ /**
+ * Get a Workflow List.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Workflow List.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByStorageSyncService(
+ String resourceGroupName, String storageSyncServiceName, Context context);
+
+ /**
+ * Get Workflows resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param workflowId workflow Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return workflows resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkflowInner get(String resourceGroupName, String storageSyncServiceName, String workflowId);
+
+ /**
+ * Get Workflows resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param workflowId workflow Id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return workflows resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkflowsGetResponse getWithResponse(
+ String resourceGroupName, String storageSyncServiceName, String workflowId, Context context);
+
+ /**
+ * Abort the given workflow.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param workflowId workflow Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException 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 abort(String resourceGroupName, String storageSyncServiceName, String workflowId);
+
+ /**
+ * Abort the given workflow.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param workflowId workflow Id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkflowsAbortResponse abortWithResponse(
+ String resourceGroupName, String storageSyncServiceName, String workflowId, Context context);
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/CheckNameAvailabilityResultInner.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/CheckNameAvailabilityResultInner.java
new file mode 100644
index 000000000000..aa404d45b32d
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/CheckNameAvailabilityResultInner.java
@@ -0,0 +1,75 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.storagesync.models.NameAvailabilityReason;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The CheckNameAvailability operation response. */
+@Immutable
+public final class CheckNameAvailabilityResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CheckNameAvailabilityResultInner.class);
+
+ /*
+ * Gets a boolean value that indicates whether the name is available for
+ * you to use. If true, the name is available. If false, the name has
+ * already been taken or invalid and cannot be used.
+ */
+ @JsonProperty(value = "nameAvailable", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean nameAvailable;
+
+ /*
+ * Gets the reason that a Storage Sync Service name could not be used. The
+ * Reason element is only returned if NameAvailable is false.
+ */
+ @JsonProperty(value = "reason", access = JsonProperty.Access.WRITE_ONLY)
+ private NameAvailabilityReason reason;
+
+ /*
+ * Gets an error message explaining the Reason value in more detail.
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /**
+ * Get the nameAvailable property: Gets a boolean value that indicates whether the name is available for you to use.
+ * If true, the name is available. If false, the name has already been taken or invalid and cannot be used.
+ *
+ * @return the nameAvailable value.
+ */
+ public Boolean nameAvailable() {
+ return this.nameAvailable;
+ }
+
+ /**
+ * Get the reason property: Gets the reason that a Storage Sync Service name could not be used. The Reason element
+ * is only returned if NameAvailable is false.
+ *
+ * @return the reason value.
+ */
+ public NameAvailabilityReason reason() {
+ return this.reason;
+ }
+
+ /**
+ * Get the message property: Gets an error message explaining the Reason value in more detail.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/CloudEndpointInner.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/CloudEndpointInner.java
new file mode 100644
index 000000000000..278465eb05db
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/CloudEndpointInner.java
@@ -0,0 +1,269 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.storagesync.models.CloudEndpointChangeEnumerationStatus;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Cloud Endpoint object. */
+@JsonFlatten
+@Fluent
+public class CloudEndpointInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CloudEndpointInner.class);
+
+ /*
+ * Storage Account Resource Id
+ */
+ @JsonProperty(value = "properties.storageAccountResourceId")
+ private String storageAccountResourceId;
+
+ /*
+ * Azure file share name
+ */
+ @JsonProperty(value = "properties.azureFileShareName")
+ private String azureFileShareName;
+
+ /*
+ * Storage Account Tenant Id
+ */
+ @JsonProperty(value = "properties.storageAccountTenantId")
+ private String storageAccountTenantId;
+
+ /*
+ * Partnership Id
+ */
+ @JsonProperty(value = "properties.partnershipId")
+ private String partnershipId;
+
+ /*
+ * Friendly Name
+ */
+ @JsonProperty(value = "properties.friendlyName")
+ private String friendlyName;
+
+ /*
+ * Backup Enabled
+ */
+ @JsonProperty(value = "properties.backupEnabled", access = JsonProperty.Access.WRITE_ONLY)
+ private String backupEnabled;
+
+ /*
+ * CloudEndpoint Provisioning State
+ */
+ @JsonProperty(value = "properties.provisioningState")
+ private String provisioningState;
+
+ /*
+ * CloudEndpoint lastWorkflowId
+ */
+ @JsonProperty(value = "properties.lastWorkflowId")
+ private String lastWorkflowId;
+
+ /*
+ * Resource Last Operation Name
+ */
+ @JsonProperty(value = "properties.lastOperationName")
+ private String lastOperationName;
+
+ /*
+ * Cloud endpoint change enumeration status
+ */
+ @JsonProperty(value = "properties.changeEnumerationStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private CloudEndpointChangeEnumerationStatus changeEnumerationStatus;
+
+ /**
+ * Get the storageAccountResourceId property: Storage Account Resource Id.
+ *
+ * @return the storageAccountResourceId value.
+ */
+ public String storageAccountResourceId() {
+ return this.storageAccountResourceId;
+ }
+
+ /**
+ * Set the storageAccountResourceId property: Storage Account Resource Id.
+ *
+ * @param storageAccountResourceId the storageAccountResourceId value to set.
+ * @return the CloudEndpointInner object itself.
+ */
+ public CloudEndpointInner withStorageAccountResourceId(String storageAccountResourceId) {
+ this.storageAccountResourceId = storageAccountResourceId;
+ return this;
+ }
+
+ /**
+ * Get the azureFileShareName property: Azure file share name.
+ *
+ * @return the azureFileShareName value.
+ */
+ public String azureFileShareName() {
+ return this.azureFileShareName;
+ }
+
+ /**
+ * Set the azureFileShareName property: Azure file share name.
+ *
+ * @param azureFileShareName the azureFileShareName value to set.
+ * @return the CloudEndpointInner object itself.
+ */
+ public CloudEndpointInner withAzureFileShareName(String azureFileShareName) {
+ this.azureFileShareName = azureFileShareName;
+ return this;
+ }
+
+ /**
+ * Get the storageAccountTenantId property: Storage Account Tenant Id.
+ *
+ * @return the storageAccountTenantId value.
+ */
+ public String storageAccountTenantId() {
+ return this.storageAccountTenantId;
+ }
+
+ /**
+ * Set the storageAccountTenantId property: Storage Account Tenant Id.
+ *
+ * @param storageAccountTenantId the storageAccountTenantId value to set.
+ * @return the CloudEndpointInner object itself.
+ */
+ public CloudEndpointInner withStorageAccountTenantId(String storageAccountTenantId) {
+ this.storageAccountTenantId = storageAccountTenantId;
+ return this;
+ }
+
+ /**
+ * Get the partnershipId property: Partnership Id.
+ *
+ * @return the partnershipId value.
+ */
+ public String partnershipId() {
+ return this.partnershipId;
+ }
+
+ /**
+ * Set the partnershipId property: Partnership Id.
+ *
+ * @param partnershipId the partnershipId value to set.
+ * @return the CloudEndpointInner object itself.
+ */
+ public CloudEndpointInner withPartnershipId(String partnershipId) {
+ this.partnershipId = partnershipId;
+ return this;
+ }
+
+ /**
+ * Get the friendlyName property: Friendly Name.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.friendlyName;
+ }
+
+ /**
+ * Set the friendlyName property: Friendly Name.
+ *
+ * @param friendlyName the friendlyName value to set.
+ * @return the CloudEndpointInner object itself.
+ */
+ public CloudEndpointInner withFriendlyName(String friendlyName) {
+ this.friendlyName = friendlyName;
+ return this;
+ }
+
+ /**
+ * Get the backupEnabled property: Backup Enabled.
+ *
+ * @return the backupEnabled value.
+ */
+ public String backupEnabled() {
+ return this.backupEnabled;
+ }
+
+ /**
+ * Get the provisioningState property: CloudEndpoint Provisioning State.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Set the provisioningState property: CloudEndpoint Provisioning State.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the CloudEndpointInner object itself.
+ */
+ public CloudEndpointInner withProvisioningState(String provisioningState) {
+ this.provisioningState = provisioningState;
+ return this;
+ }
+
+ /**
+ * Get the lastWorkflowId property: CloudEndpoint lastWorkflowId.
+ *
+ * @return the lastWorkflowId value.
+ */
+ public String lastWorkflowId() {
+ return this.lastWorkflowId;
+ }
+
+ /**
+ * Set the lastWorkflowId property: CloudEndpoint lastWorkflowId.
+ *
+ * @param lastWorkflowId the lastWorkflowId value to set.
+ * @return the CloudEndpointInner object itself.
+ */
+ public CloudEndpointInner withLastWorkflowId(String lastWorkflowId) {
+ this.lastWorkflowId = lastWorkflowId;
+ return this;
+ }
+
+ /**
+ * Get the lastOperationName property: Resource Last Operation Name.
+ *
+ * @return the lastOperationName value.
+ */
+ public String lastOperationName() {
+ return this.lastOperationName;
+ }
+
+ /**
+ * Set the lastOperationName property: Resource Last Operation Name.
+ *
+ * @param lastOperationName the lastOperationName value to set.
+ * @return the CloudEndpointInner object itself.
+ */
+ public CloudEndpointInner withLastOperationName(String lastOperationName) {
+ this.lastOperationName = lastOperationName;
+ return this;
+ }
+
+ /**
+ * Get the changeEnumerationStatus property: Cloud endpoint change enumeration status.
+ *
+ * @return the changeEnumerationStatus value.
+ */
+ public CloudEndpointChangeEnumerationStatus changeEnumerationStatus() {
+ return this.changeEnumerationStatus;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (changeEnumerationStatus() != null) {
+ changeEnumerationStatus().validate();
+ }
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/OperationEntityInner.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/OperationEntityInner.java
new file mode 100644
index 000000000000..32701fcd0e11
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/OperationEntityInner.java
@@ -0,0 +1,136 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.storagesync.models.OperationDisplayInfo;
+import com.azure.resourcemanager.storagesync.models.OperationProperties;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The operation supported by storage sync. */
+@Fluent
+public final class OperationEntityInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationEntityInner.class);
+
+ /*
+ * Operation name: {provider}/{resource}/{operation}.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * The operation supported by storage sync.
+ */
+ @JsonProperty(value = "display")
+ private OperationDisplayInfo display;
+
+ /*
+ * The origin.
+ */
+ @JsonProperty(value = "origin")
+ private String origin;
+
+ /*
+ * Properties of the operations resource.
+ */
+ @JsonProperty(value = "properties")
+ private OperationProperties properties;
+
+ /**
+ * Get the name property: Operation name: {provider}/{resource}/{operation}.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Operation name: {provider}/{resource}/{operation}.
+ *
+ * @param name the name value to set.
+ * @return the OperationEntityInner object itself.
+ */
+ public OperationEntityInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the display property: The operation supported by storage sync.
+ *
+ * @return the display value.
+ */
+ public OperationDisplayInfo display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: The operation supported by storage sync.
+ *
+ * @param display the display value to set.
+ * @return the OperationEntityInner object itself.
+ */
+ public OperationEntityInner withDisplay(OperationDisplayInfo display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * Get the origin property: The origin.
+ *
+ * @return the origin value.
+ */
+ public String origin() {
+ return this.origin;
+ }
+
+ /**
+ * Set the origin property: The origin.
+ *
+ * @param origin the origin value to set.
+ * @return the OperationEntityInner object itself.
+ */
+ public OperationEntityInner withOrigin(String origin) {
+ this.origin = origin;
+ return this;
+ }
+
+ /**
+ * Get the properties property: Properties of the operations resource.
+ *
+ * @return the properties value.
+ */
+ public OperationProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of the operations resource.
+ *
+ * @param properties the properties value to set.
+ * @return the OperationEntityInner object itself.
+ */
+ public OperationEntityInner withProperties(OperationProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/OperationStatusInner.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/OperationStatusInner.java
new file mode 100644
index 000000000000..eb881b412e5e
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/OperationStatusInner.java
@@ -0,0 +1,104 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.storagesync.models.StorageSyncApiError;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Operation status object. */
+@Immutable
+public final class OperationStatusInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationStatusInner.class);
+
+ /*
+ * Operation Id
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /*
+ * Operation status
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private String status;
+
+ /*
+ * Start time of the operation
+ */
+ @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime startTime;
+
+ /*
+ * End time of the operation
+ */
+ @JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime endTime;
+
+ /*
+ * Error details.
+ */
+ @JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY)
+ private StorageSyncApiError error;
+
+ /**
+ * Get the name property: Operation Id.
+ *
+ * @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 startTime property: Start time of the operation.
+ *
+ * @return the startTime value.
+ */
+ public OffsetDateTime startTime() {
+ return this.startTime;
+ }
+
+ /**
+ * Get the endTime property: End time of the operation.
+ *
+ * @return the endTime value.
+ */
+ public OffsetDateTime endTime() {
+ return this.endTime;
+ }
+
+ /**
+ * Get the error property: Error details.
+ *
+ * @return the error value.
+ */
+ public StorageSyncApiError error() {
+ return this.error;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (error() != null) {
+ error().validate();
+ }
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PostBackupResponseInner.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PostBackupResponseInner.java
new file mode 100644
index 000000000000..8646663c4cbe
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PostBackupResponseInner.java
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Post Backup Response. */
+@JsonFlatten
+@Immutable
+public class PostBackupResponseInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PostBackupResponseInner.class);
+
+ /*
+ * cloud endpoint Name.
+ */
+ @JsonProperty(value = "backupMetadata.cloudEndpointName", access = JsonProperty.Access.WRITE_ONLY)
+ private String cloudEndpointName;
+
+ /**
+ * Get the cloudEndpointName property: cloud endpoint Name.
+ *
+ * @return the cloudEndpointName value.
+ */
+ public String cloudEndpointName() {
+ return this.cloudEndpointName;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PrivateEndpointConnectionInner.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PrivateEndpointConnectionInner.java
new file mode 100644
index 000000000000..d2571acab2ba
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PrivateEndpointConnectionInner.java
@@ -0,0 +1,107 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.storagesync.models.PrivateEndpoint;
+import com.azure.resourcemanager.storagesync.models.PrivateEndpointConnectionProvisioningState;
+import com.azure.resourcemanager.storagesync.models.PrivateLinkServiceConnectionState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The Private Endpoint Connection resource. */
+@JsonFlatten
+@Fluent
+public class PrivateEndpointConnectionInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class);
+
+ /*
+ * The resource of private end point.
+ */
+ @JsonProperty(value = "properties.privateEndpoint")
+ private PrivateEndpoint privateEndpoint;
+
+ /*
+ * A collection of information about the state of the connection between
+ * service consumer and provider.
+ */
+ @JsonProperty(value = "properties.privateLinkServiceConnectionState")
+ private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+
+ /*
+ * The provisioning state of the private endpoint connection resource.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private PrivateEndpointConnectionProvisioningState provisioningState;
+
+ /**
+ * Get the privateEndpoint property: The resource of private end point.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set the privateEndpoint property: The resource of private end point.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.privateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
+ *
+ * @return the provisioningState value.
+ */
+ public PrivateEndpointConnectionProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (privateEndpoint() != null) {
+ privateEndpoint().validate();
+ }
+ if (privateLinkServiceConnectionState() != null) {
+ privateLinkServiceConnectionState().validate();
+ }
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PrivateLinkResourceListResultInner.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PrivateLinkResourceListResultInner.java
new file mode 100644
index 000000000000..3f4d46aa78af
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PrivateLinkResourceListResultInner.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.storagesync.models.PrivateLinkResource;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** A list of private link resources. */
+@Fluent
+public final class PrivateLinkResourceListResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceListResultInner.class);
+
+ /*
+ * Array of private link resources
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the value property: Array of private link resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Array of private link resources.
+ *
+ * @param value the value value to set.
+ * @return the PrivateLinkResourceListResultInner object itself.
+ */
+ public PrivateLinkResourceListResultInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/RegisteredServerInner.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/RegisteredServerInner.java
new file mode 100644
index 000000000000..290a3fc2c749
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/RegisteredServerInner.java
@@ -0,0 +1,594 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.storagesync.models.RegisteredServerAgentVersionStatus;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Registered Server resource. */
+@JsonFlatten
+@Fluent
+public class RegisteredServerInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(RegisteredServerInner.class);
+
+ /*
+ * Registered Server Certificate
+ */
+ @JsonProperty(value = "properties.serverCertificate")
+ private String serverCertificate;
+
+ /*
+ * Registered Server Agent Version
+ */
+ @JsonProperty(value = "properties.agentVersion")
+ private String agentVersion;
+
+ /*
+ * Registered Server Agent Version Status
+ */
+ @JsonProperty(value = "properties.agentVersionStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private RegisteredServerAgentVersionStatus agentVersionStatus;
+
+ /*
+ * Registered Server Agent Version Expiration Date
+ */
+ @JsonProperty(value = "properties.agentVersionExpirationDate", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime agentVersionExpirationDate;
+
+ /*
+ * Registered Server OS Version
+ */
+ @JsonProperty(value = "properties.serverOSVersion")
+ private String serverOSVersion;
+
+ /*
+ * Registered Server Management Error Code
+ */
+ @JsonProperty(value = "properties.serverManagementErrorCode")
+ private Integer serverManagementErrorCode;
+
+ /*
+ * Registered Server last heart beat
+ */
+ @JsonProperty(value = "properties.lastHeartBeat")
+ private String lastHeartBeat;
+
+ /*
+ * Registered Server Provisioning State
+ */
+ @JsonProperty(value = "properties.provisioningState")
+ private String provisioningState;
+
+ /*
+ * Registered Server serverRole
+ */
+ @JsonProperty(value = "properties.serverRole")
+ private String serverRole;
+
+ /*
+ * Registered Server clusterId
+ */
+ @JsonProperty(value = "properties.clusterId")
+ private String clusterId;
+
+ /*
+ * Registered Server clusterName
+ */
+ @JsonProperty(value = "properties.clusterName")
+ private String clusterName;
+
+ /*
+ * Registered Server serverId
+ */
+ @JsonProperty(value = "properties.serverId")
+ private String serverId;
+
+ /*
+ * Registered Server storageSyncServiceUid
+ */
+ @JsonProperty(value = "properties.storageSyncServiceUid")
+ private String storageSyncServiceUid;
+
+ /*
+ * Registered Server lastWorkflowId
+ */
+ @JsonProperty(value = "properties.lastWorkflowId")
+ private String lastWorkflowId;
+
+ /*
+ * Resource Last Operation Name
+ */
+ @JsonProperty(value = "properties.lastOperationName")
+ private String lastOperationName;
+
+ /*
+ * Resource discoveryEndpointUri
+ */
+ @JsonProperty(value = "properties.discoveryEndpointUri")
+ private String discoveryEndpointUri;
+
+ /*
+ * Resource Location
+ */
+ @JsonProperty(value = "properties.resourceLocation")
+ private String resourceLocation;
+
+ /*
+ * Service Location
+ */
+ @JsonProperty(value = "properties.serviceLocation")
+ private String serviceLocation;
+
+ /*
+ * Friendly Name
+ */
+ @JsonProperty(value = "properties.friendlyName")
+ private String friendlyName;
+
+ /*
+ * Management Endpoint Uri
+ */
+ @JsonProperty(value = "properties.managementEndpointUri")
+ private String managementEndpointUri;
+
+ /*
+ * Telemetry Endpoint Uri
+ */
+ @JsonProperty(value = "properties.monitoringEndpointUri")
+ private String monitoringEndpointUri;
+
+ /*
+ * Monitoring Configuration
+ */
+ @JsonProperty(value = "properties.monitoringConfiguration")
+ private String monitoringConfiguration;
+
+ /*
+ * Server name
+ */
+ @JsonProperty(value = "properties.serverName", access = JsonProperty.Access.WRITE_ONLY)
+ private String serverName;
+
+ /**
+ * Get the serverCertificate property: Registered Server Certificate.
+ *
+ * @return the serverCertificate value.
+ */
+ public String serverCertificate() {
+ return this.serverCertificate;
+ }
+
+ /**
+ * Set the serverCertificate property: Registered Server Certificate.
+ *
+ * @param serverCertificate the serverCertificate value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withServerCertificate(String serverCertificate) {
+ this.serverCertificate = serverCertificate;
+ return this;
+ }
+
+ /**
+ * Get the agentVersion property: Registered Server Agent Version.
+ *
+ * @return the agentVersion value.
+ */
+ public String agentVersion() {
+ return this.agentVersion;
+ }
+
+ /**
+ * Set the agentVersion property: Registered Server Agent Version.
+ *
+ * @param agentVersion the agentVersion value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withAgentVersion(String agentVersion) {
+ this.agentVersion = agentVersion;
+ return this;
+ }
+
+ /**
+ * Get the agentVersionStatus property: Registered Server Agent Version Status.
+ *
+ * @return the agentVersionStatus value.
+ */
+ public RegisteredServerAgentVersionStatus agentVersionStatus() {
+ return this.agentVersionStatus;
+ }
+
+ /**
+ * Get the agentVersionExpirationDate property: Registered Server Agent Version Expiration Date.
+ *
+ * @return the agentVersionExpirationDate value.
+ */
+ public OffsetDateTime agentVersionExpirationDate() {
+ return this.agentVersionExpirationDate;
+ }
+
+ /**
+ * Get the serverOSVersion property: Registered Server OS Version.
+ *
+ * @return the serverOSVersion value.
+ */
+ public String serverOSVersion() {
+ return this.serverOSVersion;
+ }
+
+ /**
+ * Set the serverOSVersion property: Registered Server OS Version.
+ *
+ * @param serverOSVersion the serverOSVersion value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withServerOSVersion(String serverOSVersion) {
+ this.serverOSVersion = serverOSVersion;
+ return this;
+ }
+
+ /**
+ * Get the serverManagementErrorCode property: Registered Server Management Error Code.
+ *
+ * @return the serverManagementErrorCode value.
+ */
+ public Integer serverManagementErrorCode() {
+ return this.serverManagementErrorCode;
+ }
+
+ /**
+ * Set the serverManagementErrorCode property: Registered Server Management Error Code.
+ *
+ * @param serverManagementErrorCode the serverManagementErrorCode value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withServerManagementErrorCode(Integer serverManagementErrorCode) {
+ this.serverManagementErrorCode = serverManagementErrorCode;
+ return this;
+ }
+
+ /**
+ * Get the lastHeartBeat property: Registered Server last heart beat.
+ *
+ * @return the lastHeartBeat value.
+ */
+ public String lastHeartBeat() {
+ return this.lastHeartBeat;
+ }
+
+ /**
+ * Set the lastHeartBeat property: Registered Server last heart beat.
+ *
+ * @param lastHeartBeat the lastHeartBeat value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withLastHeartBeat(String lastHeartBeat) {
+ this.lastHeartBeat = lastHeartBeat;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Registered Server Provisioning State.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Set the provisioningState property: Registered Server Provisioning State.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withProvisioningState(String provisioningState) {
+ this.provisioningState = provisioningState;
+ return this;
+ }
+
+ /**
+ * Get the serverRole property: Registered Server serverRole.
+ *
+ * @return the serverRole value.
+ */
+ public String serverRole() {
+ return this.serverRole;
+ }
+
+ /**
+ * Set the serverRole property: Registered Server serverRole.
+ *
+ * @param serverRole the serverRole value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withServerRole(String serverRole) {
+ this.serverRole = serverRole;
+ return this;
+ }
+
+ /**
+ * Get the clusterId property: Registered Server clusterId.
+ *
+ * @return the clusterId value.
+ */
+ public String clusterId() {
+ return this.clusterId;
+ }
+
+ /**
+ * Set the clusterId property: Registered Server clusterId.
+ *
+ * @param clusterId the clusterId value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withClusterId(String clusterId) {
+ this.clusterId = clusterId;
+ return this;
+ }
+
+ /**
+ * Get the clusterName property: Registered Server clusterName.
+ *
+ * @return the clusterName value.
+ */
+ public String clusterName() {
+ return this.clusterName;
+ }
+
+ /**
+ * Set the clusterName property: Registered Server clusterName.
+ *
+ * @param clusterName the clusterName value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withClusterName(String clusterName) {
+ this.clusterName = clusterName;
+ return this;
+ }
+
+ /**
+ * Get the serverId property: Registered Server serverId.
+ *
+ * @return the serverId value.
+ */
+ public String serverId() {
+ return this.serverId;
+ }
+
+ /**
+ * Set the serverId property: Registered Server serverId.
+ *
+ * @param serverId the serverId value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withServerId(String serverId) {
+ this.serverId = serverId;
+ return this;
+ }
+
+ /**
+ * Get the storageSyncServiceUid property: Registered Server storageSyncServiceUid.
+ *
+ * @return the storageSyncServiceUid value.
+ */
+ public String storageSyncServiceUid() {
+ return this.storageSyncServiceUid;
+ }
+
+ /**
+ * Set the storageSyncServiceUid property: Registered Server storageSyncServiceUid.
+ *
+ * @param storageSyncServiceUid the storageSyncServiceUid value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withStorageSyncServiceUid(String storageSyncServiceUid) {
+ this.storageSyncServiceUid = storageSyncServiceUid;
+ return this;
+ }
+
+ /**
+ * Get the lastWorkflowId property: Registered Server lastWorkflowId.
+ *
+ * @return the lastWorkflowId value.
+ */
+ public String lastWorkflowId() {
+ return this.lastWorkflowId;
+ }
+
+ /**
+ * Set the lastWorkflowId property: Registered Server lastWorkflowId.
+ *
+ * @param lastWorkflowId the lastWorkflowId value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withLastWorkflowId(String lastWorkflowId) {
+ this.lastWorkflowId = lastWorkflowId;
+ return this;
+ }
+
+ /**
+ * Get the lastOperationName property: Resource Last Operation Name.
+ *
+ * @return the lastOperationName value.
+ */
+ public String lastOperationName() {
+ return this.lastOperationName;
+ }
+
+ /**
+ * Set the lastOperationName property: Resource Last Operation Name.
+ *
+ * @param lastOperationName the lastOperationName value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withLastOperationName(String lastOperationName) {
+ this.lastOperationName = lastOperationName;
+ return this;
+ }
+
+ /**
+ * Get the discoveryEndpointUri property: Resource discoveryEndpointUri.
+ *
+ * @return the discoveryEndpointUri value.
+ */
+ public String discoveryEndpointUri() {
+ return this.discoveryEndpointUri;
+ }
+
+ /**
+ * Set the discoveryEndpointUri property: Resource discoveryEndpointUri.
+ *
+ * @param discoveryEndpointUri the discoveryEndpointUri value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withDiscoveryEndpointUri(String discoveryEndpointUri) {
+ this.discoveryEndpointUri = discoveryEndpointUri;
+ return this;
+ }
+
+ /**
+ * Get the resourceLocation property: Resource Location.
+ *
+ * @return the resourceLocation value.
+ */
+ public String resourceLocation() {
+ return this.resourceLocation;
+ }
+
+ /**
+ * Set the resourceLocation property: Resource Location.
+ *
+ * @param resourceLocation the resourceLocation value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withResourceLocation(String resourceLocation) {
+ this.resourceLocation = resourceLocation;
+ return this;
+ }
+
+ /**
+ * Get the serviceLocation property: Service Location.
+ *
+ * @return the serviceLocation value.
+ */
+ public String serviceLocation() {
+ return this.serviceLocation;
+ }
+
+ /**
+ * Set the serviceLocation property: Service Location.
+ *
+ * @param serviceLocation the serviceLocation value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withServiceLocation(String serviceLocation) {
+ this.serviceLocation = serviceLocation;
+ return this;
+ }
+
+ /**
+ * Get the friendlyName property: Friendly Name.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.friendlyName;
+ }
+
+ /**
+ * Set the friendlyName property: Friendly Name.
+ *
+ * @param friendlyName the friendlyName value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withFriendlyName(String friendlyName) {
+ this.friendlyName = friendlyName;
+ return this;
+ }
+
+ /**
+ * Get the managementEndpointUri property: Management Endpoint Uri.
+ *
+ * @return the managementEndpointUri value.
+ */
+ public String managementEndpointUri() {
+ return this.managementEndpointUri;
+ }
+
+ /**
+ * Set the managementEndpointUri property: Management Endpoint Uri.
+ *
+ * @param managementEndpointUri the managementEndpointUri value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withManagementEndpointUri(String managementEndpointUri) {
+ this.managementEndpointUri = managementEndpointUri;
+ return this;
+ }
+
+ /**
+ * Get the monitoringEndpointUri property: Telemetry Endpoint Uri.
+ *
+ * @return the monitoringEndpointUri value.
+ */
+ public String monitoringEndpointUri() {
+ return this.monitoringEndpointUri;
+ }
+
+ /**
+ * Set the monitoringEndpointUri property: Telemetry Endpoint Uri.
+ *
+ * @param monitoringEndpointUri the monitoringEndpointUri value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withMonitoringEndpointUri(String monitoringEndpointUri) {
+ this.monitoringEndpointUri = monitoringEndpointUri;
+ return this;
+ }
+
+ /**
+ * Get the monitoringConfiguration property: Monitoring Configuration.
+ *
+ * @return the monitoringConfiguration value.
+ */
+ public String monitoringConfiguration() {
+ return this.monitoringConfiguration;
+ }
+
+ /**
+ * Set the monitoringConfiguration property: Monitoring Configuration.
+ *
+ * @param monitoringConfiguration the monitoringConfiguration value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withMonitoringConfiguration(String monitoringConfiguration) {
+ this.monitoringConfiguration = monitoringConfiguration;
+ return this;
+ }
+
+ /**
+ * Get the serverName property: Server name.
+ *
+ * @return the serverName value.
+ */
+ public String serverName() {
+ return this.serverName;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/ServerEndpointInner.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/ServerEndpointInner.java
new file mode 100644
index 000000000000..5b97795b9cbe
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/ServerEndpointInner.java
@@ -0,0 +1,471 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.storagesync.models.FeatureStatus;
+import com.azure.resourcemanager.storagesync.models.InitialDownloadPolicy;
+import com.azure.resourcemanager.storagesync.models.InitialUploadPolicy;
+import com.azure.resourcemanager.storagesync.models.LocalCacheMode;
+import com.azure.resourcemanager.storagesync.models.ServerEndpointCloudTieringStatus;
+import com.azure.resourcemanager.storagesync.models.ServerEndpointRecallStatus;
+import com.azure.resourcemanager.storagesync.models.ServerEndpointSyncStatus;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Server Endpoint object. */
+@JsonFlatten
+@Fluent
+public class ServerEndpointInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerEndpointInner.class);
+
+ /*
+ * Server Local path.
+ */
+ @JsonProperty(value = "properties.serverLocalPath")
+ private String serverLocalPath;
+
+ /*
+ * Cloud Tiering.
+ */
+ @JsonProperty(value = "properties.cloudTiering")
+ private FeatureStatus cloudTiering;
+
+ /*
+ * Level of free space to be maintained by Cloud Tiering if it is enabled.
+ */
+ @JsonProperty(value = "properties.volumeFreeSpacePercent")
+ private Integer volumeFreeSpacePercent;
+
+ /*
+ * Tier files older than days.
+ */
+ @JsonProperty(value = "properties.tierFilesOlderThanDays")
+ private Integer tierFilesOlderThanDays;
+
+ /*
+ * Friendly Name
+ */
+ @JsonProperty(value = "properties.friendlyName")
+ private String friendlyName;
+
+ /*
+ * Server Resource Id.
+ */
+ @JsonProperty(value = "properties.serverResourceId")
+ private String serverResourceId;
+
+ /*
+ * ServerEndpoint Provisioning State
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /*
+ * ServerEndpoint lastWorkflowId
+ */
+ @JsonProperty(value = "properties.lastWorkflowId", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastWorkflowId;
+
+ /*
+ * Resource Last Operation Name
+ */
+ @JsonProperty(value = "properties.lastOperationName", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastOperationName;
+
+ /*
+ * Server Endpoint sync status
+ */
+ @JsonProperty(value = "properties.syncStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private ServerEndpointSyncStatus syncStatus;
+
+ /*
+ * Offline data transfer
+ */
+ @JsonProperty(value = "properties.offlineDataTransfer")
+ private FeatureStatus offlineDataTransfer;
+
+ /*
+ * Offline data transfer storage account resource ID
+ */
+ @JsonProperty(
+ value = "properties.offlineDataTransferStorageAccountResourceId",
+ access = JsonProperty.Access.WRITE_ONLY)
+ private String offlineDataTransferStorageAccountResourceId;
+
+ /*
+ * Offline data transfer storage account tenant ID
+ */
+ @JsonProperty(
+ value = "properties.offlineDataTransferStorageAccountTenantId",
+ access = JsonProperty.Access.WRITE_ONLY)
+ private String offlineDataTransferStorageAccountTenantId;
+
+ /*
+ * Offline data transfer share name
+ */
+ @JsonProperty(value = "properties.offlineDataTransferShareName")
+ private String offlineDataTransferShareName;
+
+ /*
+ * Cloud tiering status. Only populated if cloud tiering is enabled.
+ */
+ @JsonProperty(value = "properties.cloudTieringStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private ServerEndpointCloudTieringStatus cloudTieringStatus;
+
+ /*
+ * Recall status. Only populated if cloud tiering is enabled.
+ */
+ @JsonProperty(value = "properties.recallStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private ServerEndpointRecallStatus recallStatus;
+
+ /*
+ * Policy for how namespace and files are recalled during FastDr.
+ */
+ @JsonProperty(value = "properties.initialDownloadPolicy")
+ private InitialDownloadPolicy initialDownloadPolicy;
+
+ /*
+ * Policy for enabling follow-the-sun business models: link local cache to
+ * cloud behavior to pre-populate before local access.
+ */
+ @JsonProperty(value = "properties.localCacheMode")
+ private LocalCacheMode localCacheMode;
+
+ /*
+ * Policy for how the initial upload sync session is performed.
+ */
+ @JsonProperty(value = "properties.initialUploadPolicy")
+ private InitialUploadPolicy initialUploadPolicy;
+
+ /*
+ * Server name
+ */
+ @JsonProperty(value = "properties.serverName", access = JsonProperty.Access.WRITE_ONLY)
+ private String serverName;
+
+ /**
+ * Get the serverLocalPath property: Server Local path.
+ *
+ * @return the serverLocalPath value.
+ */
+ public String serverLocalPath() {
+ return this.serverLocalPath;
+ }
+
+ /**
+ * Set the serverLocalPath property: Server Local path.
+ *
+ * @param serverLocalPath the serverLocalPath value to set.
+ * @return the ServerEndpointInner object itself.
+ */
+ public ServerEndpointInner withServerLocalPath(String serverLocalPath) {
+ this.serverLocalPath = serverLocalPath;
+ return this;
+ }
+
+ /**
+ * Get the cloudTiering property: Cloud Tiering.
+ *
+ * @return the cloudTiering value.
+ */
+ public FeatureStatus cloudTiering() {
+ return this.cloudTiering;
+ }
+
+ /**
+ * Set the cloudTiering property: Cloud Tiering.
+ *
+ * @param cloudTiering the cloudTiering value to set.
+ * @return the ServerEndpointInner object itself.
+ */
+ public ServerEndpointInner withCloudTiering(FeatureStatus cloudTiering) {
+ this.cloudTiering = cloudTiering;
+ return this;
+ }
+
+ /**
+ * Get the volumeFreeSpacePercent property: Level of free space to be maintained by Cloud Tiering if it is enabled.
+ *
+ * @return the volumeFreeSpacePercent value.
+ */
+ public Integer volumeFreeSpacePercent() {
+ return this.volumeFreeSpacePercent;
+ }
+
+ /**
+ * Set the volumeFreeSpacePercent property: Level of free space to be maintained by Cloud Tiering if it is enabled.
+ *
+ * @param volumeFreeSpacePercent the volumeFreeSpacePercent value to set.
+ * @return the ServerEndpointInner object itself.
+ */
+ public ServerEndpointInner withVolumeFreeSpacePercent(Integer volumeFreeSpacePercent) {
+ this.volumeFreeSpacePercent = volumeFreeSpacePercent;
+ return this;
+ }
+
+ /**
+ * Get the tierFilesOlderThanDays property: Tier files older than days.
+ *
+ * @return the tierFilesOlderThanDays value.
+ */
+ public Integer tierFilesOlderThanDays() {
+ return this.tierFilesOlderThanDays;
+ }
+
+ /**
+ * Set the tierFilesOlderThanDays property: Tier files older than days.
+ *
+ * @param tierFilesOlderThanDays the tierFilesOlderThanDays value to set.
+ * @return the ServerEndpointInner object itself.
+ */
+ public ServerEndpointInner withTierFilesOlderThanDays(Integer tierFilesOlderThanDays) {
+ this.tierFilesOlderThanDays = tierFilesOlderThanDays;
+ return this;
+ }
+
+ /**
+ * Get the friendlyName property: Friendly Name.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.friendlyName;
+ }
+
+ /**
+ * Set the friendlyName property: Friendly Name.
+ *
+ * @param friendlyName the friendlyName value to set.
+ * @return the ServerEndpointInner object itself.
+ */
+ public ServerEndpointInner withFriendlyName(String friendlyName) {
+ this.friendlyName = friendlyName;
+ return this;
+ }
+
+ /**
+ * Get the serverResourceId property: Server Resource Id.
+ *
+ * @return the serverResourceId value.
+ */
+ public String serverResourceId() {
+ return this.serverResourceId;
+ }
+
+ /**
+ * Set the serverResourceId property: Server Resource Id.
+ *
+ * @param serverResourceId the serverResourceId value to set.
+ * @return the ServerEndpointInner object itself.
+ */
+ public ServerEndpointInner withServerResourceId(String serverResourceId) {
+ this.serverResourceId = serverResourceId;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: ServerEndpoint Provisioning State.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the lastWorkflowId property: ServerEndpoint lastWorkflowId.
+ *
+ * @return the lastWorkflowId value.
+ */
+ public String lastWorkflowId() {
+ return this.lastWorkflowId;
+ }
+
+ /**
+ * Get the lastOperationName property: Resource Last Operation Name.
+ *
+ * @return the lastOperationName value.
+ */
+ public String lastOperationName() {
+ return this.lastOperationName;
+ }
+
+ /**
+ * Get the syncStatus property: Server Endpoint sync status.
+ *
+ * @return the syncStatus value.
+ */
+ public ServerEndpointSyncStatus syncStatus() {
+ return this.syncStatus;
+ }
+
+ /**
+ * Get the offlineDataTransfer property: Offline data transfer.
+ *
+ * @return the offlineDataTransfer value.
+ */
+ public FeatureStatus offlineDataTransfer() {
+ return this.offlineDataTransfer;
+ }
+
+ /**
+ * Set the offlineDataTransfer property: Offline data transfer.
+ *
+ * @param offlineDataTransfer the offlineDataTransfer value to set.
+ * @return the ServerEndpointInner object itself.
+ */
+ public ServerEndpointInner withOfflineDataTransfer(FeatureStatus offlineDataTransfer) {
+ this.offlineDataTransfer = offlineDataTransfer;
+ return this;
+ }
+
+ /**
+ * Get the offlineDataTransferStorageAccountResourceId property: Offline data transfer storage account resource ID.
+ *
+ * @return the offlineDataTransferStorageAccountResourceId value.
+ */
+ public String offlineDataTransferStorageAccountResourceId() {
+ return this.offlineDataTransferStorageAccountResourceId;
+ }
+
+ /**
+ * Get the offlineDataTransferStorageAccountTenantId property: Offline data transfer storage account tenant ID.
+ *
+ * @return the offlineDataTransferStorageAccountTenantId value.
+ */
+ public String offlineDataTransferStorageAccountTenantId() {
+ return this.offlineDataTransferStorageAccountTenantId;
+ }
+
+ /**
+ * Get the offlineDataTransferShareName property: Offline data transfer share name.
+ *
+ * @return the offlineDataTransferShareName value.
+ */
+ public String offlineDataTransferShareName() {
+ return this.offlineDataTransferShareName;
+ }
+
+ /**
+ * Set the offlineDataTransferShareName property: Offline data transfer share name.
+ *
+ * @param offlineDataTransferShareName the offlineDataTransferShareName value to set.
+ * @return the ServerEndpointInner object itself.
+ */
+ public ServerEndpointInner withOfflineDataTransferShareName(String offlineDataTransferShareName) {
+ this.offlineDataTransferShareName = offlineDataTransferShareName;
+ return this;
+ }
+
+ /**
+ * Get the cloudTieringStatus property: Cloud tiering status. Only populated if cloud tiering is enabled.
+ *
+ * @return the cloudTieringStatus value.
+ */
+ public ServerEndpointCloudTieringStatus cloudTieringStatus() {
+ return this.cloudTieringStatus;
+ }
+
+ /**
+ * Get the recallStatus property: Recall status. Only populated if cloud tiering is enabled.
+ *
+ * @return the recallStatus value.
+ */
+ public ServerEndpointRecallStatus recallStatus() {
+ return this.recallStatus;
+ }
+
+ /**
+ * Get the initialDownloadPolicy property: Policy for how namespace and files are recalled during FastDr.
+ *
+ * @return the initialDownloadPolicy value.
+ */
+ public InitialDownloadPolicy initialDownloadPolicy() {
+ return this.initialDownloadPolicy;
+ }
+
+ /**
+ * Set the initialDownloadPolicy property: Policy for how namespace and files are recalled during FastDr.
+ *
+ * @param initialDownloadPolicy the initialDownloadPolicy value to set.
+ * @return the ServerEndpointInner object itself.
+ */
+ public ServerEndpointInner withInitialDownloadPolicy(InitialDownloadPolicy initialDownloadPolicy) {
+ this.initialDownloadPolicy = initialDownloadPolicy;
+ return this;
+ }
+
+ /**
+ * Get the localCacheMode property: Policy for enabling follow-the-sun business models: link local cache to cloud
+ * behavior to pre-populate before local access.
+ *
+ * @return the localCacheMode value.
+ */
+ public LocalCacheMode localCacheMode() {
+ return this.localCacheMode;
+ }
+
+ /**
+ * Set the localCacheMode property: Policy for enabling follow-the-sun business models: link local cache to cloud
+ * behavior to pre-populate before local access.
+ *
+ * @param localCacheMode the localCacheMode value to set.
+ * @return the ServerEndpointInner object itself.
+ */
+ public ServerEndpointInner withLocalCacheMode(LocalCacheMode localCacheMode) {
+ this.localCacheMode = localCacheMode;
+ return this;
+ }
+
+ /**
+ * Get the initialUploadPolicy property: Policy for how the initial upload sync session is performed.
+ *
+ * @return the initialUploadPolicy value.
+ */
+ public InitialUploadPolicy initialUploadPolicy() {
+ return this.initialUploadPolicy;
+ }
+
+ /**
+ * Set the initialUploadPolicy property: Policy for how the initial upload sync session is performed.
+ *
+ * @param initialUploadPolicy the initialUploadPolicy value to set.
+ * @return the ServerEndpointInner object itself.
+ */
+ public ServerEndpointInner withInitialUploadPolicy(InitialUploadPolicy initialUploadPolicy) {
+ this.initialUploadPolicy = initialUploadPolicy;
+ return this;
+ }
+
+ /**
+ * Get the serverName property: Server name.
+ *
+ * @return the serverName value.
+ */
+ public String serverName() {
+ return this.serverName;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (syncStatus() != null) {
+ syncStatus().validate();
+ }
+ if (cloudTieringStatus() != null) {
+ cloudTieringStatus().validate();
+ }
+ if (recallStatus() != null) {
+ recallStatus().validate();
+ }
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/StorageSyncServiceInner.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/StorageSyncServiceInner.java
new file mode 100644
index 000000000000..7345bf6f65c4
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/StorageSyncServiceInner.java
@@ -0,0 +1,165 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.storagesync.models.IncomingTrafficPolicy;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** Storage Sync Service object. */
+@JsonFlatten
+@Fluent
+public class StorageSyncServiceInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(StorageSyncServiceInner.class);
+
+ /*
+ * Incoming Traffic Policy
+ */
+ @JsonProperty(value = "properties.incomingTrafficPolicy")
+ private IncomingTrafficPolicy incomingTrafficPolicy;
+
+ /*
+ * Storage Sync service status.
+ */
+ @JsonProperty(value = "properties.storageSyncServiceStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer storageSyncServiceStatus;
+
+ /*
+ * Storage Sync service Uid
+ */
+ @JsonProperty(value = "properties.storageSyncServiceUid", access = JsonProperty.Access.WRITE_ONLY)
+ private String storageSyncServiceUid;
+
+ /*
+ * StorageSyncService Provisioning State
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /*
+ * StorageSyncService lastWorkflowId
+ */
+ @JsonProperty(value = "properties.lastWorkflowId", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastWorkflowId;
+
+ /*
+ * Resource Last Operation Name
+ */
+ @JsonProperty(value = "properties.lastOperationName", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastOperationName;
+
+ /*
+ * List of private endpoint connection associated with the specified
+ * storage sync service
+ */
+ @JsonProperty(value = "properties.privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
+ private List privateEndpointConnections;
+
+ /**
+ * Get the incomingTrafficPolicy property: Incoming Traffic Policy.
+ *
+ * @return the incomingTrafficPolicy value.
+ */
+ public IncomingTrafficPolicy incomingTrafficPolicy() {
+ return this.incomingTrafficPolicy;
+ }
+
+ /**
+ * Set the incomingTrafficPolicy property: Incoming Traffic Policy.
+ *
+ * @param incomingTrafficPolicy the incomingTrafficPolicy value to set.
+ * @return the StorageSyncServiceInner object itself.
+ */
+ public StorageSyncServiceInner withIncomingTrafficPolicy(IncomingTrafficPolicy incomingTrafficPolicy) {
+ this.incomingTrafficPolicy = incomingTrafficPolicy;
+ return this;
+ }
+
+ /**
+ * Get the storageSyncServiceStatus property: Storage Sync service status.
+ *
+ * @return the storageSyncServiceStatus value.
+ */
+ public Integer storageSyncServiceStatus() {
+ return this.storageSyncServiceStatus;
+ }
+
+ /**
+ * Get the storageSyncServiceUid property: Storage Sync service Uid.
+ *
+ * @return the storageSyncServiceUid value.
+ */
+ public String storageSyncServiceUid() {
+ return this.storageSyncServiceUid;
+ }
+
+ /**
+ * Get the provisioningState property: StorageSyncService Provisioning State.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the lastWorkflowId property: StorageSyncService lastWorkflowId.
+ *
+ * @return the lastWorkflowId value.
+ */
+ public String lastWorkflowId() {
+ return this.lastWorkflowId;
+ }
+
+ /**
+ * Get the lastOperationName property: Resource Last Operation Name.
+ *
+ * @return the lastOperationName value.
+ */
+ public String lastOperationName() {
+ return this.lastOperationName;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: List of private endpoint connection associated with the specified
+ * storage sync service.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public StorageSyncServiceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public StorageSyncServiceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (privateEndpointConnections() != null) {
+ privateEndpointConnections().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/SyncGroupInner.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/SyncGroupInner.java
new file mode 100644
index 000000000000..a41c5d4fa273
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/SyncGroupInner.java
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Sync Group object. */
+@JsonFlatten
+@Immutable
+public class SyncGroupInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SyncGroupInner.class);
+
+ /*
+ * Unique Id
+ */
+ @JsonProperty(value = "properties.uniqueId", access = JsonProperty.Access.WRITE_ONLY)
+ private String uniqueId;
+
+ /*
+ * Sync group status
+ */
+ @JsonProperty(value = "properties.syncGroupStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private String syncGroupStatus;
+
+ /**
+ * Get the uniqueId property: Unique Id.
+ *
+ * @return the uniqueId value.
+ */
+ public String uniqueId() {
+ return this.uniqueId;
+ }
+
+ /**
+ * Get the syncGroupStatus property: Sync group status.
+ *
+ * @return the syncGroupStatus value.
+ */
+ public String syncGroupStatus() {
+ return this.syncGroupStatus;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/WorkflowInner.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/WorkflowInner.java
new file mode 100644
index 000000000000..eee79eb49757
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/WorkflowInner.java
@@ -0,0 +1,205 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.storagesync.models.OperationDirection;
+import com.azure.resourcemanager.storagesync.models.WorkflowStatus;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Workflow resource. */
+@JsonFlatten
+@Fluent
+public class WorkflowInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowInner.class);
+
+ /*
+ * last step name
+ */
+ @JsonProperty(value = "properties.lastStepName")
+ private String lastStepName;
+
+ /*
+ * workflow status.
+ */
+ @JsonProperty(value = "properties.status")
+ private WorkflowStatus status;
+
+ /*
+ * operation direction.
+ */
+ @JsonProperty(value = "properties.operation")
+ private OperationDirection operation;
+
+ /*
+ * workflow steps
+ */
+ @JsonProperty(value = "properties.steps")
+ private String steps;
+
+ /*
+ * workflow last operation identifier.
+ */
+ @JsonProperty(value = "properties.lastOperationId")
+ private String lastOperationId;
+
+ /*
+ * workflow command name.
+ */
+ @JsonProperty(value = "properties.commandName", access = JsonProperty.Access.WRITE_ONLY)
+ private String commandName;
+
+ /*
+ * workflow created timestamp.
+ */
+ @JsonProperty(value = "properties.createdTimestamp", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdTimestamp;
+
+ /*
+ * workflow last status timestamp.
+ */
+ @JsonProperty(value = "properties.lastStatusTimestamp", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastStatusTimestamp;
+
+ /**
+ * Get the lastStepName property: last step name.
+ *
+ * @return the lastStepName value.
+ */
+ public String lastStepName() {
+ return this.lastStepName;
+ }
+
+ /**
+ * Set the lastStepName property: last step name.
+ *
+ * @param lastStepName the lastStepName value to set.
+ * @return the WorkflowInner object itself.
+ */
+ public WorkflowInner withLastStepName(String lastStepName) {
+ this.lastStepName = lastStepName;
+ return this;
+ }
+
+ /**
+ * Get the status property: workflow status.
+ *
+ * @return the status value.
+ */
+ public WorkflowStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: workflow status.
+ *
+ * @param status the status value to set.
+ * @return the WorkflowInner object itself.
+ */
+ public WorkflowInner withStatus(WorkflowStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the operation property: operation direction.
+ *
+ * @return the operation value.
+ */
+ public OperationDirection operation() {
+ return this.operation;
+ }
+
+ /**
+ * Set the operation property: operation direction.
+ *
+ * @param operation the operation value to set.
+ * @return the WorkflowInner object itself.
+ */
+ public WorkflowInner withOperation(OperationDirection operation) {
+ this.operation = operation;
+ return this;
+ }
+
+ /**
+ * Get the steps property: workflow steps.
+ *
+ * @return the steps value.
+ */
+ public String steps() {
+ return this.steps;
+ }
+
+ /**
+ * Set the steps property: workflow steps.
+ *
+ * @param steps the steps value to set.
+ * @return the WorkflowInner object itself.
+ */
+ public WorkflowInner withSteps(String steps) {
+ this.steps = steps;
+ return this;
+ }
+
+ /**
+ * Get the lastOperationId property: workflow last operation identifier.
+ *
+ * @return the lastOperationId value.
+ */
+ public String lastOperationId() {
+ return this.lastOperationId;
+ }
+
+ /**
+ * Set the lastOperationId property: workflow last operation identifier.
+ *
+ * @param lastOperationId the lastOperationId value to set.
+ * @return the WorkflowInner object itself.
+ */
+ public WorkflowInner withLastOperationId(String lastOperationId) {
+ this.lastOperationId = lastOperationId;
+ return this;
+ }
+
+ /**
+ * Get the commandName property: workflow command name.
+ *
+ * @return the commandName value.
+ */
+ public String commandName() {
+ return this.commandName;
+ }
+
+ /**
+ * Get the createdTimestamp property: workflow created timestamp.
+ *
+ * @return the createdTimestamp value.
+ */
+ public OffsetDateTime createdTimestamp() {
+ return this.createdTimestamp;
+ }
+
+ /**
+ * Get the lastStatusTimestamp property: workflow last status timestamp.
+ *
+ * @return the lastStatusTimestamp value.
+ */
+ public OffsetDateTime lastStatusTimestamp() {
+ return this.lastStatusTimestamp;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/package-info.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/package-info.java
new file mode 100644
index 000000000000..c0867b6b0c36
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the inner data models for MicrosoftStorageSync. Microsoft Storage Sync Service API. */
+package com.azure.resourcemanager.storagesync.fluent.models;
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/package-info.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/package-info.java
new file mode 100644
index 000000000000..828cc7d4709f
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the service clients for MicrosoftStorageSync. Microsoft Storage Sync Service API. */
+package com.azure.resourcemanager.storagesync.fluent;
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/CheckNameAvailabilityResultImpl.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/CheckNameAvailabilityResultImpl.java
new file mode 100644
index 000000000000..ebe8cc46bc83
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/CheckNameAvailabilityResultImpl.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.implementation;
+
+import com.azure.resourcemanager.storagesync.fluent.models.CheckNameAvailabilityResultInner;
+import com.azure.resourcemanager.storagesync.models.CheckNameAvailabilityResult;
+import com.azure.resourcemanager.storagesync.models.NameAvailabilityReason;
+
+public final class CheckNameAvailabilityResultImpl implements CheckNameAvailabilityResult {
+ private CheckNameAvailabilityResultInner innerObject;
+
+ private final com.azure.resourcemanager.storagesync.StoragesyncManager serviceManager;
+
+ CheckNameAvailabilityResultImpl(
+ CheckNameAvailabilityResultInner innerObject,
+ com.azure.resourcemanager.storagesync.StoragesyncManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public Boolean nameAvailable() {
+ return this.innerModel().nameAvailable();
+ }
+
+ public NameAvailabilityReason reason() {
+ return this.innerModel().reason();
+ }
+
+ public String message() {
+ return this.innerModel().message();
+ }
+
+ public CheckNameAvailabilityResultInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.storagesync.StoragesyncManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/CloudEndpointImpl.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/CloudEndpointImpl.java
new file mode 100644
index 000000000000..dabd4f134fd6
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/CloudEndpointImpl.java
@@ -0,0 +1,264 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.implementation;
+
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.storagesync.fluent.models.CloudEndpointInner;
+import com.azure.resourcemanager.storagesync.models.BackupRequest;
+import com.azure.resourcemanager.storagesync.models.CloudEndpoint;
+import com.azure.resourcemanager.storagesync.models.CloudEndpointChangeEnumerationStatus;
+import com.azure.resourcemanager.storagesync.models.CloudEndpointCreateParameters;
+import com.azure.resourcemanager.storagesync.models.CloudEndpointsRestoreheartbeatResponse;
+import com.azure.resourcemanager.storagesync.models.PostBackupResponse;
+import com.azure.resourcemanager.storagesync.models.PostRestoreRequest;
+import com.azure.resourcemanager.storagesync.models.PreRestoreRequest;
+import com.azure.resourcemanager.storagesync.models.TriggerChangeDetectionParameters;
+
+public final class CloudEndpointImpl implements CloudEndpoint, CloudEndpoint.Definition {
+ private CloudEndpointInner innerObject;
+
+ private final com.azure.resourcemanager.storagesync.StoragesyncManager serviceManager;
+
+ CloudEndpointImpl(
+ CloudEndpointInner innerObject, com.azure.resourcemanager.storagesync.StoragesyncManager 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 String storageAccountResourceId() {
+ return this.innerModel().storageAccountResourceId();
+ }
+
+ public String azureFileShareName() {
+ return this.innerModel().azureFileShareName();
+ }
+
+ public String storageAccountTenantId() {
+ return this.innerModel().storageAccountTenantId();
+ }
+
+ public String partnershipId() {
+ return this.innerModel().partnershipId();
+ }
+
+ public String friendlyName() {
+ return this.innerModel().friendlyName();
+ }
+
+ public String backupEnabled() {
+ return this.innerModel().backupEnabled();
+ }
+
+ public String provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public String lastWorkflowId() {
+ return this.innerModel().lastWorkflowId();
+ }
+
+ public String lastOperationName() {
+ return this.innerModel().lastOperationName();
+ }
+
+ public CloudEndpointChangeEnumerationStatus changeEnumerationStatus() {
+ return this.innerModel().changeEnumerationStatus();
+ }
+
+ public CloudEndpointInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.storagesync.StoragesyncManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String storageSyncServiceName;
+
+ private String syncGroupName;
+
+ private String cloudEndpointName;
+
+ private CloudEndpointCreateParameters createParameters;
+
+ public CloudEndpointImpl withExistingSyncGroup(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ this.storageSyncServiceName = storageSyncServiceName;
+ this.syncGroupName = syncGroupName;
+ return this;
+ }
+
+ public CloudEndpoint create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getCloudEndpoints()
+ .create(
+ resourceGroupName,
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ createParameters,
+ Context.NONE);
+ return this;
+ }
+
+ public CloudEndpoint create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getCloudEndpoints()
+ .create(
+ resourceGroupName,
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ createParameters,
+ context);
+ return this;
+ }
+
+ CloudEndpointImpl(String name, com.azure.resourcemanager.storagesync.StoragesyncManager serviceManager) {
+ this.innerObject = new CloudEndpointInner();
+ this.serviceManager = serviceManager;
+ this.cloudEndpointName = name;
+ this.createParameters = new CloudEndpointCreateParameters();
+ }
+
+ public CloudEndpoint refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getCloudEndpoints()
+ .getWithResponse(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public CloudEndpoint refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getCloudEndpoints()
+ .getWithResponse(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, context)
+ .getValue();
+ return this;
+ }
+
+ public void preBackup(BackupRequest parameters) {
+ serviceManager
+ .cloudEndpoints()
+ .preBackup(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters);
+ }
+
+ public void preBackup(BackupRequest parameters, Context context) {
+ serviceManager
+ .cloudEndpoints()
+ .preBackup(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context);
+ }
+
+ public PostBackupResponse postBackup(BackupRequest parameters) {
+ return serviceManager
+ .cloudEndpoints()
+ .postBackup(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters);
+ }
+
+ public PostBackupResponse postBackup(BackupRequest parameters, Context context) {
+ return serviceManager
+ .cloudEndpoints()
+ .postBackup(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context);
+ }
+
+ public void preRestore(PreRestoreRequest parameters) {
+ serviceManager
+ .cloudEndpoints()
+ .preRestore(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters);
+ }
+
+ public void preRestore(PreRestoreRequest parameters, Context context) {
+ serviceManager
+ .cloudEndpoints()
+ .preRestore(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context);
+ }
+
+ public void restoreheartbeat() {
+ serviceManager
+ .cloudEndpoints()
+ .restoreheartbeat(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName);
+ }
+
+ public CloudEndpointsRestoreheartbeatResponse restoreheartbeatWithResponse(Context context) {
+ return serviceManager
+ .cloudEndpoints()
+ .restoreheartbeatWithResponse(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, context);
+ }
+
+ public void postRestore(PostRestoreRequest parameters) {
+ serviceManager
+ .cloudEndpoints()
+ .postRestore(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters);
+ }
+
+ public void postRestore(PostRestoreRequest parameters, Context context) {
+ serviceManager
+ .cloudEndpoints()
+ .postRestore(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context);
+ }
+
+ public void triggerChangeDetection(TriggerChangeDetectionParameters parameters) {
+ serviceManager
+ .cloudEndpoints()
+ .triggerChangeDetection(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters);
+ }
+
+ public void triggerChangeDetection(TriggerChangeDetectionParameters parameters, Context context) {
+ serviceManager
+ .cloudEndpoints()
+ .triggerChangeDetection(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context);
+ }
+
+ public CloudEndpointImpl withStorageAccountResourceId(String storageAccountResourceId) {
+ this.createParameters.withStorageAccountResourceId(storageAccountResourceId);
+ return this;
+ }
+
+ public CloudEndpointImpl withAzureFileShareName(String azureFileShareName) {
+ this.createParameters.withAzureFileShareName(azureFileShareName);
+ return this;
+ }
+
+ public CloudEndpointImpl withStorageAccountTenantId(String storageAccountTenantId) {
+ this.createParameters.withStorageAccountTenantId(storageAccountTenantId);
+ return this;
+ }
+
+ public CloudEndpointImpl withFriendlyName(String friendlyName) {
+ this.createParameters.withFriendlyName(friendlyName);
+ return this;
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/CloudEndpointsClientImpl.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/CloudEndpointsClientImpl.java
new file mode 100644
index 000000000000..5ed60e9e532f
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/CloudEndpointsClientImpl.java
@@ -0,0 +1,3308 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.storagesync.fluent.CloudEndpointsClient;
+import com.azure.resourcemanager.storagesync.fluent.models.CloudEndpointInner;
+import com.azure.resourcemanager.storagesync.fluent.models.PostBackupResponseInner;
+import com.azure.resourcemanager.storagesync.models.BackupRequest;
+import com.azure.resourcemanager.storagesync.models.CloudEndpointCreateParameters;
+import com.azure.resourcemanager.storagesync.models.CloudEndpointsGetResponse;
+import com.azure.resourcemanager.storagesync.models.CloudEndpointsListBySyncGroupResponse;
+import com.azure.resourcemanager.storagesync.models.CloudEndpointsRestoreheartbeatResponse;
+import com.azure.resourcemanager.storagesync.models.PostRestoreRequest;
+import com.azure.resourcemanager.storagesync.models.PreRestoreRequest;
+import com.azure.resourcemanager.storagesync.models.StorageSyncApiErrorException;
+import com.azure.resourcemanager.storagesync.models.TriggerChangeDetectionParameters;
+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 CloudEndpointsClient. */
+public final class CloudEndpointsClientImpl implements CloudEndpointsClient {
+ private final ClientLogger logger = new ClientLogger(CloudEndpointsClientImpl.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final CloudEndpointsService service;
+
+ /** The service client containing this operation class. */
+ private final MicrosoftStorageSyncImpl client;
+
+ /**
+ * Initializes an instance of CloudEndpointsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ CloudEndpointsClientImpl(MicrosoftStorageSyncImpl client) {
+ this.service =
+ RestProxy.create(CloudEndpointsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MicrosoftStorageSyncCloudEndpoints to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "MicrosoftStorageSync")
+ private interface CloudEndpointsService {
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync"
+ + "/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints"
+ + "/{cloudEndpointName}")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(StorageSyncApiErrorException.class)
+ Mono>> create(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("storageSyncServiceName") String storageSyncServiceName,
+ @PathParam("syncGroupName") String syncGroupName,
+ @PathParam("cloudEndpointName") String cloudEndpointName,
+ @BodyParam("application/json") CloudEndpointCreateParameters parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync"
+ + "/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints"
+ + "/{cloudEndpointName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(StorageSyncApiErrorException.class)
+ Mono get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("storageSyncServiceName") String storageSyncServiceName,
+ @PathParam("syncGroupName") String syncGroupName,
+ @PathParam("cloudEndpointName") String cloudEndpointName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync"
+ + "/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints"
+ + "/{cloudEndpointName}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(StorageSyncApiErrorException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("storageSyncServiceName") String storageSyncServiceName,
+ @PathParam("syncGroupName") String syncGroupName,
+ @PathParam("cloudEndpointName") String cloudEndpointName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync"
+ + "/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(StorageSyncApiErrorException.class)
+ Mono listBySyncGroup(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("storageSyncServiceName") String storageSyncServiceName,
+ @PathParam("syncGroupName") String syncGroupName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync"
+ + "/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints"
+ + "/{cloudEndpointName}/prebackup")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(StorageSyncApiErrorException.class)
+ Mono>> preBackup(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("storageSyncServiceName") String storageSyncServiceName,
+ @PathParam("syncGroupName") String syncGroupName,
+ @PathParam("cloudEndpointName") String cloudEndpointName,
+ @BodyParam("application/json") BackupRequest parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync"
+ + "/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints"
+ + "/{cloudEndpointName}/postbackup")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(StorageSyncApiErrorException.class)
+ Mono>> postBackup(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("storageSyncServiceName") String storageSyncServiceName,
+ @PathParam("syncGroupName") String syncGroupName,
+ @PathParam("cloudEndpointName") String cloudEndpointName,
+ @BodyParam("application/json") BackupRequest parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync"
+ + "/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints"
+ + "/{cloudEndpointName}/prerestore")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(StorageSyncApiErrorException.class)
+ Mono>> preRestore(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("storageSyncServiceName") String storageSyncServiceName,
+ @PathParam("syncGroupName") String syncGroupName,
+ @PathParam("cloudEndpointName") String cloudEndpointName,
+ @BodyParam("application/json") PreRestoreRequest parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync"
+ + "/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints"
+ + "/{cloudEndpointName}/restoreheartbeat")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(StorageSyncApiErrorException.class)
+ Mono restoreheartbeat(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("storageSyncServiceName") String storageSyncServiceName,
+ @PathParam("syncGroupName") String syncGroupName,
+ @PathParam("cloudEndpointName") String cloudEndpointName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync"
+ + "/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints"
+ + "/{cloudEndpointName}/postrestore")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(StorageSyncApiErrorException.class)
+ Mono>> postRestore(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("storageSyncServiceName") String storageSyncServiceName,
+ @PathParam("syncGroupName") String syncGroupName,
+ @PathParam("cloudEndpointName") String cloudEndpointName,
+ @BodyParam("application/json") PostRestoreRequest parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync"
+ + "/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints"
+ + "/{cloudEndpointName}/triggerChangeDetection")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(StorageSyncApiErrorException.class)
+ Mono>> triggerChangeDetection(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("storageSyncServiceName") String storageSyncServiceName,
+ @PathParam("syncGroupName") String syncGroupName,
+ @PathParam("cloudEndpointName") String cloudEndpointName,
+ @BodyParam("application/json") TriggerChangeDetectionParameters parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Create a new CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ CloudEndpointCreateParameters parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ if (cloudEndpointName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudEndpointName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .create(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create a new CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ CloudEndpointCreateParameters parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ if (cloudEndpointName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudEndpointName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .create(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Create a new CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, CloudEndpointInner> beginCreateAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ CloudEndpointCreateParameters parameters) {
+ Mono>> mono =
+ createWithResponseAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), CloudEndpointInner.class, CloudEndpointInner.class, Context.NONE);
+ }
+
+ /**
+ * Create a new CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, CloudEndpointInner> beginCreateAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ CloudEndpointCreateParameters parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createWithResponseAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), CloudEndpointInner.class, CloudEndpointInner.class, context);
+ }
+
+ /**
+ * Create a new CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, CloudEndpointInner> beginCreate(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ CloudEndpointCreateParameters parameters) {
+ return beginCreateAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create a new CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, CloudEndpointInner> beginCreate(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ CloudEndpointCreateParameters parameters,
+ Context context) {
+ return beginCreateAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create a new CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ CloudEndpointCreateParameters parameters) {
+ return beginCreateAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a new CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ CloudEndpointCreateParameters parameters,
+ Context context) {
+ return beginCreateAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a new CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CloudEndpointInner create(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ CloudEndpointCreateParameters parameters) {
+ return createAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters)
+ .block();
+ }
+
+ /**
+ * Create a new CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cloud Endpoint object.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CloudEndpointInner create(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ CloudEndpointCreateParameters parameters,
+ Context context) {
+ return createAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context)
+ .block();
+ }
+
+ /**
+ * Get a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a given CloudEndpoint.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getWithResponseAsync(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String cloudEndpointName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ if (cloudEndpointName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudEndpointName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a given CloudEndpoint.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getWithResponseAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ if (cloudEndpointName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudEndpointName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ accept,
+ context);
+ }
+
+ /**
+ * Get a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a given CloudEndpoint.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String cloudEndpointName) {
+ return getWithResponseAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName)
+ .flatMap(
+ (CloudEndpointsGetResponse res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a given CloudEndpoint.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CloudEndpointInner get(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String cloudEndpointName) {
+ return getAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName).block();
+ }
+
+ /**
+ * Get a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a given CloudEndpoint.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CloudEndpointsGetResponse getWithResponse(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ Context context) {
+ return getWithResponseAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, context)
+ .block();
+ }
+
+ /**
+ * Delete a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String cloudEndpointName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ if (cloudEndpointName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudEndpointName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ if (cloudEndpointName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudEndpointName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ accept,
+ context);
+ }
+
+ /**
+ * Delete a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String cloudEndpointName) {
+ Mono>> mono =
+ deleteWithResponseAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Delete a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ deleteWithResponseAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String cloudEndpointName) {
+ return beginDeleteAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName)
+ .getSyncPoller();
+ }
+
+ /**
+ * Delete a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ Context context) {
+ return beginDeleteAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Delete a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String cloudEndpointName) {
+ return beginDeleteAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ Context context) {
+ return beginDeleteAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String cloudEndpointName) {
+ deleteAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName).block();
+ }
+
+ /**
+ * Delete a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ Context context) {
+ deleteAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, context).block();
+ }
+
+ /**
+ * Get a CloudEndpoint List.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a CloudEndpoint List.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySyncGroupSinglePageAsync(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listBySyncGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ null,
+ res.getDeserializedHeaders()))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a CloudEndpoint List.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a CloudEndpoint List.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySyncGroupSinglePageAsync(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listBySyncGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ null,
+ res.getDeserializedHeaders()));
+ }
+
+ /**
+ * Get a CloudEndpoint List.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a CloudEndpoint List.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listBySyncGroupAsync(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName) {
+ return new PagedFlux<>(
+ () -> listBySyncGroupSinglePageAsync(resourceGroupName, storageSyncServiceName, syncGroupName));
+ }
+
+ /**
+ * Get a CloudEndpoint List.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a CloudEndpoint List.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listBySyncGroupAsync(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, Context context) {
+ return new PagedFlux<>(
+ () -> listBySyncGroupSinglePageAsync(resourceGroupName, storageSyncServiceName, syncGroupName, context));
+ }
+
+ /**
+ * Get a CloudEndpoint List.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a CloudEndpoint List.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listBySyncGroup(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName) {
+ return new PagedIterable<>(listBySyncGroupAsync(resourceGroupName, storageSyncServiceName, syncGroupName));
+ }
+
+ /**
+ * Get a CloudEndpoint List.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a CloudEndpoint List.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listBySyncGroup(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, Context context) {
+ return new PagedIterable<>(
+ listBySyncGroupAsync(resourceGroupName, storageSyncServiceName, syncGroupName, context));
+ }
+
+ /**
+ * Pre Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> preBackupWithResponseAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ if (cloudEndpointName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudEndpointName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .preBackup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Pre Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> preBackupWithResponseAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ if (cloudEndpointName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudEndpointName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .preBackup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Pre Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginPreBackupAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters) {
+ Mono>> mono =
+ preBackupWithResponseAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Pre Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginPreBackupAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ preBackupWithResponseAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Pre Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginPreBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters) {
+ return beginPreBackupAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters)
+ .getSyncPoller();
+ }
+
+ /**
+ * Pre Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginPreBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters,
+ Context context) {
+ return beginPreBackupAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Pre Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono preBackupAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters) {
+ return beginPreBackupAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Pre Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono preBackupAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters,
+ Context context) {
+ return beginPreBackupAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Pre Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void preBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters) {
+ preBackupAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters).block();
+ }
+
+ /**
+ * Pre Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void preBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters,
+ Context context) {
+ preBackupAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context)
+ .block();
+ }
+
+ /**
+ * Post Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return post Backup Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> postBackupWithResponseAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ if (cloudEndpointName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudEndpointName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .postBackup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Post Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return post Backup Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> postBackupWithResponseAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ if (cloudEndpointName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudEndpointName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .postBackup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Post Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return post Backup Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, PostBackupResponseInner> beginPostBackupAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters) {
+ Mono>> mono =
+ postBackupWithResponseAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ PostBackupResponseInner.class,
+ PostBackupResponseInner.class,
+ Context.NONE);
+ }
+
+ /**
+ * Post Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return post Backup Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, PostBackupResponseInner> beginPostBackupAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ postBackupWithResponseAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ PostBackupResponseInner.class,
+ PostBackupResponseInner.class,
+ context);
+ }
+
+ /**
+ * Post Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return post Backup Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, PostBackupResponseInner> beginPostBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters) {
+ return beginPostBackupAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters)
+ .getSyncPoller();
+ }
+
+ /**
+ * Post Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return post Backup Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, PostBackupResponseInner> beginPostBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters,
+ Context context) {
+ return beginPostBackupAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Post Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return post Backup Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono postBackupAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters) {
+ return beginPostBackupAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Post Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return post Backup Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono postBackupAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters,
+ Context context) {
+ return beginPostBackupAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Post Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return post Backup Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PostBackupResponseInner postBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters) {
+ return postBackupAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters)
+ .block();
+ }
+
+ /**
+ * Post Backup a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Backup request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return post Backup Response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PostBackupResponseInner postBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters,
+ Context context) {
+ return postBackupAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context)
+ .block();
+ }
+
+ /**
+ * Pre Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> preRestoreWithResponseAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PreRestoreRequest parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ if (cloudEndpointName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudEndpointName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .preRestore(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Pre Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> preRestoreWithResponseAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PreRestoreRequest parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ if (cloudEndpointName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudEndpointName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .preRestore(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Pre Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginPreRestoreAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PreRestoreRequest parameters) {
+ Mono>> mono =
+ preRestoreWithResponseAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Pre Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginPreRestoreAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PreRestoreRequest parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ preRestoreWithResponseAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Pre Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginPreRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PreRestoreRequest parameters) {
+ return beginPreRestoreAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters)
+ .getSyncPoller();
+ }
+
+ /**
+ * Pre Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginPreRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PreRestoreRequest parameters,
+ Context context) {
+ return beginPreRestoreAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Pre Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono preRestoreAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PreRestoreRequest parameters) {
+ return beginPreRestoreAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Pre Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono preRestoreAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PreRestoreRequest parameters,
+ Context context) {
+ return beginPreRestoreAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Pre Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void preRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PreRestoreRequest parameters) {
+ preRestoreAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters)
+ .block();
+ }
+
+ /**
+ * Pre Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void preRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PreRestoreRequest parameters,
+ Context context) {
+ preRestoreAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context)
+ .block();
+ }
+
+ /**
+ * Restore Heartbeat a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono restoreheartbeatWithResponseAsync(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String cloudEndpointName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ if (cloudEndpointName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudEndpointName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .restoreheartbeat(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Restore Heartbeat a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono restoreheartbeatWithResponseAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ if (cloudEndpointName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudEndpointName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .restoreheartbeat(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ accept,
+ context);
+ }
+
+ /**
+ * Restore Heartbeat a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono restoreheartbeatAsync(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String cloudEndpointName) {
+ return restoreheartbeatWithResponseAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName)
+ .flatMap((CloudEndpointsRestoreheartbeatResponse res) -> Mono.empty());
+ }
+
+ /**
+ * Restore Heartbeat a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void restoreheartbeat(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String cloudEndpointName) {
+ restoreheartbeatAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName).block();
+ }
+
+ /**
+ * Restore Heartbeat a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CloudEndpointsRestoreheartbeatResponse restoreheartbeatWithResponse(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ Context context) {
+ return restoreheartbeatWithResponseAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, context)
+ .block();
+ }
+
+ /**
+ * Post Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> postRestoreWithResponseAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PostRestoreRequest parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ if (cloudEndpointName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudEndpointName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .postRestore(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Post Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> postRestoreWithResponseAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PostRestoreRequest parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ if (cloudEndpointName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudEndpointName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .postRestore(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Post Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginPostRestoreAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PostRestoreRequest parameters) {
+ Mono>> mono =
+ postRestoreWithResponseAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Post Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginPostRestoreAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PostRestoreRequest parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ postRestoreWithResponseAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Post Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginPostRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PostRestoreRequest parameters) {
+ return beginPostRestoreAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters)
+ .getSyncPoller();
+ }
+
+ /**
+ * Post Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginPostRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PostRestoreRequest parameters,
+ Context context) {
+ return beginPostRestoreAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Post Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono postRestoreAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PostRestoreRequest parameters) {
+ return beginPostRestoreAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Post Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono postRestoreAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PostRestoreRequest parameters,
+ Context context) {
+ return beginPostRestoreAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Post Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void postRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PostRestoreRequest parameters) {
+ postRestoreAsync(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters)
+ .block();
+ }
+
+ /**
+ * Post Restore a given CloudEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Body of Cloud Endpoint object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void postRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PostRestoreRequest parameters,
+ Context context) {
+ postRestoreAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context)
+ .block();
+ }
+
+ /**
+ * Triggers detection of changes performed on Azure File share connected to the specified Azure File Sync Cloud
+ * Endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Trigger Change Detection Action parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> triggerChangeDetectionWithResponseAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ TriggerChangeDetectionParameters parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ if (cloudEndpointName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudEndpointName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .triggerChangeDetection(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Triggers detection of changes performed on Azure File share connected to the specified Azure File Sync Cloud
+ * Endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Trigger Change Detection Action parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> triggerChangeDetectionWithResponseAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ TriggerChangeDetectionParameters parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (storageSyncServiceName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException("Parameter storageSyncServiceName is required and cannot be null."));
+ }
+ if (syncGroupName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter syncGroupName is required and cannot be null."));
+ }
+ if (cloudEndpointName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter cloudEndpointName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .triggerChangeDetection(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ storageSyncServiceName,
+ syncGroupName,
+ cloudEndpointName,
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Triggers detection of changes performed on Azure File share connected to the specified Azure File Sync Cloud
+ * Endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Trigger Change Detection Action parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginTriggerChangeDetectionAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ TriggerChangeDetectionParameters parameters) {
+ Mono>> mono =
+ triggerChangeDetectionWithResponseAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Triggers detection of changes performed on Azure File share connected to the specified Azure File Sync Cloud
+ * Endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Trigger Change Detection Action parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginTriggerChangeDetectionAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ TriggerChangeDetectionParameters parameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ triggerChangeDetectionWithResponseAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Triggers detection of changes performed on Azure File share connected to the specified Azure File Sync Cloud
+ * Endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Trigger Change Detection Action parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginTriggerChangeDetection(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ TriggerChangeDetectionParameters parameters) {
+ return beginTriggerChangeDetectionAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters)
+ .getSyncPoller();
+ }
+
+ /**
+ * Triggers detection of changes performed on Azure File share connected to the specified Azure File Sync Cloud
+ * Endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Trigger Change Detection Action parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginTriggerChangeDetection(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ TriggerChangeDetectionParameters parameters,
+ Context context) {
+ return beginTriggerChangeDetectionAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Triggers detection of changes performed on Azure File share connected to the specified Azure File Sync Cloud
+ * Endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Trigger Change Detection Action parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono triggerChangeDetectionAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ TriggerChangeDetectionParameters parameters) {
+ return beginTriggerChangeDetectionAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Triggers detection of changes performed on Azure File share connected to the specified Azure File Sync Cloud
+ * Endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Trigger Change Detection Action parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono triggerChangeDetectionAsync(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ TriggerChangeDetectionParameters parameters,
+ Context context) {
+ return beginTriggerChangeDetectionAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Triggers detection of changes performed on Azure File share connected to the specified Azure File Sync Cloud
+ * Endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Trigger Change Detection Action parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void triggerChangeDetection(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ TriggerChangeDetectionParameters parameters) {
+ triggerChangeDetectionAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters)
+ .block();
+ }
+
+ /**
+ * Triggers detection of changes performed on Azure File share connected to the specified Azure File Sync Cloud
+ * Endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param storageSyncServiceName Name of Storage Sync Service resource.
+ * @param syncGroupName Name of Sync Group resource.
+ * @param cloudEndpointName Name of Cloud Endpoint object.
+ * @param parameters Trigger Change Detection Action parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws StorageSyncApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void triggerChangeDetection(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ TriggerChangeDetectionParameters parameters,
+ Context context) {
+ triggerChangeDetectionAsync(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context)
+ .block();
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/CloudEndpointsImpl.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/CloudEndpointsImpl.java
new file mode 100644
index 000000000000..c80c2b045483
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/CloudEndpointsImpl.java
@@ -0,0 +1,411 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.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.storagesync.fluent.CloudEndpointsClient;
+import com.azure.resourcemanager.storagesync.fluent.models.CloudEndpointInner;
+import com.azure.resourcemanager.storagesync.fluent.models.PostBackupResponseInner;
+import com.azure.resourcemanager.storagesync.models.BackupRequest;
+import com.azure.resourcemanager.storagesync.models.CloudEndpoint;
+import com.azure.resourcemanager.storagesync.models.CloudEndpoints;
+import com.azure.resourcemanager.storagesync.models.CloudEndpointsGetResponse;
+import com.azure.resourcemanager.storagesync.models.CloudEndpointsRestoreheartbeatResponse;
+import com.azure.resourcemanager.storagesync.models.PostBackupResponse;
+import com.azure.resourcemanager.storagesync.models.PostRestoreRequest;
+import com.azure.resourcemanager.storagesync.models.PreRestoreRequest;
+import com.azure.resourcemanager.storagesync.models.TriggerChangeDetectionParameters;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
+public final class CloudEndpointsImpl implements CloudEndpoints {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CloudEndpointsImpl.class);
+
+ private final CloudEndpointsClient innerClient;
+
+ private final com.azure.resourcemanager.storagesync.StoragesyncManager serviceManager;
+
+ public CloudEndpointsImpl(
+ CloudEndpointsClient innerClient, com.azure.resourcemanager.storagesync.StoragesyncManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public CloudEndpoint get(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String cloudEndpointName) {
+ CloudEndpointInner inner =
+ this.serviceClient().get(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName);
+ if (inner != null) {
+ return new CloudEndpointImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ Context context) {
+ CloudEndpointsGetResponse inner =
+ this
+ .serviceClient()
+ .getWithResponse(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new CloudEndpointImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String cloudEndpointName) {
+ this.serviceClient().delete(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName);
+ }
+
+ public void delete(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ Context context) {
+ this
+ .serviceClient()
+ .delete(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, context);
+ }
+
+ public PagedIterable listBySyncGroup(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName) {
+ PagedIterable inner =
+ this.serviceClient().listBySyncGroup(resourceGroupName, storageSyncServiceName, syncGroupName);
+ return Utils.mapPage(inner, inner1 -> new CloudEndpointImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listBySyncGroup(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listBySyncGroup(resourceGroupName, storageSyncServiceName, syncGroupName, context);
+ return Utils.mapPage(inner, inner1 -> new CloudEndpointImpl(inner1, this.manager()));
+ }
+
+ public void preBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters) {
+ this
+ .serviceClient()
+ .preBackup(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters);
+ }
+
+ public void preBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters,
+ Context context) {
+ this
+ .serviceClient()
+ .preBackup(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context);
+ }
+
+ public PostBackupResponse postBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters) {
+ PostBackupResponseInner inner =
+ this
+ .serviceClient()
+ .postBackup(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters);
+ if (inner != null) {
+ return new PostBackupResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public PostBackupResponse postBackup(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ BackupRequest parameters,
+ Context context) {
+ PostBackupResponseInner inner =
+ this
+ .serviceClient()
+ .postBackup(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context);
+ if (inner != null) {
+ return new PostBackupResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void preRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PreRestoreRequest parameters) {
+ this
+ .serviceClient()
+ .preRestore(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters);
+ }
+
+ public void preRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PreRestoreRequest parameters,
+ Context context) {
+ this
+ .serviceClient()
+ .preRestore(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context);
+ }
+
+ public void restoreheartbeat(
+ String resourceGroupName, String storageSyncServiceName, String syncGroupName, String cloudEndpointName) {
+ this
+ .serviceClient()
+ .restoreheartbeat(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName);
+ }
+
+ public CloudEndpointsRestoreheartbeatResponse restoreheartbeatWithResponse(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ Context context) {
+ return this
+ .serviceClient()
+ .restoreheartbeatWithResponse(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, context);
+ }
+
+ public void postRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PostRestoreRequest parameters) {
+ this
+ .serviceClient()
+ .postRestore(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters);
+ }
+
+ public void postRestore(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ PostRestoreRequest parameters,
+ Context context) {
+ this
+ .serviceClient()
+ .postRestore(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context);
+ }
+
+ public void triggerChangeDetection(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ TriggerChangeDetectionParameters parameters) {
+ this
+ .serviceClient()
+ .triggerChangeDetection(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters);
+ }
+
+ public void triggerChangeDetection(
+ String resourceGroupName,
+ String storageSyncServiceName,
+ String syncGroupName,
+ String cloudEndpointName,
+ TriggerChangeDetectionParameters parameters,
+ Context context) {
+ this
+ .serviceClient()
+ .triggerChangeDetection(
+ resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, parameters, context);
+ }
+
+ public CloudEndpoint getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String storageSyncServiceName = Utils.getValueFromIdByName(id, "storageSyncServices");
+ if (storageSyncServiceName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'storageSyncServices'.", id)));
+ }
+ String syncGroupName = Utils.getValueFromIdByName(id, "syncGroups");
+ if (syncGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'syncGroups'.", id)));
+ }
+ String cloudEndpointName = Utils.getValueFromIdByName(id, "cloudEndpoints");
+ if (cloudEndpointName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'cloudEndpoints'.", id)));
+ }
+ return this
+ .getWithResponse(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, Context.NONE)
+ .getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String storageSyncServiceName = Utils.getValueFromIdByName(id, "storageSyncServices");
+ if (storageSyncServiceName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'storageSyncServices'.", id)));
+ }
+ String syncGroupName = Utils.getValueFromIdByName(id, "syncGroups");
+ if (syncGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'syncGroups'.", id)));
+ }
+ String cloudEndpointName = Utils.getValueFromIdByName(id, "cloudEndpoints");
+ if (cloudEndpointName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'cloudEndpoints'.", id)));
+ }
+ return this
+ .getWithResponse(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String storageSyncServiceName = Utils.getValueFromIdByName(id, "storageSyncServices");
+ if (storageSyncServiceName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'storageSyncServices'.", id)));
+ }
+ String syncGroupName = Utils.getValueFromIdByName(id, "syncGroups");
+ if (syncGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'syncGroups'.", id)));
+ }
+ String cloudEndpointName = Utils.getValueFromIdByName(id, "cloudEndpoints");
+ if (cloudEndpointName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'cloudEndpoints'.", id)));
+ }
+ this.delete(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String storageSyncServiceName = Utils.getValueFromIdByName(id, "storageSyncServices");
+ if (storageSyncServiceName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'storageSyncServices'.", id)));
+ }
+ String syncGroupName = Utils.getValueFromIdByName(id, "syncGroups");
+ if (syncGroupName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'syncGroups'.", id)));
+ }
+ String cloudEndpointName = Utils.getValueFromIdByName(id, "cloudEndpoints");
+ if (cloudEndpointName == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'cloudEndpoints'.", id)));
+ }
+ this.delete(resourceGroupName, storageSyncServiceName, syncGroupName, cloudEndpointName, context);
+ }
+
+ private CloudEndpointsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.storagesync.StoragesyncManager manager() {
+ return this.serviceManager;
+ }
+
+ public CloudEndpointImpl define(String name) {
+ return new CloudEndpointImpl(name, this.manager());
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/MicrosoftStorageSyncBuilder.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/MicrosoftStorageSyncBuilder.java
new file mode 100644
index 000000000000..dd9454b8274c
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/MicrosoftStorageSyncBuilder.java
@@ -0,0 +1,146 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.implementation;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.CookiePolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.time.Duration;
+
+/** A builder for creating a new instance of the MicrosoftStorageSyncImpl type. */
+@ServiceClientBuilder(serviceClients = {MicrosoftStorageSyncImpl.class})
+public final class MicrosoftStorageSyncBuilder {
+ /*
+ * The ID of the target subscription.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets The ID of the target subscription.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the MicrosoftStorageSyncBuilder.
+ */
+ public MicrosoftStorageSyncBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the MicrosoftStorageSyncBuilder.
+ */
+ public MicrosoftStorageSyncBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the MicrosoftStorageSyncBuilder.
+ */
+ public MicrosoftStorageSyncBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The default poll interval for long-running operation
+ */
+ private Duration defaultPollInterval;
+
+ /**
+ * Sets The default poll interval for long-running operation.
+ *
+ * @param defaultPollInterval the defaultPollInterval value.
+ * @return the MicrosoftStorageSyncBuilder.
+ */
+ public MicrosoftStorageSyncBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the MicrosoftStorageSyncBuilder.
+ */
+ public MicrosoftStorageSyncBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The serializer to serialize an object into a string
+ */
+ private SerializerAdapter serializerAdapter;
+
+ /**
+ * Sets The serializer to serialize an object into a string.
+ *
+ * @param serializerAdapter the serializerAdapter value.
+ * @return the MicrosoftStorageSyncBuilder.
+ */
+ public MicrosoftStorageSyncBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of MicrosoftStorageSyncImpl with the provided parameters.
+ *
+ * @return an instance of MicrosoftStorageSyncImpl.
+ */
+ public MicrosoftStorageSyncImpl buildClient() {
+ if (endpoint == null) {
+ this.endpoint = "https://management.azure.com";
+ }
+ if (environment == null) {
+ this.environment = AzureEnvironment.AZURE;
+ }
+ if (defaultPollInterval == null) {
+ this.defaultPollInterval = Duration.ofSeconds(30);
+ }
+ if (pipeline == null) {
+ this.pipeline =
+ new HttpPipelineBuilder()
+ .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
+ .build();
+ }
+ if (serializerAdapter == null) {
+ this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
+ }
+ MicrosoftStorageSyncImpl client =
+ new MicrosoftStorageSyncImpl(
+ pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/MicrosoftStorageSyncImpl.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/MicrosoftStorageSyncImpl.java
new file mode 100644
index 000000000000..87d8d3769937
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/MicrosoftStorageSyncImpl.java
@@ -0,0 +1,419 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpResponse;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.AsyncPollResponse;
+import com.azure.core.util.polling.LongRunningOperationStatus;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.storagesync.fluent.CloudEndpointsClient;
+import com.azure.resourcemanager.storagesync.fluent.MicrosoftStorageSync;
+import com.azure.resourcemanager.storagesync.fluent.OperationStatusOperationsClient;
+import com.azure.resourcemanager.storagesync.fluent.OperationsClient;
+import com.azure.resourcemanager.storagesync.fluent.PrivateEndpointConnectionsClient;
+import com.azure.resourcemanager.storagesync.fluent.PrivateLinkResourcesClient;
+import com.azure.resourcemanager.storagesync.fluent.RegisteredServersClient;
+import com.azure.resourcemanager.storagesync.fluent.ServerEndpointsClient;
+import com.azure.resourcemanager.storagesync.fluent.StorageSyncServicesClient;
+import com.azure.resourcemanager.storagesync.fluent.SyncGroupsClient;
+import com.azure.resourcemanager.storagesync.fluent.WorkflowsClient;
+import java.io.IOException;
+import java.lang.reflect.Type;
+import java.nio.ByteBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import java.util.Map;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** Initializes a new instance of the MicrosoftStorageSyncImpl type. */
+@ServiceClient(builder = MicrosoftStorageSyncBuilder.class)
+public final class MicrosoftStorageSyncImpl implements MicrosoftStorageSync {
+ private final ClientLogger logger = new ClientLogger(MicrosoftStorageSyncImpl.class);
+
+ /** The ID of the target subscription. */
+ private final String subscriptionId;
+
+ /**
+ * Gets The ID of the target subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /** server parameter. */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /** Api Version. */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /** The HTTP pipeline to send requests through. */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /** The serializer to serialize an object into a string. */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /** The default poll interval for long-running operation. */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /** The OperationsClient object to access its operations. */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /** The StorageSyncServicesClient object to access its operations. */
+ private final StorageSyncServicesClient storageSyncServices;
+
+ /**
+ * Gets the StorageSyncServicesClient object to access its operations.
+ *
+ * @return the StorageSyncServicesClient object.
+ */
+ public StorageSyncServicesClient getStorageSyncServices() {
+ return this.storageSyncServices;
+ }
+
+ /** The PrivateLinkResourcesClient object to access its operations. */
+ private final PrivateLinkResourcesClient privateLinkResources;
+
+ /**
+ * Gets the PrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the PrivateLinkResourcesClient object.
+ */
+ public PrivateLinkResourcesClient getPrivateLinkResources() {
+ return this.privateLinkResources;
+ }
+
+ /** The PrivateEndpointConnectionsClient object to access its operations. */
+ private final PrivateEndpointConnectionsClient privateEndpointConnections;
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
+ /** The SyncGroupsClient object to access its operations. */
+ private final SyncGroupsClient syncGroups;
+
+ /**
+ * Gets the SyncGroupsClient object to access its operations.
+ *
+ * @return the SyncGroupsClient object.
+ */
+ public SyncGroupsClient getSyncGroups() {
+ return this.syncGroups;
+ }
+
+ /** The CloudEndpointsClient object to access its operations. */
+ private final CloudEndpointsClient cloudEndpoints;
+
+ /**
+ * Gets the CloudEndpointsClient object to access its operations.
+ *
+ * @return the CloudEndpointsClient object.
+ */
+ public CloudEndpointsClient getCloudEndpoints() {
+ return this.cloudEndpoints;
+ }
+
+ /** The ServerEndpointsClient object to access its operations. */
+ private final ServerEndpointsClient serverEndpoints;
+
+ /**
+ * Gets the ServerEndpointsClient object to access its operations.
+ *
+ * @return the ServerEndpointsClient object.
+ */
+ public ServerEndpointsClient getServerEndpoints() {
+ return this.serverEndpoints;
+ }
+
+ /** The RegisteredServersClient object to access its operations. */
+ private final RegisteredServersClient registeredServers;
+
+ /**
+ * Gets the RegisteredServersClient object to access its operations.
+ *
+ * @return the RegisteredServersClient object.
+ */
+ public RegisteredServersClient getRegisteredServers() {
+ return this.registeredServers;
+ }
+
+ /** The WorkflowsClient object to access its operations. */
+ private final WorkflowsClient workflows;
+
+ /**
+ * Gets the WorkflowsClient object to access its operations.
+ *
+ * @return the WorkflowsClient object.
+ */
+ public WorkflowsClient getWorkflows() {
+ return this.workflows;
+ }
+
+ /** The OperationStatusOperationsClient object to access its operations. */
+ private final OperationStatusOperationsClient operationStatusOperations;
+
+ /**
+ * Gets the OperationStatusOperationsClient object to access its operations.
+ *
+ * @return the OperationStatusOperationsClient object.
+ */
+ public OperationStatusOperationsClient getOperationStatusOperations() {
+ return this.operationStatusOperations;
+ }
+
+ /**
+ * Initializes an instance of MicrosoftStorageSync client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param serializerAdapter The serializer to serialize an object into a string.
+ * @param defaultPollInterval The default poll interval for long-running operation.
+ * @param environment The Azure environment.
+ * @param subscriptionId The ID of the target subscription.
+ * @param endpoint server parameter.
+ */
+ MicrosoftStorageSyncImpl(
+ HttpPipeline httpPipeline,
+ SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval,
+ AzureEnvironment environment,
+ String subscriptionId,
+ String endpoint) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.subscriptionId = subscriptionId;
+ this.endpoint = endpoint;
+ this.apiVersion = "2020-09-01";
+ this.operations = new OperationsClientImpl(this);
+ this.storageSyncServices = new StorageSyncServicesClientImpl(this);
+ this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
+ this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);
+ this.syncGroups = new SyncGroupsClientImpl(this);
+ this.cloudEndpoints = new CloudEndpointsClientImpl(this);
+ this.serverEndpoints = new ServerEndpointsClientImpl(this);
+ this.registeredServers = new RegisteredServersClientImpl(this);
+ this.workflows = new WorkflowsClientImpl(this);
+ this.operationStatusOperations = new OperationStatusOperationsClientImpl(this);
+ }
+
+ /**
+ * Gets default client context.
+ *
+ * @return the default client context.
+ */
+ public Context getContext() {
+ return Context.NONE;
+ }
+
+ /**
+ * Merges default client context with provided context.
+ *
+ * @param context the context to be merged with default client context.
+ * @return the merged context.
+ */
+ public Context mergeContext(Context context) {
+ for (Map.Entry