@azure/arm-storagesync 9.1.1-alpha.20240809.1 → 9.1.1-alpha.20240812.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.min.js CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0});var tslib=require("tslib"),coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline"),coreLro=require("@azure/core-lro");function _interopNamespaceDefault(t){var a=Object.create(null);return t&&Object.keys(t).forEach(function(e){var r;"default"!==e&&(r=Object.getOwnPropertyDescriptor(t,e),Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:function(){return t[e]}}))}),a.default=t,Object.freeze(a)}var coreClient__namespace=_interopNamespaceDefault(coreClient),coreRestPipeline__namespace=_interopNamespaceDefault(coreRestPipeline);let pageMap=new WeakMap;function getContinuationToken(e){return"object"!=typeof e||null===e||null==(e=pageMap.get(e))?void 0:e.continuationToken}function setContinuationToken(e,r){var t;"object"==typeof e&&null!==e&&r&&((t=null!=(t=pageMap.get(e))?t:{}).continuationToken=r,pageMap.set(e,t))}exports.KnownIncomingTrafficPolicy=void 0,function(e){e.AllowAllTraffic="AllowAllTraffic",e.AllowVirtualNetworksOnly="AllowVirtualNetworksOnly"}(exports.KnownIncomingTrafficPolicy||(exports.KnownIncomingTrafficPolicy={})),exports.KnownPrivateEndpointServiceConnectionStatus=void 0,function(e){e.Pending="Pending",e.Approved="Approved",e.Rejected="Rejected"}(exports.KnownPrivateEndpointServiceConnectionStatus||(exports.KnownPrivateEndpointServiceConnectionStatus={})),exports.KnownPrivateEndpointConnectionProvisioningState=void 0,function(e){e.Succeeded="Succeeded",e.Creating="Creating",e.Deleting="Deleting",e.Failed="Failed"}(exports.KnownPrivateEndpointConnectionProvisioningState||(exports.KnownPrivateEndpointConnectionProvisioningState={})),exports.KnownCloudEndpointChangeEnumerationActivityState=void 0,function(e){e.InitialEnumerationInProgress="InitialEnumerationInProgress",e.EnumerationInProgress="EnumerationInProgress"}(exports.KnownCloudEndpointChangeEnumerationActivityState||(exports.KnownCloudEndpointChangeEnumerationActivityState={})),exports.KnownCloudEndpointChangeEnumerationTotalCountsState=void 0,function(e){e.Calculating="Calculating",e.Final="Final"}(exports.KnownCloudEndpointChangeEnumerationTotalCountsState||(exports.KnownCloudEndpointChangeEnumerationTotalCountsState={})),exports.KnownChangeDetectionMode=void 0,function(e){e.Default="Default",e.Recursive="Recursive"}(exports.KnownChangeDetectionMode||(exports.KnownChangeDetectionMode={})),exports.KnownFeatureStatus=void 0,function(e){e.On="on",e.Off="off"}(exports.KnownFeatureStatus||(exports.KnownFeatureStatus={})),exports.KnownInitialDownloadPolicy=void 0,function(e){e.NamespaceOnly="NamespaceOnly",e.NamespaceThenModifiedFiles="NamespaceThenModifiedFiles",e.AvoidTieredFiles="AvoidTieredFiles"}(exports.KnownInitialDownloadPolicy||(exports.KnownInitialDownloadPolicy={})),exports.KnownLocalCacheMode=void 0,function(e){e.DownloadNewAndModifiedFiles="DownloadNewAndModifiedFiles",e.UpdateLocallyCachedFiles="UpdateLocallyCachedFiles"}(exports.KnownLocalCacheMode||(exports.KnownLocalCacheMode={})),exports.KnownInitialUploadPolicy=void 0,function(e){e.ServerAuthoritative="ServerAuthoritative",e.Merge="Merge"}(exports.KnownInitialUploadPolicy||(exports.KnownInitialUploadPolicy={})),exports.KnownServerEndpointHealthState=void 0,function(e){e.Unavailable="Unavailable",e.Healthy="Healthy",e.Error="Error"}(exports.KnownServerEndpointHealthState||(exports.KnownServerEndpointHealthState={})),exports.KnownServerEndpointSyncActivityState=void 0,function(e){e.Upload="Upload",e.Download="Download",e.UploadAndDownload="UploadAndDownload"}(exports.KnownServerEndpointSyncActivityState||(exports.KnownServerEndpointSyncActivityState={})),exports.KnownServerEndpointSyncMode=void 0,function(e){e.Regular="Regular",e.NamespaceDownload="NamespaceDownload",e.InitialUpload="InitialUpload",e.SnapshotUpload="SnapshotUpload",e.InitialFullDownload="InitialFullDownload"}(exports.KnownServerEndpointSyncMode||(exports.KnownServerEndpointSyncMode={})),exports.KnownServerEndpointOfflineDataTransferState=void 0,function(e){e.InProgress="InProgress",e.Stopping="Stopping",e.NotRunning="NotRunning",e.Complete="Complete"}(exports.KnownServerEndpointOfflineDataTransferState||(exports.KnownServerEndpointOfflineDataTransferState={})),exports.KnownRegisteredServerAgentVersionStatus=void 0,function(e){e.Ok="Ok",e.NearExpiry="NearExpiry",e.Expired="Expired",e.Blocked="Blocked"}(exports.KnownRegisteredServerAgentVersionStatus||(exports.KnownRegisteredServerAgentVersionStatus={})),exports.KnownWorkflowStatus=void 0,function(e){e.Active="active",e.Expired="expired",e.Succeeded="succeeded",e.Aborted="aborted",e.Failed="failed"}(exports.KnownWorkflowStatus||(exports.KnownWorkflowStatus={})),exports.KnownOperationDirection=void 0,function(e){e.Do="do",e.Undo="undo",e.Cancel="cancel"}(exports.KnownOperationDirection||(exports.KnownOperationDirection={})),exports.KnownReason=void 0,function(e){e.Registered="Registered",e.Unregistered="Unregistered",e.Warned="Warned",e.Suspended="Suspended",e.Deleted="Deleted"}(exports.KnownReason||(exports.KnownReason={})),exports.KnownProgressType=void 0,function(e){e.None="none",e.Initialize="initialize",e.Download="download",e.Upload="upload",e.Recall="recall"}(exports.KnownProgressType||(exports.KnownProgressType={}));let OperationEntityListResult={type:{name:"Composite",className:"OperationEntityListResult",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"OperationEntity"}}}}}}},OperationEntity={type:{name:"Composite",className:"OperationEntity",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplayInfo"}},origin:{serializedName:"origin",type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Composite",className:"OperationProperties"}}}}},OperationDisplayInfo={type:{name:"Composite",className:"OperationDisplayInfo",modelProperties:{description:{serializedName:"description",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}}}}},OperationProperties={type:{name:"Composite",className:"OperationProperties",modelProperties:{serviceSpecification:{serializedName:"serviceSpecification",type:{name:"Composite",className:"OperationResourceServiceSpecification"}}}}},OperationResourceServiceSpecification={type:{name:"Composite",className:"OperationResourceServiceSpecification",modelProperties:{metricSpecifications:{serializedName:"metricSpecifications",type:{name:"Sequence",element:{type:{name:"Composite",className:"OperationResourceMetricSpecification"}}}}}}},OperationResourceMetricSpecification={type:{name:"Composite",className:"OperationResourceMetricSpecification",modelProperties:{name:{serializedName:"name",type:{name:"String"}},displayName:{serializedName:"displayName",type:{name:"String"}},displayDescription:{serializedName:"displayDescription",type:{name:"String"}},unit:{serializedName:"unit",type:{name:"String"}},aggregationType:{serializedName:"aggregationType",type:{name:"String"}},fillGapWithZero:{serializedName:"fillGapWithZero",type:{name:"Boolean"}},dimensions:{serializedName:"dimensions",type:{name:"Sequence",element:{type:{name:"Composite",className:"OperationResourceMetricSpecificationDimension"}}}}}}},OperationResourceMetricSpecificationDimension={type:{name:"Composite",className:"OperationResourceMetricSpecificationDimension",modelProperties:{name:{serializedName:"name",type:{name:"String"}},displayName:{serializedName:"displayName",type:{name:"String"}},toBeExportedForShoebox:{serializedName:"toBeExportedForShoebox",type:{name:"Boolean"}}}}},StorageSyncError={type:{name:"Composite",className:"StorageSyncError",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"StorageSyncApiError"}},innererror:{serializedName:"innererror",type:{name:"Composite",className:"StorageSyncApiError"}}}}},StorageSyncApiError={type:{name:"Composite",className:"StorageSyncApiError",modelProperties:{code:{serializedName:"code",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}},target:{serializedName:"target",type:{name:"String"}},details:{serializedName:"details",type:{name:"Composite",className:"StorageSyncErrorDetails"}},innerError:{serializedName:"innerError",type:{name:"Composite",className:"StorageSyncInnerErrorDetails"}}}}},StorageSyncErrorDetails={type:{name:"Composite",className:"StorageSyncErrorDetails",modelProperties:{code:{serializedName:"code",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}},target:{serializedName:"target",type:{name:"String"}},requestUri:{serializedName:"requestUri",type:{name:"String"}},exceptionType:{serializedName:"exceptionType",type:{name:"String"}},httpMethod:{serializedName:"httpMethod",type:{name:"String"}},hashedMessage:{serializedName:"hashedMessage",type:{name:"String"}},httpErrorCode:{serializedName:"httpErrorCode",type:{name:"String"}}}}},StorageSyncInnerErrorDetails={type:{name:"Composite",className:"StorageSyncInnerErrorDetails",modelProperties:{callStack:{serializedName:"callStack",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}},innerException:{serializedName:"innerException",type:{name:"String"}},innerExceptionCallStack:{serializedName:"innerExceptionCallStack",type:{name:"String"}}}}},CheckNameAvailabilityParameters={type:{name:"Composite",className:"CheckNameAvailabilityParameters",modelProperties:{name:{serializedName:"name",required:!0,type:{name:"String"}},type:{defaultValue:"Microsoft.StorageSync/storageSyncServices",isConstant:!0,serializedName:"type",type:{name:"String"}}}}},CheckNameAvailabilityResult={type:{name:"Composite",className:"CheckNameAvailabilityResult",modelProperties:{nameAvailable:{serializedName:"nameAvailable",readOnly:!0,type:{name:"Boolean"}},reason:{serializedName:"reason",readOnly:!0,type:{name:"Enum",allowedValues:["Invalid","AlreadyExists"]}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}}}}},StorageSyncServiceCreateParameters={type:{name:"Composite",className:"StorageSyncServiceCreateParameters",modelProperties:{location:{serializedName:"location",required:!0,type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},incomingTrafficPolicy:{serializedName:"properties.incomingTrafficPolicy",type:{name:"String"}}}}},PrivateEndpoint={type:{name:"Composite",className:"PrivateEndpoint",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}}}}},PrivateLinkServiceConnectionState={type:{name:"Composite",className:"PrivateLinkServiceConnectionState",modelProperties:{status:{serializedName:"status",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}},actionsRequired:{serializedName:"actionsRequired",type:{name:"String"}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}}}}},StorageSyncServiceUpdateParameters={type:{name:"Composite",className:"StorageSyncServiceUpdateParameters",modelProperties:{tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},incomingTrafficPolicy:{serializedName:"properties.incomingTrafficPolicy",type:{name:"String"}}}}},StorageSyncServiceArray={type:{name:"Composite",className:"StorageSyncServiceArray",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"StorageSyncService"}}}}}}},PrivateLinkResourceListResult={type:{name:"Composite",className:"PrivateLinkResourceListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateLinkResource"}}}}}}},PrivateEndpointConnectionListResult={type:{name:"Composite",className:"PrivateEndpointConnectionListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}}}}},SyncGroupArray={type:{name:"Composite",className:"SyncGroupArray",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"SyncGroup"}}}}}}},CloudEndpointChangeEnumerationStatus={type:{name:"Composite",className:"CloudEndpointChangeEnumerationStatus",modelProperties:{lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},lastEnumerationStatus:{serializedName:"lastEnumerationStatus",type:{name:"Composite",className:"CloudEndpointLastChangeEnumerationStatus"}},activity:{serializedName:"activity",type:{name:"Composite",className:"CloudEndpointChangeEnumerationActivity"}}}}},CloudEndpointLastChangeEnumerationStatus={type:{name:"Composite",className:"CloudEndpointLastChangeEnumerationStatus",modelProperties:{startedTimestamp:{serializedName:"startedTimestamp",readOnly:!0,type:{name:"DateTime"}},completedTimestamp:{serializedName:"completedTimestamp",readOnly:!0,type:{name:"DateTime"}},namespaceFilesCount:{constraints:{InclusiveMinimum:0},serializedName:"namespaceFilesCount",readOnly:!0,type:{name:"Number"}},namespaceDirectoriesCount:{constraints:{InclusiveMinimum:0},serializedName:"namespaceDirectoriesCount",readOnly:!0,type:{name:"Number"}},namespaceSizeBytes:{constraints:{InclusiveMinimum:0},serializedName:"namespaceSizeBytes",readOnly:!0,type:{name:"Number"}},nextRunTimestamp:{serializedName:"nextRunTimestamp",readOnly:!0,type:{name:"DateTime"}}}}},CloudEndpointChangeEnumerationActivity={type:{name:"Composite",className:"CloudEndpointChangeEnumerationActivity",modelProperties:{lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},operationState:{serializedName:"operationState",readOnly:!0,type:{name:"String"}},statusCode:{serializedName:"statusCode",readOnly:!0,type:{name:"Number"}},startedTimestamp:{serializedName:"startedTimestamp",readOnly:!0,type:{name:"DateTime"}},processedFilesCount:{constraints:{InclusiveMinimum:0},serializedName:"processedFilesCount",readOnly:!0,type:{name:"Number"}},processedDirectoriesCount:{constraints:{InclusiveMinimum:0},serializedName:"processedDirectoriesCount",readOnly:!0,type:{name:"Number"}},totalFilesCount:{constraints:{InclusiveMinimum:0},serializedName:"totalFilesCount",readOnly:!0,type:{name:"Number"}},totalDirectoriesCount:{constraints:{InclusiveMinimum:0},serializedName:"totalDirectoriesCount",readOnly:!0,type:{name:"Number"}},totalSizeBytes:{constraints:{InclusiveMinimum:0},serializedName:"totalSizeBytes",readOnly:!0,type:{name:"Number"}},progressPercent:{constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"progressPercent",readOnly:!0,type:{name:"Number"}},minutesRemaining:{constraints:{InclusiveMinimum:0},serializedName:"minutesRemaining",readOnly:!0,type:{name:"Number"}},totalCountsState:{serializedName:"totalCountsState",readOnly:!0,type:{name:"String"}},deletesProgressPercent:{constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"deletesProgressPercent",readOnly:!0,type:{name:"Number"}}}}},CloudEndpointArray={type:{name:"Composite",className:"CloudEndpointArray",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"CloudEndpoint"}}}}}}},BackupRequest={type:{name:"Composite",className:"BackupRequest",modelProperties:{azureFileShare:{serializedName:"azureFileShare",type:{name:"String"}}}}},PostBackupResponse={type:{name:"Composite",className:"PostBackupResponse",modelProperties:{cloudEndpointName:{serializedName:"backupMetadata.cloudEndpointName",readOnly:!0,type:{name:"String"}}}}},PreRestoreRequest={type:{name:"Composite",className:"PreRestoreRequest",modelProperties:{partition:{serializedName:"partition",type:{name:"String"}},replicaGroup:{serializedName:"replicaGroup",type:{name:"String"}},requestId:{serializedName:"requestId",type:{name:"String"}},azureFileShareUri:{serializedName:"azureFileShareUri",type:{name:"String"}},status:{serializedName:"status",type:{name:"String"}},sourceAzureFileShareUri:{serializedName:"sourceAzureFileShareUri",type:{name:"String"}},backupMetadataPropertyBag:{serializedName:"backupMetadataPropertyBag",type:{name:"String"}},restoreFileSpec:{serializedName:"restoreFileSpec",type:{name:"Sequence",element:{type:{name:"Composite",className:"RestoreFileSpec"}}}},pauseWaitForSyncDrainTimePeriodInSeconds:{serializedName:"pauseWaitForSyncDrainTimePeriodInSeconds",type:{name:"Number"}}}}},RestoreFileSpec={type:{name:"Composite",className:"RestoreFileSpec",modelProperties:{path:{serializedName:"path",type:{name:"String"}},isdir:{serializedName:"isdir",type:{name:"Boolean"}}}}},PostRestoreRequest={type:{name:"Composite",className:"PostRestoreRequest",modelProperties:{partition:{serializedName:"partition",type:{name:"String"}},replicaGroup:{serializedName:"replicaGroup",type:{name:"String"}},requestId:{serializedName:"requestId",type:{name:"String"}},azureFileShareUri:{serializedName:"azureFileShareUri",type:{name:"String"}},status:{serializedName:"status",type:{name:"String"}},sourceAzureFileShareUri:{serializedName:"sourceAzureFileShareUri",type:{name:"String"}},failedFileList:{serializedName:"failedFileList",type:{name:"String"}},restoreFileSpec:{serializedName:"restoreFileSpec",type:{name:"Sequence",element:{type:{name:"Composite",className:"RestoreFileSpec"}}}}}}},TriggerChangeDetectionParameters={type:{name:"Composite",className:"TriggerChangeDetectionParameters",modelProperties:{directoryPath:{serializedName:"directoryPath",type:{name:"String"}},changeDetectionMode:{serializedName:"changeDetectionMode",type:{name:"String"}},paths:{serializedName:"paths",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},ServerEndpointSyncStatus={type:{name:"Composite",className:"ServerEndpointSyncStatus",modelProperties:{downloadHealth:{serializedName:"downloadHealth",readOnly:!0,type:{name:"String"}},uploadHealth:{serializedName:"uploadHealth",readOnly:!0,type:{name:"String"}},combinedHealth:{serializedName:"combinedHealth",readOnly:!0,type:{name:"String"}},syncActivity:{serializedName:"syncActivity",readOnly:!0,type:{name:"String"}},totalPersistentFilesNotSyncingCount:{constraints:{InclusiveMinimum:0},serializedName:"totalPersistentFilesNotSyncingCount",readOnly:!0,type:{name:"Number"}},lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},uploadStatus:{serializedName:"uploadStatus",type:{name:"Composite",className:"ServerEndpointSyncSessionStatus"}},downloadStatus:{serializedName:"downloadStatus",type:{name:"Composite",className:"ServerEndpointSyncSessionStatus"}},uploadActivity:{serializedName:"uploadActivity",type:{name:"Composite",className:"ServerEndpointSyncActivityStatus"}},downloadActivity:{serializedName:"downloadActivity",type:{name:"Composite",className:"ServerEndpointSyncActivityStatus"}},offlineDataTransferStatus:{serializedName:"offlineDataTransferStatus",readOnly:!0,type:{name:"String"}},backgroundDataDownloadActivity:{serializedName:"backgroundDataDownloadActivity",type:{name:"Composite",className:"ServerEndpointBackgroundDataDownloadActivity"}}}}},ServerEndpointSyncSessionStatus={type:{name:"Composite",className:"ServerEndpointSyncSessionStatus",modelProperties:{lastSyncResult:{serializedName:"lastSyncResult",readOnly:!0,type:{name:"Number"}},lastSyncTimestamp:{serializedName:"lastSyncTimestamp",readOnly:!0,type:{name:"DateTime"}},lastSyncSuccessTimestamp:{serializedName:"lastSyncSuccessTimestamp",readOnly:!0,type:{name:"DateTime"}},lastSyncPerItemErrorCount:{constraints:{InclusiveMinimum:0},serializedName:"lastSyncPerItemErrorCount",readOnly:!0,type:{name:"Number"}},persistentFilesNotSyncingCount:{constraints:{InclusiveMinimum:0},serializedName:"persistentFilesNotSyncingCount",readOnly:!0,type:{name:"Number"}},transientFilesNotSyncingCount:{constraints:{InclusiveMinimum:0},serializedName:"transientFilesNotSyncingCount",readOnly:!0,type:{name:"Number"}},filesNotSyncingErrors:{serializedName:"filesNotSyncingErrors",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ServerEndpointFilesNotSyncingError"}}}},lastSyncMode:{serializedName:"lastSyncMode",readOnly:!0,type:{name:"String"}}}}},ServerEndpointFilesNotSyncingError={type:{name:"Composite",className:"ServerEndpointFilesNotSyncingError",modelProperties:{errorCode:{serializedName:"errorCode",readOnly:!0,type:{name:"Number"}},persistentCount:{constraints:{InclusiveMinimum:0},serializedName:"persistentCount",readOnly:!0,type:{name:"Number"}},transientCount:{constraints:{InclusiveMinimum:0},serializedName:"transientCount",readOnly:!0,type:{name:"Number"}}}}},ServerEndpointSyncActivityStatus={type:{name:"Composite",className:"ServerEndpointSyncActivityStatus",modelProperties:{timestamp:{serializedName:"timestamp",readOnly:!0,type:{name:"DateTime"}},perItemErrorCount:{constraints:{InclusiveMinimum:0},serializedName:"perItemErrorCount",readOnly:!0,type:{name:"Number"}},appliedItemCount:{constraints:{InclusiveMinimum:0},serializedName:"appliedItemCount",readOnly:!0,type:{name:"Number"}},totalItemCount:{constraints:{InclusiveMinimum:0},serializedName:"totalItemCount",readOnly:!0,type:{name:"Number"}},appliedBytes:{constraints:{InclusiveMinimum:0},serializedName:"appliedBytes",readOnly:!0,type:{name:"Number"}},totalBytes:{constraints:{InclusiveMinimum:0},serializedName:"totalBytes",readOnly:!0,type:{name:"Number"}},syncMode:{serializedName:"syncMode",readOnly:!0,type:{name:"String"}},sessionMinutesRemaining:{constraints:{InclusiveMinimum:0},serializedName:"sessionMinutesRemaining",readOnly:!0,type:{name:"Number"}}}}},ServerEndpointBackgroundDataDownloadActivity={type:{name:"Composite",className:"ServerEndpointBackgroundDataDownloadActivity",modelProperties:{timestamp:{serializedName:"timestamp",readOnly:!0,type:{name:"DateTime"}},startedTimestamp:{serializedName:"startedTimestamp",readOnly:!0,type:{name:"DateTime"}},percentProgress:{constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"percentProgress",readOnly:!0,type:{name:"Number"}},downloadedBytes:{constraints:{InclusiveMinimum:0},serializedName:"downloadedBytes",readOnly:!0,type:{name:"Number"}}}}},ServerEndpointCloudTieringStatus={type:{name:"Composite",className:"ServerEndpointCloudTieringStatus",modelProperties:{lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},health:{serializedName:"health",readOnly:!0,type:{name:"String"}},healthLastUpdatedTimestamp:{serializedName:"healthLastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},lastCloudTieringResult:{serializedName:"lastCloudTieringResult",readOnly:!0,type:{name:"Number"}},lastSuccessTimestamp:{serializedName:"lastSuccessTimestamp",readOnly:!0,type:{name:"DateTime"}},spaceSavings:{serializedName:"spaceSavings",type:{name:"Composite",className:"CloudTieringSpaceSavings"}},cachePerformance:{serializedName:"cachePerformance",type:{name:"Composite",className:"CloudTieringCachePerformance"}},filesNotTiering:{serializedName:"filesNotTiering",type:{name:"Composite",className:"CloudTieringFilesNotTiering"}},volumeFreeSpacePolicyStatus:{serializedName:"volumeFreeSpacePolicyStatus",type:{name:"Composite",className:"CloudTieringVolumeFreeSpacePolicyStatus"}},datePolicyStatus:{serializedName:"datePolicyStatus",type:{name:"Composite",className:"CloudTieringDatePolicyStatus"}}}}},CloudTieringSpaceSavings={type:{name:"Composite",className:"CloudTieringSpaceSavings",modelProperties:{lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},volumeSizeBytes:{constraints:{InclusiveMinimum:0},serializedName:"volumeSizeBytes",readOnly:!0,type:{name:"Number"}},totalSizeCloudBytes:{constraints:{InclusiveMinimum:0},serializedName:"totalSizeCloudBytes",readOnly:!0,type:{name:"Number"}},cachedSizeBytes:{constraints:{InclusiveMinimum:0},serializedName:"cachedSizeBytes",readOnly:!0,type:{name:"Number"}},spaceSavingsPercent:{constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"spaceSavingsPercent",readOnly:!0,type:{name:"Number"}},spaceSavingsBytes:{constraints:{InclusiveMinimum:0},serializedName:"spaceSavingsBytes",readOnly:!0,type:{name:"Number"}}}}},CloudTieringCachePerformance={type:{name:"Composite",className:"CloudTieringCachePerformance",modelProperties:{lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},cacheHitBytes:{constraints:{InclusiveMinimum:0},serializedName:"cacheHitBytes",readOnly:!0,type:{name:"Number"}},cacheMissBytes:{constraints:{InclusiveMinimum:0},serializedName:"cacheMissBytes",readOnly:!0,type:{name:"Number"}},cacheHitBytesPercent:{constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"cacheHitBytesPercent",readOnly:!0,type:{name:"Number"}}}}},CloudTieringFilesNotTiering={type:{name:"Composite",className:"CloudTieringFilesNotTiering",modelProperties:{lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},totalFileCount:{constraints:{InclusiveMinimum:0},serializedName:"totalFileCount",readOnly:!0,type:{name:"Number"}},errors:{serializedName:"errors",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"FilesNotTieringError"}}}}}}},FilesNotTieringError={type:{name:"Composite",className:"FilesNotTieringError",modelProperties:{errorCode:{serializedName:"errorCode",readOnly:!0,type:{name:"Number"}},fileCount:{constraints:{InclusiveMinimum:0},serializedName:"fileCount",readOnly:!0,type:{name:"Number"}}}}},CloudTieringVolumeFreeSpacePolicyStatus={type:{name:"Composite",className:"CloudTieringVolumeFreeSpacePolicyStatus",modelProperties:{lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},effectiveVolumeFreeSpacePolicy:{constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"effectiveVolumeFreeSpacePolicy",readOnly:!0,type:{name:"Number"}},currentVolumeFreeSpacePercent:{constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"currentVolumeFreeSpacePercent",readOnly:!0,type:{name:"Number"}}}}},CloudTieringDatePolicyStatus={type:{name:"Composite",className:"CloudTieringDatePolicyStatus",modelProperties:{lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},tieredFilesMostRecentAccessTimestamp:{serializedName:"tieredFilesMostRecentAccessTimestamp",readOnly:!0,type:{name:"DateTime"}}}}},ServerEndpointRecallStatus={type:{name:"Composite",className:"ServerEndpointRecallStatus",modelProperties:{lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},totalRecallErrorsCount:{constraints:{InclusiveMinimum:0},serializedName:"totalRecallErrorsCount",readOnly:!0,type:{name:"Number"}},recallErrors:{serializedName:"recallErrors",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ServerEndpointRecallError"}}}}}}},ServerEndpointRecallError={type:{name:"Composite",className:"ServerEndpointRecallError",modelProperties:{errorCode:{serializedName:"errorCode",readOnly:!0,type:{name:"Number"}},count:{constraints:{InclusiveMinimum:0},serializedName:"count",readOnly:!0,type:{name:"Number"}}}}},ServerEndpointUpdateParameters={type:{name:"Composite",className:"ServerEndpointUpdateParameters",modelProperties:{cloudTiering:{serializedName:"properties.cloudTiering",type:{name:"String"}},volumeFreeSpacePercent:{constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"properties.volumeFreeSpacePercent",type:{name:"Number"}},tierFilesOlderThanDays:{constraints:{InclusiveMaximum:2147483647,InclusiveMinimum:0},serializedName:"properties.tierFilesOlderThanDays",type:{name:"Number"}},offlineDataTransfer:{serializedName:"properties.offlineDataTransfer",type:{name:"String"}},offlineDataTransferShareName:{serializedName:"properties.offlineDataTransferShareName",type:{name:"String"}},localCacheMode:{serializedName:"properties.localCacheMode",type:{name:"String"}}}}},ServerEndpointArray={type:{name:"Composite",className:"ServerEndpointArray",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServerEndpoint"}}}}}}},RecallActionParameters={type:{name:"Composite",className:"RecallActionParameters",modelProperties:{pattern:{serializedName:"pattern",type:{name:"String"}},recallPath:{serializedName:"recallPath",type:{name:"String"}}}}},RegisteredServerArray={type:{name:"Composite",className:"RegisteredServerArray",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"RegisteredServer"}}}}}}},TriggerRolloverRequest={type:{name:"Composite",className:"TriggerRolloverRequest",modelProperties:{serverCertificate:{serializedName:"serverCertificate",type:{name:"String"}}}}},WorkflowArray={type:{name:"Composite",className:"WorkflowArray",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Workflow"}}}}}}},OperationStatus={type:{name:"Composite",className:"OperationStatus",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},status:{serializedName:"status",readOnly:!0,type:{name:"String"}},startTime:{serializedName:"startTime",readOnly:!0,type:{name:"DateTime"}},endTime:{serializedName:"endTime",readOnly:!0,type:{name:"DateTime"}},error:{serializedName:"error",type:{name:"Composite",className:"StorageSyncApiError"}}}}},LocationOperationStatus={type:{name:"Composite",className:"LocationOperationStatus",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},status:{serializedName:"status",readOnly:!0,type:{name:"String"}},startTime:{serializedName:"startTime",readOnly:!0,type:{name:"DateTime"}},endTime:{serializedName:"endTime",readOnly:!0,type:{name:"DateTime"}},error:{serializedName:"error",type:{name:"Composite",className:"StorageSyncApiError"}},percentComplete:{serializedName:"percentComplete",readOnly:!0,type:{name:"Number"}}}}},SubscriptionState={type:{name:"Composite",className:"SubscriptionState",modelProperties:{state:{serializedName:"state",type:{name:"String"}},istransitioning:{serializedName:"istransitioning",readOnly:!0,type:{name:"Boolean"}},properties:{serializedName:"properties",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},ResourcesMoveInfo={type:{name:"Composite",className:"ResourcesMoveInfo",modelProperties:{targetResourceGroup:{serializedName:"targetResourceGroup",type:{name:"String"}},resources:{serializedName:"resources",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},OperationDisplayResource={type:{name:"Composite",className:"OperationDisplayResource",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}}}}},PrivateEndpointConnection={type:{name:"Composite",className:"PrivateEndpointConnection",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{privateEndpoint:{serializedName:"properties.privateEndpoint",type:{name:"Composite",className:"PrivateEndpoint"}},privateLinkServiceConnectionState:{serializedName:"properties.privateLinkServiceConnectionState",type:{name:"Composite",className:"PrivateLinkServiceConnectionState"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}}})}},TrackedResource={type:{name:"Composite",className:"TrackedResource",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},location:{serializedName:"location",required:!0,type:{name:"String"}}})}},PrivateLinkResource={type:{name:"Composite",className:"PrivateLinkResource",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{groupId:{serializedName:"properties.groupId",readOnly:!0,type:{name:"String"}},requiredMembers:{serializedName:"properties.requiredMembers",readOnly:!0,type:{name:"Sequence",element:{type:{name:"String"}}}},requiredZoneNames:{serializedName:"properties.requiredZoneNames",type:{name:"Sequence",element:{type:{name:"String"}}}}})}},ProxyResource={type:{name:"Composite",className:"ProxyResource",modelProperties:Object.assign({},Resource.type.modelProperties)}},StorageSyncService={type:{name:"Composite",className:"StorageSyncService",modelProperties:Object.assign(Object.assign({},TrackedResource.type.modelProperties),{incomingTrafficPolicy:{serializedName:"properties.incomingTrafficPolicy",type:{name:"String"}},storageSyncServiceStatus:{serializedName:"properties.storageSyncServiceStatus",readOnly:!0,type:{name:"Number"}},storageSyncServiceUid:{serializedName:"properties.storageSyncServiceUid",readOnly:!0,type:{name:"String"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},lastWorkflowId:{serializedName:"properties.lastWorkflowId",readOnly:!0,type:{name:"String"}},lastOperationName:{serializedName:"properties.lastOperationName",readOnly:!0,type:{name:"String"}},privateEndpointConnections:{serializedName:"properties.privateEndpointConnections",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}}})}},SyncGroup={type:{name:"Composite",className:"SyncGroup",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{uniqueId:{serializedName:"properties.uniqueId",readOnly:!0,type:{name:"String"}},syncGroupStatus:{serializedName:"properties.syncGroupStatus",readOnly:!0,type:{name:"String"}}})}},SyncGroupCreateParameters={type:{name:"Composite",className:"SyncGroupCreateParameters",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Dictionary",value:{type:{name:"any"}}}}})}},CloudEndpointCreateParameters={type:{name:"Composite",className:"CloudEndpointCreateParameters",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{storageAccountResourceId:{serializedName:"properties.storageAccountResourceId",type:{name:"String"}},azureFileShareName:{serializedName:"properties.azureFileShareName",type:{name:"String"}},storageAccountTenantId:{serializedName:"properties.storageAccountTenantId",type:{name:"String"}},friendlyName:{serializedName:"properties.friendlyName",type:{name:"String"}}})}},CloudEndpoint={type:{name:"Composite",className:"CloudEndpoint",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{storageAccountResourceId:{serializedName:"properties.storageAccountResourceId",type:{name:"String"}},azureFileShareName:{serializedName:"properties.azureFileShareName",type:{name:"String"}},storageAccountTenantId:{serializedName:"properties.storageAccountTenantId",type:{name:"String"}},partnershipId:{serializedName:"properties.partnershipId",type:{name:"String"}},friendlyName:{serializedName:"properties.friendlyName",type:{name:"String"}},backupEnabled:{serializedName:"properties.backupEnabled",readOnly:!0,type:{name:"String"}},provisioningState:{serializedName:"properties.provisioningState",type:{name:"String"}},lastWorkflowId:{serializedName:"properties.lastWorkflowId",type:{name:"String"}},lastOperationName:{serializedName:"properties.lastOperationName",type:{name:"String"}},changeEnumerationStatus:{serializedName:"properties.changeEnumerationStatus",type:{name:"Composite",className:"CloudEndpointChangeEnumerationStatus"}}})}},ServerEndpointCreateParameters={type:{name:"Composite",className:"ServerEndpointCreateParameters",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{serverLocalPath:{serializedName:"properties.serverLocalPath",type:{name:"String"}},cloudTiering:{serializedName:"properties.cloudTiering",type:{name:"String"}},volumeFreeSpacePercent:{defaultValue:20,constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"properties.volumeFreeSpacePercent",type:{name:"Number"}},tierFilesOlderThanDays:{constraints:{InclusiveMaximum:2147483647,InclusiveMinimum:0},serializedName:"properties.tierFilesOlderThanDays",type:{name:"Number"}},friendlyName:{serializedName:"properties.friendlyName",type:{name:"String"}},serverResourceId:{serializedName:"properties.serverResourceId",type:{name:"String"}},offlineDataTransfer:{serializedName:"properties.offlineDataTransfer",type:{name:"String"}},offlineDataTransferShareName:{serializedName:"properties.offlineDataTransferShareName",type:{name:"String"}},initialDownloadPolicy:{serializedName:"properties.initialDownloadPolicy",type:{name:"String"}},localCacheMode:{serializedName:"properties.localCacheMode",type:{name:"String"}},initialUploadPolicy:{serializedName:"properties.initialUploadPolicy",type:{name:"String"}}})}},ServerEndpoint={type:{name:"Composite",className:"ServerEndpoint",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{serverLocalPath:{serializedName:"properties.serverLocalPath",type:{name:"String"}},cloudTiering:{serializedName:"properties.cloudTiering",type:{name:"String"}},volumeFreeSpacePercent:{constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"properties.volumeFreeSpacePercent",type:{name:"Number"}},tierFilesOlderThanDays:{constraints:{InclusiveMaximum:2147483647,InclusiveMinimum:0},serializedName:"properties.tierFilesOlderThanDays",type:{name:"Number"}},friendlyName:{serializedName:"properties.friendlyName",type:{name:"String"}},serverResourceId:{serializedName:"properties.serverResourceId",type:{name:"String"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},lastWorkflowId:{serializedName:"properties.lastWorkflowId",readOnly:!0,type:{name:"String"}},lastOperationName:{serializedName:"properties.lastOperationName",readOnly:!0,type:{name:"String"}},syncStatus:{serializedName:"properties.syncStatus",type:{name:"Composite",className:"ServerEndpointSyncStatus"}},offlineDataTransfer:{serializedName:"properties.offlineDataTransfer",type:{name:"String"}},offlineDataTransferStorageAccountResourceId:{serializedName:"properties.offlineDataTransferStorageAccountResourceId",readOnly:!0,type:{name:"String"}},offlineDataTransferStorageAccountTenantId:{serializedName:"properties.offlineDataTransferStorageAccountTenantId",readOnly:!0,type:{name:"String"}},offlineDataTransferShareName:{serializedName:"properties.offlineDataTransferShareName",type:{name:"String"}},cloudTieringStatus:{serializedName:"properties.cloudTieringStatus",type:{name:"Composite",className:"ServerEndpointCloudTieringStatus"}},recallStatus:{serializedName:"properties.recallStatus",type:{name:"Composite",className:"ServerEndpointRecallStatus"}},initialDownloadPolicy:{serializedName:"properties.initialDownloadPolicy",type:{name:"String"}},localCacheMode:{serializedName:"properties.localCacheMode",type:{name:"String"}},initialUploadPolicy:{serializedName:"properties.initialUploadPolicy",type:{name:"String"}},serverName:{serializedName:"properties.serverName",readOnly:!0,type:{name:"String"}}})}},RegisteredServer={type:{name:"Composite",className:"RegisteredServer",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{serverCertificate:{serializedName:"properties.serverCertificate",type:{name:"String"}},agentVersion:{serializedName:"properties.agentVersion",type:{name:"String"}},agentVersionStatus:{serializedName:"properties.agentVersionStatus",readOnly:!0,type:{name:"String"}},agentVersionExpirationDate:{serializedName:"properties.agentVersionExpirationDate",readOnly:!0,type:{name:"DateTime"}},serverOSVersion:{serializedName:"properties.serverOSVersion",type:{name:"String"}},serverManagementErrorCode:{serializedName:"properties.serverManagementErrorCode",type:{name:"Number"}},lastHeartBeat:{serializedName:"properties.lastHeartBeat",type:{name:"String"}},provisioningState:{serializedName:"properties.provisioningState",type:{name:"String"}},serverRole:{serializedName:"properties.serverRole",type:{name:"String"}},clusterId:{serializedName:"properties.clusterId",type:{name:"String"}},clusterName:{serializedName:"properties.clusterName",type:{name:"String"}},serverId:{serializedName:"properties.serverId",type:{name:"String"}},storageSyncServiceUid:{serializedName:"properties.storageSyncServiceUid",type:{name:"String"}},lastWorkflowId:{serializedName:"properties.lastWorkflowId",type:{name:"String"}},lastOperationName:{serializedName:"properties.lastOperationName",type:{name:"String"}},discoveryEndpointUri:{serializedName:"properties.discoveryEndpointUri",type:{name:"String"}},resourceLocation:{serializedName:"properties.resourceLocation",type:{name:"String"}},serviceLocation:{serializedName:"properties.serviceLocation",type:{name:"String"}},friendlyName:{serializedName:"properties.friendlyName",type:{name:"String"}},managementEndpointUri:{serializedName:"properties.managementEndpointUri",type:{name:"String"}},monitoringEndpointUri:{serializedName:"properties.monitoringEndpointUri",type:{name:"String"}},monitoringConfiguration:{serializedName:"properties.monitoringConfiguration",type:{name:"String"}},serverName:{serializedName:"properties.serverName",readOnly:!0,type:{name:"String"}}})}},RegisteredServerCreateParameters={type:{name:"Composite",className:"RegisteredServerCreateParameters",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{serverCertificate:{serializedName:"properties.serverCertificate",type:{name:"String"}},agentVersion:{serializedName:"properties.agentVersion",type:{name:"String"}},serverOSVersion:{serializedName:"properties.serverOSVersion",type:{name:"String"}},lastHeartBeat:{serializedName:"properties.lastHeartBeat",type:{name:"String"}},serverRole:{serializedName:"properties.serverRole",type:{name:"String"}},clusterId:{serializedName:"properties.clusterId",type:{name:"String"}},clusterName:{serializedName:"properties.clusterName",type:{name:"String"}},serverId:{serializedName:"properties.serverId",type:{name:"String"}},friendlyName:{serializedName:"properties.friendlyName",type:{name:"String"}}})}},Workflow={type:{name:"Composite",className:"Workflow",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{lastStepName:{serializedName:"properties.lastStepName",type:{name:"String"}},status:{serializedName:"properties.status",type:{name:"String"}},operation:{serializedName:"properties.operation",type:{name:"String"}},steps:{serializedName:"properties.steps",type:{name:"String"}},lastOperationId:{serializedName:"properties.lastOperationId",type:{name:"String"}},commandName:{serializedName:"properties.commandName",readOnly:!0,type:{name:"String"}},createdTimestamp:{serializedName:"properties.createdTimestamp",readOnly:!0,type:{name:"DateTime"}},lastStatusTimestamp:{serializedName:"properties.lastStatusTimestamp",readOnly:!0,type:{name:"DateTime"}}})}},OperationsListHeaders={type:{name:"Composite",className:"OperationsListHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},OperationsListNextHeaders={type:{name:"Composite",className:"OperationsListNextHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},StorageSyncServicesCreateHeaders={type:{name:"Composite",className:"StorageSyncServicesCreateHeaders",modelProperties:{azureAsyncOperation:{serializedName:"azure-asyncoperation",type:{name:"String"}},location:{serializedName:"location",type:{name:"String"}},retryAfter:{serializedName:"retry-after",type:{name:"String"}},xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},StorageSyncServicesGetHeaders={type:{name:"Composite",className:"StorageSyncServicesGetHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},StorageSyncServicesUpdateHeaders={type:{name:"Composite",className:"StorageSyncServicesUpdateHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},StorageSyncServicesDeleteHeaders={type:{name:"Composite",className:"StorageSyncServicesDeleteHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},StorageSyncServicesListByResourceGroupHeaders={type:{name:"Composite",className:"StorageSyncServicesListByResourceGroupHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},StorageSyncServicesListBySubscriptionHeaders={type:{name:"Composite",className:"StorageSyncServicesListBySubscriptionHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},PrivateEndpointConnectionsCreateHeaders={type:{name:"Composite",className:"PrivateEndpointConnectionsCreateHeaders",modelProperties:{azureAsyncOperation:{serializedName:"azure-asyncoperation",type:{name:"String"}},location:{serializedName:"location",type:{name:"String"}},retryAfter:{serializedName:"retry-after",type:{name:"String"}},xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},PrivateEndpointConnectionsDeleteHeaders={type:{name:"Composite",className:"PrivateEndpointConnectionsDeleteHeaders",modelProperties:{azureAsyncOperation:{serializedName:"azure-asyncoperation",type:{name:"String"}},location:{serializedName:"location",type:{name:"String"}},retryAfter:{serializedName:"retry-after",type:{name:"String"}},xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},PrivateEndpointConnectionsListByStorageSyncServiceHeaders={type:{name:"Composite",className:"PrivateEndpointConnectionsListByStorageSyncServiceHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},SyncGroupsListByStorageSyncServiceHeaders={type:{name:"Composite",className:"SyncGroupsListByStorageSyncServiceHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},SyncGroupsCreateHeaders={type:{name:"Composite",className:"SyncGroupsCreateHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},SyncGroupsGetHeaders={type:{name:"Composite",className:"SyncGroupsGetHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},SyncGroupsDeleteHeaders={type:{name:"Composite",className:"SyncGroupsDeleteHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsCreateHeaders={type:{name:"Composite",className:"CloudEndpointsCreateHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsGetHeaders={type:{name:"Composite",className:"CloudEndpointsGetHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsDeleteHeaders={type:{name:"Composite",className:"CloudEndpointsDeleteHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsListBySyncGroupHeaders={type:{name:"Composite",className:"CloudEndpointsListBySyncGroupHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsPreBackupHeaders={type:{name:"Composite",className:"CloudEndpointsPreBackupHeaders",modelProperties:{location:{serializedName:"location",type:{name:"String"}},xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsPostBackupHeaders={type:{name:"Composite",className:"CloudEndpointsPostBackupHeaders",modelProperties:{location:{serializedName:"location",type:{name:"String"}},xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsPreRestoreHeaders={type:{name:"Composite",className:"CloudEndpointsPreRestoreHeaders",modelProperties:{location:{serializedName:"location",type:{name:"String"}},xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsRestoreheartbeatHeaders={type:{name:"Composite",className:"CloudEndpointsRestoreheartbeatHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsPostRestoreHeaders={type:{name:"Composite",className:"CloudEndpointsPostRestoreHeaders",modelProperties:{location:{serializedName:"location",type:{name:"String"}},xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsTriggerChangeDetectionHeaders={type:{name:"Composite",className:"CloudEndpointsTriggerChangeDetectionHeaders",modelProperties:{location:{serializedName:"location",type:{name:"String"}},xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},ServerEndpointsCreateHeaders={type:{name:"Composite",className:"ServerEndpointsCreateHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},ServerEndpointsUpdateHeaders={type:{name:"Composite",className:"ServerEndpointsUpdateHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},ServerEndpointsGetHeaders={type:{name:"Composite",className:"ServerEndpointsGetHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},ServerEndpointsDeleteHeaders={type:{name:"Composite",className:"ServerEndpointsDeleteHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},ServerEndpointsListBySyncGroupHeaders={type:{name:"Composite",className:"ServerEndpointsListBySyncGroupHeaders",modelProperties:{location:{serializedName:"location",type:{name:"String"}},xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},ServerEndpointsRecallActionHeaders={type:{name:"Composite",className:"ServerEndpointsRecallActionHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},RegisteredServersListByStorageSyncServiceHeaders={type:{name:"Composite",className:"RegisteredServersListByStorageSyncServiceHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},RegisteredServersGetHeaders={type:{name:"Composite",className:"RegisteredServersGetHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},RegisteredServersCreateHeaders={type:{name:"Composite",className:"RegisteredServersCreateHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},RegisteredServersDeleteHeaders={type:{name:"Composite",className:"RegisteredServersDeleteHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},RegisteredServersTriggerRolloverHeaders={type:{name:"Composite",className:"RegisteredServersTriggerRolloverHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},WorkflowsListByStorageSyncServiceHeaders={type:{name:"Composite",className:"WorkflowsListByStorageSyncServiceHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},WorkflowsGetHeaders={type:{name:"Composite",className:"WorkflowsGetHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},WorkflowsAbortHeaders={type:{name:"Composite",className:"WorkflowsAbortHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},OperationStatusGetHeaders={type:{name:"Composite",className:"OperationStatusGetHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},MicrosoftStorageSyncLocationOperationStatusHeaders={type:{name:"Composite",className:"MicrosoftStorageSyncLocationOperationStatusHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}};var Mappers=Object.freeze({__proto__:null,BackupRequest:BackupRequest,CheckNameAvailabilityParameters:CheckNameAvailabilityParameters,CheckNameAvailabilityResult:CheckNameAvailabilityResult,CloudEndpoint:CloudEndpoint,CloudEndpointArray:CloudEndpointArray,CloudEndpointChangeEnumerationActivity:CloudEndpointChangeEnumerationActivity,CloudEndpointChangeEnumerationStatus:CloudEndpointChangeEnumerationStatus,CloudEndpointCreateParameters:CloudEndpointCreateParameters,CloudEndpointLastChangeEnumerationStatus:CloudEndpointLastChangeEnumerationStatus,CloudEndpointsCreateHeaders:CloudEndpointsCreateHeaders,CloudEndpointsDeleteHeaders:CloudEndpointsDeleteHeaders,CloudEndpointsGetHeaders:CloudEndpointsGetHeaders,CloudEndpointsListBySyncGroupHeaders:CloudEndpointsListBySyncGroupHeaders,CloudEndpointsPostBackupHeaders:CloudEndpointsPostBackupHeaders,CloudEndpointsPostRestoreHeaders:CloudEndpointsPostRestoreHeaders,CloudEndpointsPreBackupHeaders:CloudEndpointsPreBackupHeaders,CloudEndpointsPreRestoreHeaders:CloudEndpointsPreRestoreHeaders,CloudEndpointsRestoreheartbeatHeaders:CloudEndpointsRestoreheartbeatHeaders,CloudEndpointsTriggerChangeDetectionHeaders:CloudEndpointsTriggerChangeDetectionHeaders,CloudTieringCachePerformance:CloudTieringCachePerformance,CloudTieringDatePolicyStatus:CloudTieringDatePolicyStatus,CloudTieringFilesNotTiering:CloudTieringFilesNotTiering,CloudTieringSpaceSavings:CloudTieringSpaceSavings,CloudTieringVolumeFreeSpacePolicyStatus:CloudTieringVolumeFreeSpacePolicyStatus,FilesNotTieringError:FilesNotTieringError,LocationOperationStatus:LocationOperationStatus,MicrosoftStorageSyncLocationOperationStatusHeaders:MicrosoftStorageSyncLocationOperationStatusHeaders,OperationDisplayInfo:OperationDisplayInfo,OperationDisplayResource:OperationDisplayResource,OperationEntity:OperationEntity,OperationEntityListResult:OperationEntityListResult,OperationProperties:OperationProperties,OperationResourceMetricSpecification:OperationResourceMetricSpecification,OperationResourceMetricSpecificationDimension:OperationResourceMetricSpecificationDimension,OperationResourceServiceSpecification:OperationResourceServiceSpecification,OperationStatus:OperationStatus,OperationStatusGetHeaders:OperationStatusGetHeaders,OperationsListHeaders:OperationsListHeaders,OperationsListNextHeaders:OperationsListNextHeaders,PostBackupResponse:PostBackupResponse,PostRestoreRequest:PostRestoreRequest,PreRestoreRequest:PreRestoreRequest,PrivateEndpoint:PrivateEndpoint,PrivateEndpointConnection:PrivateEndpointConnection,PrivateEndpointConnectionListResult:PrivateEndpointConnectionListResult,PrivateEndpointConnectionsCreateHeaders:PrivateEndpointConnectionsCreateHeaders,PrivateEndpointConnectionsDeleteHeaders:PrivateEndpointConnectionsDeleteHeaders,PrivateEndpointConnectionsListByStorageSyncServiceHeaders:PrivateEndpointConnectionsListByStorageSyncServiceHeaders,PrivateLinkResource:PrivateLinkResource,PrivateLinkResourceListResult:PrivateLinkResourceListResult,PrivateLinkServiceConnectionState:PrivateLinkServiceConnectionState,ProxyResource:ProxyResource,RecallActionParameters:RecallActionParameters,RegisteredServer:RegisteredServer,RegisteredServerArray:RegisteredServerArray,RegisteredServerCreateParameters:RegisteredServerCreateParameters,RegisteredServersCreateHeaders:RegisteredServersCreateHeaders,RegisteredServersDeleteHeaders:RegisteredServersDeleteHeaders,RegisteredServersGetHeaders:RegisteredServersGetHeaders,RegisteredServersListByStorageSyncServiceHeaders:RegisteredServersListByStorageSyncServiceHeaders,RegisteredServersTriggerRolloverHeaders:RegisteredServersTriggerRolloverHeaders,Resource:Resource,ResourcesMoveInfo:ResourcesMoveInfo,RestoreFileSpec:RestoreFileSpec,ServerEndpoint:ServerEndpoint,ServerEndpointArray:ServerEndpointArray,ServerEndpointBackgroundDataDownloadActivity:ServerEndpointBackgroundDataDownloadActivity,ServerEndpointCloudTieringStatus:ServerEndpointCloudTieringStatus,ServerEndpointCreateParameters:ServerEndpointCreateParameters,ServerEndpointFilesNotSyncingError:ServerEndpointFilesNotSyncingError,ServerEndpointRecallError:ServerEndpointRecallError,ServerEndpointRecallStatus:ServerEndpointRecallStatus,ServerEndpointSyncActivityStatus:ServerEndpointSyncActivityStatus,ServerEndpointSyncSessionStatus:ServerEndpointSyncSessionStatus,ServerEndpointSyncStatus:ServerEndpointSyncStatus,ServerEndpointUpdateParameters:ServerEndpointUpdateParameters,ServerEndpointsCreateHeaders:ServerEndpointsCreateHeaders,ServerEndpointsDeleteHeaders:ServerEndpointsDeleteHeaders,ServerEndpointsGetHeaders:ServerEndpointsGetHeaders,ServerEndpointsListBySyncGroupHeaders:ServerEndpointsListBySyncGroupHeaders,ServerEndpointsRecallActionHeaders:ServerEndpointsRecallActionHeaders,ServerEndpointsUpdateHeaders:ServerEndpointsUpdateHeaders,StorageSyncApiError:StorageSyncApiError,StorageSyncError:StorageSyncError,StorageSyncErrorDetails:StorageSyncErrorDetails,StorageSyncInnerErrorDetails:StorageSyncInnerErrorDetails,StorageSyncService:StorageSyncService,StorageSyncServiceArray:StorageSyncServiceArray,StorageSyncServiceCreateParameters:StorageSyncServiceCreateParameters,StorageSyncServiceUpdateParameters:StorageSyncServiceUpdateParameters,StorageSyncServicesCreateHeaders:StorageSyncServicesCreateHeaders,StorageSyncServicesDeleteHeaders:StorageSyncServicesDeleteHeaders,StorageSyncServicesGetHeaders:StorageSyncServicesGetHeaders,StorageSyncServicesListByResourceGroupHeaders:StorageSyncServicesListByResourceGroupHeaders,StorageSyncServicesListBySubscriptionHeaders:StorageSyncServicesListBySubscriptionHeaders,StorageSyncServicesUpdateHeaders:StorageSyncServicesUpdateHeaders,SubscriptionState:SubscriptionState,SyncGroup:SyncGroup,SyncGroupArray:SyncGroupArray,SyncGroupCreateParameters:SyncGroupCreateParameters,SyncGroupsCreateHeaders:SyncGroupsCreateHeaders,SyncGroupsDeleteHeaders:SyncGroupsDeleteHeaders,SyncGroupsGetHeaders:SyncGroupsGetHeaders,SyncGroupsListByStorageSyncServiceHeaders:SyncGroupsListByStorageSyncServiceHeaders,TrackedResource:TrackedResource,TriggerChangeDetectionParameters:TriggerChangeDetectionParameters,TriggerRolloverRequest:TriggerRolloverRequest,Workflow:Workflow,WorkflowArray:WorkflowArray,WorkflowsAbortHeaders:WorkflowsAbortHeaders,WorkflowsGetHeaders:WorkflowsGetHeaders,WorkflowsListByStorageSyncServiceHeaders:WorkflowsListByStorageSyncServiceHeaders});let accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2020-09-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},parameters={parameterPath:"parameters",mapper:CheckNameAvailabilityParameters},locationName={parameterPath:"locationName",mapper:{serializedName:"locationName",required:!0,type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{constraints:{MinLength:1},serializedName:"subscriptionId",required:!0,type:{name:"String"}}},parameters1={parameterPath:"parameters",mapper:StorageSyncServiceCreateParameters},resourceGroupName={parameterPath:"resourceGroupName",mapper:{constraints:{MaxLength:90,MinLength:1},serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},storageSyncServiceName={parameterPath:"storageSyncServiceName",mapper:{serializedName:"storageSyncServiceName",required:!0,type:{name:"String"}}},parameters2={parameterPath:["options","parameters"],mapper:StorageSyncServiceUpdateParameters},privateEndpointConnectionName={parameterPath:"privateEndpointConnectionName",mapper:{serializedName:"privateEndpointConnectionName",required:!0,type:{name:"String"}}},properties={parameterPath:"properties",mapper:PrivateEndpointConnection},parameters3={parameterPath:"parameters",mapper:SyncGroupCreateParameters},syncGroupName={parameterPath:"syncGroupName",mapper:{serializedName:"syncGroupName",required:!0,type:{name:"String"}}},parameters4={parameterPath:"parameters",mapper:CloudEndpointCreateParameters},cloudEndpointName={parameterPath:"cloudEndpointName",mapper:{serializedName:"cloudEndpointName",required:!0,type:{name:"String"}}},parameters5={parameterPath:"parameters",mapper:BackupRequest},parameters6={parameterPath:"parameters",mapper:PreRestoreRequest},parameters7={parameterPath:"parameters",mapper:PostRestoreRequest},parameters8={parameterPath:"parameters",mapper:TriggerChangeDetectionParameters},parameters9={parameterPath:"parameters",mapper:ServerEndpointCreateParameters},serverEndpointName={parameterPath:"serverEndpointName",mapper:{serializedName:"serverEndpointName",required:!0,type:{name:"String"}}},parameters10={parameterPath:["options","parameters"],mapper:ServerEndpointUpdateParameters},parameters11={parameterPath:"parameters",mapper:RecallActionParameters},serverId={parameterPath:"serverId",mapper:{serializedName:"serverId",required:!0,type:{name:"String"}}},parameters12={parameterPath:"parameters",mapper:RegisteredServerCreateParameters},parameters13={parameterPath:"parameters",mapper:TriggerRolloverRequest},workflowId={parameterPath:"workflowId",mapper:{serializedName:"workflowId",required:!0,type:{name:"String"}}},operationId={parameterPath:"operationId",mapper:{serializedName:"operationId",required:!0,type:{name:"String"}}};class OperationsImpl{constructor(e){this.client=e}list(r){let e=this.listPagingAll(r);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(r,e)}}}listPagingPage(i,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,r=null==s?void 0:s.continuationToken;var t;for(r||(setContinuationToken(t=(e=yield tslib.__await(this._list(i))).value||[],r=e.nextLink),yield yield tslib.__await(t));r;){e=yield tslib.__await(this._listNext(r,i)),r=e.nextLink;var a=e.value||[];setContinuationToken(a,r),yield yield tslib.__await(a)}})}listPagingAll(o){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,t;try{for(var a,i=!0,s=tslib.__asyncValues(this.listPagingPage(o));!(e=(a=yield tslib.__await(s.next())).done);i=!0){var n=a.value,i=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{i||e||!(t=s.return)||(yield tslib.__await(t.call(s)))}finally{if(r)throw r.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec)}}let serializer$a=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.StorageSync/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationEntityListResult,headersMapper:OperationsListHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$a},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationEntityListResult,headersMapper:OperationsListNextHeaders},default:{bodyMapper:StorageSyncError}},urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$a};class LroImpl{constructor(e,r,t,a=t.path,i=t.httpMethod){this.sendOperationFn=e,this.args=r,this.spec=t,this.requestPath=a,this.requestMethod=i}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(r){return tslib.__awaiter(this,void 0,void 0,function*(){var e=this.spec,e=tslib.__rest(e,["requestBody"]);return this.sendOperationFn(this.args,Object.assign(Object.assign({},e),{path:r,httpMethod:"GET"}))})}}class StorageSyncServicesImpl{constructor(e){this.client=e}listByResourceGroup(r,t){let e=this.listByResourceGroupPagingAll(r,t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByResourceGroupPagingPage(r,t,e)}}}listByResourceGroupPagingPage(r,t,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(r,t));yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(o,p){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,t;try{for(var a,i=!0,s=tslib.__asyncValues(this.listByResourceGroupPagingPage(o,p));!(e=(a=yield tslib.__await(s.next())).done);i=!0){var n=a.value,i=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{i||e||!(t=s.return)||(yield tslib.__await(t.call(s)))}finally{if(r)throw r.error}}})}listBySubscription(r){let e=this.listBySubscriptionPagingAll(r);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySubscriptionPagingPage(r,e)}}}listBySubscriptionPagingPage(r,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listBySubscription(r));yield yield tslib.__await(e.value||[])})}listBySubscriptionPagingAll(o){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,t;try{for(var a,i=!0,s=tslib.__asyncValues(this.listBySubscriptionPagingPage(o));!(e=(a=yield tslib.__await(s.next())).done);i=!0){var n=a.value,i=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{i||e||!(t=s.return)||(yield tslib.__await(t.call(s)))}finally{if(r)throw r.error}}})}checkNameAvailability(e,r,t){return this.client.sendOperationRequest({locationName:e,parameters:r,options:t},checkNameAvailabilityOperationSpec)}beginCreate(r,t,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,parameters:a,options:i},createOperationSpec$5),e=new coreLro.LroEngine(e,{resumeFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs});return yield e.poll(),e})}beginCreateAndWait(e,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreate(e,r,t,a)).pollUntilDone()})}get(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,options:t},getOperationSpec$7)}beginUpdate(r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,options:a},updateOperationSpec$1),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,r,t)).pollUntilDone()})}beginDelete(r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,options:a},deleteOperationSpec$5),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,r,t)).pollUntilDone()})}_listByResourceGroup(e,r){return this.client.sendOperationRequest({resourceGroupName:e,options:r},listByResourceGroupOperationSpec)}_listBySubscription(e){return this.client.sendOperationRequest({options:e},listBySubscriptionOperationSpec)}}let serializer$9=coreClient__namespace.createSerializer(Mappers,!1),checkNameAvailabilityOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/locations/{locationName}/checkNameAvailability",httpMethod:"POST",responses:{200:{bodyMapper:CheckNameAvailabilityResult}},requestBody:parameters,queryParameters:[apiVersion],urlParameters:[$host,locationName,subscriptionId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$9},createOperationSpec$5={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}",httpMethod:"PUT",responses:{200:{bodyMapper:StorageSyncService},201:{bodyMapper:StorageSyncService},202:{bodyMapper:StorageSyncService},204:{bodyMapper:StorageSyncService},default:{bodyMapper:StorageSyncError}},requestBody:parameters1,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$9},getOperationSpec$7={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}",httpMethod:"GET",responses:{200:{bodyMapper:StorageSyncService,headersMapper:StorageSyncServicesGetHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName],headerParameters:[accept],serializer:serializer$9},updateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:StorageSyncService,headersMapper:StorageSyncServicesUpdateHeaders},201:{bodyMapper:StorageSyncService,headersMapper:StorageSyncServicesUpdateHeaders},202:{bodyMapper:StorageSyncService,headersMapper:StorageSyncServicesUpdateHeaders},204:{bodyMapper:StorageSyncService,headersMapper:StorageSyncServicesUpdateHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters2,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$9},deleteOperationSpec$5={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}",httpMethod:"DELETE",responses:{200:{headersMapper:StorageSyncServicesDeleteHeaders},201:{headersMapper:StorageSyncServicesDeleteHeaders},202:{headersMapper:StorageSyncServicesDeleteHeaders},204:{headersMapper:StorageSyncServicesDeleteHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName],headerParameters:[accept],serializer:serializer$9},listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices",httpMethod:"GET",responses:{200:{bodyMapper:StorageSyncServiceArray,headersMapper:StorageSyncServicesListByResourceGroupHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer$9},listBySubscriptionOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/storageSyncServices",httpMethod:"GET",responses:{200:{bodyMapper:StorageSyncServiceArray,headersMapper:StorageSyncServicesListBySubscriptionHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$9};class PrivateLinkResourcesImpl{constructor(e){this.client=e}listByStorageSyncService(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,options:t},listByStorageSyncServiceOperationSpec$4)}}let serializer$8=coreClient__namespace.createSerializer(Mappers,!1),listByStorageSyncServiceOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateLinkResources",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceListResult}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName],headerParameters:[accept],serializer:serializer$8};class PrivateEndpointConnectionsImpl{constructor(e){this.client=e}listByStorageSyncService(r,t,a){let e=this.listByStorageSyncServicePagingAll(r,t,a);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByStorageSyncServicePagingPage(r,t,a,e)}}}listByStorageSyncServicePagingPage(r,t,a,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByStorageSyncService(r,t,a));yield yield tslib.__await(e.value||[])})}listByStorageSyncServicePagingAll(o,p,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,t;try{for(var a,i=!0,s=tslib.__asyncValues(this.listByStorageSyncServicePagingPage(o,p,l));!(e=(a=yield tslib.__await(s.next())).done);i=!0){var n=a.value,i=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{i||e||!(t=s.return)||(yield tslib.__await(t.call(s)))}finally{if(r)throw r.error}}})}get(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,privateEndpointConnectionName:t,options:a},getOperationSpec$6)}beginCreate(r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,privateEndpointConnectionName:a,properties:i,options:s},createOperationSpec$4),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateAndWait(e,r,t,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreate(e,r,t,a,i)).pollUntilDone()})}beginDelete(r,t,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,privateEndpointConnectionName:a,options:i},deleteOperationSpec$4),e=new coreLro.LroEngine(e,{resumeFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,r,t,a)).pollUntilDone()})}_listByStorageSyncService(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,options:t},listByStorageSyncServiceOperationSpec$3)}}let serializer$7=coreClient__namespace.createSerializer(Mappers,!1),getOperationSpec$6={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnection},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,privateEndpointConnectionName],headerParameters:[accept],serializer:serializer$7},createOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"PUT",responses:{200:{bodyMapper:PrivateEndpointConnection},201:{bodyMapper:PrivateEndpointConnection},202:{bodyMapper:PrivateEndpointConnection},204:{bodyMapper:PrivateEndpointConnection},default:{bodyMapper:StorageSyncError}},requestBody:properties,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,privateEndpointConnectionName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$7},deleteOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,privateEndpointConnectionName],headerParameters:[accept],serializer:serializer$7},listByStorageSyncServiceOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnectionListResult,headersMapper:PrivateEndpointConnectionsListByStorageSyncServiceHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName],headerParameters:[accept],serializer:serializer$7};class SyncGroupsImpl{constructor(e){this.client=e}listByStorageSyncService(r,t,a){let e=this.listByStorageSyncServicePagingAll(r,t,a);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByStorageSyncServicePagingPage(r,t,a,e)}}}listByStorageSyncServicePagingPage(r,t,a,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByStorageSyncService(r,t,a));yield yield tslib.__await(e.value||[])})}listByStorageSyncServicePagingAll(o,p,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,t;try{for(var a,i=!0,s=tslib.__asyncValues(this.listByStorageSyncServicePagingPage(o,p,l));!(e=(a=yield tslib.__await(s.next())).done);i=!0){var n=a.value,i=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{i||e||!(t=s.return)||(yield tslib.__await(t.call(s)))}finally{if(r)throw r.error}}})}_listByStorageSyncService(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,options:t},listByStorageSyncServiceOperationSpec$2)}create(e,r,t,a,i){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,syncGroupName:t,parameters:a,options:i},createOperationSpec$3)}get(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,syncGroupName:t,options:a},getOperationSpec$5)}delete(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,syncGroupName:t,options:a},deleteOperationSpec$3)}}let serializer$6=coreClient__namespace.createSerializer(Mappers,!1),listByStorageSyncServiceOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups",httpMethod:"GET",responses:{200:{bodyMapper:SyncGroupArray,headersMapper:SyncGroupsListByStorageSyncServiceHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName],headerParameters:[accept],serializer:serializer$6},createOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}",httpMethod:"PUT",responses:{200:{bodyMapper:SyncGroup,headersMapper:SyncGroupsCreateHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters3,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$6},getOperationSpec$5={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}",httpMethod:"GET",responses:{200:{bodyMapper:SyncGroup,headersMapper:SyncGroupsGetHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName],headerParameters:[accept],serializer:serializer$6},deleteOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}",httpMethod:"DELETE",responses:{200:{headersMapper:SyncGroupsDeleteHeaders},204:{},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName],headerParameters:[accept],serializer:serializer$6};class CloudEndpointsImpl{constructor(e){this.client=e}listBySyncGroup(r,t,a,i){let e=this.listBySyncGroupPagingAll(r,t,a,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySyncGroupPagingPage(r,t,a,i,e)}}}listBySyncGroupPagingPage(r,t,a,i,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listBySyncGroup(r,t,a,i));yield yield tslib.__await(e.value||[])})}listBySyncGroupPagingAll(o,p,l,d){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,t;try{for(var a,i=!0,s=tslib.__asyncValues(this.listBySyncGroupPagingPage(o,p,l,d));!(e=(a=yield tslib.__await(s.next())).done);i=!0){var n=a.value,i=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{i||e||!(t=s.return)||(yield tslib.__await(t.call(s)))}finally{if(r)throw r.error}}})}beginCreate(r,t,a,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,cloudEndpointName:i,parameters:s,options:o},createOperationSpec$2),e=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield e.poll(),e})}beginCreateAndWait(e,r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreate(e,r,t,a,i,s)).pollUntilDone()})}get(e,r,t,a,i){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,syncGroupName:t,cloudEndpointName:a,options:i},getOperationSpec$4)}beginDelete(r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,cloudEndpointName:i,options:s},deleteOperationSpec$2),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,r,t,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,r,t,a,i)).pollUntilDone()})}_listBySyncGroup(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,syncGroupName:t,options:a},listBySyncGroupOperationSpec$1)}beginPreBackup(r,t,a,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,cloudEndpointName:i,parameters:s,options:o},preBackupOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield e.poll(),e})}beginPreBackupAndWait(e,r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginPreBackup(e,r,t,a,i,s)).pollUntilDone()})}beginPostBackup(r,t,a,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,cloudEndpointName:i,parameters:s,options:o},postBackupOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield e.poll(),e})}beginPostBackupAndWait(e,r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginPostBackup(e,r,t,a,i,s)).pollUntilDone()})}beginPreRestore(r,t,a,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,cloudEndpointName:i,parameters:s,options:o},preRestoreOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield e.poll(),e})}beginPreRestoreAndWait(e,r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginPreRestore(e,r,t,a,i,s)).pollUntilDone()})}restoreheartbeat(e,r,t,a,i){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,syncGroupName:t,cloudEndpointName:a,options:i},restoreheartbeatOperationSpec)}beginPostRestore(r,t,a,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,cloudEndpointName:i,parameters:s,options:o},postRestoreOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield e.poll(),e})}beginPostRestoreAndWait(e,r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginPostRestore(e,r,t,a,i,s)).pollUntilDone()})}beginTriggerChangeDetection(r,t,a,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,cloudEndpointName:i,parameters:s,options:o},triggerChangeDetectionOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield e.poll(),e})}beginTriggerChangeDetectionAndWait(e,r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginTriggerChangeDetection(e,r,t,a,i,s)).pollUntilDone()})}}let serializer$5=coreClient__namespace.createSerializer(Mappers,!1),createOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}",httpMethod:"PUT",responses:{200:{bodyMapper:CloudEndpoint,headersMapper:CloudEndpointsCreateHeaders},201:{bodyMapper:CloudEndpoint,headersMapper:CloudEndpointsCreateHeaders},202:{bodyMapper:CloudEndpoint,headersMapper:CloudEndpointsCreateHeaders},204:{bodyMapper:CloudEndpoint,headersMapper:CloudEndpointsCreateHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters4,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$5},getOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}",httpMethod:"GET",responses:{200:{bodyMapper:CloudEndpoint,headersMapper:CloudEndpointsGetHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName],headerParameters:[accept],serializer:serializer$5},deleteOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}",httpMethod:"DELETE",responses:{200:{headersMapper:CloudEndpointsDeleteHeaders},201:{headersMapper:CloudEndpointsDeleteHeaders},202:{headersMapper:CloudEndpointsDeleteHeaders},204:{headersMapper:CloudEndpointsDeleteHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName],headerParameters:[accept],serializer:serializer$5},listBySyncGroupOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints",httpMethod:"GET",responses:{200:{bodyMapper:CloudEndpointArray,headersMapper:CloudEndpointsListBySyncGroupHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName],headerParameters:[accept],serializer:serializer$5},preBackupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/prebackup",httpMethod:"POST",responses:{200:{headersMapper:CloudEndpointsPreBackupHeaders},201:{headersMapper:CloudEndpointsPreBackupHeaders},202:{headersMapper:CloudEndpointsPreBackupHeaders},204:{headersMapper:CloudEndpointsPreBackupHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters5,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$5},postBackupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/postbackup",httpMethod:"POST",responses:{200:{bodyMapper:PostBackupResponse,headersMapper:CloudEndpointsPostBackupHeaders},201:{bodyMapper:PostBackupResponse,headersMapper:CloudEndpointsPostBackupHeaders},202:{bodyMapper:PostBackupResponse,headersMapper:CloudEndpointsPostBackupHeaders},204:{bodyMapper:PostBackupResponse,headersMapper:CloudEndpointsPostBackupHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters5,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$5},preRestoreOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/prerestore",httpMethod:"POST",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:StorageSyncError}},requestBody:parameters6,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$5},restoreheartbeatOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/restoreheartbeat",httpMethod:"POST",responses:{200:{headersMapper:CloudEndpointsRestoreheartbeatHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName],headerParameters:[accept],serializer:serializer$5},postRestoreOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/postrestore",httpMethod:"POST",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:StorageSyncError}},requestBody:parameters7,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$5},triggerChangeDetectionOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/triggerChangeDetection",httpMethod:"POST",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:StorageSyncError}},requestBody:parameters8,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$5};class ServerEndpointsImpl{constructor(e){this.client=e}listBySyncGroup(r,t,a,i){let e=this.listBySyncGroupPagingAll(r,t,a,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySyncGroupPagingPage(r,t,a,i,e)}}}listBySyncGroupPagingPage(r,t,a,i,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listBySyncGroup(r,t,a,i));yield yield tslib.__await(e.value||[])})}listBySyncGroupPagingAll(o,p,l,d){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,t;try{for(var a,i=!0,s=tslib.__asyncValues(this.listBySyncGroupPagingPage(o,p,l,d));!(e=(a=yield tslib.__await(s.next())).done);i=!0){var n=a.value,i=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{i||e||!(t=s.return)||(yield tslib.__await(t.call(s)))}finally{if(r)throw r.error}}})}beginCreate(r,t,a,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,serverEndpointName:i,parameters:s,options:o},createOperationSpec$1),e=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield e.poll(),e})}beginCreateAndWait(e,r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreate(e,r,t,a,i,s)).pollUntilDone()})}beginUpdate(r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,serverEndpointName:i,options:s},updateOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,r,t,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,r,t,a,i)).pollUntilDone()})}get(e,r,t,a,i){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,syncGroupName:t,serverEndpointName:a,options:i},getOperationSpec$3)}beginDelete(r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,serverEndpointName:i,options:s},deleteOperationSpec$1),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,r,t,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,r,t,a,i)).pollUntilDone()})}_listBySyncGroup(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,syncGroupName:t,options:a},listBySyncGroupOperationSpec)}beginRecallAction(r,t,a,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,serverEndpointName:i,parameters:s,options:o},recallActionOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield e.poll(),e})}beginRecallActionAndWait(e,r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginRecallAction(e,r,t,a,i,s)).pollUntilDone()})}}let serializer$4=coreClient__namespace.createSerializer(Mappers,!1),createOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}",httpMethod:"PUT",responses:{200:{bodyMapper:ServerEndpoint,headersMapper:ServerEndpointsCreateHeaders},201:{bodyMapper:ServerEndpoint,headersMapper:ServerEndpointsCreateHeaders},202:{bodyMapper:ServerEndpoint,headersMapper:ServerEndpointsCreateHeaders},204:{bodyMapper:ServerEndpoint,headersMapper:ServerEndpointsCreateHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters9,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,serverEndpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$4},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}",httpMethod:"PATCH",responses:{200:{bodyMapper:ServerEndpoint,headersMapper:ServerEndpointsUpdateHeaders},201:{bodyMapper:ServerEndpoint,headersMapper:ServerEndpointsUpdateHeaders},202:{bodyMapper:ServerEndpoint,headersMapper:ServerEndpointsUpdateHeaders},204:{bodyMapper:ServerEndpoint,headersMapper:ServerEndpointsUpdateHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters10,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,serverEndpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$4},getOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}",httpMethod:"GET",responses:{200:{bodyMapper:ServerEndpoint,headersMapper:ServerEndpointsGetHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,serverEndpointName],headerParameters:[accept],serializer:serializer$4},deleteOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}",httpMethod:"DELETE",responses:{200:{headersMapper:ServerEndpointsDeleteHeaders},201:{headersMapper:ServerEndpointsDeleteHeaders},202:{headersMapper:ServerEndpointsDeleteHeaders},204:{headersMapper:ServerEndpointsDeleteHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,serverEndpointName],headerParameters:[accept],serializer:serializer$4},listBySyncGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints",httpMethod:"GET",responses:{200:{bodyMapper:ServerEndpointArray,headersMapper:ServerEndpointsListBySyncGroupHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName],headerParameters:[accept],serializer:serializer$4},recallActionOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}/recallAction",httpMethod:"POST",responses:{200:{headersMapper:ServerEndpointsRecallActionHeaders},201:{headersMapper:ServerEndpointsRecallActionHeaders},202:{headersMapper:ServerEndpointsRecallActionHeaders},204:{headersMapper:ServerEndpointsRecallActionHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters11,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,serverEndpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$4};class RegisteredServersImpl{constructor(e){this.client=e}listByStorageSyncService(r,t,a){let e=this.listByStorageSyncServicePagingAll(r,t,a);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByStorageSyncServicePagingPage(r,t,a,e)}}}listByStorageSyncServicePagingPage(r,t,a,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByStorageSyncService(r,t,a));yield yield tslib.__await(e.value||[])})}listByStorageSyncServicePagingAll(o,p,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,t;try{for(var a,i=!0,s=tslib.__asyncValues(this.listByStorageSyncServicePagingPage(o,p,l));!(e=(a=yield tslib.__await(s.next())).done);i=!0){var n=a.value,i=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{i||e||!(t=s.return)||(yield tslib.__await(t.call(s)))}finally{if(r)throw r.error}}})}_listByStorageSyncService(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,options:t},listByStorageSyncServiceOperationSpec$1)}get(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,serverId:t,options:a},getOperationSpec$2)}beginCreate(r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,serverId:a,parameters:i,options:s},createOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateAndWait(e,r,t,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreate(e,r,t,a,i)).pollUntilDone()})}beginDelete(r,t,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,serverId:a,options:i},deleteOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,r,t,a)).pollUntilDone()})}beginTriggerRollover(r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,serverId:a,parameters:i,options:s},triggerRolloverOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginTriggerRolloverAndWait(e,r,t,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginTriggerRollover(e,r,t,a,i)).pollUntilDone()})}}let serializer$3=coreClient__namespace.createSerializer(Mappers,!1),listByStorageSyncServiceOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers",httpMethod:"GET",responses:{200:{bodyMapper:RegisteredServerArray,headersMapper:RegisteredServersListByStorageSyncServiceHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName],headerParameters:[accept],serializer:serializer$3},getOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}",httpMethod:"GET",responses:{200:{bodyMapper:RegisteredServer,headersMapper:RegisteredServersGetHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,serverId],headerParameters:[accept],serializer:serializer$3},createOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}",httpMethod:"PUT",responses:{200:{bodyMapper:RegisteredServer,headersMapper:RegisteredServersCreateHeaders},201:{bodyMapper:RegisteredServer,headersMapper:RegisteredServersCreateHeaders},202:{bodyMapper:RegisteredServer,headersMapper:RegisteredServersCreateHeaders},204:{bodyMapper:RegisteredServer,headersMapper:RegisteredServersCreateHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters12,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,serverId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$3},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}",httpMethod:"DELETE",responses:{200:{headersMapper:RegisteredServersDeleteHeaders},201:{headersMapper:RegisteredServersDeleteHeaders},202:{headersMapper:RegisteredServersDeleteHeaders},204:{headersMapper:RegisteredServersDeleteHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,serverId],headerParameters:[accept],serializer:serializer$3},triggerRolloverOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}/triggerRollover",httpMethod:"POST",responses:{200:{headersMapper:RegisteredServersTriggerRolloverHeaders},201:{headersMapper:RegisteredServersTriggerRolloverHeaders},202:{headersMapper:RegisteredServersTriggerRolloverHeaders},204:{headersMapper:RegisteredServersTriggerRolloverHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters13,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,serverId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$3};class WorkflowsImpl{constructor(e){this.client=e}listByStorageSyncService(r,t,a){let e=this.listByStorageSyncServicePagingAll(r,t,a);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByStorageSyncServicePagingPage(r,t,a,e)}}}listByStorageSyncServicePagingPage(r,t,a,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByStorageSyncService(r,t,a));yield yield tslib.__await(e.value||[])})}listByStorageSyncServicePagingAll(o,p,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,t;try{for(var a,i=!0,s=tslib.__asyncValues(this.listByStorageSyncServicePagingPage(o,p,l));!(e=(a=yield tslib.__await(s.next())).done);i=!0){var n=a.value,i=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{i||e||!(t=s.return)||(yield tslib.__await(t.call(s)))}finally{if(r)throw r.error}}})}_listByStorageSyncService(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,options:t},listByStorageSyncServiceOperationSpec)}get(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,workflowId:t,options:a},getOperationSpec$1)}abort(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,workflowId:t,options:a},abortOperationSpec)}}let serializer$2=coreClient__namespace.createSerializer(Mappers,!1),listByStorageSyncServiceOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows",httpMethod:"GET",responses:{200:{bodyMapper:WorkflowArray,headersMapper:WorkflowsListByStorageSyncServiceHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName],headerParameters:[accept],serializer:serializer$2},getOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows/{workflowId}",httpMethod:"GET",responses:{200:{bodyMapper:Workflow,headersMapper:WorkflowsGetHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,workflowId],headerParameters:[accept],serializer:serializer$2},abortOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows/{workflowId}/abort",httpMethod:"POST",responses:{200:{headersMapper:WorkflowsAbortHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,workflowId],headerParameters:[accept],serializer:serializer$2};class OperationStatusOperationsImpl{constructor(e){this.client=e}get(e,r,t,a,i){return this.client.sendOperationRequest({resourceGroupName:e,locationName:r,workflowId:t,operationId:a,options:i},getOperationSpec)}}let serializer$1=coreClient__namespace.createSerializer(Mappers,!1),getOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/locations/{locationName}/workflows/{workflowId}/operations/{operationId}",httpMethod:"GET",responses:{200:{bodyMapper:OperationStatus,headersMapper:OperationStatusGetHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,locationName,subscriptionId,resourceGroupName,workflowId,operationId],headerParameters:[accept],serializer:serializer$1};class MicrosoftStorageSync extends coreClient__namespace.ServiceClient{constructor(e,r,t){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===r)throw new Error("'subscriptionId' cannot be null");var a,i="azsdk-js-arm-storagesync/9.1.1",i=(t=t||{}).userAgentOptions&&t.userAgentOptions.userAgentPrefix?t.userAgentOptions.userAgentPrefix+" "+i:i,i=Object.assign(Object.assign(Object.assign({},{requestContentType:"application/json; charset=utf-8",credential:e}),t),{userAgentOptions:{userAgentPrefix:i},endpoint:null!=(i=null!=(i=t.endpoint)?i:t.baseUri)?i:"https://management.azure.com"});super(i);let s=!1;null!=t&&t.pipeline&&0<t.pipeline.getOrderedPolicies().length&&(a=t.pipeline.getOrderedPolicies(),s=a.some(e=>e.name===coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName)),t&&t.pipeline&&0!=t.pipeline.getOrderedPolicies().length&&s||(this.pipeline.removePolicy({name:coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName}),this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({credential:e,scopes:null!=(a=i.credentialScopes)?a:i.endpoint+"/.default",challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}}))),this.subscriptionId=r,this.$host=t.$host||"https://management.azure.com",this.apiVersion=t.apiVersion||"2020-09-01",this.operations=new OperationsImpl(this),this.storageSyncServices=new StorageSyncServicesImpl(this),this.privateLinkResources=new PrivateLinkResourcesImpl(this),this.privateEndpointConnections=new PrivateEndpointConnectionsImpl(this),this.syncGroups=new SyncGroupsImpl(this),this.cloudEndpoints=new CloudEndpointsImpl(this),this.serverEndpoints=new ServerEndpointsImpl(this),this.registeredServers=new RegisteredServersImpl(this),this.workflows=new WorkflowsImpl(this),this.operationStatusOperations=new OperationStatusOperationsImpl(this),this.addCustomApiVersionPolicy(t.apiVersion)}addCustomApiVersionPolicy(i){i&&this.pipeline.addPolicy({name:"CustomApiVersionPolicy",sendRequest(t,a){return tslib.__awaiter(this,void 0,void 0,function*(){var e,r=t.url.split("?");return 1<r.length&&(e=r[1].split("&").map(e=>-1<e.indexOf("api-version")?"api-version="+i:e),t.url=r[0]+"?"+e.join("&")),a(t)})}})}locationOperationStatus(e,r,t){return this.sendOperationRequest({locationName:e,operationId:r,options:t},locationOperationStatusOperationSpec)}}let serializer=coreClient__namespace.createSerializer(Mappers,!1),locationOperationStatusOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/locations/{locationName}/operations/{operationId}",httpMethod:"GET",responses:{200:{bodyMapper:LocationOperationStatus,headersMapper:MicrosoftStorageSyncLocationOperationStatusHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,locationName,subscriptionId,operationId],headerParameters:[accept],serializer:serializer};exports.MicrosoftStorageSync=MicrosoftStorageSync,exports.getContinuationToken=getContinuationToken;
1
+ Object.defineProperty(exports,"__esModule",{value:!0});var tslib=require("tslib"),coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline"),coreLro=require("@azure/core-lro");function _interopNamespaceDefault(t){var a=Object.create(null);return t&&Object.keys(t).forEach(function(e){var r;"default"!==e&&(r=Object.getOwnPropertyDescriptor(t,e),Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:function(){return t[e]}}))}),a.default=t,Object.freeze(a)}var coreClient__namespace=_interopNamespaceDefault(coreClient),coreRestPipeline__namespace=_interopNamespaceDefault(coreRestPipeline);let pageMap=new WeakMap;function getContinuationToken(e){return"object"!=typeof e||null===e||null==(e=pageMap.get(e))?void 0:e.continuationToken}function setContinuationToken(e,r){var t;"object"==typeof e&&null!==e&&r&&((t=null!=(t=pageMap.get(e))?t:{}).continuationToken=r,pageMap.set(e,t))}exports.KnownIncomingTrafficPolicy=void 0,(e=>{e.AllowAllTraffic="AllowAllTraffic",e.AllowVirtualNetworksOnly="AllowVirtualNetworksOnly"})(exports.KnownIncomingTrafficPolicy||(exports.KnownIncomingTrafficPolicy={})),exports.KnownPrivateEndpointServiceConnectionStatus=void 0,(e=>{e.Pending="Pending",e.Approved="Approved",e.Rejected="Rejected"})(exports.KnownPrivateEndpointServiceConnectionStatus||(exports.KnownPrivateEndpointServiceConnectionStatus={})),exports.KnownPrivateEndpointConnectionProvisioningState=void 0,(e=>{e.Succeeded="Succeeded",e.Creating="Creating",e.Deleting="Deleting",e.Failed="Failed"})(exports.KnownPrivateEndpointConnectionProvisioningState||(exports.KnownPrivateEndpointConnectionProvisioningState={})),exports.KnownCloudEndpointChangeEnumerationActivityState=void 0,(e=>{e.InitialEnumerationInProgress="InitialEnumerationInProgress",e.EnumerationInProgress="EnumerationInProgress"})(exports.KnownCloudEndpointChangeEnumerationActivityState||(exports.KnownCloudEndpointChangeEnumerationActivityState={})),exports.KnownCloudEndpointChangeEnumerationTotalCountsState=void 0,(e=>{e.Calculating="Calculating",e.Final="Final"})(exports.KnownCloudEndpointChangeEnumerationTotalCountsState||(exports.KnownCloudEndpointChangeEnumerationTotalCountsState={})),exports.KnownChangeDetectionMode=void 0,(e=>{e.Default="Default",e.Recursive="Recursive"})(exports.KnownChangeDetectionMode||(exports.KnownChangeDetectionMode={})),exports.KnownFeatureStatus=void 0,(e=>{e.On="on",e.Off="off"})(exports.KnownFeatureStatus||(exports.KnownFeatureStatus={})),exports.KnownInitialDownloadPolicy=void 0,(e=>{e.NamespaceOnly="NamespaceOnly",e.NamespaceThenModifiedFiles="NamespaceThenModifiedFiles",e.AvoidTieredFiles="AvoidTieredFiles"})(exports.KnownInitialDownloadPolicy||(exports.KnownInitialDownloadPolicy={})),exports.KnownLocalCacheMode=void 0,(e=>{e.DownloadNewAndModifiedFiles="DownloadNewAndModifiedFiles",e.UpdateLocallyCachedFiles="UpdateLocallyCachedFiles"})(exports.KnownLocalCacheMode||(exports.KnownLocalCacheMode={})),exports.KnownInitialUploadPolicy=void 0,(e=>{e.ServerAuthoritative="ServerAuthoritative",e.Merge="Merge"})(exports.KnownInitialUploadPolicy||(exports.KnownInitialUploadPolicy={})),exports.KnownServerEndpointHealthState=void 0,(e=>{e.Unavailable="Unavailable",e.Healthy="Healthy",e.Error="Error"})(exports.KnownServerEndpointHealthState||(exports.KnownServerEndpointHealthState={})),exports.KnownServerEndpointSyncActivityState=void 0,(e=>{e.Upload="Upload",e.Download="Download",e.UploadAndDownload="UploadAndDownload"})(exports.KnownServerEndpointSyncActivityState||(exports.KnownServerEndpointSyncActivityState={})),exports.KnownServerEndpointSyncMode=void 0,(e=>{e.Regular="Regular",e.NamespaceDownload="NamespaceDownload",e.InitialUpload="InitialUpload",e.SnapshotUpload="SnapshotUpload",e.InitialFullDownload="InitialFullDownload"})(exports.KnownServerEndpointSyncMode||(exports.KnownServerEndpointSyncMode={})),exports.KnownServerEndpointOfflineDataTransferState=void 0,(e=>{e.InProgress="InProgress",e.Stopping="Stopping",e.NotRunning="NotRunning",e.Complete="Complete"})(exports.KnownServerEndpointOfflineDataTransferState||(exports.KnownServerEndpointOfflineDataTransferState={})),exports.KnownRegisteredServerAgentVersionStatus=void 0,(e=>{e.Ok="Ok",e.NearExpiry="NearExpiry",e.Expired="Expired",e.Blocked="Blocked"})(exports.KnownRegisteredServerAgentVersionStatus||(exports.KnownRegisteredServerAgentVersionStatus={})),exports.KnownWorkflowStatus=void 0,(e=>{e.Active="active",e.Expired="expired",e.Succeeded="succeeded",e.Aborted="aborted",e.Failed="failed"})(exports.KnownWorkflowStatus||(exports.KnownWorkflowStatus={})),exports.KnownOperationDirection=void 0,(e=>{e.Do="do",e.Undo="undo",e.Cancel="cancel"})(exports.KnownOperationDirection||(exports.KnownOperationDirection={})),exports.KnownReason=void 0,(e=>{e.Registered="Registered",e.Unregistered="Unregistered",e.Warned="Warned",e.Suspended="Suspended",e.Deleted="Deleted"})(exports.KnownReason||(exports.KnownReason={})),exports.KnownProgressType=void 0,(e=>{e.None="none",e.Initialize="initialize",e.Download="download",e.Upload="upload",e.Recall="recall"})(exports.KnownProgressType||(exports.KnownProgressType={}));let OperationEntityListResult={type:{name:"Composite",className:"OperationEntityListResult",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"OperationEntity"}}}}}}},OperationEntity={type:{name:"Composite",className:"OperationEntity",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplayInfo"}},origin:{serializedName:"origin",type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Composite",className:"OperationProperties"}}}}},OperationDisplayInfo={type:{name:"Composite",className:"OperationDisplayInfo",modelProperties:{description:{serializedName:"description",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}}}}},OperationProperties={type:{name:"Composite",className:"OperationProperties",modelProperties:{serviceSpecification:{serializedName:"serviceSpecification",type:{name:"Composite",className:"OperationResourceServiceSpecification"}}}}},OperationResourceServiceSpecification={type:{name:"Composite",className:"OperationResourceServiceSpecification",modelProperties:{metricSpecifications:{serializedName:"metricSpecifications",type:{name:"Sequence",element:{type:{name:"Composite",className:"OperationResourceMetricSpecification"}}}}}}},OperationResourceMetricSpecification={type:{name:"Composite",className:"OperationResourceMetricSpecification",modelProperties:{name:{serializedName:"name",type:{name:"String"}},displayName:{serializedName:"displayName",type:{name:"String"}},displayDescription:{serializedName:"displayDescription",type:{name:"String"}},unit:{serializedName:"unit",type:{name:"String"}},aggregationType:{serializedName:"aggregationType",type:{name:"String"}},fillGapWithZero:{serializedName:"fillGapWithZero",type:{name:"Boolean"}},dimensions:{serializedName:"dimensions",type:{name:"Sequence",element:{type:{name:"Composite",className:"OperationResourceMetricSpecificationDimension"}}}}}}},OperationResourceMetricSpecificationDimension={type:{name:"Composite",className:"OperationResourceMetricSpecificationDimension",modelProperties:{name:{serializedName:"name",type:{name:"String"}},displayName:{serializedName:"displayName",type:{name:"String"}},toBeExportedForShoebox:{serializedName:"toBeExportedForShoebox",type:{name:"Boolean"}}}}},StorageSyncError={type:{name:"Composite",className:"StorageSyncError",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"StorageSyncApiError"}},innererror:{serializedName:"innererror",type:{name:"Composite",className:"StorageSyncApiError"}}}}},StorageSyncApiError={type:{name:"Composite",className:"StorageSyncApiError",modelProperties:{code:{serializedName:"code",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}},target:{serializedName:"target",type:{name:"String"}},details:{serializedName:"details",type:{name:"Composite",className:"StorageSyncErrorDetails"}},innerError:{serializedName:"innerError",type:{name:"Composite",className:"StorageSyncInnerErrorDetails"}}}}},StorageSyncErrorDetails={type:{name:"Composite",className:"StorageSyncErrorDetails",modelProperties:{code:{serializedName:"code",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}},target:{serializedName:"target",type:{name:"String"}},requestUri:{serializedName:"requestUri",type:{name:"String"}},exceptionType:{serializedName:"exceptionType",type:{name:"String"}},httpMethod:{serializedName:"httpMethod",type:{name:"String"}},hashedMessage:{serializedName:"hashedMessage",type:{name:"String"}},httpErrorCode:{serializedName:"httpErrorCode",type:{name:"String"}}}}},StorageSyncInnerErrorDetails={type:{name:"Composite",className:"StorageSyncInnerErrorDetails",modelProperties:{callStack:{serializedName:"callStack",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}},innerException:{serializedName:"innerException",type:{name:"String"}},innerExceptionCallStack:{serializedName:"innerExceptionCallStack",type:{name:"String"}}}}},CheckNameAvailabilityParameters={type:{name:"Composite",className:"CheckNameAvailabilityParameters",modelProperties:{name:{serializedName:"name",required:!0,type:{name:"String"}},type:{defaultValue:"Microsoft.StorageSync/storageSyncServices",isConstant:!0,serializedName:"type",type:{name:"String"}}}}},CheckNameAvailabilityResult={type:{name:"Composite",className:"CheckNameAvailabilityResult",modelProperties:{nameAvailable:{serializedName:"nameAvailable",readOnly:!0,type:{name:"Boolean"}},reason:{serializedName:"reason",readOnly:!0,type:{name:"Enum",allowedValues:["Invalid","AlreadyExists"]}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}}}}},StorageSyncServiceCreateParameters={type:{name:"Composite",className:"StorageSyncServiceCreateParameters",modelProperties:{location:{serializedName:"location",required:!0,type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},incomingTrafficPolicy:{serializedName:"properties.incomingTrafficPolicy",type:{name:"String"}}}}},PrivateEndpoint={type:{name:"Composite",className:"PrivateEndpoint",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}}}}},PrivateLinkServiceConnectionState={type:{name:"Composite",className:"PrivateLinkServiceConnectionState",modelProperties:{status:{serializedName:"status",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}},actionsRequired:{serializedName:"actionsRequired",type:{name:"String"}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}}}}},StorageSyncServiceUpdateParameters={type:{name:"Composite",className:"StorageSyncServiceUpdateParameters",modelProperties:{tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},incomingTrafficPolicy:{serializedName:"properties.incomingTrafficPolicy",type:{name:"String"}}}}},StorageSyncServiceArray={type:{name:"Composite",className:"StorageSyncServiceArray",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"StorageSyncService"}}}}}}},PrivateLinkResourceListResult={type:{name:"Composite",className:"PrivateLinkResourceListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateLinkResource"}}}}}}},PrivateEndpointConnectionListResult={type:{name:"Composite",className:"PrivateEndpointConnectionListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}}}}},SyncGroupArray={type:{name:"Composite",className:"SyncGroupArray",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"SyncGroup"}}}}}}},CloudEndpointChangeEnumerationStatus={type:{name:"Composite",className:"CloudEndpointChangeEnumerationStatus",modelProperties:{lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},lastEnumerationStatus:{serializedName:"lastEnumerationStatus",type:{name:"Composite",className:"CloudEndpointLastChangeEnumerationStatus"}},activity:{serializedName:"activity",type:{name:"Composite",className:"CloudEndpointChangeEnumerationActivity"}}}}},CloudEndpointLastChangeEnumerationStatus={type:{name:"Composite",className:"CloudEndpointLastChangeEnumerationStatus",modelProperties:{startedTimestamp:{serializedName:"startedTimestamp",readOnly:!0,type:{name:"DateTime"}},completedTimestamp:{serializedName:"completedTimestamp",readOnly:!0,type:{name:"DateTime"}},namespaceFilesCount:{constraints:{InclusiveMinimum:0},serializedName:"namespaceFilesCount",readOnly:!0,type:{name:"Number"}},namespaceDirectoriesCount:{constraints:{InclusiveMinimum:0},serializedName:"namespaceDirectoriesCount",readOnly:!0,type:{name:"Number"}},namespaceSizeBytes:{constraints:{InclusiveMinimum:0},serializedName:"namespaceSizeBytes",readOnly:!0,type:{name:"Number"}},nextRunTimestamp:{serializedName:"nextRunTimestamp",readOnly:!0,type:{name:"DateTime"}}}}},CloudEndpointChangeEnumerationActivity={type:{name:"Composite",className:"CloudEndpointChangeEnumerationActivity",modelProperties:{lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},operationState:{serializedName:"operationState",readOnly:!0,type:{name:"String"}},statusCode:{serializedName:"statusCode",readOnly:!0,type:{name:"Number"}},startedTimestamp:{serializedName:"startedTimestamp",readOnly:!0,type:{name:"DateTime"}},processedFilesCount:{constraints:{InclusiveMinimum:0},serializedName:"processedFilesCount",readOnly:!0,type:{name:"Number"}},processedDirectoriesCount:{constraints:{InclusiveMinimum:0},serializedName:"processedDirectoriesCount",readOnly:!0,type:{name:"Number"}},totalFilesCount:{constraints:{InclusiveMinimum:0},serializedName:"totalFilesCount",readOnly:!0,type:{name:"Number"}},totalDirectoriesCount:{constraints:{InclusiveMinimum:0},serializedName:"totalDirectoriesCount",readOnly:!0,type:{name:"Number"}},totalSizeBytes:{constraints:{InclusiveMinimum:0},serializedName:"totalSizeBytes",readOnly:!0,type:{name:"Number"}},progressPercent:{constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"progressPercent",readOnly:!0,type:{name:"Number"}},minutesRemaining:{constraints:{InclusiveMinimum:0},serializedName:"minutesRemaining",readOnly:!0,type:{name:"Number"}},totalCountsState:{serializedName:"totalCountsState",readOnly:!0,type:{name:"String"}},deletesProgressPercent:{constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"deletesProgressPercent",readOnly:!0,type:{name:"Number"}}}}},CloudEndpointArray={type:{name:"Composite",className:"CloudEndpointArray",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"CloudEndpoint"}}}}}}},BackupRequest={type:{name:"Composite",className:"BackupRequest",modelProperties:{azureFileShare:{serializedName:"azureFileShare",type:{name:"String"}}}}},PostBackupResponse={type:{name:"Composite",className:"PostBackupResponse",modelProperties:{cloudEndpointName:{serializedName:"backupMetadata.cloudEndpointName",readOnly:!0,type:{name:"String"}}}}},PreRestoreRequest={type:{name:"Composite",className:"PreRestoreRequest",modelProperties:{partition:{serializedName:"partition",type:{name:"String"}},replicaGroup:{serializedName:"replicaGroup",type:{name:"String"}},requestId:{serializedName:"requestId",type:{name:"String"}},azureFileShareUri:{serializedName:"azureFileShareUri",type:{name:"String"}},status:{serializedName:"status",type:{name:"String"}},sourceAzureFileShareUri:{serializedName:"sourceAzureFileShareUri",type:{name:"String"}},backupMetadataPropertyBag:{serializedName:"backupMetadataPropertyBag",type:{name:"String"}},restoreFileSpec:{serializedName:"restoreFileSpec",type:{name:"Sequence",element:{type:{name:"Composite",className:"RestoreFileSpec"}}}},pauseWaitForSyncDrainTimePeriodInSeconds:{serializedName:"pauseWaitForSyncDrainTimePeriodInSeconds",type:{name:"Number"}}}}},RestoreFileSpec={type:{name:"Composite",className:"RestoreFileSpec",modelProperties:{path:{serializedName:"path",type:{name:"String"}},isdir:{serializedName:"isdir",type:{name:"Boolean"}}}}},PostRestoreRequest={type:{name:"Composite",className:"PostRestoreRequest",modelProperties:{partition:{serializedName:"partition",type:{name:"String"}},replicaGroup:{serializedName:"replicaGroup",type:{name:"String"}},requestId:{serializedName:"requestId",type:{name:"String"}},azureFileShareUri:{serializedName:"azureFileShareUri",type:{name:"String"}},status:{serializedName:"status",type:{name:"String"}},sourceAzureFileShareUri:{serializedName:"sourceAzureFileShareUri",type:{name:"String"}},failedFileList:{serializedName:"failedFileList",type:{name:"String"}},restoreFileSpec:{serializedName:"restoreFileSpec",type:{name:"Sequence",element:{type:{name:"Composite",className:"RestoreFileSpec"}}}}}}},TriggerChangeDetectionParameters={type:{name:"Composite",className:"TriggerChangeDetectionParameters",modelProperties:{directoryPath:{serializedName:"directoryPath",type:{name:"String"}},changeDetectionMode:{serializedName:"changeDetectionMode",type:{name:"String"}},paths:{serializedName:"paths",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},ServerEndpointSyncStatus={type:{name:"Composite",className:"ServerEndpointSyncStatus",modelProperties:{downloadHealth:{serializedName:"downloadHealth",readOnly:!0,type:{name:"String"}},uploadHealth:{serializedName:"uploadHealth",readOnly:!0,type:{name:"String"}},combinedHealth:{serializedName:"combinedHealth",readOnly:!0,type:{name:"String"}},syncActivity:{serializedName:"syncActivity",readOnly:!0,type:{name:"String"}},totalPersistentFilesNotSyncingCount:{constraints:{InclusiveMinimum:0},serializedName:"totalPersistentFilesNotSyncingCount",readOnly:!0,type:{name:"Number"}},lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},uploadStatus:{serializedName:"uploadStatus",type:{name:"Composite",className:"ServerEndpointSyncSessionStatus"}},downloadStatus:{serializedName:"downloadStatus",type:{name:"Composite",className:"ServerEndpointSyncSessionStatus"}},uploadActivity:{serializedName:"uploadActivity",type:{name:"Composite",className:"ServerEndpointSyncActivityStatus"}},downloadActivity:{serializedName:"downloadActivity",type:{name:"Composite",className:"ServerEndpointSyncActivityStatus"}},offlineDataTransferStatus:{serializedName:"offlineDataTransferStatus",readOnly:!0,type:{name:"String"}},backgroundDataDownloadActivity:{serializedName:"backgroundDataDownloadActivity",type:{name:"Composite",className:"ServerEndpointBackgroundDataDownloadActivity"}}}}},ServerEndpointSyncSessionStatus={type:{name:"Composite",className:"ServerEndpointSyncSessionStatus",modelProperties:{lastSyncResult:{serializedName:"lastSyncResult",readOnly:!0,type:{name:"Number"}},lastSyncTimestamp:{serializedName:"lastSyncTimestamp",readOnly:!0,type:{name:"DateTime"}},lastSyncSuccessTimestamp:{serializedName:"lastSyncSuccessTimestamp",readOnly:!0,type:{name:"DateTime"}},lastSyncPerItemErrorCount:{constraints:{InclusiveMinimum:0},serializedName:"lastSyncPerItemErrorCount",readOnly:!0,type:{name:"Number"}},persistentFilesNotSyncingCount:{constraints:{InclusiveMinimum:0},serializedName:"persistentFilesNotSyncingCount",readOnly:!0,type:{name:"Number"}},transientFilesNotSyncingCount:{constraints:{InclusiveMinimum:0},serializedName:"transientFilesNotSyncingCount",readOnly:!0,type:{name:"Number"}},filesNotSyncingErrors:{serializedName:"filesNotSyncingErrors",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ServerEndpointFilesNotSyncingError"}}}},lastSyncMode:{serializedName:"lastSyncMode",readOnly:!0,type:{name:"String"}}}}},ServerEndpointFilesNotSyncingError={type:{name:"Composite",className:"ServerEndpointFilesNotSyncingError",modelProperties:{errorCode:{serializedName:"errorCode",readOnly:!0,type:{name:"Number"}},persistentCount:{constraints:{InclusiveMinimum:0},serializedName:"persistentCount",readOnly:!0,type:{name:"Number"}},transientCount:{constraints:{InclusiveMinimum:0},serializedName:"transientCount",readOnly:!0,type:{name:"Number"}}}}},ServerEndpointSyncActivityStatus={type:{name:"Composite",className:"ServerEndpointSyncActivityStatus",modelProperties:{timestamp:{serializedName:"timestamp",readOnly:!0,type:{name:"DateTime"}},perItemErrorCount:{constraints:{InclusiveMinimum:0},serializedName:"perItemErrorCount",readOnly:!0,type:{name:"Number"}},appliedItemCount:{constraints:{InclusiveMinimum:0},serializedName:"appliedItemCount",readOnly:!0,type:{name:"Number"}},totalItemCount:{constraints:{InclusiveMinimum:0},serializedName:"totalItemCount",readOnly:!0,type:{name:"Number"}},appliedBytes:{constraints:{InclusiveMinimum:0},serializedName:"appliedBytes",readOnly:!0,type:{name:"Number"}},totalBytes:{constraints:{InclusiveMinimum:0},serializedName:"totalBytes",readOnly:!0,type:{name:"Number"}},syncMode:{serializedName:"syncMode",readOnly:!0,type:{name:"String"}},sessionMinutesRemaining:{constraints:{InclusiveMinimum:0},serializedName:"sessionMinutesRemaining",readOnly:!0,type:{name:"Number"}}}}},ServerEndpointBackgroundDataDownloadActivity={type:{name:"Composite",className:"ServerEndpointBackgroundDataDownloadActivity",modelProperties:{timestamp:{serializedName:"timestamp",readOnly:!0,type:{name:"DateTime"}},startedTimestamp:{serializedName:"startedTimestamp",readOnly:!0,type:{name:"DateTime"}},percentProgress:{constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"percentProgress",readOnly:!0,type:{name:"Number"}},downloadedBytes:{constraints:{InclusiveMinimum:0},serializedName:"downloadedBytes",readOnly:!0,type:{name:"Number"}}}}},ServerEndpointCloudTieringStatus={type:{name:"Composite",className:"ServerEndpointCloudTieringStatus",modelProperties:{lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},health:{serializedName:"health",readOnly:!0,type:{name:"String"}},healthLastUpdatedTimestamp:{serializedName:"healthLastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},lastCloudTieringResult:{serializedName:"lastCloudTieringResult",readOnly:!0,type:{name:"Number"}},lastSuccessTimestamp:{serializedName:"lastSuccessTimestamp",readOnly:!0,type:{name:"DateTime"}},spaceSavings:{serializedName:"spaceSavings",type:{name:"Composite",className:"CloudTieringSpaceSavings"}},cachePerformance:{serializedName:"cachePerformance",type:{name:"Composite",className:"CloudTieringCachePerformance"}},filesNotTiering:{serializedName:"filesNotTiering",type:{name:"Composite",className:"CloudTieringFilesNotTiering"}},volumeFreeSpacePolicyStatus:{serializedName:"volumeFreeSpacePolicyStatus",type:{name:"Composite",className:"CloudTieringVolumeFreeSpacePolicyStatus"}},datePolicyStatus:{serializedName:"datePolicyStatus",type:{name:"Composite",className:"CloudTieringDatePolicyStatus"}}}}},CloudTieringSpaceSavings={type:{name:"Composite",className:"CloudTieringSpaceSavings",modelProperties:{lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},volumeSizeBytes:{constraints:{InclusiveMinimum:0},serializedName:"volumeSizeBytes",readOnly:!0,type:{name:"Number"}},totalSizeCloudBytes:{constraints:{InclusiveMinimum:0},serializedName:"totalSizeCloudBytes",readOnly:!0,type:{name:"Number"}},cachedSizeBytes:{constraints:{InclusiveMinimum:0},serializedName:"cachedSizeBytes",readOnly:!0,type:{name:"Number"}},spaceSavingsPercent:{constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"spaceSavingsPercent",readOnly:!0,type:{name:"Number"}},spaceSavingsBytes:{constraints:{InclusiveMinimum:0},serializedName:"spaceSavingsBytes",readOnly:!0,type:{name:"Number"}}}}},CloudTieringCachePerformance={type:{name:"Composite",className:"CloudTieringCachePerformance",modelProperties:{lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},cacheHitBytes:{constraints:{InclusiveMinimum:0},serializedName:"cacheHitBytes",readOnly:!0,type:{name:"Number"}},cacheMissBytes:{constraints:{InclusiveMinimum:0},serializedName:"cacheMissBytes",readOnly:!0,type:{name:"Number"}},cacheHitBytesPercent:{constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"cacheHitBytesPercent",readOnly:!0,type:{name:"Number"}}}}},CloudTieringFilesNotTiering={type:{name:"Composite",className:"CloudTieringFilesNotTiering",modelProperties:{lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},totalFileCount:{constraints:{InclusiveMinimum:0},serializedName:"totalFileCount",readOnly:!0,type:{name:"Number"}},errors:{serializedName:"errors",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"FilesNotTieringError"}}}}}}},FilesNotTieringError={type:{name:"Composite",className:"FilesNotTieringError",modelProperties:{errorCode:{serializedName:"errorCode",readOnly:!0,type:{name:"Number"}},fileCount:{constraints:{InclusiveMinimum:0},serializedName:"fileCount",readOnly:!0,type:{name:"Number"}}}}},CloudTieringVolumeFreeSpacePolicyStatus={type:{name:"Composite",className:"CloudTieringVolumeFreeSpacePolicyStatus",modelProperties:{lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},effectiveVolumeFreeSpacePolicy:{constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"effectiveVolumeFreeSpacePolicy",readOnly:!0,type:{name:"Number"}},currentVolumeFreeSpacePercent:{constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"currentVolumeFreeSpacePercent",readOnly:!0,type:{name:"Number"}}}}},CloudTieringDatePolicyStatus={type:{name:"Composite",className:"CloudTieringDatePolicyStatus",modelProperties:{lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},tieredFilesMostRecentAccessTimestamp:{serializedName:"tieredFilesMostRecentAccessTimestamp",readOnly:!0,type:{name:"DateTime"}}}}},ServerEndpointRecallStatus={type:{name:"Composite",className:"ServerEndpointRecallStatus",modelProperties:{lastUpdatedTimestamp:{serializedName:"lastUpdatedTimestamp",readOnly:!0,type:{name:"DateTime"}},totalRecallErrorsCount:{constraints:{InclusiveMinimum:0},serializedName:"totalRecallErrorsCount",readOnly:!0,type:{name:"Number"}},recallErrors:{serializedName:"recallErrors",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ServerEndpointRecallError"}}}}}}},ServerEndpointRecallError={type:{name:"Composite",className:"ServerEndpointRecallError",modelProperties:{errorCode:{serializedName:"errorCode",readOnly:!0,type:{name:"Number"}},count:{constraints:{InclusiveMinimum:0},serializedName:"count",readOnly:!0,type:{name:"Number"}}}}},ServerEndpointUpdateParameters={type:{name:"Composite",className:"ServerEndpointUpdateParameters",modelProperties:{cloudTiering:{serializedName:"properties.cloudTiering",type:{name:"String"}},volumeFreeSpacePercent:{constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"properties.volumeFreeSpacePercent",type:{name:"Number"}},tierFilesOlderThanDays:{constraints:{InclusiveMaximum:2147483647,InclusiveMinimum:0},serializedName:"properties.tierFilesOlderThanDays",type:{name:"Number"}},offlineDataTransfer:{serializedName:"properties.offlineDataTransfer",type:{name:"String"}},offlineDataTransferShareName:{serializedName:"properties.offlineDataTransferShareName",type:{name:"String"}},localCacheMode:{serializedName:"properties.localCacheMode",type:{name:"String"}}}}},ServerEndpointArray={type:{name:"Composite",className:"ServerEndpointArray",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServerEndpoint"}}}}}}},RecallActionParameters={type:{name:"Composite",className:"RecallActionParameters",modelProperties:{pattern:{serializedName:"pattern",type:{name:"String"}},recallPath:{serializedName:"recallPath",type:{name:"String"}}}}},RegisteredServerArray={type:{name:"Composite",className:"RegisteredServerArray",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"RegisteredServer"}}}}}}},TriggerRolloverRequest={type:{name:"Composite",className:"TriggerRolloverRequest",modelProperties:{serverCertificate:{serializedName:"serverCertificate",type:{name:"String"}}}}},WorkflowArray={type:{name:"Composite",className:"WorkflowArray",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Workflow"}}}}}}},OperationStatus={type:{name:"Composite",className:"OperationStatus",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},status:{serializedName:"status",readOnly:!0,type:{name:"String"}},startTime:{serializedName:"startTime",readOnly:!0,type:{name:"DateTime"}},endTime:{serializedName:"endTime",readOnly:!0,type:{name:"DateTime"}},error:{serializedName:"error",type:{name:"Composite",className:"StorageSyncApiError"}}}}},LocationOperationStatus={type:{name:"Composite",className:"LocationOperationStatus",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},status:{serializedName:"status",readOnly:!0,type:{name:"String"}},startTime:{serializedName:"startTime",readOnly:!0,type:{name:"DateTime"}},endTime:{serializedName:"endTime",readOnly:!0,type:{name:"DateTime"}},error:{serializedName:"error",type:{name:"Composite",className:"StorageSyncApiError"}},percentComplete:{serializedName:"percentComplete",readOnly:!0,type:{name:"Number"}}}}},SubscriptionState={type:{name:"Composite",className:"SubscriptionState",modelProperties:{state:{serializedName:"state",type:{name:"String"}},istransitioning:{serializedName:"istransitioning",readOnly:!0,type:{name:"Boolean"}},properties:{serializedName:"properties",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},ResourcesMoveInfo={type:{name:"Composite",className:"ResourcesMoveInfo",modelProperties:{targetResourceGroup:{serializedName:"targetResourceGroup",type:{name:"String"}},resources:{serializedName:"resources",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},OperationDisplayResource={type:{name:"Composite",className:"OperationDisplayResource",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}}}}},PrivateEndpointConnection={type:{name:"Composite",className:"PrivateEndpointConnection",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{privateEndpoint:{serializedName:"properties.privateEndpoint",type:{name:"Composite",className:"PrivateEndpoint"}},privateLinkServiceConnectionState:{serializedName:"properties.privateLinkServiceConnectionState",type:{name:"Composite",className:"PrivateLinkServiceConnectionState"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}}})}},TrackedResource={type:{name:"Composite",className:"TrackedResource",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},location:{serializedName:"location",required:!0,type:{name:"String"}}})}},PrivateLinkResource={type:{name:"Composite",className:"PrivateLinkResource",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{groupId:{serializedName:"properties.groupId",readOnly:!0,type:{name:"String"}},requiredMembers:{serializedName:"properties.requiredMembers",readOnly:!0,type:{name:"Sequence",element:{type:{name:"String"}}}},requiredZoneNames:{serializedName:"properties.requiredZoneNames",type:{name:"Sequence",element:{type:{name:"String"}}}}})}},ProxyResource={type:{name:"Composite",className:"ProxyResource",modelProperties:Object.assign({},Resource.type.modelProperties)}},StorageSyncService={type:{name:"Composite",className:"StorageSyncService",modelProperties:Object.assign(Object.assign({},TrackedResource.type.modelProperties),{incomingTrafficPolicy:{serializedName:"properties.incomingTrafficPolicy",type:{name:"String"}},storageSyncServiceStatus:{serializedName:"properties.storageSyncServiceStatus",readOnly:!0,type:{name:"Number"}},storageSyncServiceUid:{serializedName:"properties.storageSyncServiceUid",readOnly:!0,type:{name:"String"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},lastWorkflowId:{serializedName:"properties.lastWorkflowId",readOnly:!0,type:{name:"String"}},lastOperationName:{serializedName:"properties.lastOperationName",readOnly:!0,type:{name:"String"}},privateEndpointConnections:{serializedName:"properties.privateEndpointConnections",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}}})}},SyncGroup={type:{name:"Composite",className:"SyncGroup",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{uniqueId:{serializedName:"properties.uniqueId",readOnly:!0,type:{name:"String"}},syncGroupStatus:{serializedName:"properties.syncGroupStatus",readOnly:!0,type:{name:"String"}}})}},SyncGroupCreateParameters={type:{name:"Composite",className:"SyncGroupCreateParameters",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Dictionary",value:{type:{name:"any"}}}}})}},CloudEndpointCreateParameters={type:{name:"Composite",className:"CloudEndpointCreateParameters",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{storageAccountResourceId:{serializedName:"properties.storageAccountResourceId",type:{name:"String"}},azureFileShareName:{serializedName:"properties.azureFileShareName",type:{name:"String"}},storageAccountTenantId:{serializedName:"properties.storageAccountTenantId",type:{name:"String"}},friendlyName:{serializedName:"properties.friendlyName",type:{name:"String"}}})}},CloudEndpoint={type:{name:"Composite",className:"CloudEndpoint",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{storageAccountResourceId:{serializedName:"properties.storageAccountResourceId",type:{name:"String"}},azureFileShareName:{serializedName:"properties.azureFileShareName",type:{name:"String"}},storageAccountTenantId:{serializedName:"properties.storageAccountTenantId",type:{name:"String"}},partnershipId:{serializedName:"properties.partnershipId",type:{name:"String"}},friendlyName:{serializedName:"properties.friendlyName",type:{name:"String"}},backupEnabled:{serializedName:"properties.backupEnabled",readOnly:!0,type:{name:"String"}},provisioningState:{serializedName:"properties.provisioningState",type:{name:"String"}},lastWorkflowId:{serializedName:"properties.lastWorkflowId",type:{name:"String"}},lastOperationName:{serializedName:"properties.lastOperationName",type:{name:"String"}},changeEnumerationStatus:{serializedName:"properties.changeEnumerationStatus",type:{name:"Composite",className:"CloudEndpointChangeEnumerationStatus"}}})}},ServerEndpointCreateParameters={type:{name:"Composite",className:"ServerEndpointCreateParameters",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{serverLocalPath:{serializedName:"properties.serverLocalPath",type:{name:"String"}},cloudTiering:{serializedName:"properties.cloudTiering",type:{name:"String"}},volumeFreeSpacePercent:{defaultValue:20,constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"properties.volumeFreeSpacePercent",type:{name:"Number"}},tierFilesOlderThanDays:{constraints:{InclusiveMaximum:2147483647,InclusiveMinimum:0},serializedName:"properties.tierFilesOlderThanDays",type:{name:"Number"}},friendlyName:{serializedName:"properties.friendlyName",type:{name:"String"}},serverResourceId:{serializedName:"properties.serverResourceId",type:{name:"String"}},offlineDataTransfer:{serializedName:"properties.offlineDataTransfer",type:{name:"String"}},offlineDataTransferShareName:{serializedName:"properties.offlineDataTransferShareName",type:{name:"String"}},initialDownloadPolicy:{serializedName:"properties.initialDownloadPolicy",type:{name:"String"}},localCacheMode:{serializedName:"properties.localCacheMode",type:{name:"String"}},initialUploadPolicy:{serializedName:"properties.initialUploadPolicy",type:{name:"String"}}})}},ServerEndpoint={type:{name:"Composite",className:"ServerEndpoint",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{serverLocalPath:{serializedName:"properties.serverLocalPath",type:{name:"String"}},cloudTiering:{serializedName:"properties.cloudTiering",type:{name:"String"}},volumeFreeSpacePercent:{constraints:{InclusiveMaximum:100,InclusiveMinimum:0},serializedName:"properties.volumeFreeSpacePercent",type:{name:"Number"}},tierFilesOlderThanDays:{constraints:{InclusiveMaximum:2147483647,InclusiveMinimum:0},serializedName:"properties.tierFilesOlderThanDays",type:{name:"Number"}},friendlyName:{serializedName:"properties.friendlyName",type:{name:"String"}},serverResourceId:{serializedName:"properties.serverResourceId",type:{name:"String"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},lastWorkflowId:{serializedName:"properties.lastWorkflowId",readOnly:!0,type:{name:"String"}},lastOperationName:{serializedName:"properties.lastOperationName",readOnly:!0,type:{name:"String"}},syncStatus:{serializedName:"properties.syncStatus",type:{name:"Composite",className:"ServerEndpointSyncStatus"}},offlineDataTransfer:{serializedName:"properties.offlineDataTransfer",type:{name:"String"}},offlineDataTransferStorageAccountResourceId:{serializedName:"properties.offlineDataTransferStorageAccountResourceId",readOnly:!0,type:{name:"String"}},offlineDataTransferStorageAccountTenantId:{serializedName:"properties.offlineDataTransferStorageAccountTenantId",readOnly:!0,type:{name:"String"}},offlineDataTransferShareName:{serializedName:"properties.offlineDataTransferShareName",type:{name:"String"}},cloudTieringStatus:{serializedName:"properties.cloudTieringStatus",type:{name:"Composite",className:"ServerEndpointCloudTieringStatus"}},recallStatus:{serializedName:"properties.recallStatus",type:{name:"Composite",className:"ServerEndpointRecallStatus"}},initialDownloadPolicy:{serializedName:"properties.initialDownloadPolicy",type:{name:"String"}},localCacheMode:{serializedName:"properties.localCacheMode",type:{name:"String"}},initialUploadPolicy:{serializedName:"properties.initialUploadPolicy",type:{name:"String"}},serverName:{serializedName:"properties.serverName",readOnly:!0,type:{name:"String"}}})}},RegisteredServer={type:{name:"Composite",className:"RegisteredServer",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{serverCertificate:{serializedName:"properties.serverCertificate",type:{name:"String"}},agentVersion:{serializedName:"properties.agentVersion",type:{name:"String"}},agentVersionStatus:{serializedName:"properties.agentVersionStatus",readOnly:!0,type:{name:"String"}},agentVersionExpirationDate:{serializedName:"properties.agentVersionExpirationDate",readOnly:!0,type:{name:"DateTime"}},serverOSVersion:{serializedName:"properties.serverOSVersion",type:{name:"String"}},serverManagementErrorCode:{serializedName:"properties.serverManagementErrorCode",type:{name:"Number"}},lastHeartBeat:{serializedName:"properties.lastHeartBeat",type:{name:"String"}},provisioningState:{serializedName:"properties.provisioningState",type:{name:"String"}},serverRole:{serializedName:"properties.serverRole",type:{name:"String"}},clusterId:{serializedName:"properties.clusterId",type:{name:"String"}},clusterName:{serializedName:"properties.clusterName",type:{name:"String"}},serverId:{serializedName:"properties.serverId",type:{name:"String"}},storageSyncServiceUid:{serializedName:"properties.storageSyncServiceUid",type:{name:"String"}},lastWorkflowId:{serializedName:"properties.lastWorkflowId",type:{name:"String"}},lastOperationName:{serializedName:"properties.lastOperationName",type:{name:"String"}},discoveryEndpointUri:{serializedName:"properties.discoveryEndpointUri",type:{name:"String"}},resourceLocation:{serializedName:"properties.resourceLocation",type:{name:"String"}},serviceLocation:{serializedName:"properties.serviceLocation",type:{name:"String"}},friendlyName:{serializedName:"properties.friendlyName",type:{name:"String"}},managementEndpointUri:{serializedName:"properties.managementEndpointUri",type:{name:"String"}},monitoringEndpointUri:{serializedName:"properties.monitoringEndpointUri",type:{name:"String"}},monitoringConfiguration:{serializedName:"properties.monitoringConfiguration",type:{name:"String"}},serverName:{serializedName:"properties.serverName",readOnly:!0,type:{name:"String"}}})}},RegisteredServerCreateParameters={type:{name:"Composite",className:"RegisteredServerCreateParameters",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{serverCertificate:{serializedName:"properties.serverCertificate",type:{name:"String"}},agentVersion:{serializedName:"properties.agentVersion",type:{name:"String"}},serverOSVersion:{serializedName:"properties.serverOSVersion",type:{name:"String"}},lastHeartBeat:{serializedName:"properties.lastHeartBeat",type:{name:"String"}},serverRole:{serializedName:"properties.serverRole",type:{name:"String"}},clusterId:{serializedName:"properties.clusterId",type:{name:"String"}},clusterName:{serializedName:"properties.clusterName",type:{name:"String"}},serverId:{serializedName:"properties.serverId",type:{name:"String"}},friendlyName:{serializedName:"properties.friendlyName",type:{name:"String"}}})}},Workflow={type:{name:"Composite",className:"Workflow",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{lastStepName:{serializedName:"properties.lastStepName",type:{name:"String"}},status:{serializedName:"properties.status",type:{name:"String"}},operation:{serializedName:"properties.operation",type:{name:"String"}},steps:{serializedName:"properties.steps",type:{name:"String"}},lastOperationId:{serializedName:"properties.lastOperationId",type:{name:"String"}},commandName:{serializedName:"properties.commandName",readOnly:!0,type:{name:"String"}},createdTimestamp:{serializedName:"properties.createdTimestamp",readOnly:!0,type:{name:"DateTime"}},lastStatusTimestamp:{serializedName:"properties.lastStatusTimestamp",readOnly:!0,type:{name:"DateTime"}}})}},OperationsListHeaders={type:{name:"Composite",className:"OperationsListHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},OperationsListNextHeaders={type:{name:"Composite",className:"OperationsListNextHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},StorageSyncServicesCreateHeaders={type:{name:"Composite",className:"StorageSyncServicesCreateHeaders",modelProperties:{azureAsyncOperation:{serializedName:"azure-asyncoperation",type:{name:"String"}},location:{serializedName:"location",type:{name:"String"}},retryAfter:{serializedName:"retry-after",type:{name:"String"}},xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},StorageSyncServicesGetHeaders={type:{name:"Composite",className:"StorageSyncServicesGetHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},StorageSyncServicesUpdateHeaders={type:{name:"Composite",className:"StorageSyncServicesUpdateHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},StorageSyncServicesDeleteHeaders={type:{name:"Composite",className:"StorageSyncServicesDeleteHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},StorageSyncServicesListByResourceGroupHeaders={type:{name:"Composite",className:"StorageSyncServicesListByResourceGroupHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},StorageSyncServicesListBySubscriptionHeaders={type:{name:"Composite",className:"StorageSyncServicesListBySubscriptionHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},PrivateEndpointConnectionsCreateHeaders={type:{name:"Composite",className:"PrivateEndpointConnectionsCreateHeaders",modelProperties:{azureAsyncOperation:{serializedName:"azure-asyncoperation",type:{name:"String"}},location:{serializedName:"location",type:{name:"String"}},retryAfter:{serializedName:"retry-after",type:{name:"String"}},xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},PrivateEndpointConnectionsDeleteHeaders={type:{name:"Composite",className:"PrivateEndpointConnectionsDeleteHeaders",modelProperties:{azureAsyncOperation:{serializedName:"azure-asyncoperation",type:{name:"String"}},location:{serializedName:"location",type:{name:"String"}},retryAfter:{serializedName:"retry-after",type:{name:"String"}},xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},PrivateEndpointConnectionsListByStorageSyncServiceHeaders={type:{name:"Composite",className:"PrivateEndpointConnectionsListByStorageSyncServiceHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},SyncGroupsListByStorageSyncServiceHeaders={type:{name:"Composite",className:"SyncGroupsListByStorageSyncServiceHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},SyncGroupsCreateHeaders={type:{name:"Composite",className:"SyncGroupsCreateHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},SyncGroupsGetHeaders={type:{name:"Composite",className:"SyncGroupsGetHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},SyncGroupsDeleteHeaders={type:{name:"Composite",className:"SyncGroupsDeleteHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsCreateHeaders={type:{name:"Composite",className:"CloudEndpointsCreateHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsGetHeaders={type:{name:"Composite",className:"CloudEndpointsGetHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsDeleteHeaders={type:{name:"Composite",className:"CloudEndpointsDeleteHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsListBySyncGroupHeaders={type:{name:"Composite",className:"CloudEndpointsListBySyncGroupHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsPreBackupHeaders={type:{name:"Composite",className:"CloudEndpointsPreBackupHeaders",modelProperties:{location:{serializedName:"location",type:{name:"String"}},xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsPostBackupHeaders={type:{name:"Composite",className:"CloudEndpointsPostBackupHeaders",modelProperties:{location:{serializedName:"location",type:{name:"String"}},xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsPreRestoreHeaders={type:{name:"Composite",className:"CloudEndpointsPreRestoreHeaders",modelProperties:{location:{serializedName:"location",type:{name:"String"}},xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsRestoreheartbeatHeaders={type:{name:"Composite",className:"CloudEndpointsRestoreheartbeatHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsPostRestoreHeaders={type:{name:"Composite",className:"CloudEndpointsPostRestoreHeaders",modelProperties:{location:{serializedName:"location",type:{name:"String"}},xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},CloudEndpointsTriggerChangeDetectionHeaders={type:{name:"Composite",className:"CloudEndpointsTriggerChangeDetectionHeaders",modelProperties:{location:{serializedName:"location",type:{name:"String"}},xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},ServerEndpointsCreateHeaders={type:{name:"Composite",className:"ServerEndpointsCreateHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},ServerEndpointsUpdateHeaders={type:{name:"Composite",className:"ServerEndpointsUpdateHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},ServerEndpointsGetHeaders={type:{name:"Composite",className:"ServerEndpointsGetHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},ServerEndpointsDeleteHeaders={type:{name:"Composite",className:"ServerEndpointsDeleteHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},ServerEndpointsListBySyncGroupHeaders={type:{name:"Composite",className:"ServerEndpointsListBySyncGroupHeaders",modelProperties:{location:{serializedName:"location",type:{name:"String"}},xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},ServerEndpointsRecallActionHeaders={type:{name:"Composite",className:"ServerEndpointsRecallActionHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},RegisteredServersListByStorageSyncServiceHeaders={type:{name:"Composite",className:"RegisteredServersListByStorageSyncServiceHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},RegisteredServersGetHeaders={type:{name:"Composite",className:"RegisteredServersGetHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},RegisteredServersCreateHeaders={type:{name:"Composite",className:"RegisteredServersCreateHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},RegisteredServersDeleteHeaders={type:{name:"Composite",className:"RegisteredServersDeleteHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},RegisteredServersTriggerRolloverHeaders={type:{name:"Composite",className:"RegisteredServersTriggerRolloverHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},WorkflowsListByStorageSyncServiceHeaders={type:{name:"Composite",className:"WorkflowsListByStorageSyncServiceHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},WorkflowsGetHeaders={type:{name:"Composite",className:"WorkflowsGetHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},WorkflowsAbortHeaders={type:{name:"Composite",className:"WorkflowsAbortHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},OperationStatusGetHeaders={type:{name:"Composite",className:"OperationStatusGetHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}},MicrosoftStorageSyncLocationOperationStatusHeaders={type:{name:"Composite",className:"MicrosoftStorageSyncLocationOperationStatusHeaders",modelProperties:{xMsRequestId:{serializedName:"x-ms-request-id",type:{name:"String"}},xMsCorrelationRequestId:{serializedName:"x-ms-correlation-request-id",type:{name:"String"}}}}};var Mappers=Object.freeze({__proto__:null,BackupRequest:BackupRequest,CheckNameAvailabilityParameters:CheckNameAvailabilityParameters,CheckNameAvailabilityResult:CheckNameAvailabilityResult,CloudEndpoint:CloudEndpoint,CloudEndpointArray:CloudEndpointArray,CloudEndpointChangeEnumerationActivity:CloudEndpointChangeEnumerationActivity,CloudEndpointChangeEnumerationStatus:CloudEndpointChangeEnumerationStatus,CloudEndpointCreateParameters:CloudEndpointCreateParameters,CloudEndpointLastChangeEnumerationStatus:CloudEndpointLastChangeEnumerationStatus,CloudEndpointsCreateHeaders:CloudEndpointsCreateHeaders,CloudEndpointsDeleteHeaders:CloudEndpointsDeleteHeaders,CloudEndpointsGetHeaders:CloudEndpointsGetHeaders,CloudEndpointsListBySyncGroupHeaders:CloudEndpointsListBySyncGroupHeaders,CloudEndpointsPostBackupHeaders:CloudEndpointsPostBackupHeaders,CloudEndpointsPostRestoreHeaders:CloudEndpointsPostRestoreHeaders,CloudEndpointsPreBackupHeaders:CloudEndpointsPreBackupHeaders,CloudEndpointsPreRestoreHeaders:CloudEndpointsPreRestoreHeaders,CloudEndpointsRestoreheartbeatHeaders:CloudEndpointsRestoreheartbeatHeaders,CloudEndpointsTriggerChangeDetectionHeaders:CloudEndpointsTriggerChangeDetectionHeaders,CloudTieringCachePerformance:CloudTieringCachePerformance,CloudTieringDatePolicyStatus:CloudTieringDatePolicyStatus,CloudTieringFilesNotTiering:CloudTieringFilesNotTiering,CloudTieringSpaceSavings:CloudTieringSpaceSavings,CloudTieringVolumeFreeSpacePolicyStatus:CloudTieringVolumeFreeSpacePolicyStatus,FilesNotTieringError:FilesNotTieringError,LocationOperationStatus:LocationOperationStatus,MicrosoftStorageSyncLocationOperationStatusHeaders:MicrosoftStorageSyncLocationOperationStatusHeaders,OperationDisplayInfo:OperationDisplayInfo,OperationDisplayResource:OperationDisplayResource,OperationEntity:OperationEntity,OperationEntityListResult:OperationEntityListResult,OperationProperties:OperationProperties,OperationResourceMetricSpecification:OperationResourceMetricSpecification,OperationResourceMetricSpecificationDimension:OperationResourceMetricSpecificationDimension,OperationResourceServiceSpecification:OperationResourceServiceSpecification,OperationStatus:OperationStatus,OperationStatusGetHeaders:OperationStatusGetHeaders,OperationsListHeaders:OperationsListHeaders,OperationsListNextHeaders:OperationsListNextHeaders,PostBackupResponse:PostBackupResponse,PostRestoreRequest:PostRestoreRequest,PreRestoreRequest:PreRestoreRequest,PrivateEndpoint:PrivateEndpoint,PrivateEndpointConnection:PrivateEndpointConnection,PrivateEndpointConnectionListResult:PrivateEndpointConnectionListResult,PrivateEndpointConnectionsCreateHeaders:PrivateEndpointConnectionsCreateHeaders,PrivateEndpointConnectionsDeleteHeaders:PrivateEndpointConnectionsDeleteHeaders,PrivateEndpointConnectionsListByStorageSyncServiceHeaders:PrivateEndpointConnectionsListByStorageSyncServiceHeaders,PrivateLinkResource:PrivateLinkResource,PrivateLinkResourceListResult:PrivateLinkResourceListResult,PrivateLinkServiceConnectionState:PrivateLinkServiceConnectionState,ProxyResource:ProxyResource,RecallActionParameters:RecallActionParameters,RegisteredServer:RegisteredServer,RegisteredServerArray:RegisteredServerArray,RegisteredServerCreateParameters:RegisteredServerCreateParameters,RegisteredServersCreateHeaders:RegisteredServersCreateHeaders,RegisteredServersDeleteHeaders:RegisteredServersDeleteHeaders,RegisteredServersGetHeaders:RegisteredServersGetHeaders,RegisteredServersListByStorageSyncServiceHeaders:RegisteredServersListByStorageSyncServiceHeaders,RegisteredServersTriggerRolloverHeaders:RegisteredServersTriggerRolloverHeaders,Resource:Resource,ResourcesMoveInfo:ResourcesMoveInfo,RestoreFileSpec:RestoreFileSpec,ServerEndpoint:ServerEndpoint,ServerEndpointArray:ServerEndpointArray,ServerEndpointBackgroundDataDownloadActivity:ServerEndpointBackgroundDataDownloadActivity,ServerEndpointCloudTieringStatus:ServerEndpointCloudTieringStatus,ServerEndpointCreateParameters:ServerEndpointCreateParameters,ServerEndpointFilesNotSyncingError:ServerEndpointFilesNotSyncingError,ServerEndpointRecallError:ServerEndpointRecallError,ServerEndpointRecallStatus:ServerEndpointRecallStatus,ServerEndpointSyncActivityStatus:ServerEndpointSyncActivityStatus,ServerEndpointSyncSessionStatus:ServerEndpointSyncSessionStatus,ServerEndpointSyncStatus:ServerEndpointSyncStatus,ServerEndpointUpdateParameters:ServerEndpointUpdateParameters,ServerEndpointsCreateHeaders:ServerEndpointsCreateHeaders,ServerEndpointsDeleteHeaders:ServerEndpointsDeleteHeaders,ServerEndpointsGetHeaders:ServerEndpointsGetHeaders,ServerEndpointsListBySyncGroupHeaders:ServerEndpointsListBySyncGroupHeaders,ServerEndpointsRecallActionHeaders:ServerEndpointsRecallActionHeaders,ServerEndpointsUpdateHeaders:ServerEndpointsUpdateHeaders,StorageSyncApiError:StorageSyncApiError,StorageSyncError:StorageSyncError,StorageSyncErrorDetails:StorageSyncErrorDetails,StorageSyncInnerErrorDetails:StorageSyncInnerErrorDetails,StorageSyncService:StorageSyncService,StorageSyncServiceArray:StorageSyncServiceArray,StorageSyncServiceCreateParameters:StorageSyncServiceCreateParameters,StorageSyncServiceUpdateParameters:StorageSyncServiceUpdateParameters,StorageSyncServicesCreateHeaders:StorageSyncServicesCreateHeaders,StorageSyncServicesDeleteHeaders:StorageSyncServicesDeleteHeaders,StorageSyncServicesGetHeaders:StorageSyncServicesGetHeaders,StorageSyncServicesListByResourceGroupHeaders:StorageSyncServicesListByResourceGroupHeaders,StorageSyncServicesListBySubscriptionHeaders:StorageSyncServicesListBySubscriptionHeaders,StorageSyncServicesUpdateHeaders:StorageSyncServicesUpdateHeaders,SubscriptionState:SubscriptionState,SyncGroup:SyncGroup,SyncGroupArray:SyncGroupArray,SyncGroupCreateParameters:SyncGroupCreateParameters,SyncGroupsCreateHeaders:SyncGroupsCreateHeaders,SyncGroupsDeleteHeaders:SyncGroupsDeleteHeaders,SyncGroupsGetHeaders:SyncGroupsGetHeaders,SyncGroupsListByStorageSyncServiceHeaders:SyncGroupsListByStorageSyncServiceHeaders,TrackedResource:TrackedResource,TriggerChangeDetectionParameters:TriggerChangeDetectionParameters,TriggerRolloverRequest:TriggerRolloverRequest,Workflow:Workflow,WorkflowArray:WorkflowArray,WorkflowsAbortHeaders:WorkflowsAbortHeaders,WorkflowsGetHeaders:WorkflowsGetHeaders,WorkflowsListByStorageSyncServiceHeaders:WorkflowsListByStorageSyncServiceHeaders});let accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2020-09-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},parameters={parameterPath:"parameters",mapper:CheckNameAvailabilityParameters},locationName={parameterPath:"locationName",mapper:{serializedName:"locationName",required:!0,type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{constraints:{MinLength:1},serializedName:"subscriptionId",required:!0,type:{name:"String"}}},parameters1={parameterPath:"parameters",mapper:StorageSyncServiceCreateParameters},resourceGroupName={parameterPath:"resourceGroupName",mapper:{constraints:{MaxLength:90,MinLength:1},serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},storageSyncServiceName={parameterPath:"storageSyncServiceName",mapper:{serializedName:"storageSyncServiceName",required:!0,type:{name:"String"}}},parameters2={parameterPath:["options","parameters"],mapper:StorageSyncServiceUpdateParameters},privateEndpointConnectionName={parameterPath:"privateEndpointConnectionName",mapper:{serializedName:"privateEndpointConnectionName",required:!0,type:{name:"String"}}},properties={parameterPath:"properties",mapper:PrivateEndpointConnection},parameters3={parameterPath:"parameters",mapper:SyncGroupCreateParameters},syncGroupName={parameterPath:"syncGroupName",mapper:{serializedName:"syncGroupName",required:!0,type:{name:"String"}}},parameters4={parameterPath:"parameters",mapper:CloudEndpointCreateParameters},cloudEndpointName={parameterPath:"cloudEndpointName",mapper:{serializedName:"cloudEndpointName",required:!0,type:{name:"String"}}},parameters5={parameterPath:"parameters",mapper:BackupRequest},parameters6={parameterPath:"parameters",mapper:PreRestoreRequest},parameters7={parameterPath:"parameters",mapper:PostRestoreRequest},parameters8={parameterPath:"parameters",mapper:TriggerChangeDetectionParameters},parameters9={parameterPath:"parameters",mapper:ServerEndpointCreateParameters},serverEndpointName={parameterPath:"serverEndpointName",mapper:{serializedName:"serverEndpointName",required:!0,type:{name:"String"}}},parameters10={parameterPath:["options","parameters"],mapper:ServerEndpointUpdateParameters},parameters11={parameterPath:"parameters",mapper:RecallActionParameters},serverId={parameterPath:"serverId",mapper:{serializedName:"serverId",required:!0,type:{name:"String"}}},parameters12={parameterPath:"parameters",mapper:RegisteredServerCreateParameters},parameters13={parameterPath:"parameters",mapper:TriggerRolloverRequest},workflowId={parameterPath:"workflowId",mapper:{serializedName:"workflowId",required:!0,type:{name:"String"}}},operationId={parameterPath:"operationId",mapper:{serializedName:"operationId",required:!0,type:{name:"String"}}};class OperationsImpl{constructor(e){this.client=e}list(r){let e=this.listPagingAll(r);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(r,e)}}}listPagingPage(i,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,r=null==s?void 0:s.continuationToken;var t;for(r||(setContinuationToken(t=(e=yield tslib.__await(this._list(i))).value||[],r=e.nextLink),yield yield tslib.__await(t));r;){e=yield tslib.__await(this._listNext(r,i)),r=e.nextLink;var a=e.value||[];setContinuationToken(a,r),yield yield tslib.__await(a)}})}listPagingAll(o){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,t;try{for(var a,i=!0,s=tslib.__asyncValues(this.listPagingPage(o));!(e=(a=yield tslib.__await(s.next())).done);i=!0){var n=a.value,i=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{i||e||!(t=s.return)||(yield tslib.__await(t.call(s)))}finally{if(r)throw r.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec)}}let serializer$a=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.StorageSync/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationEntityListResult,headersMapper:OperationsListHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$a},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationEntityListResult,headersMapper:OperationsListNextHeaders},default:{bodyMapper:StorageSyncError}},urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$a};class LroImpl{constructor(e,r,t,a=t.path,i=t.httpMethod){this.sendOperationFn=e,this.args=r,this.spec=t,this.requestPath=a,this.requestMethod=i}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(r){return tslib.__awaiter(this,void 0,void 0,function*(){var e=this.spec,e=tslib.__rest(e,["requestBody"]);return this.sendOperationFn(this.args,Object.assign(Object.assign({},e),{path:r,httpMethod:"GET"}))})}}class StorageSyncServicesImpl{constructor(e){this.client=e}listByResourceGroup(r,t){let e=this.listByResourceGroupPagingAll(r,t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByResourceGroupPagingPage(r,t,e)}}}listByResourceGroupPagingPage(r,t,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(r,t));yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(o,p){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,t;try{for(var a,i=!0,s=tslib.__asyncValues(this.listByResourceGroupPagingPage(o,p));!(e=(a=yield tslib.__await(s.next())).done);i=!0){var n=a.value,i=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{i||e||!(t=s.return)||(yield tslib.__await(t.call(s)))}finally{if(r)throw r.error}}})}listBySubscription(r){let e=this.listBySubscriptionPagingAll(r);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySubscriptionPagingPage(r,e)}}}listBySubscriptionPagingPage(r,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listBySubscription(r));yield yield tslib.__await(e.value||[])})}listBySubscriptionPagingAll(o){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,t;try{for(var a,i=!0,s=tslib.__asyncValues(this.listBySubscriptionPagingPage(o));!(e=(a=yield tslib.__await(s.next())).done);i=!0){var n=a.value,i=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{i||e||!(t=s.return)||(yield tslib.__await(t.call(s)))}finally{if(r)throw r.error}}})}checkNameAvailability(e,r,t){return this.client.sendOperationRequest({locationName:e,parameters:r,options:t},checkNameAvailabilityOperationSpec)}beginCreate(r,t,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,parameters:a,options:i},createOperationSpec$5),e=new coreLro.LroEngine(e,{resumeFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs});return yield e.poll(),e})}beginCreateAndWait(e,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreate(e,r,t,a)).pollUntilDone()})}get(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,options:t},getOperationSpec$7)}beginUpdate(r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,options:a},updateOperationSpec$1),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,r,t)).pollUntilDone()})}beginDelete(r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,options:a},deleteOperationSpec$5),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,r,t)).pollUntilDone()})}_listByResourceGroup(e,r){return this.client.sendOperationRequest({resourceGroupName:e,options:r},listByResourceGroupOperationSpec)}_listBySubscription(e){return this.client.sendOperationRequest({options:e},listBySubscriptionOperationSpec)}}let serializer$9=coreClient__namespace.createSerializer(Mappers,!1),checkNameAvailabilityOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/locations/{locationName}/checkNameAvailability",httpMethod:"POST",responses:{200:{bodyMapper:CheckNameAvailabilityResult}},requestBody:parameters,queryParameters:[apiVersion],urlParameters:[$host,locationName,subscriptionId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$9},createOperationSpec$5={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}",httpMethod:"PUT",responses:{200:{bodyMapper:StorageSyncService},201:{bodyMapper:StorageSyncService},202:{bodyMapper:StorageSyncService},204:{bodyMapper:StorageSyncService},default:{bodyMapper:StorageSyncError}},requestBody:parameters1,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$9},getOperationSpec$7={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}",httpMethod:"GET",responses:{200:{bodyMapper:StorageSyncService,headersMapper:StorageSyncServicesGetHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName],headerParameters:[accept],serializer:serializer$9},updateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:StorageSyncService,headersMapper:StorageSyncServicesUpdateHeaders},201:{bodyMapper:StorageSyncService,headersMapper:StorageSyncServicesUpdateHeaders},202:{bodyMapper:StorageSyncService,headersMapper:StorageSyncServicesUpdateHeaders},204:{bodyMapper:StorageSyncService,headersMapper:StorageSyncServicesUpdateHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters2,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$9},deleteOperationSpec$5={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}",httpMethod:"DELETE",responses:{200:{headersMapper:StorageSyncServicesDeleteHeaders},201:{headersMapper:StorageSyncServicesDeleteHeaders},202:{headersMapper:StorageSyncServicesDeleteHeaders},204:{headersMapper:StorageSyncServicesDeleteHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName],headerParameters:[accept],serializer:serializer$9},listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices",httpMethod:"GET",responses:{200:{bodyMapper:StorageSyncServiceArray,headersMapper:StorageSyncServicesListByResourceGroupHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer$9},listBySubscriptionOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/storageSyncServices",httpMethod:"GET",responses:{200:{bodyMapper:StorageSyncServiceArray,headersMapper:StorageSyncServicesListBySubscriptionHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$9};class PrivateLinkResourcesImpl{constructor(e){this.client=e}listByStorageSyncService(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,options:t},listByStorageSyncServiceOperationSpec$4)}}let serializer$8=coreClient__namespace.createSerializer(Mappers,!1),listByStorageSyncServiceOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateLinkResources",httpMethod:"GET",responses:{200:{bodyMapper:PrivateLinkResourceListResult}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName],headerParameters:[accept],serializer:serializer$8};class PrivateEndpointConnectionsImpl{constructor(e){this.client=e}listByStorageSyncService(r,t,a){let e=this.listByStorageSyncServicePagingAll(r,t,a);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByStorageSyncServicePagingPage(r,t,a,e)}}}listByStorageSyncServicePagingPage(r,t,a,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByStorageSyncService(r,t,a));yield yield tslib.__await(e.value||[])})}listByStorageSyncServicePagingAll(o,p,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,t;try{for(var a,i=!0,s=tslib.__asyncValues(this.listByStorageSyncServicePagingPage(o,p,l));!(e=(a=yield tslib.__await(s.next())).done);i=!0){var n=a.value,i=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{i||e||!(t=s.return)||(yield tslib.__await(t.call(s)))}finally{if(r)throw r.error}}})}get(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,privateEndpointConnectionName:t,options:a},getOperationSpec$6)}beginCreate(r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,privateEndpointConnectionName:a,properties:i,options:s},createOperationSpec$4),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateAndWait(e,r,t,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreate(e,r,t,a,i)).pollUntilDone()})}beginDelete(r,t,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,privateEndpointConnectionName:a,options:i},deleteOperationSpec$4),e=new coreLro.LroEngine(e,{resumeFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,r,t,a)).pollUntilDone()})}_listByStorageSyncService(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,options:t},listByStorageSyncServiceOperationSpec$3)}}let serializer$7=coreClient__namespace.createSerializer(Mappers,!1),getOperationSpec$6={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnection},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,privateEndpointConnectionName],headerParameters:[accept],serializer:serializer$7},createOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"PUT",responses:{200:{bodyMapper:PrivateEndpointConnection},201:{bodyMapper:PrivateEndpointConnection},202:{bodyMapper:PrivateEndpointConnection},204:{bodyMapper:PrivateEndpointConnection},default:{bodyMapper:StorageSyncError}},requestBody:properties,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,privateEndpointConnectionName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$7},deleteOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,privateEndpointConnectionName],headerParameters:[accept],serializer:serializer$7},listByStorageSyncServiceOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnectionListResult,headersMapper:PrivateEndpointConnectionsListByStorageSyncServiceHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName],headerParameters:[accept],serializer:serializer$7};class SyncGroupsImpl{constructor(e){this.client=e}listByStorageSyncService(r,t,a){let e=this.listByStorageSyncServicePagingAll(r,t,a);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByStorageSyncServicePagingPage(r,t,a,e)}}}listByStorageSyncServicePagingPage(r,t,a,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByStorageSyncService(r,t,a));yield yield tslib.__await(e.value||[])})}listByStorageSyncServicePagingAll(o,p,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,t;try{for(var a,i=!0,s=tslib.__asyncValues(this.listByStorageSyncServicePagingPage(o,p,l));!(e=(a=yield tslib.__await(s.next())).done);i=!0){var n=a.value,i=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{i||e||!(t=s.return)||(yield tslib.__await(t.call(s)))}finally{if(r)throw r.error}}})}_listByStorageSyncService(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,options:t},listByStorageSyncServiceOperationSpec$2)}create(e,r,t,a,i){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,syncGroupName:t,parameters:a,options:i},createOperationSpec$3)}get(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,syncGroupName:t,options:a},getOperationSpec$5)}delete(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,syncGroupName:t,options:a},deleteOperationSpec$3)}}let serializer$6=coreClient__namespace.createSerializer(Mappers,!1),listByStorageSyncServiceOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups",httpMethod:"GET",responses:{200:{bodyMapper:SyncGroupArray,headersMapper:SyncGroupsListByStorageSyncServiceHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName],headerParameters:[accept],serializer:serializer$6},createOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}",httpMethod:"PUT",responses:{200:{bodyMapper:SyncGroup,headersMapper:SyncGroupsCreateHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters3,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$6},getOperationSpec$5={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}",httpMethod:"GET",responses:{200:{bodyMapper:SyncGroup,headersMapper:SyncGroupsGetHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName],headerParameters:[accept],serializer:serializer$6},deleteOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}",httpMethod:"DELETE",responses:{200:{headersMapper:SyncGroupsDeleteHeaders},204:{},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName],headerParameters:[accept],serializer:serializer$6};class CloudEndpointsImpl{constructor(e){this.client=e}listBySyncGroup(r,t,a,i){let e=this.listBySyncGroupPagingAll(r,t,a,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySyncGroupPagingPage(r,t,a,i,e)}}}listBySyncGroupPagingPage(r,t,a,i,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listBySyncGroup(r,t,a,i));yield yield tslib.__await(e.value||[])})}listBySyncGroupPagingAll(o,p,l,d){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,t;try{for(var a,i=!0,s=tslib.__asyncValues(this.listBySyncGroupPagingPage(o,p,l,d));!(e=(a=yield tslib.__await(s.next())).done);i=!0){var n=a.value,i=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{i||e||!(t=s.return)||(yield tslib.__await(t.call(s)))}finally{if(r)throw r.error}}})}beginCreate(r,t,a,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,cloudEndpointName:i,parameters:s,options:o},createOperationSpec$2),e=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield e.poll(),e})}beginCreateAndWait(e,r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreate(e,r,t,a,i,s)).pollUntilDone()})}get(e,r,t,a,i){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,syncGroupName:t,cloudEndpointName:a,options:i},getOperationSpec$4)}beginDelete(r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,cloudEndpointName:i,options:s},deleteOperationSpec$2),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,r,t,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,r,t,a,i)).pollUntilDone()})}_listBySyncGroup(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,syncGroupName:t,options:a},listBySyncGroupOperationSpec$1)}beginPreBackup(r,t,a,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,cloudEndpointName:i,parameters:s,options:o},preBackupOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield e.poll(),e})}beginPreBackupAndWait(e,r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginPreBackup(e,r,t,a,i,s)).pollUntilDone()})}beginPostBackup(r,t,a,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,cloudEndpointName:i,parameters:s,options:o},postBackupOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield e.poll(),e})}beginPostBackupAndWait(e,r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginPostBackup(e,r,t,a,i,s)).pollUntilDone()})}beginPreRestore(r,t,a,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,cloudEndpointName:i,parameters:s,options:o},preRestoreOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield e.poll(),e})}beginPreRestoreAndWait(e,r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginPreRestore(e,r,t,a,i,s)).pollUntilDone()})}restoreheartbeat(e,r,t,a,i){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,syncGroupName:t,cloudEndpointName:a,options:i},restoreheartbeatOperationSpec)}beginPostRestore(r,t,a,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,cloudEndpointName:i,parameters:s,options:o},postRestoreOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield e.poll(),e})}beginPostRestoreAndWait(e,r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginPostRestore(e,r,t,a,i,s)).pollUntilDone()})}beginTriggerChangeDetection(r,t,a,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,cloudEndpointName:i,parameters:s,options:o},triggerChangeDetectionOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield e.poll(),e})}beginTriggerChangeDetectionAndWait(e,r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginTriggerChangeDetection(e,r,t,a,i,s)).pollUntilDone()})}}let serializer$5=coreClient__namespace.createSerializer(Mappers,!1),createOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}",httpMethod:"PUT",responses:{200:{bodyMapper:CloudEndpoint,headersMapper:CloudEndpointsCreateHeaders},201:{bodyMapper:CloudEndpoint,headersMapper:CloudEndpointsCreateHeaders},202:{bodyMapper:CloudEndpoint,headersMapper:CloudEndpointsCreateHeaders},204:{bodyMapper:CloudEndpoint,headersMapper:CloudEndpointsCreateHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters4,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$5},getOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}",httpMethod:"GET",responses:{200:{bodyMapper:CloudEndpoint,headersMapper:CloudEndpointsGetHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName],headerParameters:[accept],serializer:serializer$5},deleteOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}",httpMethod:"DELETE",responses:{200:{headersMapper:CloudEndpointsDeleteHeaders},201:{headersMapper:CloudEndpointsDeleteHeaders},202:{headersMapper:CloudEndpointsDeleteHeaders},204:{headersMapper:CloudEndpointsDeleteHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName],headerParameters:[accept],serializer:serializer$5},listBySyncGroupOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints",httpMethod:"GET",responses:{200:{bodyMapper:CloudEndpointArray,headersMapper:CloudEndpointsListBySyncGroupHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName],headerParameters:[accept],serializer:serializer$5},preBackupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/prebackup",httpMethod:"POST",responses:{200:{headersMapper:CloudEndpointsPreBackupHeaders},201:{headersMapper:CloudEndpointsPreBackupHeaders},202:{headersMapper:CloudEndpointsPreBackupHeaders},204:{headersMapper:CloudEndpointsPreBackupHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters5,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$5},postBackupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/postbackup",httpMethod:"POST",responses:{200:{bodyMapper:PostBackupResponse,headersMapper:CloudEndpointsPostBackupHeaders},201:{bodyMapper:PostBackupResponse,headersMapper:CloudEndpointsPostBackupHeaders},202:{bodyMapper:PostBackupResponse,headersMapper:CloudEndpointsPostBackupHeaders},204:{bodyMapper:PostBackupResponse,headersMapper:CloudEndpointsPostBackupHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters5,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$5},preRestoreOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/prerestore",httpMethod:"POST",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:StorageSyncError}},requestBody:parameters6,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$5},restoreheartbeatOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/restoreheartbeat",httpMethod:"POST",responses:{200:{headersMapper:CloudEndpointsRestoreheartbeatHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName],headerParameters:[accept],serializer:serializer$5},postRestoreOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/postrestore",httpMethod:"POST",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:StorageSyncError}},requestBody:parameters7,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$5},triggerChangeDetectionOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/triggerChangeDetection",httpMethod:"POST",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:StorageSyncError}},requestBody:parameters8,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,cloudEndpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$5};class ServerEndpointsImpl{constructor(e){this.client=e}listBySyncGroup(r,t,a,i){let e=this.listBySyncGroupPagingAll(r,t,a,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySyncGroupPagingPage(r,t,a,i,e)}}}listBySyncGroupPagingPage(r,t,a,i,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listBySyncGroup(r,t,a,i));yield yield tslib.__await(e.value||[])})}listBySyncGroupPagingAll(o,p,l,d){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,t;try{for(var a,i=!0,s=tslib.__asyncValues(this.listBySyncGroupPagingPage(o,p,l,d));!(e=(a=yield tslib.__await(s.next())).done);i=!0){var n=a.value,i=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{i||e||!(t=s.return)||(yield tslib.__await(t.call(s)))}finally{if(r)throw r.error}}})}beginCreate(r,t,a,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,serverEndpointName:i,parameters:s,options:o},createOperationSpec$1),e=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield e.poll(),e})}beginCreateAndWait(e,r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreate(e,r,t,a,i,s)).pollUntilDone()})}beginUpdate(r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,serverEndpointName:i,options:s},updateOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,r,t,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,r,t,a,i)).pollUntilDone()})}get(e,r,t,a,i){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,syncGroupName:t,serverEndpointName:a,options:i},getOperationSpec$3)}beginDelete(r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,serverEndpointName:i,options:s},deleteOperationSpec$1),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,r,t,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,r,t,a,i)).pollUntilDone()})}_listBySyncGroup(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,syncGroupName:t,options:a},listBySyncGroupOperationSpec)}beginRecallAction(r,t,a,i,s,o){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,syncGroupName:a,serverEndpointName:i,parameters:s,options:o},recallActionOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==o?void 0:o.resumeFrom,intervalInMs:null==o?void 0:o.updateIntervalInMs});return yield e.poll(),e})}beginRecallActionAndWait(e,r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginRecallAction(e,r,t,a,i,s)).pollUntilDone()})}}let serializer$4=coreClient__namespace.createSerializer(Mappers,!1),createOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}",httpMethod:"PUT",responses:{200:{bodyMapper:ServerEndpoint,headersMapper:ServerEndpointsCreateHeaders},201:{bodyMapper:ServerEndpoint,headersMapper:ServerEndpointsCreateHeaders},202:{bodyMapper:ServerEndpoint,headersMapper:ServerEndpointsCreateHeaders},204:{bodyMapper:ServerEndpoint,headersMapper:ServerEndpointsCreateHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters9,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,serverEndpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$4},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}",httpMethod:"PATCH",responses:{200:{bodyMapper:ServerEndpoint,headersMapper:ServerEndpointsUpdateHeaders},201:{bodyMapper:ServerEndpoint,headersMapper:ServerEndpointsUpdateHeaders},202:{bodyMapper:ServerEndpoint,headersMapper:ServerEndpointsUpdateHeaders},204:{bodyMapper:ServerEndpoint,headersMapper:ServerEndpointsUpdateHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters10,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,serverEndpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$4},getOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}",httpMethod:"GET",responses:{200:{bodyMapper:ServerEndpoint,headersMapper:ServerEndpointsGetHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,serverEndpointName],headerParameters:[accept],serializer:serializer$4},deleteOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}",httpMethod:"DELETE",responses:{200:{headersMapper:ServerEndpointsDeleteHeaders},201:{headersMapper:ServerEndpointsDeleteHeaders},202:{headersMapper:ServerEndpointsDeleteHeaders},204:{headersMapper:ServerEndpointsDeleteHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,serverEndpointName],headerParameters:[accept],serializer:serializer$4},listBySyncGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints",httpMethod:"GET",responses:{200:{bodyMapper:ServerEndpointArray,headersMapper:ServerEndpointsListBySyncGroupHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName],headerParameters:[accept],serializer:serializer$4},recallActionOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}/recallAction",httpMethod:"POST",responses:{200:{headersMapper:ServerEndpointsRecallActionHeaders},201:{headersMapper:ServerEndpointsRecallActionHeaders},202:{headersMapper:ServerEndpointsRecallActionHeaders},204:{headersMapper:ServerEndpointsRecallActionHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters11,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,syncGroupName,serverEndpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$4};class RegisteredServersImpl{constructor(e){this.client=e}listByStorageSyncService(r,t,a){let e=this.listByStorageSyncServicePagingAll(r,t,a);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByStorageSyncServicePagingPage(r,t,a,e)}}}listByStorageSyncServicePagingPage(r,t,a,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByStorageSyncService(r,t,a));yield yield tslib.__await(e.value||[])})}listByStorageSyncServicePagingAll(o,p,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,t;try{for(var a,i=!0,s=tslib.__asyncValues(this.listByStorageSyncServicePagingPage(o,p,l));!(e=(a=yield tslib.__await(s.next())).done);i=!0){var n=a.value,i=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{i||e||!(t=s.return)||(yield tslib.__await(t.call(s)))}finally{if(r)throw r.error}}})}_listByStorageSyncService(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,options:t},listByStorageSyncServiceOperationSpec$1)}get(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,serverId:t,options:a},getOperationSpec$2)}beginCreate(r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,serverId:a,parameters:i,options:s},createOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateAndWait(e,r,t,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreate(e,r,t,a,i)).pollUntilDone()})}beginDelete(r,t,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,serverId:a,options:i},deleteOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,r,t,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,r,t,a)).pollUntilDone()})}beginTriggerRollover(r,t,a,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){let n=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((i,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let e,t=void 0,a=null==(e=i.options)?void 0:e.onResponse;var r=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,r)=>{t=e,null!=a&&a(e,r)}})});return{flatResponse:yield n(r,s),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:r,storageSyncServiceName:t,serverId:a,parameters:i,options:s},triggerRolloverOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginTriggerRolloverAndWait(e,r,t,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginTriggerRollover(e,r,t,a,i)).pollUntilDone()})}}let serializer$3=coreClient__namespace.createSerializer(Mappers,!1),listByStorageSyncServiceOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers",httpMethod:"GET",responses:{200:{bodyMapper:RegisteredServerArray,headersMapper:RegisteredServersListByStorageSyncServiceHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName],headerParameters:[accept],serializer:serializer$3},getOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}",httpMethod:"GET",responses:{200:{bodyMapper:RegisteredServer,headersMapper:RegisteredServersGetHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,serverId],headerParameters:[accept],serializer:serializer$3},createOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}",httpMethod:"PUT",responses:{200:{bodyMapper:RegisteredServer,headersMapper:RegisteredServersCreateHeaders},201:{bodyMapper:RegisteredServer,headersMapper:RegisteredServersCreateHeaders},202:{bodyMapper:RegisteredServer,headersMapper:RegisteredServersCreateHeaders},204:{bodyMapper:RegisteredServer,headersMapper:RegisteredServersCreateHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters12,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,serverId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$3},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}",httpMethod:"DELETE",responses:{200:{headersMapper:RegisteredServersDeleteHeaders},201:{headersMapper:RegisteredServersDeleteHeaders},202:{headersMapper:RegisteredServersDeleteHeaders},204:{headersMapper:RegisteredServersDeleteHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,serverId],headerParameters:[accept],serializer:serializer$3},triggerRolloverOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}/triggerRollover",httpMethod:"POST",responses:{200:{headersMapper:RegisteredServersTriggerRolloverHeaders},201:{headersMapper:RegisteredServersTriggerRolloverHeaders},202:{headersMapper:RegisteredServersTriggerRolloverHeaders},204:{headersMapper:RegisteredServersTriggerRolloverHeaders},default:{bodyMapper:StorageSyncError}},requestBody:parameters13,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,serverId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$3};class WorkflowsImpl{constructor(e){this.client=e}listByStorageSyncService(r,t,a){let e=this.listByStorageSyncServicePagingAll(r,t,a);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByStorageSyncServicePagingPage(r,t,a,e)}}}listByStorageSyncServicePagingPage(r,t,a,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByStorageSyncService(r,t,a));yield yield tslib.__await(e.value||[])})}listByStorageSyncServicePagingAll(o,p,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,t;try{for(var a,i=!0,s=tslib.__asyncValues(this.listByStorageSyncServicePagingPage(o,p,l));!(e=(a=yield tslib.__await(s.next())).done);i=!0){var n=a.value,i=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{i||e||!(t=s.return)||(yield tslib.__await(t.call(s)))}finally{if(r)throw r.error}}})}_listByStorageSyncService(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,options:t},listByStorageSyncServiceOperationSpec)}get(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,workflowId:t,options:a},getOperationSpec$1)}abort(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,storageSyncServiceName:r,workflowId:t,options:a},abortOperationSpec)}}let serializer$2=coreClient__namespace.createSerializer(Mappers,!1),listByStorageSyncServiceOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows",httpMethod:"GET",responses:{200:{bodyMapper:WorkflowArray,headersMapper:WorkflowsListByStorageSyncServiceHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName],headerParameters:[accept],serializer:serializer$2},getOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows/{workflowId}",httpMethod:"GET",responses:{200:{bodyMapper:Workflow,headersMapper:WorkflowsGetHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,workflowId],headerParameters:[accept],serializer:serializer$2},abortOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows/{workflowId}/abort",httpMethod:"POST",responses:{200:{headersMapper:WorkflowsAbortHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,storageSyncServiceName,workflowId],headerParameters:[accept],serializer:serializer$2};class OperationStatusOperationsImpl{constructor(e){this.client=e}get(e,r,t,a,i){return this.client.sendOperationRequest({resourceGroupName:e,locationName:r,workflowId:t,operationId:a,options:i},getOperationSpec)}}let serializer$1=coreClient__namespace.createSerializer(Mappers,!1),getOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/locations/{locationName}/workflows/{workflowId}/operations/{operationId}",httpMethod:"GET",responses:{200:{bodyMapper:OperationStatus,headersMapper:OperationStatusGetHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,locationName,subscriptionId,resourceGroupName,workflowId,operationId],headerParameters:[accept],serializer:serializer$1};class MicrosoftStorageSync extends coreClient__namespace.ServiceClient{constructor(e,r,t){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===r)throw new Error("'subscriptionId' cannot be null");var a,i="azsdk-js-arm-storagesync/9.1.1",i=(t=t||{}).userAgentOptions&&t.userAgentOptions.userAgentPrefix?t.userAgentOptions.userAgentPrefix+" "+i:i,i=Object.assign(Object.assign(Object.assign({},{requestContentType:"application/json; charset=utf-8",credential:e}),t),{userAgentOptions:{userAgentPrefix:i},endpoint:null!=(i=null!=(i=t.endpoint)?i:t.baseUri)?i:"https://management.azure.com"});super(i);let s=!1;null!=t&&t.pipeline&&0<t.pipeline.getOrderedPolicies().length&&(a=t.pipeline.getOrderedPolicies(),s=a.some(e=>e.name===coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName)),t&&t.pipeline&&0!=t.pipeline.getOrderedPolicies().length&&s||(this.pipeline.removePolicy({name:coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName}),this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({credential:e,scopes:null!=(a=i.credentialScopes)?a:i.endpoint+"/.default",challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}}))),this.subscriptionId=r,this.$host=t.$host||"https://management.azure.com",this.apiVersion=t.apiVersion||"2020-09-01",this.operations=new OperationsImpl(this),this.storageSyncServices=new StorageSyncServicesImpl(this),this.privateLinkResources=new PrivateLinkResourcesImpl(this),this.privateEndpointConnections=new PrivateEndpointConnectionsImpl(this),this.syncGroups=new SyncGroupsImpl(this),this.cloudEndpoints=new CloudEndpointsImpl(this),this.serverEndpoints=new ServerEndpointsImpl(this),this.registeredServers=new RegisteredServersImpl(this),this.workflows=new WorkflowsImpl(this),this.operationStatusOperations=new OperationStatusOperationsImpl(this),this.addCustomApiVersionPolicy(t.apiVersion)}addCustomApiVersionPolicy(i){i&&this.pipeline.addPolicy({name:"CustomApiVersionPolicy",sendRequest(t,a){return tslib.__awaiter(this,void 0,void 0,function*(){var e,r=t.url.split("?");return 1<r.length&&(e=r[1].split("&").map(e=>-1<e.indexOf("api-version")?"api-version="+i:e),t.url=r[0]+"?"+e.join("&")),a(t)})}})}locationOperationStatus(e,r,t){return this.sendOperationRequest({locationName:e,operationId:r,options:t},locationOperationStatusOperationSpec)}}let serializer=coreClient__namespace.createSerializer(Mappers,!1),locationOperationStatusOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/locations/{locationName}/operations/{operationId}",httpMethod:"GET",responses:{200:{bodyMapper:LocationOperationStatus,headersMapper:MicrosoftStorageSyncLocationOperationStatusHeaders},default:{bodyMapper:StorageSyncError}},queryParameters:[apiVersion],urlParameters:[$host,locationName,subscriptionId,operationId],headerParameters:[accept],serializer:serializer};exports.MicrosoftStorageSync=MicrosoftStorageSync,exports.getContinuationToken=getContinuationToken;