@azure/arm-templatespecs 2.1.1-alpha.20250718.1 → 2.1.1-alpha.20250721.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/dist/browser/models/mappers.js +42 -19
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/templateSpecVersions.js +23 -40
- package/dist/browser/operations/templateSpecVersions.js.map +1 -1
- package/dist/browser/operations/templateSpecs.js +45 -79
- package/dist/browser/operations/templateSpecs.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/templateSpecsClient.js +15 -5
- package/dist/browser/templateSpecsClient.js.map +1 -1
- package/dist/commonjs/models/mappers.js +42 -19
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/templateSpecVersions.js +23 -39
- package/dist/commonjs/operations/templateSpecVersions.js.map +1 -1
- package/dist/commonjs/operations/templateSpecs.js +45 -78
- package/dist/commonjs/operations/templateSpecs.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/templateSpecsClient.js +15 -5
- package/dist/commonjs/templateSpecsClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/models/mappers.js +42 -19
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/templateSpecVersions.js +23 -40
- package/dist/esm/operations/templateSpecVersions.js.map +1 -1
- package/dist/esm/operations/templateSpecs.js +45 -79
- package/dist/esm/operations/templateSpecs.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/templateSpecsClient.js +15 -5
- package/dist/esm/templateSpecsClient.js.map +1 -1
- package/dist/react-native/models/mappers.js +42 -19
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/templateSpecVersions.js +23 -40
- package/dist/react-native/operations/templateSpecVersions.js.map +1 -1
- package/dist/react-native/operations/templateSpecs.js +45 -79
- package/dist/react-native/operations/templateSpecs.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/templateSpecsClient.js +15 -5
- package/dist/react-native/templateSpecsClient.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-templatespecs-node.api.md +279 -279
@@ -288,19 +288,23 @@ export const TemplateSpec = {
|
|
288
288
|
type: {
|
289
289
|
name: "Composite",
|
290
290
|
className: "TemplateSpec",
|
291
|
-
modelProperties:
|
291
|
+
modelProperties: {
|
292
|
+
...AzureResourceBase.type.modelProperties,
|
293
|
+
location: {
|
292
294
|
serializedName: "location",
|
293
295
|
required: true,
|
294
296
|
type: {
|
295
297
|
name: "String"
|
296
298
|
}
|
297
|
-
},
|
299
|
+
},
|
300
|
+
tags: {
|
298
301
|
serializedName: "tags",
|
299
302
|
type: {
|
300
303
|
name: "Dictionary",
|
301
304
|
value: { type: { name: "String" } }
|
302
305
|
}
|
303
|
-
},
|
306
|
+
},
|
307
|
+
description: {
|
304
308
|
constraints: {
|
305
309
|
MaxLength: 4096
|
306
310
|
},
|
@@ -308,7 +312,8 @@ export const TemplateSpec = {
|
|
308
312
|
type: {
|
309
313
|
name: "String"
|
310
314
|
}
|
311
|
-
},
|
315
|
+
},
|
316
|
+
displayName: {
|
312
317
|
constraints: {
|
313
318
|
MaxLength: 64
|
314
319
|
},
|
@@ -316,13 +321,15 @@ export const TemplateSpec = {
|
|
316
321
|
type: {
|
317
322
|
name: "String"
|
318
323
|
}
|
319
|
-
},
|
324
|
+
},
|
325
|
+
metadata: {
|
320
326
|
serializedName: "properties.metadata",
|
321
327
|
type: {
|
322
328
|
name: "Dictionary",
|
323
329
|
value: { type: { name: "any" } }
|
324
330
|
}
|
325
|
-
},
|
331
|
+
},
|
332
|
+
versions: {
|
326
333
|
serializedName: "properties.versions",
|
327
334
|
readOnly: true,
|
328
335
|
type: {
|
@@ -331,39 +338,47 @@ export const TemplateSpec = {
|
|
331
338
|
type: { name: "Composite", className: "TemplateSpecVersionInfo" }
|
332
339
|
}
|
333
340
|
}
|
334
|
-
}
|
341
|
+
}
|
342
|
+
}
|
335
343
|
}
|
336
344
|
};
|
337
345
|
export const TemplateSpecUpdateModel = {
|
338
346
|
type: {
|
339
347
|
name: "Composite",
|
340
348
|
className: "TemplateSpecUpdateModel",
|
341
|
-
modelProperties:
|
349
|
+
modelProperties: {
|
350
|
+
...AzureResourceBase.type.modelProperties,
|
351
|
+
tags: {
|
342
352
|
serializedName: "tags",
|
343
353
|
type: {
|
344
354
|
name: "Dictionary",
|
345
355
|
value: { type: { name: "String" } }
|
346
356
|
}
|
347
|
-
}
|
357
|
+
}
|
358
|
+
}
|
348
359
|
}
|
349
360
|
};
|
350
361
|
export const TemplateSpecVersion = {
|
351
362
|
type: {
|
352
363
|
name: "Composite",
|
353
364
|
className: "TemplateSpecVersion",
|
354
|
-
modelProperties:
|
365
|
+
modelProperties: {
|
366
|
+
...AzureResourceBase.type.modelProperties,
|
367
|
+
location: {
|
355
368
|
serializedName: "location",
|
356
369
|
required: true,
|
357
370
|
type: {
|
358
371
|
name: "String"
|
359
372
|
}
|
360
|
-
},
|
373
|
+
},
|
374
|
+
tags: {
|
361
375
|
serializedName: "tags",
|
362
376
|
type: {
|
363
377
|
name: "Dictionary",
|
364
378
|
value: { type: { name: "String" } }
|
365
379
|
}
|
366
|
-
},
|
380
|
+
},
|
381
|
+
description: {
|
367
382
|
constraints: {
|
368
383
|
MaxLength: 4096
|
369
384
|
},
|
@@ -371,7 +386,8 @@ export const TemplateSpecVersion = {
|
|
371
386
|
type: {
|
372
387
|
name: "String"
|
373
388
|
}
|
374
|
-
},
|
389
|
+
},
|
390
|
+
linkedTemplates: {
|
375
391
|
serializedName: "properties.linkedTemplates",
|
376
392
|
type: {
|
377
393
|
name: "Sequence",
|
@@ -382,38 +398,45 @@ export const TemplateSpecVersion = {
|
|
382
398
|
}
|
383
399
|
}
|
384
400
|
}
|
385
|
-
},
|
401
|
+
},
|
402
|
+
metadata: {
|
386
403
|
serializedName: "properties.metadata",
|
387
404
|
type: {
|
388
405
|
name: "Dictionary",
|
389
406
|
value: { type: { name: "any" } }
|
390
407
|
}
|
391
|
-
},
|
408
|
+
},
|
409
|
+
mainTemplate: {
|
392
410
|
serializedName: "properties.mainTemplate",
|
393
411
|
type: {
|
394
412
|
name: "Dictionary",
|
395
413
|
value: { type: { name: "any" } }
|
396
414
|
}
|
397
|
-
},
|
415
|
+
},
|
416
|
+
uiFormDefinition: {
|
398
417
|
serializedName: "properties.uiFormDefinition",
|
399
418
|
type: {
|
400
419
|
name: "Dictionary",
|
401
420
|
value: { type: { name: "any" } }
|
402
421
|
}
|
403
|
-
}
|
422
|
+
}
|
423
|
+
}
|
404
424
|
}
|
405
425
|
};
|
406
426
|
export const TemplateSpecVersionUpdateModel = {
|
407
427
|
type: {
|
408
428
|
name: "Composite",
|
409
429
|
className: "TemplateSpecVersionUpdateModel",
|
410
|
-
modelProperties:
|
430
|
+
modelProperties: {
|
431
|
+
...AzureResourceBase.type.modelProperties,
|
432
|
+
tags: {
|
411
433
|
serializedName: "tags",
|
412
434
|
type: {
|
413
435
|
name: "Dictionary",
|
414
436
|
value: { type: { name: "String" } }
|
415
437
|
}
|
416
|
-
}
|
438
|
+
}
|
439
|
+
}
|
417
440
|
}
|
418
441
|
};
|
419
442
|
//# sourceMappingURL=mappers.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,uBAAuB,GAA+B;IACjE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,yBAAyB;QACpC,eAAe,EAAE;YACf,WAAW,EAAE;gBACX,cAAc,EAAE,aAAa;gBAC7B,QAAQ,EAAE,IAAI;gBACd,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,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;iBACjC;aACF,EACD,gBAAgB,EAAE;gBAChB,cAAc,EAAE,6BAA6B;gBAC7C,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;iBACjC;aACF,GACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAA+B;IACxE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,gCAAgC;QAC3C,eAAe,kCACV,iBAAiB,CAAC,IAAI,CAAC,eAAe,KACzC,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;iBACpC;aACF,GACF;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const TemplateSpecVersionInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecVersionInfo\",\n modelProperties: {\n description: {\n serializedName: \"description\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n timeCreated: {\n serializedName: \"timeCreated\",\n readOnly: true,\n type: {\n name: \"DateTime\"\n }\n },\n timeModified: {\n serializedName: \"timeModified\",\n readOnly: true,\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const AzureResourceBase: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AzureResourceBase\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n systemData: {\n serializedName: \"systemData\",\n type: {\n name: \"Composite\",\n className: \"SystemData\"\n }\n }\n }\n }\n};\n\nexport const SystemData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n modelProperties: {\n createdBy: {\n serializedName: \"createdBy\",\n type: {\n name: \"String\"\n }\n },\n createdByType: {\n serializedName: \"createdByType\",\n type: {\n name: \"String\"\n }\n },\n createdAt: {\n serializedName: \"createdAt\",\n type: {\n name: \"DateTime\"\n }\n },\n lastModifiedBy: {\n serializedName: \"lastModifiedBy\",\n type: {\n name: \"String\"\n }\n },\n lastModifiedByType: {\n serializedName: \"lastModifiedByType\",\n type: {\n name: \"String\"\n }\n },\n lastModifiedAt: {\n serializedName: \"lastModifiedAt\",\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const TemplateSpecsError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecsError\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\"\n }\n }\n }\n },\n additionalInfo: {\n serializedName: \"additionalInfo\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ErrorAdditionalInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\",\n modelProperties: {\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n info: {\n serializedName: \"info\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const TemplateSpecsListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecsListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"TemplateSpec\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const LinkedTemplateArtifact: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LinkedTemplateArtifact\",\n modelProperties: {\n path: {\n serializedName: \"path\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n template: {\n serializedName: \"template\",\n required: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const TemplateSpecVersionsListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecVersionsListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecVersion\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const TemplateSpec: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpec\",\n modelProperties: {\n ...AzureResourceBase.type.modelProperties,\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n description: {\n constraints: {\n MaxLength: 4096\n },\n serializedName: \"properties.description\",\n type: {\n name: \"String\"\n }\n },\n displayName: {\n constraints: {\n MaxLength: 64\n },\n serializedName: \"properties.displayName\",\n type: {\n name: \"String\"\n }\n },\n metadata: {\n serializedName: \"properties.metadata\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n versions: {\n serializedName: \"properties.versions\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Composite\", className: \"TemplateSpecVersionInfo\" }\n }\n }\n }\n }\n }\n};\n\nexport const TemplateSpecUpdateModel: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecUpdateModel\",\n modelProperties: {\n ...AzureResourceBase.type.modelProperties,\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const TemplateSpecVersion: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecVersion\",\n modelProperties: {\n ...AzureResourceBase.type.modelProperties,\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n description: {\n constraints: {\n MaxLength: 4096\n },\n serializedName: \"properties.description\",\n type: {\n name: \"String\"\n }\n },\n linkedTemplates: {\n serializedName: \"properties.linkedTemplates\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"LinkedTemplateArtifact\"\n }\n }\n }\n },\n metadata: {\n serializedName: \"properties.metadata\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n mainTemplate: {\n serializedName: \"properties.mainTemplate\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n uiFormDefinition: {\n serializedName: \"properties.uiFormDefinition\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const TemplateSpecVersionUpdateModel: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecVersionUpdateModel\",\n modelProperties: {\n ...AzureResourceBase.type.modelProperties,\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n"]}
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,uBAAuB,GAA+B;IACjE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,yBAAyB;QACpC,eAAe,EAAE;YACf,WAAW,EAAE;gBACX,cAAc,EAAE,aAAa;gBAC7B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,WAAW,EAAE;gBACX,cAAc,EAAE,aAAa;gBAC7B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;iBACjB;aACF;YACD,YAAY,EAAE;gBACZ,cAAc,EAAE,cAAc;gBAC9B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;iBACjB;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAA+B;IAC3D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,mBAAmB;QAC9B,eAAe,EAAE;YACf,EAAE,EAAE;gBACF,cAAc,EAAE,IAAI;gBACpB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAA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ACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;iBACpC;aACF;SACF;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const TemplateSpecVersionInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecVersionInfo\",\n modelProperties: {\n description: {\n serializedName: \"description\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n timeCreated: {\n serializedName: \"timeCreated\",\n readOnly: true,\n type: {\n name: \"DateTime\"\n }\n },\n timeModified: {\n serializedName: \"timeModified\",\n readOnly: true,\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const AzureResourceBase: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AzureResourceBase\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n systemData: {\n serializedName: \"systemData\",\n type: {\n name: \"Composite\",\n className: \"SystemData\"\n }\n }\n }\n }\n};\n\nexport const SystemData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n modelProperties: {\n createdBy: {\n serializedName: \"createdBy\",\n type: {\n name: \"String\"\n }\n },\n createdByType: {\n serializedName: \"createdByType\",\n type: {\n name: \"String\"\n }\n },\n createdAt: {\n serializedName: \"createdAt\",\n type: {\n name: \"DateTime\"\n }\n },\n lastModifiedBy: {\n serializedName: \"lastModifiedBy\",\n type: {\n name: \"String\"\n }\n },\n lastModifiedByType: {\n serializedName: \"lastModifiedByType\",\n type: {\n name: \"String\"\n }\n },\n lastModifiedAt: {\n serializedName: \"lastModifiedAt\",\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const TemplateSpecsError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecsError\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\"\n }\n }\n }\n },\n additionalInfo: {\n serializedName: \"additionalInfo\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ErrorAdditionalInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\",\n modelProperties: {\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n info: {\n serializedName: \"info\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const TemplateSpecsListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecsListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"TemplateSpec\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const LinkedTemplateArtifact: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LinkedTemplateArtifact\",\n modelProperties: {\n path: {\n serializedName: \"path\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n template: {\n serializedName: \"template\",\n required: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const TemplateSpecVersionsListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecVersionsListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecVersion\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const TemplateSpec: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpec\",\n modelProperties: {\n ...AzureResourceBase.type.modelProperties,\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n description: {\n constraints: {\n MaxLength: 4096\n },\n serializedName: \"properties.description\",\n type: {\n name: \"String\"\n }\n },\n displayName: {\n constraints: {\n MaxLength: 64\n },\n serializedName: \"properties.displayName\",\n type: {\n name: \"String\"\n }\n },\n metadata: {\n serializedName: \"properties.metadata\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n versions: {\n serializedName: \"properties.versions\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Composite\", className: \"TemplateSpecVersionInfo\" }\n }\n }\n }\n }\n }\n};\n\nexport const TemplateSpecUpdateModel: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecUpdateModel\",\n modelProperties: {\n ...AzureResourceBase.type.modelProperties,\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const TemplateSpecVersion: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecVersion\",\n modelProperties: {\n ...AzureResourceBase.type.modelProperties,\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n description: {\n constraints: {\n MaxLength: 4096\n },\n serializedName: \"properties.description\",\n type: {\n name: \"String\"\n }\n },\n linkedTemplates: {\n serializedName: \"properties.linkedTemplates\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"LinkedTemplateArtifact\"\n }\n }\n }\n },\n metadata: {\n serializedName: \"properties.metadata\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n mainTemplate: {\n serializedName: \"properties.mainTemplate\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n uiFormDefinition: {\n serializedName: \"properties.uiFormDefinition\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const TemplateSpecVersionUpdateModel: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecVersionUpdateModel\",\n modelProperties: {\n ...AzureResourceBase.type.modelProperties,\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n"]}
|
@@ -5,7 +5,6 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
10
9
|
import * as coreClient from "@azure/core-client";
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
14
13
|
/** Class containing TemplateSpecVersions operations. */
|
15
14
|
export class TemplateSpecVersionsImpl {
|
15
|
+
client;
|
16
16
|
/**
|
17
17
|
* Initialize a new instance of the class TemplateSpecVersions class.
|
18
18
|
* @param client Reference to the service client
|
@@ -36,52 +36,35 @@ export class TemplateSpecVersionsImpl {
|
|
36
36
|
return this;
|
37
37
|
},
|
38
38
|
byPage: (settings) => {
|
39
|
-
if (settings
|
39
|
+
if (settings?.maxPageSize) {
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
41
41
|
}
|
42
42
|
return this.listPagingPage(resourceGroupName, templateSpecName, options, settings);
|
43
43
|
}
|
44
44
|
};
|
45
45
|
}
|
46
|
-
listPagingPage(resourceGroupName, templateSpecName, options, settings) {
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
}
|
64
|
-
});
|
46
|
+
async *listPagingPage(resourceGroupName, templateSpecName, options, settings) {
|
47
|
+
let result;
|
48
|
+
let continuationToken = settings?.continuationToken;
|
49
|
+
if (!continuationToken) {
|
50
|
+
result = await this._list(resourceGroupName, templateSpecName, options);
|
51
|
+
let page = result.value || [];
|
52
|
+
continuationToken = result.nextLink;
|
53
|
+
setContinuationToken(page, continuationToken);
|
54
|
+
yield page;
|
55
|
+
}
|
56
|
+
while (continuationToken) {
|
57
|
+
result = await this._listNext(resourceGroupName, templateSpecName, continuationToken, options);
|
58
|
+
continuationToken = result.nextLink;
|
59
|
+
let page = result.value || [];
|
60
|
+
setContinuationToken(page, continuationToken);
|
61
|
+
yield page;
|
62
|
+
}
|
65
63
|
}
|
66
|
-
listPagingAll(resourceGroupName, templateSpecName, options) {
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, templateSpecName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
71
|
-
_c = _f.value;
|
72
|
-
_d = false;
|
73
|
-
const page = _c;
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
75
|
-
}
|
76
|
-
}
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
78
|
-
finally {
|
79
|
-
try {
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
81
|
-
}
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
83
|
-
}
|
84
|
-
});
|
64
|
+
async *listPagingAll(resourceGroupName, templateSpecName, options) {
|
65
|
+
for await (const page of this.listPagingPage(resourceGroupName, templateSpecName, options)) {
|
66
|
+
yield* page;
|
67
|
+
}
|
85
68
|
}
|
86
69
|
/**
|
87
70
|
* Creates or updates a Template Spec version.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"templateSpecVersions.js","sourceRoot":"","sources":["../../../src/operations/templateSpecVersions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,gBAAwB,EACxB,OAAg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O,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { TemplateSpecVersions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { TemplateSpecsClient } from \"../templateSpecsClient.js\";\nimport {\n TemplateSpecVersion,\n TemplateSpecVersionsListNextOptionalParams,\n TemplateSpecVersionsListOptionalParams,\n TemplateSpecVersionsListResponse,\n TemplateSpecVersionsCreateOrUpdateOptionalParams,\n TemplateSpecVersionsCreateOrUpdateResponse,\n TemplateSpecVersionsUpdateOptionalParams,\n TemplateSpecVersionsUpdateResponse,\n TemplateSpecVersionsGetOptionalParams,\n TemplateSpecVersionsGetResponse,\n TemplateSpecVersionsDeleteOptionalParams,\n TemplateSpecVersionsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TemplateSpecVersions operations. */\nexport class TemplateSpecVersionsImpl implements TemplateSpecVersions {\n private readonly client: TemplateSpecsClient;\n\n /**\n * Initialize a new instance of the class TemplateSpecVersions class.\n * @param client Reference to the service client\n */\n constructor(client: TemplateSpecsClient) {\n this.client = client;\n }\n\n /**\n * Lists all the Template Spec versions in the specified Template Spec.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecVersionsListOptionalParams\n ): PagedAsyncIterableIterator<TemplateSpecVersion> {\n const iter = this.listPagingAll(\n resourceGroupName,\n templateSpecName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n templateSpecName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecVersionsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<TemplateSpecVersion[]> {\n let result: TemplateSpecVersionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, templateSpecName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n templateSpecName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecVersionsListOptionalParams\n ): AsyncIterableIterator<TemplateSpecVersion> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n templateSpecName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates or updates a Template Spec version.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param templateSpecVersionModel Template Spec Version supplied to the operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n templateSpecVersionModel: TemplateSpecVersion,\n options?: TemplateSpecVersionsCreateOrUpdateOptionalParams\n ): Promise<TemplateSpecVersionsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n templateSpecName,\n templateSpecVersion,\n templateSpecVersionModel,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Updates Template Spec Version tags with specified values.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n options?: TemplateSpecVersionsUpdateOptionalParams\n ): Promise<TemplateSpecVersionsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, templateSpecVersion, options },\n updateOperationSpec\n );\n }\n\n /**\n * Gets a Template Spec version from a specific Template Spec.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n options?: TemplateSpecVersionsGetOptionalParams\n ): Promise<TemplateSpecVersionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, templateSpecVersion, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes a specific version from a Template Spec. When operation completes, status code 200 returned\n * without content.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n options?: TemplateSpecVersionsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, templateSpecVersion, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Lists all the Template Spec versions in the specified Template Spec.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecVersionsListOptionalParams\n ): Promise<TemplateSpecVersionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n templateSpecName: string,\n nextLink: string,\n options?: TemplateSpecVersionsListNextOptionalParams\n ): Promise<TemplateSpecVersionsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecVersion\n },\n 201: {\n bodyMapper: Mappers.TemplateSpecVersion\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n requestBody: Parameters.templateSpecVersionModel,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName,\n Parameters.templateSpecVersion\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecVersion\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n requestBody: Parameters.templateSpecVersionUpdateModel,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName,\n Parameters.templateSpecVersion\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecVersion\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName,\n Parameters.templateSpecVersion\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName,\n Parameters.templateSpecVersion\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecVersionsListResult\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecVersionsListResult\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
1
|
+
{"version":3,"file":"templateSpecVersions.js","sourceRoot":"","sources":["../../../src/operations/templateSpecVersions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAClB,MAAM,CAAsB;IAE7C;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,gBAAwB,EACxB,OAAgD;QAEhD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,gBAAgB,EAChB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;Y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ft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { TemplateSpecVersions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { TemplateSpecsClient } from \"../templateSpecsClient.js\";\nimport {\n TemplateSpecVersion,\n TemplateSpecVersionsListNextOptionalParams,\n TemplateSpecVersionsListOptionalParams,\n TemplateSpecVersionsListResponse,\n TemplateSpecVersionsCreateOrUpdateOptionalParams,\n TemplateSpecVersionsCreateOrUpdateResponse,\n TemplateSpecVersionsUpdateOptionalParams,\n TemplateSpecVersionsUpdateResponse,\n TemplateSpecVersionsGetOptionalParams,\n TemplateSpecVersionsGetResponse,\n TemplateSpecVersionsDeleteOptionalParams,\n TemplateSpecVersionsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TemplateSpecVersions operations. */\nexport class TemplateSpecVersionsImpl implements TemplateSpecVersions {\n private readonly client: TemplateSpecsClient;\n\n /**\n * Initialize a new instance of the class TemplateSpecVersions class.\n * @param client Reference to the service client\n */\n constructor(client: TemplateSpecsClient) {\n this.client = client;\n }\n\n /**\n * Lists all the Template Spec versions in the specified Template Spec.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecVersionsListOptionalParams\n ): PagedAsyncIterableIterator<TemplateSpecVersion> {\n const iter = this.listPagingAll(\n resourceGroupName,\n templateSpecName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n templateSpecName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecVersionsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<TemplateSpecVersion[]> {\n let result: TemplateSpecVersionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, templateSpecName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n templateSpecName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecVersionsListOptionalParams\n ): AsyncIterableIterator<TemplateSpecVersion> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n templateSpecName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates or updates a Template Spec version.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param templateSpecVersionModel Template Spec Version supplied to the operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n templateSpecVersionModel: TemplateSpecVersion,\n options?: TemplateSpecVersionsCreateOrUpdateOptionalParams\n ): Promise<TemplateSpecVersionsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n templateSpecName,\n templateSpecVersion,\n templateSpecVersionModel,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Updates Template Spec Version tags with specified values.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n options?: TemplateSpecVersionsUpdateOptionalParams\n ): Promise<TemplateSpecVersionsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, templateSpecVersion, options },\n updateOperationSpec\n );\n }\n\n /**\n * Gets a Template Spec version from a specific Template Spec.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n options?: TemplateSpecVersionsGetOptionalParams\n ): Promise<TemplateSpecVersionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, templateSpecVersion, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes a specific version from a Template Spec. When operation completes, status code 200 returned\n * without content.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n options?: TemplateSpecVersionsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, templateSpecVersion, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Lists all the Template Spec versions in the specified Template Spec.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecVersionsListOptionalParams\n ): Promise<TemplateSpecVersionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n templateSpecName: string,\n nextLink: string,\n options?: TemplateSpecVersionsListNextOptionalParams\n ): Promise<TemplateSpecVersionsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecVersion\n },\n 201: {\n bodyMapper: Mappers.TemplateSpecVersion\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n requestBody: Parameters.templateSpecVersionModel,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName,\n Parameters.templateSpecVersion\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecVersion\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n requestBody: Parameters.templateSpecVersionUpdateModel,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName,\n Parameters.templateSpecVersion\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecVersion\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName,\n Parameters.templateSpecVersion\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName,\n Parameters.templateSpecVersion\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecVersionsListResult\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecVersionsListResult\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
@@ -5,7 +5,6 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
10
9
|
import * as coreClient from "@azure/core-client";
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
14
13
|
/** Class containing TemplateSpecs operations. */
|
15
14
|
export class TemplateSpecsImpl {
|
15
|
+
client;
|
16
16
|
/**
|
17
17
|
* Initialize a new instance of the class TemplateSpecs class.
|
18
18
|
* @param client Reference to the service client
|
@@ -34,52 +34,35 @@ export class TemplateSpecsImpl {
|
|
34
34
|
return this;
|
35
35
|
},
|
36
36
|
byPage: (settings) => {
|
37
|
-
if (settings
|
37
|
+
if (settings?.maxPageSize) {
|
38
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
39
39
|
}
|
40
40
|
return this.listBySubscriptionPagingPage(options, settings);
|
41
41
|
}
|
42
42
|
};
|
43
43
|
}
|
44
|
-
listBySubscriptionPagingPage(options, settings) {
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
}
|
62
|
-
});
|
44
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
45
|
+
let result;
|
46
|
+
let continuationToken = settings?.continuationToken;
|
47
|
+
if (!continuationToken) {
|
48
|
+
result = await this._listBySubscription(options);
|
49
|
+
let page = result.value || [];
|
50
|
+
continuationToken = result.nextLink;
|
51
|
+
setContinuationToken(page, continuationToken);
|
52
|
+
yield page;
|
53
|
+
}
|
54
|
+
while (continuationToken) {
|
55
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
56
|
+
continuationToken = result.nextLink;
|
57
|
+
let page = result.value || [];
|
58
|
+
setContinuationToken(page, continuationToken);
|
59
|
+
yield page;
|
60
|
+
}
|
63
61
|
}
|
64
|
-
listBySubscriptionPagingAll(options) {
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
69
|
-
_c = _f.value;
|
70
|
-
_d = false;
|
71
|
-
const page = _c;
|
72
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
73
|
-
}
|
74
|
-
}
|
75
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
76
|
-
finally {
|
77
|
-
try {
|
78
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
79
|
-
}
|
80
|
-
finally { if (e_1) throw e_1.error; }
|
81
|
-
}
|
82
|
-
});
|
62
|
+
async *listBySubscriptionPagingAll(options) {
|
63
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
64
|
+
yield* page;
|
65
|
+
}
|
83
66
|
}
|
84
67
|
/**
|
85
68
|
* Lists all the Template Specs within the specified resource group.
|
@@ -96,52 +79,35 @@ export class TemplateSpecsImpl {
|
|
96
79
|
return this;
|
97
80
|
},
|
98
81
|
byPage: (settings) => {
|
99
|
-
if (settings
|
82
|
+
if (settings?.maxPageSize) {
|
100
83
|
throw new Error("maxPageSize is not supported by this operation.");
|
101
84
|
}
|
102
85
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
103
86
|
}
|
104
87
|
};
|
105
88
|
}
|
106
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
}
|
124
|
-
});
|
89
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
90
|
+
let result;
|
91
|
+
let continuationToken = settings?.continuationToken;
|
92
|
+
if (!continuationToken) {
|
93
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
94
|
+
let page = result.value || [];
|
95
|
+
continuationToken = result.nextLink;
|
96
|
+
setContinuationToken(page, continuationToken);
|
97
|
+
yield page;
|
98
|
+
}
|
99
|
+
while (continuationToken) {
|
100
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
101
|
+
continuationToken = result.nextLink;
|
102
|
+
let page = result.value || [];
|
103
|
+
setContinuationToken(page, continuationToken);
|
104
|
+
yield page;
|
105
|
+
}
|
125
106
|
}
|
126
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
131
|
-
_c = _f.value;
|
132
|
-
_d = false;
|
133
|
-
const page = _c;
|
134
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
135
|
-
}
|
136
|
-
}
|
137
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
138
|
-
finally {
|
139
|
-
try {
|
140
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
141
|
-
}
|
142
|
-
finally { if (e_2) throw e_2.error; }
|
143
|
-
}
|
144
|
-
});
|
107
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
108
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
109
|
+
yield* page;
|
110
|
+
}
|
145
111
|
}
|
146
112
|
/**
|
147
113
|
* Creates or updates a Template Spec.
|