@azure/arm-resources 6.1.0 → 7.0.0-alpha.20250730.1
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 +17 -0
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +12 -1202
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +0 -76
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +0 -42
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +254 -1752
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +14 -21
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +46 -98
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/index.d.ts +0 -2
- package/dist/browser/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +0 -2
- package/dist/browser/operations/index.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/providerResourceTypes.js +2 -1
- package/dist/browser/operations/providerResourceTypes.js.map +1 -1
- package/dist/browser/operations/providers.js +50 -84
- package/dist/browser/operations/providers.js.map +1 -1
- package/dist/browser/operations/resourceGroups.js +48 -55
- package/dist/browser/operations/resourceGroups.js.map +1 -1
- package/dist/browser/operations/resources.js +146 -140
- package/dist/browser/operations/resources.js.map +1 -1
- package/dist/browser/operations/tagsOperations.js +58 -60
- package/dist/browser/operations/tagsOperations.js.map +1 -1
- package/dist/browser/operationsInterfaces/index.d.ts +0 -2
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +0 -2
- package/dist/browser/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/resourceManagementClient.d.ts +1 -3
- package/dist/browser/resourceManagementClient.d.ts.map +1 -1
- package/dist/browser/resourceManagementClient.js +22 -10
- package/dist/browser/resourceManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +12 -1202
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +1 -77
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +0 -42
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +256 -1754
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts +14 -21
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +46 -98
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/index.d.ts +0 -2
- package/dist/commonjs/operations/index.d.ts.map +1 -1
- package/dist/commonjs/operations/index.js +0 -2
- package/dist/commonjs/operations/index.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/providerResourceTypes.js +2 -1
- package/dist/commonjs/operations/providerResourceTypes.js.map +1 -1
- package/dist/commonjs/operations/providers.js +50 -83
- package/dist/commonjs/operations/providers.js.map +1 -1
- package/dist/commonjs/operations/resourceGroups.js +48 -54
- package/dist/commonjs/operations/resourceGroups.js.map +1 -1
- package/dist/commonjs/operations/resources.js +146 -139
- package/dist/commonjs/operations/resources.js.map +1 -1
- package/dist/commonjs/operations/tagsOperations.js +58 -59
- package/dist/commonjs/operations/tagsOperations.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +0 -2
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.js +0 -2
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/resourceManagementClient.d.ts +1 -3
- package/dist/commonjs/resourceManagementClient.d.ts.map +1 -1
- package/dist/commonjs/resourceManagementClient.js +21 -9
- package/dist/commonjs/resourceManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +12 -1202
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +0 -76
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +0 -42
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +254 -1752
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts +14 -21
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +46 -98
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/index.d.ts +0 -2
- package/dist/esm/operations/index.d.ts.map +1 -1
- package/dist/esm/operations/index.js +0 -2
- package/dist/esm/operations/index.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/providerResourceTypes.js +2 -1
- package/dist/esm/operations/providerResourceTypes.js.map +1 -1
- package/dist/esm/operations/providers.js +50 -84
- package/dist/esm/operations/providers.js.map +1 -1
- package/dist/esm/operations/resourceGroups.js +48 -55
- package/dist/esm/operations/resourceGroups.js.map +1 -1
- package/dist/esm/operations/resources.js +146 -140
- package/dist/esm/operations/resources.js.map +1 -1
- package/dist/esm/operations/tagsOperations.js +58 -60
- package/dist/esm/operations/tagsOperations.js.map +1 -1
- package/dist/esm/operationsInterfaces/index.d.ts +0 -2
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/index.js +0 -2
- package/dist/esm/operationsInterfaces/index.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/resourceManagementClient.d.ts +1 -3
- package/dist/esm/resourceManagementClient.d.ts.map +1 -1
- package/dist/esm/resourceManagementClient.js +22 -10
- package/dist/esm/resourceManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/index.d.ts +12 -1202
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +0 -76
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +0 -42
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +254 -1752
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +14 -21
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +46 -98
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/index.d.ts +0 -2
- package/dist/react-native/operations/index.d.ts.map +1 -1
- package/dist/react-native/operations/index.js +0 -2
- package/dist/react-native/operations/index.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/providerResourceTypes.js +2 -1
- package/dist/react-native/operations/providerResourceTypes.js.map +1 -1
- package/dist/react-native/operations/providers.js +50 -84
- package/dist/react-native/operations/providers.js.map +1 -1
- package/dist/react-native/operations/resourceGroups.js +48 -55
- package/dist/react-native/operations/resourceGroups.js.map +1 -1
- package/dist/react-native/operations/resources.js +146 -140
- package/dist/react-native/operations/resources.js.map +1 -1
- package/dist/react-native/operations/tagsOperations.js +58 -60
- package/dist/react-native/operations/tagsOperations.js.map +1 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +0 -2
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/index.js +0 -2
- package/dist/react-native/operationsInterfaces/index.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/resourceManagementClient.d.ts +1 -3
- package/dist/react-native/resourceManagementClient.d.ts.map +1 -1
- package/dist/react-native/resourceManagementClient.js +22 -10
- package/dist/react-native/resourceManagementClient.js.map +1 -1
- package/package.json +8 -8
- package/review/arm-resources-node.api.md +942 -0
- package/dist/browser/operations/deploymentOperations.d.ts +0 -168
- package/dist/browser/operations/deploymentOperations.d.ts.map +0 -1
- package/dist/browser/operations/deploymentOperations.js +0 -782
- package/dist/browser/operations/deploymentOperations.js.map +0 -1
- package/dist/browser/operations/deployments.d.ts +0 -628
- package/dist/browser/operations/deployments.d.ts.map +0 -1
- package/dist/browser/operations/deployments.js +0 -2766
- package/dist/browser/operations/deployments.js.map +0 -1
- package/dist/browser/operationsInterfaces/deploymentOperations.d.ts +0 -77
- package/dist/browser/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/deploymentOperations.js +0 -9
- package/dist/browser/operationsInterfaces/deploymentOperations.js.map +0 -1
- package/dist/browser/operationsInterfaces/deployments.d.ts +0 -545
- package/dist/browser/operationsInterfaces/deployments.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/deployments.js +0 -9
- package/dist/browser/operationsInterfaces/deployments.js.map +0 -1
- package/dist/commonjs/operations/deploymentOperations.d.ts +0 -168
- package/dist/commonjs/operations/deploymentOperations.d.ts.map +0 -1
- package/dist/commonjs/operations/deploymentOperations.js +0 -786
- package/dist/commonjs/operations/deploymentOperations.js.map +0 -1
- package/dist/commonjs/operations/deployments.d.ts +0 -628
- package/dist/commonjs/operations/deployments.d.ts.map +0 -1
- package/dist/commonjs/operations/deployments.js +0 -2770
- package/dist/commonjs/operations/deployments.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/deploymentOperations.d.ts +0 -77
- package/dist/commonjs/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/deploymentOperations.js +0 -10
- package/dist/commonjs/operationsInterfaces/deploymentOperations.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/deployments.d.ts +0 -545
- package/dist/commonjs/operationsInterfaces/deployments.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/deployments.js +0 -10
- package/dist/commonjs/operationsInterfaces/deployments.js.map +0 -1
- package/dist/esm/operations/deploymentOperations.d.ts +0 -168
- package/dist/esm/operations/deploymentOperations.d.ts.map +0 -1
- package/dist/esm/operations/deploymentOperations.js +0 -782
- package/dist/esm/operations/deploymentOperations.js.map +0 -1
- package/dist/esm/operations/deployments.d.ts +0 -628
- package/dist/esm/operations/deployments.d.ts.map +0 -1
- package/dist/esm/operations/deployments.js +0 -2766
- package/dist/esm/operations/deployments.js.map +0 -1
- package/dist/esm/operationsInterfaces/deploymentOperations.d.ts +0 -77
- package/dist/esm/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/deploymentOperations.js +0 -9
- package/dist/esm/operationsInterfaces/deploymentOperations.js.map +0 -1
- package/dist/esm/operationsInterfaces/deployments.d.ts +0 -545
- package/dist/esm/operationsInterfaces/deployments.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/deployments.js +0 -9
- package/dist/esm/operationsInterfaces/deployments.js.map +0 -1
- package/dist/react-native/operations/deploymentOperations.d.ts +0 -168
- package/dist/react-native/operations/deploymentOperations.d.ts.map +0 -1
- package/dist/react-native/operations/deploymentOperations.js +0 -782
- package/dist/react-native/operations/deploymentOperations.js.map +0 -1
- package/dist/react-native/operations/deployments.d.ts +0 -628
- package/dist/react-native/operations/deployments.d.ts.map +0 -1
- package/dist/react-native/operations/deployments.js +0 -2766
- package/dist/react-native/operations/deployments.js.map +0 -1
- package/dist/react-native/operationsInterfaces/deploymentOperations.d.ts +0 -77
- package/dist/react-native/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/deploymentOperations.js +0 -9
- package/dist/react-native/operationsInterfaces/deploymentOperations.js.map +0 -1
- package/dist/react-native/operationsInterfaces/deployments.d.ts +0 -545
- package/dist/react-native/operationsInterfaces/deployments.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/deployments.js +0 -9
- package/dist/react-native/operationsInterfaces/deployments.js.map +0 -1
- package/review/arm-resources.api.md +0 -1935
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing Providers operations. */
|
|
18
18
|
class ProvidersImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class Providers class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -37,52 +38,35 @@ class ProvidersImpl {
|
|
|
37
38
|
return this;
|
|
38
39
|
},
|
|
39
40
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
41
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
43
|
}
|
|
43
44
|
return this.listPagingPage(options, settings);
|
|
44
45
|
},
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
listPagingPage(options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
48
|
+
async *listPagingPage(options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._list(options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listNext(continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
66
65
|
}
|
|
67
|
-
listPagingAll(options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
66
|
+
async *listPagingAll(options) {
|
|
67
|
+
for await (const page of this.listPagingPage(options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
86
70
|
}
|
|
87
71
|
/**
|
|
88
72
|
* Gets all resource providers for the tenant.
|
|
@@ -98,52 +82,35 @@ class ProvidersImpl {
|
|
|
98
82
|
return this;
|
|
99
83
|
},
|
|
100
84
|
byPage: (settings) => {
|
|
101
|
-
if (settings
|
|
85
|
+
if (settings?.maxPageSize) {
|
|
102
86
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
87
|
}
|
|
104
88
|
return this.listAtTenantScopePagingPage(options, settings);
|
|
105
89
|
},
|
|
106
90
|
};
|
|
107
91
|
}
|
|
108
|
-
listAtTenantScopePagingPage(options, settings) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
});
|
|
92
|
+
async *listAtTenantScopePagingPage(options, settings) {
|
|
93
|
+
let result;
|
|
94
|
+
let continuationToken = settings?.continuationToken;
|
|
95
|
+
if (!continuationToken) {
|
|
96
|
+
result = await this._listAtTenantScope(options);
|
|
97
|
+
let page = result.value || [];
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
100
|
+
yield page;
|
|
101
|
+
}
|
|
102
|
+
while (continuationToken) {
|
|
103
|
+
result = await this._listAtTenantScopeNext(continuationToken, options);
|
|
104
|
+
continuationToken = result.nextLink;
|
|
105
|
+
let page = result.value || [];
|
|
106
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
107
|
+
yield page;
|
|
108
|
+
}
|
|
127
109
|
}
|
|
128
|
-
listAtTenantScopePagingAll(options) {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listAtTenantScopePagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
133
|
-
_c = _f.value;
|
|
134
|
-
_d = false;
|
|
135
|
-
const page = _c;
|
|
136
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
140
|
-
finally {
|
|
141
|
-
try {
|
|
142
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
143
|
-
}
|
|
144
|
-
finally { if (e_2) throw e_2.error; }
|
|
145
|
-
}
|
|
146
|
-
});
|
|
110
|
+
async *listAtTenantScopePagingAll(options) {
|
|
111
|
+
for await (const page of this.listAtTenantScopePagingPage(options)) {
|
|
112
|
+
yield* page;
|
|
113
|
+
}
|
|
147
114
|
}
|
|
148
115
|
/**
|
|
149
116
|
* Unregisters a subscription from a resource provider.
|
|
@@ -245,8 +212,8 @@ const unregisterOperationSpec = {
|
|
|
245
212
|
queryParameters: [Parameters.apiVersion],
|
|
246
213
|
urlParameters: [
|
|
247
214
|
Parameters.$host,
|
|
248
|
-
Parameters.subscriptionId,
|
|
249
215
|
Parameters.resourceProviderNamespace,
|
|
216
|
+
Parameters.subscriptionId,
|
|
250
217
|
],
|
|
251
218
|
headerParameters: [Parameters.accept],
|
|
252
219
|
serializer,
|
|
@@ -263,8 +230,8 @@ const registerAtManagementGroupScopeOperationSpec = {
|
|
|
263
230
|
queryParameters: [Parameters.apiVersion],
|
|
264
231
|
urlParameters: [
|
|
265
232
|
Parameters.$host,
|
|
266
|
-
Parameters.groupId,
|
|
267
233
|
Parameters.resourceProviderNamespace,
|
|
234
|
+
Parameters.groupId,
|
|
268
235
|
],
|
|
269
236
|
headerParameters: [Parameters.accept],
|
|
270
237
|
serializer,
|
|
@@ -283,8 +250,8 @@ const providerPermissionsOperationSpec = {
|
|
|
283
250
|
queryParameters: [Parameters.apiVersion],
|
|
284
251
|
urlParameters: [
|
|
285
252
|
Parameters.$host,
|
|
286
|
-
Parameters.subscriptionId,
|
|
287
253
|
Parameters.resourceProviderNamespace,
|
|
254
|
+
Parameters.subscriptionId,
|
|
288
255
|
],
|
|
289
256
|
headerParameters: [Parameters.accept],
|
|
290
257
|
serializer,
|
|
@@ -304,8 +271,8 @@ const registerOperationSpec = {
|
|
|
304
271
|
queryParameters: [Parameters.apiVersion],
|
|
305
272
|
urlParameters: [
|
|
306
273
|
Parameters.$host,
|
|
307
|
-
Parameters.subscriptionId,
|
|
308
274
|
Parameters.resourceProviderNamespace,
|
|
275
|
+
Parameters.subscriptionId,
|
|
309
276
|
],
|
|
310
277
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
311
278
|
mediaType: "json",
|
|
@@ -357,8 +324,8 @@ const getOperationSpec = {
|
|
|
357
324
|
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
358
325
|
urlParameters: [
|
|
359
326
|
Parameters.$host,
|
|
360
|
-
Parameters.subscriptionId,
|
|
361
327
|
Parameters.resourceProviderNamespace,
|
|
328
|
+
Parameters.subscriptionId,
|
|
362
329
|
],
|
|
363
330
|
headerParameters: [Parameters.accept],
|
|
364
331
|
serializer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/operations/providers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAyBtD,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAa,aAAa;IAGxB;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAqC;QAErC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,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AE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,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 { setContinuationToken } from \"../pagingHelper.js\";\nimport { Providers } 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 { ResourceManagementClient } from \"../resourceManagementClient.js\";\nimport {\n Provider,\n ProvidersListNextOptionalParams,\n ProvidersListOptionalParams,\n ProvidersListResponse,\n ProvidersListAtTenantScopeNextOptionalParams,\n ProvidersListAtTenantScopeOptionalParams,\n ProvidersListAtTenantScopeResponse,\n ProvidersUnregisterOptionalParams,\n ProvidersUnregisterResponse,\n ProvidersRegisterAtManagementGroupScopeOptionalParams,\n ProvidersProviderPermissionsOptionalParams,\n ProvidersProviderPermissionsResponse,\n ProvidersRegisterOptionalParams,\n ProvidersRegisterResponse,\n ProvidersGetOptionalParams,\n ProvidersGetResponse,\n ProvidersGetAtTenantScopeOptionalParams,\n ProvidersGetAtTenantScopeResponse,\n ProvidersListNextResponse,\n ProvidersListAtTenantScopeNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Providers operations. */\nexport class ProvidersImpl implements Providers {\n private readonly client: ResourceManagementClient;\n\n /**\n * Initialize a new instance of the class Providers class.\n * @param client Reference to the service client\n */\n constructor(client: ResourceManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all resource providers for a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: ProvidersListOptionalParams,\n ): PagedAsyncIterableIterator<Provider> {\n const iter = this.listPagingAll(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.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: ProvidersListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Provider[]> {\n let result: ProvidersListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: ProvidersListOptionalParams,\n ): AsyncIterableIterator<Provider> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets all resource providers for the tenant.\n * @param options The options parameters.\n */\n public listAtTenantScope(\n options?: ProvidersListAtTenantScopeOptionalParams,\n ): PagedAsyncIterableIterator<Provider> {\n const iter = this.listAtTenantScopePagingAll(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.listAtTenantScopePagingPage(options, settings);\n },\n };\n }\n\n private async *listAtTenantScopePagingPage(\n options?: ProvidersListAtTenantScopeOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Provider[]> {\n let result: ProvidersListAtTenantScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAtTenantScope(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAtTenantScopeNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAtTenantScopePagingAll(\n options?: ProvidersListAtTenantScopeOptionalParams,\n ): AsyncIterableIterator<Provider> {\n for await (const page of this.listAtTenantScopePagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Unregisters a subscription from a resource provider.\n * @param resourceProviderNamespace The namespace of the resource provider to unregister.\n * @param options The options parameters.\n */\n unregister(\n resourceProviderNamespace: string,\n options?: ProvidersUnregisterOptionalParams,\n ): Promise<ProvidersUnregisterResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, options },\n unregisterOperationSpec,\n );\n }\n\n /**\n * Registers a management group with a resource provider. Use this operation to register a resource\n * provider with resource types that can be deployed at the management group scope. It does not\n * recursively register subscriptions within the management group. Instead, you must register\n * subscriptions individually.\n * @param resourceProviderNamespace The namespace of the resource provider to register.\n * @param groupId The management group ID.\n * @param options The options parameters.\n */\n registerAtManagementGroupScope(\n resourceProviderNamespace: string,\n groupId: string,\n options?: ProvidersRegisterAtManagementGroupScopeOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, groupId, options },\n registerAtManagementGroupScopeOperationSpec,\n );\n }\n\n /**\n * Get the provider permissions.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param options The options parameters.\n */\n providerPermissions(\n resourceProviderNamespace: string,\n options?: ProvidersProviderPermissionsOptionalParams,\n ): Promise<ProvidersProviderPermissionsResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, options },\n providerPermissionsOperationSpec,\n );\n }\n\n /**\n * Registers a subscription with a resource provider.\n * @param resourceProviderNamespace The namespace of the resource provider to register.\n * @param options The options parameters.\n */\n register(\n resourceProviderNamespace: string,\n options?: ProvidersRegisterOptionalParams,\n ): Promise<ProvidersRegisterResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, options },\n registerOperationSpec,\n );\n }\n\n /**\n * Gets all resource providers for a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: ProvidersListOptionalParams,\n ): Promise<ProvidersListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets all resource providers for the tenant.\n * @param options The options parameters.\n */\n private _listAtTenantScope(\n options?: ProvidersListAtTenantScopeOptionalParams,\n ): Promise<ProvidersListAtTenantScopeResponse> {\n return this.client.sendOperationRequest(\n { options },\n listAtTenantScopeOperationSpec,\n );\n }\n\n /**\n * Gets the specified resource provider.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param options The options parameters.\n */\n get(\n resourceProviderNamespace: string,\n options?: ProvidersGetOptionalParams,\n ): Promise<ProvidersGetResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, options },\n getOperationSpec,\n );\n }\n\n /**\n * Gets the specified resource provider at the tenant level.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param options The options parameters.\n */\n getAtTenantScope(\n resourceProviderNamespace: string,\n options?: ProvidersGetAtTenantScopeOptionalParams,\n ): Promise<ProvidersGetAtTenantScopeResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, options },\n getAtTenantScopeOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ProvidersListNextOptionalParams,\n ): Promise<ProvidersListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListAtTenantScopeNext\n * @param nextLink The nextLink from the previous successful call to the ListAtTenantScope method.\n * @param options The options parameters.\n */\n private _listAtTenantScopeNext(\n nextLink: string,\n options?: ProvidersListAtTenantScopeNextOptionalParams,\n ): Promise<ProvidersListAtTenantScopeNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listAtTenantScopeNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst unregisterOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Provider,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceProviderNamespace,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst registerAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{groupId}/providers/{resourceProviderNamespace}/register\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.groupId,\n Parameters.resourceProviderNamespace,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst providerPermissionsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/providerPermissions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProviderPermissionListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceProviderNamespace,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst registerOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Provider,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceProviderNamespace,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProviderListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listAtTenantScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/providers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProviderListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Provider,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceProviderNamespace,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getAtTenantScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/{resourceProviderNamespace}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Provider,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [Parameters.$host, Parameters.resourceProviderNamespace],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProviderListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listAtTenantScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProviderListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/operations/providers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAyBtD,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAa,aAAa;IACP,MAAM,CAA2B;IAElD;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAqC;QAErC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,C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SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,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 { setContinuationToken } from \"../pagingHelper.js\";\nimport { Providers } 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 { ResourceManagementClient } from \"../resourceManagementClient.js\";\nimport {\n Provider,\n ProvidersListNextOptionalParams,\n ProvidersListOptionalParams,\n ProvidersListResponse,\n ProvidersListAtTenantScopeNextOptionalParams,\n ProvidersListAtTenantScopeOptionalParams,\n ProvidersListAtTenantScopeResponse,\n ProvidersUnregisterOptionalParams,\n ProvidersUnregisterResponse,\n ProvidersRegisterAtManagementGroupScopeOptionalParams,\n ProvidersProviderPermissionsOptionalParams,\n ProvidersProviderPermissionsResponse,\n ProvidersRegisterOptionalParams,\n ProvidersRegisterResponse,\n ProvidersGetOptionalParams,\n ProvidersGetResponse,\n ProvidersGetAtTenantScopeOptionalParams,\n ProvidersGetAtTenantScopeResponse,\n ProvidersListNextResponse,\n ProvidersListAtTenantScopeNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Providers operations. */\nexport class ProvidersImpl implements Providers {\n private readonly client: ResourceManagementClient;\n\n /**\n * Initialize a new instance of the class Providers class.\n * @param client Reference to the service client\n */\n constructor(client: ResourceManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all resource providers for a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: ProvidersListOptionalParams,\n ): PagedAsyncIterableIterator<Provider> {\n const iter = this.listPagingAll(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.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: ProvidersListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Provider[]> {\n let result: ProvidersListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: ProvidersListOptionalParams,\n ): AsyncIterableIterator<Provider> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets all resource providers for the tenant.\n * @param options The options parameters.\n */\n public listAtTenantScope(\n options?: ProvidersListAtTenantScopeOptionalParams,\n ): PagedAsyncIterableIterator<Provider> {\n const iter = this.listAtTenantScopePagingAll(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.listAtTenantScopePagingPage(options, settings);\n },\n };\n }\n\n private async *listAtTenantScopePagingPage(\n options?: ProvidersListAtTenantScopeOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Provider[]> {\n let result: ProvidersListAtTenantScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAtTenantScope(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAtTenantScopeNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAtTenantScopePagingAll(\n options?: ProvidersListAtTenantScopeOptionalParams,\n ): AsyncIterableIterator<Provider> {\n for await (const page of this.listAtTenantScopePagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Unregisters a subscription from a resource provider.\n * @param resourceProviderNamespace The namespace of the resource provider to unregister.\n * @param options The options parameters.\n */\n unregister(\n resourceProviderNamespace: string,\n options?: ProvidersUnregisterOptionalParams,\n ): Promise<ProvidersUnregisterResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, options },\n unregisterOperationSpec,\n );\n }\n\n /**\n * Registers a management group with a resource provider. Use this operation to register a resource\n * provider with resource types that can be deployed at the management group scope. It does not\n * recursively register subscriptions within the management group. Instead, you must register\n * subscriptions individually.\n * @param resourceProviderNamespace The namespace of the resource provider to register.\n * @param groupId The management group ID.\n * @param options The options parameters.\n */\n registerAtManagementGroupScope(\n resourceProviderNamespace: string,\n groupId: string,\n options?: ProvidersRegisterAtManagementGroupScopeOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, groupId, options },\n registerAtManagementGroupScopeOperationSpec,\n );\n }\n\n /**\n * Get the provider permissions.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param options The options parameters.\n */\n providerPermissions(\n resourceProviderNamespace: string,\n options?: ProvidersProviderPermissionsOptionalParams,\n ): Promise<ProvidersProviderPermissionsResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, options },\n providerPermissionsOperationSpec,\n );\n }\n\n /**\n * Registers a subscription with a resource provider.\n * @param resourceProviderNamespace The namespace of the resource provider to register.\n * @param options The options parameters.\n */\n register(\n resourceProviderNamespace: string,\n options?: ProvidersRegisterOptionalParams,\n ): Promise<ProvidersRegisterResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, options },\n registerOperationSpec,\n );\n }\n\n /**\n * Gets all resource providers for a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: ProvidersListOptionalParams,\n ): Promise<ProvidersListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets all resource providers for the tenant.\n * @param options The options parameters.\n */\n private _listAtTenantScope(\n options?: ProvidersListAtTenantScopeOptionalParams,\n ): Promise<ProvidersListAtTenantScopeResponse> {\n return this.client.sendOperationRequest(\n { options },\n listAtTenantScopeOperationSpec,\n );\n }\n\n /**\n * Gets the specified resource provider.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param options The options parameters.\n */\n get(\n resourceProviderNamespace: string,\n options?: ProvidersGetOptionalParams,\n ): Promise<ProvidersGetResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, options },\n getOperationSpec,\n );\n }\n\n /**\n * Gets the specified resource provider at the tenant level.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param options The options parameters.\n */\n getAtTenantScope(\n resourceProviderNamespace: string,\n options?: ProvidersGetAtTenantScopeOptionalParams,\n ): Promise<ProvidersGetAtTenantScopeResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, options },\n getAtTenantScopeOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ProvidersListNextOptionalParams,\n ): Promise<ProvidersListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListAtTenantScopeNext\n * @param nextLink The nextLink from the previous successful call to the ListAtTenantScope method.\n * @param options The options parameters.\n */\n private _listAtTenantScopeNext(\n nextLink: string,\n options?: ProvidersListAtTenantScopeNextOptionalParams,\n ): Promise<ProvidersListAtTenantScopeNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listAtTenantScopeNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst unregisterOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Provider,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceProviderNamespace,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst registerAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Management/managementGroups/{groupId}/providers/{resourceProviderNamespace}/register\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceProviderNamespace,\n Parameters.groupId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst providerPermissionsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/providerPermissions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProviderPermissionListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceProviderNamespace,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst registerOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Provider,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceProviderNamespace,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProviderListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listAtTenantScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/providers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProviderListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Provider,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceProviderNamespace,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getAtTenantScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/{resourceProviderNamespace}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Provider,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [Parameters.$host, Parameters.resourceProviderNamespace],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProviderListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listAtTenantScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProviderListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing ResourceGroups operations. */
|
|
20
20
|
class ResourceGroupsImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class ResourceGroups class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class ResourceGroupsImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listPagingPage(options, settings);
|
|
46
47
|
},
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listPagingPage(options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
50
|
+
async *listPagingPage(options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._list(options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listNext(continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
68
67
|
}
|
|
69
|
-
listPagingAll(options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
68
|
+
async *listPagingAll(options) {
|
|
69
|
+
for await (const page of this.listPagingPage(options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
88
72
|
}
|
|
89
73
|
/**
|
|
90
74
|
* Checks whether a resource group exists.
|
|
@@ -116,14 +100,19 @@ class ResourceGroupsImpl {
|
|
|
116
100
|
return this.client.sendOperationRequest(args, spec);
|
|
117
101
|
};
|
|
118
102
|
const sendOperationFn = async (args, spec) => {
|
|
119
|
-
var _a;
|
|
120
103
|
let currentRawResponse = undefined;
|
|
121
|
-
const providedCallback =
|
|
104
|
+
const providedCallback = args.options?.onResponse;
|
|
122
105
|
const callback = (rawResponse, flatResponse) => {
|
|
123
106
|
currentRawResponse = rawResponse;
|
|
124
|
-
providedCallback
|
|
107
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
108
|
+
};
|
|
109
|
+
const updatedArgs = {
|
|
110
|
+
...args,
|
|
111
|
+
options: {
|
|
112
|
+
...args.options,
|
|
113
|
+
onResponse: callback,
|
|
114
|
+
},
|
|
125
115
|
};
|
|
126
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
127
116
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
128
117
|
return {
|
|
129
118
|
flatResponse,
|
|
@@ -140,8 +129,8 @@ class ResourceGroupsImpl {
|
|
|
140
129
|
spec: deleteOperationSpec,
|
|
141
130
|
});
|
|
142
131
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
143
|
-
restoreFrom: options
|
|
144
|
-
intervalInMs: options
|
|
132
|
+
restoreFrom: options?.resumeFrom,
|
|
133
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
145
134
|
});
|
|
146
135
|
await poller.poll();
|
|
147
136
|
return poller;
|
|
@@ -186,14 +175,19 @@ class ResourceGroupsImpl {
|
|
|
186
175
|
return this.client.sendOperationRequest(args, spec);
|
|
187
176
|
};
|
|
188
177
|
const sendOperationFn = async (args, spec) => {
|
|
189
|
-
var _a;
|
|
190
178
|
let currentRawResponse = undefined;
|
|
191
|
-
const providedCallback =
|
|
179
|
+
const providedCallback = args.options?.onResponse;
|
|
192
180
|
const callback = (rawResponse, flatResponse) => {
|
|
193
181
|
currentRawResponse = rawResponse;
|
|
194
|
-
providedCallback
|
|
182
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
183
|
+
};
|
|
184
|
+
const updatedArgs = {
|
|
185
|
+
...args,
|
|
186
|
+
options: {
|
|
187
|
+
...args.options,
|
|
188
|
+
onResponse: callback,
|
|
189
|
+
},
|
|
195
190
|
};
|
|
196
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
197
191
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
198
192
|
return {
|
|
199
193
|
flatResponse,
|
|
@@ -210,8 +204,8 @@ class ResourceGroupsImpl {
|
|
|
210
204
|
spec: exportTemplateOperationSpec,
|
|
211
205
|
});
|
|
212
206
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
213
|
-
restoreFrom: options
|
|
214
|
-
intervalInMs: options
|
|
207
|
+
restoreFrom: options?.resumeFrom,
|
|
208
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
215
209
|
resourceLocationConfig: "location",
|
|
216
210
|
});
|
|
217
211
|
await poller.poll();
|
|
@@ -279,7 +273,7 @@ const createOrUpdateOperationSpec = {
|
|
|
279
273
|
bodyMapper: Mappers.CloudError,
|
|
280
274
|
},
|
|
281
275
|
},
|
|
282
|
-
requestBody: Parameters.
|
|
276
|
+
requestBody: Parameters.parameters2,
|
|
283
277
|
queryParameters: [Parameters.apiVersion],
|
|
284
278
|
urlParameters: [
|
|
285
279
|
Parameters.$host,
|
|
@@ -342,7 +336,7 @@ const updateOperationSpec = {
|
|
|
342
336
|
bodyMapper: Mappers.CloudError,
|
|
343
337
|
},
|
|
344
338
|
},
|
|
345
|
-
requestBody: Parameters.
|
|
339
|
+
requestBody: Parameters.parameters3,
|
|
346
340
|
queryParameters: [Parameters.apiVersion],
|
|
347
341
|
urlParameters: [
|
|
348
342
|
Parameters.$host,
|
|
@@ -373,7 +367,7 @@ const exportTemplateOperationSpec = {
|
|
|
373
367
|
bodyMapper: Mappers.CloudError,
|
|
374
368
|
},
|
|
375
369
|
},
|
|
376
|
-
requestBody: Parameters.
|
|
370
|
+
requestBody: Parameters.parameters4,
|
|
377
371
|
queryParameters: [Parameters.apiVersion],
|
|
378
372
|
urlParameters: [
|
|
379
373
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DAAgD;IACtD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC;IAC3E,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;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 { setContinuationToken } from \"../pagingHelper.js\";\nimport { ResourceGroups } 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 { ResourceManagementClient } from \"../resourceManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ResourceGroup,\n ResourceGroupsListNextOptionalParams,\n ResourceGroupsListOptionalParams,\n ResourceGroupsListResponse,\n ResourceGroupsCheckExistenceOptionalParams,\n ResourceGroupsCheckExistenceResponse,\n ResourceGroupsCreateOrUpdateOptionalParams,\n ResourceGroupsCreateOrUpdateResponse,\n ResourceGroupsDeleteOptionalParams,\n ResourceGroupsGetOptionalParams,\n ResourceGroupsGetResponse,\n ResourceGroupPatchable,\n ResourceGroupsUpdateOptionalParams,\n ResourceGroupsUpdateResponse,\n ExportTemplateRequest,\n ResourceGroupsExportTemplateOptionalParams,\n ResourceGroupsExportTemplateResponse,\n ResourceGroupsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ResourceGroups operations. */\nexport class ResourceGroupsImpl implements ResourceGroups {\n private readonly client: ResourceManagementClient;\n\n /**\n * Initialize a new instance of the class ResourceGroups class.\n * @param client Reference to the service client\n */\n constructor(client: ResourceManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all the resource groups for a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: ResourceGroupsListOptionalParams,\n ): PagedAsyncIterableIterator<ResourceGroup> {\n const iter = this.listPagingAll(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.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: ResourceGroupsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ResourceGroup[]> {\n let result: ResourceGroupsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: ResourceGroupsListOptionalParams,\n ): AsyncIterableIterator<ResourceGroup> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Checks whether a resource group exists.\n * @param resourceGroupName The name of the resource group to check. The name is case insensitive.\n * @param options The options parameters.\n */\n checkExistence(\n resourceGroupName: string,\n options?: ResourceGroupsCheckExistenceOptionalParams,\n ): Promise<ResourceGroupsCheckExistenceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n checkExistenceOperationSpec,\n );\n }\n\n /**\n * Creates or updates a resource group.\n * @param resourceGroupName The name of the resource group to create or update. Can include\n * alphanumeric, underscore, parentheses, hyphen, period (except at end), and Unicode characters that\n * match the allowed characters.\n * @param parameters Parameters supplied to the create or update a resource group.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n parameters: ResourceGroup,\n options?: ResourceGroupsCreateOrUpdateOptionalParams,\n ): Promise<ResourceGroupsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, parameters, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * When you delete a resource group, all of its resources are also deleted. Deleting a resource group\n * deletes all of its template deployments and currently stored operations.\n * @param resourceGroupName The name of the resource group to delete. The name is case insensitive.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n options?: ResourceGroupsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * When you delete a resource group, all of its resources are also deleted. Deleting a resource group\n * deletes all of its template deployments and currently stored operations.\n * @param resourceGroupName The name of the resource group to delete. The name is case insensitive.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n options?: ResourceGroupsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(resourceGroupName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a resource group.\n * @param resourceGroupName The name of the resource group to get. The name is case insensitive.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n options?: ResourceGroupsGetOptionalParams,\n ): Promise<ResourceGroupsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Resource groups can be updated through a simple PATCH operation to a group address. The format of\n * the request is the same as that for creating a resource group. If a field is unspecified, the\n * current value is retained.\n * @param resourceGroupName The name of the resource group to update. The name is case insensitive.\n * @param parameters Parameters supplied to update a resource group.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n parameters: ResourceGroupPatchable,\n options?: ResourceGroupsUpdateOptionalParams,\n ): Promise<ResourceGroupsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, parameters, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Captures the specified resource group as a template.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param parameters Parameters for exporting the template.\n * @param options The options parameters.\n */\n async beginExportTemplate(\n resourceGroupName: string,\n parameters: ExportTemplateRequest,\n options?: ResourceGroupsExportTemplateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ResourceGroupsExportTemplateResponse>,\n ResourceGroupsExportTemplateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ResourceGroupsExportTemplateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, parameters, options },\n spec: exportTemplateOperationSpec,\n });\n const poller = await createHttpPoller<\n ResourceGroupsExportTemplateResponse,\n OperationState<ResourceGroupsExportTemplateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Captures the specified resource group as a template.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param parameters Parameters for exporting the template.\n * @param options The options parameters.\n */\n async beginExportTemplateAndWait(\n resourceGroupName: string,\n parameters: ExportTemplateRequest,\n options?: ResourceGroupsExportTemplateOptionalParams,\n ): Promise<ResourceGroupsExportTemplateResponse> {\n const poller = await this.beginExportTemplate(\n resourceGroupName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets all the resource groups for a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: ResourceGroupsListOptionalParams,\n ): Promise<ResourceGroupsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ResourceGroupsListNextOptionalParams,\n ): Promise<ResourceGroupsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkExistenceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"HEAD\",\n responses: {\n 204: {},\n 404: {},\n default: {\n bodyMapper: Mappers.CloudError,\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 createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroup,\n },\n 201: {\n bodyMapper: Mappers.ResourceGroup,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.forceDeletionTypes],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroup,\n },\n default: {\n bodyMapper: Mappers.CloudError,\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 updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroup,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters7,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst exportTemplateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroupExportResult,\n },\n 201: {\n bodyMapper: Mappers.ResourceGroupExportResult,\n },\n 202: {\n bodyMapper: Mappers.ResourceGroupExportResult,\n },\n 204: {\n bodyMapper: Mappers.ResourceGroupExportResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters8,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroupListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroupListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"resourceGroups.js","sourceRoot":"","sources":["../../../src/operations/resourceGroups.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAsB9C,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IACZ,MAAM,CAA2B;IAElD;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YAC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* 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 { setContinuationToken } from \"../pagingHelper.js\";\nimport { ResourceGroups } 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 { ResourceManagementClient } from \"../resourceManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ResourceGroup,\n ResourceGroupsListNextOptionalParams,\n ResourceGroupsListOptionalParams,\n ResourceGroupsListResponse,\n ResourceGroupsCheckExistenceOptionalParams,\n ResourceGroupsCheckExistenceResponse,\n ResourceGroupsCreateOrUpdateOptionalParams,\n ResourceGroupsCreateOrUpdateResponse,\n ResourceGroupsDeleteOptionalParams,\n ResourceGroupsGetOptionalParams,\n ResourceGroupsGetResponse,\n ResourceGroupPatchable,\n ResourceGroupsUpdateOptionalParams,\n ResourceGroupsUpdateResponse,\n ExportTemplateRequest,\n ResourceGroupsExportTemplateOptionalParams,\n ResourceGroupsExportTemplateResponse,\n ResourceGroupsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ResourceGroups operations. */\nexport class ResourceGroupsImpl implements ResourceGroups {\n private readonly client: ResourceManagementClient;\n\n /**\n * Initialize a new instance of the class ResourceGroups class.\n * @param client Reference to the service client\n */\n constructor(client: ResourceManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all the resource groups for a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: ResourceGroupsListOptionalParams,\n ): PagedAsyncIterableIterator<ResourceGroup> {\n const iter = this.listPagingAll(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.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: ResourceGroupsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ResourceGroup[]> {\n let result: ResourceGroupsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: ResourceGroupsListOptionalParams,\n ): AsyncIterableIterator<ResourceGroup> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Checks whether a resource group exists.\n * @param resourceGroupName The name of the resource group to check. The name is case insensitive.\n * @param options The options parameters.\n */\n checkExistence(\n resourceGroupName: string,\n options?: ResourceGroupsCheckExistenceOptionalParams,\n ): Promise<ResourceGroupsCheckExistenceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n checkExistenceOperationSpec,\n );\n }\n\n /**\n * Creates or updates a resource group.\n * @param resourceGroupName The name of the resource group to create or update. Can include\n * alphanumeric, underscore, parentheses, hyphen, period (except at end), and Unicode characters that\n * match the allowed characters.\n * @param parameters Parameters supplied to the create or update a resource group.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n parameters: ResourceGroup,\n options?: ResourceGroupsCreateOrUpdateOptionalParams,\n ): Promise<ResourceGroupsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, parameters, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * When you delete a resource group, all of its resources are also deleted. Deleting a resource group\n * deletes all of its template deployments and currently stored operations.\n * @param resourceGroupName The name of the resource group to delete. The name is case insensitive.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n options?: ResourceGroupsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * When you delete a resource group, all of its resources are also deleted. Deleting a resource group\n * deletes all of its template deployments and currently stored operations.\n * @param resourceGroupName The name of the resource group to delete. The name is case insensitive.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n options?: ResourceGroupsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(resourceGroupName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a resource group.\n * @param resourceGroupName The name of the resource group to get. The name is case insensitive.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n options?: ResourceGroupsGetOptionalParams,\n ): Promise<ResourceGroupsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Resource groups can be updated through a simple PATCH operation to a group address. The format of\n * the request is the same as that for creating a resource group. If a field is unspecified, the\n * current value is retained.\n * @param resourceGroupName The name of the resource group to update. The name is case insensitive.\n * @param parameters Parameters supplied to update a resource group.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n parameters: ResourceGroupPatchable,\n options?: ResourceGroupsUpdateOptionalParams,\n ): Promise<ResourceGroupsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, parameters, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Captures the specified resource group as a template.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param parameters Parameters for exporting the template.\n * @param options The options parameters.\n */\n async beginExportTemplate(\n resourceGroupName: string,\n parameters: ExportTemplateRequest,\n options?: ResourceGroupsExportTemplateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ResourceGroupsExportTemplateResponse>,\n ResourceGroupsExportTemplateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ResourceGroupsExportTemplateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, parameters, options },\n spec: exportTemplateOperationSpec,\n });\n const poller = await createHttpPoller<\n ResourceGroupsExportTemplateResponse,\n OperationState<ResourceGroupsExportTemplateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Captures the specified resource group as a template.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param parameters Parameters for exporting the template.\n * @param options The options parameters.\n */\n async beginExportTemplateAndWait(\n resourceGroupName: string,\n parameters: ExportTemplateRequest,\n options?: ResourceGroupsExportTemplateOptionalParams,\n ): Promise<ResourceGroupsExportTemplateResponse> {\n const poller = await this.beginExportTemplate(\n resourceGroupName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets all the resource groups for a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: ResourceGroupsListOptionalParams,\n ): Promise<ResourceGroupsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ResourceGroupsListNextOptionalParams,\n ): Promise<ResourceGroupsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkExistenceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"HEAD\",\n responses: {\n 204: {},\n 404: {},\n default: {\n bodyMapper: Mappers.CloudError,\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 createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroup,\n },\n 201: {\n bodyMapper: Mappers.ResourceGroup,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.forceDeletionTypes],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroup,\n },\n default: {\n bodyMapper: Mappers.CloudError,\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 updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroup,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst exportTemplateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroupExportResult,\n },\n 201: {\n bodyMapper: Mappers.ResourceGroupExportResult,\n },\n 202: {\n bodyMapper: Mappers.ResourceGroupExportResult,\n },\n 204: {\n bodyMapper: Mappers.ResourceGroupExportResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroupListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceGroupListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|