@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.
- package/CHANGELOG.md +51 -0
- package/LICENSE +1 -1
- package/README.md +24 -9
- package/dist/index.js +921 -113
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.js +50 -0
- package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/customLocationsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/customLocationsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/customLocationsDeleteSample.js +39 -0
- package/dist-esm/samples-dev/customLocationsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.js +42 -0
- package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/customLocationsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/customLocationsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/customLocationsGetSample.js +39 -0
- package/dist-esm/samples-dev/customLocationsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.js +52 -0
- package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.js +51 -0
- package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.d.ts +2 -0
- package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.js +53 -0
- package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.js.map +1 -0
- package/dist-esm/samples-dev/customLocationsListOperationsSample.d.ts +2 -0
- package/dist-esm/samples-dev/customLocationsListOperationsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/customLocationsListOperationsSample.js +51 -0
- package/dist-esm/samples-dev/customLocationsListOperationsSample.js.map +1 -0
- package/dist-esm/samples-dev/customLocationsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/customLocationsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/customLocationsUpdateSample.js +42 -0
- package/dist-esm/samples-dev/customLocationsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.js +49 -0
- package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.js +40 -0
- package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceSyncRulesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceSyncRulesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceSyncRulesGetSample.js +40 -0
- package/dist-esm/samples-dev/resourceSyncRulesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.js +53 -0
- package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.js +42 -0
- package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.js.map +1 -0
- package/dist-esm/src/customLocationsManagementClient.d.ts +9 -3
- package/dist-esm/src/customLocationsManagementClient.d.ts.map +1 -1
- package/dist-esm/src/customLocationsManagementClient.js +83 -4
- package/dist-esm/src/customLocationsManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -1
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +172 -25
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +7 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +8 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +228 -29
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +7 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +41 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/customLocations.d.ts +12 -3
- package/dist-esm/src/operations/customLocations.d.ts.map +1 -1
- package/dist-esm/src/operations/customLocations.js +114 -34
- package/dist-esm/src/operations/customLocations.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/resourceSyncRules.d.ts +97 -0
- package/dist-esm/src/operations/resourceSyncRules.d.ts.map +1 -0
- package/dist-esm/src/operations/resourceSyncRules.js +411 -0
- package/dist-esm/src/operations/resourceSyncRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/customLocations.d.ts +10 -1
- package/dist-esm/src/operationsInterfaces/customLocations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/resourceSyncRules.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/resourceSyncRules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/resourceSyncRules.js +9 -0
- package/dist-esm/src/operationsInterfaces/resourceSyncRules.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +58 -27
- package/review/arm-extendedlocation.api.md +142 -27
- package/rollup.config.js +6 -72
- package/src/customLocationsManagementClient.ts +115 -5
- package/src/index.ts +1 -1
- package/src/models/index.ts +186 -26
- package/src/models/mappers.ts +243 -30
- package/src/models/parameters.ts +53 -2
- package/src/operations/customLocations.ts +148 -46
- package/src/operations/index.ts +1 -0
- package/src/operations/resourceSyncRules.ts +575 -0
- package/src/operationsInterfaces/customLocations.ts +18 -1
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/resourceSyncRules.ts +136 -0
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +19 -5
- package/types/arm-extendedlocation.d.ts +266 -20
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/src/customLocationsManagementClientContext.d.ts +0 -16
- package/dist-esm/src/customLocationsManagementClientContext.d.ts.map +0 -1
- package/dist-esm/src/customLocationsManagementClientContext.js +0 -49
- package/dist-esm/src/customLocationsManagementClientContext.js.map +0 -1
- package/src/customLocationsManagementClientContext.ts +0 -70
|
@@ -6,29 +6,31 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { CustomLocations } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
13
14
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
15
|
+
import { CustomLocationsManagementClient } from "../customLocationsManagementClient";
|
|
15
16
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
17
|
import { LroImpl } from "../lroImpl";
|
|
17
18
|
import {
|
|
18
19
|
CustomLocationOperation,
|
|
19
20
|
CustomLocationsListOperationsNextOptionalParams,
|
|
20
21
|
CustomLocationsListOperationsOptionalParams,
|
|
22
|
+
CustomLocationsListOperationsResponse,
|
|
21
23
|
CustomLocation,
|
|
22
24
|
CustomLocationsListBySubscriptionNextOptionalParams,
|
|
23
25
|
CustomLocationsListBySubscriptionOptionalParams,
|
|
26
|
+
CustomLocationsListBySubscriptionResponse,
|
|
24
27
|
CustomLocationsListByResourceGroupNextOptionalParams,
|
|
25
28
|
CustomLocationsListByResourceGroupOptionalParams,
|
|
29
|
+
CustomLocationsListByResourceGroupResponse,
|
|
26
30
|
EnabledResourceType,
|
|
27
31
|
CustomLocationsListEnabledResourceTypesNextOptionalParams,
|
|
28
32
|
CustomLocationsListEnabledResourceTypesOptionalParams,
|
|
29
|
-
|
|
30
|
-
CustomLocationsListBySubscriptionResponse,
|
|
31
|
-
CustomLocationsListByResourceGroupResponse,
|
|
33
|
+
CustomLocationsListEnabledResourceTypesResponse,
|
|
32
34
|
CustomLocationsGetOptionalParams,
|
|
33
35
|
CustomLocationsGetResponse,
|
|
34
36
|
CustomLocationsCreateOrUpdateOptionalParams,
|
|
@@ -36,7 +38,9 @@ import {
|
|
|
36
38
|
CustomLocationsDeleteOptionalParams,
|
|
37
39
|
CustomLocationsUpdateOptionalParams,
|
|
38
40
|
CustomLocationsUpdateResponse,
|
|
39
|
-
|
|
41
|
+
CustomLocationFindTargetResourceGroupProperties,
|
|
42
|
+
CustomLocationsFindTargetResourceGroupOptionalParams,
|
|
43
|
+
CustomLocationsFindTargetResourceGroupResponse,
|
|
40
44
|
CustomLocationsListOperationsNextResponse,
|
|
41
45
|
CustomLocationsListBySubscriptionNextResponse,
|
|
42
46
|
CustomLocationsListByResourceGroupNextResponse,
|
|
@@ -46,13 +50,13 @@ import {
|
|
|
46
50
|
/// <reference lib="esnext.asynciterable" />
|
|
47
51
|
/** Class containing CustomLocations operations. */
|
|
48
52
|
export class CustomLocationsImpl implements CustomLocations {
|
|
49
|
-
private readonly client:
|
|
53
|
+
private readonly client: CustomLocationsManagementClient;
|
|
50
54
|
|
|
51
55
|
/**
|
|
52
56
|
* Initialize a new instance of the class CustomLocations class.
|
|
53
57
|
* @param client Reference to the service client
|
|
54
58
|
*/
|
|
55
|
-
constructor(client:
|
|
59
|
+
constructor(client: CustomLocationsManagementClient) {
|
|
56
60
|
this.client = client;
|
|
57
61
|
}
|
|
58
62
|
|
|
@@ -71,22 +75,34 @@ export class CustomLocationsImpl implements CustomLocations {
|
|
|
71
75
|
[Symbol.asyncIterator]() {
|
|
72
76
|
return this;
|
|
73
77
|
},
|
|
74
|
-
byPage: () => {
|
|
75
|
-
|
|
78
|
+
byPage: (settings?: PageSettings) => {
|
|
79
|
+
if (settings?.maxPageSize) {
|
|
80
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
81
|
+
}
|
|
82
|
+
return this.listOperationsPagingPage(options, settings);
|
|
76
83
|
}
|
|
77
84
|
};
|
|
78
85
|
}
|
|
79
86
|
|
|
80
87
|
private async *listOperationsPagingPage(
|
|
81
|
-
options?: CustomLocationsListOperationsOptionalParams
|
|
88
|
+
options?: CustomLocationsListOperationsOptionalParams,
|
|
89
|
+
settings?: PageSettings
|
|
82
90
|
): AsyncIterableIterator<CustomLocationOperation[]> {
|
|
83
|
-
let result
|
|
84
|
-
|
|
85
|
-
|
|
91
|
+
let result: CustomLocationsListOperationsResponse;
|
|
92
|
+
let continuationToken = settings?.continuationToken;
|
|
93
|
+
if (!continuationToken) {
|
|
94
|
+
result = await this._listOperations(options);
|
|
95
|
+
let page = result.value || [];
|
|
96
|
+
continuationToken = result.nextLink;
|
|
97
|
+
setContinuationToken(page, continuationToken);
|
|
98
|
+
yield page;
|
|
99
|
+
}
|
|
86
100
|
while (continuationToken) {
|
|
87
101
|
result = await this._listOperationsNext(continuationToken, options);
|
|
88
102
|
continuationToken = result.nextLink;
|
|
89
|
-
|
|
103
|
+
let page = result.value || [];
|
|
104
|
+
setContinuationToken(page, continuationToken);
|
|
105
|
+
yield page;
|
|
90
106
|
}
|
|
91
107
|
}
|
|
92
108
|
|
|
@@ -114,22 +130,34 @@ export class CustomLocationsImpl implements CustomLocations {
|
|
|
114
130
|
[Symbol.asyncIterator]() {
|
|
115
131
|
return this;
|
|
116
132
|
},
|
|
117
|
-
byPage: () => {
|
|
118
|
-
|
|
133
|
+
byPage: (settings?: PageSettings) => {
|
|
134
|
+
if (settings?.maxPageSize) {
|
|
135
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
136
|
+
}
|
|
137
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
119
138
|
}
|
|
120
139
|
};
|
|
121
140
|
}
|
|
122
141
|
|
|
123
142
|
private async *listBySubscriptionPagingPage(
|
|
124
|
-
options?: CustomLocationsListBySubscriptionOptionalParams
|
|
143
|
+
options?: CustomLocationsListBySubscriptionOptionalParams,
|
|
144
|
+
settings?: PageSettings
|
|
125
145
|
): AsyncIterableIterator<CustomLocation[]> {
|
|
126
|
-
let result
|
|
127
|
-
|
|
128
|
-
|
|
146
|
+
let result: CustomLocationsListBySubscriptionResponse;
|
|
147
|
+
let continuationToken = settings?.continuationToken;
|
|
148
|
+
if (!continuationToken) {
|
|
149
|
+
result = await this._listBySubscription(options);
|
|
150
|
+
let page = result.value || [];
|
|
151
|
+
continuationToken = result.nextLink;
|
|
152
|
+
setContinuationToken(page, continuationToken);
|
|
153
|
+
yield page;
|
|
154
|
+
}
|
|
129
155
|
while (continuationToken) {
|
|
130
156
|
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
131
157
|
continuationToken = result.nextLink;
|
|
132
|
-
|
|
158
|
+
let page = result.value || [];
|
|
159
|
+
setContinuationToken(page, continuationToken);
|
|
160
|
+
yield page;
|
|
133
161
|
}
|
|
134
162
|
}
|
|
135
163
|
|
|
@@ -159,19 +187,33 @@ export class CustomLocationsImpl implements CustomLocations {
|
|
|
159
187
|
[Symbol.asyncIterator]() {
|
|
160
188
|
return this;
|
|
161
189
|
},
|
|
162
|
-
byPage: () => {
|
|
163
|
-
|
|
190
|
+
byPage: (settings?: PageSettings) => {
|
|
191
|
+
if (settings?.maxPageSize) {
|
|
192
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
193
|
+
}
|
|
194
|
+
return this.listByResourceGroupPagingPage(
|
|
195
|
+
resourceGroupName,
|
|
196
|
+
options,
|
|
197
|
+
settings
|
|
198
|
+
);
|
|
164
199
|
}
|
|
165
200
|
};
|
|
166
201
|
}
|
|
167
202
|
|
|
168
203
|
private async *listByResourceGroupPagingPage(
|
|
169
204
|
resourceGroupName: string,
|
|
170
|
-
options?: CustomLocationsListByResourceGroupOptionalParams
|
|
205
|
+
options?: CustomLocationsListByResourceGroupOptionalParams,
|
|
206
|
+
settings?: PageSettings
|
|
171
207
|
): AsyncIterableIterator<CustomLocation[]> {
|
|
172
|
-
let result
|
|
173
|
-
|
|
174
|
-
|
|
208
|
+
let result: CustomLocationsListByResourceGroupResponse;
|
|
209
|
+
let continuationToken = settings?.continuationToken;
|
|
210
|
+
if (!continuationToken) {
|
|
211
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
212
|
+
let page = result.value || [];
|
|
213
|
+
continuationToken = result.nextLink;
|
|
214
|
+
setContinuationToken(page, continuationToken);
|
|
215
|
+
yield page;
|
|
216
|
+
}
|
|
175
217
|
while (continuationToken) {
|
|
176
218
|
result = await this._listByResourceGroupNext(
|
|
177
219
|
resourceGroupName,
|
|
@@ -179,7 +221,9 @@ export class CustomLocationsImpl implements CustomLocations {
|
|
|
179
221
|
options
|
|
180
222
|
);
|
|
181
223
|
continuationToken = result.nextLink;
|
|
182
|
-
|
|
224
|
+
let page = result.value || [];
|
|
225
|
+
setContinuationToken(page, continuationToken);
|
|
226
|
+
yield page;
|
|
183
227
|
}
|
|
184
228
|
}
|
|
185
229
|
|
|
@@ -218,11 +262,15 @@ export class CustomLocationsImpl implements CustomLocations {
|
|
|
218
262
|
[Symbol.asyncIterator]() {
|
|
219
263
|
return this;
|
|
220
264
|
},
|
|
221
|
-
byPage: () => {
|
|
265
|
+
byPage: (settings?: PageSettings) => {
|
|
266
|
+
if (settings?.maxPageSize) {
|
|
267
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
268
|
+
}
|
|
222
269
|
return this.listEnabledResourceTypesPagingPage(
|
|
223
270
|
resourceGroupName,
|
|
224
271
|
resourceName,
|
|
225
|
-
options
|
|
272
|
+
options,
|
|
273
|
+
settings
|
|
226
274
|
);
|
|
227
275
|
}
|
|
228
276
|
};
|
|
@@ -231,15 +279,22 @@ export class CustomLocationsImpl implements CustomLocations {
|
|
|
231
279
|
private async *listEnabledResourceTypesPagingPage(
|
|
232
280
|
resourceGroupName: string,
|
|
233
281
|
resourceName: string,
|
|
234
|
-
options?: CustomLocationsListEnabledResourceTypesOptionalParams
|
|
282
|
+
options?: CustomLocationsListEnabledResourceTypesOptionalParams,
|
|
283
|
+
settings?: PageSettings
|
|
235
284
|
): AsyncIterableIterator<EnabledResourceType[]> {
|
|
236
|
-
let result
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
285
|
+
let result: CustomLocationsListEnabledResourceTypesResponse;
|
|
286
|
+
let continuationToken = settings?.continuationToken;
|
|
287
|
+
if (!continuationToken) {
|
|
288
|
+
result = await this._listEnabledResourceTypes(
|
|
289
|
+
resourceGroupName,
|
|
290
|
+
resourceName,
|
|
291
|
+
options
|
|
292
|
+
);
|
|
293
|
+
let page = result.value || [];
|
|
294
|
+
continuationToken = result.nextLink;
|
|
295
|
+
setContinuationToken(page, continuationToken);
|
|
296
|
+
yield page;
|
|
297
|
+
}
|
|
243
298
|
while (continuationToken) {
|
|
244
299
|
result = await this._listEnabledResourceTypesNext(
|
|
245
300
|
resourceGroupName,
|
|
@@ -248,7 +303,9 @@ export class CustomLocationsImpl implements CustomLocations {
|
|
|
248
303
|
options
|
|
249
304
|
);
|
|
250
305
|
continuationToken = result.nextLink;
|
|
251
|
-
|
|
306
|
+
let page = result.value || [];
|
|
307
|
+
setContinuationToken(page, continuationToken);
|
|
308
|
+
yield page;
|
|
252
309
|
}
|
|
253
310
|
}
|
|
254
311
|
|
|
@@ -388,11 +445,13 @@ export class CustomLocationsImpl implements CustomLocations {
|
|
|
388
445
|
{ resourceGroupName, resourceName, parameters, options },
|
|
389
446
|
createOrUpdateOperationSpec
|
|
390
447
|
);
|
|
391
|
-
|
|
448
|
+
const poller = new LroEngine(lro, {
|
|
392
449
|
resumeFrom: options?.resumeFrom,
|
|
393
450
|
intervalInMs: options?.updateIntervalInMs,
|
|
394
451
|
lroResourceLocationConfig: "azure-async-operation"
|
|
395
452
|
});
|
|
453
|
+
await poller.poll();
|
|
454
|
+
return poller;
|
|
396
455
|
}
|
|
397
456
|
|
|
398
457
|
/**
|
|
@@ -472,11 +531,13 @@ export class CustomLocationsImpl implements CustomLocations {
|
|
|
472
531
|
{ resourceGroupName, resourceName, options },
|
|
473
532
|
deleteOperationSpec
|
|
474
533
|
);
|
|
475
|
-
|
|
534
|
+
const poller = new LroEngine(lro, {
|
|
476
535
|
resumeFrom: options?.resumeFrom,
|
|
477
536
|
intervalInMs: options?.updateIntervalInMs,
|
|
478
537
|
lroResourceLocationConfig: "azure-async-operation"
|
|
479
538
|
});
|
|
539
|
+
await poller.poll();
|
|
540
|
+
return poller;
|
|
480
541
|
}
|
|
481
542
|
|
|
482
543
|
/**
|
|
@@ -533,6 +594,26 @@ export class CustomLocationsImpl implements CustomLocations {
|
|
|
533
594
|
);
|
|
534
595
|
}
|
|
535
596
|
|
|
597
|
+
/**
|
|
598
|
+
* Returns the target resource group associated with the resource sync rules of the Custom Location
|
|
599
|
+
* that match the rules passed in with the Find Target Resource Group Request.
|
|
600
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
601
|
+
* @param resourceName Custom Locations name.
|
|
602
|
+
* @param parameters Parameters of the find target resource group request.
|
|
603
|
+
* @param options The options parameters.
|
|
604
|
+
*/
|
|
605
|
+
findTargetResourceGroup(
|
|
606
|
+
resourceGroupName: string,
|
|
607
|
+
resourceName: string,
|
|
608
|
+
parameters: CustomLocationFindTargetResourceGroupProperties,
|
|
609
|
+
options?: CustomLocationsFindTargetResourceGroupOptionalParams
|
|
610
|
+
): Promise<CustomLocationsFindTargetResourceGroupResponse> {
|
|
611
|
+
return this.client.sendOperationRequest(
|
|
612
|
+
{ resourceGroupName, resourceName, parameters, options },
|
|
613
|
+
findTargetResourceGroupOperationSpec
|
|
614
|
+
);
|
|
615
|
+
}
|
|
616
|
+
|
|
536
617
|
/**
|
|
537
618
|
* ListOperationsNext
|
|
538
619
|
* @param nextLink The nextLink from the previous successful call to the ListOperations method.
|
|
@@ -794,6 +875,31 @@ const listEnabledResourceTypesOperationSpec: coreClient.OperationSpec = {
|
|
|
794
875
|
headerParameters: [Parameters.accept],
|
|
795
876
|
serializer
|
|
796
877
|
};
|
|
878
|
+
const findTargetResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
879
|
+
path:
|
|
880
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}/findTargetResourceGroup",
|
|
881
|
+
httpMethod: "POST",
|
|
882
|
+
responses: {
|
|
883
|
+
200: {
|
|
884
|
+
bodyMapper: Mappers.CustomLocationFindTargetResourceGroupResult
|
|
885
|
+
},
|
|
886
|
+
204: {},
|
|
887
|
+
default: {
|
|
888
|
+
bodyMapper: Mappers.ErrorResponse
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
requestBody: Parameters.parameters2,
|
|
892
|
+
queryParameters: [Parameters.apiVersion],
|
|
893
|
+
urlParameters: [
|
|
894
|
+
Parameters.$host,
|
|
895
|
+
Parameters.subscriptionId,
|
|
896
|
+
Parameters.resourceGroupName,
|
|
897
|
+
Parameters.resourceName
|
|
898
|
+
],
|
|
899
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
900
|
+
mediaType: "json",
|
|
901
|
+
serializer
|
|
902
|
+
};
|
|
797
903
|
const listOperationsNextOperationSpec: coreClient.OperationSpec = {
|
|
798
904
|
path: "{nextLink}",
|
|
799
905
|
httpMethod: "GET",
|
|
@@ -805,7 +911,6 @@ const listOperationsNextOperationSpec: coreClient.OperationSpec = {
|
|
|
805
911
|
bodyMapper: Mappers.ErrorResponse
|
|
806
912
|
}
|
|
807
913
|
},
|
|
808
|
-
queryParameters: [Parameters.apiVersion],
|
|
809
914
|
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
810
915
|
headerParameters: [Parameters.accept],
|
|
811
916
|
serializer
|
|
@@ -821,7 +926,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
|
821
926
|
bodyMapper: Mappers.ErrorResponse
|
|
822
927
|
}
|
|
823
928
|
},
|
|
824
|
-
queryParameters: [Parameters.apiVersion],
|
|
825
929
|
urlParameters: [
|
|
826
930
|
Parameters.$host,
|
|
827
931
|
Parameters.subscriptionId,
|
|
@@ -841,7 +945,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
841
945
|
bodyMapper: Mappers.ErrorResponse
|
|
842
946
|
}
|
|
843
947
|
},
|
|
844
|
-
queryParameters: [Parameters.apiVersion],
|
|
845
948
|
urlParameters: [
|
|
846
949
|
Parameters.$host,
|
|
847
950
|
Parameters.subscriptionId,
|
|
@@ -862,7 +965,6 @@ const listEnabledResourceTypesNextOperationSpec: coreClient.OperationSpec = {
|
|
|
862
965
|
bodyMapper: Mappers.ErrorResponse
|
|
863
966
|
}
|
|
864
967
|
},
|
|
865
|
-
queryParameters: [Parameters.apiVersion],
|
|
866
968
|
urlParameters: [
|
|
867
969
|
Parameters.$host,
|
|
868
970
|
Parameters.subscriptionId,
|
package/src/operations/index.ts
CHANGED