@azure/arm-storagesync 9.0.0-alpha.20220413.1 → 9.0.1-alpha.20220505.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +11 -0
  3. package/dist/index.js +238 -123
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/cloudEndpointsCreateSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/cloudEndpointsCreateSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/cloudEndpointsCreateSample.js +39 -0
  10. package/dist-esm/samples-dev/cloudEndpointsCreateSample.js.map +1 -0
  11. package/dist-esm/samples-dev/cloudEndpointsDeleteSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/cloudEndpointsDeleteSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/cloudEndpointsDeleteSample.js +33 -0
  14. package/dist-esm/samples-dev/cloudEndpointsDeleteSample.js.map +1 -0
  15. package/dist-esm/samples-dev/cloudEndpointsGetSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/cloudEndpointsGetSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/cloudEndpointsGetSample.js +33 -0
  18. package/dist-esm/samples-dev/cloudEndpointsGetSample.js.map +1 -0
  19. package/dist-esm/samples-dev/cloudEndpointsListBySyncGroupSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/cloudEndpointsListBySyncGroupSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/cloudEndpointsListBySyncGroupSample.js +46 -0
  22. package/dist-esm/samples-dev/cloudEndpointsListBySyncGroupSample.js.map +1 -0
  23. package/dist-esm/samples-dev/cloudEndpointsPostBackupSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/cloudEndpointsPostBackupSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/cloudEndpointsPostBackupSample.js +36 -0
  26. package/dist-esm/samples-dev/cloudEndpointsPostBackupSample.js.map +1 -0
  27. package/dist-esm/samples-dev/cloudEndpointsPostRestoreSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/cloudEndpointsPostRestoreSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/cloudEndpointsPostRestoreSample.js +44 -0
  30. package/dist-esm/samples-dev/cloudEndpointsPostRestoreSample.js.map +1 -0
  31. package/dist-esm/samples-dev/cloudEndpointsPreBackupSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/cloudEndpointsPreBackupSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/cloudEndpointsPreBackupSample.js +36 -0
  34. package/dist-esm/samples-dev/cloudEndpointsPreBackupSample.js.map +1 -0
  35. package/dist-esm/samples-dev/cloudEndpointsPreRestoreSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/cloudEndpointsPreRestoreSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/cloudEndpointsPreRestoreSample.js +42 -0
  38. package/dist-esm/samples-dev/cloudEndpointsPreRestoreSample.js.map +1 -0
  39. package/dist-esm/samples-dev/cloudEndpointsRestoreheartbeatSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/cloudEndpointsRestoreheartbeatSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/cloudEndpointsRestoreheartbeatSample.js +33 -0
  42. package/dist-esm/samples-dev/cloudEndpointsRestoreheartbeatSample.js.map +1 -0
  43. package/dist-esm/samples-dev/cloudEndpointsTriggerChangeDetectionSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/cloudEndpointsTriggerChangeDetectionSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/cloudEndpointsTriggerChangeDetectionSample.js +37 -0
  46. package/dist-esm/samples-dev/cloudEndpointsTriggerChangeDetectionSample.js.map +1 -0
  47. package/dist-esm/samples-dev/locationOperationStatusSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/locationOperationStatusSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/locationOperationStatusSample.js +31 -0
  50. package/dist-esm/samples-dev/locationOperationStatusSample.js.map +1 -0
  51. package/dist-esm/samples-dev/operationStatusGetSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/operationStatusGetSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/operationStatusGetSample.js +33 -0
  54. package/dist-esm/samples-dev/operationStatusGetSample.js.map +1 -0
  55. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  58. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  59. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +38 -0
  62. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -0
  63. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +32 -0
  66. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  67. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +32 -0
  70. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  71. package/dist-esm/samples-dev/privateEndpointConnectionsListByStorageSyncServiceSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/privateEndpointConnectionsListByStorageSyncServiceSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/privateEndpointConnectionsListByStorageSyncServiceSample.js +45 -0
  74. package/dist-esm/samples-dev/privateEndpointConnectionsListByStorageSyncServiceSample.js.map +1 -0
  75. package/dist-esm/samples-dev/privateLinkResourcesListByStorageSyncServiceSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/privateLinkResourcesListByStorageSyncServiceSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/privateLinkResourcesListByStorageSyncServiceSample.js +31 -0
  78. package/dist-esm/samples-dev/privateLinkResourcesListByStorageSyncServiceSample.js.map +1 -0
  79. package/dist-esm/samples-dev/registeredServersCreateSample.d.ts +2 -0
  80. package/dist-esm/samples-dev/registeredServersCreateSample.d.ts.map +1 -0
  81. package/dist-esm/samples-dev/registeredServersCreateSample.js +40 -0
  82. package/dist-esm/samples-dev/registeredServersCreateSample.js.map +1 -0
  83. package/dist-esm/samples-dev/registeredServersDeleteSample.d.ts +2 -0
  84. package/dist-esm/samples-dev/registeredServersDeleteSample.d.ts.map +1 -0
  85. package/dist-esm/samples-dev/registeredServersDeleteSample.js +32 -0
  86. package/dist-esm/samples-dev/registeredServersDeleteSample.js.map +1 -0
  87. package/dist-esm/samples-dev/registeredServersGetSample.d.ts +2 -0
  88. package/dist-esm/samples-dev/registeredServersGetSample.d.ts.map +1 -0
  89. package/dist-esm/samples-dev/registeredServersGetSample.js +32 -0
  90. package/dist-esm/samples-dev/registeredServersGetSample.js.map +1 -0
  91. package/dist-esm/samples-dev/registeredServersListByStorageSyncServiceSample.d.ts +2 -0
  92. package/dist-esm/samples-dev/registeredServersListByStorageSyncServiceSample.d.ts.map +1 -0
  93. package/dist-esm/samples-dev/registeredServersListByStorageSyncServiceSample.js +45 -0
  94. package/dist-esm/samples-dev/registeredServersListByStorageSyncServiceSample.js.map +1 -0
  95. package/dist-esm/samples-dev/registeredServersTriggerRolloverSample.d.ts +2 -0
  96. package/dist-esm/samples-dev/registeredServersTriggerRolloverSample.d.ts.map +1 -0
  97. package/dist-esm/samples-dev/registeredServersTriggerRolloverSample.js +35 -0
  98. package/dist-esm/samples-dev/registeredServersTriggerRolloverSample.js.map +1 -0
  99. package/dist-esm/samples-dev/serverEndpointsCreateSample.d.ts +2 -0
  100. package/dist-esm/samples-dev/serverEndpointsCreateSample.d.ts.map +1 -0
  101. package/dist-esm/samples-dev/serverEndpointsCreateSample.js +45 -0
  102. package/dist-esm/samples-dev/serverEndpointsCreateSample.js.map +1 -0
  103. package/dist-esm/samples-dev/serverEndpointsDeleteSample.d.ts +2 -0
  104. package/dist-esm/samples-dev/serverEndpointsDeleteSample.d.ts.map +1 -0
  105. package/dist-esm/samples-dev/serverEndpointsDeleteSample.js +33 -0
  106. package/dist-esm/samples-dev/serverEndpointsDeleteSample.js.map +1 -0
  107. package/dist-esm/samples-dev/serverEndpointsGetSample.d.ts +2 -0
  108. package/dist-esm/samples-dev/serverEndpointsGetSample.d.ts.map +1 -0
  109. package/dist-esm/samples-dev/serverEndpointsGetSample.js +33 -0
  110. package/dist-esm/samples-dev/serverEndpointsGetSample.js.map +1 -0
  111. package/dist-esm/samples-dev/serverEndpointsListBySyncGroupSample.d.ts +2 -0
  112. package/dist-esm/samples-dev/serverEndpointsListBySyncGroupSample.d.ts.map +1 -0
  113. package/dist-esm/samples-dev/serverEndpointsListBySyncGroupSample.js +46 -0
  114. package/dist-esm/samples-dev/serverEndpointsListBySyncGroupSample.js.map +1 -0
  115. package/dist-esm/samples-dev/serverEndpointsRecallActionSample.d.ts +2 -0
  116. package/dist-esm/samples-dev/serverEndpointsRecallActionSample.d.ts.map +1 -0
  117. package/dist-esm/samples-dev/serverEndpointsRecallActionSample.js +34 -0
  118. package/dist-esm/samples-dev/serverEndpointsRecallActionSample.js.map +1 -0
  119. package/dist-esm/samples-dev/serverEndpointsUpdateSample.d.ts +2 -0
  120. package/dist-esm/samples-dev/serverEndpointsUpdateSample.d.ts.map +1 -0
  121. package/dist-esm/samples-dev/serverEndpointsUpdateSample.js +41 -0
  122. package/dist-esm/samples-dev/serverEndpointsUpdateSample.js.map +1 -0
  123. package/dist-esm/samples-dev/storageSyncServicesCheckNameAvailabilitySample.d.ts +2 -0
  124. package/dist-esm/samples-dev/storageSyncServicesCheckNameAvailabilitySample.d.ts.map +1 -0
  125. package/dist-esm/samples-dev/storageSyncServicesCheckNameAvailabilitySample.js +55 -0
  126. package/dist-esm/samples-dev/storageSyncServicesCheckNameAvailabilitySample.js.map +1 -0
  127. package/dist-esm/samples-dev/storageSyncServicesCreateSample.d.ts +2 -0
  128. package/dist-esm/samples-dev/storageSyncServicesCreateSample.d.ts.map +1 -0
  129. package/dist-esm/samples-dev/storageSyncServicesCreateSample.js +36 -0
  130. package/dist-esm/samples-dev/storageSyncServicesCreateSample.js.map +1 -0
  131. package/dist-esm/samples-dev/storageSyncServicesDeleteSample.d.ts +2 -0
  132. package/dist-esm/samples-dev/storageSyncServicesDeleteSample.d.ts.map +1 -0
  133. package/dist-esm/samples-dev/storageSyncServicesDeleteSample.js +31 -0
  134. package/dist-esm/samples-dev/storageSyncServicesDeleteSample.js.map +1 -0
  135. package/dist-esm/samples-dev/storageSyncServicesGetSample.d.ts +2 -0
  136. package/dist-esm/samples-dev/storageSyncServicesGetSample.d.ts.map +1 -0
  137. package/dist-esm/samples-dev/storageSyncServicesGetSample.js +31 -0
  138. package/dist-esm/samples-dev/storageSyncServicesGetSample.js.map +1 -0
  139. package/dist-esm/samples-dev/storageSyncServicesListByResourceGroupSample.d.ts +2 -0
  140. package/dist-esm/samples-dev/storageSyncServicesListByResourceGroupSample.d.ts.map +1 -0
  141. package/dist-esm/samples-dev/storageSyncServicesListByResourceGroupSample.js +44 -0
  142. package/dist-esm/samples-dev/storageSyncServicesListByResourceGroupSample.js.map +1 -0
  143. package/dist-esm/samples-dev/storageSyncServicesListBySubscriptionSample.d.ts +2 -0
  144. package/dist-esm/samples-dev/storageSyncServicesListBySubscriptionSample.d.ts.map +1 -0
  145. package/dist-esm/samples-dev/storageSyncServicesListBySubscriptionSample.js +43 -0
  146. package/dist-esm/samples-dev/storageSyncServicesListBySubscriptionSample.js.map +1 -0
  147. package/dist-esm/samples-dev/storageSyncServicesUpdateSample.d.ts +2 -0
  148. package/dist-esm/samples-dev/storageSyncServicesUpdateSample.d.ts.map +1 -0
  149. package/dist-esm/samples-dev/storageSyncServicesUpdateSample.js +36 -0
  150. package/dist-esm/samples-dev/storageSyncServicesUpdateSample.js.map +1 -0
  151. package/dist-esm/samples-dev/syncGroupsCreateSample.d.ts +2 -0
  152. package/dist-esm/samples-dev/syncGroupsCreateSample.d.ts.map +1 -0
  153. package/dist-esm/samples-dev/syncGroupsCreateSample.js +33 -0
  154. package/dist-esm/samples-dev/syncGroupsCreateSample.js.map +1 -0
  155. package/dist-esm/samples-dev/syncGroupsDeleteSample.d.ts +2 -0
  156. package/dist-esm/samples-dev/syncGroupsDeleteSample.d.ts.map +1 -0
  157. package/dist-esm/samples-dev/syncGroupsDeleteSample.js +32 -0
  158. package/dist-esm/samples-dev/syncGroupsDeleteSample.js.map +1 -0
  159. package/dist-esm/samples-dev/syncGroupsGetSample.d.ts +2 -0
  160. package/dist-esm/samples-dev/syncGroupsGetSample.d.ts.map +1 -0
  161. package/dist-esm/samples-dev/syncGroupsGetSample.js +32 -0
  162. package/dist-esm/samples-dev/syncGroupsGetSample.js.map +1 -0
  163. package/dist-esm/samples-dev/syncGroupsListByStorageSyncServiceSample.d.ts +2 -0
  164. package/dist-esm/samples-dev/syncGroupsListByStorageSyncServiceSample.d.ts.map +1 -0
  165. package/dist-esm/samples-dev/syncGroupsListByStorageSyncServiceSample.js +45 -0
  166. package/dist-esm/samples-dev/syncGroupsListByStorageSyncServiceSample.js.map +1 -0
  167. package/dist-esm/samples-dev/workflowsAbortSample.d.ts +2 -0
  168. package/dist-esm/samples-dev/workflowsAbortSample.d.ts.map +1 -0
  169. package/dist-esm/samples-dev/workflowsAbortSample.js +32 -0
  170. package/dist-esm/samples-dev/workflowsAbortSample.js.map +1 -0
  171. package/dist-esm/samples-dev/workflowsGetSample.d.ts +2 -0
  172. package/dist-esm/samples-dev/workflowsGetSample.d.ts.map +1 -0
  173. package/dist-esm/samples-dev/workflowsGetSample.js +32 -0
  174. package/dist-esm/samples-dev/workflowsGetSample.js.map +1 -0
  175. package/dist-esm/samples-dev/workflowsListByStorageSyncServiceSample.d.ts +2 -0
  176. package/dist-esm/samples-dev/workflowsListByStorageSyncServiceSample.d.ts.map +1 -0
  177. package/dist-esm/samples-dev/workflowsListByStorageSyncServiceSample.js +45 -0
  178. package/dist-esm/samples-dev/workflowsListByStorageSyncServiceSample.js.map +1 -0
  179. package/dist-esm/src/microsoftStorageSync.d.ts.map +1 -1
  180. package/dist-esm/src/microsoftStorageSync.js +20 -2
  181. package/dist-esm/src/microsoftStorageSync.js.map +1 -1
  182. package/dist-esm/src/operations/cloudEndpoints.d.ts.map +1 -1
  183. package/dist-esm/src/operations/cloudEndpoints.js +21 -7
  184. package/dist-esm/src/operations/cloudEndpoints.js.map +1 -1
  185. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  186. package/dist-esm/src/operations/privateEndpointConnections.js +6 -2
  187. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  188. package/dist-esm/src/operations/registeredServers.d.ts.map +1 -1
  189. package/dist-esm/src/operations/registeredServers.js +9 -3
  190. package/dist-esm/src/operations/registeredServers.js.map +1 -1
  191. package/dist-esm/src/operations/serverEndpoints.d.ts.map +1 -1
  192. package/dist-esm/src/operations/serverEndpoints.js +12 -4
  193. package/dist-esm/src/operations/serverEndpoints.js.map +1 -1
  194. package/dist-esm/src/operations/storageSyncServices.d.ts.map +1 -1
  195. package/dist-esm/src/operations/storageSyncServices.js +9 -3
  196. package/dist-esm/src/operations/storageSyncServices.js.map +1 -1
  197. package/package.json +11 -11
  198. package/rollup.config.js +6 -72
  199. package/src/microsoftStorageSync.ts +27 -2
  200. package/src/operations/cloudEndpoints.ts +21 -7
  201. package/src/operations/privateEndpointConnections.ts +6 -2
  202. package/src/operations/registeredServers.ts +9 -3
  203. package/src/operations/serverEndpoints.ts +12 -4
  204. package/src/operations/storageSyncServices.ts +9 -3
  205. package/tsconfig.json +18 -5
  206. package/types/tsdoc-metadata.json +1 -1
  207. package/LICENSE.txt +0 -21
