@azure/arm-storagesync 8.1.0 → 9.0.0-alpha.20220202.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 (424) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -80
  4. package/dist/index.js +7404 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/cloudEndpointsCreate.d.ts +2 -0
  9. package/dist-esm/samples-dev/cloudEndpointsCreate.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/cloudEndpointsCreate.js +39 -0
  11. package/dist-esm/samples-dev/cloudEndpointsCreate.js.map +1 -0
  12. package/dist-esm/samples-dev/cloudEndpointsDelete.d.ts +2 -0
  13. package/dist-esm/samples-dev/cloudEndpointsDelete.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/cloudEndpointsDelete.js +33 -0
  15. package/dist-esm/samples-dev/cloudEndpointsDelete.js.map +1 -0
  16. package/dist-esm/samples-dev/cloudEndpointsGet.d.ts +2 -0
  17. package/dist-esm/samples-dev/cloudEndpointsGet.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/cloudEndpointsGet.js +33 -0
  19. package/dist-esm/samples-dev/cloudEndpointsGet.js.map +1 -0
  20. package/dist-esm/samples-dev/cloudEndpointsListBySyncGroup.d.ts +2 -0
  21. package/dist-esm/samples-dev/cloudEndpointsListBySyncGroup.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/cloudEndpointsListBySyncGroup.js +46 -0
  23. package/dist-esm/samples-dev/cloudEndpointsListBySyncGroup.js.map +1 -0
  24. package/dist-esm/samples-dev/cloudEndpointsPostBackup.d.ts +2 -0
  25. package/dist-esm/samples-dev/cloudEndpointsPostBackup.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/cloudEndpointsPostBackup.js +36 -0
  27. package/dist-esm/samples-dev/cloudEndpointsPostBackup.js.map +1 -0
  28. package/dist-esm/samples-dev/cloudEndpointsPostRestore.d.ts +2 -0
  29. package/dist-esm/samples-dev/cloudEndpointsPostRestore.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/cloudEndpointsPostRestore.js +44 -0
  31. package/dist-esm/samples-dev/cloudEndpointsPostRestore.js.map +1 -0
  32. package/dist-esm/samples-dev/cloudEndpointsPreBackup.d.ts +2 -0
  33. package/dist-esm/samples-dev/cloudEndpointsPreBackup.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/cloudEndpointsPreBackup.js +36 -0
  35. package/dist-esm/samples-dev/cloudEndpointsPreBackup.js.map +1 -0
  36. package/dist-esm/samples-dev/cloudEndpointsPreRestore.d.ts +2 -0
  37. package/dist-esm/samples-dev/cloudEndpointsPreRestore.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/cloudEndpointsPreRestore.js +42 -0
  39. package/dist-esm/samples-dev/cloudEndpointsPreRestore.js.map +1 -0
  40. package/dist-esm/samples-dev/cloudEndpointsRestoreheartbeat.d.ts +2 -0
  41. package/dist-esm/samples-dev/cloudEndpointsRestoreheartbeat.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/cloudEndpointsRestoreheartbeat.js +33 -0
  43. package/dist-esm/samples-dev/cloudEndpointsRestoreheartbeat.js.map +1 -0
  44. package/dist-esm/samples-dev/cloudEndpointsTriggerChangeDetection.d.ts +2 -0
  45. package/dist-esm/samples-dev/cloudEndpointsTriggerChangeDetection.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/cloudEndpointsTriggerChangeDetection.js +37 -0
  47. package/dist-esm/samples-dev/cloudEndpointsTriggerChangeDetection.js.map +1 -0
  48. package/dist-esm/samples-dev/operationsList.d.ts +2 -0
  49. package/dist-esm/samples-dev/operationsList.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/operationsList.js +43 -0
  51. package/dist-esm/samples-dev/operationsList.js.map +1 -0
  52. package/dist-esm/samples-dev/privateEndpointConnectionsCreate.d.ts +2 -0
  53. package/dist-esm/samples-dev/privateEndpointConnectionsCreate.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/privateEndpointConnectionsCreate.js +38 -0
  55. package/dist-esm/samples-dev/privateEndpointConnectionsCreate.js.map +1 -0
  56. package/dist-esm/samples-dev/privateEndpointConnectionsDelete.d.ts +2 -0
  57. package/dist-esm/samples-dev/privateEndpointConnectionsDelete.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/privateEndpointConnectionsDelete.js +32 -0
  59. package/dist-esm/samples-dev/privateEndpointConnectionsDelete.js.map +1 -0
  60. package/dist-esm/samples-dev/privateEndpointConnectionsGet.d.ts +2 -0
  61. package/dist-esm/samples-dev/privateEndpointConnectionsGet.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/privateEndpointConnectionsGet.js +32 -0
  63. package/dist-esm/samples-dev/privateEndpointConnectionsGet.js.map +1 -0
  64. package/dist-esm/samples-dev/privateEndpointConnectionsListByStorageSyncService.d.ts +2 -0
  65. package/dist-esm/samples-dev/privateEndpointConnectionsListByStorageSyncService.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/privateEndpointConnectionsListByStorageSyncService.js +45 -0
  67. package/dist-esm/samples-dev/privateEndpointConnectionsListByStorageSyncService.js.map +1 -0
  68. package/dist-esm/samples-dev/privateLinkResourcesList.d.ts +2 -0
  69. package/dist-esm/samples-dev/privateLinkResourcesList.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/privateLinkResourcesList.js +31 -0
  71. package/dist-esm/samples-dev/privateLinkResourcesList.js.map +1 -0
  72. package/dist-esm/samples-dev/registeredServersCreate.d.ts +2 -0
  73. package/dist-esm/samples-dev/registeredServersCreate.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/registeredServersCreate.js +40 -0
  75. package/dist-esm/samples-dev/registeredServersCreate.js.map +1 -0
  76. package/dist-esm/samples-dev/registeredServersDelete.d.ts +2 -0
  77. package/dist-esm/samples-dev/registeredServersDelete.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/registeredServersDelete.js +32 -0
  79. package/dist-esm/samples-dev/registeredServersDelete.js.map +1 -0
  80. package/dist-esm/samples-dev/registeredServersGet.d.ts +2 -0
  81. package/dist-esm/samples-dev/registeredServersGet.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/registeredServersGet.js +32 -0
  83. package/dist-esm/samples-dev/registeredServersGet.js.map +1 -0
  84. package/dist-esm/samples-dev/registeredServersListByStorageSyncService.d.ts +2 -0
  85. package/dist-esm/samples-dev/registeredServersListByStorageSyncService.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/registeredServersListByStorageSyncService.js +45 -0
  87. package/dist-esm/samples-dev/registeredServersListByStorageSyncService.js.map +1 -0
  88. package/dist-esm/samples-dev/registeredServersTriggerRollover.d.ts +2 -0
  89. package/dist-esm/samples-dev/registeredServersTriggerRollover.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/registeredServersTriggerRollover.js +35 -0
  91. package/dist-esm/samples-dev/registeredServersTriggerRollover.js.map +1 -0
  92. package/dist-esm/samples-dev/serverEndpointsCreate.d.ts +2 -0
  93. package/dist-esm/samples-dev/serverEndpointsCreate.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/serverEndpointsCreate.js +45 -0
  95. package/dist-esm/samples-dev/serverEndpointsCreate.js.map +1 -0
  96. package/dist-esm/samples-dev/serverEndpointsDelete.d.ts +2 -0
  97. package/dist-esm/samples-dev/serverEndpointsDelete.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/serverEndpointsDelete.js +33 -0
  99. package/dist-esm/samples-dev/serverEndpointsDelete.js.map +1 -0
  100. package/dist-esm/samples-dev/serverEndpointsGet.d.ts +2 -0
  101. package/dist-esm/samples-dev/serverEndpointsGet.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/serverEndpointsGet.js +33 -0
  103. package/dist-esm/samples-dev/serverEndpointsGet.js.map +1 -0
  104. package/dist-esm/samples-dev/serverEndpointsListBySyncGroup.d.ts +2 -0
  105. package/dist-esm/samples-dev/serverEndpointsListBySyncGroup.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/serverEndpointsListBySyncGroup.js +46 -0
  107. package/dist-esm/samples-dev/serverEndpointsListBySyncGroup.js.map +1 -0
  108. package/dist-esm/samples-dev/serverEndpointsRecallAction.d.ts +2 -0
  109. package/dist-esm/samples-dev/serverEndpointsRecallAction.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/serverEndpointsRecallAction.js +34 -0
  111. package/dist-esm/samples-dev/serverEndpointsRecallAction.js.map +1 -0
  112. package/dist-esm/samples-dev/serverEndpointsUpdate.d.ts +2 -0
  113. package/dist-esm/samples-dev/serverEndpointsUpdate.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/serverEndpointsUpdate.js +41 -0
  115. package/dist-esm/samples-dev/serverEndpointsUpdate.js.map +1 -0
  116. package/dist-esm/samples-dev/storageSyncServiceCheckNameAvailabilityAlreadyExists.d.ts +2 -0
  117. package/dist-esm/samples-dev/storageSyncServiceCheckNameAvailabilityAlreadyExists.d.ts.map +1 -0
  118. package/dist-esm/samples-dev/storageSyncServiceCheckNameAvailabilityAlreadyExists.js +34 -0
  119. package/dist-esm/samples-dev/storageSyncServiceCheckNameAvailabilityAlreadyExists.js.map +1 -0
  120. package/dist-esm/samples-dev/storageSyncServiceCheckNameAvailabilityAvailable.d.ts +2 -0
  121. package/dist-esm/samples-dev/storageSyncServiceCheckNameAvailabilityAvailable.d.ts.map +1 -0
  122. package/dist-esm/samples-dev/storageSyncServiceCheckNameAvailabilityAvailable.js +34 -0
  123. package/dist-esm/samples-dev/storageSyncServiceCheckNameAvailabilityAvailable.js.map +1 -0
  124. package/dist-esm/samples-dev/storageSyncServicesCreate.d.ts +2 -0
  125. package/dist-esm/samples-dev/storageSyncServicesCreate.d.ts.map +1 -0
  126. package/dist-esm/samples-dev/storageSyncServicesCreate.js +36 -0
  127. package/dist-esm/samples-dev/storageSyncServicesCreate.js.map +1 -0
  128. package/dist-esm/samples-dev/storageSyncServicesDelete.d.ts +2 -0
  129. package/dist-esm/samples-dev/storageSyncServicesDelete.d.ts.map +1 -0
  130. package/dist-esm/samples-dev/storageSyncServicesDelete.js +31 -0
  131. package/dist-esm/samples-dev/storageSyncServicesDelete.js.map +1 -0
  132. package/dist-esm/samples-dev/storageSyncServicesGet.d.ts +2 -0
  133. package/dist-esm/samples-dev/storageSyncServicesGet.d.ts.map +1 -0
  134. package/dist-esm/samples-dev/storageSyncServicesGet.js +31 -0
  135. package/dist-esm/samples-dev/storageSyncServicesGet.js.map +1 -0
  136. package/dist-esm/samples-dev/storageSyncServicesListByResourceGroup.d.ts +2 -0
  137. package/dist-esm/samples-dev/storageSyncServicesListByResourceGroup.d.ts.map +1 -0
  138. package/dist-esm/samples-dev/storageSyncServicesListByResourceGroup.js +44 -0
  139. package/dist-esm/samples-dev/storageSyncServicesListByResourceGroup.js.map +1 -0
  140. package/dist-esm/samples-dev/storageSyncServicesListBySubscription.d.ts +2 -0
  141. package/dist-esm/samples-dev/storageSyncServicesListBySubscription.d.ts.map +1 -0
  142. package/dist-esm/samples-dev/storageSyncServicesListBySubscription.js +43 -0
  143. package/dist-esm/samples-dev/storageSyncServicesListBySubscription.js.map +1 -0
  144. package/dist-esm/samples-dev/storageSyncServicesUpdate.d.ts +2 -0
  145. package/dist-esm/samples-dev/storageSyncServicesUpdate.d.ts.map +1 -0
  146. package/dist-esm/samples-dev/storageSyncServicesUpdate.js +36 -0
  147. package/dist-esm/samples-dev/storageSyncServicesUpdate.js.map +1 -0
  148. package/dist-esm/samples-dev/syncGroupsCreate.d.ts +2 -0
  149. package/dist-esm/samples-dev/syncGroupsCreate.d.ts.map +1 -0
  150. package/dist-esm/samples-dev/syncGroupsCreate.js +33 -0
  151. package/dist-esm/samples-dev/syncGroupsCreate.js.map +1 -0
  152. package/dist-esm/samples-dev/syncGroupsDelete.d.ts +2 -0
  153. package/dist-esm/samples-dev/syncGroupsDelete.d.ts.map +1 -0
  154. package/dist-esm/samples-dev/syncGroupsDelete.js +32 -0
  155. package/dist-esm/samples-dev/syncGroupsDelete.js.map +1 -0
  156. package/dist-esm/samples-dev/syncGroupsGet.d.ts +2 -0
  157. package/dist-esm/samples-dev/syncGroupsGet.d.ts.map +1 -0
  158. package/dist-esm/samples-dev/syncGroupsGet.js +32 -0
  159. package/dist-esm/samples-dev/syncGroupsGet.js.map +1 -0
  160. package/dist-esm/samples-dev/syncGroupsListByStorageSyncService.d.ts +2 -0
  161. package/dist-esm/samples-dev/syncGroupsListByStorageSyncService.d.ts.map +1 -0
  162. package/dist-esm/samples-dev/syncGroupsListByStorageSyncService.js +45 -0
  163. package/dist-esm/samples-dev/syncGroupsListByStorageSyncService.js.map +1 -0
  164. package/dist-esm/samples-dev/workflowsAbort.d.ts +2 -0
  165. package/dist-esm/samples-dev/workflowsAbort.d.ts.map +1 -0
  166. package/dist-esm/samples-dev/workflowsAbort.js +32 -0
  167. package/dist-esm/samples-dev/workflowsAbort.js.map +1 -0
  168. package/dist-esm/samples-dev/workflowsGet.d.ts +2 -0
  169. package/dist-esm/samples-dev/workflowsGet.d.ts.map +1 -0
  170. package/dist-esm/samples-dev/workflowsGet.js +31 -0
  171. package/dist-esm/samples-dev/workflowsGet.js.map +1 -0
  172. package/dist-esm/samples-dev/workflowsListByStorageSyncService.d.ts +2 -0
  173. package/dist-esm/samples-dev/workflowsListByStorageSyncService.d.ts.map +1 -0
  174. package/dist-esm/samples-dev/workflowsListByStorageSyncService.js +45 -0
  175. package/dist-esm/samples-dev/workflowsListByStorageSyncService.js.map +1 -0
  176. package/dist-esm/src/index.d.ts +5 -0
  177. package/dist-esm/src/index.d.ts.map +1 -0
  178. package/dist-esm/src/index.js +12 -0
  179. package/dist-esm/src/index.js.map +1 -0
  180. package/dist-esm/src/lroImpl.d.ts +16 -0
  181. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  182. package/dist-esm/src/lroImpl.js +29 -0
  183. package/dist-esm/src/lroImpl.js.map +1 -0
  184. package/dist-esm/src/microsoftStorageSync.d.ts +34 -0
  185. package/dist-esm/src/microsoftStorageSync.d.ts.map +1 -0
  186. package/dist-esm/src/microsoftStorageSync.js +95 -0
  187. package/dist-esm/src/microsoftStorageSync.js.map +1 -0
  188. package/dist-esm/src/models/index.d.ts +2205 -0
  189. package/dist-esm/src/models/index.d.ts.map +1 -0
  190. package/dist-esm/src/models/index.js +145 -0
  191. package/dist-esm/src/models/index.js.map +1 -0
  192. package/dist-esm/src/models/mappers.d.ts +114 -0
  193. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  194. package/{esm → dist-esm/src}/models/mappers.js +2204 -1172
  195. package/dist-esm/src/models/mappers.js.map +1 -0
  196. package/dist-esm/src/models/parameters.d.ts +33 -0
  197. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  198. package/dist-esm/src/models/parameters.js +241 -0
  199. package/dist-esm/src/models/parameters.js.map +1 -0
  200. package/dist-esm/src/operations/cloudEndpoints.d.ts +191 -0
  201. package/dist-esm/src/operations/cloudEndpoints.d.ts.map +1 -0
  202. package/dist-esm/src/operations/cloudEndpoints.js +839 -0
  203. package/dist-esm/src/operations/cloudEndpoints.js.map +1 -0
  204. package/{esm → dist-esm/src}/operations/index.d.ts +2 -0
  205. package/dist-esm/src/operations/index.d.ts.map +1 -0
  206. package/{esm → dist-esm/src}/operations/index.js +5 -5
  207. package/dist-esm/src/operations/index.js.map +1 -0
  208. package/dist-esm/src/operations/operationStatusOperations.d.ts +22 -0
  209. package/dist-esm/src/operations/operationStatusOperations.d.ts.map +1 -0
  210. package/dist-esm/src/operations/operationStatusOperations.js +58 -0
  211. package/dist-esm/src/operations/operationStatusOperations.js.map +1 -0
  212. package/dist-esm/src/operations/operations.d.ts +32 -0
  213. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  214. package/dist-esm/src/operations/operations.js +122 -0
  215. package/dist-esm/src/operations/operations.js.map +1 -0
  216. package/dist-esm/src/operations/privateEndpointConnections.d.ts +83 -0
  217. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  218. package/dist-esm/src/operations/privateEndpointConnections.js +320 -0
  219. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  220. package/dist-esm/src/operations/privateLinkResources.d.ts +21 -0
  221. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  222. package/dist-esm/src/operations/privateLinkResources.js +51 -0
  223. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  224. package/dist-esm/src/operations/registeredServers.d.ts +91 -0
  225. package/dist-esm/src/operations/registeredServers.d.ts.map +1 -0
  226. package/dist-esm/src/operations/registeredServers.js +405 -0
  227. package/dist-esm/src/operations/registeredServers.js.map +1 -0
  228. package/dist-esm/src/operations/serverEndpoints.d.ts +118 -0
  229. package/dist-esm/src/operations/serverEndpoints.d.ts.map +1 -0
  230. package/dist-esm/src/operations/serverEndpoints.js +530 -0
  231. package/dist-esm/src/operations/serverEndpoints.js.map +1 -0
  232. package/dist-esm/src/operations/storageSyncServices.d.ts +99 -0
  233. package/dist-esm/src/operations/storageSyncServices.d.ts.map +1 -0
  234. package/dist-esm/src/operations/storageSyncServices.js +471 -0
  235. package/dist-esm/src/operations/storageSyncServices.js.map +1 -0
  236. package/dist-esm/src/operations/syncGroups.d.ts +55 -0
  237. package/dist-esm/src/operations/syncGroups.d.ts.map +1 -0
  238. package/dist-esm/src/operations/syncGroups.js +208 -0
  239. package/dist-esm/src/operations/syncGroups.js.map +1 -0
  240. package/dist-esm/src/operations/workflows.d.ts +46 -0
  241. package/dist-esm/src/operations/workflows.d.ts.map +1 -0
  242. package/dist-esm/src/operations/workflows.js +165 -0
  243. package/dist-esm/src/operations/workflows.js.map +1 -0
  244. package/dist-esm/src/operationsInterfaces/cloudEndpoints.d.ts +173 -0
  245. package/dist-esm/src/operationsInterfaces/cloudEndpoints.d.ts.map +1 -0
  246. package/dist-esm/src/operationsInterfaces/cloudEndpoints.js +9 -0
  247. package/dist-esm/src/operationsInterfaces/cloudEndpoints.js.map +1 -0
  248. package/dist-esm/src/operationsInterfaces/index.d.ts +11 -0
  249. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  250. package/dist-esm/src/operationsInterfaces/index.js +18 -0
  251. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  252. package/dist-esm/src/operationsInterfaces/operationStatusOperations.d.ts +14 -0
  253. package/dist-esm/src/operationsInterfaces/operationStatusOperations.d.ts.map +1 -0
  254. package/dist-esm/src/operationsInterfaces/operationStatusOperations.js +9 -0
  255. package/dist-esm/src/operationsInterfaces/operationStatusOperations.js.map +1 -0
  256. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  257. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  258. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  259. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  260. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +66 -0
  261. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  262. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  263. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  264. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +13 -0
  265. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  266. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  267. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  268. package/dist-esm/src/operationsInterfaces/registeredServers.d.ts +74 -0
  269. package/dist-esm/src/operationsInterfaces/registeredServers.d.ts.map +1 -0
  270. package/dist-esm/src/operationsInterfaces/registeredServers.js +9 -0
  271. package/dist-esm/src/operationsInterfaces/registeredServers.js.map +1 -0
  272. package/dist-esm/src/operationsInterfaces/serverEndpoints.d.ts +100 -0
  273. package/dist-esm/src/operationsInterfaces/serverEndpoints.d.ts.map +1 -0
  274. package/dist-esm/src/operationsInterfaces/serverEndpoints.js +9 -0
  275. package/dist-esm/src/operationsInterfaces/serverEndpoints.js.map +1 -0
  276. package/dist-esm/src/operationsInterfaces/storageSyncServices.d.ts +76 -0
  277. package/dist-esm/src/operationsInterfaces/storageSyncServices.d.ts.map +1 -0
  278. package/dist-esm/src/operationsInterfaces/storageSyncServices.js +9 -0
  279. package/dist-esm/src/operationsInterfaces/storageSyncServices.js.map +1 -0
  280. package/dist-esm/src/operationsInterfaces/syncGroups.d.ts +38 -0
  281. package/dist-esm/src/operationsInterfaces/syncGroups.d.ts.map +1 -0
  282. package/dist-esm/src/operationsInterfaces/syncGroups.js +9 -0
  283. package/dist-esm/src/operationsInterfaces/syncGroups.js.map +1 -0
  284. package/dist-esm/src/operationsInterfaces/workflows.d.ts +29 -0
  285. package/dist-esm/src/operationsInterfaces/workflows.d.ts.map +1 -0
  286. package/dist-esm/src/operationsInterfaces/workflows.js +9 -0
  287. package/dist-esm/src/operationsInterfaces/workflows.js.map +1 -0
  288. package/dist-esm/test/sampleTest.d.ts +2 -0
  289. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  290. package/dist-esm/test/sampleTest.js +40 -0
  291. package/dist-esm/test/sampleTest.js.map +1 -0
  292. package/package.json +81 -22
  293. package/review/arm-storagesync.api.md +1614 -0
  294. package/rollup.config.js +181 -30
  295. package/src/index.ts +12 -0
  296. package/src/lroImpl.ts +34 -0
  297. package/src/microsoftStorageSync.ts +164 -0
  298. package/src/models/index.ts +1912 -2129
  299. package/src/models/mappers.ts +2303 -1216
  300. package/src/models/parameters.ts +195 -56
  301. package/src/operations/cloudEndpoints.ts +889 -418
  302. package/src/operations/index.ts +5 -5
  303. package/src/operations/operationStatusOperations.ts +44 -62
  304. package/src/operations/operations.ts +88 -74
  305. package/src/operations/privateEndpointConnections.ts +451 -0
  306. package/src/operations/privateLinkResources.ts +70 -0
  307. package/src/operations/registeredServers.ts +416 -191
  308. package/src/operations/serverEndpoints.ts +568 -248
  309. package/src/operations/storageSyncServices.ts +469 -277
  310. package/src/operations/syncGroups.ts +167 -175
  311. package/src/operations/workflows.ts +142 -130
  312. package/src/operationsInterfaces/cloudEndpoints.ts +338 -0
  313. package/src/operationsInterfaces/index.ts +18 -0
  314. package/src/operationsInterfaces/operationStatusOperations.ts +31 -0
  315. package/src/operationsInterfaces/operations.ts +22 -0
  316. package/src/operationsInterfaces/privateEndpointConnections.ts +119 -0
  317. package/src/operationsInterfaces/privateLinkResources.ts +28 -0
  318. package/src/operationsInterfaces/registeredServers.ts +154 -0
  319. package/src/operationsInterfaces/serverEndpoints.ts +207 -0
  320. package/src/operationsInterfaces/storageSyncServices.ts +155 -0
  321. package/src/operationsInterfaces/syncGroups.ts +77 -0
  322. package/src/operationsInterfaces/workflows.ts +59 -0
  323. package/tsconfig.json +5 -4
  324. package/types/arm-storagesync.d.ts +3047 -0
  325. package/types/tsdoc-metadata.json +11 -0
  326. package/dist/arm-storagesync.js +0 -5292
  327. package/dist/arm-storagesync.js.map +0 -1
  328. package/dist/arm-storagesync.min.js +0 -1
  329. package/dist/arm-storagesync.min.js.map +0 -1
  330. package/esm/models/cloudEndpointsMappers.d.ts +0 -2
  331. package/esm/models/cloudEndpointsMappers.d.ts.map +0 -1
  332. package/esm/models/cloudEndpointsMappers.js +0 -9
  333. package/esm/models/cloudEndpointsMappers.js.map +0 -1
  334. package/esm/models/index.d.ts +0 -2509
  335. package/esm/models/index.d.ts.map +0 -1
  336. package/esm/models/index.js +0 -8
  337. package/esm/models/index.js.map +0 -1
  338. package/esm/models/mappers.d.ts +0 -89
  339. package/esm/models/mappers.d.ts.map +0 -1
  340. package/esm/models/mappers.js.map +0 -1
  341. package/esm/models/operationStatusOperationsMappers.d.ts +0 -2
  342. package/esm/models/operationStatusOperationsMappers.d.ts.map +0 -1
  343. package/esm/models/operationStatusOperationsMappers.js +0 -9
  344. package/esm/models/operationStatusOperationsMappers.js.map +0 -1
  345. package/esm/models/operationsMappers.d.ts +0 -2
  346. package/esm/models/operationsMappers.d.ts.map +0 -1
  347. package/esm/models/operationsMappers.js +0 -9
  348. package/esm/models/operationsMappers.js.map +0 -1
  349. package/esm/models/parameters.d.ts +0 -15
  350. package/esm/models/parameters.d.ts.map +0 -1
  351. package/esm/models/parameters.js +0 -152
  352. package/esm/models/parameters.js.map +0 -1
  353. package/esm/models/registeredServersMappers.d.ts +0 -2
  354. package/esm/models/registeredServersMappers.d.ts.map +0 -1
  355. package/esm/models/registeredServersMappers.js +0 -9
  356. package/esm/models/registeredServersMappers.js.map +0 -1
  357. package/esm/models/serverEndpointsMappers.d.ts +0 -2
  358. package/esm/models/serverEndpointsMappers.d.ts.map +0 -1
  359. package/esm/models/serverEndpointsMappers.js +0 -9
  360. package/esm/models/serverEndpointsMappers.js.map +0 -1
  361. package/esm/models/storageSyncServicesMappers.d.ts +0 -2
  362. package/esm/models/storageSyncServicesMappers.d.ts.map +0 -1
  363. package/esm/models/storageSyncServicesMappers.js +0 -9
  364. package/esm/models/storageSyncServicesMappers.js.map +0 -1
  365. package/esm/models/syncGroupsMappers.d.ts +0 -2
  366. package/esm/models/syncGroupsMappers.d.ts.map +0 -1
  367. package/esm/models/syncGroupsMappers.js +0 -9
  368. package/esm/models/syncGroupsMappers.js.map +0 -1
  369. package/esm/models/workflowsMappers.d.ts +0 -2
  370. package/esm/models/workflowsMappers.d.ts.map +0 -1
  371. package/esm/models/workflowsMappers.js +0 -9
  372. package/esm/models/workflowsMappers.js.map +0 -1
  373. package/esm/operations/cloudEndpoints.d.ts +0 -246
  374. package/esm/operations/cloudEndpoints.d.ts.map +0 -1
  375. package/esm/operations/cloudEndpoints.js +0 -602
  376. package/esm/operations/cloudEndpoints.js.map +0 -1
  377. package/esm/operations/index.d.ts.map +0 -1
  378. package/esm/operations/index.js.map +0 -1
  379. package/esm/operations/operationStatusOperations.d.ts +0 -40
  380. package/esm/operations/operationStatusOperations.d.ts.map +0 -1
  381. package/esm/operations/operationStatusOperations.js +0 -63
  382. package/esm/operations/operationStatusOperations.js.map +0 -1
  383. package/esm/operations/operations.d.ts +0 -46
  384. package/esm/operations/operations.d.ts.map +0 -1
  385. package/esm/operations/operations.js +0 -79
  386. package/esm/operations/operations.js.map +0 -1
  387. package/esm/operations/registeredServers.d.ts +0 -117
  388. package/esm/operations/registeredServers.d.ts.map +0 -1
  389. package/esm/operations/registeredServers.js +0 -280
  390. package/esm/operations/registeredServers.js.map +0 -1
  391. package/esm/operations/serverEndpoints.d.ts +0 -149
  392. package/esm/operations/serverEndpoints.d.ts.map +0 -1
  393. package/esm/operations/serverEndpoints.js +0 -361
  394. package/esm/operations/serverEndpoints.js.map +0 -1
  395. package/esm/operations/storageSyncServices.d.ts +0 -154
  396. package/esm/operations/storageSyncServices.d.ts.map +0 -1
  397. package/esm/operations/storageSyncServices.js +0 -261
  398. package/esm/operations/storageSyncServices.js.map +0 -1
  399. package/esm/operations/syncGroups.d.ts +0 -109
  400. package/esm/operations/syncGroups.d.ts.map +0 -1
  401. package/esm/operations/syncGroups.js +0 -169
  402. package/esm/operations/syncGroups.js.map +0 -1
  403. package/esm/operations/workflows.d.ts +0 -82
  404. package/esm/operations/workflows.d.ts.map +0 -1
  405. package/esm/operations/workflows.js +0 -126
  406. package/esm/operations/workflows.js.map +0 -1
  407. package/esm/storageSyncManagementClient.d.ts +0 -31
  408. package/esm/storageSyncManagementClient.d.ts.map +0 -1
  409. package/esm/storageSyncManagementClient.js +0 -45
  410. package/esm/storageSyncManagementClient.js.map +0 -1
  411. package/esm/storageSyncManagementClientContext.d.ts +0 -22
  412. package/esm/storageSyncManagementClientContext.d.ts.map +0 -1
  413. package/esm/storageSyncManagementClientContext.js +0 -61
  414. package/esm/storageSyncManagementClientContext.js.map +0 -1
  415. package/src/models/cloudEndpointsMappers.ts +0 -52
  416. package/src/models/operationStatusOperationsMappers.ts +0 -15
  417. package/src/models/operationsMappers.ts +0 -17
  418. package/src/models/registeredServersMappers.ts +0 -42
  419. package/src/models/serverEndpointsMappers.ts +0 -44
  420. package/src/models/storageSyncServicesMappers.ts +0 -46
  421. package/src/models/syncGroupsMappers.ts +0 -40
  422. package/src/models/workflowsMappers.ts +0 -39
  423. package/src/storageSyncManagementClient.ts +0 -62
  424. package/src/storageSyncManagementClientContext.ts +0 -68
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsDelete.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsDelete.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,gCAAgC;;QAC7C,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,sBAAsB,GAAG,SAAS,CAAC;QACzC,MAAM,6BAA6B,GAAG,iCAAiC,CAAC;QACxE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,kBAAkB,CACvE,iBAAiB,EACjB,sBAAsB,EACtB,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gCAAgC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsGet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsGet.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGet.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Gets the specified private endpoint connection associated with the storage sync service.
13
+ *
14
+ * @summary Gets the specified private endpoint connection associated with the storage sync service.
15
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/PrivateEndpointConnections_Get.json
16
+ */
17
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function privateEndpointConnectionsGet() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "{subscription-id}";
22
+ const resourceGroupName = "res6977";
23
+ const storageSyncServiceName = "sss2527";
24
+ const privateEndpointConnectionName = "{privateEndpointConnectionName}";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new MicrosoftStorageSync(credential, subscriptionId);
27
+ const result = yield client.privateEndpointConnections.get(resourceGroupName, storageSyncServiceName, privateEndpointConnectionName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ privateEndpointConnectionsGet().catch(console.error);
32
+ //# sourceMappingURL=privateEndpointConnectionsGet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsGet.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,6BAA6B;;QAC1C,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,sBAAsB,GAAG,SAAS,CAAC;QACzC,MAAM,6BAA6B,GAAG,iCAAiC,CAAC;QACxE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,GAAG,CACxD,iBAAiB,EACjB,sBAAsB,EACtB,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsListByStorageSyncService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsListByStorageSyncService.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListByStorageSyncService.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Get a PrivateEndpointConnection List.
13
+ *
14
+ * @summary Get a PrivateEndpointConnection List.
15
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/PrivateEndpointConnections_ListByStorageSyncService.json
16
+ */
17
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function privateEndpointConnectionsListByStorageSyncService() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "{subscription-id}";
23
+ const resourceGroupName = "res6977";
24
+ const storageSyncServiceName = "sss2527";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new MicrosoftStorageSync(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.privateEndpointConnections.listByStorageSyncService(resourceGroupName, storageSyncServiceName)), _c; _c = yield _b.next(), !_c.done;) {
30
+ let item = _c.value;
31
+ resArray.push(item);
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ console.log(resArray);
42
+ });
43
+ }
44
+ privateEndpointConnectionsListByStorageSyncService().catch(console.error);
45
+ //# sourceMappingURL=privateEndpointConnectionsListByStorageSyncService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsListByStorageSyncService.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListByStorageSyncService.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,kDAAkD;;;QAC/D,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,sBAAsB,GAAG,SAAS,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,0BAA0B,CAAC,wBAAwB,CAC/E,iBAAiB,EACjB,sBAAsB,CACvB,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,kDAAkD,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateLinkResourcesList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourcesList.d.ts","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesList.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Gets the private link resources that need to be created for a storage sync service.
13
+ *
14
+ * @summary Gets the private link resources that need to be created for a storage sync service.
15
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/PrivateLinkResources_List.json
16
+ */
17
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function privateLinkResourcesList() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "{subscription-id}";
22
+ const resourceGroupName = "res6977";
23
+ const storageSyncServiceName = "sss2527";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new MicrosoftStorageSync(credential, subscriptionId);
26
+ const result = yield client.privateLinkResources.listByStorageSyncService(resourceGroupName, storageSyncServiceName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ privateLinkResourcesList().catch(console.error);
31
+ //# sourceMappingURL=privateLinkResourcesList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourcesList.js","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesList.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,wBAAwB;;QACrC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,sBAAsB,GAAG,SAAS,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,wBAAwB,CACvE,iBAAiB,EACjB,sBAAsB,CACvB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,wBAAwB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=registeredServersCreate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersCreate.d.ts","sourceRoot":"","sources":["../../samples-dev/registeredServersCreate.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Add a new registered server.
13
+ *
14
+ * @summary Add a new registered server.
15
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/RegisteredServers_Create.json
16
+ */
17
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function registeredServersCreate() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "52b8da2f-61e0-4a1f-8dde-336911f367fb";
22
+ const resourceGroupName = "SampleResourceGroup_1";
23
+ const storageSyncServiceName = "SampleStorageSyncService_1";
24
+ const serverId = "080d4133-bdb5-40a0-96a0-71a6057bfe9a";
25
+ const parameters = {
26
+ agentVersion: "1.0.277.0",
27
+ friendlyName: "afscv-2304-139",
28
+ serverCertificate: "MIIDFjCCAf6gAwIBAgIQQS+DS8uhc4VNzUkTw7wbRjANBgkqhkiG9w0BAQ0FADAzMTEwLwYDVQQDEyhhbmt1c2hiLXByb2QzLnJlZG1vbmQuY29ycC5taWNyb3NvZnQuY29tMB4XDTE3MDgwMzE3MDQyNFoXDTE4MDgwNDE3MDQyNFowMzExMC8GA1UEAxMoYW5rdXNoYi1wcm9kMy5yZWRtb25kLmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALDRvV4gmsIy6jGDPiHsXmvgVP749NNP7DopdlbHaNhjFmYINHl0uWylyaZmgJrROt2mnxN/zEyJtGnqYHlzUr4xvGq/qV5pqgdB9tag/sw9i22gfe9PRZ0FmSOZnXMbLYgLiDFqLtut5gHcOuWMj03YnkfoBEKlFBxWbagvW2yxz/Sxi9OVSJOKCaXra0RpcIHrO/KFl6ho2eE1/7Ykmfa8hZvSdoPd5gHdLiQcMB/pxq+mWp1fI6c8vFZoDu7Atn+NXTzYPKUxKzaisF12TsaKpohUsJpbB3Wocb0F5frn614D2pg14ERB5otjAMWw1m65csQWPI6dP8KIYe0+QPkCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBAA4RhVIBkw34M1RwakJgHvtjsOFxF1tVQA941NtLokx1l2Z8+GFQkcG4xpZSt+UN6wLerdCbnNhtkCErWUDeaT0jxk4g71Ofex7iM04crT4iHJr8mi96/XnhnkTUs+GDk12VgdeeNEczMZz+8Mxw9dJ5NCnYgTwO0SzGlclRsDvjzkLo8rh2ZG6n/jKrEyNXXo+hOqhupij0QbRP2Tvexdfw201kgN1jdZify8XzJ8Oi0bTS0KpJf2pNPOlooK2bjMUei9ANtEdXwwfVZGWvVh6tJjdv6k14wWWJ1L7zhA1IIVb1J+sQUzJji5iX0DrezjTz1Fg+gAzITaA/WsuujlM=",
29
+ serverId: "080d4133-bdb5-40a0-96a0-71a6057bfe9a",
30
+ serverOSVersion: "10.0.14393.0",
31
+ serverRole: "Standalone"
32
+ };
33
+ const credential = new DefaultAzureCredential();
34
+ const client = new MicrosoftStorageSync(credential, subscriptionId);
35
+ const result = yield client.registeredServers.beginCreateAndWait(resourceGroupName, storageSyncServiceName, serverId, parameters);
36
+ console.log(result);
37
+ });
38
+ }
39
+ registeredServersCreate().catch(console.error);
40
+ //# sourceMappingURL=registeredServersCreate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersCreate.js","sourceRoot":"","sources":["../../samples-dev/registeredServersCreate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,uBAAuB;;QACpC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,uBAAuB,CAAC;QAClD,MAAM,sBAAsB,GAAG,4BAA4B,CAAC;QAC5D,MAAM,QAAQ,GAAG,sCAAsC,CAAC;QACxD,MAAM,UAAU,GAAqC;YACnD,YAAY,EAAE,WAAW;YACzB,YAAY,EAAE,gBAAgB;YAC9B,iBAAiB,EACf,siCAAsiC;YACxiC,QAAQ,EAAE,sCAAsC;YAChD,eAAe,EAAE,cAAc;YAC/B,UAAU,EAAE,YAAY;SACzB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,kBAAkB,CAC9D,iBAAiB,EACjB,sBAAsB,EACtB,QAAQ,EACR,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uBAAuB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=registeredServersDelete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersDelete.d.ts","sourceRoot":"","sources":["../../samples-dev/registeredServersDelete.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Delete the given registered server.
13
+ *
14
+ * @summary Delete the given registered server.
15
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/RegisteredServers_Delete.json
16
+ */
17
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function registeredServersDelete() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "52b8da2f-61e0-4a1f-8dde-336911f367fb";
22
+ const resourceGroupName = "SampleResourceGroup_1";
23
+ const storageSyncServiceName = "SampleStorageSyncService_1";
24
+ const serverId = "41166691-ab03-43e9-ab3e-0330eda162ac";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new MicrosoftStorageSync(credential, subscriptionId);
27
+ const result = yield client.registeredServers.beginDeleteAndWait(resourceGroupName, storageSyncServiceName, serverId);
28
+ console.log(result);
29
+ });
30
+ }
31
+ registeredServersDelete().catch(console.error);
32
+ //# sourceMappingURL=registeredServersDelete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersDelete.js","sourceRoot":"","sources":["../../samples-dev/registeredServersDelete.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,uBAAuB;;QACpC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,uBAAuB,CAAC;QAClD,MAAM,sBAAsB,GAAG,4BAA4B,CAAC;QAC5D,MAAM,QAAQ,GAAG,sCAAsC,CAAC;QACxD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,kBAAkB,CAC9D,iBAAiB,EACjB,sBAAsB,EACtB,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uBAAuB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=registeredServersGet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersGet.d.ts","sourceRoot":"","sources":["../../samples-dev/registeredServersGet.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Get a given registered server.
13
+ *
14
+ * @summary Get a given registered server.
15
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/RegisteredServers_Get.json
16
+ */
17
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function registeredServersGet() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "52b8da2f-61e0-4a1f-8dde-336911f367fb";
22
+ const resourceGroupName = "SampleResourceGroup_1";
23
+ const storageSyncServiceName = "SampleStorageSyncService_1";
24
+ const serverId = "080d4133-bdb5-40a0-96a0-71a6057bfe9a";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new MicrosoftStorageSync(credential, subscriptionId);
27
+ const result = yield client.registeredServers.get(resourceGroupName, storageSyncServiceName, serverId);
28
+ console.log(result);
29
+ });
30
+ }
31
+ registeredServersGet().catch(console.error);
32
+ //# sourceMappingURL=registeredServersGet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersGet.js","sourceRoot":"","sources":["../../samples-dev/registeredServersGet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,uBAAuB,CAAC;QAClD,MAAM,sBAAsB,GAAG,4BAA4B,CAAC;QAC5D,MAAM,QAAQ,GAAG,sCAAsC,CAAC;QACxD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAC/C,iBAAiB,EACjB,sBAAsB,EACtB,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oBAAoB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=registeredServersListByStorageSyncService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersListByStorageSyncService.d.ts","sourceRoot":"","sources":["../../samples-dev/registeredServersListByStorageSyncService.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Get a given registered server list.
13
+ *
14
+ * @summary Get a given registered server list.
15
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/RegisteredServers_ListByStorageSyncService.json
16
+ */
17
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function registeredServersListByStorageSyncService() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "52b8da2f-61e0-4a1f-8dde-336911f367fb";
23
+ const resourceGroupName = "SampleResourceGroup_1";
24
+ const storageSyncServiceName = "SampleStorageSyncService_1";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new MicrosoftStorageSync(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.registeredServers.listByStorageSyncService(resourceGroupName, storageSyncServiceName)), _c; _c = yield _b.next(), !_c.done;) {
30
+ let item = _c.value;
31
+ resArray.push(item);
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ console.log(resArray);
42
+ });
43
+ }
44
+ registeredServersListByStorageSyncService().catch(console.error);
45
+ //# sourceMappingURL=registeredServersListByStorageSyncService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersListByStorageSyncService.js","sourceRoot":"","sources":["../../samples-dev/registeredServersListByStorageSyncService.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,yCAAyC;;;QACtD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,uBAAuB,CAAC;QAClD,MAAM,sBAAsB,GAAG,4BAA4B,CAAC;QAC5D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,iBAAiB,CAAC,wBAAwB,CACtE,iBAAiB,EACjB,sBAAsB,CACvB,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,yCAAyC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=registeredServersTriggerRollover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersTriggerRollover.d.ts","sourceRoot":"","sources":["../../samples-dev/registeredServersTriggerRollover.ts"],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Triggers Server certificate rollover.
13
+ *
14
+ * @summary Triggers Server certificate rollover.
15
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/RegisteredServers_TriggerRollover.json
16
+ */
17
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function registeredServersTriggerRollover() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "52b8da2f-61e0-4a1f-8dde-336911f367fb";
22
+ const resourceGroupName = "SampleResourceGroup_1";
23
+ const storageSyncServiceName = "SampleStorageSyncService_1";
24
+ const serverId = "d166ca76-dad2-49df-b409-12345642d730";
25
+ const parameters = {
26
+ serverCertificate: '"MIIDFjCCAf6gAwIBAgIQQS+DS8uhc4VNzUkTw7wbRjANBgkqhkiG9w0BAQ0FADAzMTEwLwYDVQQDEyhhbmt1c2hiLXByb2QzLnJlZG1vbmQuY29ycC5taWNyb3NvZnQuY29tMB4XDTE3MDgwMzE3MDQyNFoXDTE4MDgwNDE3MDQyNFowMzExMC8GA1UEAxMoYW5rdXNoYi1wcm9kMy5yZWRtb25kLmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALDRvV4gmsIy6jGDPiHsXmvgVP749NNP7DopdlbHaNhjFmYINHl0uWylyaZmgJrROt2mnxN/zEyJtGnqYHlzUr4xvGq/qV5pqgdB9tag/sw9i22gfe9PRZ0FmSOZnXMbLYgLiDFqLtut5gHcOuWMj03YnkfoBEKlFBxWbagvW2yxz/Sxi9OVSJOKCaXra0RpcIHrO/KFl6ho2eE1/7Ykmfa8hZvSdoPd5gHdLiQcMB/pxq+mWp1fI6c8vFZoDu7Atn+NXTzYPKUxKzaisF12TsaKpohUsJpbB3Wocb0F5frn614D2pg14ERB5otjAMWw1m65csQWPI6dP8KIYe0+QPkCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBAA4RhVIBkw34M1RwakJgHvtjsOFxF1tVQA941NtLokx1l2Z8+GFQkcG4xpZSt+UN6wLerdCbnNhtkCErWUDeaT0jxk4g71Ofex7iM04crT4iHJr8mi96/XnhnkTUs+GDk12VgdeeNEczMZz+8Mxw9dJ5NCnYgTwO0SzGlclRsDvjzkLo8rh2ZG6n/jKrEyNXXo+hOqhupij0QbRP2Tvexdfw201kgN1jdZify8XzJ8Oi0bTS0KpJf2pNPOlooK2bjMUei9ANtEdXwwfVZGWvVh6tJjdv6k14wWWJ1L7zhA1IIVb1J+sQUzJji5iX0DrezjTz1Fg+gAzITaA/WsuujlM="'
27
+ };
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new MicrosoftStorageSync(credential, subscriptionId);
30
+ const result = yield client.registeredServers.beginTriggerRolloverAndWait(resourceGroupName, storageSyncServiceName, serverId, parameters);
31
+ console.log(result);
32
+ });
33
+ }
34
+ registeredServersTriggerRollover().catch(console.error);
35
+ //# sourceMappingURL=registeredServersTriggerRollover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersTriggerRollover.js","sourceRoot":"","sources":["../../samples-dev/registeredServersTriggerRollover.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,gCAAgC;;QAC7C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,uBAAuB,CAAC;QAClD,MAAM,sBAAsB,GAAG,4BAA4B,CAAC;QAC5D,MAAM,QAAQ,GAAG,sCAAsC,CAAC;QACxD,MAAM,UAAU,GAA2B;YACzC,iBAAiB,EACf,wiCAAwiC;SAC3iC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,2BAA2B,CACvE,iBAAiB,EACjB,sBAAsB,EACtB,QAAQ,EACR,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gCAAgC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=serverEndpointsCreate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverEndpointsCreate.d.ts","sourceRoot":"","sources":["../../samples-dev/serverEndpointsCreate.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Create a new ServerEndpoint.
13
+ *
14
+ * @summary Create a new ServerEndpoint.
15
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/ServerEndpoints_Create.json
16
+ */
17
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function serverEndpointsCreate() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "52b8da2f-61e0-4a1f-8dde-336911f367fb";
22
+ const resourceGroupName = "SampleResourceGroup_1";
23
+ const storageSyncServiceName = "SampleStorageSyncService_1";
24
+ const syncGroupName = "SampleSyncGroup_1";
25
+ const serverEndpointName = "SampleServerEndpoint_1";
26
+ const parameters = {
27
+ cloudTiering: "off",
28
+ initialDownloadPolicy: "NamespaceThenModifiedFiles",
29
+ initialUploadPolicy: "ServerAuthoritative",
30
+ localCacheMode: "UpdateLocallyCachedFiles",
31
+ offlineDataTransfer: "on",
32
+ offlineDataTransferShareName: "myfileshare",
33
+ serverLocalPath: "D:SampleServerEndpoint_1",
34
+ serverResourceId: "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a",
35
+ tierFilesOlderThanDays: 0,
36
+ volumeFreeSpacePercent: 100
37
+ };
38
+ const credential = new DefaultAzureCredential();
39
+ const client = new MicrosoftStorageSync(credential, subscriptionId);
40
+ const result = yield client.serverEndpoints.beginCreateAndWait(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName, parameters);
41
+ console.log(result);
42
+ });
43
+ }
44
+ serverEndpointsCreate().catch(console.error);
45
+ //# sourceMappingURL=serverEndpointsCreate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverEndpointsCreate.js","sourceRoot":"","sources":["../../samples-dev/serverEndpointsCreate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,uBAAuB,CAAC;QAClD,MAAM,sBAAsB,GAAG,4BAA4B,CAAC;QAC5D,MAAM,aAAa,GAAG,mBAAmB,CAAC;QAC1C,MAAM,kBAAkB,GAAG,wBAAwB,CAAC;QACpD,MAAM,UAAU,GAAmC;YACjD,YAAY,EAAE,KAAK;YACnB,qBAAqB,EAAE,4BAA4B;YACnD,mBAAmB,EAAE,qBAAqB;YAC1C,cAAc,EAAE,0BAA0B;YAC1C,mBAAmB,EAAE,IAAI;YACzB,4BAA4B,EAAE,aAAa;YAC3C,eAAe,EAAE,0BAA0B;YAC3C,gBAAgB,EACd,gOAAgO;YAClO,sBAAsB,EAAE,CAAC;YACzB,sBAAsB,EAAE,GAAG;SAC5B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,kBAAkB,CAC5D,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,kBAAkB,EAClB,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=serverEndpointsDelete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverEndpointsDelete.d.ts","sourceRoot":"","sources":["../../samples-dev/serverEndpointsDelete.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Delete a given ServerEndpoint.
13
+ *
14
+ * @summary Delete a given ServerEndpoint.
15
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/ServerEndpoints_Delete.json
16
+ */
17
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function serverEndpointsDelete() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "52b8da2f-61e0-4a1f-8dde-336911f367fb";
22
+ const resourceGroupName = "SampleResourceGroup_1";
23
+ const storageSyncServiceName = "SampleStorageSyncService_1";
24
+ const syncGroupName = "SampleSyncGroup_1";
25
+ const serverEndpointName = "SampleServerEndpoint_1";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new MicrosoftStorageSync(credential, subscriptionId);
28
+ const result = yield client.serverEndpoints.beginDeleteAndWait(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ serverEndpointsDelete().catch(console.error);
33
+ //# sourceMappingURL=serverEndpointsDelete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverEndpointsDelete.js","sourceRoot":"","sources":["../../samples-dev/serverEndpointsDelete.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,uBAAuB,CAAC;QAClD,MAAM,sBAAsB,GAAG,4BAA4B,CAAC;QAC5D,MAAM,aAAa,GAAG,mBAAmB,CAAC;QAC1C,MAAM,kBAAkB,GAAG,wBAAwB,CAAC;QACpD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,kBAAkB,CAC5D,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=serverEndpointsGet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverEndpointsGet.d.ts","sourceRoot":"","sources":["../../samples-dev/serverEndpointsGet.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Get a ServerEndpoint.
13
+ *
14
+ * @summary Get a ServerEndpoint.
15
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/ServerEndpoints_Get.json
16
+ */
17
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function serverEndpointsGet() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "52b8da2f-61e0-4a1f-8dde-336911f367fb";
22
+ const resourceGroupName = "SampleResourceGroup_1";
23
+ const storageSyncServiceName = "SampleStorageSyncService_1";
24
+ const syncGroupName = "SampleSyncGroup_1";
25
+ const serverEndpointName = "SampleServerEndpoint_1";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new MicrosoftStorageSync(credential, subscriptionId);
28
+ const result = yield client.serverEndpoints.get(resourceGroupName, storageSyncServiceName, syncGroupName, serverEndpointName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ serverEndpointsGet().catch(console.error);
33
+ //# sourceMappingURL=serverEndpointsGet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverEndpointsGet.js","sourceRoot":"","sources":["../../samples-dev/serverEndpointsGet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,uBAAuB,CAAC;QAClD,MAAM,sBAAsB,GAAG,4BAA4B,CAAC;QAC5D,MAAM,aAAa,GAAG,mBAAmB,CAAC;QAC1C,MAAM,kBAAkB,GAAG,wBAAwB,CAAC;QACpD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,GAAG,CAC7C,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=serverEndpointsListBySyncGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverEndpointsListBySyncGroup.d.ts","sourceRoot":"","sources":["../../samples-dev/serverEndpointsListBySyncGroup.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Get a ServerEndpoint list.
13
+ *
14
+ * @summary Get a ServerEndpoint list.
15
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/ServerEndpoints_ListBySyncGroup.json
16
+ */
17
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function serverEndpointsListBySyncGroup() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "52b8da2f-61e0-4a1f-8dde-336911f367fb";
23
+ const resourceGroupName = "SampleResourceGroup_1";
24
+ const storageSyncServiceName = "SampleStorageSyncService_1";
25
+ const syncGroupName = "SampleSyncGroup_1";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new MicrosoftStorageSync(credential, subscriptionId);
28
+ const resArray = new Array();
29
+ try {
30
+ for (var _b = __asyncValues(client.serverEndpoints.listBySyncGroup(resourceGroupName, storageSyncServiceName, syncGroupName)), _c; _c = yield _b.next(), !_c.done;) {
31
+ let item = _c.value;
32
+ resArray.push(item);
33
+ }
34
+ }
35
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
36
+ finally {
37
+ try {
38
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
39
+ }
40
+ finally { if (e_1) throw e_1.error; }
41
+ }
42
+ console.log(resArray);
43
+ });
44
+ }
45
+ serverEndpointsListBySyncGroup().catch(console.error);
46
+ //# sourceMappingURL=serverEndpointsListBySyncGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverEndpointsListBySyncGroup.js","sourceRoot":"","sources":["../../samples-dev/serverEndpointsListBySyncGroup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,8BAA8B;;;QAC3C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,uBAAuB,CAAC;QAClD,MAAM,sBAAsB,GAAG,4BAA4B,CAAC;QAC5D,MAAM,aAAa,GAAG,mBAAmB,CAAC;QAC1C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,eAAe,CAC3D,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,CACd,CAAA,IAAA;gBAJU,IAAI,IAAI,WAAA,CAAA;gBAKjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,8BAA8B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}