@azure/arm-imagebuilder 1.0.0
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 +5 -0
- package/LICENSE +21 -0
- package/README.md +98 -0
- package/dist/index.js +2270 -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/imageBuilderClient.d.ts +20 -0
- package/dist-esm/src/imageBuilderClient.d.ts.map +1 -0
- package/dist-esm/src/imageBuilderClient.js +53 -0
- package/dist-esm/src/imageBuilderClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -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/models/index.d.ts +562 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +37 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +53 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +1092 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +13 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +118 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +3 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +10 -0
- package/dist-esm/src/operations/index.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/operations/virtualMachineImageTemplates.d.ts +167 -0
- package/dist-esm/src/operations/virtualMachineImageTemplates.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachineImageTemplates.js +791 -0
- package/dist-esm/src/operations/virtualMachineImageTemplates.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +10 -0
- package/dist-esm/src/operationsInterfaces/index.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/src/operationsInterfaces/virtualMachineImageTemplates.d.ts +114 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineImageTemplates.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineImageTemplates.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachineImageTemplates.js.map +1 -0
- package/dist-esm/test/imagebuilder_examples.d.ts +4 -0
- package/dist-esm/test/imagebuilder_examples.d.ts.map +1 -0
- package/dist-esm/test/imagebuilder_examples.js +201 -0
- package/dist-esm/test/imagebuilder_examples.js.map +1 -0
- package/package.json +95 -0
- package/review/arm-imagebuilder.api.md +509 -0
- package/rollup.config.js +188 -0
- package/src/imageBuilderClient.ts +83 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +668 -0
- package/src/models/mappers.ts +1214 -0
- package/src/models/parameters.ts +137 -0
- package/src/operations/index.ts +10 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/virtualMachineImageTemplates.ts +1085 -0
- package/src/operationsInterfaces/index.ts +10 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/virtualMachineImageTemplates.ts +213 -0
- package/tsconfig.json +19 -0
- package/types/arm-imagebuilder.d.ts +779 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,791 @@
|
|
|
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 VirtualMachineImageTemplates operations. */
|
|
16
|
+
export class VirtualMachineImageTemplatesImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class VirtualMachineImageTemplates class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Gets information about the VM image templates associated with the subscription.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
list(options) {
|
|
29
|
+
const iter = this.listPagingAll(options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: () => {
|
|
38
|
+
return this.listPagingPage(options);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
listPagingPage(options) {
|
|
43
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
44
|
+
let result = yield __await(this._list(options));
|
|
45
|
+
yield yield __await(result.value || []);
|
|
46
|
+
let continuationToken = result.nextLink;
|
|
47
|
+
while (continuationToken) {
|
|
48
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
49
|
+
continuationToken = result.nextLink;
|
|
50
|
+
yield yield __await(result.value || []);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
listPagingAll(options) {
|
|
55
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
56
|
+
var e_1, _a;
|
|
57
|
+
try {
|
|
58
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
59
|
+
const page = _c.value;
|
|
60
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
64
|
+
finally {
|
|
65
|
+
try {
|
|
66
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
67
|
+
}
|
|
68
|
+
finally { if (e_1) throw e_1.error; }
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Gets information about the VM image templates associated with the specified resource group.
|
|
74
|
+
* @param resourceGroupName The name of the resource group.
|
|
75
|
+
* @param options The options parameters.
|
|
76
|
+
*/
|
|
77
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
78
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
79
|
+
return {
|
|
80
|
+
next() {
|
|
81
|
+
return iter.next();
|
|
82
|
+
},
|
|
83
|
+
[Symbol.asyncIterator]() {
|
|
84
|
+
return this;
|
|
85
|
+
},
|
|
86
|
+
byPage: () => {
|
|
87
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
92
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
93
|
+
let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
94
|
+
yield yield __await(result.value || []);
|
|
95
|
+
let continuationToken = result.nextLink;
|
|
96
|
+
while (continuationToken) {
|
|
97
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
yield yield __await(result.value || []);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
104
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
105
|
+
var e_2, _a;
|
|
106
|
+
try {
|
|
107
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
108
|
+
const page = _c.value;
|
|
109
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
113
|
+
finally {
|
|
114
|
+
try {
|
|
115
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
116
|
+
}
|
|
117
|
+
finally { if (e_2) throw e_2.error; }
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* List all run outputs for the specified Image Template resource
|
|
123
|
+
* @param resourceGroupName The name of the resource group.
|
|
124
|
+
* @param imageTemplateName The name of the image Template
|
|
125
|
+
* @param options The options parameters.
|
|
126
|
+
*/
|
|
127
|
+
listRunOutputs(resourceGroupName, imageTemplateName, options) {
|
|
128
|
+
const iter = this.listRunOutputsPagingAll(resourceGroupName, imageTemplateName, options);
|
|
129
|
+
return {
|
|
130
|
+
next() {
|
|
131
|
+
return iter.next();
|
|
132
|
+
},
|
|
133
|
+
[Symbol.asyncIterator]() {
|
|
134
|
+
return this;
|
|
135
|
+
},
|
|
136
|
+
byPage: () => {
|
|
137
|
+
return this.listRunOutputsPagingPage(resourceGroupName, imageTemplateName, options);
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
listRunOutputsPagingPage(resourceGroupName, imageTemplateName, options) {
|
|
142
|
+
return __asyncGenerator(this, arguments, function* listRunOutputsPagingPage_1() {
|
|
143
|
+
let result = yield __await(this._listRunOutputs(resourceGroupName, imageTemplateName, options));
|
|
144
|
+
yield yield __await(result.value || []);
|
|
145
|
+
let continuationToken = result.nextLink;
|
|
146
|
+
while (continuationToken) {
|
|
147
|
+
result = yield __await(this._listRunOutputsNext(resourceGroupName, imageTemplateName, continuationToken, options));
|
|
148
|
+
continuationToken = result.nextLink;
|
|
149
|
+
yield yield __await(result.value || []);
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
listRunOutputsPagingAll(resourceGroupName, imageTemplateName, options) {
|
|
154
|
+
return __asyncGenerator(this, arguments, function* listRunOutputsPagingAll_1() {
|
|
155
|
+
var e_3, _a;
|
|
156
|
+
try {
|
|
157
|
+
for (var _b = __asyncValues(this.listRunOutputsPagingPage(resourceGroupName, imageTemplateName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
158
|
+
const page = _c.value;
|
|
159
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
163
|
+
finally {
|
|
164
|
+
try {
|
|
165
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
166
|
+
}
|
|
167
|
+
finally { if (e_3) throw e_3.error; }
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Gets information about the VM image templates associated with the subscription.
|
|
173
|
+
* @param options The options parameters.
|
|
174
|
+
*/
|
|
175
|
+
_list(options) {
|
|
176
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Gets information about the VM image templates associated with the specified resource group.
|
|
180
|
+
* @param resourceGroupName The name of the resource group.
|
|
181
|
+
* @param options The options parameters.
|
|
182
|
+
*/
|
|
183
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
184
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Create or update a virtual machine image template
|
|
188
|
+
* @param resourceGroupName The name of the resource group.
|
|
189
|
+
* @param imageTemplateName The name of the image Template
|
|
190
|
+
* @param parameters Parameters supplied to the CreateImageTemplate operation
|
|
191
|
+
* @param options The options parameters.
|
|
192
|
+
*/
|
|
193
|
+
beginCreateOrUpdate(resourceGroupName, imageTemplateName, parameters, options) {
|
|
194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
195
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
196
|
+
return this.client.sendOperationRequest(args, spec);
|
|
197
|
+
});
|
|
198
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
199
|
+
var _a;
|
|
200
|
+
let currentRawResponse = undefined;
|
|
201
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
202
|
+
const callback = (rawResponse, flatResponse) => {
|
|
203
|
+
currentRawResponse = rawResponse;
|
|
204
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
205
|
+
};
|
|
206
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
207
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
208
|
+
return {
|
|
209
|
+
flatResponse,
|
|
210
|
+
rawResponse: {
|
|
211
|
+
statusCode: currentRawResponse.status,
|
|
212
|
+
body: currentRawResponse.parsedBody,
|
|
213
|
+
headers: currentRawResponse.headers.toJSON()
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
});
|
|
217
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, imageTemplateName, parameters, options }, createOrUpdateOperationSpec);
|
|
218
|
+
return new LroEngine(lro, {
|
|
219
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
220
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
221
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Create or update a virtual machine image template
|
|
227
|
+
* @param resourceGroupName The name of the resource group.
|
|
228
|
+
* @param imageTemplateName The name of the image Template
|
|
229
|
+
* @param parameters Parameters supplied to the CreateImageTemplate operation
|
|
230
|
+
* @param options The options parameters.
|
|
231
|
+
*/
|
|
232
|
+
beginCreateOrUpdateAndWait(resourceGroupName, imageTemplateName, parameters, options) {
|
|
233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, imageTemplateName, parameters, options);
|
|
235
|
+
return poller.pollUntilDone();
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Update the tags for this Virtual Machine Image Template
|
|
240
|
+
* @param resourceGroupName The name of the resource group.
|
|
241
|
+
* @param imageTemplateName The name of the image Template
|
|
242
|
+
* @param parameters Additional parameters for Image Template update.
|
|
243
|
+
* @param options The options parameters.
|
|
244
|
+
*/
|
|
245
|
+
beginUpdate(resourceGroupName, imageTemplateName, parameters, options) {
|
|
246
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
247
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
248
|
+
return this.client.sendOperationRequest(args, spec);
|
|
249
|
+
});
|
|
250
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
251
|
+
var _a;
|
|
252
|
+
let currentRawResponse = undefined;
|
|
253
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
254
|
+
const callback = (rawResponse, flatResponse) => {
|
|
255
|
+
currentRawResponse = rawResponse;
|
|
256
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
257
|
+
};
|
|
258
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
259
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
260
|
+
return {
|
|
261
|
+
flatResponse,
|
|
262
|
+
rawResponse: {
|
|
263
|
+
statusCode: currentRawResponse.status,
|
|
264
|
+
body: currentRawResponse.parsedBody,
|
|
265
|
+
headers: currentRawResponse.headers.toJSON()
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
});
|
|
269
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, imageTemplateName, parameters, options }, updateOperationSpec);
|
|
270
|
+
return new LroEngine(lro, {
|
|
271
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
272
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
273
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
274
|
+
});
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Update the tags for this Virtual Machine Image Template
|
|
279
|
+
* @param resourceGroupName The name of the resource group.
|
|
280
|
+
* @param imageTemplateName The name of the image Template
|
|
281
|
+
* @param parameters Additional parameters for Image Template update.
|
|
282
|
+
* @param options The options parameters.
|
|
283
|
+
*/
|
|
284
|
+
beginUpdateAndWait(resourceGroupName, imageTemplateName, parameters, options) {
|
|
285
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
286
|
+
const poller = yield this.beginUpdate(resourceGroupName, imageTemplateName, parameters, options);
|
|
287
|
+
return poller.pollUntilDone();
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Get information about a virtual machine image template
|
|
292
|
+
* @param resourceGroupName The name of the resource group.
|
|
293
|
+
* @param imageTemplateName The name of the image Template
|
|
294
|
+
* @param options The options parameters.
|
|
295
|
+
*/
|
|
296
|
+
get(resourceGroupName, imageTemplateName, options) {
|
|
297
|
+
return this.client.sendOperationRequest({ resourceGroupName, imageTemplateName, options }, getOperationSpec);
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Delete a virtual machine image template
|
|
301
|
+
* @param resourceGroupName The name of the resource group.
|
|
302
|
+
* @param imageTemplateName The name of the image Template
|
|
303
|
+
* @param options The options parameters.
|
|
304
|
+
*/
|
|
305
|
+
beginDelete(resourceGroupName, imageTemplateName, options) {
|
|
306
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
307
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
308
|
+
return this.client.sendOperationRequest(args, spec);
|
|
309
|
+
});
|
|
310
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
311
|
+
var _a;
|
|
312
|
+
let currentRawResponse = undefined;
|
|
313
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
314
|
+
const callback = (rawResponse, flatResponse) => {
|
|
315
|
+
currentRawResponse = rawResponse;
|
|
316
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
317
|
+
};
|
|
318
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
319
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
320
|
+
return {
|
|
321
|
+
flatResponse,
|
|
322
|
+
rawResponse: {
|
|
323
|
+
statusCode: currentRawResponse.status,
|
|
324
|
+
body: currentRawResponse.parsedBody,
|
|
325
|
+
headers: currentRawResponse.headers.toJSON()
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
});
|
|
329
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, imageTemplateName, options }, deleteOperationSpec);
|
|
330
|
+
return new LroEngine(lro, {
|
|
331
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
332
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
333
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
334
|
+
});
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Delete a virtual machine image template
|
|
339
|
+
* @param resourceGroupName The name of the resource group.
|
|
340
|
+
* @param imageTemplateName The name of the image Template
|
|
341
|
+
* @param options The options parameters.
|
|
342
|
+
*/
|
|
343
|
+
beginDeleteAndWait(resourceGroupName, imageTemplateName, options) {
|
|
344
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
345
|
+
const poller = yield this.beginDelete(resourceGroupName, imageTemplateName, options);
|
|
346
|
+
return poller.pollUntilDone();
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Create artifacts from a existing image template
|
|
351
|
+
* @param resourceGroupName The name of the resource group.
|
|
352
|
+
* @param imageTemplateName The name of the image Template
|
|
353
|
+
* @param options The options parameters.
|
|
354
|
+
*/
|
|
355
|
+
beginRun(resourceGroupName, imageTemplateName, options) {
|
|
356
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
357
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
358
|
+
return this.client.sendOperationRequest(args, spec);
|
|
359
|
+
});
|
|
360
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
361
|
+
var _a;
|
|
362
|
+
let currentRawResponse = undefined;
|
|
363
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
364
|
+
const callback = (rawResponse, flatResponse) => {
|
|
365
|
+
currentRawResponse = rawResponse;
|
|
366
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
367
|
+
};
|
|
368
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
369
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
370
|
+
return {
|
|
371
|
+
flatResponse,
|
|
372
|
+
rawResponse: {
|
|
373
|
+
statusCode: currentRawResponse.status,
|
|
374
|
+
body: currentRawResponse.parsedBody,
|
|
375
|
+
headers: currentRawResponse.headers.toJSON()
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
});
|
|
379
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, imageTemplateName, options }, runOperationSpec);
|
|
380
|
+
return new LroEngine(lro, {
|
|
381
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
382
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
383
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
384
|
+
});
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Create artifacts from a existing image template
|
|
389
|
+
* @param resourceGroupName The name of the resource group.
|
|
390
|
+
* @param imageTemplateName The name of the image Template
|
|
391
|
+
* @param options The options parameters.
|
|
392
|
+
*/
|
|
393
|
+
beginRunAndWait(resourceGroupName, imageTemplateName, options) {
|
|
394
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
395
|
+
const poller = yield this.beginRun(resourceGroupName, imageTemplateName, options);
|
|
396
|
+
return poller.pollUntilDone();
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Cancel the long running image build based on the image template
|
|
401
|
+
* @param resourceGroupName The name of the resource group.
|
|
402
|
+
* @param imageTemplateName The name of the image Template
|
|
403
|
+
* @param options The options parameters.
|
|
404
|
+
*/
|
|
405
|
+
beginCancel(resourceGroupName, imageTemplateName, options) {
|
|
406
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
407
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
408
|
+
return this.client.sendOperationRequest(args, spec);
|
|
409
|
+
});
|
|
410
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
411
|
+
var _a;
|
|
412
|
+
let currentRawResponse = undefined;
|
|
413
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
414
|
+
const callback = (rawResponse, flatResponse) => {
|
|
415
|
+
currentRawResponse = rawResponse;
|
|
416
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
417
|
+
};
|
|
418
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
419
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
420
|
+
return {
|
|
421
|
+
flatResponse,
|
|
422
|
+
rawResponse: {
|
|
423
|
+
statusCode: currentRawResponse.status,
|
|
424
|
+
body: currentRawResponse.parsedBody,
|
|
425
|
+
headers: currentRawResponse.headers.toJSON()
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
});
|
|
429
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, imageTemplateName, options }, cancelOperationSpec);
|
|
430
|
+
return new LroEngine(lro, {
|
|
431
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
432
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
433
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
434
|
+
});
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Cancel the long running image build based on the image template
|
|
439
|
+
* @param resourceGroupName The name of the resource group.
|
|
440
|
+
* @param imageTemplateName The name of the image Template
|
|
441
|
+
* @param options The options parameters.
|
|
442
|
+
*/
|
|
443
|
+
beginCancelAndWait(resourceGroupName, imageTemplateName, options) {
|
|
444
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
445
|
+
const poller = yield this.beginCancel(resourceGroupName, imageTemplateName, options);
|
|
446
|
+
return poller.pollUntilDone();
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* List all run outputs for the specified Image Template resource
|
|
451
|
+
* @param resourceGroupName The name of the resource group.
|
|
452
|
+
* @param imageTemplateName The name of the image Template
|
|
453
|
+
* @param options The options parameters.
|
|
454
|
+
*/
|
|
455
|
+
_listRunOutputs(resourceGroupName, imageTemplateName, options) {
|
|
456
|
+
return this.client.sendOperationRequest({ resourceGroupName, imageTemplateName, options }, listRunOutputsOperationSpec);
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* Get the specified run output for the specified image template resource
|
|
460
|
+
* @param resourceGroupName The name of the resource group.
|
|
461
|
+
* @param imageTemplateName The name of the image Template
|
|
462
|
+
* @param runOutputName The name of the run output
|
|
463
|
+
* @param options The options parameters.
|
|
464
|
+
*/
|
|
465
|
+
getRunOutput(resourceGroupName, imageTemplateName, runOutputName, options) {
|
|
466
|
+
return this.client.sendOperationRequest({ resourceGroupName, imageTemplateName, runOutputName, options }, getRunOutputOperationSpec);
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* ListNext
|
|
470
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
471
|
+
* @param options The options parameters.
|
|
472
|
+
*/
|
|
473
|
+
_listNext(nextLink, options) {
|
|
474
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* ListByResourceGroupNext
|
|
478
|
+
* @param resourceGroupName The name of the resource group.
|
|
479
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
480
|
+
* @param options The options parameters.
|
|
481
|
+
*/
|
|
482
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
483
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* ListRunOutputsNext
|
|
487
|
+
* @param resourceGroupName The name of the resource group.
|
|
488
|
+
* @param imageTemplateName The name of the image Template
|
|
489
|
+
* @param nextLink The nextLink from the previous successful call to the ListRunOutputs method.
|
|
490
|
+
* @param options The options parameters.
|
|
491
|
+
*/
|
|
492
|
+
_listRunOutputsNext(resourceGroupName, imageTemplateName, nextLink, options) {
|
|
493
|
+
return this.client.sendOperationRequest({ resourceGroupName, imageTemplateName, nextLink, options }, listRunOutputsNextOperationSpec);
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
// Operation Specifications
|
|
497
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
498
|
+
const listOperationSpec = {
|
|
499
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.VirtualMachineImages/imageTemplates",
|
|
500
|
+
httpMethod: "GET",
|
|
501
|
+
responses: {
|
|
502
|
+
200: {
|
|
503
|
+
bodyMapper: Mappers.ImageTemplateListResult
|
|
504
|
+
},
|
|
505
|
+
default: {
|
|
506
|
+
bodyMapper: Mappers.CloudError
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
queryParameters: [Parameters.apiVersion],
|
|
510
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
511
|
+
headerParameters: [Parameters.accept],
|
|
512
|
+
serializer
|
|
513
|
+
};
|
|
514
|
+
const listByResourceGroupOperationSpec = {
|
|
515
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates",
|
|
516
|
+
httpMethod: "GET",
|
|
517
|
+
responses: {
|
|
518
|
+
200: {
|
|
519
|
+
bodyMapper: Mappers.ImageTemplateListResult
|
|
520
|
+
},
|
|
521
|
+
default: {
|
|
522
|
+
bodyMapper: Mappers.CloudError
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
queryParameters: [Parameters.apiVersion],
|
|
526
|
+
urlParameters: [
|
|
527
|
+
Parameters.$host,
|
|
528
|
+
Parameters.subscriptionId,
|
|
529
|
+
Parameters.resourceGroupName
|
|
530
|
+
],
|
|
531
|
+
headerParameters: [Parameters.accept],
|
|
532
|
+
serializer
|
|
533
|
+
};
|
|
534
|
+
const createOrUpdateOperationSpec = {
|
|
535
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}",
|
|
536
|
+
httpMethod: "PUT",
|
|
537
|
+
responses: {
|
|
538
|
+
200: {
|
|
539
|
+
bodyMapper: Mappers.ImageTemplate
|
|
540
|
+
},
|
|
541
|
+
201: {
|
|
542
|
+
bodyMapper: Mappers.ImageTemplate
|
|
543
|
+
},
|
|
544
|
+
202: {
|
|
545
|
+
bodyMapper: Mappers.ImageTemplate
|
|
546
|
+
},
|
|
547
|
+
204: {
|
|
548
|
+
bodyMapper: Mappers.ImageTemplate
|
|
549
|
+
},
|
|
550
|
+
default: {
|
|
551
|
+
bodyMapper: Mappers.CloudError
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
requestBody: Parameters.parameters,
|
|
555
|
+
queryParameters: [Parameters.apiVersion],
|
|
556
|
+
urlParameters: [
|
|
557
|
+
Parameters.$host,
|
|
558
|
+
Parameters.subscriptionId,
|
|
559
|
+
Parameters.resourceGroupName,
|
|
560
|
+
Parameters.imageTemplateName
|
|
561
|
+
],
|
|
562
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
563
|
+
mediaType: "json",
|
|
564
|
+
serializer
|
|
565
|
+
};
|
|
566
|
+
const updateOperationSpec = {
|
|
567
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}",
|
|
568
|
+
httpMethod: "PATCH",
|
|
569
|
+
responses: {
|
|
570
|
+
200: {
|
|
571
|
+
bodyMapper: Mappers.ImageTemplate
|
|
572
|
+
},
|
|
573
|
+
201: {
|
|
574
|
+
bodyMapper: Mappers.ImageTemplate
|
|
575
|
+
},
|
|
576
|
+
202: {
|
|
577
|
+
bodyMapper: Mappers.ImageTemplate
|
|
578
|
+
},
|
|
579
|
+
204: {
|
|
580
|
+
bodyMapper: Mappers.ImageTemplate
|
|
581
|
+
},
|
|
582
|
+
default: {
|
|
583
|
+
bodyMapper: Mappers.CloudError
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
requestBody: Parameters.parameters1,
|
|
587
|
+
queryParameters: [Parameters.apiVersion],
|
|
588
|
+
urlParameters: [
|
|
589
|
+
Parameters.$host,
|
|
590
|
+
Parameters.subscriptionId,
|
|
591
|
+
Parameters.resourceGroupName,
|
|
592
|
+
Parameters.imageTemplateName
|
|
593
|
+
],
|
|
594
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
595
|
+
mediaType: "json",
|
|
596
|
+
serializer
|
|
597
|
+
};
|
|
598
|
+
const getOperationSpec = {
|
|
599
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}",
|
|
600
|
+
httpMethod: "GET",
|
|
601
|
+
responses: {
|
|
602
|
+
200: {
|
|
603
|
+
bodyMapper: Mappers.ImageTemplate
|
|
604
|
+
},
|
|
605
|
+
default: {
|
|
606
|
+
bodyMapper: Mappers.CloudError
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
queryParameters: [Parameters.apiVersion],
|
|
610
|
+
urlParameters: [
|
|
611
|
+
Parameters.$host,
|
|
612
|
+
Parameters.subscriptionId,
|
|
613
|
+
Parameters.resourceGroupName,
|
|
614
|
+
Parameters.imageTemplateName
|
|
615
|
+
],
|
|
616
|
+
headerParameters: [Parameters.accept],
|
|
617
|
+
serializer
|
|
618
|
+
};
|
|
619
|
+
const deleteOperationSpec = {
|
|
620
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}",
|
|
621
|
+
httpMethod: "DELETE",
|
|
622
|
+
responses: {
|
|
623
|
+
200: {},
|
|
624
|
+
201: {},
|
|
625
|
+
202: {},
|
|
626
|
+
204: {},
|
|
627
|
+
default: {
|
|
628
|
+
bodyMapper: Mappers.CloudError
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
queryParameters: [Parameters.apiVersion],
|
|
632
|
+
urlParameters: [
|
|
633
|
+
Parameters.$host,
|
|
634
|
+
Parameters.subscriptionId,
|
|
635
|
+
Parameters.resourceGroupName,
|
|
636
|
+
Parameters.imageTemplateName
|
|
637
|
+
],
|
|
638
|
+
headerParameters: [Parameters.accept],
|
|
639
|
+
serializer
|
|
640
|
+
};
|
|
641
|
+
const runOperationSpec = {
|
|
642
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/run",
|
|
643
|
+
httpMethod: "POST",
|
|
644
|
+
responses: {
|
|
645
|
+
200: {},
|
|
646
|
+
201: {},
|
|
647
|
+
202: {},
|
|
648
|
+
204: {},
|
|
649
|
+
default: {
|
|
650
|
+
bodyMapper: Mappers.CloudError
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
queryParameters: [Parameters.apiVersion],
|
|
654
|
+
urlParameters: [
|
|
655
|
+
Parameters.$host,
|
|
656
|
+
Parameters.subscriptionId,
|
|
657
|
+
Parameters.resourceGroupName,
|
|
658
|
+
Parameters.imageTemplateName
|
|
659
|
+
],
|
|
660
|
+
headerParameters: [Parameters.accept],
|
|
661
|
+
serializer
|
|
662
|
+
};
|
|
663
|
+
const cancelOperationSpec = {
|
|
664
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/cancel",
|
|
665
|
+
httpMethod: "POST",
|
|
666
|
+
responses: {
|
|
667
|
+
200: {},
|
|
668
|
+
201: {},
|
|
669
|
+
202: {},
|
|
670
|
+
204: {},
|
|
671
|
+
default: {
|
|
672
|
+
bodyMapper: Mappers.CloudError
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
queryParameters: [Parameters.apiVersion],
|
|
676
|
+
urlParameters: [
|
|
677
|
+
Parameters.$host,
|
|
678
|
+
Parameters.subscriptionId,
|
|
679
|
+
Parameters.resourceGroupName,
|
|
680
|
+
Parameters.imageTemplateName
|
|
681
|
+
],
|
|
682
|
+
headerParameters: [Parameters.accept],
|
|
683
|
+
serializer
|
|
684
|
+
};
|
|
685
|
+
const listRunOutputsOperationSpec = {
|
|
686
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/runOutputs",
|
|
687
|
+
httpMethod: "GET",
|
|
688
|
+
responses: {
|
|
689
|
+
200: {
|
|
690
|
+
bodyMapper: Mappers.RunOutputCollection
|
|
691
|
+
},
|
|
692
|
+
default: {
|
|
693
|
+
bodyMapper: Mappers.CloudError
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
queryParameters: [Parameters.apiVersion],
|
|
697
|
+
urlParameters: [
|
|
698
|
+
Parameters.$host,
|
|
699
|
+
Parameters.subscriptionId,
|
|
700
|
+
Parameters.resourceGroupName,
|
|
701
|
+
Parameters.imageTemplateName
|
|
702
|
+
],
|
|
703
|
+
headerParameters: [Parameters.accept],
|
|
704
|
+
serializer
|
|
705
|
+
};
|
|
706
|
+
const getRunOutputOperationSpec = {
|
|
707
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/runOutputs/{runOutputName}",
|
|
708
|
+
httpMethod: "GET",
|
|
709
|
+
responses: {
|
|
710
|
+
200: {
|
|
711
|
+
bodyMapper: Mappers.RunOutput
|
|
712
|
+
},
|
|
713
|
+
default: {
|
|
714
|
+
bodyMapper: Mappers.CloudError
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
queryParameters: [Parameters.apiVersion],
|
|
718
|
+
urlParameters: [
|
|
719
|
+
Parameters.$host,
|
|
720
|
+
Parameters.subscriptionId,
|
|
721
|
+
Parameters.resourceGroupName,
|
|
722
|
+
Parameters.imageTemplateName,
|
|
723
|
+
Parameters.runOutputName
|
|
724
|
+
],
|
|
725
|
+
headerParameters: [Parameters.accept],
|
|
726
|
+
serializer
|
|
727
|
+
};
|
|
728
|
+
const listNextOperationSpec = {
|
|
729
|
+
path: "{nextLink}",
|
|
730
|
+
httpMethod: "GET",
|
|
731
|
+
responses: {
|
|
732
|
+
200: {
|
|
733
|
+
bodyMapper: Mappers.ImageTemplateListResult
|
|
734
|
+
},
|
|
735
|
+
default: {
|
|
736
|
+
bodyMapper: Mappers.CloudError
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
queryParameters: [Parameters.apiVersion],
|
|
740
|
+
urlParameters: [
|
|
741
|
+
Parameters.$host,
|
|
742
|
+
Parameters.subscriptionId,
|
|
743
|
+
Parameters.nextLink
|
|
744
|
+
],
|
|
745
|
+
headerParameters: [Parameters.accept],
|
|
746
|
+
serializer
|
|
747
|
+
};
|
|
748
|
+
const listByResourceGroupNextOperationSpec = {
|
|
749
|
+
path: "{nextLink}",
|
|
750
|
+
httpMethod: "GET",
|
|
751
|
+
responses: {
|
|
752
|
+
200: {
|
|
753
|
+
bodyMapper: Mappers.ImageTemplateListResult
|
|
754
|
+
},
|
|
755
|
+
default: {
|
|
756
|
+
bodyMapper: Mappers.CloudError
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
queryParameters: [Parameters.apiVersion],
|
|
760
|
+
urlParameters: [
|
|
761
|
+
Parameters.$host,
|
|
762
|
+
Parameters.subscriptionId,
|
|
763
|
+
Parameters.resourceGroupName,
|
|
764
|
+
Parameters.nextLink
|
|
765
|
+
],
|
|
766
|
+
headerParameters: [Parameters.accept],
|
|
767
|
+
serializer
|
|
768
|
+
};
|
|
769
|
+
const listRunOutputsNextOperationSpec = {
|
|
770
|
+
path: "{nextLink}",
|
|
771
|
+
httpMethod: "GET",
|
|
772
|
+
responses: {
|
|
773
|
+
200: {
|
|
774
|
+
bodyMapper: Mappers.RunOutputCollection
|
|
775
|
+
},
|
|
776
|
+
default: {
|
|
777
|
+
bodyMapper: Mappers.CloudError
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
queryParameters: [Parameters.apiVersion],
|
|
781
|
+
urlParameters: [
|
|
782
|
+
Parameters.$host,
|
|
783
|
+
Parameters.subscriptionId,
|
|
784
|
+
Parameters.resourceGroupName,
|
|
785
|
+
Parameters.imageTemplateName,
|
|
786
|
+
Parameters.nextLink
|
|
787
|
+
],
|
|
788
|
+
headerParameters: [Parameters.accept],
|
|
789
|
+
serializer
|
|
790
|
+
};
|
|
791
|
+
//# sourceMappingURL=virtualMachineImageTemplates.js.map
|