package/dist/index.js CHANGED
@@ -3,9 +3,31 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var coreClient = require('@azure/core-client');
6
+ var coreRestPipeline = require('@azure/core-rest-pipeline');
6
7
  var tslib = require('tslib');
7
8
  var coreLro = require('@azure/core-lro');
8
9
 
10
+ function _interopNamespace(e) {
11
+ if (e && e.__esModule) return e;
12
+ var n = Object.create(null);
13
+ if (e) {
14
+ Object.keys(e).forEach(function (k) {
15
+ if (k !== 'default') {
16
+ var d = Object.getOwnPropertyDescriptor(e, k);
17
+ Object.defineProperty(n, k, d.get ? d : {
18
+ enumerable: true,
19
+ get: function () { return e[k]; }
20
+ });
21
+ }
22
+ });
23
+ }
24
+ n["default"] = e;
25
+ return Object.freeze(n);
26
+ }
27
+
28
+ var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
+ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
30
+
9
31
  /*
10
32
  * Copyright (c) Microsoft Corporation.
11
33
  * Licensed under the MIT License.
@@ -13,60 +35,86 @@ var coreLro = require('@azure/core-lro');
13
35
  * Code generated by Microsoft (R) AutoRest Code Generator.
14
36
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
15
37
  */
38
+ /** Known values of {@link IncomingTrafficPolicy} that the service accepts. */
39
+ exports.KnownIncomingTrafficPolicy = void 0;
16
40
  (function (KnownIncomingTrafficPolicy) {
17
41
  KnownIncomingTrafficPolicy["AllowAllTraffic"] = "AllowAllTraffic";
18
42
  KnownIncomingTrafficPolicy["AllowVirtualNetworksOnly"] = "AllowVirtualNetworksOnly";
19
43
  })(exports.KnownIncomingTrafficPolicy || (exports.KnownIncomingTrafficPolicy = {}));
