@azure/arm-extendedlocation 1.0.0-beta.1 → 1.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/LICENSE +1 -1
  3. package/README.md +24 -9
  4. package/dist/index.js +921 -113
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.js +50 -0
  11. package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/customLocationsDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/customLocationsDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/customLocationsDeleteSample.js +39 -0
  15. package/dist-esm/samples-dev/customLocationsDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.js +42 -0
  19. package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.js.map +1 -0
  20. package/dist-esm/samples-dev/customLocationsGetSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/customLocationsGetSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/customLocationsGetSample.js +39 -0
  23. package/dist-esm/samples-dev/customLocationsGetSample.js.map +1 -0
  24. package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.js +52 -0
  27. package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.js.map +1 -0
  28. package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.js +51 -0
  31. package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.js.map +1 -0
  32. package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.js +53 -0
  35. package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.js.map +1 -0
  36. package/dist-esm/samples-dev/customLocationsListOperationsSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/customLocationsListOperationsSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/customLocationsListOperationsSample.js +51 -0
  39. package/dist-esm/samples-dev/customLocationsListOperationsSample.js.map +1 -0
  40. package/dist-esm/samples-dev/customLocationsUpdateSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/customLocationsUpdateSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/customLocationsUpdateSample.js +42 -0
  43. package/dist-esm/samples-dev/customLocationsUpdateSample.js.map +1 -0
  44. package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.js +49 -0
  47. package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.js.map +1 -0
  48. package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.js +40 -0
  51. package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.js.map +1 -0
  52. package/dist-esm/samples-dev/resourceSyncRulesGetSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/resourceSyncRulesGetSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/resourceSyncRulesGetSample.js +40 -0
  55. package/dist-esm/samples-dev/resourceSyncRulesGetSample.js.map +1 -0
  56. package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.js +53 -0
  59. package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.js.map +1 -0
  60. package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.js +42 -0
  63. package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.js.map +1 -0
  64. package/dist-esm/src/customLocationsManagementClient.d.ts +9 -3
  65. package/dist-esm/src/customLocationsManagementClient.d.ts.map +1 -1
  66. package/dist-esm/src/customLocationsManagementClient.js +83 -4
  67. package/dist-esm/src/customLocationsManagementClient.js.map +1 -1
  68. package/dist-esm/src/index.d.ts +1 -1
  69. package/dist-esm/src/index.d.ts.map +1 -1
  70. package/dist-esm/src/index.js +1 -1
  71. package/dist-esm/src/index.js.map +1 -1
  72. package/dist-esm/src/models/index.d.ts +172 -25
  73. package/dist-esm/src/models/index.d.ts.map +1 -1
  74. package/dist-esm/src/models/index.js +7 -0
  75. package/dist-esm/src/models/index.js.map +1 -1
  76. package/dist-esm/src/models/mappers.d.ts +8 -1
  77. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  78. package/dist-esm/src/models/mappers.js +228 -29
  79. package/dist-esm/src/models/mappers.js.map +1 -1
  80. package/dist-esm/src/models/parameters.d.ts +7 -0
  81. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  82. package/dist-esm/src/models/parameters.js +41 -2
  83. package/dist-esm/src/models/parameters.js.map +1 -1
  84. package/dist-esm/src/operations/customLocations.d.ts +12 -3
  85. package/dist-esm/src/operations/customLocations.d.ts.map +1 -1
  86. package/dist-esm/src/operations/customLocations.js +114 -34
  87. package/dist-esm/src/operations/customLocations.js.map +1 -1
  88. package/dist-esm/src/operations/index.d.ts +1 -0
  89. package/dist-esm/src/operations/index.d.ts.map +1 -1
  90. package/dist-esm/src/operations/index.js +1 -0
  91. package/dist-esm/src/operations/index.js.map +1 -1
  92. package/dist-esm/src/operations/resourceSyncRules.d.ts +97 -0
  93. package/dist-esm/src/operations/resourceSyncRules.d.ts.map +1 -0
  94. package/dist-esm/src/operations/resourceSyncRules.js +411 -0
  95. package/dist-esm/src/operations/resourceSyncRules.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/customLocations.d.ts +10 -1
  97. package/dist-esm/src/operationsInterfaces/customLocations.d.ts.map +1 -1
  98. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  99. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  100. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  101. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  102. package/dist-esm/src/operationsInterfaces/resourceSyncRules.d.ts +71 -0
  103. package/dist-esm/src/operationsInterfaces/resourceSyncRules.d.ts.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/resourceSyncRules.js +9 -0
  105. package/dist-esm/src/operationsInterfaces/resourceSyncRules.js.map +1 -0
  106. package/dist-esm/src/pagingHelper.d.ts +13 -0
  107. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  108. package/dist-esm/src/pagingHelper.js +32 -0
  109. package/dist-esm/src/pagingHelper.js.map +1 -0
  110. package/dist-esm/test/sampleTest.js +11 -13
  111. package/dist-esm/test/sampleTest.js.map +1 -1
  112. package/package.json +58 -27
  113. package/review/arm-extendedlocation.api.md +142 -27
  114. package/rollup.config.js +6 -72
  115. package/src/customLocationsManagementClient.ts +115 -5
  116. package/src/index.ts +1 -1
  117. package/src/models/index.ts +186 -26
  118. package/src/models/mappers.ts +243 -30
  119. package/src/models/parameters.ts +53 -2
  120. package/src/operations/customLocations.ts +148 -46
  121. package/src/operations/index.ts +1 -0
  122. package/src/operations/resourceSyncRules.ts +575 -0
  123. package/src/operationsInterfaces/customLocations.ts +18 -1
  124. package/src/operationsInterfaces/index.ts +1 -0
  125. package/src/operationsInterfaces/resourceSyncRules.ts +136 -0
  126. package/src/pagingHelper.ts +39 -0
  127. package/tsconfig.json +19 -5
  128. package/types/arm-extendedlocation.d.ts +266 -20
  129. package/types/tsdoc-metadata.json +1 -1
  130. package/dist-esm/src/customLocationsManagementClientContext.d.ts +0 -16
  131. package/dist-esm/src/customLocationsManagementClientContext.d.ts.map +0 -1
  132. package/dist-esm/src/customLocationsManagementClientContext.js +0 -49
  133. package/dist-esm/src/customLocationsManagementClientContext.js.map +0 -1
  134. package/src/customLocationsManagementClientContext.ts +0 -70
