@azure/arm-managementgroups 1.1.0 → 2.0.0-alpha.20211214.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +78 -77
- package/dist/index.js +2881 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/managementGroupsAPI.d.ts +34 -0
- package/dist-esm/src/managementGroupsAPI.d.ts.map +1 -0
- package/dist-esm/src/managementGroupsAPI.js +102 -0
- package/dist-esm/src/managementGroupsAPI.js.map +1 -0
- package/dist-esm/src/managementGroupsAPIContext.d.ts +14 -0
- package/dist-esm/src/managementGroupsAPIContext.d.ts.map +1 -0
- package/dist-esm/src/managementGroupsAPIContext.js +43 -0
- package/dist-esm/src/managementGroupsAPIContext.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +956 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +46 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +39 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +776 -396
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +24 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +200 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/entities.d.ts +34 -0
- package/dist-esm/src/operations/entities.d.ts.map +1 -0
- package/dist-esm/src/operations/entities.js +142 -0
- package/dist-esm/src/operations/entities.js.map +1 -0
- package/dist-esm/src/operations/hierarchySettingsOperations.d.ts +52 -0
- package/dist-esm/src/operations/hierarchySettingsOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/hierarchySettingsOperations.js +154 -0
- package/dist-esm/src/operations/hierarchySettingsOperations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +4 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/managementGroupSubscriptions.d.ts +62 -0
- package/dist-esm/src/operations/managementGroupSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operations/managementGroupSubscriptions.js +215 -0
- package/dist-esm/src/operations/managementGroupSubscriptions.js.map +1 -0
- package/dist-esm/src/operations/managementGroups.d.ts +109 -0
- package/dist-esm/src/operations/managementGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/managementGroups.js +462 -0
- package/dist-esm/src/operations/managementGroups.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/entities.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/entities.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/entities.js +9 -0
- package/dist-esm/src/operationsInterfaces/entities.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/hierarchySettingsOperations.d.ts +44 -0
- package/dist-esm/src/operationsInterfaces/hierarchySettingsOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/hierarchySettingsOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/hierarchySettingsOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/managementGroupSubscriptions.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/managementGroupSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/managementGroupSubscriptions.js +9 -0
- package/dist-esm/src/operationsInterfaces/managementGroupSubscriptions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/managementGroups.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/managementGroups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/managementGroups.js +9 -0
- package/dist-esm/src/operationsInterfaces/managementGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +71 -25
- package/review/arm-managementgroups.api.md +667 -0
- package/rollup.config.js +184 -27
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/managementGroupsAPI.ts +160 -0
- package/src/managementGroupsAPIContext.ts +62 -0
- package/src/models/index.ts +1082 -0
- package/{lib → src}/models/mappers.ts +792 -400
- package/src/models/parameters.ts +232 -0
- package/src/operations/entities.ts +159 -0
- package/src/operations/hierarchySettingsOperations.ts +214 -0
- package/{lib → src}/operations/index.ts +4 -5
- package/src/operations/managementGroupSubscriptions.ts +294 -0
- package/src/operations/managementGroups.ts +592 -0
- package/src/operations/operations.ts +137 -0
- package/src/operationsInterfaces/entities.ts +23 -0
- package/src/operationsInterfaces/hierarchySettingsOperations.ts +80 -0
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/managementGroupSubscriptions.ts +69 -0
- package/src/operationsInterfaces/managementGroups.ts +131 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/tsconfig.json +4 -4
- package/types/arm-managementgroups.d.ts +1266 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-managementgroups.js +0 -2007
- package/dist/arm-managementgroups.js.map +0 -1
- package/dist/arm-managementgroups.min.js +0 -1
- package/dist/arm-managementgroups.min.js.map +0 -1
- package/esm/managementGroupsAPI.d.ts +0 -68
- package/esm/managementGroupsAPI.d.ts.map +0 -1
- package/esm/managementGroupsAPI.js +0 -115
- package/esm/managementGroupsAPI.js.map +0 -1
- package/esm/managementGroupsAPIContext.d.ts +0 -14
- package/esm/managementGroupsAPIContext.d.ts.map +0 -1
- package/esm/managementGroupsAPIContext.js +0 -51
- package/esm/managementGroupsAPIContext.js.map +0 -1
- package/esm/models/entitiesMappers.d.ts +0 -2
- package/esm/models/entitiesMappers.d.ts.map +0 -1
- package/esm/models/entitiesMappers.js +0 -11
- package/esm/models/entitiesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -1390
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/managementGroupSubscriptionsMappers.d.ts +0 -2
- package/esm/models/managementGroupSubscriptionsMappers.d.ts.map +0 -1
- package/esm/models/managementGroupSubscriptionsMappers.js +0 -11
- package/esm/models/managementGroupSubscriptionsMappers.js.map +0 -1
- package/esm/models/managementGroupsMappers.d.ts +0 -2
- package/esm/models/managementGroupsMappers.d.ts.map +0 -1
- package/esm/models/managementGroupsMappers.js +0 -11
- package/esm/models/managementGroupsMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -28
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -18
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -194
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/entities.d.ts +0 -46
- package/esm/operations/entities.d.ts.map +0 -1
- package/esm/operations/entities.js +0 -87
- package/esm/operations/entities.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/managementGroupSubscriptions.d.ts +0 -55
- package/esm/operations/managementGroupSubscriptions.d.ts.map +0 -1
- package/esm/operations/managementGroupSubscriptions.js +0 -85
- package/esm/operations/managementGroupSubscriptions.js.map +0 -1
- package/esm/operations/managementGroups.d.ts +0 -120
- package/esm/operations/managementGroups.d.ts.map +0 -1
- package/esm/operations/managementGroups.js +0 -252
- package/esm/operations/managementGroups.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/lib/managementGroupsAPI.ts +0 -191
- package/lib/managementGroupsAPIContext.ts +0 -56
- package/lib/models/entitiesMappers.ts +0 -18
- package/lib/models/index.ts +0 -1466
- package/lib/models/managementGroupSubscriptionsMappers.ts +0 -15
- package/lib/models/managementGroupsMappers.ts +0 -29
- package/lib/models/operationsMappers.ts +0 -18
- package/lib/models/parameters.ts +0 -196
- package/lib/operations/entities.ts +0 -133
- package/lib/operations/managementGroupSubscriptions.ts +0 -140
- package/lib/operations/managementGroups.ts +0 -365
- package/lib/operations/operations.ts +0 -123
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing ManagementGroups operations. */
|
|
16
|
+
export class ManagementGroupsImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class ManagementGroups class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* List management groups for the authenticated user.
|
|
26
|
+
*
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
list(options) {
|
|
30
|
+
const iter = this.listPagingAll(options);
|
|
31
|
+
return {
|
|
32
|
+
next() {
|
|
33
|
+
return iter.next();
|
|
34
|
+
},
|
|
35
|
+
[Symbol.asyncIterator]() {
|
|
36
|
+
return this;
|
|
37
|
+
},
|
|
38
|
+
byPage: () => {
|
|
39
|
+
return this.listPagingPage(options);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
listPagingPage(options) {
|
|
44
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
45
|
+
let result = yield __await(this._list(options));
|
|
46
|
+
yield yield __await(result.value || []);
|
|
47
|
+
let continuationToken = result.nextLink;
|
|
48
|
+
while (continuationToken) {
|
|
49
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
yield yield __await(result.value || []);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
listPagingAll(options) {
|
|
56
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
57
|
+
var e_1, _a;
|
|
58
|
+
try {
|
|
59
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
60
|
+
const page = _c.value;
|
|
61
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
65
|
+
finally {
|
|
66
|
+
try {
|
|
67
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
68
|
+
}
|
|
69
|
+
finally { if (e_1) throw e_1.error; }
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* List all entities that descend from a management group.
|
|
75
|
+
*
|
|
76
|
+
* @param groupId Management Group ID.
|
|
77
|
+
* @param options The options parameters.
|
|
78
|
+
*/
|
|
79
|
+
listDescendants(groupId, options) {
|
|
80
|
+
const iter = this.getDescendantsPagingAll(groupId, options);
|
|
81
|
+
return {
|
|
82
|
+
next() {
|
|
83
|
+
return iter.next();
|
|
84
|
+
},
|
|
85
|
+
[Symbol.asyncIterator]() {
|
|
86
|
+
return this;
|
|
87
|
+
},
|
|
88
|
+
byPage: () => {
|
|
89
|
+
return this.getDescendantsPagingPage(groupId, options);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
getDescendantsPagingPage(groupId, options) {
|
|
94
|
+
return __asyncGenerator(this, arguments, function* getDescendantsPagingPage_1() {
|
|
95
|
+
let result = yield __await(this._getDescendants(groupId, options));
|
|
96
|
+
yield yield __await(result.value || []);
|
|
97
|
+
let continuationToken = result.nextLink;
|
|
98
|
+
while (continuationToken) {
|
|
99
|
+
result = yield __await(this._getDescendantsNext(groupId, continuationToken, options));
|
|
100
|
+
continuationToken = result.nextLink;
|
|
101
|
+
yield yield __await(result.value || []);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
getDescendantsPagingAll(groupId, options) {
|
|
106
|
+
return __asyncGenerator(this, arguments, function* getDescendantsPagingAll_1() {
|
|
107
|
+
var e_2, _a;
|
|
108
|
+
try {
|
|
109
|
+
for (var _b = __asyncValues(this.getDescendantsPagingPage(groupId, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
110
|
+
const page = _c.value;
|
|
111
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
115
|
+
finally {
|
|
116
|
+
try {
|
|
117
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
118
|
+
}
|
|
119
|
+
finally { if (e_2) throw e_2.error; }
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* List management groups for the authenticated user.
|
|
125
|
+
*
|
|
126
|
+
* @param options The options parameters.
|
|
127
|
+
*/
|
|
128
|
+
_list(options) {
|
|
129
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Get the details of the management group.
|
|
133
|
+
*
|
|
134
|
+
* @param groupId Management Group ID.
|
|
135
|
+
* @param options The options parameters.
|
|
136
|
+
*/
|
|
137
|
+
get(groupId, options) {
|
|
138
|
+
return this.client.sendOperationRequest({ groupId, options }, getOperationSpec);
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Create or update a management group.
|
|
142
|
+
* If a management group is already created and a subsequent create request is issued with different
|
|
143
|
+
* properties, the management group properties will be updated.
|
|
144
|
+
*
|
|
145
|
+
* @param groupId Management Group ID.
|
|
146
|
+
* @param createManagementGroupRequest Management group creation parameters.
|
|
147
|
+
* @param options The options parameters.
|
|
148
|
+
*/
|
|
149
|
+
beginCreateOrUpdate(groupId, createManagementGroupRequest, options) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
152
|
+
return this.client.sendOperationRequest(args, spec);
|
|
153
|
+
});
|
|
154
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
var _a;
|
|
156
|
+
let currentRawResponse = undefined;
|
|
157
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
158
|
+
const callback = (rawResponse, flatResponse) => {
|
|
159
|
+
currentRawResponse = rawResponse;
|
|
160
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
161
|
+
};
|
|
162
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
163
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
164
|
+
return {
|
|
165
|
+
flatResponse,
|
|
166
|
+
rawResponse: {
|
|
167
|
+
statusCode: currentRawResponse.status,
|
|
168
|
+
body: currentRawResponse.parsedBody,
|
|
169
|
+
headers: currentRawResponse.headers.toJSON()
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
});
|
|
173
|
+
const lro = new LroImpl(sendOperation, { groupId, createManagementGroupRequest, options }, createOrUpdateOperationSpec);
|
|
174
|
+
return new LroEngine(lro, {
|
|
175
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
176
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
177
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Create or update a management group.
|
|
183
|
+
* If a management group is already created and a subsequent create request is issued with different
|
|
184
|
+
* properties, the management group properties will be updated.
|
|
185
|
+
*
|
|
186
|
+
* @param groupId Management Group ID.
|
|
187
|
+
* @param createManagementGroupRequest Management group creation parameters.
|
|
188
|
+
* @param options The options parameters.
|
|
189
|
+
*/
|
|
190
|
+
beginCreateOrUpdateAndWait(groupId, createManagementGroupRequest, options) {
|
|
191
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
192
|
+
const poller = yield this.beginCreateOrUpdate(groupId, createManagementGroupRequest, options);
|
|
193
|
+
return poller.pollUntilDone();
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Update a management group.
|
|
198
|
+
*
|
|
199
|
+
* @param groupId Management Group ID.
|
|
200
|
+
* @param patchGroupRequest Management group patch parameters.
|
|
201
|
+
* @param options The options parameters.
|
|
202
|
+
*/
|
|
203
|
+
update(groupId, patchGroupRequest, options) {
|
|
204
|
+
return this.client.sendOperationRequest({ groupId, patchGroupRequest, options }, updateOperationSpec);
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Delete management group.
|
|
208
|
+
* If a management group contains child resources, the request will fail.
|
|
209
|
+
*
|
|
210
|
+
* @param groupId Management Group ID.
|
|
211
|
+
* @param options The options parameters.
|
|
212
|
+
*/
|
|
213
|
+
beginDelete(groupId, options) {
|
|
214
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
215
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
216
|
+
return this.client.sendOperationRequest(args, spec);
|
|
217
|
+
});
|
|
218
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
219
|
+
var _a;
|
|
220
|
+
let currentRawResponse = undefined;
|
|
221
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
222
|
+
const callback = (rawResponse, flatResponse) => {
|
|
223
|
+
currentRawResponse = rawResponse;
|
|
224
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
225
|
+
};
|
|
226
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
227
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
228
|
+
return {
|
|
229
|
+
flatResponse,
|
|
230
|
+
rawResponse: {
|
|
231
|
+
statusCode: currentRawResponse.status,
|
|
232
|
+
body: currentRawResponse.parsedBody,
|
|
233
|
+
headers: currentRawResponse.headers.toJSON()
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
});
|
|
237
|
+
const lro = new LroImpl(sendOperation, { groupId, options }, deleteOperationSpec);
|
|
238
|
+
return new LroEngine(lro, {
|
|
239
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
240
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
241
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Delete management group.
|
|
247
|
+
* If a management group contains child resources, the request will fail.
|
|
248
|
+
*
|
|
249
|
+
* @param groupId Management Group ID.
|
|
250
|
+
* @param options The options parameters.
|
|
251
|
+
*/
|
|
252
|
+
beginDeleteAndWait(groupId, options) {
|
|
253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
254
|
+
const poller = yield this.beginDelete(groupId, options);
|
|
255
|
+
return poller.pollUntilDone();
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* List all entities that descend from a management group.
|
|
260
|
+
*
|
|
261
|
+
* @param groupId Management Group ID.
|
|
262
|
+
* @param options The options parameters.
|
|
263
|
+
*/
|
|
264
|
+
_getDescendants(groupId, options) {
|
|
265
|
+
return this.client.sendOperationRequest({ groupId, options }, getDescendantsOperationSpec);
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* ListNext
|
|
269
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
270
|
+
* @param options The options parameters.
|
|
271
|
+
*/
|
|
272
|
+
_listNext(nextLink, options) {
|
|
273
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* GetDescendantsNext
|
|
277
|
+
* @param groupId Management Group ID.
|
|
278
|
+
* @param nextLink The nextLink from the previous successful call to the GetDescendants method.
|
|
279
|
+
* @param options The options parameters.
|
|
280
|
+
*/
|
|
281
|
+
_getDescendantsNext(groupId, nextLink, options) {
|
|
282
|
+
return this.client.sendOperationRequest({ groupId, nextLink, options }, getDescendantsNextOperationSpec);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
// Operation Specifications
|
|
286
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
287
|
+
const listOperationSpec = {
|
|
288
|
+
path: "/providers/Microsoft.Management/managementGroups",
|
|
289
|
+
httpMethod: "GET",
|
|
290
|
+
responses: {
|
|
291
|
+
200: {
|
|
292
|
+
bodyMapper: Mappers.ManagementGroupListResult
|
|
293
|
+
},
|
|
294
|
+
default: {
|
|
295
|
+
bodyMapper: Mappers.ErrorResponse
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
queryParameters: [Parameters.apiVersion, Parameters.skiptoken],
|
|
299
|
+
urlParameters: [Parameters.$host],
|
|
300
|
+
headerParameters: [Parameters.accept, Parameters.cacheControl],
|
|
301
|
+
serializer
|
|
302
|
+
};
|
|
303
|
+
const getOperationSpec = {
|
|
304
|
+
path: "/providers/Microsoft.Management/managementGroups/{groupId}",
|
|
305
|
+
httpMethod: "GET",
|
|
306
|
+
responses: {
|
|
307
|
+
200: {
|
|
308
|
+
bodyMapper: Mappers.ManagementGroup
|
|
309
|
+
},
|
|
310
|
+
default: {
|
|
311
|
+
bodyMapper: Mappers.ErrorResponse
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
queryParameters: [
|
|
315
|
+
Parameters.apiVersion,
|
|
316
|
+
Parameters.expand,
|
|
317
|
+
Parameters.recurse,
|
|
318
|
+
Parameters.filter
|
|
319
|
+
],
|
|
320
|
+
urlParameters: [Parameters.$host, Parameters.groupId],
|
|
321
|
+
headerParameters: [Parameters.accept, Parameters.cacheControl],
|
|
322
|
+
serializer
|
|
323
|
+
};
|
|
324
|
+
const createOrUpdateOperationSpec = {
|
|
325
|
+
path: "/providers/Microsoft.Management/managementGroups/{groupId}",
|
|
326
|
+
httpMethod: "PUT",
|
|
327
|
+
responses: {
|
|
328
|
+
200: {
|
|
329
|
+
bodyMapper: Mappers.ManagementGroup
|
|
330
|
+
},
|
|
331
|
+
201: {
|
|
332
|
+
bodyMapper: Mappers.ManagementGroup
|
|
333
|
+
},
|
|
334
|
+
202: {
|
|
335
|
+
bodyMapper: Mappers.ManagementGroup
|
|
336
|
+
},
|
|
337
|
+
204: {
|
|
338
|
+
bodyMapper: Mappers.ManagementGroup
|
|
339
|
+
},
|
|
340
|
+
default: {
|
|
341
|
+
bodyMapper: Mappers.ErrorResponse
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
requestBody: Parameters.createManagementGroupRequest,
|
|
345
|
+
queryParameters: [Parameters.apiVersion],
|
|
346
|
+
urlParameters: [Parameters.$host, Parameters.groupId],
|
|
347
|
+
headerParameters: [
|
|
348
|
+
Parameters.accept,
|
|
349
|
+
Parameters.cacheControl,
|
|
350
|
+
Parameters.contentType
|
|
351
|
+
],
|
|
352
|
+
mediaType: "json",
|
|
353
|
+
serializer
|
|
354
|
+
};
|
|
355
|
+
const updateOperationSpec = {
|
|
356
|
+
path: "/providers/Microsoft.Management/managementGroups/{groupId}",
|
|
357
|
+
httpMethod: "PATCH",
|
|
358
|
+
responses: {
|
|
359
|
+
200: {
|
|
360
|
+
bodyMapper: Mappers.ManagementGroup
|
|
361
|
+
},
|
|
362
|
+
default: {
|
|
363
|
+
bodyMapper: Mappers.ErrorResponse
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
requestBody: Parameters.patchGroupRequest,
|
|
367
|
+
queryParameters: [Parameters.apiVersion],
|
|
368
|
+
urlParameters: [Parameters.$host, Parameters.groupId],
|
|
369
|
+
headerParameters: [
|
|
370
|
+
Parameters.accept,
|
|
371
|
+
Parameters.cacheControl,
|
|
372
|
+
Parameters.contentType
|
|
373
|
+
],
|
|
374
|
+
mediaType: "json",
|
|
375
|
+
serializer
|
|
376
|
+
};
|
|
377
|
+
const deleteOperationSpec = {
|
|
378
|
+
path: "/providers/Microsoft.Management/managementGroups/{groupId}",
|
|
379
|
+
httpMethod: "DELETE",
|
|
380
|
+
responses: {
|
|
381
|
+
200: {
|
|
382
|
+
bodyMapper: Mappers.AzureAsyncOperationResults,
|
|
383
|
+
headersMapper: Mappers.ManagementGroupsDeleteHeaders
|
|
384
|
+
},
|
|
385
|
+
201: {
|
|
386
|
+
bodyMapper: Mappers.AzureAsyncOperationResults,
|
|
387
|
+
headersMapper: Mappers.ManagementGroupsDeleteHeaders
|
|
388
|
+
},
|
|
389
|
+
202: {
|
|
390
|
+
bodyMapper: Mappers.AzureAsyncOperationResults,
|
|
391
|
+
headersMapper: Mappers.ManagementGroupsDeleteHeaders
|
|
392
|
+
},
|
|
393
|
+
204: {
|
|
394
|
+
bodyMapper: Mappers.AzureAsyncOperationResults,
|
|
395
|
+
headersMapper: Mappers.ManagementGroupsDeleteHeaders
|
|
396
|
+
},
|
|
397
|
+
default: {
|
|
398
|
+
bodyMapper: Mappers.ErrorResponse
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
queryParameters: [Parameters.apiVersion],
|
|
402
|
+
urlParameters: [Parameters.$host, Parameters.groupId],
|
|
403
|
+
headerParameters: [Parameters.accept, Parameters.cacheControl],
|
|
404
|
+
serializer
|
|
405
|
+
};
|
|
406
|
+
const getDescendantsOperationSpec = {
|
|
407
|
+
path: "/providers/Microsoft.Management/managementGroups/{groupId}/descendants",
|
|
408
|
+
httpMethod: "GET",
|
|
409
|
+
responses: {
|
|
410
|
+
200: {
|
|
411
|
+
bodyMapper: Mappers.DescendantListResult
|
|
412
|
+
},
|
|
413
|
+
default: {
|
|
414
|
+
bodyMapper: Mappers.ErrorResponse
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
queryParameters: [
|
|
418
|
+
Parameters.apiVersion,
|
|
419
|
+
Parameters.skiptoken,
|
|
420
|
+
Parameters.top
|
|
421
|
+
],
|
|
422
|
+
urlParameters: [Parameters.$host, Parameters.groupId],
|
|
423
|
+
headerParameters: [Parameters.accept],
|
|
424
|
+
serializer
|
|
425
|
+
};
|
|
426
|
+
const listNextOperationSpec = {
|
|
427
|
+
path: "{nextLink}",
|
|
428
|
+
httpMethod: "GET",
|
|
429
|
+
responses: {
|
|
430
|
+
200: {
|
|
431
|
+
bodyMapper: Mappers.ManagementGroupListResult
|
|
432
|
+
},
|
|
433
|
+
default: {
|
|
434
|
+
bodyMapper: Mappers.ErrorResponse
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
queryParameters: [Parameters.apiVersion, Parameters.skiptoken],
|
|
438
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
439
|
+
headerParameters: [Parameters.accept, Parameters.cacheControl],
|
|
440
|
+
serializer
|
|
441
|
+
};
|
|
442
|
+
const getDescendantsNextOperationSpec = {
|
|
443
|
+
path: "{nextLink}",
|
|
444
|
+
httpMethod: "GET",
|
|
445
|
+
responses: {
|
|
446
|
+
200: {
|
|
447
|
+
bodyMapper: Mappers.DescendantListResult
|
|
448
|
+
},
|
|
449
|
+
default: {
|
|
450
|
+
bodyMapper: Mappers.ErrorResponse
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
queryParameters: [
|
|
454
|
+
Parameters.apiVersion,
|
|
455
|
+
Parameters.skiptoken,
|
|
456
|
+
Parameters.top
|
|
457
|
+
],
|
|
458
|
+
urlParameters: [Parameters.$host, Parameters.groupId, Parameters.nextLink],
|
|
459
|
+
headerParameters: [Parameters.accept],
|
|
460
|
+
serializer
|
|
461
|
+
};
|
|
462
|
+
//# sourceMappingURL=managementGroups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managementGroups.js","sourceRoot":"","sources":["../../../src/operations/managementGroups.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAwBrC,4CAA4C;AAC5C,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,OAA4C;QAE5C,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,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACtC,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAA4C;;YAE5C,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA,CAAC;YACvC,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;YACzB,IAAI,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;YACxC,OAAO,iBAAiB,EAAE;gBACxB,MAAM,GAAG,cAAM,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAA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AAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,GAAG;KACf;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,QAAQ,CAAC;IAC1E,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operations } from "../operationsInterfaces";
|
|
3
|
+
import { ManagementGroupsAPIContext } from "../managementGroupsAPIContext";
|
|
4
|
+
import { Operation, OperationsListOptionalParams } from "../models";
|
|
5
|
+
/** Class containing Operations operations. */
|
|
6
|
+
export declare class OperationsImpl implements Operations {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Operations class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: ManagementGroupsAPIContext);
|
|
13
|
+
/**
|
|
14
|
+
* Lists all of the available Management REST API operations.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Lists all of the available Management REST API operations.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
/**
|
|
26
|
+
* ListNext
|
|
27
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
private _listNext;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EACL,SAAS,EAET,4BAA4B,EAG7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IAEpD;;;OAGG;gBACS,MAAM,EAAE,0BAA0B;IAI9C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAezB,cAAc;YAad,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Operations operations. */
|
|
14
|
+
export class OperationsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Operations class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Lists all of the available Management REST API operations.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(options) {
|
|
27
|
+
const iter = this.listPagingAll(options);
|
|
28
|
+
return {
|
|
29
|
+
next() {
|
|
30
|
+
return iter.next();
|
|
31
|
+
},
|
|
32
|
+
[Symbol.asyncIterator]() {
|
|
33
|
+
return this;
|
|
34
|
+
},
|
|
35
|
+
byPage: () => {
|
|
36
|
+
return this.listPagingPage(options);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
listPagingPage(options) {
|
|
41
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
42
|
+
let result = yield __await(this._list(options));
|
|
43
|
+
yield yield __await(result.value || []);
|
|
44
|
+
let continuationToken = result.nextLink;
|
|
45
|
+
while (continuationToken) {
|
|
46
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
47
|
+
continuationToken = result.nextLink;
|
|
48
|
+
yield yield __await(result.value || []);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
listPagingAll(options) {
|
|
53
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
54
|
+
var e_1, _a;
|
|
55
|
+
try {
|
|
56
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
57
|
+
const page = _c.value;
|
|
58
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
62
|
+
finally {
|
|
63
|
+
try {
|
|
64
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
65
|
+
}
|
|
66
|
+
finally { if (e_1) throw e_1.error; }
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Lists all of the available Management REST API operations.
|
|
72
|
+
* @param options The options parameters.
|
|
73
|
+
*/
|
|
74
|
+
_list(options) {
|
|
75
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* ListNext
|
|
79
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
80
|
+
* @param options The options parameters.
|
|
81
|
+
*/
|
|
82
|
+
_listNext(nextLink, options) {
|
|
83
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
// Operation Specifications
|
|
87
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
88
|
+
const listOperationSpec = {
|
|
89
|
+
path: "/providers/Microsoft.Management/operations",
|
|
90
|
+
httpMethod: "GET",
|
|
91
|
+
responses: {
|
|
92
|
+
200: {
|
|
93
|
+
bodyMapper: Mappers.OperationListResult
|
|
94
|
+
},
|
|
95
|
+
default: {
|
|
96
|
+
bodyMapper: Mappers.ErrorResponse
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
queryParameters: [Parameters.apiVersion],
|
|
100
|
+
urlParameters: [Parameters.$host],
|
|
101
|
+
headerParameters: [Parameters.accept],
|
|
102
|
+
serializer
|
|
103
|
+
};
|
|
104
|
+
const listNextOperationSpec = {
|
|
105
|
+
path: "{nextLink}",
|
|
106
|
+
httpMethod: "GET",
|
|
107
|
+
responses: {
|
|
108
|
+
200: {
|
|
109
|
+
bodyMapper: Mappers.OperationListResult
|
|
110
|
+
},
|
|
111
|
+
default: {
|
|
112
|
+
bodyMapper: Mappers.ErrorResponse
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
queryParameters: [Parameters.apiVersion],
|
|
116
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
117
|
+
headerParameters: [Parameters.accept],
|
|
118
|
+
serializer
|
|
119
|
+
};
|
|
120
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAUnD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,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,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACtC,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAsC;;YAEtC,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA,CAAC;YACvC,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;YACzB,IAAI,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;YACxC,OAAO,iBAAiB,EAAE;gBACxB,MAAM,GAAG,cAAM,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAA,CAAC;gBAC1D,iBAAiB,GAAG,MAAM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,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { EntityInfo, EntitiesListOptionalParams } from "../models";
|
|
3
|
+
/** Interface representing a Entities. */
|
|
4
|
+
export interface Entities {
|
|
5
|
+
/**
|
|
6
|
+
* List all entities (Management Groups, Subscriptions, etc.) for the authenticated user.
|
|
7
|
+
*
|
|
8
|
+
* @param options The options parameters.
|
|
9
|
+
*/
|
|
10
|
+
list(options?: EntitiesListOptionalParams): PagedAsyncIterableIterator<EntityInfo>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=entities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/entities.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAGnE,yCAAyC;AACzC,MAAM,WAAW,QAAQ;IACvB;;;;OAIG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,0BAA0B,GACnC,0BAA0B,CAAC,UAAU,CAAC,CAAC;CAC3C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=entities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/entities.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|