44
+ /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
45
+ exports.KnownPrivateEndpointServiceConnectionStatus = void 0;
20
46
  (function (KnownPrivateEndpointServiceConnectionStatus) {
21
47
  KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
22
48
  KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
23
49
  KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
24
50
  })(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
51
+ /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
52
+ exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
25
53
  (function (KnownPrivateEndpointConnectionProvisioningState) {
26
54
  KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
27
55
  KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
28
56
  KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
29
57
  KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
30
58
  })(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
59
+ /** Known values of {@link CloudEndpointChangeEnumerationActivityState} that the service accepts. */
60
+ exports.KnownCloudEndpointChangeEnumerationActivityState = void 0;
31
61
  (function (KnownCloudEndpointChangeEnumerationActivityState) {
32
62
  KnownCloudEndpointChangeEnumerationActivityState["InitialEnumerationInProgress"] = "InitialEnumerationInProgress";
33
63
  KnownCloudEndpointChangeEnumerationActivityState["EnumerationInProgress"] = "EnumerationInProgress";
34
64
  })(exports.KnownCloudEndpointChangeEnumerationActivityState || (exports.KnownCloudEndpointChangeEnumerationActivityState = {}));
65
+ /** Known values of {@link CloudEndpointChangeEnumerationTotalCountsState} that the service accepts. */
66
+ exports.KnownCloudEndpointChangeEnumerationTotalCountsState = void 0;
35
67
  (function (KnownCloudEndpointChangeEnumerationTotalCountsState) {
36
68
  KnownCloudEndpointChangeEnumerationTotalCountsState["Calculating"] = "Calculating";
37
69
  KnownCloudEndpointChangeEnumerationTotalCountsState["Final"] = "Final";
38
70
  })(exports.KnownCloudEndpointChangeEnumerationTotalCountsState || (exports.KnownCloudEndpointChangeEnumerationTotalCountsState = {}));
71
+ /** Known values of {@link ChangeDetectionMode} that the service accepts. */
72
+ exports.KnownChangeDetectionMode = void 0;
39
73
  (function (KnownChangeDetectionMode) {
40
74
  KnownChangeDetectionMode["Default"] = "Default";
41
75
  KnownChangeDetectionMode["Recursive"] = "Recursive";
42
76
  })(exports.KnownChangeDetectionMode || (exports.KnownChangeDetectionMode = {}));
77
+ /** Known values of {@link FeatureStatus} that the service accepts. */
78
+ exports.KnownFeatureStatus = void 0;
43
79
  (function (KnownFeatureStatus) {
44
80
  KnownFeatureStatus["On"] = "on";
45
81
  KnownFeatureStatus["Off"] = "off";
46
82
  })(exports.KnownFeatureStatus || (exports.KnownFeatureStatus = {}));
83
+ /** Known values of {@link InitialDownloadPolicy} that the service accepts. */
84
+ exports.KnownInitialDownloadPolicy = void 0;
47
85
  (function (KnownInitialDownloadPolicy) {
48
86
  KnownInitialDownloadPolicy["NamespaceOnly"] = "NamespaceOnly";
49
87
  KnownInitialDownloadPolicy["NamespaceThenModifiedFiles"] = "NamespaceThenModifiedFiles";
50
88
  KnownInitialDownloadPolicy["AvoidTieredFiles"] = "AvoidTieredFiles";
51
89
  })(exports.KnownInitialDownloadPolicy || (exports.KnownInitialDownloadPolicy = {}));
90
+ /** Known values of {@link LocalCacheMode} that the service accepts. */
91
+ exports.KnownLocalCacheMode = void 0;
52
92
  (function (KnownLocalCacheMode) {
53
93
  KnownLocalCacheMode["DownloadNewAndModifiedFiles"] = "DownloadNewAndModifiedFiles";
54
94
  KnownLocalCacheMode["UpdateLocallyCachedFiles"] = "UpdateLocallyCachedFiles";
55
95
  })(exports.KnownLocalCacheMode || (exports.KnownLocalCacheMode = {}));
96
+ /** Known values of {@link InitialUploadPolicy} that the service accepts. */
97
+ exports.KnownInitialUploadPolicy = void 0;
56
98
  (function (KnownInitialUploadPolicy) {
57
99
  KnownInitialUploadPolicy["ServerAuthoritative"] = "ServerAuthoritative";
58
100
  KnownInitialUploadPolicy["Merge"] = "Merge";
59
101
  })(exports.KnownInitialUploadPolicy || (exports.KnownInitialUploadPolicy = {}));
102
+ /** Known values of {@link ServerEndpointHealthState} that the service accepts. */
103
+ exports.KnownServerEndpointHealthState = void 0;
60
104
  (function (KnownServerEndpointHealthState) {
61
105
  KnownServerEndpointHealthState["Unavailable"] = "Unavailable";
62
106
  KnownServerEndpointHealthState["Healthy"] = "Healthy";
63
107
  KnownServerEndpointHealthState["Error"] = "Error";
64
108
  })(exports.KnownServerEndpointHealthState || (exports.KnownServerEndpointHealthState = {}));
109
+ /** Known values of {@link ServerEndpointSyncActivityState} that the service accepts. */
110
+ exports.KnownServerEndpointSyncActivityState = void 0;
65
111
  (function (KnownServerEndpointSyncActivityState) {
66
112
  KnownServerEndpointSyncActivityState["Upload"] = "Upload";
67
113
  KnownServerEndpointSyncActivityState["Download"] = "Download";
68
114
  KnownServerEndpointSyncActivityState["UploadAndDownload"] = "UploadAndDownload";
69
115
  })(exports.KnownServerEndpointSyncActivityState || (exports.KnownServerEndpointSyncActivityState = {}));
116
+ /** Known values of {@link ServerEndpointSyncMode} that the service accepts. */
117
+ exports.KnownServerEndpointSyncMode = void 0;
70
118
  (function (KnownServerEndpointSyncMode) {
71
119
  KnownServerEndpointSyncMode["Regular"] = "Regular";
72
120
  KnownServerEndpointSyncMode["NamespaceDownload"] = "NamespaceDownload";
@@ -74,18 +122,24 @@ var coreLro = require('@azure/core-lro');
74
122
  KnownServerEndpointSyncMode["SnapshotUpload"] = "SnapshotUpload";
75
123
  KnownServerEndpointSyncMode["InitialFullDownload"] = "InitialFullDownload";
76
124
  })(exports.KnownServerEndpointSyncMode || (exports.KnownServerEndpointSyncMode = {}));
125
+ /** Known values of {@link ServerEndpointOfflineDataTransferState} that the service accepts. */
126
+ exports.KnownServerEndpointOfflineDataTransferState = void 0;
77
127
  (function (KnownServerEndpointOfflineDataTransferState) {
78
128
  KnownServerEndpointOfflineDataTransferState["InProgress"] = "InProgress";
79
129
  KnownServerEndpointOfflineDataTransferState["Stopping"] = "Stopping";
80
130
  KnownServerEndpointOfflineDataTransferState["NotRunning"] = "NotRunning";
81
131
  KnownServerEndpointOfflineDataTransferState["Complete"] = "Complete";
82
132
  })(exports.KnownServerEndpointOfflineDataTransferState || (exports.KnownServerEndpointOfflineDataTransferState = {}));
133
+ /** Known values of {@link RegisteredServerAgentVersionStatus} that the service accepts. */
134
+ exports.KnownRegisteredServerAgentVersionStatus = void 0;
83
135
  (function (KnownRegisteredServerAgentVersionStatus) {
84
136
  KnownRegisteredServerAgentVersionStatus["Ok"] = "Ok";
85
137
  KnownRegisteredServerAgentVersionStatus["NearExpiry"] = "NearExpiry";
86
138
  KnownRegisteredServerAgentVersionStatus["Expired"] = "Expired";
87
139
  KnownRegisteredServerAgentVersionStatus["Blocked"] = "Blocked";
88
140
  })(exports.KnownRegisteredServerAgentVersionStatus || (exports.KnownRegisteredServerAgentVersionStatus = {}));
141
+ /** Known values of {@link WorkflowStatus} that the service accepts. */
142
+ exports.KnownWorkflowStatus = void 0;
89
143
  (function (KnownWorkflowStatus) {
90
144
  KnownWorkflowStatus["Active"] = "active";
91
145
  KnownWorkflowStatus["Expired"] = "expired";
@@ -93,11 +147,15 @@ var coreLro = require('@azure/core-lro');
93
147
  KnownWorkflowStatus["Aborted"] = "aborted";
94
148
  KnownWorkflowStatus["Failed"] = "failed";
95
149
  })(exports.KnownWorkflowStatus || (exports.KnownWorkflowStatus = {}));
150
+ /** Known values of {@link OperationDirection} that the service accepts. */
151
+ exports.KnownOperationDirection = void 0;
96
152
  (function (KnownOperationDirection) {
97
153
  KnownOperationDirection["Do"] = "do";
98
154
  KnownOperationDirection["Undo"] = "undo";
99
155
  KnownOperationDirection["Cancel"] = "cancel";
100
156
  })(exports.KnownOperationDirection || (exports.KnownOperationDirection = {}));
157
+ /** Known values of {@link Reason} that the service accepts. */
158
+ exports.KnownReason = void 0;
101
159
  (function (KnownReason) {
102
160
  KnownReason["Registered"] = "Registered";
103
161
  KnownReason["Unregistered"] = "Unregistered";
@@ -105,6 +163,8 @@ var coreLro = require('@azure/core-lro');
105
163
  KnownReason["Suspended"] = "Suspended";
106
164
  KnownReason["Deleted"] = "Deleted";
107
165
  })(exports.KnownReason || (exports.KnownReason = {}));
166
+ /** Known values of {@link ProgressType} that the service accepts. */
167
+ exports.KnownProgressType = void 0;
108
168
  (function (KnownProgressType) {
109
169
  KnownProgressType["None"] = "none";
110
170
  KnownProgressType["Initialize"] = "initialize";
@@ -4242,7 +4302,7 @@ class OperationsImpl {
4242
4302
  }
4243
4303
  }
4244
4304
  // Operation Specifications
4245
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
4305
+ const serializer$a = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4246
4306
  const listOperationSpec = {
4247
4307
  path: "/providers/Microsoft.StorageSync/operations",
4248
4308
  httpMethod: "GET",
@@ -4258,7 +4318,7 @@ const listOperationSpec = {
4258
4318
  queryParameters: [apiVersion],
4259
4319
  urlParameters: [$host],
4260
4320
  headerParameters: [accept],
4261
- serializer
4321
+ serializer: serializer$a
4262
4322
  };
4263
4323
  const listNextOperationSpec = {
4264
4324
  path: "{nextLink}",
@@ -4275,7 +4335,7 @@ const listNextOperationSpec = {
4275
4335
  queryParameters: [apiVersion],
4276
4336
  urlParameters: [$host, nextLink],
4277
4337
  headerParameters: [accept],
4278
- serializer
4338
+ serializer: serializer$a
4279
4339
  };
4280
4340
 
4281
4341
  /*
@@ -4448,11 +4508,13 @@ class StorageSyncServicesImpl {
4448
4508
  }
4449
4509
  };
4450
4510
  });
4451
- const lro = new LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, parameters, options }, createOperationSpec);
4452
- return new coreLro.LroEngine(lro, {
4511
+ const lro = new LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, parameters, options }, createOperationSpec$5);
4512
+ const poller = new coreLro.LroEngine(lro, {
4453
4513
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4454
4514
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4455
4515
  });
4516
+ yield poller.poll();
4517
+ return poller;
4456
4518
  });
4457
4519
  }
4458
4520
  /**
@@ -4475,7 +4537,7 @@ class StorageSyncServicesImpl {
4475
4537
  * @param options The options parameters.
4476
4538
  */
4477
4539
  get(resourceGroupName, storageSyncServiceName, options) {
4478
- return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, options }, getOperationSpec);
4540
+ return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, options }, getOperationSpec$7);
4479
4541
  }
4480
4542
  /**
4481
4543
  * Patch a given StorageSyncService.
@@ -4507,11 +4569,13 @@ class StorageSyncServicesImpl {
4507
4569
  }
4508
4570
  };
4509
4571
  });
4510
- const lro = new LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, options }, updateOperationSpec);
4511
- return new coreLro.LroEngine(lro, {
4572
+ const lro = new LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, options }, updateOperationSpec$1);
4573
+ const poller = new coreLro.LroEngine(lro, {
4512
4574
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4513
4575
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4514
4576
  });
4577
+ yield poller.poll();
4578
+ return poller;
4515
4579
  });
4516
4580
  }
4517
4581
  /**
@@ -4556,11 +4620,13 @@ class StorageSyncServicesImpl {
4556
4620
  }
4557
4621
  };
4558
4622
  });
4559
- const lro = new LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, options }, deleteOperationSpec);
4560
- return new coreLro.LroEngine(lro, {
4623
+ const lro = new LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, options }, deleteOperationSpec$5);
4624
+ const poller = new coreLro.LroEngine(lro, {
4561
4625
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4562
4626
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4563
4627
  });
4628
+ yield poller.poll();
4629
+ return poller;
4564
4630
  });
4565
4631
  }
4566
4632
  /**
@@ -4592,7 +4658,7 @@ class StorageSyncServicesImpl {
4592
4658
  }
4593
4659
  }
4594
4660
  // Operation Specifications
4595
- const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
4661
+ const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4596
4662
  const checkNameAvailabilityOperationSpec = {
4597
4663
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/locations/{locationName}/checkNameAvailability",
4598
4664
  httpMethod: "POST",
@@ -4610,9 +4676,9 @@ const checkNameAvailabilityOperationSpec = {
4610
4676
  ],
4611
4677
  headerParameters: [accept, contentType],
4612
4678
  mediaType: "json",
4613
- serializer: serializer$1
4679
+ serializer: serializer$9
4614
4680
  };
4615
- const createOperationSpec = {
4681
+ const createOperationSpec$5 = {
4616
4682
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}",
4617
4683
  httpMethod: "PUT",
4618
4684
  responses: {
@@ -4642,9 +4708,9 @@ const createOperationSpec = {
4642
4708
  ],
4643
4709
  headerParameters: [accept, contentType],
4644
4710
  mediaType: "json",
4645
- serializer: serializer$1
4711
+ serializer: serializer$9
4646
4712
  };
4647
- const getOperationSpec = {
4713
+ const getOperationSpec$7 = {
4648
4714
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}",
4649
4715
  httpMethod: "GET",
4650
4716
  responses: {
@@ -4664,9 +4730,9 @@ const getOperationSpec = {
4664
4730
  storageSyncServiceName
4665
4731
  ],
4666
4732
  headerParameters: [accept],
4667
- serializer: serializer$1
4733
+ serializer: serializer$9
4668
4734
  };
4669
- const updateOperationSpec = {
4735
+ const updateOperationSpec$1 = {
4670
4736
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}",
4671
4737
  httpMethod: "PATCH",
4672
4738
  responses: {
@@ -4700,9 +4766,9 @@ const updateOperationSpec = {
4700
4766
  ],
4701
4767
  headerParameters: [accept, contentType],
4702
4768
  mediaType: "json",
4703
- serializer: serializer$1
4769
+ serializer: serializer$9
4704
4770
  };
4705
- const deleteOperationSpec = {
4771
+ const deleteOperationSpec$5 = {
4706
4772
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}",
4707
4773
  httpMethod: "DELETE",
4708
4774
  responses: {
@@ -4730,7 +4796,7 @@ const deleteOperationSpec = {
4730
4796
  storageSyncServiceName
4731
4797
  ],
4732
4798
  headerParameters: [accept],
4733
- serializer: serializer$1
4799
+ serializer: serializer$9
4734
4800
  };
4735
4801
  const listByResourceGroupOperationSpec = {
4736
4802
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices",
@@ -4751,7 +4817,7 @@ const listByResourceGroupOperationSpec = {
4751
4817
  resourceGroupName
4752
4818
  ],
4753
4819
  headerParameters: [accept],
4754
- serializer: serializer$1
4820
+ serializer: serializer$9
4755
4821
  };
4756
4822
  const listBySubscriptionOperationSpec = {
4757
4823
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/storageSyncServices",
@@ -4768,7 +4834,7 @@ const listBySubscriptionOperationSpec = {
4768
4834
  queryParameters: [apiVersion],
4769
4835
  urlParameters: [$host, subscriptionId],
4770
4836
  headerParameters: [accept],
4771
- serializer: serializer$1
4837
+ serializer: serializer$9
4772
4838
  };
4773
4839
 
4774
4840
  /*
@@ -4795,12 +4861,12 @@ class PrivateLinkResourcesImpl {
4795
4861
  * @param options The options parameters.
4796
4862
  */
4797
4863
  listByStorageSyncService(resourceGroupName, storageSyncServiceName, options) {
4798
- return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, options }, listByStorageSyncServiceOperationSpec);
4864
+ return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, options }, listByStorageSyncServiceOperationSpec$4);
4799
4865
  }
