@azure/arm-storagesync 9.1.1-alpha.20250619.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.api.md → arm-storagesync-node.api.md} +0 -0
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import * as coreClient from "@azure/core-client";
10
9
  import * as Mappers from "../models/mappers.js";
11
10
  import * as Parameters from "../models/parameters.js";
@@ -14,6 +13,7 @@ import { LroImpl } from "../lroImpl.js";
14
13
  /// <reference lib="esnext.asynciterable" />
15
14
  /** Class containing StorageSyncServices operations. */
16
15
  export class StorageSyncServicesImpl {
16
+ client;
17
17
  /**
18
18
  * Initialize a new instance of the class StorageSyncServices class.
19
19
  * @param client Reference to the service client
@@ -36,39 +36,22 @@ export class StorageSyncServicesImpl {
36
36
  return this;
37
37
  },
38
38
  byPage: (settings) => {
39
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ if (settings?.maxPageSize) {
40
40
  throw new Error("maxPageSize is not supported by this operation.");
41
41
  }
42
42
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
43
43
  }
44
44
  };
45
45
  }
46
- listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
47
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
48
- let result;
49
- result = yield __await(this._listByResourceGroup(resourceGroupName, options));
50
- yield yield __await(result.value || []);
51
- });
46
+ async *listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
47
+ let result;
48
+ result = await this._listByResourceGroup(resourceGroupName, options);
49
+ yield result.value || [];
52
50
  }
53
- listByResourceGroupPagingAll(resourceGroupName, options) {
54
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
55
- var _a, e_1, _b, _c;
56
- try {
57
- for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
58
- _c = _f.value;
59
- _d = false;
60
- const page = _c;
61
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
62
- }
63
- }
64
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
65
- finally {
66
- try {
67
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
68
- }
69
- finally { if (e_1) throw e_1.error; }
70
- }
71
- });
51
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
52
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
53
+ yield* page;
54
+ }
72
55
  }
73
56
  /**
74
57
  * Get a StorageSyncService list by subscription.
@@ -84,39 +67,22 @@ export class StorageSyncServicesImpl {
84
67
  return this;
85
68
  },
86
69
  byPage: (settings) => {
87
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
70
+ if (settings?.maxPageSize) {
88
71
  throw new Error("maxPageSize is not supported by this operation.");
89
72
  }
90
73
  return this.listBySubscriptionPagingPage(options, settings);
91
74
  }
92
75
  };
93
76
  }
94
- listBySubscriptionPagingPage(options, _settings) {
95
- return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
96
- let result;
97
- result = yield __await(this._listBySubscription(options));
98
- yield yield __await(result.value || []);
99
- });
77
+ async *listBySubscriptionPagingPage(options, _settings) {
78
+ let result;
79
+ result = await this._listBySubscription(options);
80
+ yield result.value || [];
100
81
  }
101
- listBySubscriptionPagingAll(options) {
102
- return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
103
- var _a, e_2, _b, _c;
104
- try {
105
- for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
106
- _c = _f.value;
107
- _d = false;
108
- const page = _c;
109
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
110
- }
111
- }
112
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
113
- finally {
114
- try {
115
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
116
- }
117
- finally { if (e_2) throw e_2.error; }
118
- }
119
- });
82
+ async *listBySubscriptionPagingAll(options) {
83
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
84
+ yield* page;
85
+ }
120
86
  }
121
87
  /**
122
88
  * Check the give namespace name availability.
@@ -139,14 +105,19 @@ export class StorageSyncServicesImpl {
139
105
  return this.client.sendOperationRequest(args, spec);
140
106
  };
141
107
  const sendOperation = async (args, spec) => {
142
- var _a;
143
108
  let currentRawResponse = undefined;
144
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
109
+ const providedCallback = args.options?.onResponse;
145
110
  const callback = (rawResponse, flatResponse) => {
146
111
  currentRawResponse = rawResponse;
147
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
112
+ providedCallback?.(rawResponse, flatResponse);
113
+ };
114
+ const updatedArgs = {
115
+ ...args,
116
+ options: {
117
+ ...args.options,
118
+ onResponse: callback
119
+ }
148
120
  };
149
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
150
121
  const flatResponse = await directSendOperation(updatedArgs, spec);
151
122
  return {
152
123
  flatResponse,
@@ -159,8 +130,8 @@ export class StorageSyncServicesImpl {
159
130
  };
160
131
  const lro = new LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, parameters, options }, createOperationSpec);
161
132
  const poller = new LroEngine(lro, {
162
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
163
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
133
+ resumeFrom: options?.resumeFrom,
134
+ intervalInMs: options?.updateIntervalInMs
164
135
  });
165
136
  await poller.poll();
166
137
  return poller;
@@ -196,14 +167,19 @@ export class StorageSyncServicesImpl {
196
167
  return this.client.sendOperationRequest(args, spec);
197
168
  };
198
169
  const sendOperation = async (args, spec) => {
199
- var _a;
200
170
  let currentRawResponse = undefined;
201
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
171
+ const providedCallback = args.options?.onResponse;
202
172
  const callback = (rawResponse, flatResponse) => {
203
173
  currentRawResponse = rawResponse;
204
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
174
+ providedCallback?.(rawResponse, flatResponse);
175
+ };
176
+ const updatedArgs = {
177
+ ...args,
178
+ options: {
179
+ ...args.options,
180
+ onResponse: callback
181
+ }
205
182
  };
206
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
207
183
  const flatResponse = await directSendOperation(updatedArgs, spec);
208
184
  return {
209
185
  flatResponse,
@@ -216,8 +192,8 @@ export class StorageSyncServicesImpl {
216
192
  };
217
193
  const lro = new LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, options }, updateOperationSpec);
218
194
  const poller = new LroEngine(lro, {
219
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
220
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
195
+ resumeFrom: options?.resumeFrom,
196
+ intervalInMs: options?.updateIntervalInMs
221
197
  });
222
198
  await poller.poll();
223
199
  return poller;
@@ -243,14 +219,19 @@ export class StorageSyncServicesImpl {
243
219
  return this.client.sendOperationRequest(args, spec);
244
220
  };
245
221
  const sendOperation = async (args, spec) => {
246
- var _a;
247
222
  let currentRawResponse = undefined;
248
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
223
+ const providedCallback = args.options?.onResponse;
249
224
  const callback = (rawResponse, flatResponse) => {
250
225
  currentRawResponse = rawResponse;
251
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
226
+ providedCallback?.(rawResponse, flatResponse);
227
+ };
228
+ const updatedArgs = {
229
+ ...args,
230
+ options: {
231
+ ...args.options,
232
+ onResponse: callback
233
+ }
252
234
  };
253
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
254
235
  const flatResponse = await directSendOperation(updatedArgs, spec);
255
236
  return {
256
237
  flatResponse,
@@ -263,8 +244,8 @@ export class StorageSyncServicesImpl {
263
244
  };
264
245
  const lro = new LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, options }, deleteOperationSpec);
265
246
  const poller = new LroEngine(lro, {
266
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
267
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
247
+ resumeFrom: options?.resumeFrom,
248
+ intervalInMs: options?.updateIntervalInMs
268
249
  });
269
250
  await poller.poll();
270
251
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"storageSyncServices.js","sourceRoot":"","sources":["../../../src/operations/storageSyncServices.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAqBxC,4CAA4C;AAC5C,uDAAuD;AACvD,MAAM,OAAO,uBAAuB;IAGlC;;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AAC,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,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAqBxC,4CAA4C;AAC5C,uDAAuD;AACvD,MAAM,OAAO,uBAAuB;IACjB,MAAM,CAAuB;IAE9C;;;OAGG;IACH,Y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,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"]}
@@ -5,13 +5,13 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import * as coreClient from "@azure/core-client";
10
9
  import * as Mappers from "../models/mappers.js";
11
10
  import * as Parameters from "../models/parameters.js";
12
11
  /// <reference lib="esnext.asynciterable" />
13
12
  /** Class containing SyncGroups operations. */
14
13
  export class SyncGroupsImpl {
14
+ client;
15
15
  /**
16
16
  * Initialize a new instance of the class SyncGroups class.
17
17
  * @param client Reference to the service client
@@ -35,39 +35,22 @@ export class SyncGroupsImpl {
35
35
  return this;
36
36
  },
37
37
  byPage: (settings) => {
38
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
38
+ if (settings?.maxPageSize) {
39
39
  throw new Error("maxPageSize is not supported by this operation.");
40
40
  }
41
41
  return this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, settings);
42
42
  }
43
43
  };
44
44
  }
45
- listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
46
- return __asyncGenerator(this, arguments, function* listByStorageSyncServicePagingPage_1() {
47
- let result;
48
- result = yield __await(this._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options));
49
- yield yield __await(result.value || []);
50
- });
45
+ async *listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
46
+ let result;
47
+ result = await this._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options);
48
+ yield result.value || [];
51
49
  }
52
- listByStorageSyncServicePagingAll(resourceGroupName, storageSyncServiceName, options) {
53
- return __asyncGenerator(this, arguments, function* listByStorageSyncServicePagingAll_1() {
54
- var _a, e_1, _b, _c;
55
- try {
56
- for (var _d = true, _e = __asyncValues(this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
57
- _c = _f.value;
58
- _d = false;
59
- const page = _c;
60
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
61
- }
62
- }
63
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
64
- finally {
65
- try {
66
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
67
- }
68
- finally { if (e_1) throw e_1.error; }
69
- }
70
- });
50
+ async *listByStorageSyncServicePagingAll(resourceGroupName, storageSyncServiceName, options) {
51
+ for await (const page of this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options)) {
52
+ yield* page;
53
+ }
71
54
  }
72
55
  /**
73
56
  * Get a SyncGroup List.
@@ -1 +1 @@
1
- {"version":3,"file":"syncGroups.js","sourceRoot":"","sources":["../../../src/operations/syncGroups.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,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,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B,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"]}
1
+ {"version":3,"file":"syncGroups.js","sourceRoot":"","sources":["../../../src/operations/syncGroups.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,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;gBAC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,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"]}
@@ -5,13 +5,13 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import * as coreClient from "@azure/core-client";
10
9
  import * as Mappers from "../models/mappers.js";
11
10
  import * as Parameters from "../models/parameters.js";
12
11
  /// <reference lib="esnext.asynciterable" />
13
12
  /** Class containing Workflows operations. */
14
13
  export class WorkflowsImpl {
14
+ client;
15
15
  /**
16
16
  * Initialize a new instance of the class Workflows class.
17
17
  * @param client Reference to the service client
@@ -35,39 +35,22 @@ export class WorkflowsImpl {
35
35
  return this;
36
36
  },
37
37
  byPage: (settings) => {
38
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
38
+ if (settings?.maxPageSize) {
39
39
  throw new Error("maxPageSize is not supported by this operation.");
40
40
  }
41
41
  return this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, settings);
42
42
  }
43
43
  };
44
44
  }
45
- listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
46
- return __asyncGenerator(this, arguments, function* listByStorageSyncServicePagingPage_1() {
47
- let result;
48
- result = yield __await(this._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options));
49
- yield yield __await(result.value || []);
50
- });
45
+ async *listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
46
+ let result;
47
+ result = await this._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options);
48
+ yield result.value || [];
51
49
  }
52
- listByStorageSyncServicePagingAll(resourceGroupName, storageSyncServiceName, options) {
53
- return __asyncGenerator(this, arguments, function* listByStorageSyncServicePagingAll_1() {
54
- var _a, e_1, _b, _c;
55
- try {
56
- for (var _d = true, _e = __asyncValues(this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
57
- _c = _f.value;
58
- _d = false;
59
- const page = _c;
60
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
61
- }
62
- }
63
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
64
- finally {
65
- try {
66
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
67
- }
68
- finally { if (e_1) throw e_1.error; }
69
- }
70
- });
50
+ async *listByStorageSyncServicePagingAll(resourceGroupName, storageSyncServiceName, options) {
51
+ for await (const page of this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options)) {
52
+ yield* page;
53
+ }
71
54
  }
72
55
  /**
73
56
  * Get a Workflow List
@@ -1 +1 @@
1
- {"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../../src/operations/workflows.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAM,OAAO,aAAa;IAGxB;;;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,EAA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OAAO,CAAC,QAAQ;YAC5B,aAAa,EAAE,OAAO,CAAC,mBAAmB;SAC3C;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,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,kBAAkB,GAA6B;IACnD,IAAI,EACF,8KAA8K;IAChL,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,qBAAqB;SAC7C;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,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,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,4CAA4C;AAC5C,6C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U,CAAC,sBAAsB;KAClC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EACF,wKAAwK;IAC1K,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,QAAQ;YAC5B,aAAa,EAAE,OAAO,CAAC,mBAAmB;SAC3C;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,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,kBAAkB,GAA6B;IACnD,IAAI,EACF,8KAA8K;IAChL,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,qBAAqB;SAC7C;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,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"]}