@@ -0,0 +1,411 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ import { LroEngine } from "@azure/core-lro";
14
+ import { LroImpl } from "../lroImpl";
15
+ /// <reference lib="esnext.asynciterable" />
16
+ /** Class containing ResourceSyncRules operations. */
17
+ export class ResourceSyncRulesImpl {
18
+ /**
19
+ * Initialize a new instance of the class ResourceSyncRules class.
20
+ * @param client Reference to the service client
21
+ */
22
+ constructor(client) {
23
+ this.client = client;
24
+ }
25
+ /**
26
+ * Gets a list of Resource Sync Rules in the specified subscription. The operation returns properties
27
+ * of each Resource Sync Rule
28
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
29
+ * @param resourceName Custom Locations name.
30
+ * @param options The options parameters.
31
+ */
32
+ listByCustomLocationID(resourceGroupName, resourceName, options) {
33
+ const iter = this.listByCustomLocationIDPagingAll(resourceGroupName, resourceName, options);
34
+ return {
35
+ next() {
36
+ return iter.next();
37
+ },
38
+ [Symbol.asyncIterator]() {
39
+ return this;
40
+ },
41
+ byPage: (settings) => {
42
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
+ throw new Error("maxPageSize is not supported by this operation.");
44
+ }
45
+ return this.listByCustomLocationIDPagingPage(resourceGroupName, resourceName, options, settings);
46
+ }
47
+ };
48
+ }
49
+ listByCustomLocationIDPagingPage(resourceGroupName, resourceName, options, settings) {
50
+ return __asyncGenerator(this, arguments, function* listByCustomLocationIDPagingPage_1() {
51
+ let result;
52
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
+ if (!continuationToken) {
54
+ result = yield __await(this._listByCustomLocationID(resourceGroupName, resourceName, options));
55
+ let page = result.value || [];
56
+ continuationToken = result.nextLink;
57
+ setContinuationToken(page, continuationToken);
58
+ yield yield __await(page);
59
+ }
60
+ while (continuationToken) {
61
+ result = yield __await(this._listByCustomLocationIDNext(resourceGroupName, resourceName, continuationToken, options));
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ setContinuationToken(page, continuationToken);
65
+ yield yield __await(page);
66
+ }
67
+ });
68
+ }
69
+ listByCustomLocationIDPagingAll(resourceGroupName, resourceName, options) {
70
+ return __asyncGenerator(this, arguments, function* listByCustomLocationIDPagingAll_1() {
71
+ var e_1, _a;
72
+ try {
73
+ for (var _b = __asyncValues(this.listByCustomLocationIDPagingPage(resourceGroupName, resourceName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
74
+ const page = _c.value;
75
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
76
+ }
77
+ }
78
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
+ finally {
80
+ try {
81
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
82
+ }
83
+ finally { if (e_1) throw e_1.error; }
84
+ }
85
+ });
86
+ }
87
+ /**
88
+ * Gets a list of Resource Sync Rules in the specified subscription. The operation returns properties
89
+ * of each Resource Sync Rule
90
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
91
+ * @param resourceName Custom Locations name.
92
+ * @param options The options parameters.
93
+ */
94
+ _listByCustomLocationID(resourceGroupName, resourceName, options) {
95
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listByCustomLocationIDOperationSpec);
96
+ }
97
+ /**
98
+ * Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom
99
+ * Location resource name and Resource Sync Rule name.
100
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
101
+ * @param resourceName Custom Locations name.
102
+ * @param childResourceName Resource Sync Rule name.
103
+ * @param options The options parameters.
104
+ */
105
+ get(resourceGroupName, resourceName, childResourceName, options) {
106
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, childResourceName, options }, getOperationSpec);
107
+ }
108
+ /**
109
+ * Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource
110
+ * Group
111
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
112
+ * @param resourceName Custom Locations name.
113
+ * @param childResourceName Resource Sync Rule name.
114
+ * @param parameters Parameters supplied to create or update a Resource Sync Rule.
115
+ * @param options The options parameters.
116
+ */
117
+ beginCreateOrUpdate(resourceGroupName, resourceName, childResourceName, parameters, options) {
118
+ return __awaiter(this, void 0, void 0, function* () {
119
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
120
+ return this.client.sendOperationRequest(args, spec);
121
+ });
122
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
123
+ var _a;
124
+ let currentRawResponse = undefined;
125
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
126
+ const callback = (rawResponse, flatResponse) => {
127
+ currentRawResponse = rawResponse;
128
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
129
+ };
130
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
131
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
132
+ return {
133
+ flatResponse,
134
+ rawResponse: {
135
+ statusCode: currentRawResponse.status,
136
+ body: currentRawResponse.parsedBody,
137
+ headers: currentRawResponse.headers.toJSON()
138
+ }
139
+ };
140
+ });
141
+ const lro = new LroImpl(sendOperation, {
142
+ resourceGroupName,
143
+ resourceName,
144
+ childResourceName,
145
+ parameters,
146
+ options
147
+ }, createOrUpdateOperationSpec);
148
+ const poller = new LroEngine(lro, {
149
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
150
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
151
+ lroResourceLocationConfig: "azure-async-operation"
152
+ });
153
+ yield poller.poll();
154
+ return poller;
155
+ });
156
+ }
157
+ /**
158
+ * Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource
159
+ * Group
160
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
161
+ * @param resourceName Custom Locations name.
162
+ * @param childResourceName Resource Sync Rule name.
163
+ * @param parameters Parameters supplied to create or update a Resource Sync Rule.
164
+ * @param options The options parameters.
165
+ */
166
+ beginCreateOrUpdateAndWait(resourceGroupName, resourceName, childResourceName, parameters, options) {
167
+ return __awaiter(this, void 0, void 0, function* () {
168
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, childResourceName, parameters, options);
169
+ return poller.pollUntilDone();
170
+ });
171
+ }
172
+ /**
173
+ * Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource
174
+ * Name, Resource Group, and Subscription Id.
175
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
176
+ * @param resourceName Custom Locations name.
177
+ * @param childResourceName Resource Sync Rule name.
178
+ * @param options The options parameters.
179
+ */
180
+ delete(resourceGroupName, resourceName, childResourceName, options) {
181
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, childResourceName, options }, deleteOperationSpec);
182
+ }
183
+ /**
184
+ * Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource
185
+ * Group, Subscription and Custom Location name.
186
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
187
+ * @param resourceName Custom Locations name.
188
+ * @param childResourceName Resource Sync Rule name.
189
+ * @param options The options parameters.
190
+ */
191
+ beginUpdate(resourceGroupName, resourceName, childResourceName, options) {
192
+ return __awaiter(this, void 0, void 0, function* () {
193
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
194
+ return this.client.sendOperationRequest(args, spec);
195
+ });
196
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
197
+ var _a;
198
+ let currentRawResponse = undefined;
199
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
200
+ const callback = (rawResponse, flatResponse) => {
201
+ currentRawResponse = rawResponse;
202
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
203
+ };
204
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
205
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
206
+ return {
207
+ flatResponse,
208
+ rawResponse: {
209
+ statusCode: currentRawResponse.status,
210
+ body: currentRawResponse.parsedBody,
211
+ headers: currentRawResponse.headers.toJSON()
212
+ }
213
+ };
214
+ });
215
+ const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, childResourceName, options }, updateOperationSpec);
216
+ const poller = new LroEngine(lro, {
217
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
218
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
219
+ lroResourceLocationConfig: "azure-async-operation"
220
+ });
221
+ yield poller.poll();
222
+ return poller;
223
+ });
224
+ }
225
+ /**
226
+ * Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource
227
+ * Group, Subscription and Custom Location name.
228
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
229
+ * @param resourceName Custom Locations name.
230
+ * @param childResourceName Resource Sync Rule name.
231
+ * @param options The options parameters.
232
+ */
233
+ beginUpdateAndWait(resourceGroupName, resourceName, childResourceName, options) {
234
+ return __awaiter(this, void 0, void 0, function* () {
235
+ const poller = yield this.beginUpdate(resourceGroupName, resourceName, childResourceName, options);
236
+ return poller.pollUntilDone();
237
+ });
238
+ }
239
+ /**
240
+ * ListByCustomLocationIDNext
241
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
242
+ * @param resourceName Custom Locations name.
243
+ * @param nextLink The nextLink from the previous successful call to the ListByCustomLocationID method.
244
+ * @param options The options parameters.
245
+ */
246
+ _listByCustomLocationIDNext(resourceGroupName, resourceName, nextLink, options) {
247
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listByCustomLocationIDNextOperationSpec);
248
+ }
249
+ }
250
+ // Operation Specifications
251
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
252
+ const listByCustomLocationIDOperationSpec = {
253
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules",
254
+ httpMethod: "GET",
255
+ responses: {
256
+ 200: {
257
+ bodyMapper: Mappers.ResourceSyncRuleListResult
258
+ },
259
+ default: {
260
+ bodyMapper: Mappers.ErrorResponse
261
+ }
262
+ },
263
+ queryParameters: [Parameters.apiVersion],
264
+ urlParameters: [
265
+ Parameters.$host,
266
+ Parameters.subscriptionId,
267
+ Parameters.resourceGroupName,
268
+ Parameters.resourceName
269
+ ],
270
+ headerParameters: [Parameters.accept],
271
+ serializer
272
+ };
273
+ const getOperationSpec = {
274
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}",
275
+ httpMethod: "GET",
276
+ responses: {
277
+ 200: {
278
+ bodyMapper: Mappers.ResourceSyncRule
279
+ },
280
+ default: {
281
+ bodyMapper: Mappers.ErrorResponse
282
+ }
283
+ },
284
+ queryParameters: [Parameters.apiVersion],
285
+ urlParameters: [
286
+ Parameters.$host,
287
+ Parameters.subscriptionId,
288
+ Parameters.resourceGroupName,
289
+ Parameters.resourceName,
290
+ Parameters.childResourceName
291
+ ],
292
+ headerParameters: [Parameters.accept],
293
+ serializer
294
+ };
295
+ const createOrUpdateOperationSpec = {
296
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}",
297
+ httpMethod: "PUT",
298
+ responses: {
299
+ 200: {
300
+ bodyMapper: Mappers.ResourceSyncRule
301
+ },
302
+ 201: {
303
+ bodyMapper: Mappers.ResourceSyncRule
304
+ },
305
+ 202: {
306
+ bodyMapper: Mappers.ResourceSyncRule
307
+ },
308
+ 204: {
309
+ bodyMapper: Mappers.ResourceSyncRule
310
+ },
311
+ default: {
312
+ bodyMapper: Mappers.ErrorResponse
313
+ }
314
+ },
315
+ requestBody: Parameters.parameters3,
316
+ queryParameters: [Parameters.apiVersion],
317
+ urlParameters: [
318
+ Parameters.$host,
319
+ Parameters.subscriptionId,
320
+ Parameters.resourceGroupName,
321
+ Parameters.resourceName,
322
+ Parameters.childResourceName
323
+ ],
324
+ headerParameters: [Parameters.accept, Parameters.contentType],
325
+ mediaType: "json",
326
+ serializer
327
+ };
328
+ const deleteOperationSpec = {
329
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}",
330
+ httpMethod: "DELETE",
331
+ responses: {
332
+ 200: {},
333
+ 204: {},
334
+ default: {
335
+ bodyMapper: Mappers.ErrorResponse
336
+ }
337
+ },
338
+ queryParameters: [Parameters.apiVersion],
339
+ urlParameters: [
340
+ Parameters.$host,
341
+ Parameters.subscriptionId,
342
+ Parameters.resourceGroupName,
343
+ Parameters.resourceName,
344
+ Parameters.childResourceName
345
+ ],
346
+ headerParameters: [Parameters.accept],
347
+ serializer
348
+ };
349
+ const updateOperationSpec = {
350
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/resourceSyncRules/{childResourceName}",
351
+ httpMethod: "PATCH",
352
+ responses: {
353
+ 200: {
354
+ bodyMapper: Mappers.ResourceSyncRule
355
+ },
356
+ 201: {
357
+ bodyMapper: Mappers.ResourceSyncRule
358
+ },
359
+ 202: {
360
+ bodyMapper: Mappers.ResourceSyncRule
361
+ },
362
+ 204: {
363
+ bodyMapper: Mappers.ResourceSyncRule
364
+ },
365
+ default: {
366
+ bodyMapper: Mappers.ErrorResponse
367
+ }
368
+ },
369
+ requestBody: {
370
+ parameterPath: {
371
+ tags: ["options", "tags"],
372
+ priority: ["options", "priority"],
373
+ selector: ["options", "selector"],
374
+ targetResourceGroup: ["options", "targetResourceGroup"]
375
+ },
376
+ mapper: Object.assign(Object.assign({}, Mappers.PatchableResourceSyncRule), { required: true })
377
+ },
378
+ queryParameters: [Parameters.apiVersion],
379
+ urlParameters: [
380
+ Parameters.$host,
381
+ Parameters.subscriptionId,
382
+ Parameters.resourceGroupName,
383
+ Parameters.resourceName,
384
+ Parameters.childResourceName
385
+ ],
386
+ headerParameters: [Parameters.accept, Parameters.contentType],
387
+ mediaType: "json",
388
+ serializer
389
+ };
390
+ const listByCustomLocationIDNextOperationSpec = {
391
+ path: "{nextLink}",
392
+ httpMethod: "GET",
393
+ responses: {
394
+ 200: {
395
+ bodyMapper: Mappers.ResourceSyncRuleListResult
396
+ },
397
+ default: {
398
+ bodyMapper: Mappers.ErrorResponse
399
+ }
400
+ },
401
+ urlParameters: [
402
+ Parameters.$host,
403
+ Parameters.subscriptionId,
404
+ Parameters.resourceGroupName,
405
+ Parameters.resourceName,
406
+ Parameters.nextLink
407
+ ],
408
+ headerParameters: [Parameters.accept],
409
+ serializer
410
+ };
411
+ //# sourceMappingURL=resourceSyncRules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceSyncRules.js","sourceRoot":"","sources":["../../../src/operations/resourceSyncRules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAgBrC,4CAA4C;AAC5C,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IAGhC;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,sBAAsB,CAC3B,iBAAyB,EACzB,YAAoB,EACpB,OAA+D;QAE/D,MAAM,IAAI,GAAG,IAAI,CAAC,+BAA+B,CAC/C,iBAAiB,EACjB,YAAY,EACZ,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,Q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E,CAAC,SAAS,EAAE,MAAM,CAAC;YACzB,QAAQ,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;YACjC,QAAQ,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;YACjC,mBAAmB,EAAE,CAAC,SAAS,EAAE,qBAAqB,CAAC;SACxD;QACD,MAAM,kCAAO,OAAO,CAAC,yBAAyB,KAAE,QAAQ,EAAE,IAAI,GAAE;KACjE;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,YAAY;QACvB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,uCAAuC,GAA6B;IACxE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
2
  import { PollerLike, PollOperationState } from "@azure/core-lro";