4800
4866
  }
4801
4867
  // Operation Specifications
4802
- const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
4803
- const listByStorageSyncServiceOperationSpec = {
4868
+ const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4869
+ const listByStorageSyncServiceOperationSpec$4 = {
4804
4870
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateLinkResources",
4805
4871
  httpMethod: "GET",
4806
4872
  responses: {
@@ -4816,7 +4882,7 @@ const listByStorageSyncServiceOperationSpec = {
4816
4882
  storageSyncServiceName
4817
4883
  ],
4818
4884
  headerParameters: [accept],
4819
- serializer: serializer$2
4885
+ serializer: serializer$8
4820
4886
  };
4821
4887
 
4822
4888
  /*
@@ -4895,7 +4961,7 @@ class PrivateEndpointConnectionsImpl {
4895
4961
  storageSyncServiceName,
4896
4962
  privateEndpointConnectionName,
4897
4963
  options
4898
- }, getOperationSpec$1);
4964
+ }, getOperationSpec$6);
4899
4965
  }
4900
4966
  /**
4901
4967
  * Update the state of specified private endpoint connection associated with the storage sync service.
@@ -4937,11 +5003,13 @@ class PrivateEndpointConnectionsImpl {
4937
5003
  privateEndpointConnectionName,
4938
5004
  properties,
4939
5005
  options
4940
- }, createOperationSpec$1);
4941
- return new coreLro.LroEngine(lro, {
5006
+ }, createOperationSpec$4);
5007
+ const poller = new coreLro.LroEngine(lro, {
4942
5008
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4943
5009
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4944
5010
  });
5011
+ yield poller.poll();
5012
+ return poller;
4945
5013
  });
4946
5014
  }
4947
5015
  /**
@@ -4998,11 +5066,13 @@ class PrivateEndpointConnectionsImpl {
4998
5066
  storageSyncServiceName,
4999
5067
  privateEndpointConnectionName,
5000
5068
  options
5001
- }, deleteOperationSpec$1);
5002
- return new coreLro.LroEngine(lro, {
5069
+ }, deleteOperationSpec$4);
5070
+ const poller = new coreLro.LroEngine(lro, {
5003
5071
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5004
5072
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5005
5073
  });
5074
+ yield poller.poll();
5075
+ return poller;
5006
5076
  });
5007
5077
  }
5008
5078
  /**
@@ -5027,12 +5097,12 @@ class PrivateEndpointConnectionsImpl {
5027
5097
  * @param options The options parameters.
5028
5098
  */
5029
5099
  _listByStorageSyncService(resourceGroupName, storageSyncServiceName, options) {
5030
- return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, options }, listByStorageSyncServiceOperationSpec$1);
5100
+ return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, options }, listByStorageSyncServiceOperationSpec$3);
5031
5101
  }
