@azure/arm-templatespecs 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +70 -84
  4. package/dist/index.js +1285 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/models/index.d.ts +306 -0
  13. package/dist-esm/src/models/index.d.ts.map +1 -0
  14. package/dist-esm/src/models/index.js +22 -0
  15. package/dist-esm/src/models/index.js.map +1 -0
  16. package/dist-esm/src/models/mappers.d.ts +15 -0
  17. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  18. package/{esm → dist-esm/src}/models/mappers.js +196 -227
  19. package/dist-esm/src/models/mappers.js.map +1 -0
  20. package/dist-esm/src/models/parameters.d.ts +16 -0
  21. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  22. package/dist-esm/src/models/parameters.js +144 -0
  23. package/dist-esm/src/models/parameters.js.map +1 -0
  24. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  25. package/dist-esm/src/operations/index.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/operations/index.js +1 -2
  27. package/dist-esm/src/operations/index.js.map +1 -0
  28. package/dist-esm/src/operations/templateSpecVersions.d.ts +72 -0
  29. package/dist-esm/src/operations/templateSpecVersions.d.ts.map +1 -0
  30. package/dist-esm/src/operations/templateSpecVersions.js +279 -0
  31. package/dist-esm/src/operations/templateSpecVersions.js.map +1 -0
  32. package/dist-esm/src/operations/templateSpecs.d.ts +82 -0
  33. package/dist-esm/src/operations/templateSpecs.d.ts.map +1 -0
  34. package/dist-esm/src/operations/templateSpecs.js +358 -0
  35. package/dist-esm/src/operations/templateSpecs.js.map +1 -0
  36. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  37. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  38. package/dist-esm/src/operationsInterfaces/index.js +10 -0
  39. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  40. package/dist-esm/src/operationsInterfaces/templateSpecVersions.d.ts +47 -0
  41. package/dist-esm/src/operationsInterfaces/templateSpecVersions.d.ts.map +1 -0
  42. package/dist-esm/src/operationsInterfaces/templateSpecVersions.js +9 -0
  43. package/dist-esm/src/operationsInterfaces/templateSpecVersions.js.map +1 -0
  44. package/dist-esm/src/operationsInterfaces/templateSpecs.d.ts +46 -0
  45. package/dist-esm/src/operationsInterfaces/templateSpecs.d.ts.map +1 -0
  46. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/templateSpecs.js} +2 -1
  47. package/dist-esm/src/operationsInterfaces/templateSpecs.js.map +1 -0
  48. package/dist-esm/src/templateSpecsClient.d.ts +19 -0
  49. package/dist-esm/src/templateSpecsClient.d.ts.map +1 -0
  50. package/dist-esm/src/templateSpecsClient.js +52 -0
  51. package/dist-esm/src/templateSpecsClient.js.map +1 -0
  52. package/dist-esm/test/sampleTest.d.ts +2 -0
  53. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  54. package/dist-esm/test/sampleTest.js +40 -0
  55. package/dist-esm/test/sampleTest.js.map +1 -0
  56. package/package.json +63 -32
  57. package/review/arm-templatespecs.api.md +280 -0
  58. package/rollup.config.js +181 -30
  59. package/src/index.ts +12 -0
  60. package/src/models/index.ts +233 -494
  61. package/src/models/mappers.ts +208 -239
  62. package/src/models/parameters.ts +104 -45
  63. package/src/operations/index.ts +1 -2
  64. package/src/operations/templateSpecVersions.ts +222 -254
  65. package/src/operations/templateSpecs.ts +276 -315
  66. package/src/operationsInterfaces/index.ts +10 -0
  67. package/src/operationsInterfaces/templateSpecVersions.ts +91 -0
  68. package/src/operationsInterfaces/templateSpecs.ts +88 -0
  69. package/src/templateSpecsClient.ts +62 -34
  70. package/tsconfig.json +3 -3
  71. package/types/arm-templatespecs.d.ts +457 -0
  72. package/types/tsdoc-metadata.json +11 -0
  73. package/dist/arm-templatespecs.js +0 -1294
  74. package/dist/arm-templatespecs.js.map +0 -1
  75. package/dist/arm-templatespecs.min.js +0 -1
  76. package/dist/arm-templatespecs.min.js.map +0 -1
  77. package/esm/models/index.d.ts +0 -571
  78. package/esm/models/index.d.ts.map +0 -1
  79. package/esm/models/index.js.map +0 -1
  80. package/esm/models/mappers.d.ts +0 -17
  81. package/esm/models/mappers.d.ts.map +0 -1
  82. package/esm/models/mappers.js.map +0 -1
  83. package/esm/models/parameters.d.ts +0 -10
  84. package/esm/models/parameters.d.ts.map +0 -1
  85. package/esm/models/parameters.js +0 -107
  86. package/esm/models/parameters.js.map +0 -1
  87. package/esm/models/templateSpecVersionsMappers.d.ts +0 -2
  88. package/esm/models/templateSpecVersionsMappers.d.ts.map +0 -1
  89. package/esm/models/templateSpecVersionsMappers.js +0 -9
  90. package/esm/models/templateSpecVersionsMappers.js.map +0 -1
  91. package/esm/models/templateSpecsMappers.d.ts +0 -2
  92. package/esm/models/templateSpecsMappers.d.ts.map +0 -1
  93. package/esm/models/templateSpecsMappers.js +0 -9
  94. package/esm/models/templateSpecsMappers.js.map +0 -1
  95. package/esm/operations/index.d.ts.map +0 -1
  96. package/esm/operations/index.js.map +0 -1
  97. package/esm/operations/templateSpecVersions.d.ts +0 -152
  98. package/esm/operations/templateSpecVersions.d.ts.map +0 -1
  99. package/esm/operations/templateSpecVersions.js +0 -233
  100. package/esm/operations/templateSpecVersions.js.map +0 -1
  101. package/esm/operations/templateSpecs.d.ts +0 -170
  102. package/esm/operations/templateSpecs.d.ts.map +0 -1
  103. package/esm/operations/templateSpecs.js +0 -284
  104. package/esm/operations/templateSpecs.js.map +0 -1
  105. package/esm/templateSpecsClient.d.ts +0 -25
  106. package/esm/templateSpecsClient.d.ts.map +0 -1
  107. package/esm/templateSpecsClient.js +0 -38
  108. package/esm/templateSpecsClient.js.map +0 -1
  109. package/esm/templateSpecsClientContext.d.ts +0 -22
  110. package/esm/templateSpecsClientContext.d.ts.map +0 -1
  111. package/esm/templateSpecsClientContext.js +0 -60
  112. package/esm/templateSpecsClientContext.js.map +0 -1
  113. package/src/models/templateSpecVersionsMappers.ts +0 -23
  114. package/src/models/templateSpecsMappers.ts +0 -23
  115. package/src/templateSpecsClientContext.ts +0 -67
