@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,144 @@
|
|
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 { TemplateSpec as TemplateSpecMapper, TemplateSpecUpdateModel as TemplateSpecUpdateModelMapper, TemplateSpecVersion as TemplateSpecVersionMapper, TemplateSpecVersionUpdateModel as TemplateSpecVersionUpdateModelMapper } from "../models/mappers";
|
9
|
+
export const contentType = {
|
10
|
+
parameterPath: ["options", "contentType"],
|
11
|
+
mapper: {
|
12
|
+
defaultValue: "application/json",
|
13
|
+
isConstant: true,
|
14
|
+
serializedName: "Content-Type",
|
15
|
+
type: {
|
16
|
+
name: "String"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
};
|
20
|
+
export const templateSpec = {
|
21
|
+
parameterPath: "templateSpec",
|
22
|
+
mapper: TemplateSpecMapper
|
23
|
+
};
|
24
|
+
export const accept = {
|
25
|
+
parameterPath: "accept",
|
26
|
+
mapper: {
|
27
|
+
defaultValue: "application/json",
|
28
|
+
isConstant: true,
|
29
|
+
serializedName: "Accept",
|
30
|
+
type: {
|
31
|
+
name: "String"
|
32
|
+
}
|
33
|
+
}
|
34
|
+
};
|
35
|
+
export const $host = {
|
36
|
+
parameterPath: "$host",
|
37
|
+
mapper: {
|
38
|
+
serializedName: "$host",
|
39
|
+
required: true,
|
40
|
+
type: {
|
41
|
+
name: "String"
|
42
|
+
}
|
43
|
+
},
|
44
|
+
skipEncoding: true
|
45
|
+
};
|
46
|
+
export const subscriptionId = {
|
47
|
+
parameterPath: "subscriptionId",
|
48
|
+
mapper: {
|
49
|
+
serializedName: "subscriptionId",
|
50
|
+
required: true,
|
51
|
+
type: {
|
52
|
+
name: "String"
|
53
|
+
}
|
54
|
+
}
|
55
|
+
};
|
56
|
+
export const resourceGroupName = {
|
57
|
+
parameterPath: "resourceGroupName",
|
58
|
+
mapper: {
|
59
|
+
constraints: {
|
60
|
+
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
|
61
|
+
MaxLength: 90,
|
62
|
+
MinLength: 1
|
63
|
+
},
|
64
|
+
serializedName: "resourceGroupName",
|
65
|
+
required: true,
|
66
|
+
type: {
|
67
|
+
name: "String"
|
68
|
+
}
|
69
|
+
}
|
70
|
+
};
|
71
|
+
export const templateSpecName = {
|
72
|
+
parameterPath: "templateSpecName",
|
73
|
+
mapper: {
|
74
|
+
constraints: {
|
75
|
+
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
|
76
|
+
MaxLength: 90,
|
77
|
+
MinLength: 1
|
78
|
+
},
|
79
|
+
serializedName: "templateSpecName",
|
80
|
+
required: true,
|
81
|
+
type: {
|
82
|
+
name: "String"
|
83
|
+
}
|
84
|
+
}
|
85
|
+
};
|
86
|
+
export const apiVersion = {
|
87
|
+
parameterPath: "apiVersion",
|
88
|
+
mapper: {
|
89
|
+
defaultValue: "2021-05-01",
|
90
|
+
isConstant: true,
|
91
|
+
serializedName: "api-version",
|
92
|
+
type: {
|
93
|
+
name: "String"
|
94
|
+
}
|
95
|
+
}
|
96
|
+
};
|
97
|
+
export const templateSpec1 = {
|
98
|
+
parameterPath: ["options", "templateSpec"],
|
99
|
+
mapper: TemplateSpecUpdateModelMapper
|
100
|
+
};
|
101
|
+
export const expand = {
|
102
|
+
parameterPath: ["options", "expand"],
|
103
|
+
mapper: {
|
104
|
+
serializedName: "$expand",
|
105
|
+
type: {
|
106
|
+
name: "String"
|
107
|
+
}
|
108
|
+
}
|
109
|
+
};
|
110
|
+
export const nextLink = {
|
111
|
+
parameterPath: "nextLink",
|
112
|
+
mapper: {
|
113
|
+
serializedName: "nextLink",
|
114
|
+
required: true,
|
115
|
+
type: {
|
116
|
+
name: "String"
|
117
|
+
}
|
118
|
+
},
|
119
|
+
skipEncoding: true
|
120
|
+
};
|
121
|
+
export const templateSpecVersionModel = {
|
122
|
+
parameterPath: "templateSpecVersionModel",
|
123
|
+
mapper: TemplateSpecVersionMapper
|
124
|
+
};
|
125
|
+
export const templateSpecVersion = {
|
126
|
+
parameterPath: "templateSpecVersion",
|
127
|
+
mapper: {
|
128
|
+
constraints: {
|
129
|
+
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
|
130
|
+
MaxLength: 90,
|
131
|
+
MinLength: 1
|
132
|
+
},
|
133
|
+
serializedName: "templateSpecVersion",
|
134
|
+
required: true,
|
135
|
+
type: {
|
136
|
+
name: "String"
|
137
|
+
}
|
138
|
+
}
|
139
|
+
};
|
140
|
+
export const templateSpecVersionUpdateModel = {
|
141
|
+
parameterPath: ["options", "templateSpecVersionUpdateModel"],
|
142
|
+
mapper: TemplateSpecVersionUpdateModelMapper
|
143
|
+
};
|
144
|
+
//# sourceMappingURL=parameters.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,YAAY,IAAI,kBAAkB,EAClC,uBAAuB,IAAI,6BAA6B,EACxD,mBAAmB,IAAI,yBAAyB,EAChD,8BAA8B,IAAI,oCAAoC,EACvE,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAuB;IAC9C,aAAa,EAAE,cAAc;IAC7B,MAAM,EAAE,kBAAkB;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aA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EAAE,gCAAgC,CAAC;IAC5D,MAAM,EAAE,oCAAoC;CAC7C,CAAC"}
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC"}
|
@@ -3,8 +3,7 @@
|
|
3
3
|
* Licensed under the MIT License.
|
4
4
|
*
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
7
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
8
7
|
*/
|
9
8
|
export * from "./templateSpecs";
|
10
9
|
export * from "./templateSpecVersions";
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC"}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
2
|
+
import { TemplateSpecVersions } from "../operationsInterfaces";
|
3
|
+
import { TemplateSpecsClient } from "../templateSpecsClient";
|
4
|
+
import { TemplateSpecVersion, TemplateSpecVersionsListOptionalParams, TemplateSpecVersionsCreateOrUpdateOptionalParams, TemplateSpecVersionsCreateOrUpdateResponse, TemplateSpecVersionsUpdateOptionalParams, TemplateSpecVersionsUpdateResponse, TemplateSpecVersionsGetOptionalParams, TemplateSpecVersionsGetResponse, TemplateSpecVersionsDeleteOptionalParams } from "../models";
|
5
|
+
/** Class containing TemplateSpecVersions operations. */
|
6
|
+
export declare class TemplateSpecVersionsImpl implements TemplateSpecVersions {
|
7
|
+
private readonly client;
|
8
|
+
/**
|
9
|
+
* Initialize a new instance of the class TemplateSpecVersions class.
|
10
|
+
* @param client Reference to the service client
|
11
|
+
*/
|
12
|
+
constructor(client: TemplateSpecsClient);
|
13
|
+
/**
|
14
|
+
* Lists all the Template Spec versions in the specified Template Spec.
|
15
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
16
|
+
* @param templateSpecName Name of the Template Spec.
|
17
|
+
* @param options The options parameters.
|
18
|
+
*/
|
19
|
+
list(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecVersionsListOptionalParams): PagedAsyncIterableIterator<TemplateSpecVersion>;
|
20
|
+
private listPagingPage;
|
21
|
+
private listPagingAll;
|
22
|
+
/**
|
23
|
+
* Creates or updates a Template Spec version.
|
24
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
25
|
+
* @param templateSpecName Name of the Template Spec.
|
26
|
+
* @param templateSpecVersion The version of the Template Spec.
|
27
|
+
* @param templateSpecVersionModel Template Spec Version supplied to the operation.
|
28
|
+
* @param options The options parameters.
|
29
|
+
*/
|
30
|
+
createOrUpdate(resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, templateSpecVersionModel: TemplateSpecVersion, options?: TemplateSpecVersionsCreateOrUpdateOptionalParams): Promise<TemplateSpecVersionsCreateOrUpdateResponse>;
|
31
|
+
/**
|
32
|
+
* Updates Template Spec Version tags with specified values.
|
33
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
34
|
+
* @param templateSpecName Name of the Template Spec.
|
35
|
+
* @param templateSpecVersion The version of the Template Spec.
|
36
|
+
* @param options The options parameters.
|
37
|
+
*/
|
38
|
+
update(resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, options?: TemplateSpecVersionsUpdateOptionalParams): Promise<TemplateSpecVersionsUpdateResponse>;
|
39
|
+
/**
|
40
|
+
* Gets a Template Spec version from a specific Template Spec.
|
41
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
42
|
+
* @param templateSpecName Name of the Template Spec.
|
43
|
+
* @param templateSpecVersion The version of the Template Spec.
|
44
|
+
* @param options The options parameters.
|
45
|
+
*/
|
46
|
+
get(resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, options?: TemplateSpecVersionsGetOptionalParams): Promise<TemplateSpecVersionsGetResponse>;
|
47
|
+
/**
|
48
|
+
* Deletes a specific version from a Template Spec. When operation completes, status code 200 returned
|
49
|
+
* without content.
|
50
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
51
|
+
* @param templateSpecName Name of the Template Spec.
|
52
|
+
* @param templateSpecVersion The version of the Template Spec.
|
53
|
+
* @param options The options parameters.
|
54
|
+
*/
|
55
|
+
delete(resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, options?: TemplateSpecVersionsDeleteOptionalParams): Promise<void>;
|
56
|
+
/**
|
57
|
+
* Lists all the Template Spec versions in the specified Template Spec.
|
58
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
59
|
+
* @param templateSpecName Name of the Template Spec.
|
60
|
+
* @param options The options parameters.
|
61
|
+
*/
|
62
|
+
private _list;
|
63
|
+
/**
|
64
|
+
* ListNext
|
65
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
66
|
+
* @param templateSpecName Name of the Template Spec.
|
67
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
68
|
+
* @param options The options parameters.
|
69
|
+
*/
|
70
|
+
private _listNext;
|
71
|
+
}
|
72
|
+
//# sourceMappingURL=templateSpecVersions.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"templateSpecVersions.d.ts","sourceRoot":"","sources":["../../../src/operations/templateSpecVersions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EACL,mBAAmB,EAEnB,sCAAsC,EACtC,gDAAgD,EAChD,0CAA0C,EAC1C,wCAAwC,EACxC,kCAAkC,EAClC,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
+
/*
|
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 TemplateSpecVersions operations. */
|
14
|
+
export class TemplateSpecVersionsImpl {
|
15
|
+
/**
|
16
|
+
* Initialize a new instance of the class TemplateSpecVersions class.
|
17
|
+
* @param client Reference to the service client
|
18
|
+
*/
|
19
|
+
constructor(client) {
|
20
|
+
this.client = client;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* Lists all the Template Spec versions in the specified Template Spec.
|
24
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
25
|
+
* @param templateSpecName Name of the Template Spec.
|
26
|
+
* @param options The options parameters.
|
27
|
+
*/
|
28
|
+
list(resourceGroupName, templateSpecName, options) {
|
29
|
+
const iter = this.listPagingAll(resourceGroupName, templateSpecName, options);
|
30
|
+
return {
|
31
|
+
next() {
|
32
|
+
return iter.next();
|
33
|
+
},
|
34
|
+
[Symbol.asyncIterator]() {
|
35
|
+
return this;
|
36
|
+
},
|
37
|
+
byPage: () => {
|
38
|
+
return this.listPagingPage(resourceGroupName, templateSpecName, options);
|
39
|
+
}
|
40
|
+
};
|
41
|
+
}
|
42
|
+
listPagingPage(resourceGroupName, templateSpecName, options) {
|
43
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
44
|
+
let result = yield __await(this._list(resourceGroupName, templateSpecName, options));
|
45
|
+
yield yield __await(result.value || []);
|
46
|
+
let continuationToken = result.nextLink;
|
47
|
+
while (continuationToken) {
|
48
|
+
result = yield __await(this._listNext(resourceGroupName, templateSpecName, continuationToken, options));
|
49
|
+
continuationToken = result.nextLink;
|
50
|
+
yield yield __await(result.value || []);
|
51
|
+
}
|
52
|
+
});
|
53
|
+
}
|
54
|
+
listPagingAll(resourceGroupName, templateSpecName, options) {
|
55
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
56
|
+
var e_1, _a;
|
57
|
+
try {
|
58
|
+
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, templateSpecName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
59
|
+
const page = _c.value;
|
60
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
61
|
+
}
|
62
|
+
}
|
63
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
64
|
+
finally {
|
65
|
+
try {
|
66
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
67
|
+
}
|
68
|
+
finally { if (e_1) throw e_1.error; }
|
69
|
+
}
|
70
|
+
});
|
71
|
+
}
|
72
|
+
/**
|
73
|
+
* Creates or updates a Template Spec version.
|
74
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
75
|
+
* @param templateSpecName Name of the Template Spec.
|
76
|
+
* @param templateSpecVersion The version of the Template Spec.
|
77
|
+
* @param templateSpecVersionModel Template Spec Version supplied to the operation.
|
78
|
+
* @param options The options parameters.
|
79
|
+
*/
|
80
|
+
createOrUpdate(resourceGroupName, templateSpecName, templateSpecVersion, templateSpecVersionModel, options) {
|
81
|
+
return this.client.sendOperationRequest({
|
82
|
+
resourceGroupName,
|
83
|
+
templateSpecName,
|
84
|
+
templateSpecVersion,
|
85
|
+
templateSpecVersionModel,
|
86
|
+
options
|
87
|
+
}, createOrUpdateOperationSpec);
|
88
|
+
}
|
89
|
+
/**
|
90
|
+
* Updates Template Spec Version tags with specified values.
|
91
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
92
|
+
* @param templateSpecName Name of the Template Spec.
|
93
|
+
* @param templateSpecVersion The version of the Template Spec.
|
94
|
+
* @param options The options parameters.
|
95
|
+
*/
|
96
|
+
update(resourceGroupName, templateSpecName, templateSpecVersion, options) {
|
97
|
+
return this.client.sendOperationRequest({ resourceGroupName, templateSpecName, templateSpecVersion, options }, updateOperationSpec);
|
98
|
+
}
|
99
|
+
/**
|
100
|
+
* Gets a Template Spec version from a specific Template Spec.
|
101
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
102
|
+
* @param templateSpecName Name of the Template Spec.
|
103
|
+
* @param templateSpecVersion The version of the Template Spec.
|
104
|
+
* @param options The options parameters.
|
105
|
+
*/
|
106
|
+
get(resourceGroupName, templateSpecName, templateSpecVersion, options) {
|
107
|
+
return this.client.sendOperationRequest({ resourceGroupName, templateSpecName, templateSpecVersion, options }, getOperationSpec);
|
108
|
+
}
|
109
|
+
/**
|
110
|
+
* Deletes a specific version from a Template Spec. When operation completes, status code 200 returned
|
111
|
+
* without content.
|
112
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
113
|
+
* @param templateSpecName Name of the Template Spec.
|
114
|
+
* @param templateSpecVersion The version of the Template Spec.
|
115
|
+
* @param options The options parameters.
|
116
|
+
*/
|
117
|
+
delete(resourceGroupName, templateSpecName, templateSpecVersion, options) {
|
118
|
+
return this.client.sendOperationRequest({ resourceGroupName, templateSpecName, templateSpecVersion, options }, deleteOperationSpec);
|
119
|
+
}
|
120
|
+
/**
|
121
|
+
* Lists all the Template Spec versions in the specified Template Spec.
|
122
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
123
|
+
* @param templateSpecName Name of the Template Spec.
|
124
|
+
* @param options The options parameters.
|
125
|
+
*/
|
126
|
+
_list(resourceGroupName, templateSpecName, options) {
|
127
|
+
return this.client.sendOperationRequest({ resourceGroupName, templateSpecName, options }, listOperationSpec);
|
128
|
+
}
|
129
|
+
/**
|
130
|
+
* ListNext
|
131
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
132
|
+
* @param templateSpecName Name of the Template Spec.
|
133
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
134
|
+
* @param options The options parameters.
|
135
|
+
*/
|
136
|
+
_listNext(resourceGroupName, templateSpecName, nextLink, options) {
|
137
|
+
return this.client.sendOperationRequest({ resourceGroupName, templateSpecName, nextLink, options }, listNextOperationSpec);
|
138
|
+
}
|
139
|
+
}
|
140
|
+
// Operation Specifications
|
141
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
142
|
+
const createOrUpdateOperationSpec = {
|
143
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}",
|
144
|
+
httpMethod: "PUT",
|
145
|
+
responses: {
|
146
|
+
200: {
|
147
|
+
bodyMapper: Mappers.TemplateSpecVersion
|
148
|
+
},
|
149
|
+
201: {
|
150
|
+
bodyMapper: Mappers.TemplateSpecVersion
|
151
|
+
},
|
152
|
+
default: {
|
153
|
+
bodyMapper: Mappers.TemplateSpecsError
|
154
|
+
}
|
155
|
+
},
|
156
|
+
requestBody: Parameters.templateSpecVersionModel,
|
157
|
+
queryParameters: [Parameters.apiVersion],
|
158
|
+
urlParameters: [
|
159
|
+
Parameters.$host,
|
160
|
+
Parameters.subscriptionId,
|
161
|
+
Parameters.resourceGroupName,
|
162
|
+
Parameters.templateSpecName,
|
163
|
+
Parameters.templateSpecVersion
|
164
|
+
],
|
165
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
166
|
+
mediaType: "json",
|
167
|
+
serializer
|
168
|
+
};
|
169
|
+
const updateOperationSpec = {
|
170
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}",
|
171
|
+
httpMethod: "PATCH",
|
172
|
+
responses: {
|
173
|
+
200: {
|
174
|
+
bodyMapper: Mappers.TemplateSpecVersion
|
175
|
+
},
|
176
|
+
default: {
|
177
|
+
bodyMapper: Mappers.TemplateSpecsError
|
178
|
+
}
|
179
|
+
},
|
180
|
+
requestBody: Parameters.templateSpecVersionUpdateModel,
|
181
|
+
queryParameters: [Parameters.apiVersion],
|
182
|
+
urlParameters: [
|
183
|
+
Parameters.$host,
|
184
|
+
Parameters.subscriptionId,
|
185
|
+
Parameters.resourceGroupName,
|
186
|
+
Parameters.templateSpecName,
|
187
|
+
Parameters.templateSpecVersion
|
188
|
+
],
|
189
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
190
|
+
mediaType: "json",
|
191
|
+
serializer
|
192
|
+
};
|
193
|
+
const getOperationSpec = {
|
194
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}",
|
195
|
+
httpMethod: "GET",
|
196
|
+
responses: {
|
197
|
+
200: {
|
198
|
+
bodyMapper: Mappers.TemplateSpecVersion
|
199
|
+
},
|
200
|
+
default: {
|
201
|
+
bodyMapper: Mappers.TemplateSpecsError
|
202
|
+
}
|
203
|
+
},
|
204
|
+
queryParameters: [Parameters.apiVersion],
|
205
|
+
urlParameters: [
|
206
|
+
Parameters.$host,
|
207
|
+
Parameters.subscriptionId,
|
208
|
+
Parameters.resourceGroupName,
|
209
|
+
Parameters.templateSpecName,
|
210
|
+
Parameters.templateSpecVersion
|
211
|
+
],
|
212
|
+
headerParameters: [Parameters.accept],
|
213
|
+
serializer
|
214
|
+
};
|
215
|
+
const deleteOperationSpec = {
|
216
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}",
|
217
|
+
httpMethod: "DELETE",
|
218
|
+
responses: {
|
219
|
+
200: {},
|
220
|
+
204: {},
|
221
|
+
default: {
|
222
|
+
bodyMapper: Mappers.TemplateSpecsError
|
223
|
+
}
|
224
|
+
},
|
225
|
+
queryParameters: [Parameters.apiVersion],
|
226
|
+
urlParameters: [
|
227
|
+
Parameters.$host,
|
228
|
+
Parameters.subscriptionId,
|
229
|
+
Parameters.resourceGroupName,
|
230
|
+
Parameters.templateSpecName,
|
231
|
+
Parameters.templateSpecVersion
|
232
|
+
],
|
233
|
+
headerParameters: [Parameters.accept],
|
234
|
+
serializer
|
235
|
+
};
|
236
|
+
const listOperationSpec = {
|
237
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions",
|
238
|
+
httpMethod: "GET",
|
239
|
+
responses: {
|
240
|
+
200: {
|
241
|
+
bodyMapper: Mappers.TemplateSpecVersionsListResult
|
242
|
+
},
|
243
|
+
default: {
|
244
|
+
bodyMapper: Mappers.TemplateSpecsError
|
245
|
+
}
|
246
|
+
},
|
247
|
+
queryParameters: [Parameters.apiVersion],
|
248
|
+
urlParameters: [
|
249
|
+
Parameters.$host,
|
250
|
+
Parameters.subscriptionId,
|
251
|
+
Parameters.resourceGroupName,
|
252
|
+
Parameters.templateSpecName
|
253
|
+
],
|
254
|
+
headerParameters: [Parameters.accept],
|
255
|
+
serializer
|
256
|
+
};
|
257
|
+
const listNextOperationSpec = {
|
258
|
+
path: "{nextLink}",
|
259
|
+
httpMethod: "GET",
|
260
|
+
responses: {
|
261
|
+
200: {
|
262
|
+
bodyMapper: Mappers.TemplateSpecVersionsListResult
|
263
|
+
},
|
264
|
+
default: {
|
265
|
+
bodyMapper: Mappers.TemplateSpecsError
|
266
|
+
}
|
267
|
+
},
|
268
|
+
queryParameters: [Parameters.apiVersion],
|
269
|
+
urlParameters: [
|
270
|
+
Parameters.$host,
|
271
|
+
Parameters.subscriptionId,
|
272
|
+
Parameters.resourceGroupName,
|
273
|
+
Parameters.templateSpecName,
|
274
|
+
Parameters.nextLink
|
275
|
+
],
|
276
|
+
headerParameters: [Parameters.accept],
|
277
|
+
serializer
|
278
|
+
};
|
279
|
+
//# sourceMappingURL=templateSpecVersions.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"templateSpecVersions.js","sourceRoot":"","sources":["../../../src/operations/templateSpecVersions.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;AAiBnD,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,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;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,gBAAgB,EAChB,OAAO,CACR,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,gBAAwB,EACxB,OAAgD;;YAEhD,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAA,CAAC;YAC5E,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;YACzB,IAAI,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;YACxC,OAAO,iBAAiB,EAAE;gBACxB,MAAM,GAAG,cAAM,IAAI,CAAC,SAAS,CAC3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,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"}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
2
|
+
import { TemplateSpecs } from "../operationsInterfaces";
|
3
|
+
import { TemplateSpecsClient } from "../templateSpecsClient";
|
4
|
+
import { TemplateSpec, TemplateSpecsListBySubscriptionOptionalParams, TemplateSpecsListByResourceGroupOptionalParams, TemplateSpecsCreateOrUpdateOptionalParams, TemplateSpecsCreateOrUpdateResponse, TemplateSpecsUpdateOptionalParams, TemplateSpecsUpdateResponse, TemplateSpecsGetOptionalParams, TemplateSpecsGetResponse, TemplateSpecsDeleteOptionalParams } from "../models";
|
5
|
+
/** Class containing TemplateSpecs operations. */
|
6
|
+
export declare class TemplateSpecsImpl implements TemplateSpecs {
|
7
|
+
private readonly client;
|
8
|
+
/**
|
9
|
+
* Initialize a new instance of the class TemplateSpecs class.
|
10
|
+
* @param client Reference to the service client
|
11
|
+
*/
|
12
|
+
constructor(client: TemplateSpecsClient);
|
13
|
+
/**
|
14
|
+
* Lists all the Template Specs within the specified subscriptions.
|
15
|
+
* @param options The options parameters.
|
16
|
+
*/
|
17
|
+
listBySubscription(options?: TemplateSpecsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<TemplateSpec>;
|
18
|
+
private listBySubscriptionPagingPage;
|
19
|
+
private listBySubscriptionPagingAll;
|
20
|
+
/**
|
21
|
+
* Lists all the Template Specs within the specified resource group.
|
22
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
23
|
+
* @param options The options parameters.
|
24
|
+
*/
|
25
|
+
listByResourceGroup(resourceGroupName: string, options?: TemplateSpecsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<TemplateSpec>;
|
26
|
+
private listByResourceGroupPagingPage;
|
27
|
+
private listByResourceGroupPagingAll;
|
28
|
+
/**
|
29
|
+
* Creates or updates a Template Spec.
|
30
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
31
|
+
* @param templateSpecName Name of the Template Spec.
|
32
|
+
* @param templateSpec Template Spec supplied to the operation.
|
33
|
+
* @param options The options parameters.
|
34
|
+
*/
|
35
|
+
createOrUpdate(resourceGroupName: string, templateSpecName: string, templateSpec: TemplateSpec, options?: TemplateSpecsCreateOrUpdateOptionalParams): Promise<TemplateSpecsCreateOrUpdateResponse>;
|
36
|
+
/**
|
37
|
+
* Updates Template Spec tags with specified values.
|
38
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
39
|
+
* @param templateSpecName Name of the Template Spec.
|
40
|
+
* @param options The options parameters.
|
41
|
+
*/
|
42
|
+
update(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecsUpdateOptionalParams): Promise<TemplateSpecsUpdateResponse>;
|
43
|
+
/**
|
44
|
+
* Gets a Template Spec with a given name.
|
45
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
46
|
+
* @param templateSpecName Name of the Template Spec.
|
47
|
+
* @param options The options parameters.
|
48
|
+
*/
|
49
|
+
get(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecsGetOptionalParams): Promise<TemplateSpecsGetResponse>;
|
50
|
+
/**
|
51
|
+
* Deletes a Template Spec by name. When operation completes, status code 200 returned without content.
|
52
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
53
|
+
* @param templateSpecName Name of the Template Spec.
|
54
|
+
* @param options The options parameters.
|
55
|
+
*/
|
56
|
+
delete(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecsDeleteOptionalParams): Promise<void>;
|
57
|
+
/**
|
58
|
+
* Lists all the Template Specs within the specified subscriptions.
|
59
|
+
* @param options The options parameters.
|
60
|
+
*/
|
61
|
+
private _listBySubscription;
|
62
|
+
/**
|
63
|
+
* Lists all the Template Specs within the specified resource group.
|
64
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
65
|
+
* @param options The options parameters.
|
66
|
+
*/
|
67
|
+
private _listByResourceGroup;
|
68
|
+
/**
|
69
|
+
* ListBySubscriptionNext
|
70
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
71
|
+
* @param options The options parameters.
|
72
|
+
*/
|
73
|
+
private _listBySubscriptionNext;
|
74
|
+
/**
|
75
|
+
* ListByResourceGroupNext
|
76
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
77
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
78
|
+
* @param options The options parameters.
|
79
|
+
*/
|
80
|
+
private _listByResourceGroupNext;
|
81
|
+
}
|
82
|
+
//# sourceMappingURL=templateSpecs.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"templateSpecs.d.ts","sourceRoot":"","sources":["../../../src/operations/templateSpecs.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAIxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EACL,YAAY,EAEZ,6CAA6C,EAE7C,8CAA8C,EAC9C,yCAAyC,EACzC,mCAAmC,EACnC,iCAAiC,EACjC,2BAA2B,EAC3B,8BAA8B,EAC9B,wBAAwB,EACxB,iCAAiC,EAKlC,MAAM,WAAW,CAAC;AAGnB,iDAAiD;AACjD,qBAAa,iBAAkB,YAAW,aAAa;IACrD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C;;;OAGG;gBACS,MAAM,EAAE,mBAAmB;IAIvC;;;OAGG;IACI,kBAAkB,CACvB,OAAO,CAAC,EAAE,6CAA6C,GACtD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