5032
5102
  }
5033
5103
  // Operation Specifications
5034
- const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
5035
- const getOperationSpec$1 = {
5104
+ const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5105
+ const getOperationSpec$6 = {
5036
5106
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",
5037
5107
  httpMethod: "GET",
5038
5108
  responses: {
@@ -5052,9 +5122,9 @@ const getOperationSpec$1 = {
5052
5122
  privateEndpointConnectionName
5053
5123
  ],
5054
5124
  headerParameters: [accept],
5055
- serializer: serializer$3
5125
+ serializer: serializer$7
5056
5126
  };
5057
- const createOperationSpec$1 = {
5127
+ const createOperationSpec$4 = {
5058
5128
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",
5059
5129
  httpMethod: "PUT",
5060
5130
  responses: {
@@ -5085,9 +5155,9 @@ const createOperationSpec$1 = {
5085
5155
  ],
5086
5156
  headerParameters: [accept, contentType],
5087
5157
  mediaType: "json",
5088
- serializer: serializer$3
5158
+ serializer: serializer$7
5089
5159
  };
5090
- const deleteOperationSpec$1 = {
5160
+ const deleteOperationSpec$4 = {
5091
5161
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",
5092
5162
  httpMethod: "DELETE",
5093
5163
  responses: {
@@ -5108,9 +5178,9 @@ const deleteOperationSpec$1 = {
5108
5178
  privateEndpointConnectionName
5109
5179
  ],
5110
5180
  headerParameters: [accept],
5111
- serializer: serializer$3
5181
+ serializer: serializer$7
5112
5182
  };
5113
- const listByStorageSyncServiceOperationSpec$1 = {
5183
+ const listByStorageSyncServiceOperationSpec$3 = {
5114
5184
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections",
5115
5185
  httpMethod: "GET",
5116
5186
  responses: {
@@ -5130,7 +5200,7 @@ const listByStorageSyncServiceOperationSpec$1 = {
5130
5200
  storageSyncServiceName
5131
5201
  ],
5132
5202
  headerParameters: [accept],
5133
- serializer: serializer$3
5203
+ serializer: serializer$7
5134
5204
  };
5135
5205
 
5136
5206
  /*
@@ -5218,7 +5288,7 @@ class SyncGroupsImpl {
5218
5288
  syncGroupName,
5219
5289
  parameters,
5220
5290
  options
5221
- }, createOperationSpec$2);
5291
+ }, createOperationSpec$3);
5222
5292
  }
5223
5293
  /**
5224
5294
  * Get a given SyncGroup.
@@ -5228,7 +5298,7 @@ class SyncGroupsImpl {
5228
5298
  * @param options The options parameters.
5229
5299
  */
5230
5300
  get(resourceGroupName, storageSyncServiceName, syncGroupName, options) {
5231
- return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, syncGroupName, options }, getOperationSpec$2);
5301
+ return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, syncGroupName, options }, getOperationSpec$5);
5232
5302
  }
5233
5303
  /**
5234
5304
  * Delete a given SyncGroup.
@@ -5238,11 +5308,11 @@ class SyncGroupsImpl {
5238
5308
  * @param options The options parameters.
5239
5309
  */
5240
5310
  delete(resourceGroupName, storageSyncServiceName, syncGroupName, options) {
5241
- return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, syncGroupName, options }, deleteOperationSpec$2);
5311
+ return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, syncGroupName, options }, deleteOperationSpec$3);
5242
5312
  }
5243
5313
  }
5244
5314
  // Operation Specifications
5245
- const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
5315
+ const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5246
5316
  const listByStorageSyncServiceOperationSpec$2 = {
5247
5317
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups",
5248
5318
  httpMethod: "GET",
@@ -5263,9 +5333,9 @@ const listByStorageSyncServiceOperationSpec$2 = {
5263
5333
  storageSyncServiceName
5264
5334
  ],
5265
5335
  headerParameters: [accept],
5266
- serializer: serializer$4
5336
+ serializer: serializer$6
5267
5337
  };