3
- import { CustomLocationOperation, CustomLocationsListOperationsOptionalParams, CustomLocation, CustomLocationsListBySubscriptionOptionalParams, CustomLocationsListByResourceGroupOptionalParams, EnabledResourceType, CustomLocationsListEnabledResourceTypesOptionalParams, CustomLocationsGetOptionalParams, CustomLocationsGetResponse, CustomLocationsCreateOrUpdateOptionalParams, CustomLocationsCreateOrUpdateResponse, CustomLocationsDeleteOptionalParams, CustomLocationsUpdateOptionalParams, CustomLocationsUpdateResponse } from "../models";
3
+ import { CustomLocationOperation, CustomLocationsListOperationsOptionalParams, CustomLocation, CustomLocationsListBySubscriptionOptionalParams, CustomLocationsListByResourceGroupOptionalParams, EnabledResourceType, CustomLocationsListEnabledResourceTypesOptionalParams, CustomLocationsGetOptionalParams, CustomLocationsGetResponse, CustomLocationsCreateOrUpdateOptionalParams, CustomLocationsCreateOrUpdateResponse, CustomLocationsDeleteOptionalParams, CustomLocationsUpdateOptionalParams, CustomLocationsUpdateResponse, CustomLocationFindTargetResourceGroupProperties, CustomLocationsFindTargetResourceGroupOptionalParams, CustomLocationsFindTargetResourceGroupResponse } from "../models";
4
4
  /** Interface representing a CustomLocations. */
