@azure/arm-storagesync 9.1.1-alpha.20250717.1 → 9.1.1-alpha.20250718.2

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 (115) hide show
  1. package/dist/browser/lroImpl.js +11 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/microsoftStorageSync.js +23 -5
  4. package/dist/browser/microsoftStorageSync.js.map +1 -1
  5. package/dist/browser/models/mappers.js +248 -117
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/cloudEndpoints.js +87 -69
  8. package/dist/browser/operations/cloudEndpoints.js.map +1 -1
  9. package/dist/browser/operations/operationStatusOperations.js +1 -0
  10. package/dist/browser/operations/operationStatusOperations.js.map +1 -1
  11. package/dist/browser/operations/operations.js +23 -40
  12. package/dist/browser/operations/operations.js.map +1 -1
  13. package/dist/browser/operations/privateEndpointConnections.js +32 -39
  14. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  15. package/dist/browser/operations/privateLinkResources.js +1 -0
  16. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  17. package/dist/browser/operations/registeredServers.js +43 -45
  18. package/dist/browser/operations/registeredServers.js.map +1 -1
  19. package/dist/browser/operations/serverEndpoints.js +54 -51
  20. package/dist/browser/operations/serverEndpoints.js.map +1 -1
  21. package/dist/browser/operations/storageSyncServices.js +52 -71
  22. package/dist/browser/operations/storageSyncServices.js.map +1 -1
  23. package/dist/browser/operations/syncGroups.js +10 -27
  24. package/dist/browser/operations/syncGroups.js.map +1 -1
  25. package/dist/browser/operations/workflows.js +10 -27
  26. package/dist/browser/operations/workflows.js.map +1 -1
  27. package/dist/browser/pagingHelper.js +2 -4
  28. package/dist/browser/pagingHelper.js.map +1 -1
  29. package/dist/commonjs/lroImpl.js +11 -3
  30. package/dist/commonjs/lroImpl.js.map +1 -1
  31. package/dist/commonjs/microsoftStorageSync.js +23 -5
  32. package/dist/commonjs/microsoftStorageSync.js.map +1 -1
  33. package/dist/commonjs/models/mappers.js +248 -117
  34. package/dist/commonjs/models/mappers.js.map +1 -1
  35. package/dist/commonjs/operations/cloudEndpoints.js +87 -68
  36. package/dist/commonjs/operations/cloudEndpoints.js.map +1 -1
  37. package/dist/commonjs/operations/operationStatusOperations.js +1 -0
  38. package/dist/commonjs/operations/operationStatusOperations.js.map +1 -1
  39. package/dist/commonjs/operations/operations.js +23 -39
  40. package/dist/commonjs/operations/operations.js.map +1 -1
  41. package/dist/commonjs/operations/privateEndpointConnections.js +32 -38
  42. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  43. package/dist/commonjs/operations/privateLinkResources.js +1 -0
  44. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  45. package/dist/commonjs/operations/registeredServers.js +43 -44
  46. package/dist/commonjs/operations/registeredServers.js.map +1 -1
  47. package/dist/commonjs/operations/serverEndpoints.js +54 -50
  48. package/dist/commonjs/operations/serverEndpoints.js.map +1 -1
  49. package/dist/commonjs/operations/storageSyncServices.js +52 -70
  50. package/dist/commonjs/operations/storageSyncServices.js.map +1 -1
  51. package/dist/commonjs/operations/syncGroups.js +10 -26
  52. package/dist/commonjs/operations/syncGroups.js.map +1 -1
  53. package/dist/commonjs/operations/workflows.js +10 -26
  54. package/dist/commonjs/operations/workflows.js.map +1 -1
  55. package/dist/commonjs/pagingHelper.js +2 -4
  56. package/dist/commonjs/pagingHelper.js.map +1 -1
  57. package/dist/commonjs/tsdoc-metadata.json +11 -11
  58. package/dist/esm/lroImpl.js +11 -3
  59. package/dist/esm/lroImpl.js.map +1 -1
  60. package/dist/esm/microsoftStorageSync.js +23 -5
  61. package/dist/esm/microsoftStorageSync.js.map +1 -1
  62. package/dist/esm/models/mappers.js +248 -117
  63. package/dist/esm/models/mappers.js.map +1 -1
  64. package/dist/esm/operations/cloudEndpoints.js +87 -69
  65. package/dist/esm/operations/cloudEndpoints.js.map +1 -1
  66. package/dist/esm/operations/operationStatusOperations.js +1 -0
  67. package/dist/esm/operations/operationStatusOperations.js.map +1 -1
  68. package/dist/esm/operations/operations.js +23 -40
  69. package/dist/esm/operations/operations.js.map +1 -1
  70. package/dist/esm/operations/privateEndpointConnections.js +32 -39
  71. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  72. package/dist/esm/operations/privateLinkResources.js +1 -0
  73. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  74. package/dist/esm/operations/registeredServers.js +43 -45
  75. package/dist/esm/operations/registeredServers.js.map +1 -1
  76. package/dist/esm/operations/serverEndpoints.js +54 -51
  77. package/dist/esm/operations/serverEndpoints.js.map +1 -1
  78. package/dist/esm/operations/storageSyncServices.js +52 -71
  79. package/dist/esm/operations/storageSyncServices.js.map +1 -1
  80. package/dist/esm/operations/syncGroups.js +10 -27
  81. package/dist/esm/operations/syncGroups.js.map +1 -1
  82. package/dist/esm/operations/workflows.js +10 -27
  83. package/dist/esm/operations/workflows.js.map +1 -1
  84. package/dist/esm/pagingHelper.js +2 -4
  85. package/dist/esm/pagingHelper.js.map +1 -1
  86. package/dist/react-native/lroImpl.js +11 -3
  87. package/dist/react-native/lroImpl.js.map +1 -1
  88. package/dist/react-native/microsoftStorageSync.js +23 -5
  89. package/dist/react-native/microsoftStorageSync.js.map +1 -1
  90. package/dist/react-native/models/mappers.js +248 -117
  91. package/dist/react-native/models/mappers.js.map +1 -1
  92. package/dist/react-native/operations/cloudEndpoints.js +87 -69
  93. package/dist/react-native/operations/cloudEndpoints.js.map +1 -1
  94. package/dist/react-native/operations/operationStatusOperations.js +1 -0
  95. package/dist/react-native/operations/operationStatusOperations.js.map +1 -1
  96. package/dist/react-native/operations/operations.js +23 -40
  97. package/dist/react-native/operations/operations.js.map +1 -1
  98. package/dist/react-native/operations/privateEndpointConnections.js +32 -39
  99. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  100. package/dist/react-native/operations/privateLinkResources.js +1 -0
  101. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  102. package/dist/react-native/operations/registeredServers.js +43 -45
  103. package/dist/react-native/operations/registeredServers.js.map +1 -1
  104. package/dist/react-native/operations/serverEndpoints.js +54 -51
  105. package/dist/react-native/operations/serverEndpoints.js.map +1 -1
  106. package/dist/react-native/operations/storageSyncServices.js +52 -71
  107. package/dist/react-native/operations/storageSyncServices.js.map +1 -1
  108. package/dist/react-native/operations/syncGroups.js +10 -27
  109. package/dist/react-native/operations/syncGroups.js.map +1 -1
  110. package/dist/react-native/operations/workflows.js +10 -27
  111. package/dist/react-native/operations/workflows.js.map +1 -1
  112. package/dist/react-native/pagingHelper.js +2 -4
  113. package/dist/react-native/pagingHelper.js.map +1 -1
  114. package/package.json +2 -2
  115. package/review/arm-storagesync-node.api.md +1557 -1557