5268
- const createOperationSpec$2 = {
5338
+ const createOperationSpec$3 = {
5269
5339
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}",
5270
5340
  httpMethod: "PUT",
5271
5341
  responses: {
@@ -5288,9 +5358,9 @@ const createOperationSpec$2 = {
5288
5358
  ],
5289
5359
  headerParameters: [accept, contentType],
5290
5360
  mediaType: "json",
5291
- serializer: serializer$4
5361
+ serializer: serializer$6
5292
5362
  };
5293
- const getOperationSpec$2 = {
5363
+ const getOperationSpec$5 = {
5294
5364
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}",
5295
5365
  httpMethod: "GET",
5296
5366
  responses: {
@@ -5311,9 +5381,9 @@ const getOperationSpec$2 = {
5311
5381
  syncGroupName
5312
5382
  ],
5313
5383
  headerParameters: [accept],
5314
- serializer: serializer$4
5384
+ serializer: serializer$6
5315
5385
  };
5316
- const deleteOperationSpec$2 = {
5386
+ const deleteOperationSpec$3 = {
5317
5387
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}",
5318
5388
  httpMethod: "DELETE",
5319
5389
  responses: {
@@ -5334,7 +5404,7 @@ const deleteOperationSpec$2 = {
5334
5404
  syncGroupName
5335
5405
  ],
5336
5406
  headerParameters: [accept],
5337
- serializer: serializer$4
5407
+ serializer: serializer$6
5338
5408
  };
5339
5409
 
5340
5410
  /*
@@ -5439,11 +5509,13 @@ class CloudEndpointsImpl {
5439
5509
  cloudEndpointName,
5440
5510
  parameters,
5441
5511
  options
5442
- }, createOperationSpec$3);
5443
- return new coreLro.LroEngine(lro, {
5512
+ }, createOperationSpec$2);
5513
+ const poller = new coreLro.LroEngine(lro, {
5444
5514
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5445
5515
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5446
5516
  });
5517
+ yield poller.poll();
5518
+ return poller;
5447
5519
  });
5448
5520
  }
5449
5521
  /**
@@ -5476,7 +5548,7 @@ class CloudEndpointsImpl {
5476
5548
  syncGroupName,
5477
5549
  cloudEndpointName,
5478
5550
  options
5479
- }, getOperationSpec$3);
5551
+ }, getOperationSpec$4);
5480
5552
  }
5481
5553
  /**
5482
5554
  * Delete a given CloudEndpoint.
@@ -5516,11 +5588,13 @@ class CloudEndpointsImpl {
5516
5588
  syncGroupName,
5517
5589
  cloudEndpointName,
5518
5590
  options
5519
- }, deleteOperationSpec$3);
5520
- return new coreLro.LroEngine(lro, {
5591
+ }, deleteOperationSpec$2);
5592
+ const poller = new coreLro.LroEngine(lro, {
5521
5593
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5522
5594
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5523
5595
  });
5596
+ yield poller.poll();
5597
+ return poller;
5524
5598
  });
5525
5599
  }
5526
5600
  /**
@@ -5545,7 +5619,7 @@ class CloudEndpointsImpl {
5545
5619
  * @param options The options parameters.
5546
5620
  */
5547
5621
  _listBySyncGroup(resourceGroupName, storageSyncServiceName, syncGroupName, options) {
5548
- return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, syncGroupName, options }, listBySyncGroupOperationSpec);
5622
+ return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, syncGroupName, options }, listBySyncGroupOperationSpec$1);
5549
5623
  }