5
5
  export interface CustomLocations {
6
6
  /**
@@ -73,5 +73,14 @@ export interface CustomLocations {
73
73
  * @param options The options parameters.
74
74
  */
75
75
  update(resourceGroupName: string, resourceName: string, options?: CustomLocationsUpdateOptionalParams): Promise<CustomLocationsUpdateResponse>;
76
+ /**
77
+ * Returns the target resource group associated with the resource sync rules of the Custom Location
78
+ * that match the rules passed in with the Find Target Resource Group Request.
79
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
80
+ * @param resourceName Custom Locations name.
81
+ * @param parameters Parameters of the find target resource group request.
82
+ * @param options The options parameters.
83
+ */
84
+ findTargetResourceGroup(resourceGroupName: string, resourceName: string, parameters: CustomLocationFindTargetResourceGroupProperties, options?: CustomLocationsFindTargetResourceGroupOptionalParams): Promise<CustomLocationsFindTargetResourceGroupResponse>;
76
85
  }
77
86
  //# sourceMappingURL=customLocations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"customLocations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/customLocations.ts"],"names":[],"mapp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zD,qCAAqC,CACtC,CACF,CAAC;IACF;;;;;;OAMG;IACH,0BAA0B,CACxB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,cAAc,EAC1B,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC,CAAC;IAClD;;;;;OAKG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACvD;;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,6BAA6B,CAAC,CAAC;CAC3C"}