@@ -6,611 +6,350 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
10
- import * as msRest from "@azure/ms-rest-js";
9
+ import * as coreClient from "@azure/core-client";
11
10
 
12
- export { BaseResource, CloudError };
13
-
14
- /**
15
- * High-level information about a Template Spec version.
16
- */
11
+ /** High-level information about a Template Spec version. */
17
12
  export interface TemplateSpecVersionInfo {
18
13
  /**
19
14
  * Template Spec version description.
20
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
15
+ * NOTE: This property will not be serialized. It can only be populated by the server.
21
16
  */
22
17
  readonly description?: string;
23
18
  /**
24
19
  * The timestamp of when the version was created.
25
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
20
+ * NOTE: This property will not be serialized. It can only be populated by the server.
26
21
  */
27
22
  readonly timeCreated?: Date;
28
23
  /**
29
24
  * The timestamp of when the version was last modified.
30
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
25
+ * NOTE: This property will not be serialized. It can only be populated by the server.
31
26
  */
32
27
  readonly timeModified?: Date;
33
28
  }
34
29
 
35
- /**
36
- * Common properties for all Azure resources.
37
- */
38
- export interface AzureResourceBase extends BaseResource {
30
+ /** Common properties for all Azure resources. */
31
+ export interface AzureResourceBase {
39
32
  /**
40
33
  * String Id used to locate any resource on Azure.
41
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
34
+ * NOTE: This property will not be serialized. It can only be populated by the server.
42
35
  */
43
36
  readonly id?: string;
44
37
  /**
45
38
  * Name of this resource.
46
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
39
+ * NOTE: This property will not be serialized. It can only be populated by the server.
47
40
  */
48
41
  readonly name?: string;
49
42
  /**
50
43
  * Type of this resource.
51
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
44
+ * NOTE: This property will not be serialized. It can only be populated by the server.
52
45
  */
53
46
  readonly type?: string;
54
47
  /**
55
48
  * Azure Resource Manager metadata containing createdBy and modifiedBy information.
56
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
49
+ * NOTE: This property will not be serialized. It can only be populated by the server.
57
50
  */
58
51
  readonly systemData?: SystemData;
59
52
  }
60
53
 
61
- /**
62
- * Template Spec object.
63
- */
64
- export interface TemplateSpec extends AzureResourceBase {
65
- /**
66
- * The location of the Template Spec. It cannot be changed after Template Spec creation. It must
67
- * be one of the supported Azure locations.
68
- */
69
- location: string;
70
- /**
71
- * Template Spec description.
72
- */
73
- description?: string;
74
- /**
75
- * Template Spec display name.
76
- */
77
- displayName?: string;
78
- /**
79
- * The Template Spec metadata. Metadata is an open-ended object and is typically a collection of
80
- * key-value pairs.
81
- */
82
- metadata?: any;
83
- /**
84
- * High-level information about the versions within this Template Spec. The keys are the version
85
- * names. Only populated if the $expand query parameter is set to 'versions'.
86
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
87
- */
88
- readonly versions?: { [propertyName: string]: TemplateSpecVersionInfo };
89
- /**
90
- * Resource tags.
91
- */
92
- tags?: { [propertyName: string]: string };
93
- }
94
-
95
- /**
96
- * Template Spec properties to be updated (only tags are currently supported).
97
- */
98
- export interface TemplateSpecUpdateModel extends AzureResourceBase {
99
- /**
100
- * Resource tags.
101
- */
102
- tags?: { [propertyName: string]: string };
103
- }
104
-
105
- /**
106
- * Template Spec Version properties to be updated (only tags are currently supported).
107
- */
108
- export interface TemplateSpecVersionUpdateModel extends AzureResourceBase {
109
- /**
110
- * Resource tags.
111
- */
112
- tags?: { [propertyName: string]: string };
113
- }
114
-
115
- /**
116
- * Metadata pertaining to creation and last modification of the resource.
117
- */
54
+ /** Metadata pertaining to creation and last modification of the resource. */
118
55
  export interface SystemData {
119
- /**
120
- * The identity that created the resource.
121
- */
56
+ /** The identity that created the resource. */
122
57
  createdBy?: string;
123
- /**
124
- * The type of identity that created the resource. Possible values include: 'User',
125
- * 'Application', 'ManagedIdentity', 'Key'
126
- */
58
+ /** The type of identity that created the resource. */
127
59
  createdByType?: CreatedByType;
128
- /**
129
- * The timestamp of resource creation (UTC).
130
- */
60
+ /** The timestamp of resource creation (UTC). */
131
61
  createdAt?: Date;
132
- /**
133
- * The identity that last modified the resource.
134
- */
62
+ /** The identity that last modified the resource. */
135
63
  lastModifiedBy?: string;
136
- /**
137
- * The type of identity that last modified the resource. Possible values include: 'User',
138
- * 'Application', 'ManagedIdentity', 'Key'
139
- */
64
+ /** The type of identity that last modified the resource. */
140
65
  lastModifiedByType?: CreatedByType;
141
- /**
142
- * The timestamp of resource last modification (UTC)
143
- */
66
+ /** The timestamp of resource last modification (UTC) */
144
67
  lastModifiedAt?: Date;
145
68
  }
146
69
 
147
- /**
148
- * Represents a Template Spec artifact containing an embedded Azure Resource Manager template for
149
- * use as a linked template.
150
- */
151
- export interface LinkedTemplateArtifact {
152
- /**
153
- * A filesystem safe relative path of the artifact.
154
- */
155
- path: string;
156
- /**
157
- * The Azure Resource Manager template.
158
- */
159
- template: any;
70
+ /** Template Specs error response. */
71
+ export interface TemplateSpecsError {
72
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */
73
+ error?: ErrorResponse;
160
74
  }
161
75
 
162
- /**
163
- * Template Spec Version object.
164
- */
165
- export interface TemplateSpecVersion extends AzureResourceBase {
166
- /**
167
- * The location of the Template Spec Version. It must match the location of the parent Template
168
- * Spec.
169
- */
170
- location: string;
171
- /**
172
- * Template Spec version description.
173
- */
174
- description?: string;
76
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */
77
+ export interface ErrorResponse {
175
78
  /**
176
- * An array of linked template artifacts.
79
+ * The error code.
80
+ * NOTE: This property will not be serialized. It can only be populated by the server.
177
81
  */
178
- linkedTemplates?: LinkedTemplateArtifact[];
82
+ readonly code?: string;
179
83
  /**
180
- * The version metadata. Metadata is an open-ended object and is typically a collection of
181
- * key-value pairs.
84
+ * The error message.
85
+ * NOTE: This property will not be serialized. It can only be populated by the server.
182
86
  */
183
- metadata?: any;
87
+ readonly message?: string;
184
88
  /**
185
- * The main Azure Resource Manager template content.
89
+ * The error target.
90
+ * NOTE: This property will not be serialized. It can only be populated by the server.
186
91
  */
187
- mainTemplate?: any;
92
+ readonly target?: string;
188
93
  /**
189
- * The Azure Resource Manager template UI definition content.
94
+ * The error details.
95
+ * NOTE: This property will not be serialized. It can only be populated by the server.
190
96
  */
191
- uiFormDefinition?: any;
97
+ readonly details?: ErrorResponse[];
192
98
  /**
193
- * Resource tags.
99
+ * The error additional info.
100
+ * NOTE: This property will not be serialized. It can only be populated by the server.
194
101
  */
195
- tags?: { [propertyName: string]: string };
102
+ readonly additionalInfo?: ErrorAdditionalInfo[];
196
103
  }
197
104
 
198
- /**
199
- * The resource management error additional info.
200
- */
105
+ /** The resource management error additional info. */
201
106
  export interface ErrorAdditionalInfo {
202
107
  /**
203
108
  * The additional info type.
204
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
109
+ * NOTE: This property will not be serialized. It can only be populated by the server.
205
110
  */
206
111
  readonly type?: string;
207
112
  /**
208
113
  * The additional info.
209
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
114
+ * NOTE: This property will not be serialized. It can only be populated by the server.
210
115
  */
211
- readonly info?: any;
116
+ readonly info?: Record<string, unknown>;
212
117
  }
213
118
 
214
- /**
215
- * Common error response for all Azure Resource Manager APIs to return error details for failed
216
- * operations. (This also follows the OData error response format.)
217
- * @summary Error Response
218
- */
219
- export interface ErrorResponse {
220
- /**
221
- * The error code.
222
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
223
- */
224
- readonly code?: string;
119
+ /** List of Template Specs. */
120
+ export interface TemplateSpecsListResult {
121
+ /** An array of Template Specs. */
122
+ value?: TemplateSpec[];
225
123
  /**
226
- * The error message.
227
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
228
- */
229
- readonly message?: string;
230
- /**
231
- * The error target.
232
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
233
- */
234
- readonly target?: string;
235
- /**
236
- * The error details.
237
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
238
- */
239
- readonly details?: ErrorResponse[];
240
- /**
241
- * The error additional info.
242
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
124
+ * The URL to use for getting the next set of results.
125
+ * NOTE: This property will not be serialized. It can only be populated by the server.
243
126
  */
244
- readonly additionalInfo?: ErrorAdditionalInfo[];
127
+ readonly nextLink?: string;
245
128
  }
246
129
 
247
- /**
248
- * Template Specs error response.
249
- */
250
- export interface TemplateSpecsError {
251
- error?: ErrorResponse;
130
+ /** Represents a Template Spec artifact containing an embedded Azure Resource Manager template for use as a linked template. */
131
+ export interface LinkedTemplateArtifact {
132
+ /** A filesystem safe relative path of the artifact. */
133
+ path: string;
134
+ /** The Azure Resource Manager template. */
135
+ template: Record<string, unknown>;
252
136
  }
253
137
 
254
- /**
255
- * Optional Parameters.
256
- */
257
- export interface TemplateSpecsUpdateOptionalParams extends msRest.RequestOptionsBase {
138
+ /** List of Template Specs versions */
139
+ export interface TemplateSpecVersionsListResult {
140
+ /** An array of Template Spec versions. */
141
+ value?: TemplateSpecVersion[];
258
142
  /**
259
- * Template Spec resource with the tags to be updated.
143
+ * The URL to use for getting the next set of results.
144
+ * NOTE: This property will not be serialized. It can only be populated by the server.
260
145
  */
261
- templateSpec?: TemplateSpecUpdateModel;
146
+ readonly nextLink?: string;
262
147
  }
263
148
 
264
- /**
265
- * Optional Parameters.
266
- */
267
- export interface TemplateSpecsGetOptionalParams extends msRest.RequestOptionsBase {
149
+ /** Template Spec object. */
150
+ export type TemplateSpec = AzureResourceBase & {
151
+ /** The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations. */
152
+ location: string;
153
+ /** Resource tags. */
154
+ tags?: { [propertyName: string]: string };
155
+ /** Template Spec description. */
156
+ description?: string;
157
+ /** Template Spec display name. */
158
+ displayName?: string;
159
+ /** The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. */
160
+ metadata?: Record<string, unknown>;
268
161
  /**
269
- * Allows for expansion of additional Template Spec details in the response. Optional. Possible
270
- * values include: 'versions'
162
+ * High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'.
163
+ * NOTE: This property will not be serialized. It can only be populated by the server.
271
164
  */
272
- expand?: TemplateSpecExpandKind;
165
+ readonly versions?: { [propertyName: string]: TemplateSpecVersionInfo };
166
+ };
167
+
168
+ /** Template Spec properties to be updated (only tags are currently supported). */
169
+ export type TemplateSpecUpdateModel = AzureResourceBase & {
170
+ /** Resource tags. */
171
+ tags?: { [propertyName: string]: string };
172
+ };
173
+
174
+ /** Template Spec Version object. */
175
+ export type TemplateSpecVersion = AzureResourceBase & {
176
+ /** The location of the Template Spec Version. It must match the location of the parent Template Spec. */
177
+ location: string;
178
+ /** Resource tags. */
179
+ tags?: { [propertyName: string]: string };
180
+ /** Template Spec version description. */
181
+ description?: string;
182
+ /** An array of linked template artifacts. */
183
+ linkedTemplates?: LinkedTemplateArtifact[];
184
+ /** The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. */
185
+ metadata?: Record<string, unknown>;
186
+ /** The main Azure Resource Manager template content. */
187
+ mainTemplate?: Record<string, unknown>;
188
+ /** The Azure Resource Manager template UI definition content. */
189
+ uiFormDefinition?: Record<string, unknown>;
190
+ };
191
+
192
+ /** Template Spec Version properties to be updated (only tags are currently supported). */
193
+ export type TemplateSpecVersionUpdateModel = AzureResourceBase & {
194
+ /** Resource tags. */
195
+ tags?: { [propertyName: string]: string };
196
+ };
197
+
198
+ /** Known values of {@link CreatedByType} that the service accepts. */
199
+ export enum KnownCreatedByType {
200
+ User = "User",
201
+ Application = "Application",
202
+ ManagedIdentity = "ManagedIdentity",
203
+ Key = "Key"
273
204
  }
274
205
 
275
206
  /**
276
- * Optional Parameters.
207
+ * Defines values for CreatedByType. \
208
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
209
+ * this enum contains the known values that the service supports.
210
+ * ### Known values supported by the service
211
+ * **User** \
212
+ * **Application** \
213
+ * **ManagedIdentity** \
214
+ * **Key**
277
215
  */
278
- export interface TemplateSpecsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase {
279
- /**
280
- * Allows for expansion of additional Template Spec details in the response. Optional. Possible
281
- * values include: 'versions'
282
- */
283
- expand?: TemplateSpecExpandKind;
216
+ export type CreatedByType = string;
217
+
218
+ /** Known values of {@link TemplateSpecExpandKind} that the service accepts. */
219
+ export enum KnownTemplateSpecExpandKind {
220
+ /** Includes version information with the Template Spec. */
221
+ Versions = "versions"
284
222
  }
285
223
 
286
224
  /**
287
- * Optional Parameters.
225
+ * Defines values for TemplateSpecExpandKind. \
226
+ * {@link KnownTemplateSpecExpandKind} can be used interchangeably with TemplateSpecExpandKind,
227
+ * this enum contains the known values that the service supports.
228
+ * ### Known values supported by the service
229
+ * **versions**: Includes version information with the Template Spec.
288
230
  */
289
- export interface TemplateSpecsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase {
290
- /**
291
- * Allows for expansion of additional Template Spec details in the response. Optional. Possible
292
- * values include: 'versions'
293
- */
294
- expand?: TemplateSpecExpandKind;
231
+ export type TemplateSpecExpandKind = string;
232
+
233
+ /** Optional parameters. */
234
+ export interface TemplateSpecsCreateOrUpdateOptionalParams
235
+ extends coreClient.OperationOptions {}
236
+
237
+ /** Contains response data for the createOrUpdate operation. */
238
+ export type TemplateSpecsCreateOrUpdateResponse = TemplateSpec;
239
+
240
+ /** Optional parameters. */
241
+ export interface TemplateSpecsUpdateOptionalParams
242
+ extends coreClient.OperationOptions {
243
+ /** Template Spec resource with the tags to be updated. */
244
+ templateSpec?: TemplateSpecUpdateModel;
295
245
  }
296
246
 
297
- /**
298
- * Optional Parameters.
299
- */
300
- export interface TemplateSpecsListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase {
301
- /**
302
- * Allows for expansion of additional Template Spec details in the response. Optional. Possible
303
- * values include: 'versions'
304
- */
247
+ /** Contains response data for the update operation. */
248
+ export type TemplateSpecsUpdateResponse = TemplateSpec;
249
+
250
+ /** Optional parameters. */
251
+ export interface TemplateSpecsGetOptionalParams
252
+ extends coreClient.OperationOptions {
253
+ /** Allows for expansion of additional Template Spec details in the response. Optional. */
305
254
  expand?: TemplateSpecExpandKind;
306
255
  }
307
256
 
308
- /**
309
- * Optional Parameters.
310
- */
311
- export interface TemplateSpecsListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase {
312
- /**
313
- * Allows for expansion of additional Template Spec details in the response. Optional. Possible
314
- * values include: 'versions'
315
- */
257
+ /** Contains response data for the get operation. */
258
+ export type TemplateSpecsGetResponse = TemplateSpec;
259
+
260
+ /** Optional parameters. */
261
+ export interface TemplateSpecsDeleteOptionalParams
262
+ extends coreClient.OperationOptions {}
263
+
264
+ /** Optional parameters. */
265
+ export interface TemplateSpecsListBySubscriptionOptionalParams
266
+ extends coreClient.OperationOptions {
267
+ /** Allows for expansion of additional Template Spec details in the response. Optional. */
316
268
  expand?: TemplateSpecExpandKind;
317
269
  }
318
270
 
319
- /**
320
- * Optional Parameters.
321
- */
322
- export interface TemplateSpecVersionsUpdateOptionalParams extends msRest.RequestOptionsBase {
323
- /**
324
- * Template Spec Version resource with the tags to be updated.
325
- */
326
- templateSpecVersionUpdateModel?: TemplateSpecVersionUpdateModel;
327
- }
271
+ /** Contains response data for the listBySubscription operation. */
272
+ export type TemplateSpecsListBySubscriptionResponse = TemplateSpecsListResult;
328
273
 
329
- /**
330
- * An interface representing TemplateSpecsClientOptions.
331
- */
332
- export interface TemplateSpecsClientOptions extends AzureServiceClientOptions {
333
- baseUri?: string;
274
+ /** Optional parameters. */
275
+ export interface TemplateSpecsListByResourceGroupOptionalParams
276
+ extends coreClient.OperationOptions {
277
+ /** Allows for expansion of additional Template Spec details in the response. Optional. */
278
+ expand?: TemplateSpecExpandKind;
334
279
  }
335
280
 
336
- /**
337
- * @interface
338
- * List of Template Specs.
339
- * @extends Array<TemplateSpec>
340
- */
341
- export interface TemplateSpecsListResult extends Array<TemplateSpec> {
342
- /**
343
- * The URL to use for getting the next set of results.
344
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
345
- */
346
- readonly nextLink?: string;
347
- }
281
+ /** Contains response data for the listByResourceGroup operation. */
282
+ export type TemplateSpecsListByResourceGroupResponse = TemplateSpecsListResult;
348
283
 
349
- /**
350
- * @interface
351
- * List of Template Specs versions
352
- * @extends Array<TemplateSpecVersion>
353
- */
354
- export interface TemplateSpecVersionsListResult extends Array<TemplateSpecVersion> {
355
- /**
356
- * The URL to use for getting the next set of results.
357
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
358
- */
359
- readonly nextLink?: string;
284
+ /** Optional parameters. */
285
+ export interface TemplateSpecsListBySubscriptionNextOptionalParams
286
+ extends coreClient.OperationOptions {
287
+ /** Allows for expansion of additional Template Spec details in the response. Optional. */
288
+ expand?: TemplateSpecExpandKind;
360
289
  }
361
290
 
362
- /**
363
- * Defines values for CreatedByType.
364
- * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'
365
- * @readonly
366
- * @enum {string}
367
- */
368
- export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key';
291
+ /** Contains response data for the listBySubscriptionNext operation. */
292
+ export type TemplateSpecsListBySubscriptionNextResponse = TemplateSpecsListResult;
369
293
 
370
- /**
371
- * Defines values for TemplateSpecExpandKind.
372
- * Possible values include: 'versions'
373
- * @readonly
374
- * @enum {string}
375
- */
376
- export type TemplateSpecExpandKind = 'versions';
294
+ /** Optional parameters. */
295
+ export interface TemplateSpecsListByResourceGroupNextOptionalParams
296
+ extends coreClient.OperationOptions {
297
+ /** Allows for expansion of additional Template Spec details in the response. Optional. */
298
+ expand?: TemplateSpecExpandKind;
299
+ }
377
300
 
378
- /**
379
- * Contains response data for the createOrUpdate operation.
380
- */
381
- export type TemplateSpecsCreateOrUpdateResponse = TemplateSpec & {
382
- /**
383
- * The underlying HTTP response.
384
- */
385
- _response: msRest.HttpResponse & {
386
- /**
387
- * The response body as text (string format)
388
- */
389
- bodyAsText: string;
390
-
391
- /**
392
- * The response body as parsed JSON or XML
393
- */
394
- parsedBody: TemplateSpec;
395
- };
396
- };
301
+ /** Contains response data for the listByResourceGroupNext operation. */
302
+ export type TemplateSpecsListByResourceGroupNextResponse = TemplateSpecsListResult;
397
303
 
398
- /**
399
- * Contains response data for the update operation.
400
- */
401
- export type TemplateSpecsUpdateResponse = TemplateSpec & {
402
- /**
403
- * The underlying HTTP response.
404
- */
405
- _response: msRest.HttpResponse & {
406
- /**
407
- * The response body as text (string format)
408
- */
409
- bodyAsText: string;
410
-
411
- /**
412
- * The response body as parsed JSON or XML
413
- */
414
- parsedBody: TemplateSpec;
415
- };
416
- };
304
+ /** Optional parameters. */
305
+ export interface TemplateSpecVersionsCreateOrUpdateOptionalParams
306
+ extends coreClient.OperationOptions {}
417
307
 
418
- /**
419
- * Contains response data for the get operation.
420
- */
421
- export type TemplateSpecsGetResponse = TemplateSpec & {
422
- /**
423
- * The underlying HTTP response.
424
- */
425
- _response: msRest.HttpResponse & {
426
- /**
427
- * The response body as text (string format)
428
- */
429
- bodyAsText: string;
430
-
431
- /**
432
- * The response body as parsed JSON or XML
433
- */
434
- parsedBody: TemplateSpec;
435
- };
436
- };
308
+ /** Contains response data for the createOrUpdate operation. */
309
+ export type TemplateSpecVersionsCreateOrUpdateResponse = TemplateSpecVersion;
437
310
 
438
- /**
439
- * Contains response data for the listBySubscription operation.
440
- */
441
- export type TemplateSpecsListBySubscriptionResponse = TemplateSpecsListResult & {
442
- /**
443
- * The underlying HTTP response.
444
- */
445
- _response: msRest.HttpResponse & {
446
- /**
447
- * The response body as text (string format)
448
- */
449
- bodyAsText: string;
450
-
451
- /**
452
- * The response body as parsed JSON or XML
453
- */
454
- parsedBody: TemplateSpecsListResult;
455
- };
456
- };
311
+ /** Optional parameters. */
312
+ export interface TemplateSpecVersionsUpdateOptionalParams
313
+ extends coreClient.OperationOptions {
314
+ /** Template Spec Version resource with the tags to be updated. */
315
+ templateSpecVersionUpdateModel?: TemplateSpecVersionUpdateModel;
316
+ }
457
317
 
458
- /**
459
- * Contains response data for the listByResourceGroup operation.
460
- */
461
- export type TemplateSpecsListByResourceGroupResponse = TemplateSpecsListResult & {
462
- /**
463
- * The underlying HTTP response.
464
- */
465
- _response: msRest.HttpResponse & {
466
- /**
467
- * The response body as text (string format)
468
- */
469
- bodyAsText: string;
470
-
471
- /**
472
- * The response body as parsed JSON or XML
473
- */
474
- parsedBody: TemplateSpecsListResult;
475
- };
476
- };
318
+ /** Contains response data for the update operation. */
319
+ export type TemplateSpecVersionsUpdateResponse = TemplateSpecVersion;
477
320
 
478
- /**
479
- * Contains response data for the listBySubscriptionNext operation.
480
- */
481
- export type TemplateSpecsListBySubscriptionNextResponse = TemplateSpecsListResult & {
482
- /**
483
- * The underlying HTTP response.
484
- */
485
- _response: msRest.HttpResponse & {
486
- /**
487
- * The response body as text (string format)
488
- */
489
- bodyAsText: string;
490
-
491
- /**
492
- * The response body as parsed JSON or XML
493
- */
494
- parsedBody: TemplateSpecsListResult;
495
- };
496
- };
321
+ /** Optional parameters. */
322
+ export interface TemplateSpecVersionsGetOptionalParams
323
+ extends coreClient.OperationOptions {}
497
324
 
498
- /**
499
- * Contains response data for the listByResourceGroupNext operation.
500
- */
501
- export type TemplateSpecsListByResourceGroupNextResponse = TemplateSpecsListResult & {
502
- /**
503
- * The underlying HTTP response.
504
- */
505
- _response: msRest.HttpResponse & {
506
- /**
507
- * The response body as text (string format)
508
- */
509
- bodyAsText: string;
510
-
511
- /**
512
- * The response body as parsed JSON or XML
513
- */
514
- parsedBody: TemplateSpecsListResult;
515
- };
516
- };
325
+ /** Contains response data for the get operation. */
326
+ export type TemplateSpecVersionsGetResponse = TemplateSpecVersion;
517
327
 
518
- /**
519
- * Contains response data for the createOrUpdate operation.
520
- */
521
- export type TemplateSpecVersionsCreateOrUpdateResponse = TemplateSpecVersion & {
522
- /**
523
- * The underlying HTTP response.
524
- */
525
- _response: msRest.HttpResponse & {
526
- /**
527
- * The response body as text (string format)
528
- */
529
- bodyAsText: string;
530
-
531
- /**
532
- * The response body as parsed JSON or XML
533
- */
534
- parsedBody: TemplateSpecVersion;
535
- };
536
- };
328
+ /** Optional parameters. */
329
+ export interface TemplateSpecVersionsDeleteOptionalParams
330
+ extends coreClient.OperationOptions {}
537
331
 
538
- /**
539
- * Contains response data for the update operation.
540
- */
541
- export type TemplateSpecVersionsUpdateResponse = TemplateSpecVersion & {
542
- /**
543
- * The underlying HTTP response.
544
- */
545
- _response: msRest.HttpResponse & {
546
- /**
547
- * The response body as text (string format)
548
- */
549
- bodyAsText: string;
550
-
551
- /**
552
- * The response body as parsed JSON or XML
553
- */
554
- parsedBody: TemplateSpecVersion;
555
- };
556
- };
332
+ /** Optional parameters. */
333
+ export interface TemplateSpecVersionsListOptionalParams
334
+ extends coreClient.OperationOptions {}
557
335
 
558
- /**
559
- * Contains response data for the get operation.
560
- */
561
- export type TemplateSpecVersionsGetResponse = TemplateSpecVersion & {
562
- /**
563
- * The underlying HTTP response.
564
- */
565
- _response: msRest.HttpResponse & {
566
- /**
567
- * The response body as text (string format)
568
- */
569
- bodyAsText: string;
570
-
571
- /**
572
- * The response body as parsed JSON or XML
573
- */
574
- parsedBody: TemplateSpecVersion;
575
- };
576
- };
336
+ /** Contains response data for the list operation. */
337
+ export type TemplateSpecVersionsListResponse = TemplateSpecVersionsListResult;
577
338
 
578
- /**
579
- * Contains response data for the list operation.
580
- */
581
- export type TemplateSpecVersionsListResponse = TemplateSpecVersionsListResult & {
582
- /**
583
- * The underlying HTTP response.
584
- */
585
- _response: msRest.HttpResponse & {
586
- /**
587
- * The response body as text (string format)
588
- */
589
- bodyAsText: string;
590
-
591
- /**
592
- * The response body as parsed JSON or XML
593
- */
594
- parsedBody: TemplateSpecVersionsListResult;
595
- };
596
- };
339
+ /** Optional parameters. */
340
+ export interface TemplateSpecVersionsListNextOptionalParams
341
+ extends coreClient.OperationOptions {}
597
342
 
598
- /**
599
- * Contains response data for the listNext operation.
600
- */
601
- export type TemplateSpecVersionsListNextResponse = TemplateSpecVersionsListResult & {
602
- /**
603
- * The underlying HTTP response.
604
- */
605
- _response: msRest.HttpResponse & {
606
- /**
607
- * The response body as text (string format)
608
- */
609
- bodyAsText: string;
610
-
611
- /**
612
- * The response body as parsed JSON or XML
613
- */
614
- parsedBody: TemplateSpecVersionsListResult;
615
- };
616
- };
343
+ /** Contains response data for the listNext operation. */
344
+ export type TemplateSpecVersionsListNextResponse = TemplateSpecVersionsListResult;
345
+
346
+ /** Optional parameters. */
347
+ export interface TemplateSpecsClientOptionalParams
348
+ extends coreClient.ServiceClientOptions {
349
+ /** server parameter */
350
+ $host?: string;
351
+ /** Api Version */
352
+ apiVersion?: string;
353
+ /** Overrides client endpoint. */
354
+ endpoint?: string;
355
+ }