@azure/arm-templatespecs 1.0.0 → 2.0.1-alpha.20220106.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 +15 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +70 -84
- package/dist/index.js +1285 -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 +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/models/index.d.ts +306 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +22 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +15 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +196 -227
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +16 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +144 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/templateSpecVersions.d.ts +72 -0
- package/dist-esm/src/operations/templateSpecVersions.d.ts.map +1 -0
- package/dist-esm/src/operations/templateSpecVersions.js +279 -0
- package/dist-esm/src/operations/templateSpecVersions.js.map +1 -0
- package/dist-esm/src/operations/templateSpecs.d.ts +82 -0
- package/dist-esm/src/operations/templateSpecs.d.ts.map +1 -0
- package/dist-esm/src/operations/templateSpecs.js +358 -0
- package/dist-esm/src/operations/templateSpecs.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/templateSpecVersions.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/templateSpecVersions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/templateSpecVersions.js +9 -0
- package/dist-esm/src/operationsInterfaces/templateSpecVersions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/templateSpecs.d.ts +46 -0
- package/dist-esm/src/operationsInterfaces/templateSpecs.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/templateSpecs.js} +2 -1
- package/dist-esm/src/operationsInterfaces/templateSpecs.js.map +1 -0
- package/dist-esm/src/templateSpecsClient.d.ts +19 -0
- package/dist-esm/src/templateSpecsClient.d.ts.map +1 -0
- package/dist-esm/src/templateSpecsClient.js +52 -0
- package/dist-esm/src/templateSpecsClient.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 +63 -22
- package/review/arm-templatespecs.api.md +280 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/models/index.ts +233 -494
- package/src/models/mappers.ts +208 -239
- package/src/models/parameters.ts +104 -45
- package/src/operations/index.ts +1 -2
- package/src/operations/templateSpecVersions.ts +222 -254
- package/src/operations/templateSpecs.ts +276 -315
- package/src/operationsInterfaces/index.ts +10 -0
- package/src/operationsInterfaces/templateSpecVersions.ts +91 -0
- package/src/operationsInterfaces/templateSpecs.ts +88 -0
- package/src/templateSpecsClient.ts +62 -34
- package/tsconfig.json +3 -3
- package/types/arm-templatespecs.d.ts +457 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-templatespecs.js +0 -1294
- package/dist/arm-templatespecs.js.map +0 -1
- package/dist/arm-templatespecs.min.js +0 -1
- package/dist/arm-templatespecs.min.js.map +0 -1
- package/esm/models/index.d.ts +0 -571
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -17
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -10
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -107
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/templateSpecVersionsMappers.d.ts +0 -2
- package/esm/models/templateSpecVersionsMappers.d.ts.map +0 -1
- package/esm/models/templateSpecVersionsMappers.js +0 -9
- package/esm/models/templateSpecVersionsMappers.js.map +0 -1
- package/esm/models/templateSpecsMappers.d.ts +0 -2
- package/esm/models/templateSpecsMappers.d.ts.map +0 -1
- package/esm/models/templateSpecsMappers.js +0 -9
- package/esm/models/templateSpecsMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/templateSpecVersions.d.ts +0 -152
- package/esm/operations/templateSpecVersions.d.ts.map +0 -1
- package/esm/operations/templateSpecVersions.js +0 -233
- package/esm/operations/templateSpecVersions.js.map +0 -1
- package/esm/operations/templateSpecs.d.ts +0 -170
- package/esm/operations/templateSpecs.d.ts.map +0 -1
- package/esm/operations/templateSpecs.js +0 -284
- package/esm/operations/templateSpecs.js.map +0 -1
- package/esm/templateSpecsClient.d.ts +0 -25
- package/esm/templateSpecsClient.d.ts.map +0 -1
- package/esm/templateSpecsClient.js +0 -38
- package/esm/templateSpecsClient.js.map +0 -1
- package/esm/templateSpecsClientContext.d.ts +0 -22
- package/esm/templateSpecsClientContext.d.ts.map +0 -1
- package/esm/templateSpecsClientContext.js +0 -60
- package/esm/templateSpecsClientContext.js.map +0 -1
- package/src/models/templateSpecVersionsMappers.ts +0 -23
- package/src/models/templateSpecsMappers.ts +0 -23
- package/src/templateSpecsClientContext.ts +0 -67
@@ -0,0 +1,358 @@
|
|
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 TemplateSpecs operations. */
|
14
|
+
export class TemplateSpecsImpl {
|
15
|
+
/**
|
16
|
+
* Initialize a new instance of the class TemplateSpecs class.
|
17
|
+
* @param client Reference to the service client
|
18
|
+
*/
|
19
|
+
constructor(client) {
|
20
|
+
this.client = client;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* Lists all the Template Specs within the specified subscriptions.
|
24
|
+
* @param options The options parameters.
|
25
|
+
*/
|
26
|
+
listBySubscription(options) {
|
27
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
28
|
+
return {
|
29
|
+
next() {
|
30
|
+
return iter.next();
|
31
|
+
},
|
32
|
+
[Symbol.asyncIterator]() {
|
33
|
+
return this;
|
34
|
+
},
|
35
|
+
byPage: () => {
|
36
|
+
return this.listBySubscriptionPagingPage(options);
|
37
|
+
}
|
38
|
+
};
|
39
|
+
}
|
40
|
+
listBySubscriptionPagingPage(options) {
|
41
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
42
|
+
let result = yield __await(this._listBySubscription(options));
|
43
|
+
yield yield __await(result.value || []);
|
44
|
+
let continuationToken = result.nextLink;
|
45
|
+
while (continuationToken) {
|
46
|
+
result = yield __await(this._listBySubscriptionNext(continuationToken, options));
|
47
|
+
continuationToken = result.nextLink;
|
48
|
+
yield yield __await(result.value || []);
|
49
|
+
}
|
50
|
+
});
|
51
|
+
}
|
52
|
+
listBySubscriptionPagingAll(options) {
|
53
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
54
|
+
var e_1, _a;
|
55
|
+
try {
|
56
|
+
for (var _b = __asyncValues(this.listBySubscriptionPagingPage(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 the Template Specs within the specified resource group.
|
72
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
73
|
+
* @param options The options parameters.
|
74
|
+
*/
|
75
|
+
listByResourceGroup(resourceGroupName, options) {
|
76
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
77
|
+
return {
|
78
|
+
next() {
|
79
|
+
return iter.next();
|
80
|
+
},
|
81
|
+
[Symbol.asyncIterator]() {
|
82
|
+
return this;
|
83
|
+
},
|
84
|
+
byPage: () => {
|
85
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
86
|
+
}
|
87
|
+
};
|
88
|
+
}
|
89
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
90
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
91
|
+
let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
92
|
+
yield yield __await(result.value || []);
|
93
|
+
let continuationToken = result.nextLink;
|
94
|
+
while (continuationToken) {
|
95
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
96
|
+
continuationToken = result.nextLink;
|
97
|
+
yield yield __await(result.value || []);
|
98
|
+
}
|
99
|
+
});
|
100
|
+
}
|
101
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
102
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
103
|
+
var e_2, _a;
|
104
|
+
try {
|
105
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
106
|
+
const page = _c.value;
|
107
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
108
|
+
}
|
109
|
+
}
|
110
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
111
|
+
finally {
|
112
|
+
try {
|
113
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
114
|
+
}
|
115
|
+
finally { if (e_2) throw e_2.error; }
|
116
|
+
}
|
117
|
+
});
|
118
|
+
}
|
119
|
+
/**
|
120
|
+
* Creates or updates a Template Spec.
|
121
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
122
|
+
* @param templateSpecName Name of the Template Spec.
|
123
|
+
* @param templateSpec Template Spec supplied to the operation.
|
124
|
+
* @param options The options parameters.
|
125
|
+
*/
|
126
|
+
createOrUpdate(resourceGroupName, templateSpecName, templateSpec, options) {
|
127
|
+
return this.client.sendOperationRequest({ resourceGroupName, templateSpecName, templateSpec, options }, createOrUpdateOperationSpec);
|
128
|
+
}
|
129
|
+
/**
|
130
|
+
* Updates Template Spec tags with specified values.
|
131
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
132
|
+
* @param templateSpecName Name of the Template Spec.
|
133
|
+
* @param options The options parameters.
|
134
|
+
*/
|
135
|
+
update(resourceGroupName, templateSpecName, options) {
|
136
|
+
return this.client.sendOperationRequest({ resourceGroupName, templateSpecName, options }, updateOperationSpec);
|
137
|
+
}
|
138
|
+
/**
|
139
|
+
* Gets a Template Spec with a given name.
|
140
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
141
|
+
* @param templateSpecName Name of the Template Spec.
|
142
|
+
* @param options The options parameters.
|
143
|
+
*/
|
144
|
+
get(resourceGroupName, templateSpecName, options) {
|
145
|
+
return this.client.sendOperationRequest({ resourceGroupName, templateSpecName, options }, getOperationSpec);
|
146
|
+
}
|
147
|
+
/**
|
148
|
+
* Deletes a Template Spec by name. When operation completes, status code 200 returned without content.
|
149
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
150
|
+
* @param templateSpecName Name of the Template Spec.
|
151
|
+
* @param options The options parameters.
|
152
|
+
*/
|
153
|
+
delete(resourceGroupName, templateSpecName, options) {
|
154
|
+
return this.client.sendOperationRequest({ resourceGroupName, templateSpecName, options }, deleteOperationSpec);
|
155
|
+
}
|
156
|
+
/**
|
157
|
+
* Lists all the Template Specs within the specified subscriptions.
|
158
|
+
* @param options The options parameters.
|
159
|
+
*/
|
160
|
+
_listBySubscription(options) {
|
161
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
162
|
+
}
|
163
|
+
/**
|
164
|
+
* Lists all the Template Specs within the specified resource group.
|
165
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
166
|
+
* @param options The options parameters.
|
167
|
+
*/
|
168
|
+
_listByResourceGroup(resourceGroupName, options) {
|
169
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
170
|
+
}
|
171
|
+
/**
|
172
|
+
* ListBySubscriptionNext
|
173
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
174
|
+
* @param options The options parameters.
|
175
|
+
*/
|
176
|
+
_listBySubscriptionNext(nextLink, options) {
|
177
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
178
|
+
}
|
179
|
+
/**
|
180
|
+
* ListByResourceGroupNext
|
181
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
182
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
183
|
+
* @param options The options parameters.
|
184
|
+
*/
|
185
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
186
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
187
|
+
}
|
188
|
+
}
|
189
|
+
// Operation Specifications
|
190
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
191
|
+
const createOrUpdateOperationSpec = {
|
192
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}",
|
193
|
+
httpMethod: "PUT",
|
194
|
+
responses: {
|
195
|
+
200: {
|
196
|
+
bodyMapper: Mappers.TemplateSpec
|
197
|
+
},
|
198
|
+
201: {
|
199
|
+
bodyMapper: Mappers.TemplateSpec
|
200
|
+
},
|
201
|
+
default: {
|
202
|
+
bodyMapper: Mappers.TemplateSpecsError
|
203
|
+
}
|
204
|
+
},
|
205
|
+
requestBody: Parameters.templateSpec,
|
206
|
+
queryParameters: [Parameters.apiVersion],
|
207
|
+
urlParameters: [
|
208
|
+
Parameters.$host,
|
209
|
+
Parameters.subscriptionId,
|
210
|
+
Parameters.resourceGroupName,
|
211
|
+
Parameters.templateSpecName
|
212
|
+
],
|
213
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
214
|
+
mediaType: "json",
|
215
|
+
serializer
|
216
|
+
};
|
217
|
+
const updateOperationSpec = {
|
218
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}",
|
219
|
+
httpMethod: "PATCH",
|
220
|
+
responses: {
|
221
|
+
200: {
|
222
|
+
bodyMapper: Mappers.TemplateSpec
|
223
|
+
},
|
224
|
+
default: {
|
225
|
+
bodyMapper: Mappers.TemplateSpecsError
|
226
|
+
}
|
227
|
+
},
|
228
|
+
requestBody: Parameters.templateSpec1,
|
229
|
+
queryParameters: [Parameters.apiVersion],
|
230
|
+
urlParameters: [
|
231
|
+
Parameters.$host,
|
232
|
+
Parameters.subscriptionId,
|
233
|
+
Parameters.resourceGroupName,
|
234
|
+
Parameters.templateSpecName
|
235
|
+
],
|
236
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
237
|
+
mediaType: "json",
|
238
|
+
serializer
|
239
|
+
};
|
240
|
+
const getOperationSpec = {
|
241
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}",
|
242
|
+
httpMethod: "GET",
|
243
|
+
responses: {
|
244
|
+
200: {
|
245
|
+
bodyMapper: Mappers.TemplateSpec
|
246
|
+
},
|
247
|
+
default: {
|
248
|
+
bodyMapper: Mappers.TemplateSpecsError
|
249
|
+
}
|
250
|
+
},
|
251
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
252
|
+
urlParameters: [
|
253
|
+
Parameters.$host,
|
254
|
+
Parameters.subscriptionId,
|
255
|
+
Parameters.resourceGroupName,
|
256
|
+
Parameters.templateSpecName
|
257
|
+
],
|
258
|
+
headerParameters: [Parameters.accept],
|
259
|
+
serializer
|
260
|
+
};
|
261
|
+
const deleteOperationSpec = {
|
262
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}",
|
263
|
+
httpMethod: "DELETE",
|
264
|
+
responses: {
|
265
|
+
200: {},
|
266
|
+
204: {},
|
267
|
+
default: {
|
268
|
+
bodyMapper: Mappers.TemplateSpecsError
|
269
|
+
}
|
270
|
+
},
|
271
|
+
queryParameters: [Parameters.apiVersion],
|
272
|
+
urlParameters: [
|
273
|
+
Parameters.$host,
|
274
|
+
Parameters.subscriptionId,
|
275
|
+
Parameters.resourceGroupName,
|
276
|
+
Parameters.templateSpecName
|
277
|
+
],
|
278
|
+
headerParameters: [Parameters.accept],
|
279
|
+
serializer
|
280
|
+
};
|
281
|
+
const listBySubscriptionOperationSpec = {
|
282
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/templateSpecs/",
|
283
|
+
httpMethod: "GET",
|
284
|
+
responses: {
|
285
|
+
200: {
|
286
|
+
bodyMapper: Mappers.TemplateSpecsListResult
|
287
|
+
},
|
288
|
+
default: {
|
289
|
+
bodyMapper: Mappers.TemplateSpecsError
|
290
|
+
}
|
291
|
+
},
|
292
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
293
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
294
|
+
headerParameters: [Parameters.accept],
|
295
|
+
serializer
|
296
|
+
};
|
297
|
+
const listByResourceGroupOperationSpec = {
|
298
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/",
|
299
|
+
httpMethod: "GET",
|
300
|
+
responses: {
|
301
|
+
200: {
|
302
|
+
bodyMapper: Mappers.TemplateSpecsListResult
|
303
|
+
},
|
304
|
+
default: {
|
305
|
+
bodyMapper: Mappers.TemplateSpecsError
|
306
|
+
}
|
307
|
+
},
|
308
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
309
|
+
urlParameters: [
|
310
|
+
Parameters.$host,
|
311
|
+
Parameters.subscriptionId,
|
312
|
+
Parameters.resourceGroupName
|
313
|
+
],
|
314
|
+
headerParameters: [Parameters.accept],
|
315
|
+
serializer
|
316
|
+
};
|
317
|
+
const listBySubscriptionNextOperationSpec = {
|
318
|
+
path: "{nextLink}",
|
319
|
+
httpMethod: "GET",
|
320
|
+
responses: {
|
321
|
+
200: {
|
322
|
+
bodyMapper: Mappers.TemplateSpecsListResult
|
323
|
+
},
|
324
|
+
default: {
|
325
|
+
bodyMapper: Mappers.TemplateSpecsError
|
326
|
+
}
|
327
|
+
},
|
328
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
329
|
+
urlParameters: [
|
330
|
+
Parameters.$host,
|
331
|
+
Parameters.subscriptionId,
|
332
|
+
Parameters.nextLink
|
333
|
+
],
|
334
|
+
headerParameters: [Parameters.accept],
|
335
|
+
serializer
|
336
|
+
};
|
337
|
+
const listByResourceGroupNextOperationSpec = {
|
338
|
+
path: "{nextLink}",
|
339
|
+
httpMethod: "GET",
|
340
|
+
responses: {
|
341
|
+
200: {
|
342
|
+
bodyMapper: Mappers.TemplateSpecsListResult
|
343
|
+
},
|
344
|
+
default: {
|
345
|
+
bodyMapper: Mappers.TemplateSpecsError
|
346
|
+
}
|
347
|
+
},
|
348
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
349
|
+
urlParameters: [
|
350
|
+
Parameters.$host,
|
351
|
+
Parameters.subscriptionId,
|
352
|
+
Parameters.resourceGroupName,
|
353
|
+
Parameters.nextLink
|
354
|
+
],
|
355
|
+
headerParameters: [Parameters.accept],
|
356
|
+
serializer
|
357
|
+
};
|
358
|
+
//# sourceMappingURL=templateSpecs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"templateSpecs.js","sourceRoot":"","sources":["../../../src/operations/templateSpecs.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;AAqBnD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAAuD;QAEvD,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC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;SACvC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;IAC3D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
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 * from "./templateSpecs";
|
9
|
+
export * from "./templateSpecVersions";
|
10
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC"}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
2
|
+
import { TemplateSpecVersion, TemplateSpecVersionsListOptionalParams, TemplateSpecVersionsCreateOrUpdateOptionalParams, TemplateSpecVersionsCreateOrUpdateResponse, TemplateSpecVersionsUpdateOptionalParams, TemplateSpecVersionsUpdateResponse, TemplateSpecVersionsGetOptionalParams, TemplateSpecVersionsGetResponse, TemplateSpecVersionsDeleteOptionalParams } from "../models";
|
3
|
+
/** Interface representing a TemplateSpecVersions. */
|
4
|
+
export interface TemplateSpecVersions {
|
5
|
+
/**
|
6
|
+
* Lists all the Template Spec versions in the specified Template Spec.
|
7
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
8
|
+
* @param templateSpecName Name of the Template Spec.
|
9
|
+
* @param options The options parameters.
|
10
|
+
*/
|
11
|
+
list(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecVersionsListOptionalParams): PagedAsyncIterableIterator<TemplateSpecVersion>;
|
12
|
+
/**
|
13
|
+
* Creates or updates a Template Spec version.
|
14
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
15
|
+
* @param templateSpecName Name of the Template Spec.
|
16
|
+
* @param templateSpecVersion The version of the Template Spec.
|
17
|
+
* @param templateSpecVersionModel Template Spec Version supplied to the operation.
|
18
|
+
* @param options The options parameters.
|
19
|
+
*/
|
20
|
+
createOrUpdate(resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, templateSpecVersionModel: TemplateSpecVersion, options?: TemplateSpecVersionsCreateOrUpdateOptionalParams): Promise<TemplateSpecVersionsCreateOrUpdateResponse>;
|
21
|
+
/**
|
22
|
+
* Updates Template Spec Version tags with specified values.
|
23
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
24
|
+
* @param templateSpecName Name of the Template Spec.
|
25
|
+
* @param templateSpecVersion The version of the Template Spec.
|
26
|
+
* @param options The options parameters.
|
27
|
+
*/
|
28
|
+
update(resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, options?: TemplateSpecVersionsUpdateOptionalParams): Promise<TemplateSpecVersionsUpdateResponse>;
|
29
|
+
/**
|
30
|
+
* Gets a Template Spec version from a specific Template Spec.
|
31
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
32
|
+
* @param templateSpecName Name of the Template Spec.
|
33
|
+
* @param templateSpecVersion The version of the Template Spec.
|
34
|
+
* @param options The options parameters.
|
35
|
+
*/
|
36
|
+
get(resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, options?: TemplateSpecVersionsGetOptionalParams): Promise<TemplateSpecVersionsGetResponse>;
|
37
|
+
/**
|
38
|
+
* Deletes a specific version from a Template Spec. When operation completes, status code 200 returned
|
39
|
+
* without content.
|
40
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
41
|
+
* @param templateSpecName Name of the Template Spec.
|
42
|
+
* @param templateSpecVersion The version of the Template Spec.
|
43
|
+
* @param options The options parameters.
|
44
|
+
*/
|
45
|
+
delete(resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, options?: TemplateSpecVersionsDeleteOptionalParams): Promise<void>;
|
46
|
+
}
|
47
|
+
//# sourceMappingURL=templateSpecVersions.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"templateSpecVersions.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/templateSpecVersions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,mBAAmB,EACnB,sCAAsC,EACtC,gDAAgD,EAChD,0CAA0C,EAC1C,wCAAwC,EACxC,kCAAkC,EAClC,qCAAqC,EACrC,+BAA+B,EAC/B,wCAAwC,EACzC,MAAM,WAAW,CAAC;AAGnB,qDAAqD;AACrD,MAAM,WAAW,oBAAoB;IACnC;;;;;OAKG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;IACnD;;;;;;;OAOG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,mBAAmB,EAAE,MAAM,EAC3B,wBAAwB,EAAE,mBAAmB,EAC7C,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CAAC,0CAA0C,CAAC,CAAC;IACvD;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC,CAAC;IAC/C;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAC5C;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
@@ -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=templateSpecVersions.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"templateSpecVersions.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/templateSpecVersions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
2
|
+
import { TemplateSpec, TemplateSpecsListBySubscriptionOptionalParams, TemplateSpecsListByResourceGroupOptionalParams, TemplateSpecsCreateOrUpdateOptionalParams, TemplateSpecsCreateOrUpdateResponse, TemplateSpecsUpdateOptionalParams, TemplateSpecsUpdateResponse, TemplateSpecsGetOptionalParams, TemplateSpecsGetResponse, TemplateSpecsDeleteOptionalParams } from "../models";
|
3
|
+
/** Interface representing a TemplateSpecs. */
|
4
|
+
export interface TemplateSpecs {
|
5
|
+
/**
|
6
|
+
* Lists all the Template Specs within the specified subscriptions.
|
7
|
+
* @param options The options parameters.
|
8
|
+
*/
|
9
|
+
listBySubscription(options?: TemplateSpecsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<TemplateSpec>;
|
10
|
+
/**
|
11
|
+
* Lists all the Template Specs within the specified resource group.
|
12
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
13
|
+
* @param options The options parameters.
|
14
|
+
*/
|
15
|
+
listByResourceGroup(resourceGroupName: string, options?: TemplateSpecsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<TemplateSpec>;
|
16
|
+
/**
|
17
|
+
* Creates or updates a Template Spec.
|
18
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
19
|
+
* @param templateSpecName Name of the Template Spec.
|
20
|
+
* @param templateSpec Template Spec supplied to the operation.
|
21
|
+
* @param options The options parameters.
|
22
|
+
*/
|
23
|
+
createOrUpdate(resourceGroupName: string, templateSpecName: string, templateSpec: TemplateSpec, options?: TemplateSpecsCreateOrUpdateOptionalParams): Promise<TemplateSpecsCreateOrUpdateResponse>;
|
24
|
+
/**
|
25
|
+
* Updates Template Spec tags with specified values.
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
27
|
+
* @param templateSpecName Name of the Template Spec.
|
28
|
+
* @param options The options parameters.
|
29
|
+
*/
|
30
|
+
update(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecsUpdateOptionalParams): Promise<TemplateSpecsUpdateResponse>;
|
31
|
+
/**
|
32
|
+
* Gets a Template Spec with a given name.
|
33
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
34
|
+
* @param templateSpecName Name of the Template Spec.
|
35
|
+
* @param options The options parameters.
|
36
|
+
*/
|
37
|
+
get(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecsGetOptionalParams): Promise<TemplateSpecsGetResponse>;
|
38
|
+
/**
|
39
|
+
* Deletes a Template Spec by name. When operation completes, status code 200 returned without content.
|
40
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
41
|
+
* @param templateSpecName Name of the Template Spec.
|
42
|
+
* @param options The options parameters.
|
43
|
+
*/
|
44
|
+
delete(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecsDeleteOptionalParams): Promise<void>;
|
45
|
+
}
|
46
|
+
//# sourceMappingURL=templateSpecs.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"templateSpecs.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/templateSpecs.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,YAAY,EACZ,6CAA6C,EAC7C,8CAA8C,EAC9C,yCAAyC,EACzC,mCAAmC,EACnC,iCAAiC,EACjC,2BAA2B,EAC3B,8BAA8B,EAC9B,wBAAwB,EACxB,iCAAiC,EAClC,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,6CAA6C,GACtD,0BAA0B,CAAC,YAAY,CAAC,CAAC;IAC5C;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,8CAA8C,GACvD,0BAA0B,CAAC,YAAY,CAAC,CAAC;IAC5C;;;;;;OAMG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,YAAY,EAC1B,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC,CAAC;IAChD;;;;;OAKG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACxC;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACrC;;;;;OAKG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"templateSpecs.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/templateSpecs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
3
|
+
import { TemplateSpecs, TemplateSpecVersions } from "./operationsInterfaces";
|
4
|
+
import { TemplateSpecsClientOptionalParams } from "./models";
|
5
|
+
export declare class TemplateSpecsClient extends coreClient.ServiceClient {
|
6
|
+
$host: string;
|
7
|
+
subscriptionId: string;
|
8
|
+
apiVersion: string;
|
9
|
+
/**
|
10
|
+
* Initializes a new instance of the TemplateSpecsClient class.
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
12
|
+
* @param subscriptionId Subscription Id which forms part of the URI for every service call.
|
13
|
+
* @param options The parameter options
|
14
|
+
*/
|
15
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: TemplateSpecsClientOptionalParams);
|
16
|
+
templateSpecs: TemplateSpecs;
|
17
|
+
templateSpecVersions: TemplateSpecVersions;
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=templateSpecsClient.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"templateSpecsClient.d.ts","sourceRoot":"","sources":["../../src/templateSpecsClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,iCAAiC,EAAE,MAAM,UAAU,CAAC;AAE7D,qBAAa,mBAAoB,SAAQ,UAAU,CAAC,aAAa;IAC/D,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,iCAAiC;IA8C7C,aAAa,EAAE,aAAa,CAAC;IAC7B,oBAAoB,EAAE,oBAAoB,CAAC;CAC5C"}
|
@@ -0,0 +1,52 @@
|
|
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 * as coreClient from "@azure/core-client";
|
9
|
+
import { TemplateSpecsImpl, TemplateSpecVersionsImpl } from "./operations";
|
10
|
+
export class TemplateSpecsClient extends coreClient.ServiceClient {
|
11
|
+
/**
|
12
|
+
* Initializes a new instance of the TemplateSpecsClient class.
|
13
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
14
|
+
* @param subscriptionId Subscription Id which forms part of the URI for every service call.
|
15
|
+
* @param options The parameter options
|
16
|
+
*/
|
17
|
+
constructor(credentials, subscriptionId, options) {
|
18
|
+
if (credentials === undefined) {
|
19
|
+
throw new Error("'credentials' cannot be null");
|
20
|
+
}
|
21
|
+
if (subscriptionId === undefined) {
|
22
|
+
throw new Error("'subscriptionId' cannot be null");
|
23
|
+
}
|
24
|
+
// Initializing default values for options
|
25
|
+
if (!options) {
|
26
|
+
options = {};
|
27
|
+
}
|
28
|
+
const defaults = {
|
29
|
+
requestContentType: "application/json; charset=utf-8",
|
30
|
+
credential: credentials
|
31
|
+
};
|
32
|
+
const packageDetails = `azsdk-js-arm-templatespecs/2.0.0`;
|
33
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
34
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
35
|
+
: `${packageDetails}`;
|
36
|
+
if (!options.credentialScopes) {
|
37
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
38
|
+
}
|
39
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
40
|
+
userAgentPrefix
|
41
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
42
|
+
super(optionsWithDefaults);
|
43
|
+
// Parameter assignments
|
44
|
+
this.subscriptionId = subscriptionId;
|
45
|
+
// Assigning values to Constant parameters
|
46
|
+
this.$host = options.$host || "https://management.azure.com";
|
47
|
+
this.apiVersion = options.apiVersion || "2021-05-01";
|
48
|
+
this.templateSpecs = new TemplateSpecsImpl(this);
|
49
|
+
this.templateSpecVersions = new TemplateSpecVersionsImpl(this);
|
50
|
+
}
|
51
|
+
}
|
52
|
+
//# sourceMappingURL=templateSpecsClient.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"templateSpecsClient.js","sourceRoot":"","sources":["../../src/templateSpecsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAI3E,MAAM,OAAO,mBAAoB,SAAQ,UAAU,CAAC,aAAa;IAK/D;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA2C;QAE3C,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC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ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,40 @@
|
|
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 { __awaiter } from "tslib";
|
9
|
+
import { record } from "@azure-tools/test-recorder";
|
10
|
+
const recorderEnvSetup = {
|
11
|
+
replaceableVariables: {
|
12
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
13
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
14
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
15
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
16
|
+
},
|
17
|
+
customizationsOnRecordings: [
|
18
|
+
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
|
19
|
+
],
|
20
|
+
queryParametersToSkip: []
|
21
|
+
};
|
22
|
+
describe("My test", () => {
|
23
|
+
let recorder;
|
24
|
+
beforeEach(function () {
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
26
|
+
recorder = record(this, recorderEnvSetup);
|
27
|
+
});
|
28
|
+
});
|
29
|
+
afterEach(function () {
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
31
|
+
yield recorder.stop();
|
32
|
+
});
|
33
|
+
});
|
34
|
+
it("sample test", function () {
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
36
|
+
console.log("Hi, I'm a test!");
|
37
|
+
});
|
38
|
+
});
|
39
|
+
});
|
40
|
+
//# sourceMappingURL=sampleTest.js.map
|