@@ -17,6 +17,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
17
17
  /// <reference lib="esnext.asynciterable" />
18
18
  /** Class containing StorageSyncServices operations. */
19
19
  class StorageSyncServicesImpl {
20
+ client;
20
21
  /**
21
22
  * Initialize a new instance of the class StorageSyncServices class.
22
23
  * @param client Reference to the service client
@@ -39,39 +40,22 @@ class StorageSyncServicesImpl {
39
40
  return this;
40
41
  },
41
42
  byPage: (settings) => {
42
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
+ if (settings?.maxPageSize) {
43
44
  throw new Error("maxPageSize is not supported by this operation.");
44
45
  }
45
46
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
46
47
  }
47
48
  };
48
49
  }
49
- listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
50
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
51
- let result;
52
- result = yield tslib_1.__await(this._listByResourceGroup(resourceGroupName, options));
53
- yield yield tslib_1.__await(result.value || []);
54
- });
50
+ async *listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
51
+ let result;
52
+ result = await this._listByResourceGroup(resourceGroupName, options);
53
+ yield result.value || [];
55
54
  }
56
- listByResourceGroupPagingAll(resourceGroupName, options) {
57
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
58
- var _a, e_1, _b, _c;
59
- try {
60
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
61
- _c = _f.value;
62
- _d = false;
63
- const page = _c;
64
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
65
- }
66
- }
67
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
68
- finally {
69
- try {
70
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
71
- }
72
- finally { if (e_1) throw e_1.error; }
73
- }
74
- });
55
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
56
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
57
+ yield* page;
58
+ }
75
59
  }
76
60
  /**
77
61
  * Get a StorageSyncService list by subscription.
@@ -87,39 +71,22 @@ class StorageSyncServicesImpl {
87
71
  return this;
88
72
  },
89
73
  byPage: (settings) => {
90
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
74
+ if (settings?.maxPageSize) {
91
75
  throw new Error("maxPageSize is not supported by this operation.");
92
76
  }
93
77
  return this.listBySubscriptionPagingPage(options, settings);
94
78
  }
95
79
  };
96
80
  }
97
- listBySubscriptionPagingPage(options, _settings) {
98
- return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
99
- let result;
100
- result = yield tslib_1.__await(this._listBySubscription(options));
101
- yield yield tslib_1.__await(result.value || []);
102
- });
81
+ async *listBySubscriptionPagingPage(options, _settings) {
82
+ let result;
83
+ result = await this._listBySubscription(options);
84
+ yield result.value || [];
103
85
  }
104
- listBySubscriptionPagingAll(options) {
105
- return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
106
- var _a, e_2, _b, _c;
107
- try {
108
- for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
109
- _c = _f.value;
110
- _d = false;
111
- const page = _c;
112
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
113
- }
114
- }
115
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
116
- finally {
117
- try {
118
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
119
- }
120
- finally { if (e_2) throw e_2.error; }
121
- }
122
- });
86
+ async *listBySubscriptionPagingAll(options) {
87
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
88
+ yield* page;
89
+ }
123
90
  }
124
91
  /**
125
92
  * Check the give namespace name availability.
@@ -142,14 +109,19 @@ class StorageSyncServicesImpl {
142
109
  return this.client.sendOperationRequest(args, spec);
143
110
  };
144
111
  const sendOperation = async (args, spec) => {
145
- var _a;
146
112
  let currentRawResponse = undefined;
147
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
113
+ const providedCallback = args.options?.onResponse;
148
114
  const callback = (rawResponse, flatResponse) => {
149
115
  currentRawResponse = rawResponse;
150
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
116
+ providedCallback?.(rawResponse, flatResponse);
117
+ };
118
+ const updatedArgs = {
119
+ ...args,
120
+ options: {
121
+ ...args.options,
122
+ onResponse: callback
123
+ }
151
124
  };
152
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
153
125
  const flatResponse = await directSendOperation(updatedArgs, spec);
154
126
  return {
155
127
  flatResponse,
@@ -162,8 +134,8 @@ class StorageSyncServicesImpl {
162
134
  };
163
135
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, parameters, options }, createOperationSpec);
164
136
  const poller = new core_lro_1.LroEngine(lro, {
165
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
166
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
137
+ resumeFrom: options?.resumeFrom,
138
+ intervalInMs: options?.updateIntervalInMs
167
139
  });
168
140
  await poller.poll();
169
141
  return poller;
@@ -199,14 +171,19 @@ class StorageSyncServicesImpl {
199
171
  return this.client.sendOperationRequest(args, spec);
200
172
  };
201
173
  const sendOperation = async (args, spec) => {
202
- var _a;
203
174
  let currentRawResponse = undefined;
204
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
175
+ const providedCallback = args.options?.onResponse;
205
176
  const callback = (rawResponse, flatResponse) => {
206
177
  currentRawResponse = rawResponse;
207
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
178
+ providedCallback?.(rawResponse, flatResponse);
179
+ };
180
+ const updatedArgs = {
181
+ ...args,
182
+ options: {
183
+ ...args.options,
184
+ onResponse: callback
185
+ }
208
186
  };
209
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
210
187
  const flatResponse = await directSendOperation(updatedArgs, spec);
211
188
  return {
212
189
  flatResponse,
@@ -219,8 +196,8 @@ class StorageSyncServicesImpl {
219
196
  };
220
197
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, options }, updateOperationSpec);
221
198
  const poller = new core_lro_1.LroEngine(lro, {
222
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
223
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
199
+ resumeFrom: options?.resumeFrom,
200
+ intervalInMs: options?.updateIntervalInMs
224
201
  });
225
202
  await poller.poll();
226
203
  return poller;
@@ -246,14 +223,19 @@ class StorageSyncServicesImpl {
246
223
  return this.client.sendOperationRequest(args, spec);
247
224
  };
248
225
  const sendOperation = async (args, spec) => {
249
- var _a;
250
226
  let currentRawResponse = undefined;
251
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
227
+ const providedCallback = args.options?.onResponse;
252
228
  const callback = (rawResponse, flatResponse) => {
253
229
  currentRawResponse = rawResponse;
254
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
230
+ providedCallback?.(rawResponse, flatResponse);
231
+ };
232
+ const updatedArgs = {
233
+ ...args,
234
+ options: {
235
+ ...args.options,
236
+ onResponse: callback
237
+ }
255
238
  };
256
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
257
239
  const flatResponse = await directSendOperation(updatedArgs, spec);
258
240
  return {
259
241
  flatResponse,
@@ -266,8 +248,8 @@ class StorageSyncServicesImpl {
266
248
  };
267
249
  const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, options }, deleteOperationSpec);
268
250
  const poller = new core_lro_1.LroEngine(lro, {
269
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
270
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
251
+ resumeFrom: options?.resumeFrom,
252
+ intervalInMs: options?.updateIntervalInMs
271
253
  });
272
254
  await poller.poll();
273
255
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"storageSyncServices.js","sourceRoot":"","sources":["../../../src/operations/storageSyncServices.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAqBxC,4CAA4C;AAC5C,uDAAuD;AACvD,MAAa,uBAAuB;IAGlC;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAA8D;QAE9D,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;Q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AC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,sBAAsB;KAClC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EACF,wHAAwH;IAC1H,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;YAC3C,aAAa,EAAE,OAAO,CAAC,6CAA6C;SACrE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EACF,qFAAqF;IACvF,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;YAC3C,aAAa,EAAE,OAAO,CAAC,4CAA4C;SACpE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { StorageSyncServices } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MicrosoftStorageSync } from \"../microsoftStorageSync.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n StorageSyncService,\n StorageSyncServicesListByResourceGroupOptionalParams,\n StorageSyncServicesListByResourceGroupResponse,\n StorageSyncServicesListBySubscriptionOptionalParams,\n StorageSyncServicesListBySubscriptionResponse,\n CheckNameAvailabilityParameters,\n StorageSyncServicesCheckNameAvailabilityOptionalParams,\n StorageSyncServicesCheckNameAvailabilityResponse,\n StorageSyncServiceCreateParameters,\n StorageSyncServicesCreateOptionalParams,\n StorageSyncServicesCreateResponse,\n StorageSyncServicesGetOptionalParams,\n StorageSyncServicesGetResponse,\n StorageSyncServicesUpdateOptionalParams,\n StorageSyncServicesUpdateResponse,\n StorageSyncServicesDeleteOptionalParams,\n StorageSyncServicesDeleteResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing StorageSyncServices operations. */\nexport class StorageSyncServicesImpl implements StorageSyncServices {\n private readonly client: MicrosoftStorageSync;\n\n /**\n * Initialize a new instance of the class StorageSyncServices class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftStorageSync) {\n this.client = client;\n }\n\n /**\n * Get a StorageSyncService list by Resource group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: StorageSyncServicesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<StorageSyncService> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: StorageSyncServicesListByResourceGroupOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<StorageSyncService[]> {\n let result: StorageSyncServicesListByResourceGroupResponse;\n result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: StorageSyncServicesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<StorageSyncService> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a StorageSyncService list by subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: StorageSyncServicesListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<StorageSyncService> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: StorageSyncServicesListBySubscriptionOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<StorageSyncService[]> {\n let result: StorageSyncServicesListBySubscriptionResponse;\n result = await this._listBySubscription(options);\n yield result.value || [];\n }\n\n private async *listBySubscriptionPagingAll(\n options?: StorageSyncServicesListBySubscriptionOptionalParams\n ): AsyncIterableIterator<StorageSyncService> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Check the give namespace name availability.\n * @param locationName The desired region for the name check.\n * @param parameters Parameters to check availability of the given namespace name\n * @param options The options parameters.\n */\n checkNameAvailability(\n locationName: string,\n parameters: CheckNameAvailabilityParameters,\n options?: StorageSyncServicesCheckNameAvailabilityOptionalParams\n ): Promise<StorageSyncServicesCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n { locationName, parameters, options },\n checkNameAvailabilityOperationSpec\n );\n }\n\n /**\n * Create a new StorageSyncService.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param parameters Storage Sync Service resource name.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n storageSyncServiceName: string,\n parameters: StorageSyncServiceCreateParameters,\n options?: StorageSyncServicesCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<StorageSyncServicesCreateResponse>,\n StorageSyncServicesCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<StorageSyncServicesCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, storageSyncServiceName, parameters, options },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new StorageSyncService.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param parameters Storage Sync Service resource name.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n parameters: StorageSyncServiceCreateParameters,\n options?: StorageSyncServicesCreateOptionalParams\n ): Promise<StorageSyncServicesCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n storageSyncServiceName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get a given StorageSyncService.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: StorageSyncServicesGetOptionalParams\n ): Promise<StorageSyncServicesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Patch a given StorageSyncService.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: StorageSyncServicesUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<StorageSyncServicesUpdateResponse>,\n StorageSyncServicesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<StorageSyncServicesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, storageSyncServiceName, options },\n updateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Patch a given StorageSyncService.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: StorageSyncServicesUpdateOptionalParams\n ): Promise<StorageSyncServicesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n storageSyncServiceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a given StorageSyncService.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: StorageSyncServicesDeleteOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<StorageSyncServicesDeleteResponse>,\n StorageSyncServicesDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<StorageSyncServicesDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, storageSyncServiceName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a given StorageSyncService.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: StorageSyncServicesDeleteOptionalParams\n ): Promise<StorageSyncServicesDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n storageSyncServiceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get a StorageSyncService list by Resource group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: StorageSyncServicesListByResourceGroupOptionalParams\n ): Promise<StorageSyncServicesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Get a StorageSyncService list by subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: StorageSyncServicesListBySubscriptionOptionalParams\n ): Promise<StorageSyncServicesListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/locations/{locationName}/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResult\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.locationName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageSyncService\n },\n 201: {\n bodyMapper: Mappers.StorageSyncService\n },\n 202: {\n bodyMapper: Mappers.StorageSyncService\n },\n 204: {\n bodyMapper: Mappers.StorageSyncService\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageSyncService,\n headersMapper: Mappers.StorageSyncServicesGetHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageSyncService,\n headersMapper: Mappers.StorageSyncServicesUpdateHeaders\n },\n 201: {\n bodyMapper: Mappers.StorageSyncService,\n headersMapper: Mappers.StorageSyncServicesUpdateHeaders\n },\n 202: {\n bodyMapper: Mappers.StorageSyncService,\n headersMapper: Mappers.StorageSyncServicesUpdateHeaders\n },\n 204: {\n bodyMapper: Mappers.StorageSyncService,\n headersMapper: Mappers.StorageSyncServicesUpdateHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.StorageSyncServicesDeleteHeaders\n },\n 201: {\n headersMapper: Mappers.StorageSyncServicesDeleteHeaders\n },\n 202: {\n headersMapper: Mappers.StorageSyncServicesDeleteHeaders\n },\n 204: {\n headersMapper: Mappers.StorageSyncServicesDeleteHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageSyncServiceArray,\n headersMapper: Mappers.StorageSyncServicesListByResourceGroupHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/storageSyncServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageSyncServiceArray,\n headersMapper: Mappers.StorageSyncServicesListBySubscriptionHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"storageSyncServices.js","sourceRoot":"","sources":["../../../src/operations/storageSyncServices.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAqBxC,4CAA4C;AAC5C,uDAAuD;AACvD,MAAa,uBAAuB;IACjB,MAAM,CAAuB;IAE9C;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAA8D;QAE9D,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CA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AC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EACF,qFAAqF;IACvF,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;YAC3C,aAAa,EAAE,OAAO,CAAC,4CAA4C;SACpE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { StorageSyncServices } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MicrosoftStorageSync } from \"../microsoftStorageSync.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n StorageSyncService,\n StorageSyncServicesListByResourceGroupOptionalParams,\n StorageSyncServicesListByResourceGroupResponse,\n StorageSyncServicesListBySubscriptionOptionalParams,\n StorageSyncServicesListBySubscriptionResponse,\n CheckNameAvailabilityParameters,\n StorageSyncServicesCheckNameAvailabilityOptionalParams,\n StorageSyncServicesCheckNameAvailabilityResponse,\n StorageSyncServiceCreateParameters,\n StorageSyncServicesCreateOptionalParams,\n StorageSyncServicesCreateResponse,\n StorageSyncServicesGetOptionalParams,\n StorageSyncServicesGetResponse,\n StorageSyncServicesUpdateOptionalParams,\n StorageSyncServicesUpdateResponse,\n StorageSyncServicesDeleteOptionalParams,\n StorageSyncServicesDeleteResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing StorageSyncServices operations. */\nexport class StorageSyncServicesImpl implements StorageSyncServices {\n private readonly client: MicrosoftStorageSync;\n\n /**\n * Initialize a new instance of the class StorageSyncServices class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftStorageSync) {\n this.client = client;\n }\n\n /**\n * Get a StorageSyncService list by Resource group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: StorageSyncServicesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<StorageSyncService> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: StorageSyncServicesListByResourceGroupOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<StorageSyncService[]> {\n let result: StorageSyncServicesListByResourceGroupResponse;\n result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: StorageSyncServicesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<StorageSyncService> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a StorageSyncService list by subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: StorageSyncServicesListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<StorageSyncService> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: StorageSyncServicesListBySubscriptionOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<StorageSyncService[]> {\n let result: StorageSyncServicesListBySubscriptionResponse;\n result = await this._listBySubscription(options);\n yield result.value || [];\n }\n\n private async *listBySubscriptionPagingAll(\n options?: StorageSyncServicesListBySubscriptionOptionalParams\n ): AsyncIterableIterator<StorageSyncService> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Check the give namespace name availability.\n * @param locationName The desired region for the name check.\n * @param parameters Parameters to check availability of the given namespace name\n * @param options The options parameters.\n */\n checkNameAvailability(\n locationName: string,\n parameters: CheckNameAvailabilityParameters,\n options?: StorageSyncServicesCheckNameAvailabilityOptionalParams\n ): Promise<StorageSyncServicesCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n { locationName, parameters, options },\n checkNameAvailabilityOperationSpec\n );\n }\n\n /**\n * Create a new StorageSyncService.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param parameters Storage Sync Service resource name.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n storageSyncServiceName: string,\n parameters: StorageSyncServiceCreateParameters,\n options?: StorageSyncServicesCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<StorageSyncServicesCreateResponse>,\n StorageSyncServicesCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<StorageSyncServicesCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, storageSyncServiceName, parameters, options },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new StorageSyncService.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param parameters Storage Sync Service resource name.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n parameters: StorageSyncServiceCreateParameters,\n options?: StorageSyncServicesCreateOptionalParams\n ): Promise<StorageSyncServicesCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n storageSyncServiceName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get a given StorageSyncService.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: StorageSyncServicesGetOptionalParams\n ): Promise<StorageSyncServicesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Patch a given StorageSyncService.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: StorageSyncServicesUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<StorageSyncServicesUpdateResponse>,\n StorageSyncServicesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<StorageSyncServicesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, storageSyncServiceName, options },\n updateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Patch a given StorageSyncService.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: StorageSyncServicesUpdateOptionalParams\n ): Promise<StorageSyncServicesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n storageSyncServiceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a given StorageSyncService.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: StorageSyncServicesDeleteOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<StorageSyncServicesDeleteResponse>,\n StorageSyncServicesDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<StorageSyncServicesDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, storageSyncServiceName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a given StorageSyncService.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: StorageSyncServicesDeleteOptionalParams\n ): Promise<StorageSyncServicesDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n storageSyncServiceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get a StorageSyncService list by Resource group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: StorageSyncServicesListByResourceGroupOptionalParams\n ): Promise<StorageSyncServicesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Get a StorageSyncService list by subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: StorageSyncServicesListBySubscriptionOptionalParams\n ): Promise<StorageSyncServicesListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/locations/{locationName}/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResult\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.locationName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageSyncService\n },\n 201: {\n bodyMapper: Mappers.StorageSyncService\n },\n 202: {\n bodyMapper: Mappers.StorageSyncService\n },\n 204: {\n bodyMapper: Mappers.StorageSyncService\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageSyncService,\n headersMapper: Mappers.StorageSyncServicesGetHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageSyncService,\n headersMapper: Mappers.StorageSyncServicesUpdateHeaders\n },\n 201: {\n bodyMapper: Mappers.StorageSyncService,\n headersMapper: Mappers.StorageSyncServicesUpdateHeaders\n },\n 202: {\n bodyMapper: Mappers.StorageSyncService,\n headersMapper: Mappers.StorageSyncServicesUpdateHeaders\n },\n 204: {\n bodyMapper: Mappers.StorageSyncService,\n headersMapper: Mappers.StorageSyncServicesUpdateHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.StorageSyncServicesDeleteHeaders\n },\n 201: {\n headersMapper: Mappers.StorageSyncServicesDeleteHeaders\n },\n 202: {\n headersMapper: Mappers.StorageSyncServicesDeleteHeaders\n },\n 204: {\n headersMapper: Mappers.StorageSyncServicesDeleteHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageSyncServiceArray,\n headersMapper: Mappers.StorageSyncServicesListByResourceGroupHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.StorageSync/storageSyncServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageSyncServiceArray,\n headersMapper: Mappers.StorageSyncServicesListBySubscriptionHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  /** Class containing SyncGroups operations. */
17
17
  class SyncGroupsImpl {
18
+ client;
18
19
  /**
19
20
  * Initialize a new instance of the class SyncGroups class.
20
21
  * @param client Reference to the service client
@@ -38,39 +39,22 @@ class SyncGroupsImpl {
38
39
  return this;
39
40
  },
40
41
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ if (settings?.maxPageSize) {
42
43
  throw new Error("maxPageSize is not supported by this operation.");
43
44
  }
44
45
  return this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, settings);
45
46
  }
46
47
  };
47
48
  }
48
- listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
49
- return tslib_1.__asyncGenerator(this, arguments, function* listByStorageSyncServicePagingPage_1() {
50
- let result;
51
- result = yield tslib_1.__await(this._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options));
52
- yield yield tslib_1.__await(result.value || []);
53
- });
49
+ async *listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
50
+ let result;
51
+ result = await this._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options);
52
+ yield result.value || [];
54
53
  }
55
- listByStorageSyncServicePagingAll(resourceGroupName, storageSyncServiceName, options) {
56
- return tslib_1.__asyncGenerator(this, arguments, function* listByStorageSyncServicePagingAll_1() {
57
- var _a, e_1, _b, _c;
58
- try {
59
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
60
- _c = _f.value;
61
- _d = false;
62
- const page = _c;
63
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
64
- }
65
- }
66
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
67
- finally {
68
- try {
69
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
70
- }
71
- finally { if (e_1) throw e_1.error; }
72
- }
73
- });
54
+ async *listByStorageSyncServicePagingAll(resourceGroupName, storageSyncServiceName, options) {
55
+ for await (const page of this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options)) {
56
+ yield* page;
57
+ }
74
58
  }
75
59
  /**
76
60
  * Get a SyncGroup List.
@@ -1 +1 @@
1
- {"version":3,"file":"syncGroups.js","sourceRoot":"","sources":["../../../src/operations/syncGroups.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,wBAAwB,CAC7B,iBAAyB,EACzB,sBAA8B,EAC9B,OAA0D;QAE1D,MAAM,IAAI,GAAG,IAAI,CAAC,iCAAiC,CACjD,iBAAiB,EACjB,sBAAsB,EACtB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,kCAAkC,CAC5C,iBAAiB,EACjB,sBAAsB,EACtB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,kCAA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UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,sBAAsB;QACjC,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { SyncGroups } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MicrosoftStorageSync } from \"../microsoftStorageSync.js\";\nimport {\n SyncGroup,\n SyncGroupsListByStorageSyncServiceOptionalParams,\n SyncGroupsListByStorageSyncServiceResponse,\n SyncGroupCreateParameters,\n SyncGroupsCreateOptionalParams,\n SyncGroupsCreateResponse,\n SyncGroupsGetOptionalParams,\n SyncGroupsGetResponse,\n SyncGroupsDeleteOptionalParams,\n SyncGroupsDeleteResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SyncGroups operations. */\nexport class SyncGroupsImpl implements SyncGroups {\n private readonly client: MicrosoftStorageSync;\n\n /**\n * Initialize a new instance of the class SyncGroups class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftStorageSync) {\n this.client = client;\n }\n\n /**\n * Get a SyncGroup List.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n public listByStorageSyncService(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: SyncGroupsListByStorageSyncServiceOptionalParams\n ): PagedAsyncIterableIterator<SyncGroup> {\n const iter = this.listByStorageSyncServicePagingAll(\n resourceGroupName,\n storageSyncServiceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByStorageSyncServicePagingPage(\n resourceGroupName,\n storageSyncServiceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByStorageSyncServicePagingPage(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: SyncGroupsListByStorageSyncServiceOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<SyncGroup[]> {\n let result: SyncGroupsListByStorageSyncServiceResponse;\n result = await this._listByStorageSyncService(\n resourceGroupName,\n storageSyncServiceName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByStorageSyncServicePagingAll(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: SyncGroupsListByStorageSyncServiceOptionalParams\n ): AsyncIterableIterator<SyncGroup> {\n for await (const page of this.listByStorageSyncServicePagingPage(\n resourceGroupName,\n storageSyncServiceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a SyncGroup List.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n private _listByStorageSyncService(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: SyncGroupsListByStorageSyncServiceOptionalParams\n ): Promise<SyncGroupsListByStorageSyncServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, options },\n listByStorageSyncServiceOperationSpec\n );\n }\n\n /**\n * Create a new SyncGroup.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param parameters Sync Group Body\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n parameters: SyncGroupCreateParameters,\n options?: SyncGroupsCreateOptionalParams\n ): Promise<SyncGroupsCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n parameters,\n options\n },\n createOperationSpec\n );\n }\n\n /**\n * Get a given SyncGroup.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n options?: SyncGroupsGetOptionalParams\n ): Promise<SyncGroupsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, syncGroupName, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete a given SyncGroup.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n options?: SyncGroupsDeleteOptionalParams\n ): Promise<SyncGroupsDeleteResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, syncGroupName, options },\n deleteOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByStorageSyncServiceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SyncGroupArray,\n headersMapper: Mappers.SyncGroupsListByStorageSyncServiceHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SyncGroup,\n headersMapper: Mappers.SyncGroupsCreateHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.syncGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SyncGroup,\n headersMapper: Mappers.SyncGroupsGetHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.syncGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.SyncGroupsDeleteHeaders\n },\n 204: {},\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.syncGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"syncGroups.js","sourceRoot":"","sources":["../../../src/operations/syncGroups.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,MAAM,CAAuB;IAE9C;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,wBAAwB,CAC7B,iBAAyB,EACzB,sBAA8B,EAC9B,OAA0D;QAE1D,MAAM,IAAI,GAAG,IAAI,CAAC,iCAAiC,CACjD,iBAAiB,EACjB,sBAAsB,EACtB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,kCAAkC,CAC5C,iBAAiB,EACjB,sBAAsB,EACtB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,kCAAkC,CAC/C,iBAAyB,EACzB,sBAA8B,EAC9B,OAA0D,EAC1D,SAAwB;QAExB,IAAI,MAAkD,CAAC;QACvD,MAAM,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAC3C,iBAAiB,EACjB,sBAAsB,EACtB,OAAO,CACR,CAAC;QACF,MAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;IAC3B,CAAC;IAEO,KAAK,CAAC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9K,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,SAAS;YAC7B,aAAa,EAAE,OAAO,CAAC,oBAAoB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,sBAAsB;QACjC,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,4KAA4K;IAC9K,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,uBAAuB;SAC/C;QACD,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,sBAAsB;QACjC,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { SyncGroups } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MicrosoftStorageSync } from \"../microsoftStorageSync.js\";\nimport {\n SyncGroup,\n SyncGroupsListByStorageSyncServiceOptionalParams,\n SyncGroupsListByStorageSyncServiceResponse,\n SyncGroupCreateParameters,\n SyncGroupsCreateOptionalParams,\n SyncGroupsCreateResponse,\n SyncGroupsGetOptionalParams,\n SyncGroupsGetResponse,\n SyncGroupsDeleteOptionalParams,\n SyncGroupsDeleteResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SyncGroups operations. */\nexport class SyncGroupsImpl implements SyncGroups {\n private readonly client: MicrosoftStorageSync;\n\n /**\n * Initialize a new instance of the class SyncGroups class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftStorageSync) {\n this.client = client;\n }\n\n /**\n * Get a SyncGroup List.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n public listByStorageSyncService(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: SyncGroupsListByStorageSyncServiceOptionalParams\n ): PagedAsyncIterableIterator<SyncGroup> {\n const iter = this.listByStorageSyncServicePagingAll(\n resourceGroupName,\n storageSyncServiceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByStorageSyncServicePagingPage(\n resourceGroupName,\n storageSyncServiceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByStorageSyncServicePagingPage(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: SyncGroupsListByStorageSyncServiceOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<SyncGroup[]> {\n let result: SyncGroupsListByStorageSyncServiceResponse;\n result = await this._listByStorageSyncService(\n resourceGroupName,\n storageSyncServiceName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByStorageSyncServicePagingAll(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: SyncGroupsListByStorageSyncServiceOptionalParams\n ): AsyncIterableIterator<SyncGroup> {\n for await (const page of this.listByStorageSyncServicePagingPage(\n resourceGroupName,\n storageSyncServiceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a SyncGroup List.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n private _listByStorageSyncService(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: SyncGroupsListByStorageSyncServiceOptionalParams\n ): Promise<SyncGroupsListByStorageSyncServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, options },\n listByStorageSyncServiceOperationSpec\n );\n }\n\n /**\n * Create a new SyncGroup.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param parameters Sync Group Body\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n parameters: SyncGroupCreateParameters,\n options?: SyncGroupsCreateOptionalParams\n ): Promise<SyncGroupsCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n storageSyncServiceName,\n syncGroupName,\n parameters,\n options\n },\n createOperationSpec\n );\n }\n\n /**\n * Get a given SyncGroup.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n options?: SyncGroupsGetOptionalParams\n ): Promise<SyncGroupsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, syncGroupName, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete a given SyncGroup.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param syncGroupName Name of Sync Group resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n storageSyncServiceName: string,\n syncGroupName: string,\n options?: SyncGroupsDeleteOptionalParams\n ): Promise<SyncGroupsDeleteResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, syncGroupName, options },\n deleteOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByStorageSyncServiceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SyncGroupArray,\n headersMapper: Mappers.SyncGroupsListByStorageSyncServiceHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SyncGroup,\n headersMapper: Mappers.SyncGroupsCreateHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.syncGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SyncGroup,\n headersMapper: Mappers.SyncGroupsGetHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.syncGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.SyncGroupsDeleteHeaders\n },\n 204: {},\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.syncGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  /** Class containing Workflows operations. */
17
17
  class WorkflowsImpl {
18
+ client;
18
19
  /**
19
20
  * Initialize a new instance of the class Workflows class.
20
21
  * @param client Reference to the service client
@@ -38,39 +39,22 @@ class WorkflowsImpl {
38
39
  return this;
39
40
  },
40
41
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ if (settings?.maxPageSize) {
42
43
  throw new Error("maxPageSize is not supported by this operation.");
43
44
  }
44
45
  return this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, settings);
45
46
  }
46
47
  };
47
48
  }
48
- listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
49
- return tslib_1.__asyncGenerator(this, arguments, function* listByStorageSyncServicePagingPage_1() {
50
- let result;
51
- result = yield tslib_1.__await(this._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options));
52
- yield yield tslib_1.__await(result.value || []);
53
- });
49
+ async *listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
50
+ let result;
51
+ result = await this._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options);
52
+ yield result.value || [];
54
53
  }
55
- listByStorageSyncServicePagingAll(resourceGroupName, storageSyncServiceName, options) {
56
- return tslib_1.__asyncGenerator(this, arguments, function* listByStorageSyncServicePagingAll_1() {
57
- var _a, e_1, _b, _c;
58
- try {
59
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
60
- _c = _f.value;
61
- _d = false;
62
- const page = _c;
63
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
64
- }
65
- }
66
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
67
- finally {
68
- try {
69
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
70
- }
71
- finally { if (e_1) throw e_1.error; }
72
- }
73
- });
54
+ async *listByStorageSyncServicePagingAll(resourceGroupName, storageSyncServiceName, options) {
55
+ for await (const page of this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options)) {
56
+ yield* page;
57
+ }
74
58
  }
75
59
  /**
76
60
  * Get a Workflow List
@@ -1 +1 @@
1
- {"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../../src/operations/workflows.ts"],"names":[],"mappings":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sB;QACjC,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { Workflows } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MicrosoftStorageSync } from \"../microsoftStorageSync.js\";\nimport {\n Workflow,\n WorkflowsListByStorageSyncServiceOptionalParams,\n WorkflowsListByStorageSyncServiceResponse,\n WorkflowsGetOptionalParams,\n WorkflowsGetResponse,\n WorkflowsAbortOptionalParams,\n WorkflowsAbortResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Workflows operations. */\nexport class WorkflowsImpl implements Workflows {\n private readonly client: MicrosoftStorageSync;\n\n /**\n * Initialize a new instance of the class Workflows class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftStorageSync) {\n this.client = client;\n }\n\n /**\n * Get a Workflow List\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n public listByStorageSyncService(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: WorkflowsListByStorageSyncServiceOptionalParams\n ): PagedAsyncIterableIterator<Workflow> {\n const iter = this.listByStorageSyncServicePagingAll(\n resourceGroupName,\n storageSyncServiceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByStorageSyncServicePagingPage(\n resourceGroupName,\n storageSyncServiceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByStorageSyncServicePagingPage(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: WorkflowsListByStorageSyncServiceOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Workflow[]> {\n let result: WorkflowsListByStorageSyncServiceResponse;\n result = await this._listByStorageSyncService(\n resourceGroupName,\n storageSyncServiceName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByStorageSyncServicePagingAll(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: WorkflowsListByStorageSyncServiceOptionalParams\n ): AsyncIterableIterator<Workflow> {\n for await (const page of this.listByStorageSyncServicePagingPage(\n resourceGroupName,\n storageSyncServiceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a Workflow List\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n private _listByStorageSyncService(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: WorkflowsListByStorageSyncServiceOptionalParams\n ): Promise<WorkflowsListByStorageSyncServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, options },\n listByStorageSyncServiceOperationSpec\n );\n }\n\n /**\n * Get Workflows resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param workflowId workflow Id\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n storageSyncServiceName: string,\n workflowId: string,\n options?: WorkflowsGetOptionalParams\n ): Promise<WorkflowsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, workflowId, options },\n getOperationSpec\n );\n }\n\n /**\n * Abort the given workflow.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param workflowId workflow Id\n * @param options The options parameters.\n */\n abort(\n resourceGroupName: string,\n storageSyncServiceName: string,\n workflowId: string,\n options?: WorkflowsAbortOptionalParams\n ): Promise<WorkflowsAbortResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, workflowId, options },\n abortOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByStorageSyncServiceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkflowArray,\n headersMapper: Mappers.WorkflowsListByStorageSyncServiceHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows/{workflowId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Workflow,\n headersMapper: Mappers.WorkflowsGetHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.workflowId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst abortOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows/{workflowId}/abort\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.WorkflowsAbortHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.workflowId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../../src/operations/workflows.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAa,aAAa;IACP,MAAM,CAAuB;IAE9C;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,wBAAwB,CAC7B,iBAAyB,EACzB,sBAA8B,EAC9B,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,CAAC,iCAAiC,CACjD,iBAAiB,EACjB,sBAAsB,EACtB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,kCAAkC,CAC5C,iBAAiB,EACjB,sBAAsB,EACtB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,kCAAkC,CAC/C,iBAAyB,EACzB,sBAA8B,EAC9B,OAAyD,EACzD,SAAwB;QAExB,IAAI,MAAiD,CAAC;QACtD,MAAM,GAAG,M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CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,sBAAsB;QACjC,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { Workflows } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MicrosoftStorageSync } from \"../microsoftStorageSync.js\";\nimport {\n Workflow,\n WorkflowsListByStorageSyncServiceOptionalParams,\n WorkflowsListByStorageSyncServiceResponse,\n WorkflowsGetOptionalParams,\n WorkflowsGetResponse,\n WorkflowsAbortOptionalParams,\n WorkflowsAbortResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Workflows operations. */\nexport class WorkflowsImpl implements Workflows {\n private readonly client: MicrosoftStorageSync;\n\n /**\n * Initialize a new instance of the class Workflows class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftStorageSync) {\n this.client = client;\n }\n\n /**\n * Get a Workflow List\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n public listByStorageSyncService(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: WorkflowsListByStorageSyncServiceOptionalParams\n ): PagedAsyncIterableIterator<Workflow> {\n const iter = this.listByStorageSyncServicePagingAll(\n resourceGroupName,\n storageSyncServiceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByStorageSyncServicePagingPage(\n resourceGroupName,\n storageSyncServiceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByStorageSyncServicePagingPage(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: WorkflowsListByStorageSyncServiceOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Workflow[]> {\n let result: WorkflowsListByStorageSyncServiceResponse;\n result = await this._listByStorageSyncService(\n resourceGroupName,\n storageSyncServiceName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByStorageSyncServicePagingAll(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: WorkflowsListByStorageSyncServiceOptionalParams\n ): AsyncIterableIterator<Workflow> {\n for await (const page of this.listByStorageSyncServicePagingPage(\n resourceGroupName,\n storageSyncServiceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a Workflow List\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n private _listByStorageSyncService(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: WorkflowsListByStorageSyncServiceOptionalParams\n ): Promise<WorkflowsListByStorageSyncServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, options },\n listByStorageSyncServiceOperationSpec\n );\n }\n\n /**\n * Get Workflows resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param workflowId workflow Id\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n storageSyncServiceName: string,\n workflowId: string,\n options?: WorkflowsGetOptionalParams\n ): Promise<WorkflowsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, workflowId, options },\n getOperationSpec\n );\n }\n\n /**\n * Abort the given workflow.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param workflowId workflow Id\n * @param options The options parameters.\n */\n abort(\n resourceGroupName: string,\n storageSyncServiceName: string,\n workflowId: string,\n options?: WorkflowsAbortOptionalParams\n ): Promise<WorkflowsAbortResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, workflowId, options },\n abortOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByStorageSyncServiceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkflowArray,\n headersMapper: Mappers.WorkflowsListByStorageSyncServiceHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows/{workflowId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Workflow,\n headersMapper: Mappers.WorkflowsGetHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.workflowId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst abortOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows/{workflowId}/abort\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.WorkflowsAbortHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.workflowId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}