5550
5624
  /**
5551
5625
  * Pre Backup a given CloudEndpoint.
@@ -5588,10 +5662,12 @@ class CloudEndpointsImpl {
5588
5662
  parameters,
5589
5663
  options
5590
5664
  }, preBackupOperationSpec);
5591
- return new coreLro.LroEngine(lro, {
5665
+ const poller = new coreLro.LroEngine(lro, {
5592
5666
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5593
5667
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5594
5668
  });
5669
+ yield poller.poll();
5670
+ return poller;
5595
5671
  });
5596
5672
  }
5597
5673
  /**
@@ -5650,10 +5726,12 @@ class CloudEndpointsImpl {
5650
5726
  parameters,
5651
5727
  options
5652
5728
  }, postBackupOperationSpec);
5653
- return new coreLro.LroEngine(lro, {
5729
+ const poller = new coreLro.LroEngine(lro, {
5654
5730
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5655
5731
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5656
5732
  });
5733
+ yield poller.poll();
5734
+ return poller;
5657
5735
  });
5658
5736
  }
5659
5737
  /**
@@ -5712,10 +5790,12 @@ class CloudEndpointsImpl {
5712
5790
  parameters,
5713
5791
  options
5714
5792
  }, preRestoreOperationSpec);
5715
- return new coreLro.LroEngine(lro, {
5793
+ const poller = new coreLro.LroEngine(lro, {
5716
5794
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5717
5795
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5718
5796
  });
5797
+ yield poller.poll();
5798
+ return poller;
5719
5799
  });
5720
5800
  }
5721
5801
  /**
@@ -5791,10 +5871,12 @@ class CloudEndpointsImpl {
5791
5871
  parameters,
5792
5872
  options
5793
5873
  }, postRestoreOperationSpec);
5794
- return new coreLro.LroEngine(lro, {
5874
+ const poller = new coreLro.LroEngine(lro, {
5795
5875
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5796
5876
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5797
5877
  });
5878
+ yield poller.poll();
5879
+ return poller;
5798
5880
  });
5799
5881
  }
5800
5882
  /**
@@ -5854,10 +5936,12 @@ class CloudEndpointsImpl {
5854
5936
  parameters,
5855
5937
  options
5856
5938
  }, triggerChangeDetectionOperationSpec);
5857
- return new coreLro.LroEngine(lro, {
5939
+ const poller = new coreLro.LroEngine(lro, {
5858
5940
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5859
5941
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5860
5942
  });
5943
+ yield poller.poll();
5944
+ return poller;
5861
5945
  });
5862
5946
  }
5863
5947
  /**
@@ -5878,8 +5962,8 @@ class CloudEndpointsImpl {
5878
5962
  }
5879
5963
  }
5880
5964
  // Operation Specifications
5881
- const serializer$5 = coreClient.createSerializer(Mappers, /* isXml */ false);
5882
- const createOperationSpec$3 = {
5965
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5966
+ const createOperationSpec$2 = {
5883
5967
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}",
5884
5968
  httpMethod: "PUT",
5885
5969
  responses: {
@@ -5917,7 +6001,7 @@ const createOperationSpec$3 = {
5917
6001
  mediaType: "json",
5918
6002
  serializer: serializer$5
5919
6003
  };
5920
- const getOperationSpec$3 = {
6004
+ const getOperationSpec$4 = {
5921
6005
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}",
5922
6006
  httpMethod: "GET",
5923
6007
  responses: {
@@ -5941,7 +6025,7 @@ const getOperationSpec$3 = {
5941
6025
  headerParameters: [accept],
5942
6026
  serializer: serializer$5
5943
6027
  };
5944
- const deleteOperationSpec$3 = {
6028
+ const deleteOperationSpec$2 = {
5945
6029
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}",
5946
6030
  httpMethod: "DELETE",
5947
6031
  responses: {
@@ -5973,7 +6057,7 @@ const deleteOperationSpec$3 = {
5973
6057
  headerParameters: [accept],
5974
6058
  serializer: serializer$5
5975
6059
  };
5976
- const listBySyncGroupOperationSpec = {
6060
+ const listBySyncGroupOperationSpec$1 = {
5977
6061
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints",
5978
6062
  httpMethod: "GET",
5979
6063
  responses: {
@@ -6272,11 +6356,13 @@ class ServerEndpointsImpl {
6272
6356
  serverEndpointName,
6273
6357
  parameters,
6274
6358
  options
6275
- }, createOperationSpec$4);
6276
- return new coreLro.LroEngine(lro, {
6359
+ }, createOperationSpec$1);
6360
+ const poller = new coreLro.LroEngine(lro, {
6277
6361
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6278
6362
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6279
6363
  });
6364
+ yield poller.poll();
6365
+ return poller;
6280
6366
  });
6281
6367
  }
6282
6368
  /**
@@ -6332,11 +6418,13 @@ class ServerEndpointsImpl {
6332
6418
  syncGroupName,
6333
6419
  serverEndpointName,
6334
6420
  options
6335
- }, updateOperationSpec$1);
6336
- return new coreLro.LroEngine(lro, {
6421
+ }, updateOperationSpec);
6422
+ const poller = new coreLro.LroEngine(lro, {
6337
6423
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6338
6424
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6339
6425
  });
6426
+ yield poller.poll();
6427
+ return poller;
6340
6428
  });
6341
6429
  }
6342
6430
  /**
@@ -6368,7 +6456,7 @@ class ServerEndpointsImpl {
6368
6456
  syncGroupName,
6369
6457
  serverEndpointName,
6370
6458
  options
6371
- }, getOperationSpec$4);
6459
+ }, getOperationSpec$3);
6372
6460
  }
6373
6461
  /**
6374
6462
  * Delete a given ServerEndpoint.
@@ -6408,11 +6496,13 @@ class ServerEndpointsImpl {
6408
6496
  syncGroupName,
6409
6497
  serverEndpointName,
6410
6498
  options
6411
- }, deleteOperationSpec$4);
6412
- return new coreLro.LroEngine(lro, {
6499
+ }, deleteOperationSpec$1);
6500
+ const poller = new coreLro.LroEngine(lro, {
6413
6501
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6414
6502
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6415
6503
  });
6504
+ yield poller.poll();
6505
+ return poller;
6416
6506
  });
6417
6507
  }
6418
6508
  /**
@@ -6437,7 +6527,7 @@ class ServerEndpointsImpl {
6437
6527
  * @param options The options parameters.
6438
6528
  */
6439
6529
  _listBySyncGroup(resourceGroupName, storageSyncServiceName, syncGroupName, options) {
6440
- return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, syncGroupName, options }, listBySyncGroupOperationSpec$1);
6530
+ return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, syncGroupName, options }, listBySyncGroupOperationSpec);
6441
6531
  }
6442
6532
  /**
6443
6533
  * Recall a server endpoint.
@@ -6480,10 +6570,12 @@ class ServerEndpointsImpl {
6480
6570
  parameters,
6481
6571
  options
6482
6572
  }, recallActionOperationSpec);
6483
- return new coreLro.LroEngine(lro, {
6573
+ const poller = new coreLro.LroEngine(lro, {
6484
6574
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6485
6575
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6486
6576
  });
6577
+ yield poller.poll();
6578
+ return poller;
6487
6579
  });
6488
6580
  }
6489
6581
  /**
@@ -6503,8 +6595,8 @@ class ServerEndpointsImpl {
6503
6595
  }
6504
6596
  }
6505
6597
  // Operation Specifications
6506
- const serializer$6 = coreClient.createSerializer(Mappers, /* isXml */ false);
6507
- const createOperationSpec$4 = {
6598
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6599
+ const createOperationSpec$1 = {
6508
6600
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}",
6509
6601
  httpMethod: "PUT",
6510
6602
  responses: {
@@ -6540,9 +6632,9 @@ const createOperationSpec$4 = {
6540
6632
  ],
6541
6633
  headerParameters: [accept, contentType],
6542
6634
  mediaType: "json",
6543
- serializer: serializer$6
6635
+ serializer: serializer$4
6544
6636
  };
6545
- const updateOperationSpec$1 = {
6637
+ const updateOperationSpec = {
6546
6638
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}",
6547
6639
  httpMethod: "PATCH",
6548
6640
  responses: {
@@ -6578,9 +6670,9 @@ const updateOperationSpec$1 = {
6578
6670
  ],
6579
6671
  headerParameters: [accept, contentType],
6580
6672
  mediaType: "json",
6581
- serializer: serializer$6
6673
+ serializer: serializer$4
6582
6674
  };
6583
- const getOperationSpec$4 = {
6675
+ const getOperationSpec$3 = {
6584
6676
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}",
6585
6677
  httpMethod: "GET",
6586
6678
  responses: {
@@ -6602,9 +6694,9 @@ const getOperationSpec$4 = {
6602
6694
  serverEndpointName
6603
6695
  ],
6604
6696
  headerParameters: [accept],
6605
- serializer: serializer$6
6697
+ serializer: serializer$4
6606
6698
  };
6607
- const deleteOperationSpec$4 = {
6699
+ const deleteOperationSpec$1 = {
6608
6700
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}",
6609
6701
  httpMethod: "DELETE",
6610
6702
  responses: {
@@ -6634,9 +6726,9 @@ const deleteOperationSpec$4 = {
6634
6726
  serverEndpointName
6635
6727
  ],
6636
6728
  headerParameters: [accept],
6637
- serializer: serializer$6
6729
+ serializer: serializer$4
6638
6730
  };
6639
- const listBySyncGroupOperationSpec$1 = {
6731
+ const listBySyncGroupOperationSpec = {
6640
6732
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints",
6641
6733
  httpMethod: "GET",
6642
6734
  responses: {
@@ -6657,7 +6749,7 @@ const listBySyncGroupOperationSpec$1 = {
6657
6749
  syncGroupName
6658
6750
  ],
6659
6751
  headerParameters: [accept],
6660
- serializer: serializer$6
6752
+ serializer: serializer$4
6661
6753
  };
6662
6754
  const recallActionOperationSpec = {
6663
6755
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}/recallAction",
@@ -6691,7 +6783,7 @@ const recallActionOperationSpec = {
6691
6783
  ],
6692
6784
  headerParameters: [accept, contentType],
6693
6785
  mediaType: "json",
6694
- serializer: serializer$6
6786
+ serializer: serializer$4
6695
6787
  };
6696
6788
 
6697
6789
  /*
@@ -6762,7 +6854,7 @@ class RegisteredServersImpl {
6762
6854
  * @param options The options parameters.
6763
6855
  */
6764
6856
  _listByStorageSyncService(resourceGroupName, storageSyncServiceName, options) {
6765
- return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, options }, listByStorageSyncServiceOperationSpec$3);
6857
+ return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, options }, listByStorageSyncServiceOperationSpec$1);
6766
6858
  }
6767
6859
  /**
6768
6860
  * Get a given registered server.
@@ -6772,7 +6864,7 @@ class RegisteredServersImpl {
6772
6864
  * @param options The options parameters.
6773
6865
  */
6774
6866
  get(resourceGroupName, storageSyncServiceName, serverId, options) {
6775
- return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, serverId, options }, getOperationSpec$5);
6867
+ return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, serverId, options }, getOperationSpec$2);
6776
6868
  }
6777
6869
  /**
6778
6870
  * Add a new registered server.
@@ -6812,11 +6904,13 @@ class RegisteredServersImpl {
6812
6904
  serverId,
6813
6905
  parameters,
6814
6906
  options
6815
- }, createOperationSpec$5);
6816
- return new coreLro.LroEngine(lro, {
6907
+ }, createOperationSpec);
6908
+ const poller = new coreLro.LroEngine(lro, {
6817
6909
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6818
6910
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6819
6911
  });
6912
+ yield poller.poll();
6913
+ return poller;
6820
6914
  });
6821
6915
  }
6822
6916
  /**
@@ -6864,11 +6958,13 @@ class RegisteredServersImpl {
6864
6958
  }
6865
6959
  };
6866
6960
  });
6867
- const lro = new LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, serverId, options }, deleteOperationSpec$5);
6868
- return new coreLro.LroEngine(lro, {
6961
+ const lro = new LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, serverId, options }, deleteOperationSpec);
6962
+ const poller = new coreLro.LroEngine(lro, {
6869
6963
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6870
6964
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6871
6965
  });
6966
+ yield poller.poll();
6967
+ return poller;
6872
6968
  });
6873
6969
  }
6874
6970
  /**
@@ -6923,10 +7019,12 @@ class RegisteredServersImpl {
6923
7019
  parameters,
6924
7020
  options
6925
7021
  }, triggerRolloverOperationSpec);
6926
- return new coreLro.LroEngine(lro, {
7022
+ const poller = new coreLro.LroEngine(lro, {
6927
7023
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6928
7024
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6929
7025
  });
7026
+ yield poller.poll();
7027
+ return poller;
6930
7028
  });
6931
7029
  }
6932
7030
  /**
@@ -6945,8 +7043,8 @@ class RegisteredServersImpl {
6945
7043
  }
6946
7044
  }
6947
7045
  // Operation Specifications
6948
- const serializer$7 = coreClient.createSerializer(Mappers, /* isXml */ false);
6949
- const listByStorageSyncServiceOperationSpec$3 = {
7046
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
7047
+ const listByStorageSyncServiceOperationSpec$1 = {
6950
7048
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers",
6951
7049
  httpMethod: "GET",
6952
7050
  responses: {
@@ -6966,9 +7064,9 @@ const listByStorageSyncServiceOperationSpec$3 = {
6966
7064
  storageSyncServiceName
6967
7065
  ],
6968
7066
  headerParameters: [accept],
6969
- serializer: serializer$7
7067
+ serializer: serializer$3
6970
7068
  };
6971
- const getOperationSpec$5 = {
7069
+ const getOperationSpec$2 = {
6972
7070
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}",
6973
7071
  httpMethod: "GET",
6974
7072
  responses: {
@@ -6989,9 +7087,9 @@ const getOperationSpec$5 = {
6989
7087
  serverId
6990
7088
  ],
6991
7089
  headerParameters: [accept],
6992
- serializer: serializer$7
7090
+ serializer: serializer$3
6993
7091
  };
6994
- const createOperationSpec$5 = {
7092
+ const createOperationSpec = {
6995
7093
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}",
6996
7094
  httpMethod: "PUT",
6997
7095
  responses: {
@@ -7026,9 +7124,9 @@ const createOperationSpec$5 = {
7026
7124
  ],
7027
7125
  headerParameters: [accept, contentType],
7028
7126
  mediaType: "json",
7029
- serializer: serializer$7
7127
+ serializer: serializer$3
7030
7128
  };
7031
- const deleteOperationSpec$5 = {
7129
+ const deleteOperationSpec = {
7032
7130
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}",
7033
7131
  httpMethod: "DELETE",
7034
7132
  responses: {
@@ -7057,7 +7155,7 @@ const deleteOperationSpec$5 = {
7057
7155
  serverId
7058
7156
  ],
7059
7157
  headerParameters: [accept],
7060
- serializer: serializer$7
7158
+ serializer: serializer$3
7061
7159
  };
7062
7160
  const triggerRolloverOperationSpec = {
7063
7161
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}/triggerRollover",
@@ -7090,7 +7188,7 @@ const triggerRolloverOperationSpec = {
7090
7188
  ],
7091
7189
  headerParameters: [accept, contentType],
7092
7190
  mediaType: "json",
7093
- serializer: serializer$7
7191
+ serializer: serializer$3
7094
7192
  };
7095
7193
 
7096
7194
  /*
@@ -7161,7 +7259,7 @@ class WorkflowsImpl {
7161
7259
  * @param options The options parameters.
7162
7260
  */
7163
7261
  _listByStorageSyncService(resourceGroupName, storageSyncServiceName, options) {
7164
- return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, options }, listByStorageSyncServiceOperationSpec$4);
7262
+ return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, options }, listByStorageSyncServiceOperationSpec);
7165
7263
  }
