@azure/arm-storagesync 9.0.0 → 9.0.2-alpha.20220506.3

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 +16 -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 +30 -15
  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
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGetSample.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
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets the specified private endpoint connection associated with the storage sync service.
15
+ *
16
+ * @summary Gets the specified private endpoint connection associated with the storage sync service.
17
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/PrivateEndpointConnections_Get.json
18
+ */
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=privateEndpointConnectionsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,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=privateEndpointConnectionsListByStorageSyncServiceSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsListByStorageSyncServiceSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListByStorageSyncServiceSample.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
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get a PrivateEndpointConnection List.
15
+ *
16
+ * @summary Get a PrivateEndpointConnection List.
17
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/PrivateEndpointConnections_ListByStorageSyncService.json
18
+ */
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=privateEndpointConnectionsListByStorageSyncServiceSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsListByStorageSyncServiceSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListByStorageSyncServiceSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,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=privateLinkResourcesListByStorageSyncServiceSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourcesListByStorageSyncServiceSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesListByStorageSyncServiceSample.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
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets the private link resources that need to be created for a storage sync service.
15
+ *
16
+ * @summary Gets the private link resources that need to be created for a storage sync service.
17
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/PrivateLinkResources_List.json
18
+ */
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=privateLinkResourcesListByStorageSyncServiceSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourcesListByStorageSyncServiceSample.js","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesListByStorageSyncServiceSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,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=registeredServersCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/registeredServersCreateSample.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
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Add a new registered server.
15
+ *
16
+ * @summary Add a new registered server.
17
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/RegisteredServers_Create.json
18
+ */
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=registeredServersCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersCreateSample.js","sourceRoot":"","sources":["../../samples-dev/registeredServersCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,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=registeredServersDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/registeredServersDeleteSample.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
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Delete the given registered server.
15
+ *
16
+ * @summary Delete the given registered server.
17
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/RegisteredServers_Delete.json
18
+ */
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=registeredServersDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/registeredServersDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,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=registeredServersGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/registeredServersGetSample.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
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get a given registered server.
15
+ *
16
+ * @summary Get a given registered server.
17
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/RegisteredServers_Get.json
18
+ */
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=registeredServersGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersGetSample.js","sourceRoot":"","sources":["../../samples-dev/registeredServersGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,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=registeredServersListByStorageSyncServiceSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersListByStorageSyncServiceSample.d.ts","sourceRoot":"","sources":["../../samples-dev/registeredServersListByStorageSyncServiceSample.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
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get a given registered server list.
15
+ *
16
+ * @summary Get a given registered server list.
17
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/RegisteredServers_ListByStorageSyncService.json
18
+ */
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=registeredServersListByStorageSyncServiceSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersListByStorageSyncServiceSample.js","sourceRoot":"","sources":["../../samples-dev/registeredServersListByStorageSyncServiceSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,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=registeredServersTriggerRolloverSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersTriggerRolloverSample.d.ts","sourceRoot":"","sources":["../../samples-dev/registeredServersTriggerRolloverSample.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
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Triggers Server certificate rollover.
15
+ *
16
+ * @summary Triggers Server certificate rollover.
17
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/RegisteredServers_TriggerRollover.json
18
+ */
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=registeredServersTriggerRolloverSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registeredServersTriggerRolloverSample.js","sourceRoot":"","sources":["../../samples-dev/registeredServersTriggerRolloverSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,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=serverEndpointsCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverEndpointsCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/serverEndpointsCreateSample.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
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Create a new ServerEndpoint.
15
+ *
16
+ * @summary Create a new ServerEndpoint.
17
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/ServerEndpoints_Create.json
18
+ */
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=serverEndpointsCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverEndpointsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/serverEndpointsCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,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=serverEndpointsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverEndpointsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/serverEndpointsDeleteSample.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
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Delete a given ServerEndpoint.
15
+ *
16
+ * @summary Delete a given ServerEndpoint.
17
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/ServerEndpoints_Delete.json
18
+ */
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=serverEndpointsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverEndpointsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/serverEndpointsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,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=serverEndpointsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverEndpointsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/serverEndpointsGetSample.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
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get a ServerEndpoint.
15
+ *
16
+ * @summary Get a ServerEndpoint.
17
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/ServerEndpoints_Get.json
18
+ */
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=serverEndpointsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverEndpointsGetSample.js","sourceRoot":"","sources":["../../samples-dev/serverEndpointsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,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=serverEndpointsListBySyncGroupSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverEndpointsListBySyncGroupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/serverEndpointsListBySyncGroupSample.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
+ import { MicrosoftStorageSync } from "@azure/arm-storagesync";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get a ServerEndpoint list.
15
+ *
16
+ * @summary Get a ServerEndpoint list.
17
+ * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/ServerEndpoints_ListBySyncGroup.json
18
+ */
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=serverEndpointsListBySyncGroupSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverEndpointsListBySyncGroupSample.js","sourceRoot":"","sources":["../../samples-dev/serverEndpointsListBySyncGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,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"}