1
+ {"version":3,"file":"customLocations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/customLocations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,uBAAuB,EACvB,2CAA2C,EAC3C,cAAc,EACd,+CAA+C,EAC/C,gDAAgD,EAChD,mBAAmB,EACnB,qDAAqD,EACrD,gCAAgC,EAChC,0BAA0B,EAC1B,2CAA2C,EAC3C,qCAAqC,EACrC,mCAAmC,EACnC,mCAAmC,EACnC,6BAA6B,EAC7B,+CAA+C,EAC/C,oDAAoD,EACpD,8CAA8C,EAC/C,MAAM,WAAW,CAAC;AAGnB,gDAAgD;AAChD,MAAM,W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,CAAC,CAAC;IACvD;;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC1C;;;;;;;OAOG;IACH,uBAAuB,CACrB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,+CAA+C,EAC3D,OAAO,CAAC,EAAE,oDAAoD,GAC7D,OAAO,CAAC,8CAA8C,CAAC,CAAC;CAC5D"}
@@ -1,2 +1,3 @@
1
1
  export * from "./customLocations";
2
+ export * from "./resourceSyncRules";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
@@ -6,4 +6,5 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  export * from "./customLocations";
9
+ export * from "./resourceSyncRules";
9
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,71 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
3
+ import { ResourceSyncRule, ResourceSyncRulesListByCustomLocationIDOptionalParams, ResourceSyncRulesGetOptionalParams, ResourceSyncRulesGetResponse, ResourceSyncRulesCreateOrUpdateOptionalParams, ResourceSyncRulesCreateOrUpdateResponse, ResourceSyncRulesDeleteOptionalParams, ResourceSyncRulesUpdateOptionalParams, ResourceSyncRulesUpdateResponse } from "../models";
4
+ /** Interface representing a ResourceSyncRules. */
5
+ export interface ResourceSyncRules {
6
+ /**
7
+ * Gets a list of Resource Sync Rules in the specified subscription. The operation returns properties
8
+ * of each Resource Sync Rule
9
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
10
+ * @param resourceName Custom Locations name.
11
+ * @param options The options parameters.
12
+ */
13
+ listByCustomLocationID(resourceGroupName: string, resourceName: string, options?: ResourceSyncRulesListByCustomLocationIDOptionalParams): PagedAsyncIterableIterator<ResourceSyncRule>;
14
+ /**
15
+ * Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom
16
+ * Location resource name and Resource Sync Rule name.
17
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
18
+ * @param resourceName Custom Locations name.
19
+ * @param childResourceName Resource Sync Rule name.
20
+ * @param options The options parameters.
21
+ */
22
+ get(resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesGetOptionalParams): Promise<ResourceSyncRulesGetResponse>;
23
+ /**
24
+ * Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource
25
+ * Group
26
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
27
+ * @param resourceName Custom Locations name.
28
+ * @param childResourceName Resource Sync Rule name.
29
+ * @param parameters Parameters supplied to create or update a Resource Sync Rule.
30
+ * @param options The options parameters.
31
+ */
32
+ beginCreateOrUpdate(resourceGroupName: string, resourceName: string, childResourceName: string, parameters: ResourceSyncRule, options?: ResourceSyncRulesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ResourceSyncRulesCreateOrUpdateResponse>, ResourceSyncRulesCreateOrUpdateResponse>>;
33
+ /**
34
+ * Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource
35
+ * Group
36
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
37
+ * @param resourceName Custom Locations name.
38
+ * @param childResourceName Resource Sync Rule name.
39
+ * @param parameters Parameters supplied to create or update a Resource Sync Rule.
40
+ * @param options The options parameters.
41
+ */
42
+ beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, childResourceName: string, parameters: ResourceSyncRule, options?: ResourceSyncRulesCreateOrUpdateOptionalParams): Promise<ResourceSyncRulesCreateOrUpdateResponse>;
43
+ /**
44
+ * Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource
45
+ * Name, Resource Group, and Subscription Id.
46
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
47
+ * @param resourceName Custom Locations name.
48
+ * @param childResourceName Resource Sync Rule name.
49
+ * @param options The options parameters.
50
+ */
51
+ delete(resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesDeleteOptionalParams): Promise<void>;
52
+ /**
53
+ * Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource
54
+ * Group, Subscription and Custom Location name.
55
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
56
+ * @param resourceName Custom Locations name.
57
+ * @param childResourceName Resource Sync Rule name.
58
+ * @param options The options parameters.
59
+ */
60
+ beginUpdate(resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesUpdateOptionalParams): Promise<PollerLike<PollOperationState<ResourceSyncRulesUpdateResponse>, ResourceSyncRulesUpdateResponse>>;
61
+ /**
62
+ * Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource
63
+ * Group, Subscription and Custom Location name.
64
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
65
+ * @param resourceName Custom Locations name.
66
+ * @param childResourceName Resource Sync Rule name.
67
+ * @param options The options parameters.
68
+ */
69
+ beginUpdateAndWait(resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesUpdateOptionalParams): Promise<ResourceSyncRulesUpdateResponse>;
70
+ }
71
+ //# sourceMappingURL=resourceSyncRules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceSyncRules.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/resourceSyncRules.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,gBAAgB,EAChB,qDAAqD,EACrD,kCAAkC,EAClC,4BAA4B,EAC5B,6CAA6C,EAC7C,uCAAuC,EACvC,qCAAqC,EACrC,qCAAqC,EACrC,+BAA+B,EAChC,MAAM,WAAW,CAAC;AAGnB,kDAAkD;AAClD,MAAM,WAAW,iBAAiB;IAChC;;;;;;OAMG;IACH,sBAAsB,CACpB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,qDAAqD,GAC9D,0BAA0B,CAAC,gBAAgB,CAAC,CAAC;IAChD;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,4BAA4B,CAAC,CAAC;IACzC;;;;;;;;OAQG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,gBAAgB,EAC5B,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,uCAAuC,CAAC,EAC3D,uCAAuC,CACxC,CACF,CAAC;IACF;;;;;;;;OAQG;IACH,0BAA0B,CACxB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,gBAAgB,EAC5B,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CAAC,uCAAuC,CAAC,CAAC;IACpD;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;;OAOG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,+BAA+B,CAAC,EACnD,+BAA+B,CAChC,CACF,CAAC;IACF;;;;;;;OAOG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;CAC7C"}
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=resourceSyncRules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourceSyncRules.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/resourceSyncRules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,13 @@
1
+ export interface PageInfo {
2
+ continuationToken?: string;
3
+ }
4
+ /**
5
+ * Given the last `.value` produced by the `byPage` iterator,
6
+ * returns a continuation token that can be used to begin paging from
7
+ * that point later.
8
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
9
+ * @returns The continuation token that can be passed into byPage() during future calls.
10
+ */
11
+ export declare function getContinuationToken(page: unknown): string | undefined;
12
+ export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
13
+ //# sourceMappingURL=pagingHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ const pageMap = new WeakMap();
9
+ /**
10
+ * Given the last `.value` produced by the `byPage` iterator,
11
+ * returns a continuation token that can be used to begin paging from
12
+ * that point later.
13
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
14
+ * @returns The continuation token that can be passed into byPage() during future calls.
15
+ */
16
+ export function getContinuationToken(page) {
17
+ var _a;
18
+ if (typeof page !== "object" || page === null) {
19
+ return undefined;
20
+ }
21
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
22
+ }
23
+ export function setContinuationToken(page, continuationToken) {
24
+ var _a;
25
+ if (typeof page !== "object" || page === null || !continuationToken) {
26
+ return;
27
+ }
28
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
29
+ pageInfo.continuationToken = continuationToken;
30
+ pageMap.set(page, pageInfo);
31
+ }
32
+ //# sourceMappingURL=pagingHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE;QAC7C,OAAO,SAAS,CAAC;KAClB;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE;QACnE,OAAO;KACR;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC"}