7166
7264
  /**
7167
7265
  * Get Workflows resource
@@ -7171,7 +7269,7 @@ class WorkflowsImpl {
7171
7269
  * @param options The options parameters.
7172
7270
  */
7173
7271
  get(resourceGroupName, storageSyncServiceName, workflowId, options) {
7174
- return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, workflowId, options }, getOperationSpec$6);
7272
+ return this.client.sendOperationRequest({ resourceGroupName, storageSyncServiceName, workflowId, options }, getOperationSpec$1);
7175
7273
  }
7176
7274
  /**
7177
7275
  * Abort the given workflow.
@@ -7185,8 +7283,8 @@ class WorkflowsImpl {
7185
7283
  }
7186
7284
  }
7187
7285
  // Operation Specifications
7188
- const serializer$8 = coreClient.createSerializer(Mappers, /* isXml */ false);
7189
- const listByStorageSyncServiceOperationSpec$4 = {
7286
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
7287
+ const listByStorageSyncServiceOperationSpec = {
7190
7288
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows",
7191
7289
  httpMethod: "GET",
7192
7290
  responses: {
@@ -7206,9 +7304,9 @@ const listByStorageSyncServiceOperationSpec$4 = {
7206
7304
  storageSyncServiceName
7207
7305
  ],
7208
7306
  headerParameters: [accept],
7209
- serializer: serializer$8
7307
+ serializer: serializer$2
7210
7308
  };
7211
- const getOperationSpec$6 = {
7309
+ const getOperationSpec$1 = {
7212
7310
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows/{workflowId}",
7213
7311
  httpMethod: "GET",
7214
7312
  responses: {
@@ -7229,7 +7327,7 @@ const getOperationSpec$6 = {
7229
7327
  workflowId
7230
7328
  ],
7231
7329
  headerParameters: [accept],
7232
- serializer: serializer$8
7330
+ serializer: serializer$2
7233
7331
  };
7234
7332
  const abortOperationSpec = {
7235
7333
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows/{workflowId}/abort",
@@ -7251,7 +7349,7 @@ const abortOperationSpec = {
7251
7349
  workflowId
7252
7350
  ],
7253
7351
  headerParameters: [accept],
7254
- serializer: serializer$8
7352
+ serializer: serializer$2
7255
7353
  };
7256
7354
 
7257
7355
  /*
@@ -7279,12 +7377,12 @@ class OperationStatusOperationsImpl {
7279
7377
  * @param options The options parameters.
7280
7378
  */
7281
7379
  get(resourceGroupName, locationName, workflowId, operationId, options) {
7282
- return this.client.sendOperationRequest({ resourceGroupName, locationName, workflowId, operationId, options }, getOperationSpec$7);
7380
+ return this.client.sendOperationRequest({ resourceGroupName, locationName, workflowId, operationId, options }, getOperationSpec);
7283
7381
  }
7284
7382
  }
7285
7383
  // Operation Specifications
7286
- const serializer$9 = coreClient.createSerializer(Mappers, /* isXml */ false);
7287
- const getOperationSpec$7 = {
7384
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
7385
+ const getOperationSpec = {
7288
7386
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/locations/{locationName}/workflows/{workflowId}/operations/{operationId}",
7289
7387
  httpMethod: "GET",
7290
7388
  responses: {
@@ -7306,7 +7404,7 @@ const getOperationSpec$7 = {
7306
7404
  operationId
7307
7405
  ],
7308
7406
  headerParameters: [accept],
7309
- serializer: serializer$9
7407
+ serializer: serializer$1
7310
7408
  };
7311
7409
 
7312
7410
  /*
@@ -7316,7 +7414,7 @@ const getOperationSpec$7 = {
7316
7414
  * Code generated by Microsoft (R) AutoRest Code Generator.
7317
7415
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7318
7416
  */
7319
- class MicrosoftStorageSync extends coreClient.ServiceClient {
7417
+ class MicrosoftStorageSync extends coreClient__namespace.ServiceClient {
7320
7418
  /**
7321
7419
  * Initializes a new instance of the MicrosoftStorageSync class.
7322
7420
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -7324,6 +7422,7 @@ class MicrosoftStorageSync extends coreClient.ServiceClient {
7324
7422
  * @param options The parameter options
7325
7423
  */
7326
7424
  constructor(credentials, subscriptionId, options) {
7425
+ var _a, _b;
7327
7426
  if (credentials === undefined) {
7328
7427
  throw new Error("'credentials' cannot be null");
7329
7428
  }
@@ -7338,7 +7437,7 @@ class MicrosoftStorageSync extends coreClient.ServiceClient {
7338
7437
  requestContentType: "application/json; charset=utf-8",
7339
7438
  credential: credentials
7340
7439
  };
7341
- const packageDetails = `azsdk-js-arm-storagesync/9.0.0`;
7440
+ const packageDetails = `azsdk-js-arm-storagesync/9.0.1`;
7342
7441
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
7343
7442
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
7344
7443
  : `${packageDetails}`;
@@ -7347,8 +7446,24 @@ class MicrosoftStorageSync extends coreClient.ServiceClient {
7347
7446
  }
7348
7447
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
7349
7448
  userAgentPrefix
7350
- }, baseUri: options.endpoint || "https://management.azure.com" });
7449
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
7351
7450
  super(optionsWithDefaults);
7451
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
7452
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
7453
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
7454
+ coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
7455
+ if (!bearerTokenAuthenticationPolicyFound) {
7456
+ this.pipeline.removePolicy({
7457
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
7458
+ });
7459
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
7460
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
7461
+ challengeCallbacks: {
7462
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
7463
+ }
7464
+ }));
7465
+ }
7466
+ }
7352
7467
  // Parameter assignments
7353
7468
  this.subscriptionId = subscriptionId;
7354
7469
  // Assigning values to Constant parameters
@@ -7376,7 +7491,7 @@ class MicrosoftStorageSync extends coreClient.ServiceClient {
7376
7491
  }
7377
7492
  }
7378
7493
  // Operation Specifications
7379
- const serializer$a = coreClient.createSerializer(Mappers, /* isXml */ false);
7494
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
7380
7495
  const locationOperationStatusOperationSpec = {
7381
7496
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/locations/{locationName}/operations/{operationId}",
7382
7497
  httpMethod: "GET",
@@ -7397,7 +7512,7 @@ const locationOperationStatusOperationSpec = {
7397
7512
  operationId
7398
7513
  ],
7399
7514
  headerParameters: [accept],
7400
- serializer: serializer$a
7515
+ serializer
7401
7516
  };
7402
7517
 
7403
7518
  exports.MicrosoftStorageSync = MicrosoftStorageSync;