diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index ccf846550edb..5f964b798193 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -335,6 +335,7 @@ com.azure.resourcemanager:azure-resourcemanager-automanage;1.0.0-beta.1;1.0.0-be
com.azure.resourcemanager:azure-resourcemanager-edgeorder;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-securityinsights;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-oep;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-storagesync;1.0.0-beta.1;1.0.0-beta.1
com.azure.tools:azure-sdk-archetype;1.0.0;1.0.0
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
diff --git a/pom.xml b/pom.xml
index 621fa3aedede..3ce7e39029cc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -971,6 +971,7 @@
sdk/storagecache
sdk/storageimportexport
sdk/storagepool
+ sdk/storagesync
sdk/streamanalytics
sdk/subscription
sdk/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..0fd2ee0dab79
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2022-02-10)
+
+- 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..bec4d162377a
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/README.md
@@ -0,0 +1,102 @@
+# 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
+
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/storagesync/azure-resourcemanager-storagesync/SAMPLE.md)
+
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/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/main/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/SAMPLE.md b/sdk/storagesync/azure-resourcemanager-storagesync/SAMPLE.md
new file mode 100644
index 000000000000..2f83f6011416
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/SAMPLE.md
@@ -0,0 +1,1318 @@
+# Code snippets and samples
+
+
+## CloudEndpoints
+
+- [Create](#cloudendpoints_create)
+- [Delete](#cloudendpoints_delete)
+- [Get](#cloudendpoints_get)
+- [ListBySyncGroup](#cloudendpoints_listbysyncgroup)
+- [PostBackup](#cloudendpoints_postbackup)
+- [PostRestore](#cloudendpoints_postrestore)
+- [PreBackup](#cloudendpoints_prebackup)
+- [PreRestore](#cloudendpoints_prerestore)
+- [Restoreheartbeat](#cloudendpoints_restoreheartbeat)
+- [TriggerChangeDetection](#cloudendpoints_triggerchangedetection)
+
+## OperationStatusOperation
+
+- [Get](#operationstatusoperation_get)
+
+## Operations
+
+- [List](#operations_list)
+
+## PrivateEndpointConnections
+
+- [Create](#privateendpointconnections_create)
+- [Delete](#privateendpointconnections_delete)
+- [Get](#privateendpointconnections_get)
+- [ListByStorageSyncService](#privateendpointconnections_listbystoragesyncservice)
+
+## PrivateLinkResources
+
+- [ListByStorageSyncService](#privatelinkresources_listbystoragesyncservice)
+
+## RegisteredServers
+
+- [Create](#registeredservers_create)
+- [Delete](#registeredservers_delete)
+- [Get](#registeredservers_get)
+- [ListByStorageSyncService](#registeredservers_listbystoragesyncservice)
+- [TriggerRollover](#registeredservers_triggerrollover)
+
+## ResourceProvider
+
+- [LocationOperationStatus](#resourceprovider_locationoperationstatus)
+
+## ServerEndpoints
+
+- [Create](#serverendpoints_create)
+- [Delete](#serverendpoints_delete)
+- [Get](#serverendpoints_get)
+- [ListBySyncGroup](#serverendpoints_listbysyncgroup)
+- [RecallAction](#serverendpoints_recallaction)
+- [Update](#serverendpoints_update)
+
+## StorageSyncServices
+
+- [CheckNameAvailability](#storagesyncservices_checknameavailability)
+- [Create](#storagesyncservices_create)
+- [Delete](#storagesyncservices_delete)
+- [GetByResourceGroup](#storagesyncservices_getbyresourcegroup)
+- [List](#storagesyncservices_list)
+- [ListByResourceGroup](#storagesyncservices_listbyresourcegroup)
+- [Update](#storagesyncservices_update)
+
+## SyncGroups
+
+- [Create](#syncgroups_create)
+- [Delete](#syncgroups_delete)
+- [Get](#syncgroups_get)
+- [ListByStorageSyncService](#syncgroups_listbystoragesyncservice)
+
+## Workflows
+
+- [Abort](#workflows_abort)
+- [Get](#workflows_get)
+- [ListByStorageSyncService](#workflows_listbystoragesyncservice)
+### CloudEndpoints_Create
+
+```java
+/** Samples for CloudEndpoints Create. */
+public final class CloudEndpointsCreateSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/CloudEndpoints_Create.json
+ */
+ /**
+ * Sample code: CloudEndpoints_Create.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void cloudEndpointsCreate(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .cloudEndpoints()
+ .define("SampleCloudEndpoint_1")
+ .withExistingSyncGroup("SampleResourceGroup_1", "SampleStorageSyncService_1", "SampleSyncGroup_1")
+ .withStorageAccountResourceId(
+ "/subscriptions/744f4d70-6d17-4921-8970-a765d14f763f/resourceGroups/tminienv59svc/providers/Microsoft.Storage/storageAccounts/tminienv59storage")
+ .withAzureFileShareName("cvcloud-afscv-0719-058-a94a1354-a1fd-4e9a-9a50-919fad8c4ba4")
+ .withStorageAccountTenantId("\"72f988bf-86f1-41af-91ab-2d7cd011db47\"")
+ .withFriendlyName("ankushbsubscriptionmgmtmab")
+ .create();
+ }
+}
+```
+
+### CloudEndpoints_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CloudEndpoints Delete. */
+public final class CloudEndpointsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/CloudEndpoints_Delete.json
+ */
+ /**
+ * Sample code: CloudEndpoints_Delete.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void cloudEndpointsDelete(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .cloudEndpoints()
+ .delete(
+ "SampleResourceGroup_1",
+ "SampleStorageSyncService_1",
+ "SampleSyncGroup_1",
+ "SampleCloudEndpoint_1",
+ Context.NONE);
+ }
+}
+```
+
+### CloudEndpoints_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CloudEndpoints Get. */
+public final class CloudEndpointsGetSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/CloudEndpoints_Get.json
+ */
+ /**
+ * Sample code: CloudEndpoints_Get.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void cloudEndpointsGet(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .cloudEndpoints()
+ .getWithResponse(
+ "SampleResourceGroup_1",
+ "SampleStorageSyncService_1",
+ "SampleSyncGroup_1",
+ "SampleCloudEndpoint_1",
+ Context.NONE);
+ }
+}
+```
+
+### CloudEndpoints_ListBySyncGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CloudEndpoints ListBySyncGroup. */
+public final class CloudEndpointsListBySyncGroupSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/CloudEndpoints_ListBySyncGroup.json
+ */
+ /**
+ * Sample code: CloudEndpoints_ListBySyncGroup.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void cloudEndpointsListBySyncGroup(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .cloudEndpoints()
+ .listBySyncGroup("SampleResourceGroup_1", "SampleStorageSyncService_1", "SampleSyncGroup_1", Context.NONE);
+ }
+}
+```
+
+### CloudEndpoints_PostBackup
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.storagesync.models.BackupRequest;
+
+/** Samples for CloudEndpoints PostBackup. */
+public final class CloudEndpointsPostBackupSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/CloudEndpoints_PostBackup.json
+ */
+ /**
+ * Sample code: CloudEndpoints_PostBackup.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void cloudEndpointsPostBackup(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .cloudEndpoints()
+ .postBackup(
+ "SampleResourceGroup_1",
+ "SampleStorageSyncService_1",
+ "SampleSyncGroup_1",
+ "SampleCloudEndpoint_1",
+ new BackupRequest()
+ .withAzureFileShare("https://sampleserver.file.core.test-cint.azure-test.net/sampleFileShare"),
+ Context.NONE);
+ }
+}
+```
+
+### CloudEndpoints_PostRestore
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.storagesync.models.PostRestoreRequest;
+import com.azure.resourcemanager.storagesync.models.RestoreFileSpec;
+import java.util.Arrays;
+
+/** Samples for CloudEndpoints PostRestore. */
+public final class CloudEndpointsPostRestoreSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/CloudEndpoints_PostRestore.json
+ */
+ /**
+ * Sample code: CloudEndpoints_PostRestore.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void cloudEndpointsPostRestore(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .cloudEndpoints()
+ .postRestore(
+ "SampleResourceGroup_1",
+ "SampleStorageSyncService_1",
+ "SampleSyncGroup_1",
+ "SampleCloudEndpoint_1",
+ new PostRestoreRequest()
+ .withAzureFileShareUri(
+ "https://hfsazbackupdevintncus2.file.core.test-cint.azure-test.net/sampleFileShare")
+ .withStatus("Succeeded")
+ .withSourceAzureFileShareUri(
+ "https://hfsazbackupdevintncus2.file.core.test-cint.azure-test.net/sampleFileShare")
+ .withRestoreFileSpec(
+ Arrays
+ .asList(
+ new RestoreFileSpec().withPath("text1.txt").withIsdir(false),
+ new RestoreFileSpec().withPath("MyDir").withIsdir(true),
+ new RestoreFileSpec().withPath("MyDir/SubDir").withIsdir(false),
+ new RestoreFileSpec().withPath("MyDir/SubDir/File1.pdf").withIsdir(false))),
+ Context.NONE);
+ }
+}
+```
+
+### CloudEndpoints_PreBackup
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.storagesync.models.BackupRequest;
+
+/** Samples for CloudEndpoints PreBackup. */
+public final class CloudEndpointsPreBackupSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/CloudEndpoints_PreBackup.json
+ */
+ /**
+ * Sample code: CloudEndpoints_PreBackup.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void cloudEndpointsPreBackup(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .cloudEndpoints()
+ .preBackup(
+ "SampleResourceGroup_1",
+ "SampleStorageSyncService_1",
+ "SampleSyncGroup_1",
+ "SampleCloudEndpoint_1",
+ new BackupRequest()
+ .withAzureFileShare("https://sampleserver.file.core.test-cint.azure-test.net/sampleFileShare"),
+ Context.NONE);
+ }
+}
+```
+
+### CloudEndpoints_PreRestore
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.storagesync.models.PreRestoreRequest;
+import com.azure.resourcemanager.storagesync.models.RestoreFileSpec;
+import java.util.Arrays;
+
+/** Samples for CloudEndpoints PreRestore. */
+public final class CloudEndpointsPreRestoreSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/CloudEndpoints_PreRestore.json
+ */
+ /**
+ * Sample code: CloudEndpoints_PreRestore.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void cloudEndpointsPreRestore(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .cloudEndpoints()
+ .preRestore(
+ "SampleResourceGroup_1",
+ "SampleStorageSyncService_1",
+ "SampleSyncGroup_1",
+ "SampleCloudEndpoint_1",
+ new PreRestoreRequest()
+ .withAzureFileShareUri(
+ "https://hfsazbackupdevintncus2.file.core.test-cint.azure-test.net/sampleFileShare")
+ .withRestoreFileSpec(
+ Arrays
+ .asList(
+ new RestoreFileSpec().withPath("text1.txt").withIsdir(false),
+ new RestoreFileSpec().withPath("MyDir").withIsdir(true),
+ new RestoreFileSpec().withPath("MyDir/SubDir").withIsdir(false),
+ new RestoreFileSpec().withPath("MyDir/SubDir/File1.pdf").withIsdir(false))),
+ Context.NONE);
+ }
+}
+```
+
+### CloudEndpoints_Restoreheartbeat
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for CloudEndpoints Restoreheartbeat. */
+public final class CloudEndpointsRestoreheartbeatSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/CloudEndpoints_RestoreHeatbeat.json
+ */
+ /**
+ * Sample code: CloudEndpoints_restoreheartbeat.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void cloudEndpointsRestoreheartbeat(
+ com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .cloudEndpoints()
+ .restoreheartbeatWithResponse(
+ "SampleResourceGroup_1",
+ "SampleStorageSyncService_1",
+ "SampleSyncGroup_1",
+ "SampleCloudEndpoint_1",
+ Context.NONE);
+ }
+}
+```
+
+### CloudEndpoints_TriggerChangeDetection
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.storagesync.models.ChangeDetectionMode;
+import com.azure.resourcemanager.storagesync.models.TriggerChangeDetectionParameters;
+
+/** Samples for CloudEndpoints TriggerChangeDetection. */
+public final class CloudEndpointsTriggerChangeDetectionSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/CloudEndpoints_TriggerChangeDetection.json
+ */
+ /**
+ * Sample code: CloudEndpoints_TriggerChangeDetection.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void cloudEndpointsTriggerChangeDetection(
+ com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .cloudEndpoints()
+ .triggerChangeDetection(
+ "SampleResourceGroup_1",
+ "SampleStorageSyncService_1",
+ "SampleSyncGroup_1",
+ "SampleCloudEndpoint_1",
+ new TriggerChangeDetectionParameters()
+ .withDirectoryPath("NewDirectory")
+ .withChangeDetectionMode(ChangeDetectionMode.RECURSIVE),
+ Context.NONE);
+ }
+}
+```
+
+### OperationStatusOperation_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for OperationStatusOperation Get. */
+public final class OperationStatusOperationGetSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/OperationStatus_Get.json
+ */
+ /**
+ * Sample code: Workflows_Get.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void workflowsGet(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .operationStatusOperations()
+ .getWithResponse(
+ "SampleResourceGroup_1",
+ "westus",
+ "828219ea-083e-48b5-89ea-8fd9991b2e75",
+ "14b50e24-f68d-4b29-a882-38be9dfb8bd1",
+ Context.NONE);
+ }
+}
+```
+
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/Operations_List.json
+ */
+ /**
+ * Sample code: Operations_List.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void operationsList(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_Create
+
+```java
+import com.azure.resourcemanager.storagesync.models.PrivateEndpointServiceConnectionStatus;
+import com.azure.resourcemanager.storagesync.models.PrivateLinkServiceConnectionState;
+
+/** Samples for PrivateEndpointConnections Create. */
+public final class PrivateEndpointConnectionsCreateSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/PrivateEndpointConnections_Create.json
+ */
+ /**
+ * Sample code: PrivateEndpointConnections_Create.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void privateEndpointConnectionsCreate(
+ com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .privateEndpointConnections()
+ .define("{privateEndpointConnectionName}")
+ .withExistingStorageSyncService("res7687", "sss2527")
+ .withPrivateLinkServiceConnectionState(
+ new PrivateLinkServiceConnectionState()
+ .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
+ .withDescription("Auto-Approved"))
+ .create();
+ }
+}
+```
+
+### PrivateEndpointConnections_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections Delete. */
+public final class PrivateEndpointConnectionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/PrivateEndpointConnections_Delete.json
+ */
+ /**
+ * Sample code: PrivateEndpointConnections_Delete.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void privateEndpointConnectionsDelete(
+ com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .privateEndpointConnections()
+ .delete("res6977", "sss2527", "{privateEndpointConnectionName}", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections Get. */
+public final class PrivateEndpointConnectionsGetSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/PrivateEndpointConnections_Get.json
+ */
+ /**
+ * Sample code: PrivateEndpointConnections_Get.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void privateEndpointConnectionsGet(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .privateEndpointConnections()
+ .getWithResponse("res6977", "sss2527", "{privateEndpointConnectionName}", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_ListByStorageSyncService
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections ListByStorageSyncService. */
+public final class PrivateEndpointConnectionsListByStorageSyncServiceSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/PrivateEndpointConnections_ListByStorageSyncService.json
+ */
+ /**
+ * Sample code: PrivateEndpointConnections_ListByStorageSyncService.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void privateEndpointConnectionsListByStorageSyncService(
+ com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager.privateEndpointConnections().listByStorageSyncService("res6977", "sss2527", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkResources_ListByStorageSyncService
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkResources ListByStorageSyncService. */
+public final class PrivateLinkResourcesListByStorageSyncServiceSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/PrivateLinkResources_List.json
+ */
+ /**
+ * Sample code: PrivateLinkResources_List.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void privateLinkResourcesList(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager.privateLinkResources().listByStorageSyncServiceWithResponse("res6977", "sss2527", Context.NONE);
+ }
+}
+```
+
+### RegisteredServers_Create
+
+```java
+/** Samples for RegisteredServers Create. */
+public final class RegisteredServersCreateSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/RegisteredServers_Create.json
+ */
+ /**
+ * Sample code: RegisteredServers_Create.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void registeredServersCreate(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .registeredServers()
+ .define("080d4133-bdb5-40a0-96a0-71a6057bfe9a")
+ .withExistingStorageSyncService("SampleResourceGroup_1", "SampleStorageSyncService_1")
+ .withServerCertificate(
+ "MIIDFjCCAf6gAwIBAgIQQS+DS8uhc4VNzUkTw7wbRjANBgkqhkiG9w0BAQ0FADAzMTEwLwYDVQQDEyhhbmt1c2hiLXByb2QzLnJlZG1vbmQuY29ycC5taWNyb3NvZnQuY29tMB4XDTE3MDgwMzE3MDQyNFoXDTE4MDgwNDE3MDQyNFowMzExMC8GA1UEAxMoYW5rdXNoYi1wcm9kMy5yZWRtb25kLmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALDRvV4gmsIy6jGDPiHsXmvgVP749NNP7DopdlbHaNhjFmYINHl0uWylyaZmgJrROt2mnxN/zEyJtGnqYHlzUr4xvGq/qV5pqgdB9tag/sw9i22gfe9PRZ0FmSOZnXMbLYgLiDFqLtut5gHcOuWMj03YnkfoBEKlFBxWbagvW2yxz/Sxi9OVSJOKCaXra0RpcIHrO/KFl6ho2eE1/7Ykmfa8hZvSdoPd5gHdLiQcMB/pxq+mWp1fI6c8vFZoDu7Atn+NXTzYPKUxKzaisF12TsaKpohUsJpbB3Wocb0F5frn614D2pg14ERB5otjAMWw1m65csQWPI6dP8KIYe0+QPkCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBAA4RhVIBkw34M1RwakJgHvtjsOFxF1tVQA941NtLokx1l2Z8+GFQkcG4xpZSt+UN6wLerdCbnNhtkCErWUDeaT0jxk4g71Ofex7iM04crT4iHJr8mi96/XnhnkTUs+GDk12VgdeeNEczMZz+8Mxw9dJ5NCnYgTwO0SzGlclRsDvjzkLo8rh2ZG6n/jKrEyNXXo+hOqhupij0QbRP2Tvexdfw201kgN1jdZify8XzJ8Oi0bTS0KpJf2pNPOlooK2bjMUei9ANtEdXwwfVZGWvVh6tJjdv6k14wWWJ1L7zhA1IIVb1J+sQUzJji5iX0DrezjTz1Fg+gAzITaA/WsuujlM=")
+ .withAgentVersion("1.0.277.0")
+ .withServerOSVersion("10.0.14393.0")
+ .withServerRole("Standalone")
+ .withServerId("080d4133-bdb5-40a0-96a0-71a6057bfe9a")
+ .withFriendlyName("afscv-2304-139")
+ .create();
+ }
+}
+```
+
+### RegisteredServers_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegisteredServers Delete. */
+public final class RegisteredServersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/RegisteredServers_Delete.json
+ */
+ /**
+ * Sample code: RegisteredServers_Delete.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void registeredServersDelete(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .registeredServers()
+ .delete(
+ "SampleResourceGroup_1",
+ "SampleStorageSyncService_1",
+ "41166691-ab03-43e9-ab3e-0330eda162ac",
+ Context.NONE);
+ }
+}
+```
+
+### RegisteredServers_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegisteredServers Get. */
+public final class RegisteredServersGetSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/RegisteredServers_Get.json
+ */
+ /**
+ * Sample code: RegisteredServers_Get.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void registeredServersGet(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .registeredServers()
+ .getWithResponse(
+ "SampleResourceGroup_1",
+ "SampleStorageSyncService_1",
+ "080d4133-bdb5-40a0-96a0-71a6057bfe9a",
+ Context.NONE);
+ }
+}
+```
+
+### RegisteredServers_ListByStorageSyncService
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for RegisteredServers ListByStorageSyncService. */
+public final class RegisteredServersListByStorageSyncServiceSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/RegisteredServers_ListByStorageSyncService.json
+ */
+ /**
+ * Sample code: RegisteredServers_ListByStorageSyncService.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void registeredServersListByStorageSyncService(
+ com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .registeredServers()
+ .listByStorageSyncService("SampleResourceGroup_1", "SampleStorageSyncService_1", Context.NONE);
+ }
+}
+```
+
+### RegisteredServers_TriggerRollover
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.storagesync.models.TriggerRolloverRequest;
+
+/** Samples for RegisteredServers TriggerRollover. */
+public final class RegisteredServersTriggerRolloverSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/RegisteredServers_TriggerRollover.json
+ */
+ /**
+ * Sample code: RegisteredServers_triggerRollover.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void registeredServersTriggerRollover(
+ com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .registeredServers()
+ .triggerRollover(
+ "SampleResourceGroup_1",
+ "SampleStorageSyncService_1",
+ "d166ca76-dad2-49df-b409-12345642d730",
+ new TriggerRolloverRequest()
+ .withServerCertificate(
+ "\"MIIDFjCCAf6gAwIBAgIQQS+DS8uhc4VNzUkTw7wbRjANBgkqhkiG9w0BAQ0FADAzMTEwLwYDVQQDEyhhbmt1c2hiLXByb2QzLnJlZG1vbmQuY29ycC5taWNyb3NvZnQuY29tMB4XDTE3MDgwMzE3MDQyNFoXDTE4MDgwNDE3MDQyNFowMzExMC8GA1UEAxMoYW5rdXNoYi1wcm9kMy5yZWRtb25kLmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALDRvV4gmsIy6jGDPiHsXmvgVP749NNP7DopdlbHaNhjFmYINHl0uWylyaZmgJrROt2mnxN/zEyJtGnqYHlzUr4xvGq/qV5pqgdB9tag/sw9i22gfe9PRZ0FmSOZnXMbLYgLiDFqLtut5gHcOuWMj03YnkfoBEKlFBxWbagvW2yxz/Sxi9OVSJOKCaXra0RpcIHrO/KFl6ho2eE1/7Ykmfa8hZvSdoPd5gHdLiQcMB/pxq+mWp1fI6c8vFZoDu7Atn+NXTzYPKUxKzaisF12TsaKpohUsJpbB3Wocb0F5frn614D2pg14ERB5otjAMWw1m65csQWPI6dP8KIYe0+QPkCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBAA4RhVIBkw34M1RwakJgHvtjsOFxF1tVQA941NtLokx1l2Z8+GFQkcG4xpZSt+UN6wLerdCbnNhtkCErWUDeaT0jxk4g71Ofex7iM04crT4iHJr8mi96/XnhnkTUs+GDk12VgdeeNEczMZz+8Mxw9dJ5NCnYgTwO0SzGlclRsDvjzkLo8rh2ZG6n/jKrEyNXXo+hOqhupij0QbRP2Tvexdfw201kgN1jdZify8XzJ8Oi0bTS0KpJf2pNPOlooK2bjMUei9ANtEdXwwfVZGWvVh6tJjdv6k14wWWJ1L7zhA1IIVb1J+sQUzJji5iX0DrezjTz1Fg+gAzITaA/WsuujlM=\""),
+ Context.NONE);
+ }
+}
+```
+
+### ResourceProvider_LocationOperationStatus
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ResourceProvider LocationOperationStatus. */
+public final class ResourceProviderLocationOperationStatusSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/LocationOperationStatus_Get.json
+ */
+ /**
+ * Sample code: Workflows_Get.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void workflowsGet(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .resourceProviders()
+ .locationOperationStatusWithResponse(
+ "westus",
+ "eyJwYXJ0aXRpb25JZCI6ImE1ZDNiMDU4LTYwN2MtNDI0Ny05Y2FmLWJlZmU4NGQ0ZDU0NyIsIndvcmtmbG93SWQiOiJjYzg1MTY2YS0xMjI2LTQ4MGYtYWM5ZC1jMmRhNTVmY2M2ODYiLCJ3b3JrZmxvd09wZXJhdGlvbklkIjoiOTdmODU5ZTAtOGY1MC00ZTg4LWJkZDEtNWZlYzgwYTVlYzM0tui=",
+ Context.NONE);
+ }
+}
+```
+
+### ServerEndpoints_Create
+
+```java
+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;
+
+/** Samples for ServerEndpoints Create. */
+public final class ServerEndpointsCreateSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/ServerEndpoints_Create.json
+ */
+ /**
+ * Sample code: ServerEndpoints_Create.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void serverEndpointsCreate(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .serverEndpoints()
+ .define("SampleServerEndpoint_1")
+ .withExistingSyncGroup("SampleResourceGroup_1", "SampleStorageSyncService_1", "SampleSyncGroup_1")
+ .withServerLocalPath("D:\\SampleServerEndpoint_1")
+ .withCloudTiering(FeatureStatus.OFF)
+ .withVolumeFreeSpacePercent(100)
+ .withTierFilesOlderThanDays(0)
+ .withServerResourceId(
+ "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a")
+ .withOfflineDataTransfer(FeatureStatus.ON)
+ .withOfflineDataTransferShareName("myfileshare")
+ .withInitialDownloadPolicy(InitialDownloadPolicy.NAMESPACE_THEN_MODIFIED_FILES)
+ .withLocalCacheMode(LocalCacheMode.UPDATE_LOCALLY_CACHED_FILES)
+ .withInitialUploadPolicy(InitialUploadPolicy.SERVER_AUTHORITATIVE)
+ .create();
+ }
+}
+```
+
+### ServerEndpoints_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ServerEndpoints Delete. */
+public final class ServerEndpointsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/ServerEndpoints_Delete.json
+ */
+ /**
+ * Sample code: ServerEndpoints_Delete.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void serverEndpointsDelete(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .serverEndpoints()
+ .delete(
+ "SampleResourceGroup_1",
+ "SampleStorageSyncService_1",
+ "SampleSyncGroup_1",
+ "SampleServerEndpoint_1",
+ Context.NONE);
+ }
+}
+```
+
+### ServerEndpoints_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ServerEndpoints Get. */
+public final class ServerEndpointsGetSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/ServerEndpoints_Get.json
+ */
+ /**
+ * Sample code: ServerEndpoints_Get.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void serverEndpointsGet(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .serverEndpoints()
+ .getWithResponse(
+ "SampleResourceGroup_1",
+ "SampleStorageSyncService_1",
+ "SampleSyncGroup_1",
+ "SampleServerEndpoint_1",
+ Context.NONE);
+ }
+}
+```
+
+### ServerEndpoints_ListBySyncGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ServerEndpoints ListBySyncGroup. */
+public final class ServerEndpointsListBySyncGroupSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/ServerEndpoints_ListBySyncGroup.json
+ */
+ /**
+ * Sample code: ServerEndpoints_ListBySyncGroup.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void serverEndpointsListBySyncGroup(
+ com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .serverEndpoints()
+ .listBySyncGroup("SampleResourceGroup_1", "SampleStorageSyncService_1", "SampleSyncGroup_1", Context.NONE);
+ }
+}
+```
+
+### ServerEndpoints_RecallAction
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.storagesync.models.RecallActionParameters;
+
+/** Samples for ServerEndpoints RecallAction. */
+public final class ServerEndpointsRecallActionSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/ServerEndpoints_Recall.json
+ */
+ /**
+ * Sample code: ServerEndpoints_recallAction.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void serverEndpointsRecallAction(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .serverEndpoints()
+ .recallAction(
+ "SampleResourceGroup_1",
+ "SampleStorageSyncService_1",
+ "SampleSyncGroup_1",
+ "SampleServerEndpoint_1",
+ new RecallActionParameters().withPattern("").withRecallPath(""),
+ Context.NONE);
+ }
+}
+```
+
+### ServerEndpoints_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.storagesync.models.FeatureStatus;
+import com.azure.resourcemanager.storagesync.models.LocalCacheMode;
+import com.azure.resourcemanager.storagesync.models.ServerEndpoint;
+
+/** Samples for ServerEndpoints Update. */
+public final class ServerEndpointsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/ServerEndpoints_Update.json
+ */
+ /**
+ * Sample code: ServerEndpoints_Update.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void serverEndpointsUpdate(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ ServerEndpoint resource =
+ manager
+ .serverEndpoints()
+ .getWithResponse(
+ "SampleResourceGroup_1",
+ "SampleStorageSyncService_1",
+ "SampleSyncGroup_1",
+ "SampleServerEndpoint_1",
+ Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withCloudTiering(FeatureStatus.OFF)
+ .withVolumeFreeSpacePercent(100)
+ .withTierFilesOlderThanDays(0)
+ .withOfflineDataTransfer(FeatureStatus.OFF)
+ .withLocalCacheMode(LocalCacheMode.UPDATE_LOCALLY_CACHED_FILES)
+ .apply();
+ }
+}
+```
+
+### StorageSyncServices_CheckNameAvailability
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.storagesync.models.CheckNameAvailabilityParameters;
+
+/** Samples for StorageSyncServices CheckNameAvailability. */
+public final class StorageSyncServicesCheckNameAvailabilitySamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/StorageSyncServiceCheckNameAvailability_Available.json
+ */
+ /**
+ * Sample code: StorageSyncServiceCheckNameAvailability_Available.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void storageSyncServiceCheckNameAvailabilityAvailable(
+ com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .storageSyncServices()
+ .checkNameAvailabilityWithResponse(
+ "westus", new CheckNameAvailabilityParameters().withName("newstoragesyncservicename"), Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/StorageSyncServiceCheckNameAvailability_AlreadyExists.json
+ */
+ /**
+ * Sample code: StorageSyncServiceCheckNameAvailability_AlreadyExists.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void storageSyncServiceCheckNameAvailabilityAlreadyExists(
+ com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .storageSyncServices()
+ .checkNameAvailabilityWithResponse(
+ "westus", new CheckNameAvailabilityParameters().withName("newstoragesyncservicename"), Context.NONE);
+ }
+}
+```
+
+### StorageSyncServices_Create
+
+```java
+import com.azure.resourcemanager.storagesync.models.IncomingTrafficPolicy;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for StorageSyncServices Create. */
+public final class StorageSyncServicesCreateSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/StorageSyncServices_Create.json
+ */
+ /**
+ * Sample code: StorageSyncServices_Create.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void storageSyncServicesCreate(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .storageSyncServices()
+ .define("SampleStorageSyncService_1")
+ .withRegion("WestUS")
+ .withExistingResourceGroup("SampleResourceGroup_1")
+ .withTags(mapOf())
+ .withIncomingTrafficPolicy(IncomingTrafficPolicy.ALLOW_ALL_TRAFFIC)
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### StorageSyncServices_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StorageSyncServices Delete. */
+public final class StorageSyncServicesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/StorageSyncServices_Delete.json
+ */
+ /**
+ * Sample code: StorageSyncServices_Delete.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void storageSyncServicesDelete(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager.storageSyncServices().delete("SampleResourceGroup_1", "SampleStorageSyncService_1", Context.NONE);
+ }
+}
+```
+
+### StorageSyncServices_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StorageSyncServices GetByResourceGroup. */
+public final class StorageSyncServicesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/StorageSyncServices_Get.json
+ */
+ /**
+ * Sample code: StorageSyncServices_Get.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void storageSyncServicesGet(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .storageSyncServices()
+ .getByResourceGroupWithResponse("SampleResourceGroup_1", "SampleStorageSyncService_1", Context.NONE);
+ }
+}
+```
+
+### StorageSyncServices_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StorageSyncServices List. */
+public final class StorageSyncServicesListSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/StorageSyncServices_ListBySubscription.json
+ */
+ /**
+ * Sample code: StorageSyncServices_ListBySubscription.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void storageSyncServicesListBySubscription(
+ com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager.storageSyncServices().list(Context.NONE);
+ }
+}
+```
+
+### StorageSyncServices_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StorageSyncServices ListByResourceGroup. */
+public final class StorageSyncServicesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/StorageSyncServices_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: StorageSyncServices_ListByResourceGroup.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void storageSyncServicesListByResourceGroup(
+ com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager.storageSyncServices().listByResourceGroup("SampleResourceGroup_1", Context.NONE);
+ }
+}
+```
+
+### StorageSyncServices_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.storagesync.models.IncomingTrafficPolicy;
+import com.azure.resourcemanager.storagesync.models.StorageSyncService;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for StorageSyncServices Update. */
+public final class StorageSyncServicesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/StorageSyncServices_Update.json
+ */
+ /**
+ * Sample code: StorageSyncServices_Update.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void storageSyncServicesUpdate(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ StorageSyncService resource =
+ manager
+ .storageSyncServices()
+ .getByResourceGroupWithResponse("SampleResourceGroup_1", "SampleStorageSyncService_1", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf("Dept", "IT", "Environment", "Test"))
+ .withIncomingTrafficPolicy(IncomingTrafficPolicy.ALLOW_ALL_TRAFFIC)
+ .apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### SyncGroups_Create
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import java.io.IOException;
+
+/** Samples for SyncGroups Create. */
+public final class SyncGroupsCreateSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/SyncGroups_Create.json
+ */
+ /**
+ * Sample code: SyncGroups_Create.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void syncGroupsCreate(com.azure.resourcemanager.storagesync.StoragesyncManager manager)
+ throws IOException {
+ manager
+ .syncGroups()
+ .define("SampleSyncGroup_1")
+ .withExistingStorageSyncService("SampleResourceGroup_1", "SampleStorageSyncService_1")
+ .withProperties(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))
+ .create();
+ }
+}
+```
+
+### SyncGroups_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SyncGroups Delete. */
+public final class SyncGroupsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/SyncGroups_Delete.json
+ */
+ /**
+ * Sample code: SyncGroups_Delete.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void syncGroupsDelete(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .syncGroups()
+ .deleteWithResponse(
+ "SampleResourceGroup_1", "SampleStorageSyncService_1", "SampleSyncGroup_1", Context.NONE);
+ }
+}
+```
+
+### SyncGroups_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SyncGroups Get. */
+public final class SyncGroupsGetSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/SyncGroups_Get.json
+ */
+ /**
+ * Sample code: SyncGroups_Get.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void syncGroupsGet(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .syncGroups()
+ .getWithResponse("SampleResourceGroup_1", "SampleStorageSyncService_1", "SampleSyncGroup_1", Context.NONE);
+ }
+}
+```
+
+### SyncGroups_ListByStorageSyncService
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for SyncGroups ListByStorageSyncService. */
+public final class SyncGroupsListByStorageSyncServiceSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/SyncGroups_ListByStorageSyncService.json
+ */
+ /**
+ * Sample code: SyncGroups_ListByStorageSyncService.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void syncGroupsListByStorageSyncService(
+ com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .syncGroups()
+ .listByStorageSyncService("SampleResourceGroup_1", "SampleStorageSyncService_1", Context.NONE);
+ }
+}
+```
+
+### Workflows_Abort
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Workflows Abort. */
+public final class WorkflowsAbortSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/Workflows_Abort.json
+ */
+ /**
+ * Sample code: Workflows_Abort.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void workflowsAbort(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .workflows()
+ .abortWithResponse(
+ "SampleResourceGroup_1",
+ "SampleStorageSyncService_1",
+ "7ffd50b3-5574-478d-9ff2-9371bc42ce68",
+ Context.NONE);
+ }
+}
+```
+
+### Workflows_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Workflows Get. */
+public final class WorkflowsGetSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/Workflows_Get.json
+ */
+ /**
+ * Sample code: Workflows_Get.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void workflowsGet(com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .workflows()
+ .getWithResponse(
+ "SampleResourceGroup_1",
+ "SampleStorageSyncService_1",
+ "828219ea-083e-48b5-89ea-8fd9991b2e75",
+ Context.NONE);
+ }
+}
+```
+
+### Workflows_ListByStorageSyncService
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Workflows ListByStorageSyncService. */
+public final class WorkflowsListByStorageSyncServiceSamples {
+ /*
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/Workflows_ListByStorageSyncService.json
+ */
+ /**
+ * Sample code: Workflows_ListByStorageSyncService.
+ *
+ * @param manager Entry point to StoragesyncManager.
+ */
+ public static void workflowsListByStorageSyncService(
+ com.azure.resourcemanager.storagesync.StoragesyncManager manager) {
+ manager
+ .workflows()
+ .listByStorageSyncService("SampleResourceGroup_1", "SampleStorageSyncService_1", Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/pom.xml b/sdk/storagesync/azure-resourcemanager-storagesync/pom.xml
new file mode 100644
index 000000000000..3feac646d320
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/pom.xml
@@ -0,0 +1,55 @@
+
+ 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
+ true
+
+
+
+ com.azure
+ azure-core
+ 1.25.0
+
+
+ com.azure
+ azure-core-management
+ 1.5.2
+
+
+
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..f5286bb41437
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/StoragesyncManager.java
@@ -0,0 +1,364 @@
+// 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.HttpPipelinePosition;
+import com.azure.core.http.policy.AddDatePolicy;
+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.http.policy.ArmChallengeAuthenticationPolicy;
+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.ResourceProvidersImpl;
+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.ResourceProviders;
+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;
+import java.util.stream.Collectors;
+
+/** 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 ResourceProviders resourceProviders;
+
+ 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 final List scopes = 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;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the 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 (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new 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 Resource collection API of ResourceProviders. */
+ public ResourceProviders resourceProviders() {
+ if (this.resourceProviders == null) {
+ this.resourceProviders = new ResourceProvidersImpl(clientObject.getResourceProviders(), this);
+ }
+ return resourceProviders;
+ }
+
+ /**
+ * @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..4ace55d309bf
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/CloudEndpointsClient.java
@@ -0,0 +1,760 @@
+// 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.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;
+import reactor.core.publisher.Mono;
+
+/** 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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..2ce15ca74a3d
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/MicrosoftStorageSync.java
@@ -0,0 +1,123 @@
+// 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();
+
+ /**
+ * Gets the ResourceProvidersClient object to access its operations.
+ *
+ * @return the ResourceProvidersClient object.
+ */
+ ResourceProvidersClient getResourceProviders();
+}
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..898af9ccb801
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/PrivateEndpointConnectionsClient.java
@@ -0,0 +1,242 @@
+// 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;
+import reactor.core.publisher.Mono;
+
+/** 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 along with {@link
+ * Response}.
+ */
+ @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 along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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..196ab2699dfa
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/PrivateLinkResourcesClient.java
@@ -0,0 +1,44 @@
+// 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 along with {@link
+ * Response}.
+ */
+ @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..abfec324fba2
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/RegisteredServersClient.java
@@ -0,0 +1,306 @@
+// 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.RegisteredServerInner;
+import com.azure.resourcemanager.storagesync.models.RegisteredServerCreateParameters;
+import com.azure.resourcemanager.storagesync.models.RegisteredServersGetResponse;
+import com.azure.resourcemanager.storagesync.models.TriggerRolloverRequest;
+import reactor.core.publisher.Mono;
+
+/** 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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/ResourceProvidersClient.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/ResourceProvidersClient.java
new file mode 100644
index 000000000000..fa23c3ebcdab
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/ResourceProvidersClient.java
@@ -0,0 +1,44 @@
+// 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.LocationOperationStatusInner;
+import com.azure.resourcemanager.storagesync.models.ResourceProvidersLocationOperationStatusResponse;
+
+/** An instance of this class provides access to all the operations defined in ResourceProvidersClient. */
+public interface ResourceProvidersClient {
+ /**
+ * Get Operation status.
+ *
+ * @param locationName The desired region to obtain information from.
+ * @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)
+ LocationOperationStatusInner locationOperationStatus(String locationName, String operationId);
+
+ /**
+ * Get Operation status.
+ *
+ * @param locationName The desired region to obtain information from.
+ * @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)
+ ResourceProvidersLocationOperationStatusResponse locationOperationStatusWithResponse(
+ String locationName, String operationId, 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..bd0e31ec4dd9
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/ServerEndpointsClient.java
@@ -0,0 +1,461 @@
+// 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.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;
+import reactor.core.publisher.Mono;
+
+/** 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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..6e7ed7ccb928
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/StorageSyncServicesClient.java
@@ -0,0 +1,348 @@
+// 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;
+import reactor.core.publisher.Mono;
+
+/** 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 along with {@link 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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/CloudEndpointCreateParametersProperties.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/CloudEndpointCreateParametersProperties.java
new file mode 100644
index 000000000000..e74e08fe7375
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/CloudEndpointCreateParametersProperties.java
@@ -0,0 +1,128 @@
+// 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.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** CloudEndpoint Properties object. */
+@Fluent
+public final class CloudEndpointCreateParametersProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CloudEndpointCreateParametersProperties.class);
+
+ /*
+ * Storage Account Resource Id
+ */
+ @JsonProperty(value = "storageAccountResourceId")
+ private String storageAccountResourceId;
+
+ /*
+ * Azure file share name
+ */
+ @JsonProperty(value = "azureFileShareName")
+ private String azureFileShareName;
+
+ /*
+ * Storage Account Tenant Id
+ */
+ @JsonProperty(value = "storageAccountTenantId")
+ private String storageAccountTenantId;
+
+ /*
+ * Friendly Name
+ */
+ @JsonProperty(value = "friendlyName")
+ private String friendlyName;
+
+ /**
+ * 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 CloudEndpointCreateParametersProperties object itself.
+ */
+ public CloudEndpointCreateParametersProperties 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 CloudEndpointCreateParametersProperties object itself.
+ */
+ public CloudEndpointCreateParametersProperties 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 CloudEndpointCreateParametersProperties object itself.
+ */
+ public CloudEndpointCreateParametersProperties withStorageAccountTenantId(String storageAccountTenantId) {
+ this.storageAccountTenantId = storageAccountTenantId;
+ 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 CloudEndpointCreateParametersProperties object itself.
+ */
+ public CloudEndpointCreateParametersProperties withFriendlyName(String friendlyName) {
+ this.friendlyName = friendlyName;
+ return this;
+ }
+
+ /**
+ * 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..31cc714a470a
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/CloudEndpointInner.java
@@ -0,0 +1,263 @@
+// 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.management.ProxyResource;
+import com.azure.core.management.SystemData;
+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. */
+@Fluent
+public final class CloudEndpointInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CloudEndpointInner.class);
+
+ /*
+ * Cloud Endpoint properties.
+ */
+ @JsonProperty(value = "properties")
+ private CloudEndpointProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: Cloud Endpoint properties.
+ *
+ * @return the innerProperties value.
+ */
+ private CloudEndpointProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the storageAccountResourceId property: Storage Account Resource Id.
+ *
+ * @return the storageAccountResourceId value.
+ */
+ public String storageAccountResourceId() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CloudEndpointProperties();
+ }
+ this.innerProperties().withStorageAccountResourceId(storageAccountResourceId);
+ return this;
+ }
+
+ /**
+ * Get the azureFileShareName property: Azure file share name.
+ *
+ * @return the azureFileShareName value.
+ */
+ public String azureFileShareName() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CloudEndpointProperties();
+ }
+ this.innerProperties().withAzureFileShareName(azureFileShareName);
+ return this;
+ }
+
+ /**
+ * Get the storageAccountTenantId property: Storage Account Tenant Id.
+ *
+ * @return the storageAccountTenantId value.
+ */
+ public String storageAccountTenantId() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CloudEndpointProperties();
+ }
+ this.innerProperties().withStorageAccountTenantId(storageAccountTenantId);
+ return this;
+ }
+
+ /**
+ * Get the partnershipId property: Partnership Id.
+ *
+ * @return the partnershipId value.
+ */
+ public String partnershipId() {
+ return this.innerProperties() == null ? null : this.innerProperties().partnershipId();
+ }
+
+ /**
+ * Set the partnershipId property: Partnership Id.
+ *
+ * @param partnershipId the partnershipId value to set.
+ * @return the CloudEndpointInner object itself.
+ */
+ public CloudEndpointInner withPartnershipId(String partnershipId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CloudEndpointProperties();
+ }
+ this.innerProperties().withPartnershipId(partnershipId);
+ return this;
+ }
+
+ /**
+ * Get the friendlyName property: Friendly Name.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.innerProperties() == null ? null : this.innerProperties().friendlyName();
+ }
+
+ /**
+ * Set the friendlyName property: Friendly Name.
+ *
+ * @param friendlyName the friendlyName value to set.
+ * @return the CloudEndpointInner object itself.
+ */
+ public CloudEndpointInner withFriendlyName(String friendlyName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CloudEndpointProperties();
+ }
+ this.innerProperties().withFriendlyName(friendlyName);
+ return this;
+ }
+
+ /**
+ * Get the backupEnabled property: Backup Enabled.
+ *
+ * @return the backupEnabled value.
+ */
+ public String backupEnabled() {
+ return this.innerProperties() == null ? null : this.innerProperties().backupEnabled();
+ }
+
+ /**
+ * Get the provisioningState property: CloudEndpoint Provisioning State.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CloudEndpointProperties();
+ }
+ this.innerProperties().withProvisioningState(provisioningState);
+ return this;
+ }
+
+ /**
+ * Get the lastWorkflowId property: CloudEndpoint lastWorkflowId.
+ *
+ * @return the lastWorkflowId value.
+ */
+ public String lastWorkflowId() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastWorkflowId();
+ }
+
+ /**
+ * Set the lastWorkflowId property: CloudEndpoint lastWorkflowId.
+ *
+ * @param lastWorkflowId the lastWorkflowId value to set.
+ * @return the CloudEndpointInner object itself.
+ */
+ public CloudEndpointInner withLastWorkflowId(String lastWorkflowId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CloudEndpointProperties();
+ }
+ this.innerProperties().withLastWorkflowId(lastWorkflowId);
+ return this;
+ }
+
+ /**
+ * Get the lastOperationName property: Resource Last Operation Name.
+ *
+ * @return the lastOperationName value.
+ */
+ public String lastOperationName() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CloudEndpointProperties();
+ }
+ this.innerProperties().withLastOperationName(lastOperationName);
+ return this;
+ }
+
+ /**
+ * Get the changeEnumerationStatus property: Cloud endpoint change enumeration status.
+ *
+ * @return the changeEnumerationStatus value.
+ */
+ public CloudEndpointChangeEnumerationStatus changeEnumerationStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().changeEnumerationStatus();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/CloudEndpointProperties.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/CloudEndpointProperties.java
new file mode 100644
index 000000000000..7cc451af1342
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/CloudEndpointProperties.java
@@ -0,0 +1,266 @@
+// 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.CloudEndpointChangeEnumerationStatus;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** CloudEndpoint Properties object. */
+@Fluent
+public final class CloudEndpointProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CloudEndpointProperties.class);
+
+ /*
+ * Storage Account Resource Id
+ */
+ @JsonProperty(value = "storageAccountResourceId")
+ private String storageAccountResourceId;
+
+ /*
+ * Azure file share name
+ */
+ @JsonProperty(value = "azureFileShareName")
+ private String azureFileShareName;
+
+ /*
+ * Storage Account Tenant Id
+ */
+ @JsonProperty(value = "storageAccountTenantId")
+ private String storageAccountTenantId;
+
+ /*
+ * Partnership Id
+ */
+ @JsonProperty(value = "partnershipId")
+ private String partnershipId;
+
+ /*
+ * Friendly Name
+ */
+ @JsonProperty(value = "friendlyName")
+ private String friendlyName;
+
+ /*
+ * Backup Enabled
+ */
+ @JsonProperty(value = "backupEnabled", access = JsonProperty.Access.WRITE_ONLY)
+ private String backupEnabled;
+
+ /*
+ * CloudEndpoint Provisioning State
+ */
+ @JsonProperty(value = "provisioningState")
+ private String provisioningState;
+
+ /*
+ * CloudEndpoint lastWorkflowId
+ */
+ @JsonProperty(value = "lastWorkflowId")
+ private String lastWorkflowId;
+
+ /*
+ * Resource Last Operation Name
+ */
+ @JsonProperty(value = "lastOperationName")
+ private String lastOperationName;
+
+ /*
+ * Cloud endpoint change enumeration status
+ */
+ @JsonProperty(value = "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 CloudEndpointProperties object itself.
+ */
+ public CloudEndpointProperties 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 CloudEndpointProperties object itself.
+ */
+ public CloudEndpointProperties 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 CloudEndpointProperties object itself.
+ */
+ public CloudEndpointProperties 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 CloudEndpointProperties object itself.
+ */
+ public CloudEndpointProperties 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 CloudEndpointProperties object itself.
+ */
+ public CloudEndpointProperties 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 CloudEndpointProperties object itself.
+ */
+ public CloudEndpointProperties 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 CloudEndpointProperties object itself.
+ */
+ public CloudEndpointProperties 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 CloudEndpointProperties object itself.
+ */
+ public CloudEndpointProperties 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/LocationOperationStatusInner.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/LocationOperationStatusInner.java
new file mode 100644
index 000000000000..a32814870c54
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/LocationOperationStatusInner.java
@@ -0,0 +1,134 @@
+// 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 LocationOperationStatusInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(LocationOperationStatusInner.class);
+
+ /*
+ * Operation resource Id
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
+ /*
+ * 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;
+
+ /*
+ * Percent complete.
+ */
+ @JsonProperty(value = "percentComplete", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer percentComplete;
+
+ /**
+ * Get the id property: Operation resource Id.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Get the percentComplete property: Percent complete.
+ *
+ * @return the percentComplete value.
+ */
+ public Integer percentComplete() {
+ return this.percentComplete;
+ }
+
+ /**
+ * 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/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..6dbbe2f665b5
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PostBackupResponseInner.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Post Backup Response. */
+@Fluent
+public final class PostBackupResponseInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PostBackupResponseInner.class);
+
+ /*
+ * Post Backup Response Properties
+ */
+ @JsonProperty(value = "backupMetadata")
+ private PostBackupResponseProperties innerBackupMetadata;
+
+ /**
+ * Get the innerBackupMetadata property: Post Backup Response Properties.
+ *
+ * @return the innerBackupMetadata value.
+ */
+ private PostBackupResponseProperties innerBackupMetadata() {
+ return this.innerBackupMetadata;
+ }
+
+ /**
+ * Get the cloudEndpointName property: cloud endpoint Name.
+ *
+ * @return the cloudEndpointName value.
+ */
+ public String cloudEndpointName() {
+ return this.innerBackupMetadata() == null ? null : this.innerBackupMetadata().cloudEndpointName();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerBackupMetadata() != null) {
+ innerBackupMetadata().validate();
+ }
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PostBackupResponseProperties.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PostBackupResponseProperties.java
new file mode 100644
index 000000000000..eed191ed5f35
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PostBackupResponseProperties.java
@@ -0,0 +1,39 @@
+// 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.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Post Backup Response Properties object. */
+@Immutable
+public final class PostBackupResponseProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PostBackupResponseProperties.class);
+
+ /*
+ * cloud endpoint Name.
+ */
+ @JsonProperty(value = "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..9c0df8293d1b
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PrivateEndpointConnectionInner.java
@@ -0,0 +1,121 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+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. */
+@Fluent
+public final class PrivateEndpointConnectionInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class);
+
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private PrivateEndpointConnectionProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private PrivateEndpointConnectionProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the privateEndpoint property: The resource of private end point.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateEndpoint(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.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateLinkServiceConnectionState(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.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PrivateEndpointConnectionProperties.java
new file mode 100644
index 000000000000..a27de04a6b8f
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PrivateEndpointConnectionProperties.java
@@ -0,0 +1,110 @@
+// 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.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;
+
+/** Properties of the PrivateEndpointConnectProperties. */
+@Fluent
+public final class PrivateEndpointConnectionProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionProperties.class);
+
+ /*
+ * The resource of private end point.
+ */
+ @JsonProperty(value = "privateEndpoint")
+ private PrivateEndpoint privateEndpoint;
+
+ /*
+ * A collection of information about the state of the connection between
+ * service consumer and provider.
+ */
+ @JsonProperty(value = "privateLinkServiceConnectionState", required = true)
+ private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+
+ /*
+ * The provisioning state of the private endpoint connection resource.
+ */
+ @JsonProperty(value = "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 PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties 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 PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties 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) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property privateLinkServiceConnectionState in model"
+ + " PrivateEndpointConnectionProperties"));
+ } else {
+ 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/PrivateLinkResourceProperties.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PrivateLinkResourceProperties.java
new file mode 100644
index 000000000000..605e580d3b0e
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/PrivateLinkResourceProperties.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties of a private link resource. */
+@Fluent
+public final class PrivateLinkResourceProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceProperties.class);
+
+ /*
+ * The private link resource group id.
+ */
+ @JsonProperty(value = "groupId", access = JsonProperty.Access.WRITE_ONLY)
+ private String groupId;
+
+ /*
+ * The private link resource required member names.
+ */
+ @JsonProperty(value = "requiredMembers", access = JsonProperty.Access.WRITE_ONLY)
+ private List requiredMembers;
+
+ /*
+ * The private link resource Private link DNS zone name.
+ */
+ @JsonProperty(value = "requiredZoneNames")
+ private List requiredZoneNames;
+
+ /**
+ * Get the groupId property: The private link resource group id.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Get the requiredMembers property: The private link resource required member names.
+ *
+ * @return the requiredMembers value.
+ */
+ public List requiredMembers() {
+ return this.requiredMembers;
+ }
+
+ /**
+ * Get the requiredZoneNames property: The private link resource Private link DNS zone name.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.requiredZoneNames;
+ }
+
+ /**
+ * Set the requiredZoneNames property: The private link resource Private link DNS zone name.
+ *
+ * @param requiredZoneNames the requiredZoneNames value to set.
+ * @return the PrivateLinkResourceProperties object itself.
+ */
+ public PrivateLinkResourceProperties withRequiredZoneNames(List requiredZoneNames) {
+ this.requiredZoneNames = requiredZoneNames;
+ return this;
+ }
+
+ /**
+ * 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/RegisteredServerCreateParametersProperties.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/RegisteredServerCreateParametersProperties.java
new file mode 100644
index 000000000000..89f9a8699c3b
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/RegisteredServerCreateParametersProperties.java
@@ -0,0 +1,258 @@
+// 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.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** RegisteredServer Create Properties object. */
+@Fluent
+public final class RegisteredServerCreateParametersProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(RegisteredServerCreateParametersProperties.class);
+
+ /*
+ * Registered Server Certificate
+ */
+ @JsonProperty(value = "serverCertificate")
+ private String serverCertificate;
+
+ /*
+ * Registered Server Agent Version
+ */
+ @JsonProperty(value = "agentVersion")
+ private String agentVersion;
+
+ /*
+ * Registered Server OS Version
+ */
+ @JsonProperty(value = "serverOSVersion")
+ private String serverOSVersion;
+
+ /*
+ * Registered Server last heart beat
+ */
+ @JsonProperty(value = "lastHeartBeat")
+ private String lastHeartBeat;
+
+ /*
+ * Registered Server serverRole
+ */
+ @JsonProperty(value = "serverRole")
+ private String serverRole;
+
+ /*
+ * Registered Server clusterId
+ */
+ @JsonProperty(value = "clusterId")
+ private String clusterId;
+
+ /*
+ * Registered Server clusterName
+ */
+ @JsonProperty(value = "clusterName")
+ private String clusterName;
+
+ /*
+ * Registered Server serverId
+ */
+ @JsonProperty(value = "serverId")
+ private String serverId;
+
+ /*
+ * Friendly Name
+ */
+ @JsonProperty(value = "friendlyName")
+ private String friendlyName;
+
+ /**
+ * 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 RegisteredServerCreateParametersProperties object itself.
+ */
+ public RegisteredServerCreateParametersProperties 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 RegisteredServerCreateParametersProperties object itself.
+ */
+ public RegisteredServerCreateParametersProperties withAgentVersion(String agentVersion) {
+ this.agentVersion = agentVersion;
+ return this;
+ }
+
+ /**
+ * 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 RegisteredServerCreateParametersProperties object itself.
+ */
+ public RegisteredServerCreateParametersProperties withServerOSVersion(String serverOSVersion) {
+ this.serverOSVersion = serverOSVersion;
+ 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 RegisteredServerCreateParametersProperties object itself.
+ */
+ public RegisteredServerCreateParametersProperties withLastHeartBeat(String lastHeartBeat) {
+ this.lastHeartBeat = lastHeartBeat;
+ 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 RegisteredServerCreateParametersProperties object itself.
+ */
+ public RegisteredServerCreateParametersProperties 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 RegisteredServerCreateParametersProperties object itself.
+ */
+ public RegisteredServerCreateParametersProperties 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 RegisteredServerCreateParametersProperties object itself.
+ */
+ public RegisteredServerCreateParametersProperties 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 RegisteredServerCreateParametersProperties object itself.
+ */
+ public RegisteredServerCreateParametersProperties withServerId(String serverId) {
+ this.serverId = serverId;
+ 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 RegisteredServerCreateParametersProperties object itself.
+ */
+ public RegisteredServerCreateParametersProperties withFriendlyName(String friendlyName) {
+ this.friendlyName = friendlyName;
+ return this;
+ }
+
+ /**
+ * 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/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..6811df643893
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/RegisteredServerInner.java
@@ -0,0 +1,549 @@
+// 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.management.ProxyResource;
+import com.azure.core.management.SystemData;
+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. */
+@Fluent
+public final class RegisteredServerInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(RegisteredServerInner.class);
+
+ /*
+ * RegisteredServer properties.
+ */
+ @JsonProperty(value = "properties")
+ private RegisteredServerProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: RegisteredServer properties.
+ *
+ * @return the innerProperties value.
+ */
+ private RegisteredServerProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the serverCertificate property: Registered Server Certificate.
+ *
+ * @return the serverCertificate value.
+ */
+ public String serverCertificate() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withServerCertificate(serverCertificate);
+ return this;
+ }
+
+ /**
+ * Get the agentVersion property: Registered Server Agent Version.
+ *
+ * @return the agentVersion value.
+ */
+ public String agentVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withAgentVersion(agentVersion);
+ return this;
+ }
+
+ /**
+ * Get the agentVersionStatus property: Registered Server Agent Version Status.
+ *
+ * @return the agentVersionStatus value.
+ */
+ public RegisteredServerAgentVersionStatus agentVersionStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().agentVersionStatus();
+ }
+
+ /**
+ * Get the agentVersionExpirationDate property: Registered Server Agent Version Expiration Date.
+ *
+ * @return the agentVersionExpirationDate value.
+ */
+ public OffsetDateTime agentVersionExpirationDate() {
+ return this.innerProperties() == null ? null : this.innerProperties().agentVersionExpirationDate();
+ }
+
+ /**
+ * Get the serverOSVersion property: Registered Server OS Version.
+ *
+ * @return the serverOSVersion value.
+ */
+ public String serverOSVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withServerOSVersion(serverOSVersion);
+ return this;
+ }
+
+ /**
+ * Get the serverManagementErrorCode property: Registered Server Management Error Code.
+ *
+ * @return the serverManagementErrorCode value.
+ */
+ public Integer serverManagementErrorCode() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withServerManagementErrorCode(serverManagementErrorCode);
+ return this;
+ }
+
+ /**
+ * Get the lastHeartBeat property: Registered Server last heart beat.
+ *
+ * @return the lastHeartBeat value.
+ */
+ public String lastHeartBeat() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withLastHeartBeat(lastHeartBeat);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Registered Server Provisioning State.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withProvisioningState(provisioningState);
+ return this;
+ }
+
+ /**
+ * Get the serverRole property: Registered Server serverRole.
+ *
+ * @return the serverRole value.
+ */
+ public String serverRole() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withServerRole(serverRole);
+ return this;
+ }
+
+ /**
+ * Get the clusterId property: Registered Server clusterId.
+ *
+ * @return the clusterId value.
+ */
+ public String clusterId() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withClusterId(clusterId);
+ return this;
+ }
+
+ /**
+ * Get the clusterName property: Registered Server clusterName.
+ *
+ * @return the clusterName value.
+ */
+ public String clusterName() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withClusterName(clusterName);
+ return this;
+ }
+
+ /**
+ * Get the serverId property: Registered Server serverId.
+ *
+ * @return the serverId value.
+ */
+ public String serverId() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withServerId(serverId);
+ return this;
+ }
+
+ /**
+ * Get the storageSyncServiceUid property: Registered Server storageSyncServiceUid.
+ *
+ * @return the storageSyncServiceUid value.
+ */
+ public String storageSyncServiceUid() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withStorageSyncServiceUid(storageSyncServiceUid);
+ return this;
+ }
+
+ /**
+ * Get the lastWorkflowId property: Registered Server lastWorkflowId.
+ *
+ * @return the lastWorkflowId value.
+ */
+ public String lastWorkflowId() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withLastWorkflowId(lastWorkflowId);
+ return this;
+ }
+
+ /**
+ * Get the lastOperationName property: Resource Last Operation Name.
+ *
+ * @return the lastOperationName value.
+ */
+ public String lastOperationName() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withLastOperationName(lastOperationName);
+ return this;
+ }
+
+ /**
+ * Get the discoveryEndpointUri property: Resource discoveryEndpointUri.
+ *
+ * @return the discoveryEndpointUri value.
+ */
+ public String discoveryEndpointUri() {
+ return this.innerProperties() == null ? null : this.innerProperties().discoveryEndpointUri();
+ }
+
+ /**
+ * Set the discoveryEndpointUri property: Resource discoveryEndpointUri.
+ *
+ * @param discoveryEndpointUri the discoveryEndpointUri value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withDiscoveryEndpointUri(String discoveryEndpointUri) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withDiscoveryEndpointUri(discoveryEndpointUri);
+ return this;
+ }
+
+ /**
+ * Get the resourceLocation property: Resource Location.
+ *
+ * @return the resourceLocation value.
+ */
+ public String resourceLocation() {
+ return this.innerProperties() == null ? null : this.innerProperties().resourceLocation();
+ }
+
+ /**
+ * Set the resourceLocation property: Resource Location.
+ *
+ * @param resourceLocation the resourceLocation value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withResourceLocation(String resourceLocation) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withResourceLocation(resourceLocation);
+ return this;
+ }
+
+ /**
+ * Get the serviceLocation property: Service Location.
+ *
+ * @return the serviceLocation value.
+ */
+ public String serviceLocation() {
+ return this.innerProperties() == null ? null : this.innerProperties().serviceLocation();
+ }
+
+ /**
+ * Set the serviceLocation property: Service Location.
+ *
+ * @param serviceLocation the serviceLocation value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withServiceLocation(String serviceLocation) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withServiceLocation(serviceLocation);
+ return this;
+ }
+
+ /**
+ * Get the friendlyName property: Friendly Name.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.innerProperties() == null ? null : this.innerProperties().friendlyName();
+ }
+
+ /**
+ * Set the friendlyName property: Friendly Name.
+ *
+ * @param friendlyName the friendlyName value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withFriendlyName(String friendlyName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withFriendlyName(friendlyName);
+ return this;
+ }
+
+ /**
+ * Get the managementEndpointUri property: Management Endpoint Uri.
+ *
+ * @return the managementEndpointUri value.
+ */
+ public String managementEndpointUri() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withManagementEndpointUri(managementEndpointUri);
+ return this;
+ }
+
+ /**
+ * Get the monitoringEndpointUri property: Telemetry Endpoint Uri.
+ *
+ * @return the monitoringEndpointUri value.
+ */
+ public String monitoringEndpointUri() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withMonitoringEndpointUri(monitoringEndpointUri);
+ return this;
+ }
+
+ /**
+ * Get the monitoringConfiguration property: Monitoring Configuration.
+ *
+ * @return the monitoringConfiguration value.
+ */
+ public String monitoringConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().monitoringConfiguration();
+ }
+
+ /**
+ * Set the monitoringConfiguration property: Monitoring Configuration.
+ *
+ * @param monitoringConfiguration the monitoringConfiguration value to set.
+ * @return the RegisteredServerInner object itself.
+ */
+ public RegisteredServerInner withMonitoringConfiguration(String monitoringConfiguration) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegisteredServerProperties();
+ }
+ this.innerProperties().withMonitoringConfiguration(monitoringConfiguration);
+ return this;
+ }
+
+ /**
+ * Get the serverName property: Server name.
+ *
+ * @return the serverName value.
+ */
+ public String serverName() {
+ return this.innerProperties() == null ? null : this.innerProperties().serverName();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/RegisteredServerProperties.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/RegisteredServerProperties.java
new file mode 100644
index 000000000000..d823194bf9ca
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/RegisteredServerProperties.java
@@ -0,0 +1,591 @@
+// 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.RegisteredServerAgentVersionStatus;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** RegisteredServer Properties object. */
+@Fluent
+public final class RegisteredServerProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(RegisteredServerProperties.class);
+
+ /*
+ * Registered Server Certificate
+ */
+ @JsonProperty(value = "serverCertificate")
+ private String serverCertificate;
+
+ /*
+ * Registered Server Agent Version
+ */
+ @JsonProperty(value = "agentVersion")
+ private String agentVersion;
+
+ /*
+ * Registered Server Agent Version Status
+ */
+ @JsonProperty(value = "agentVersionStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private RegisteredServerAgentVersionStatus agentVersionStatus;
+
+ /*
+ * Registered Server Agent Version Expiration Date
+ */
+ @JsonProperty(value = "agentVersionExpirationDate", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime agentVersionExpirationDate;
+
+ /*
+ * Registered Server OS Version
+ */
+ @JsonProperty(value = "serverOSVersion")
+ private String serverOSVersion;
+
+ /*
+ * Registered Server Management Error Code
+ */
+ @JsonProperty(value = "serverManagementErrorCode")
+ private Integer serverManagementErrorCode;
+
+ /*
+ * Registered Server last heart beat
+ */
+ @JsonProperty(value = "lastHeartBeat")
+ private String lastHeartBeat;
+
+ /*
+ * Registered Server Provisioning State
+ */
+ @JsonProperty(value = "provisioningState")
+ private String provisioningState;
+
+ /*
+ * Registered Server serverRole
+ */
+ @JsonProperty(value = "serverRole")
+ private String serverRole;
+
+ /*
+ * Registered Server clusterId
+ */
+ @JsonProperty(value = "clusterId")
+ private String clusterId;
+
+ /*
+ * Registered Server clusterName
+ */
+ @JsonProperty(value = "clusterName")
+ private String clusterName;
+
+ /*
+ * Registered Server serverId
+ */
+ @JsonProperty(value = "serverId")
+ private String serverId;
+
+ /*
+ * Registered Server storageSyncServiceUid
+ */
+ @JsonProperty(value = "storageSyncServiceUid")
+ private String storageSyncServiceUid;
+
+ /*
+ * Registered Server lastWorkflowId
+ */
+ @JsonProperty(value = "lastWorkflowId")
+ private String lastWorkflowId;
+
+ /*
+ * Resource Last Operation Name
+ */
+ @JsonProperty(value = "lastOperationName")
+ private String lastOperationName;
+
+ /*
+ * Resource discoveryEndpointUri
+ */
+ @JsonProperty(value = "discoveryEndpointUri")
+ private String discoveryEndpointUri;
+
+ /*
+ * Resource Location
+ */
+ @JsonProperty(value = "resourceLocation")
+ private String resourceLocation;
+
+ /*
+ * Service Location
+ */
+ @JsonProperty(value = "serviceLocation")
+ private String serviceLocation;
+
+ /*
+ * Friendly Name
+ */
+ @JsonProperty(value = "friendlyName")
+ private String friendlyName;
+
+ /*
+ * Management Endpoint Uri
+ */
+ @JsonProperty(value = "managementEndpointUri")
+ private String managementEndpointUri;
+
+ /*
+ * Telemetry Endpoint Uri
+ */
+ @JsonProperty(value = "monitoringEndpointUri")
+ private String monitoringEndpointUri;
+
+ /*
+ * Monitoring Configuration
+ */
+ @JsonProperty(value = "monitoringConfiguration")
+ private String monitoringConfiguration;
+
+ /*
+ * Server name
+ */
+ @JsonProperty(value = "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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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 RegisteredServerProperties object itself.
+ */
+ public RegisteredServerProperties 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/ServerEndpointCreateParametersProperties.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/ServerEndpointCreateParametersProperties.java
new file mode 100644
index 000000000000..621cc7892ac4
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/ServerEndpointCreateParametersProperties.java
@@ -0,0 +1,319 @@
+// 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.FeatureStatus;
+import com.azure.resourcemanager.storagesync.models.InitialDownloadPolicy;
+import com.azure.resourcemanager.storagesync.models.InitialUploadPolicy;
+import com.azure.resourcemanager.storagesync.models.LocalCacheMode;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** ServerEndpoint Properties object. */
+@Fluent
+public final class ServerEndpointCreateParametersProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerEndpointCreateParametersProperties.class);
+
+ /*
+ * Server Local path.
+ */
+ @JsonProperty(value = "serverLocalPath")
+ private String serverLocalPath;
+
+ /*
+ * Cloud Tiering.
+ */
+ @JsonProperty(value = "cloudTiering")
+ private FeatureStatus cloudTiering;
+
+ /*
+ * Level of free space to be maintained by Cloud Tiering if it is enabled.
+ */
+ @JsonProperty(value = "volumeFreeSpacePercent")
+ private Integer volumeFreeSpacePercent;
+
+ /*
+ * Tier files older than days.
+ */
+ @JsonProperty(value = "tierFilesOlderThanDays")
+ private Integer tierFilesOlderThanDays;
+
+ /*
+ * Friendly Name
+ */
+ @JsonProperty(value = "friendlyName")
+ private String friendlyName;
+
+ /*
+ * Server Resource Id.
+ */
+ @JsonProperty(value = "serverResourceId")
+ private String serverResourceId;
+
+ /*
+ * Offline data transfer
+ */
+ @JsonProperty(value = "offlineDataTransfer")
+ private FeatureStatus offlineDataTransfer;
+
+ /*
+ * Offline data transfer share name
+ */
+ @JsonProperty(value = "offlineDataTransferShareName")
+ private String offlineDataTransferShareName;
+
+ /*
+ * Policy for how namespace and files are recalled during FastDr.
+ */
+ @JsonProperty(value = "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 = "localCacheMode")
+ private LocalCacheMode localCacheMode;
+
+ /*
+ * Policy for how the initial upload sync session is performed.
+ */
+ @JsonProperty(value = "initialUploadPolicy")
+ private InitialUploadPolicy initialUploadPolicy;
+
+ /**
+ * 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 ServerEndpointCreateParametersProperties object itself.
+ */
+ public ServerEndpointCreateParametersProperties 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 ServerEndpointCreateParametersProperties object itself.
+ */
+ public ServerEndpointCreateParametersProperties 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 ServerEndpointCreateParametersProperties object itself.
+ */
+ public ServerEndpointCreateParametersProperties 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 ServerEndpointCreateParametersProperties object itself.
+ */
+ public ServerEndpointCreateParametersProperties 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 ServerEndpointCreateParametersProperties object itself.
+ */
+ public ServerEndpointCreateParametersProperties 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 ServerEndpointCreateParametersProperties object itself.
+ */
+ public ServerEndpointCreateParametersProperties withServerResourceId(String serverResourceId) {
+ this.serverResourceId = serverResourceId;
+ return this;
+ }
+
+ /**
+ * 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 ServerEndpointCreateParametersProperties object itself.
+ */
+ public ServerEndpointCreateParametersProperties withOfflineDataTransfer(FeatureStatus offlineDataTransfer) {
+ this.offlineDataTransfer = offlineDataTransfer;
+ return this;
+ }
+
+ /**
+ * 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 ServerEndpointCreateParametersProperties object itself.
+ */
+ public ServerEndpointCreateParametersProperties withOfflineDataTransferShareName(
+ String offlineDataTransferShareName) {
+ this.offlineDataTransferShareName = offlineDataTransferShareName;
+ return this;
+ }
+
+ /**
+ * 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 ServerEndpointCreateParametersProperties object itself.
+ */
+ public ServerEndpointCreateParametersProperties 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 ServerEndpointCreateParametersProperties object itself.
+ */
+ public ServerEndpointCreateParametersProperties 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 ServerEndpointCreateParametersProperties object itself.
+ */
+ public ServerEndpointCreateParametersProperties withInitialUploadPolicy(InitialUploadPolicy initialUploadPolicy) {
+ this.initialUploadPolicy = initialUploadPolicy;
+ return this;
+ }
+
+ /**
+ * 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..6810cefe5653
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/ServerEndpointInner.java
@@ -0,0 +1,407 @@
+// 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.management.ProxyResource;
+import com.azure.core.management.SystemData;
+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. */
+@Fluent
+public final class ServerEndpointInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerEndpointInner.class);
+
+ /*
+ * Server Endpoint properties.
+ */
+ @JsonProperty(value = "properties")
+ private ServerEndpointProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: Server Endpoint properties.
+ *
+ * @return the innerProperties value.
+ */
+ private ServerEndpointProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the serverLocalPath property: Server Local path.
+ *
+ * @return the serverLocalPath value.
+ */
+ public String serverLocalPath() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerEndpointProperties();
+ }
+ this.innerProperties().withServerLocalPath(serverLocalPath);
+ return this;
+ }
+
+ /**
+ * Get the cloudTiering property: Cloud Tiering.
+ *
+ * @return the cloudTiering value.
+ */
+ public FeatureStatus cloudTiering() {
+ return this.innerProperties() == null ? null : this.innerProperties().cloudTiering();
+ }
+
+ /**
+ * Set the cloudTiering property: Cloud Tiering.
+ *
+ * @param cloudTiering the cloudTiering value to set.
+ * @return the ServerEndpointInner object itself.
+ */
+ public ServerEndpointInner withCloudTiering(FeatureStatus cloudTiering) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerEndpointProperties();
+ }
+ this.innerProperties().withCloudTiering(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.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerEndpointProperties();
+ }
+ this.innerProperties().withVolumeFreeSpacePercent(volumeFreeSpacePercent);
+ return this;
+ }
+
+ /**
+ * Get the tierFilesOlderThanDays property: Tier files older than days.
+ *
+ * @return the tierFilesOlderThanDays value.
+ */
+ public Integer tierFilesOlderThanDays() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerEndpointProperties();
+ }
+ this.innerProperties().withTierFilesOlderThanDays(tierFilesOlderThanDays);
+ return this;
+ }
+
+ /**
+ * Get the friendlyName property: Friendly Name.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.innerProperties() == null ? null : this.innerProperties().friendlyName();
+ }
+
+ /**
+ * Set the friendlyName property: Friendly Name.
+ *
+ * @param friendlyName the friendlyName value to set.
+ * @return the ServerEndpointInner object itself.
+ */
+ public ServerEndpointInner withFriendlyName(String friendlyName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerEndpointProperties();
+ }
+ this.innerProperties().withFriendlyName(friendlyName);
+ return this;
+ }
+
+ /**
+ * Get the serverResourceId property: Server Resource Id.
+ *
+ * @return the serverResourceId value.
+ */
+ public String serverResourceId() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerEndpointProperties();
+ }
+ this.innerProperties().withServerResourceId(serverResourceId);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: ServerEndpoint Provisioning State.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the lastWorkflowId property: ServerEndpoint lastWorkflowId.
+ *
+ * @return the lastWorkflowId value.
+ */
+ public String lastWorkflowId() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastWorkflowId();
+ }
+
+ /**
+ * Get the lastOperationName property: Resource Last Operation Name.
+ *
+ * @return the lastOperationName value.
+ */
+ public String lastOperationName() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastOperationName();
+ }
+
+ /**
+ * Get the syncStatus property: Server Endpoint sync status.
+ *
+ * @return the syncStatus value.
+ */
+ public ServerEndpointSyncStatus syncStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().syncStatus();
+ }
+
+ /**
+ * Get the offlineDataTransfer property: Offline data transfer.
+ *
+ * @return the offlineDataTransfer value.
+ */
+ public FeatureStatus offlineDataTransfer() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerEndpointProperties();
+ }
+ this.innerProperties().withOfflineDataTransfer(offlineDataTransfer);
+ return this;
+ }
+
+ /**
+ * Get the offlineDataTransferStorageAccountResourceId property: Offline data transfer storage account resource ID.
+ *
+ * @return the offlineDataTransferStorageAccountResourceId value.
+ */
+ public String offlineDataTransferStorageAccountResourceId() {
+ return this.innerProperties() == null
+ ? null
+ : this.innerProperties().offlineDataTransferStorageAccountResourceId();
+ }
+
+ /**
+ * Get the offlineDataTransferStorageAccountTenantId property: Offline data transfer storage account tenant ID.
+ *
+ * @return the offlineDataTransferStorageAccountTenantId value.
+ */
+ public String offlineDataTransferStorageAccountTenantId() {
+ return this.innerProperties() == null
+ ? null
+ : this.innerProperties().offlineDataTransferStorageAccountTenantId();
+ }
+
+ /**
+ * Get the offlineDataTransferShareName property: Offline data transfer share name.
+ *
+ * @return the offlineDataTransferShareName value.
+ */
+ public String offlineDataTransferShareName() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerEndpointProperties();
+ }
+ this.innerProperties().withOfflineDataTransferShareName(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.innerProperties() == null ? null : this.innerProperties().cloudTieringStatus();
+ }
+
+ /**
+ * Get the recallStatus property: Recall status. Only populated if cloud tiering is enabled.
+ *
+ * @return the recallStatus value.
+ */
+ public ServerEndpointRecallStatus recallStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().recallStatus();
+ }
+
+ /**
+ * Get the initialDownloadPolicy property: Policy for how namespace and files are recalled during FastDr.
+ *
+ * @return the initialDownloadPolicy value.
+ */
+ public InitialDownloadPolicy initialDownloadPolicy() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerEndpointProperties();
+ }
+ this.innerProperties().withInitialDownloadPolicy(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.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerEndpointProperties();
+ }
+ this.innerProperties().withLocalCacheMode(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.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerEndpointProperties();
+ }
+ this.innerProperties().withInitialUploadPolicy(initialUploadPolicy);
+ return this;
+ }
+
+ /**
+ * Get the serverName property: Server name.
+ *
+ * @return the serverName value.
+ */
+ public String serverName() {
+ return this.innerProperties() == null ? null : this.innerProperties().serverName();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/ServerEndpointProperties.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/ServerEndpointProperties.java
new file mode 100644
index 000000000000..b7d3679c1275
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/ServerEndpointProperties.java
@@ -0,0 +1,464 @@
+// 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.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;
+
+/** ServerEndpoint Properties object. */
+@Fluent
+public final class ServerEndpointProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerEndpointProperties.class);
+
+ /*
+ * Server Local path.
+ */
+ @JsonProperty(value = "serverLocalPath")
+ private String serverLocalPath;
+
+ /*
+ * Cloud Tiering.
+ */
+ @JsonProperty(value = "cloudTiering")
+ private FeatureStatus cloudTiering;
+
+ /*
+ * Level of free space to be maintained by Cloud Tiering if it is enabled.
+ */
+ @JsonProperty(value = "volumeFreeSpacePercent")
+ private Integer volumeFreeSpacePercent;
+
+ /*
+ * Tier files older than days.
+ */
+ @JsonProperty(value = "tierFilesOlderThanDays")
+ private Integer tierFilesOlderThanDays;
+
+ /*
+ * Friendly Name
+ */
+ @JsonProperty(value = "friendlyName")
+ private String friendlyName;
+
+ /*
+ * Server Resource Id.
+ */
+ @JsonProperty(value = "serverResourceId")
+ private String serverResourceId;
+
+ /*
+ * ServerEndpoint Provisioning State
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /*
+ * ServerEndpoint lastWorkflowId
+ */
+ @JsonProperty(value = "lastWorkflowId", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastWorkflowId;
+
+ /*
+ * Resource Last Operation Name
+ */
+ @JsonProperty(value = "lastOperationName", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastOperationName;
+
+ /*
+ * Server Endpoint sync status
+ */
+ @JsonProperty(value = "syncStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private ServerEndpointSyncStatus syncStatus;
+
+ /*
+ * Offline data transfer
+ */
+ @JsonProperty(value = "offlineDataTransfer")
+ private FeatureStatus offlineDataTransfer;
+
+ /*
+ * Offline data transfer storage account resource ID
+ */
+ @JsonProperty(value = "offlineDataTransferStorageAccountResourceId", access = JsonProperty.Access.WRITE_ONLY)
+ private String offlineDataTransferStorageAccountResourceId;
+
+ /*
+ * Offline data transfer storage account tenant ID
+ */
+ @JsonProperty(value = "offlineDataTransferStorageAccountTenantId", access = JsonProperty.Access.WRITE_ONLY)
+ private String offlineDataTransferStorageAccountTenantId;
+
+ /*
+ * Offline data transfer share name
+ */
+ @JsonProperty(value = "offlineDataTransferShareName")
+ private String offlineDataTransferShareName;
+
+ /*
+ * Cloud tiering status. Only populated if cloud tiering is enabled.
+ */
+ @JsonProperty(value = "cloudTieringStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private ServerEndpointCloudTieringStatus cloudTieringStatus;
+
+ /*
+ * Recall status. Only populated if cloud tiering is enabled.
+ */
+ @JsonProperty(value = "recallStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private ServerEndpointRecallStatus recallStatus;
+
+ /*
+ * Policy for how namespace and files are recalled during FastDr.
+ */
+ @JsonProperty(value = "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 = "localCacheMode")
+ private LocalCacheMode localCacheMode;
+
+ /*
+ * Policy for how the initial upload sync session is performed.
+ */
+ @JsonProperty(value = "initialUploadPolicy")
+ private InitialUploadPolicy initialUploadPolicy;
+
+ /*
+ * Server name
+ */
+ @JsonProperty(value = "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 ServerEndpointProperties object itself.
+ */
+ public ServerEndpointProperties 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 ServerEndpointProperties object itself.
+ */
+ public ServerEndpointProperties 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 ServerEndpointProperties object itself.
+ */
+ public ServerEndpointProperties 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 ServerEndpointProperties object itself.
+ */
+ public ServerEndpointProperties 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 ServerEndpointProperties object itself.
+ */
+ public ServerEndpointProperties 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 ServerEndpointProperties object itself.
+ */
+ public ServerEndpointProperties 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 ServerEndpointProperties object itself.
+ */
+ public ServerEndpointProperties 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 ServerEndpointProperties object itself.
+ */
+ public ServerEndpointProperties 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 ServerEndpointProperties object itself.
+ */
+ public ServerEndpointProperties 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 ServerEndpointProperties object itself.
+ */
+ public ServerEndpointProperties 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 ServerEndpointProperties object itself.
+ */
+ public ServerEndpointProperties 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/ServerEndpointUpdateProperties.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/ServerEndpointUpdateProperties.java
new file mode 100644
index 000000000000..1cac74b3ee5b
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/ServerEndpointUpdateProperties.java
@@ -0,0 +1,185 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.storagesync.models.FeatureStatus;
+import com.azure.resourcemanager.storagesync.models.LocalCacheMode;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** ServerEndpoint Update Properties object. */
+@Fluent
+public final class ServerEndpointUpdateProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerEndpointUpdateProperties.class);
+
+ /*
+ * Cloud Tiering.
+ */
+ @JsonProperty(value = "cloudTiering")
+ private FeatureStatus cloudTiering;
+
+ /*
+ * Level of free space to be maintained by Cloud Tiering if it is enabled.
+ */
+ @JsonProperty(value = "volumeFreeSpacePercent")
+ private Integer volumeFreeSpacePercent;
+
+ /*
+ * Tier files older than days.
+ */
+ @JsonProperty(value = "tierFilesOlderThanDays")
+ private Integer tierFilesOlderThanDays;
+
+ /*
+ * Offline data transfer
+ */
+ @JsonProperty(value = "offlineDataTransfer")
+ private FeatureStatus offlineDataTransfer;
+
+ /*
+ * Offline data transfer share name
+ */
+ @JsonProperty(value = "offlineDataTransferShareName")
+ private String offlineDataTransferShareName;
+
+ /*
+ * Policy for enabling follow-the-sun business models: link local cache to
+ * cloud behavior to pre-populate before local access.
+ */
+ @JsonProperty(value = "localCacheMode")
+ private LocalCacheMode localCacheMode;
+
+ /**
+ * 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 ServerEndpointUpdateProperties object itself.
+ */
+ public ServerEndpointUpdateProperties 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 ServerEndpointUpdateProperties object itself.
+ */
+ public ServerEndpointUpdateProperties 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 ServerEndpointUpdateProperties object itself.
+ */
+ public ServerEndpointUpdateProperties withTierFilesOlderThanDays(Integer tierFilesOlderThanDays) {
+ this.tierFilesOlderThanDays = tierFilesOlderThanDays;
+ return this;
+ }
+
+ /**
+ * 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 ServerEndpointUpdateProperties object itself.
+ */
+ public ServerEndpointUpdateProperties withOfflineDataTransfer(FeatureStatus offlineDataTransfer) {
+ this.offlineDataTransfer = offlineDataTransfer;
+ return this;
+ }
+
+ /**
+ * 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 ServerEndpointUpdateProperties object itself.
+ */
+ public ServerEndpointUpdateProperties withOfflineDataTransferShareName(String offlineDataTransferShareName) {
+ this.offlineDataTransferShareName = offlineDataTransferShareName;
+ 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 ServerEndpointUpdateProperties object itself.
+ */
+ public ServerEndpointUpdateProperties withLocalCacheMode(LocalCacheMode localCacheMode) {
+ this.localCacheMode = localCacheMode;
+ return this;
+ }
+
+ /**
+ * 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/StorageSyncServiceCreateParametersProperties.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/StorageSyncServiceCreateParametersProperties.java
new file mode 100644
index 000000000000..3ea923c119fc
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/StorageSyncServiceCreateParametersProperties.java
@@ -0,0 +1,53 @@
+// 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.IncomingTrafficPolicy;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** StorageSyncService Properties object. */
+@Fluent
+public final class StorageSyncServiceCreateParametersProperties {
+ @JsonIgnore
+ private final ClientLogger logger = new ClientLogger(StorageSyncServiceCreateParametersProperties.class);
+
+ /*
+ * Incoming Traffic Policy
+ */
+ @JsonProperty(value = "incomingTrafficPolicy")
+ private IncomingTrafficPolicy incomingTrafficPolicy;
+
+ /**
+ * 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 StorageSyncServiceCreateParametersProperties object itself.
+ */
+ public StorageSyncServiceCreateParametersProperties withIncomingTrafficPolicy(
+ IncomingTrafficPolicy incomingTrafficPolicy) {
+ this.incomingTrafficPolicy = incomingTrafficPolicy;
+ return this;
+ }
+
+ /**
+ * 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/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..f28627e3ca07
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/StorageSyncServiceInner.java
@@ -0,0 +1,138 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+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. */
+@Fluent
+public final class StorageSyncServiceInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(StorageSyncServiceInner.class);
+
+ /*
+ * Storage Sync Service properties.
+ */
+ @JsonProperty(value = "properties")
+ private StorageSyncServiceProperties innerProperties;
+
+ /**
+ * Get the innerProperties property: Storage Sync Service properties.
+ *
+ * @return the innerProperties value.
+ */
+ private StorageSyncServiceProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public StorageSyncServiceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public StorageSyncServiceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the incomingTrafficPolicy property: Incoming Traffic Policy.
+ *
+ * @return the incomingTrafficPolicy value.
+ */
+ public IncomingTrafficPolicy incomingTrafficPolicy() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageSyncServiceProperties();
+ }
+ this.innerProperties().withIncomingTrafficPolicy(incomingTrafficPolicy);
+ return this;
+ }
+
+ /**
+ * Get the storageSyncServiceStatus property: Storage Sync service status.
+ *
+ * @return the storageSyncServiceStatus value.
+ */
+ public Integer storageSyncServiceStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().storageSyncServiceStatus();
+ }
+
+ /**
+ * Get the storageSyncServiceUid property: Storage Sync service Uid.
+ *
+ * @return the storageSyncServiceUid value.
+ */
+ public String storageSyncServiceUid() {
+ return this.innerProperties() == null ? null : this.innerProperties().storageSyncServiceUid();
+ }
+
+ /**
+ * Get the provisioningState property: StorageSyncService Provisioning State.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the lastWorkflowId property: StorageSyncService lastWorkflowId.
+ *
+ * @return the lastWorkflowId value.
+ */
+ public String lastWorkflowId() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastWorkflowId();
+ }
+
+ /**
+ * Get the lastOperationName property: Resource Last Operation Name.
+ *
+ * @return the lastOperationName value.
+ */
+ public String lastOperationName() {
+ return this.innerProperties() == null ? null : this.innerProperties().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.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/StorageSyncServiceProperties.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/StorageSyncServiceProperties.java
new file mode 100644
index 000000000000..ab2aaf5997cf
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/StorageSyncServiceProperties.java
@@ -0,0 +1,147 @@
+// 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.IncomingTrafficPolicy;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Storage Sync Service Properties object. */
+@Fluent
+public final class StorageSyncServiceProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(StorageSyncServiceProperties.class);
+
+ /*
+ * Incoming Traffic Policy
+ */
+ @JsonProperty(value = "incomingTrafficPolicy")
+ private IncomingTrafficPolicy incomingTrafficPolicy;
+
+ /*
+ * Storage Sync service status.
+ */
+ @JsonProperty(value = "storageSyncServiceStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer storageSyncServiceStatus;
+
+ /*
+ * Storage Sync service Uid
+ */
+ @JsonProperty(value = "storageSyncServiceUid", access = JsonProperty.Access.WRITE_ONLY)
+ private String storageSyncServiceUid;
+
+ /*
+ * StorageSyncService Provisioning State
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /*
+ * StorageSyncService lastWorkflowId
+ */
+ @JsonProperty(value = "lastWorkflowId", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastWorkflowId;
+
+ /*
+ * Resource Last Operation Name
+ */
+ @JsonProperty(value = "lastOperationName", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastOperationName;
+
+ /*
+ * List of private endpoint connection associated with the specified
+ * storage sync service
+ */
+ @JsonProperty(value = "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 StorageSyncServiceProperties object itself.
+ */
+ public StorageSyncServiceProperties 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;
+ }
+
+ /**
+ * 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/StorageSyncServiceUpdateProperties.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/StorageSyncServiceUpdateProperties.java
new file mode 100644
index 000000000000..58a8b481267d
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/StorageSyncServiceUpdateProperties.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.storagesync.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+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;
+
+/** StorageSyncService Properties object. */
+@Fluent
+public final class StorageSyncServiceUpdateProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(StorageSyncServiceUpdateProperties.class);
+
+ /*
+ * Incoming Traffic Policy
+ */
+ @JsonProperty(value = "incomingTrafficPolicy")
+ private IncomingTrafficPolicy incomingTrafficPolicy;
+
+ /**
+ * 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 StorageSyncServiceUpdateProperties object itself.
+ */
+ public StorageSyncServiceUpdateProperties withIncomingTrafficPolicy(IncomingTrafficPolicy incomingTrafficPolicy) {
+ this.incomingTrafficPolicy = incomingTrafficPolicy;
+ return this;
+ }
+
+ /**
+ * 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/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..6951cd38578b
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/SyncGroupInner.java
@@ -0,0 +1,61 @@
+// 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.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Sync Group object. */
+@Fluent
+public final class SyncGroupInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SyncGroupInner.class);
+
+ /*
+ * SyncGroup properties.
+ */
+ @JsonProperty(value = "properties")
+ private SyncGroupProperties innerProperties;
+
+ /**
+ * Get the innerProperties property: SyncGroup properties.
+ *
+ * @return the innerProperties value.
+ */
+ private SyncGroupProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the uniqueId property: Unique Id.
+ *
+ * @return the uniqueId value.
+ */
+ public String uniqueId() {
+ return this.innerProperties() == null ? null : this.innerProperties().uniqueId();
+ }
+
+ /**
+ * Get the syncGroupStatus property: Sync group status.
+ *
+ * @return the syncGroupStatus value.
+ */
+ public String syncGroupStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().syncGroupStatus();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/SyncGroupProperties.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/SyncGroupProperties.java
new file mode 100644
index 000000000000..4572285723b9
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/SyncGroupProperties.java
@@ -0,0 +1,54 @@
+// 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.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** SyncGroup Properties object. */
+@Immutable
+public final class SyncGroupProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SyncGroupProperties.class);
+
+ /*
+ * Unique Id
+ */
+ @JsonProperty(value = "uniqueId", access = JsonProperty.Access.WRITE_ONLY)
+ private String uniqueId;
+
+ /*
+ * Sync group status
+ */
+ @JsonProperty(value = "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..94863f8357cf
--- /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.management.ProxyResource;
+import com.azure.core.management.SystemData;
+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. */
+@Fluent
+public final class WorkflowInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowInner.class);
+
+ /*
+ * Workflow properties.
+ */
+ @JsonProperty(value = "properties")
+ private WorkflowProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: Workflow properties.
+ *
+ * @return the innerProperties value.
+ */
+ private WorkflowProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the lastStepName property: last step name.
+ *
+ * @return the lastStepName value.
+ */
+ public String lastStepName() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkflowProperties();
+ }
+ this.innerProperties().withLastStepName(lastStepName);
+ return this;
+ }
+
+ /**
+ * Get the status property: workflow status.
+ *
+ * @return the status value.
+ */
+ public WorkflowStatus status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Set the status property: workflow status.
+ *
+ * @param status the status value to set.
+ * @return the WorkflowInner object itself.
+ */
+ public WorkflowInner withStatus(WorkflowStatus status) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkflowProperties();
+ }
+ this.innerProperties().withStatus(status);
+ return this;
+ }
+
+ /**
+ * Get the operation property: operation direction.
+ *
+ * @return the operation value.
+ */
+ public OperationDirection operation() {
+ return this.innerProperties() == null ? null : this.innerProperties().operation();
+ }
+
+ /**
+ * Set the operation property: operation direction.
+ *
+ * @param operation the operation value to set.
+ * @return the WorkflowInner object itself.
+ */
+ public WorkflowInner withOperation(OperationDirection operation) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkflowProperties();
+ }
+ this.innerProperties().withOperation(operation);
+ return this;
+ }
+
+ /**
+ * Get the steps property: workflow steps.
+ *
+ * @return the steps value.
+ */
+ public String steps() {
+ return this.innerProperties() == null ? null : this.innerProperties().steps();
+ }
+
+ /**
+ * Set the steps property: workflow steps.
+ *
+ * @param steps the steps value to set.
+ * @return the WorkflowInner object itself.
+ */
+ public WorkflowInner withSteps(String steps) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkflowProperties();
+ }
+ this.innerProperties().withSteps(steps);
+ return this;
+ }
+
+ /**
+ * Get the lastOperationId property: workflow last operation identifier.
+ *
+ * @return the lastOperationId value.
+ */
+ public String lastOperationId() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkflowProperties();
+ }
+ this.innerProperties().withLastOperationId(lastOperationId);
+ return this;
+ }
+
+ /**
+ * Get the commandName property: workflow command name.
+ *
+ * @return the commandName value.
+ */
+ public String commandName() {
+ return this.innerProperties() == null ? null : this.innerProperties().commandName();
+ }
+
+ /**
+ * Get the createdTimestamp property: workflow created timestamp.
+ *
+ * @return the createdTimestamp value.
+ */
+ public OffsetDateTime createdTimestamp() {
+ return this.innerProperties() == null ? null : this.innerProperties().createdTimestamp();
+ }
+
+ /**
+ * Get the lastStatusTimestamp property: workflow last status timestamp.
+ *
+ * @return the lastStatusTimestamp value.
+ */
+ public OffsetDateTime lastStatusTimestamp() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastStatusTimestamp();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/WorkflowProperties.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/WorkflowProperties.java
new file mode 100644
index 000000000000..0c11587ec1ae
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/fluent/models/WorkflowProperties.java
@@ -0,0 +1,202 @@
+// 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.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 Properties object. */
+@Fluent
+public final class WorkflowProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowProperties.class);
+
+ /*
+ * last step name
+ */
+ @JsonProperty(value = "lastStepName")
+ private String lastStepName;
+
+ /*
+ * workflow status.
+ */
+ @JsonProperty(value = "status")
+ private WorkflowStatus status;
+
+ /*
+ * operation direction.
+ */
+ @JsonProperty(value = "operation")
+ private OperationDirection operation;
+
+ /*
+ * workflow steps
+ */
+ @JsonProperty(value = "steps")
+ private String steps;
+
+ /*
+ * workflow last operation identifier.
+ */
+ @JsonProperty(value = "lastOperationId")
+ private String lastOperationId;
+
+ /*
+ * workflow command name.
+ */
+ @JsonProperty(value = "commandName", access = JsonProperty.Access.WRITE_ONLY)
+ private String commandName;
+
+ /*
+ * workflow created timestamp.
+ */
+ @JsonProperty(value = "createdTimestamp", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdTimestamp;
+
+ /*
+ * workflow last status timestamp.
+ */
+ @JsonProperty(value = "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 WorkflowProperties object itself.
+ */
+ public WorkflowProperties 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 WorkflowProperties object itself.
+ */
+ public WorkflowProperties 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 WorkflowProperties object itself.
+ */
+ public WorkflowProperties 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 WorkflowProperties object itself.
+ */
+ public WorkflowProperties 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 WorkflowProperties object itself.
+ */
+ public WorkflowProperties 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..37fcf7063474
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/CloudEndpointImpl.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.implementation;
+
+import com.azure.core.management.SystemData;
+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 SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ 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..4f5c0389e91a
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/CloudEndpointsClientImpl.java
@@ -0,0 +1,3317 @@
+// 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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,
+ this.client.getContext());
+ }
+
+ /**
+ * 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 on successful completion of {@link Mono}.
+ */
+ @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 on successful completion of {@link Mono}.
+ */
+ @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 on successful completion of {@link Mono}.
+ */
+ @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 on successful completion of {@link Mono}.
+ */
+ @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 on successful completion of {@link Mono}.
+ */
+ @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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, this.client.getContext());
+ }
+
+ /**
+ * 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 A {@link Mono} that completes when a successful response is received.
+ */
+ @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 A {@link Mono} that completes when a successful response is received.
+ */
+ @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 along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @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 along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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, this.client.getContext());
+ }
+
+ /**
+ * 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 A {@link Mono} that completes when a successful response is received.
+ */
+ @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 A {@link Mono} that completes when a successful response is received.
+ */
+ @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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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,
+ this.client.getContext());
+ }
+
+ /**
+ * 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 on successful completion of {@link Mono}.
+ */
+ @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 on successful completion of {@link Mono}.
+ */
+ @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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, this.client.getContext());
+ }
+
+ /**
+ * 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 A {@link Mono} that completes when a successful response is received.
+ */
+ @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 A {@link Mono} that completes when a successful response is received.
+ */
+ @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 A {@link Mono} that completes when a successful response is received.
+ */
+ @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 A {@link Mono} that completes when a successful response is received.
+ */
+ @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 A {@link Mono} that completes when a successful response is received.
+ */
+ @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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, this.client.getContext());
+ }
+
+ /**
+ * 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 A {@link Mono} that completes when a successful response is received.
+ */
+ @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 A {@link Mono} that completes when a successful response is received.
+ */
+ @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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, this.client.getContext());
+ }
+
+ /**
+ * 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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 A {@link Mono} that completes when a successful response is received.
+ */
+ @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 A {@link Mono} that completes when a successful response is received.
+ */
+ @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/LocationOperationStatusImpl.java b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/LocationOperationStatusImpl.java
new file mode 100644
index 000000000000..11bfed83dc7d
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/LocationOperationStatusImpl.java
@@ -0,0 +1,59 @@
+// 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.LocationOperationStatusInner;
+import com.azure.resourcemanager.storagesync.models.LocationOperationStatus;
+import com.azure.resourcemanager.storagesync.models.StorageSyncApiError;
+import java.time.OffsetDateTime;
+
+public final class LocationOperationStatusImpl implements LocationOperationStatus {
+ private LocationOperationStatusInner innerObject;
+
+ private final com.azure.resourcemanager.storagesync.StoragesyncManager serviceManager;
+
+ LocationOperationStatusImpl(
+ LocationOperationStatusInner 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 status() {
+ return this.innerModel().status();
+ }
+
+ public OffsetDateTime startTime() {
+ return this.innerModel().startTime();
+ }
+
+ public OffsetDateTime endTime() {
+ return this.innerModel().endTime();
+ }
+
+ public StorageSyncApiError error() {
+ return this.innerModel().error();
+ }
+
+ public Integer percentComplete() {
+ return this.innerModel().percentComplete();
+ }
+
+ public LocationOperationStatusInner 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/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..939e265cf9f8
--- /dev/null
+++ b/sdk/storagesync/azure-resourcemanager-storagesync/src/main/java/com/azure/resourcemanager/storagesync/implementation/MicrosoftStorageSyncImpl.java
@@ -0,0 +1,433 @@
+// 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.ResourceProvidersClient;
+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;
+ }
+
+ /** The ResourceProvidersClient object to access its operations. */
+ private final ResourceProvidersClient resourceProviders;
+
+ /**
+ * Gets the ResourceProvidersClient object to access its operations.
+ *
+ * @return the ResourceProvidersClient object.
+ */
+ public ResourceProvidersClient getResourceProviders() {
+ return this.resourceProviders;
+ }
+
+ /**
+ * 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);
+ this.resourceProviders = new ResourceProvidersClientImpl(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