@azure/arm-resources 6.1.0-alpha.20250723.1 → 7.0.0-alpha.20250724.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.
Files changed (203) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/browser/models/index.d.ts +12 -1202
  3. package/dist/browser/models/index.d.ts.map +1 -1
  4. package/dist/browser/models/index.js +0 -76
  5. package/dist/browser/models/index.js.map +1 -1
  6. package/dist/browser/models/mappers.d.ts +0 -42
  7. package/dist/browser/models/mappers.d.ts.map +1 -1
  8. package/dist/browser/models/mappers.js +235 -1749
  9. package/dist/browser/models/mappers.js.map +1 -1
  10. package/dist/browser/models/parameters.d.ts +14 -21
  11. package/dist/browser/models/parameters.d.ts.map +1 -1
  12. package/dist/browser/models/parameters.js +46 -98
  13. package/dist/browser/models/parameters.js.map +1 -1
  14. package/dist/browser/operations/index.d.ts +0 -2
  15. package/dist/browser/operations/index.d.ts.map +1 -1
  16. package/dist/browser/operations/index.js +0 -2
  17. package/dist/browser/operations/index.js.map +1 -1
  18. package/dist/browser/operations/providerResourceTypes.js +1 -1
  19. package/dist/browser/operations/providerResourceTypes.js.map +1 -1
  20. package/dist/browser/operations/providers.js +5 -5
  21. package/dist/browser/operations/providers.js.map +1 -1
  22. package/dist/browser/operations/resourceGroups.js +3 -3
  23. package/dist/browser/operations/resourceGroups.js.map +1 -1
  24. package/dist/browser/operations/resources.js +13 -13
  25. package/dist/browser/operations/resources.js.map +1 -1
  26. package/dist/browser/operations/tagsOperations.js +2 -2
  27. package/dist/browser/operations/tagsOperations.js.map +1 -1
  28. package/dist/browser/operationsInterfaces/index.d.ts +0 -2
  29. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
  30. package/dist/browser/operationsInterfaces/index.js +0 -2
  31. package/dist/browser/operationsInterfaces/index.js.map +1 -1
  32. package/dist/browser/resourceManagementClient.d.ts +1 -3
  33. package/dist/browser/resourceManagementClient.d.ts.map +1 -1
  34. package/dist/browser/resourceManagementClient.js +3 -7
  35. package/dist/browser/resourceManagementClient.js.map +1 -1
  36. package/dist/commonjs/models/index.d.ts +12 -1202
  37. package/dist/commonjs/models/index.d.ts.map +1 -1
  38. package/dist/commonjs/models/index.js +1 -77
  39. package/dist/commonjs/models/index.js.map +1 -1
  40. package/dist/commonjs/models/mappers.d.ts +0 -42
  41. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  42. package/dist/commonjs/models/mappers.js +237 -1751
  43. package/dist/commonjs/models/mappers.js.map +1 -1
  44. package/dist/commonjs/models/parameters.d.ts +14 -21
  45. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  46. package/dist/commonjs/models/parameters.js +46 -98
  47. package/dist/commonjs/models/parameters.js.map +1 -1
  48. package/dist/commonjs/operations/index.d.ts +0 -2
  49. package/dist/commonjs/operations/index.d.ts.map +1 -1
  50. package/dist/commonjs/operations/index.js +0 -2
  51. package/dist/commonjs/operations/index.js.map +1 -1
  52. package/dist/commonjs/operations/providerResourceTypes.js +1 -1
  53. package/dist/commonjs/operations/providerResourceTypes.js.map +1 -1
  54. package/dist/commonjs/operations/providers.js +5 -5
  55. package/dist/commonjs/operations/providers.js.map +1 -1
  56. package/dist/commonjs/operations/resourceGroups.js +3 -3
  57. package/dist/commonjs/operations/resourceGroups.js.map +1 -1
  58. package/dist/commonjs/operations/resources.js +13 -13
  59. package/dist/commonjs/operations/resources.js.map +1 -1
  60. package/dist/commonjs/operations/tagsOperations.js +2 -2
  61. package/dist/commonjs/operations/tagsOperations.js.map +1 -1
  62. package/dist/commonjs/operationsInterfaces/index.d.ts +0 -2
  63. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
  64. package/dist/commonjs/operationsInterfaces/index.js +0 -2
  65. package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
  66. package/dist/commonjs/resourceManagementClient.d.ts +1 -3
  67. package/dist/commonjs/resourceManagementClient.d.ts.map +1 -1
  68. package/dist/commonjs/resourceManagementClient.js +2 -6
  69. package/dist/commonjs/resourceManagementClient.js.map +1 -1
  70. package/dist/esm/models/index.d.ts +12 -1202
  71. package/dist/esm/models/index.d.ts.map +1 -1
  72. package/dist/esm/models/index.js +0 -76
  73. package/dist/esm/models/index.js.map +1 -1
  74. package/dist/esm/models/mappers.d.ts +0 -42
  75. package/dist/esm/models/mappers.d.ts.map +1 -1
  76. package/dist/esm/models/mappers.js +235 -1749
  77. package/dist/esm/models/mappers.js.map +1 -1
  78. package/dist/esm/models/parameters.d.ts +14 -21
  79. package/dist/esm/models/parameters.d.ts.map +1 -1
  80. package/dist/esm/models/parameters.js +46 -98
  81. package/dist/esm/models/parameters.js.map +1 -1
  82. package/dist/esm/operations/index.d.ts +0 -2
  83. package/dist/esm/operations/index.d.ts.map +1 -1
  84. package/dist/esm/operations/index.js +0 -2
  85. package/dist/esm/operations/index.js.map +1 -1
  86. package/dist/esm/operations/providerResourceTypes.js +1 -1
  87. package/dist/esm/operations/providerResourceTypes.js.map +1 -1
  88. package/dist/esm/operations/providers.js +5 -5
  89. package/dist/esm/operations/providers.js.map +1 -1
  90. package/dist/esm/operations/resourceGroups.js +3 -3
  91. package/dist/esm/operations/resourceGroups.js.map +1 -1
  92. package/dist/esm/operations/resources.js +13 -13
  93. package/dist/esm/operations/resources.js.map +1 -1
  94. package/dist/esm/operations/tagsOperations.js +2 -2
  95. package/dist/esm/operations/tagsOperations.js.map +1 -1
  96. package/dist/esm/operationsInterfaces/index.d.ts +0 -2
  97. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
  98. package/dist/esm/operationsInterfaces/index.js +0 -2
  99. package/dist/esm/operationsInterfaces/index.js.map +1 -1
  100. package/dist/esm/resourceManagementClient.d.ts +1 -3
  101. package/dist/esm/resourceManagementClient.d.ts.map +1 -1
  102. package/dist/esm/resourceManagementClient.js +3 -7
  103. package/dist/esm/resourceManagementClient.js.map +1 -1
  104. package/dist/react-native/models/index.d.ts +12 -1202
  105. package/dist/react-native/models/index.d.ts.map +1 -1
  106. package/dist/react-native/models/index.js +0 -76
  107. package/dist/react-native/models/index.js.map +1 -1
  108. package/dist/react-native/models/mappers.d.ts +0 -42
  109. package/dist/react-native/models/mappers.d.ts.map +1 -1
  110. package/dist/react-native/models/mappers.js +235 -1749
  111. package/dist/react-native/models/mappers.js.map +1 -1
  112. package/dist/react-native/models/parameters.d.ts +14 -21
  113. package/dist/react-native/models/parameters.d.ts.map +1 -1
  114. package/dist/react-native/models/parameters.js +46 -98
  115. package/dist/react-native/models/parameters.js.map +1 -1
  116. package/dist/react-native/operations/index.d.ts +0 -2
  117. package/dist/react-native/operations/index.d.ts.map +1 -1
  118. package/dist/react-native/operations/index.js +0 -2
  119. package/dist/react-native/operations/index.js.map +1 -1
  120. package/dist/react-native/operations/providerResourceTypes.js +1 -1
  121. package/dist/react-native/operations/providerResourceTypes.js.map +1 -1
  122. package/dist/react-native/operations/providers.js +5 -5
  123. package/dist/react-native/operations/providers.js.map +1 -1
  124. package/dist/react-native/operations/resourceGroups.js +3 -3
  125. package/dist/react-native/operations/resourceGroups.js.map +1 -1
  126. package/dist/react-native/operations/resources.js +13 -13
  127. package/dist/react-native/operations/resources.js.map +1 -1
  128. package/dist/react-native/operations/tagsOperations.js +2 -2
  129. package/dist/react-native/operations/tagsOperations.js.map +1 -1
  130. package/dist/react-native/operationsInterfaces/index.d.ts +0 -2
  131. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
  132. package/dist/react-native/operationsInterfaces/index.js +0 -2
  133. package/dist/react-native/operationsInterfaces/index.js.map +1 -1
  134. package/dist/react-native/resourceManagementClient.d.ts +1 -3
  135. package/dist/react-native/resourceManagementClient.d.ts.map +1 -1
  136. package/dist/react-native/resourceManagementClient.js +3 -7
  137. package/dist/react-native/resourceManagementClient.js.map +1 -1
  138. package/package.json +2 -2
  139. package/review/arm-resources-node.api.md +2 -995
  140. package/dist/browser/operations/deploymentOperations.d.ts +0 -168
  141. package/dist/browser/operations/deploymentOperations.d.ts.map +0 -1
  142. package/dist/browser/operations/deploymentOperations.js +0 -697
  143. package/dist/browser/operations/deploymentOperations.js.map +0 -1
  144. package/dist/browser/operations/deployments.d.ts +0 -628
  145. package/dist/browser/operations/deployments.d.ts.map +0 -1
  146. package/dist/browser/operations/deployments.js +0 -2776
  147. package/dist/browser/operations/deployments.js.map +0 -1
  148. package/dist/browser/operationsInterfaces/deploymentOperations.d.ts +0 -77
  149. package/dist/browser/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
  150. package/dist/browser/operationsInterfaces/deploymentOperations.js +0 -9
  151. package/dist/browser/operationsInterfaces/deploymentOperations.js.map +0 -1
  152. package/dist/browser/operationsInterfaces/deployments.d.ts +0 -545
  153. package/dist/browser/operationsInterfaces/deployments.d.ts.map +0 -1
  154. package/dist/browser/operationsInterfaces/deployments.js +0 -9
  155. package/dist/browser/operationsInterfaces/deployments.js.map +0 -1
  156. package/dist/commonjs/operations/deploymentOperations.d.ts +0 -168
  157. package/dist/commonjs/operations/deploymentOperations.d.ts.map +0 -1
  158. package/dist/commonjs/operations/deploymentOperations.js +0 -702
  159. package/dist/commonjs/operations/deploymentOperations.js.map +0 -1
  160. package/dist/commonjs/operations/deployments.d.ts +0 -628
  161. package/dist/commonjs/operations/deployments.d.ts.map +0 -1
  162. package/dist/commonjs/operations/deployments.js +0 -2781
  163. package/dist/commonjs/operations/deployments.js.map +0 -1
  164. package/dist/commonjs/operationsInterfaces/deploymentOperations.d.ts +0 -77
  165. package/dist/commonjs/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
  166. package/dist/commonjs/operationsInterfaces/deploymentOperations.js +0 -10
  167. package/dist/commonjs/operationsInterfaces/deploymentOperations.js.map +0 -1
  168. package/dist/commonjs/operationsInterfaces/deployments.d.ts +0 -545
  169. package/dist/commonjs/operationsInterfaces/deployments.d.ts.map +0 -1
  170. package/dist/commonjs/operationsInterfaces/deployments.js +0 -10
  171. package/dist/commonjs/operationsInterfaces/deployments.js.map +0 -1
  172. package/dist/esm/operations/deploymentOperations.d.ts +0 -168
  173. package/dist/esm/operations/deploymentOperations.d.ts.map +0 -1
  174. package/dist/esm/operations/deploymentOperations.js +0 -697
  175. package/dist/esm/operations/deploymentOperations.js.map +0 -1
  176. package/dist/esm/operations/deployments.d.ts +0 -628
  177. package/dist/esm/operations/deployments.d.ts.map +0 -1
  178. package/dist/esm/operations/deployments.js +0 -2776
  179. package/dist/esm/operations/deployments.js.map +0 -1
  180. package/dist/esm/operationsInterfaces/deploymentOperations.d.ts +0 -77
  181. package/dist/esm/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
  182. package/dist/esm/operationsInterfaces/deploymentOperations.js +0 -9
  183. package/dist/esm/operationsInterfaces/deploymentOperations.js.map +0 -1
  184. package/dist/esm/operationsInterfaces/deployments.d.ts +0 -545
  185. package/dist/esm/operationsInterfaces/deployments.d.ts.map +0 -1
  186. package/dist/esm/operationsInterfaces/deployments.js +0 -9
  187. package/dist/esm/operationsInterfaces/deployments.js.map +0 -1
  188. package/dist/react-native/operations/deploymentOperations.d.ts +0 -168
  189. package/dist/react-native/operations/deploymentOperations.d.ts.map +0 -1
  190. package/dist/react-native/operations/deploymentOperations.js +0 -697
  191. package/dist/react-native/operations/deploymentOperations.js.map +0 -1
  192. package/dist/react-native/operations/deployments.d.ts +0 -628
  193. package/dist/react-native/operations/deployments.d.ts.map +0 -1
  194. package/dist/react-native/operations/deployments.js +0 -2776
  195. package/dist/react-native/operations/deployments.js.map +0 -1
  196. package/dist/react-native/operationsInterfaces/deploymentOperations.d.ts +0 -77
  197. package/dist/react-native/operationsInterfaces/deploymentOperations.d.ts.map +0 -1
  198. package/dist/react-native/operationsInterfaces/deploymentOperations.js +0 -9
  199. package/dist/react-native/operationsInterfaces/deploymentOperations.js.map +0 -1
  200. package/dist/react-native/operationsInterfaces/deployments.d.ts +0 -545
  201. package/dist/react-native/operationsInterfaces/deployments.d.ts.map +0 -1
  202. package/dist/react-native/operationsInterfaces/deployments.js +0 -9
  203. package/dist/react-native/operationsInterfaces/deployments.js.map +0 -1
@@ -1,2776 +0,0 @@
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 { setContinuationToken } from "../pagingHelper.js";
9
- import * as coreClient from "@azure/core-client";
10
- import * as Mappers from "../models/mappers.js";
11
- import * as Parameters from "../models/parameters.js";
12
- import { createHttpPoller, } from "@azure/core-lro";
13
- import { createLroSpec } from "../lroImpl.js";
14
- /// <reference lib="esnext.asynciterable" />
15
- /** Class containing Deployments operations. */
16
- export class DeploymentsImpl {
17
- client;
18
- /**
19
- * Initialize a new instance of the class Deployments class.
20
- * @param client Reference to the service client
21
- */
22
- constructor(client) {
23
- this.client = client;
24
- }
25
- /**
26
- * Get all the deployments at the given scope.
27
- * @param scope The resource scope.
28
- * @param options The options parameters.
29
- */
30
- listAtScope(scope, options) {
31
- const iter = this.listAtScopePagingAll(scope, options);
32
- return {
33
- next() {
34
- return iter.next();
35
- },
36
- [Symbol.asyncIterator]() {
37
- return this;
38
- },
39
- byPage: (settings) => {
40
- if (settings?.maxPageSize) {
41
- throw new Error("maxPageSize is not supported by this operation.");
42
- }
43
- return this.listAtScopePagingPage(scope, options, settings);
44
- },
45
- };
46
- }
47
- async *listAtScopePagingPage(scope, options, settings) {
48
- let result;
49
- let continuationToken = settings?.continuationToken;
50
- if (!continuationToken) {
51
- result = await this._listAtScope(scope, options);
52
- let page = result.value || [];
53
- continuationToken = result.nextLink;
54
- setContinuationToken(page, continuationToken);
55
- yield page;
56
- }
57
- while (continuationToken) {
58
- result = await this._listAtScopeNext(scope, continuationToken, options);
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield page;
63
- }
64
- }
65
- async *listAtScopePagingAll(scope, options) {
66
- for await (const page of this.listAtScopePagingPage(scope, options)) {
67
- yield* page;
68
- }
69
- }
70
- /**
71
- * Get all the deployments at the tenant scope.
72
- * @param options The options parameters.
73
- */
74
- listAtTenantScope(options) {
75
- const iter = this.listAtTenantScopePagingAll(options);
76
- return {
77
- next() {
78
- return iter.next();
79
- },
80
- [Symbol.asyncIterator]() {
81
- return this;
82
- },
83
- byPage: (settings) => {
84
- if (settings?.maxPageSize) {
85
- throw new Error("maxPageSize is not supported by this operation.");
86
- }
87
- return this.listAtTenantScopePagingPage(options, settings);
88
- },
89
- };
90
- }
91
- async *listAtTenantScopePagingPage(options, settings) {
92
- let result;
93
- let continuationToken = settings?.continuationToken;
94
- if (!continuationToken) {
95
- result = await this._listAtTenantScope(options);
96
- let page = result.value || [];
97
- continuationToken = result.nextLink;
98
- setContinuationToken(page, continuationToken);
99
- yield page;
100
- }
101
- while (continuationToken) {
102
- result = await this._listAtTenantScopeNext(continuationToken, options);
103
- continuationToken = result.nextLink;
104
- let page = result.value || [];
105
- setContinuationToken(page, continuationToken);
106
- yield page;
107
- }
108
- }
109
- async *listAtTenantScopePagingAll(options) {
110
- for await (const page of this.listAtTenantScopePagingPage(options)) {
111
- yield* page;
112
- }
113
- }
114
- /**
115
- * Get all the deployments for a management group.
116
- * @param groupId The management group ID.
117
- * @param options The options parameters.
118
- */
119
- listAtManagementGroupScope(groupId, options) {
120
- const iter = this.listAtManagementGroupScopePagingAll(groupId, options);
121
- return {
122
- next() {
123
- return iter.next();
124
- },
125
- [Symbol.asyncIterator]() {
126
- return this;
127
- },
128
- byPage: (settings) => {
129
- if (settings?.maxPageSize) {
130
- throw new Error("maxPageSize is not supported by this operation.");
131
- }
132
- return this.listAtManagementGroupScopePagingPage(groupId, options, settings);
133
- },
134
- };
135
- }
136
- async *listAtManagementGroupScopePagingPage(groupId, options, settings) {
137
- let result;
138
- let continuationToken = settings?.continuationToken;
139
- if (!continuationToken) {
140
- result = await this._listAtManagementGroupScope(groupId, options);
141
- let page = result.value || [];
142
- continuationToken = result.nextLink;
143
- setContinuationToken(page, continuationToken);
144
- yield page;
145
- }
146
- while (continuationToken) {
147
- result = await this._listAtManagementGroupScopeNext(groupId, continuationToken, options);
148
- continuationToken = result.nextLink;
149
- let page = result.value || [];
150
- setContinuationToken(page, continuationToken);
151
- yield page;
152
- }
153
- }
154
- async *listAtManagementGroupScopePagingAll(groupId, options) {
155
- for await (const page of this.listAtManagementGroupScopePagingPage(groupId, options)) {
156
- yield* page;
157
- }
158
- }
159
- /**
160
- * Get all the deployments for a subscription.
161
- * @param options The options parameters.
162
- */
163
- listAtSubscriptionScope(options) {
164
- const iter = this.listAtSubscriptionScopePagingAll(options);
165
- return {
166
- next() {
167
- return iter.next();
168
- },
169
- [Symbol.asyncIterator]() {
170
- return this;
171
- },
172
- byPage: (settings) => {
173
- if (settings?.maxPageSize) {
174
- throw new Error("maxPageSize is not supported by this operation.");
175
- }
176
- return this.listAtSubscriptionScopePagingPage(options, settings);
177
- },
178
- };
179
- }
180
- async *listAtSubscriptionScopePagingPage(options, settings) {
181
- let result;
182
- let continuationToken = settings?.continuationToken;
183
- if (!continuationToken) {
184
- result = await this._listAtSubscriptionScope(options);
185
- let page = result.value || [];
186
- continuationToken = result.nextLink;
187
- setContinuationToken(page, continuationToken);
188
- yield page;
189
- }
190
- while (continuationToken) {
191
- result = await this._listAtSubscriptionScopeNext(continuationToken, options);
192
- continuationToken = result.nextLink;
193
- let page = result.value || [];
194
- setContinuationToken(page, continuationToken);
195
- yield page;
196
- }
197
- }
198
- async *listAtSubscriptionScopePagingAll(options) {
199
- for await (const page of this.listAtSubscriptionScopePagingPage(options)) {
200
- yield* page;
201
- }
202
- }
203
- /**
204
- * Get all the deployments for a resource group.
205
- * @param resourceGroupName The name of the resource group with the deployments to get. The name is
206
- * case insensitive.
207
- * @param options The options parameters.
208
- */
209
- listByResourceGroup(resourceGroupName, options) {
210
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
211
- return {
212
- next() {
213
- return iter.next();
214
- },
215
- [Symbol.asyncIterator]() {
216
- return this;
217
- },
218
- byPage: (settings) => {
219
- if (settings?.maxPageSize) {
220
- throw new Error("maxPageSize is not supported by this operation.");
221
- }
222
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
223
- },
224
- };
225
- }
226
- async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
227
- let result;
228
- let continuationToken = settings?.continuationToken;
229
- if (!continuationToken) {
230
- result = await this._listByResourceGroup(resourceGroupName, options);
231
- let page = result.value || [];
232
- continuationToken = result.nextLink;
233
- setContinuationToken(page, continuationToken);
234
- yield page;
235
- }
236
- while (continuationToken) {
237
- result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
238
- continuationToken = result.nextLink;
239
- let page = result.value || [];
240
- setContinuationToken(page, continuationToken);
241
- yield page;
242
- }
243
- }
244
- async *listByResourceGroupPagingAll(resourceGroupName, options) {
245
- for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
246
- yield* page;
247
- }
248
- }
249
- /**
250
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
251
- * removes the associated deployment operations. This is an asynchronous operation that returns a
252
- * status of 202 until the template deployment is successfully deleted. The Location response header
253
- * contains the URI that is used to obtain the status of the process. While the process is running, a
254
- * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
255
- * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
256
- * URI in the Location header returns an error-level status code.
257
- * @param scope The resource scope.
258
- * @param deploymentName The name of the deployment.
259
- * @param options The options parameters.
260
- */
261
- async beginDeleteAtScope(scope, deploymentName, options) {
262
- const directSendOperation = async (args, spec) => {
263
- return this.client.sendOperationRequest(args, spec);
264
- };
265
- const sendOperationFn = async (args, spec) => {
266
- let currentRawResponse = undefined;
267
- const providedCallback = args.options?.onResponse;
268
- const callback = (rawResponse, flatResponse) => {
269
- currentRawResponse = rawResponse;
270
- providedCallback?.(rawResponse, flatResponse);
271
- };
272
- const updatedArgs = {
273
- ...args,
274
- options: {
275
- ...args.options,
276
- onResponse: callback,
277
- },
278
- };
279
- const flatResponse = await directSendOperation(updatedArgs, spec);
280
- return {
281
- flatResponse,
282
- rawResponse: {
283
- statusCode: currentRawResponse.status,
284
- body: currentRawResponse.parsedBody,
285
- headers: currentRawResponse.headers.toJSON(),
286
- },
287
- };
288
- };
289
- const lro = createLroSpec({
290
- sendOperationFn,
291
- args: { scope, deploymentName, options },
292
- spec: deleteAtScopeOperationSpec,
293
- });
294
- const poller = await createHttpPoller(lro, {
295
- restoreFrom: options?.resumeFrom,
296
- intervalInMs: options?.updateIntervalInMs,
297
- });
298
- await poller.poll();
299
- return poller;
300
- }
301
- /**
302
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
303
- * removes the associated deployment operations. This is an asynchronous operation that returns a
304
- * status of 202 until the template deployment is successfully deleted. The Location response header
305
- * contains the URI that is used to obtain the status of the process. While the process is running, a
306
- * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
307
- * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
308
- * URI in the Location header returns an error-level status code.
309
- * @param scope The resource scope.
310
- * @param deploymentName The name of the deployment.
311
- * @param options The options parameters.
312
- */
313
- async beginDeleteAtScopeAndWait(scope, deploymentName, options) {
314
- const poller = await this.beginDeleteAtScope(scope, deploymentName, options);
315
- return poller.pollUntilDone();
316
- }
317
- /**
318
- * Checks whether the deployment exists.
319
- * @param scope The resource scope.
320
- * @param deploymentName The name of the deployment.
321
- * @param options The options parameters.
322
- */
323
- checkExistenceAtScope(scope, deploymentName, options) {
324
- return this.client.sendOperationRequest({ scope, deploymentName, options }, checkExistenceAtScopeOperationSpec);
325
- }
326
- /**
327
- * You can provide the template and parameters directly in the request or link to JSON files.
328
- * @param scope The resource scope.
329
- * @param deploymentName The name of the deployment.
330
- * @param parameters Additional parameters supplied to the operation.
331
- * @param options The options parameters.
332
- */
333
- async beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options) {
334
- const directSendOperation = async (args, spec) => {
335
- return this.client.sendOperationRequest(args, spec);
336
- };
337
- const sendOperationFn = async (args, spec) => {
338
- let currentRawResponse = undefined;
339
- const providedCallback = args.options?.onResponse;
340
- const callback = (rawResponse, flatResponse) => {
341
- currentRawResponse = rawResponse;
342
- providedCallback?.(rawResponse, flatResponse);
343
- };
344
- const updatedArgs = {
345
- ...args,
346
- options: {
347
- ...args.options,
348
- onResponse: callback,
349
- },
350
- };
351
- const flatResponse = await directSendOperation(updatedArgs, spec);
352
- return {
353
- flatResponse,
354
- rawResponse: {
355
- statusCode: currentRawResponse.status,
356
- body: currentRawResponse.parsedBody,
357
- headers: currentRawResponse.headers.toJSON(),
358
- },
359
- };
360
- };
361
- const lro = createLroSpec({
362
- sendOperationFn,
363
- args: { scope, deploymentName, parameters, options },
364
- spec: createOrUpdateAtScopeOperationSpec,
365
- });
366
- const poller = await createHttpPoller(lro, {
367
- restoreFrom: options?.resumeFrom,
368
- intervalInMs: options?.updateIntervalInMs,
369
- });
370
- await poller.poll();
371
- return poller;
372
- }
373
- /**
374
- * You can provide the template and parameters directly in the request or link to JSON files.
375
- * @param scope The resource scope.
376
- * @param deploymentName The name of the deployment.
377
- * @param parameters Additional parameters supplied to the operation.
378
- * @param options The options parameters.
379
- */
380
- async beginCreateOrUpdateAtScopeAndWait(scope, deploymentName, parameters, options) {
381
- const poller = await this.beginCreateOrUpdateAtScope(scope, deploymentName, parameters, options);
382
- return poller.pollUntilDone();
383
- }
384
- /**
385
- * Gets a deployment.
386
- * @param scope The resource scope.
387
- * @param deploymentName The name of the deployment.
388
- * @param options The options parameters.
389
- */
390
- getAtScope(scope, deploymentName, options) {
391
- return this.client.sendOperationRequest({ scope, deploymentName, options }, getAtScopeOperationSpec);
392
- }
393
- /**
394
- * You can cancel a deployment only if the provisioningState is Accepted or Running. After the
395
- * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment
396
- * stops the currently running template deployment and leaves the resources partially deployed.
397
- * @param scope The resource scope.
398
- * @param deploymentName The name of the deployment.
399
- * @param options The options parameters.
400
- */
401
- cancelAtScope(scope, deploymentName, options) {
402
- return this.client.sendOperationRequest({ scope, deploymentName, options }, cancelAtScopeOperationSpec);
403
- }
404
- /**
405
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
406
- * Resource Manager..
407
- * @param scope The resource scope.
408
- * @param deploymentName The name of the deployment.
409
- * @param parameters Parameters to validate.
410
- * @param options The options parameters.
411
- */
412
- async beginValidateAtScope(scope, deploymentName, parameters, options) {
413
- const directSendOperation = async (args, spec) => {
414
- return this.client.sendOperationRequest(args, spec);
415
- };
416
- const sendOperationFn = async (args, spec) => {
417
- let currentRawResponse = undefined;
418
- const providedCallback = args.options?.onResponse;
419
- const callback = (rawResponse, flatResponse) => {
420
- currentRawResponse = rawResponse;
421
- providedCallback?.(rawResponse, flatResponse);
422
- };
423
- const updatedArgs = {
424
- ...args,
425
- options: {
426
- ...args.options,
427
- onResponse: callback,
428
- },
429
- };
430
- const flatResponse = await directSendOperation(updatedArgs, spec);
431
- return {
432
- flatResponse,
433
- rawResponse: {
434
- statusCode: currentRawResponse.status,
435
- body: currentRawResponse.parsedBody,
436
- headers: currentRawResponse.headers.toJSON(),
437
- },
438
- };
439
- };
440
- const lro = createLroSpec({
441
- sendOperationFn,
442
- args: { scope, deploymentName, parameters, options },
443
- spec: validateAtScopeOperationSpec,
444
- });
445
- const poller = await createHttpPoller(lro, {
446
- restoreFrom: options?.resumeFrom,
447
- intervalInMs: options?.updateIntervalInMs,
448
- });
449
- await poller.poll();
450
- return poller;
451
- }
452
- /**
453
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
454
- * Resource Manager..
455
- * @param scope The resource scope.
456
- * @param deploymentName The name of the deployment.
457
- * @param parameters Parameters to validate.
458
- * @param options The options parameters.
459
- */
460
- async beginValidateAtScopeAndWait(scope, deploymentName, parameters, options) {
461
- const poller = await this.beginValidateAtScope(scope, deploymentName, parameters, options);
462
- return poller.pollUntilDone();
463
- }
464
- /**
465
- * Exports the template used for specified deployment.
466
- * @param scope The resource scope.
467
- * @param deploymentName The name of the deployment.
468
- * @param options The options parameters.
469
- */
470
- exportTemplateAtScope(scope, deploymentName, options) {
471
- return this.client.sendOperationRequest({ scope, deploymentName, options }, exportTemplateAtScopeOperationSpec);
472
- }
473
- /**
474
- * Get all the deployments at the given scope.
475
- * @param scope The resource scope.
476
- * @param options The options parameters.
477
- */
478
- _listAtScope(scope, options) {
479
- return this.client.sendOperationRequest({ scope, options }, listAtScopeOperationSpec);
480
- }
481
- /**
482
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
483
- * removes the associated deployment operations. This is an asynchronous operation that returns a
484
- * status of 202 until the template deployment is successfully deleted. The Location response header
485
- * contains the URI that is used to obtain the status of the process. While the process is running, a
486
- * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
487
- * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
488
- * URI in the Location header returns an error-level status code.
489
- * @param deploymentName The name of the deployment.
490
- * @param options The options parameters.
491
- */
492
- async beginDeleteAtTenantScope(deploymentName, options) {
493
- const directSendOperation = async (args, spec) => {
494
- return this.client.sendOperationRequest(args, spec);
495
- };
496
- const sendOperationFn = async (args, spec) => {
497
- let currentRawResponse = undefined;
498
- const providedCallback = args.options?.onResponse;
499
- const callback = (rawResponse, flatResponse) => {
500
- currentRawResponse = rawResponse;
501
- providedCallback?.(rawResponse, flatResponse);
502
- };
503
- const updatedArgs = {
504
- ...args,
505
- options: {
506
- ...args.options,
507
- onResponse: callback,
508
- },
509
- };
510
- const flatResponse = await directSendOperation(updatedArgs, spec);
511
- return {
512
- flatResponse,
513
- rawResponse: {
514
- statusCode: currentRawResponse.status,
515
- body: currentRawResponse.parsedBody,
516
- headers: currentRawResponse.headers.toJSON(),
517
- },
518
- };
519
- };
520
- const lro = createLroSpec({
521
- sendOperationFn,
522
- args: { deploymentName, options },
523
- spec: deleteAtTenantScopeOperationSpec,
524
- });
525
- const poller = await createHttpPoller(lro, {
526
- restoreFrom: options?.resumeFrom,
527
- intervalInMs: options?.updateIntervalInMs,
528
- });
529
- await poller.poll();
530
- return poller;
531
- }
532
- /**
533
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
534
- * removes the associated deployment operations. This is an asynchronous operation that returns a
535
- * status of 202 until the template deployment is successfully deleted. The Location response header
536
- * contains the URI that is used to obtain the status of the process. While the process is running, a
537
- * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
538
- * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
539
- * URI in the Location header returns an error-level status code.
540
- * @param deploymentName The name of the deployment.
541
- * @param options The options parameters.
542
- */
543
- async beginDeleteAtTenantScopeAndWait(deploymentName, options) {
544
- const poller = await this.beginDeleteAtTenantScope(deploymentName, options);
545
- return poller.pollUntilDone();
546
- }
547
- /**
548
- * Checks whether the deployment exists.
549
- * @param deploymentName The name of the deployment.
550
- * @param options The options parameters.
551
- */
552
- checkExistenceAtTenantScope(deploymentName, options) {
553
- return this.client.sendOperationRequest({ deploymentName, options }, checkExistenceAtTenantScopeOperationSpec);
554
- }
555
- /**
556
- * You can provide the template and parameters directly in the request or link to JSON files.
557
- * @param deploymentName The name of the deployment.
558
- * @param parameters Additional parameters supplied to the operation.
559
- * @param options The options parameters.
560
- */
561
- async beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options) {
562
- const directSendOperation = async (args, spec) => {
563
- return this.client.sendOperationRequest(args, spec);
564
- };
565
- const sendOperationFn = async (args, spec) => {
566
- let currentRawResponse = undefined;
567
- const providedCallback = args.options?.onResponse;
568
- const callback = (rawResponse, flatResponse) => {
569
- currentRawResponse = rawResponse;
570
- providedCallback?.(rawResponse, flatResponse);
571
- };
572
- const updatedArgs = {
573
- ...args,
574
- options: {
575
- ...args.options,
576
- onResponse: callback,
577
- },
578
- };
579
- const flatResponse = await directSendOperation(updatedArgs, spec);
580
- return {
581
- flatResponse,
582
- rawResponse: {
583
- statusCode: currentRawResponse.status,
584
- body: currentRawResponse.parsedBody,
585
- headers: currentRawResponse.headers.toJSON(),
586
- },
587
- };
588
- };
589
- const lro = createLroSpec({
590
- sendOperationFn,
591
- args: { deploymentName, parameters, options },
592
- spec: createOrUpdateAtTenantScopeOperationSpec,
593
- });
594
- const poller = await createHttpPoller(lro, {
595
- restoreFrom: options?.resumeFrom,
596
- intervalInMs: options?.updateIntervalInMs,
597
- });
598
- await poller.poll();
599
- return poller;
600
- }
601
- /**
602
- * You can provide the template and parameters directly in the request or link to JSON files.
603
- * @param deploymentName The name of the deployment.
604
- * @param parameters Additional parameters supplied to the operation.
605
- * @param options The options parameters.
606
- */
607
- async beginCreateOrUpdateAtTenantScopeAndWait(deploymentName, parameters, options) {
608
- const poller = await this.beginCreateOrUpdateAtTenantScope(deploymentName, parameters, options);
609
- return poller.pollUntilDone();
610
- }
611
- /**
612
- * Gets a deployment.
613
- * @param deploymentName The name of the deployment.
614
- * @param options The options parameters.
615
- */
616
- getAtTenantScope(deploymentName, options) {
617
- return this.client.sendOperationRequest({ deploymentName, options }, getAtTenantScopeOperationSpec);
618
- }
619
- /**
620
- * You can cancel a deployment only if the provisioningState is Accepted or Running. After the
621
- * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment
622
- * stops the currently running template deployment and leaves the resources partially deployed.
623
- * @param deploymentName The name of the deployment.
624
- * @param options The options parameters.
625
- */
626
- cancelAtTenantScope(deploymentName, options) {
627
- return this.client.sendOperationRequest({ deploymentName, options }, cancelAtTenantScopeOperationSpec);
628
- }
629
- /**
630
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
631
- * Resource Manager..
632
- * @param deploymentName The name of the deployment.
633
- * @param parameters Parameters to validate.
634
- * @param options The options parameters.
635
- */
636
- async beginValidateAtTenantScope(deploymentName, parameters, options) {
637
- const directSendOperation = async (args, spec) => {
638
- return this.client.sendOperationRequest(args, spec);
639
- };
640
- const sendOperationFn = async (args, spec) => {
641
- let currentRawResponse = undefined;
642
- const providedCallback = args.options?.onResponse;
643
- const callback = (rawResponse, flatResponse) => {
644
- currentRawResponse = rawResponse;
645
- providedCallback?.(rawResponse, flatResponse);
646
- };
647
- const updatedArgs = {
648
- ...args,
649
- options: {
650
- ...args.options,
651
- onResponse: callback,
652
- },
653
- };
654
- const flatResponse = await directSendOperation(updatedArgs, spec);
655
- return {
656
- flatResponse,
657
- rawResponse: {
658
- statusCode: currentRawResponse.status,
659
- body: currentRawResponse.parsedBody,
660
- headers: currentRawResponse.headers.toJSON(),
661
- },
662
- };
663
- };
664
- const lro = createLroSpec({
665
- sendOperationFn,
666
- args: { deploymentName, parameters, options },
667
- spec: validateAtTenantScopeOperationSpec,
668
- });
669
- const poller = await createHttpPoller(lro, {
670
- restoreFrom: options?.resumeFrom,
671
- intervalInMs: options?.updateIntervalInMs,
672
- });
673
- await poller.poll();
674
- return poller;
675
- }
676
- /**
677
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
678
- * Resource Manager..
679
- * @param deploymentName The name of the deployment.
680
- * @param parameters Parameters to validate.
681
- * @param options The options parameters.
682
- */
683
- async beginValidateAtTenantScopeAndWait(deploymentName, parameters, options) {
684
- const poller = await this.beginValidateAtTenantScope(deploymentName, parameters, options);
685
- return poller.pollUntilDone();
686
- }
687
- /**
688
- * Returns changes that will be made by the deployment if executed at the scope of the tenant group.
689
- * @param deploymentName The name of the deployment.
690
- * @param parameters Parameters to validate.
691
- * @param options The options parameters.
692
- */
693
- async beginWhatIfAtTenantScope(deploymentName, parameters, options) {
694
- const directSendOperation = async (args, spec) => {
695
- return this.client.sendOperationRequest(args, spec);
696
- };
697
- const sendOperationFn = async (args, spec) => {
698
- let currentRawResponse = undefined;
699
- const providedCallback = args.options?.onResponse;
700
- const callback = (rawResponse, flatResponse) => {
701
- currentRawResponse = rawResponse;
702
- providedCallback?.(rawResponse, flatResponse);
703
- };
704
- const updatedArgs = {
705
- ...args,
706
- options: {
707
- ...args.options,
708
- onResponse: callback,
709
- },
710
- };
711
- const flatResponse = await directSendOperation(updatedArgs, spec);
712
- return {
713
- flatResponse,
714
- rawResponse: {
715
- statusCode: currentRawResponse.status,
716
- body: currentRawResponse.parsedBody,
717
- headers: currentRawResponse.headers.toJSON(),
718
- },
719
- };
720
- };
721
- const lro = createLroSpec({
722
- sendOperationFn,
723
- args: { deploymentName, parameters, options },
724
- spec: whatIfAtTenantScopeOperationSpec,
725
- });
726
- const poller = await createHttpPoller(lro, {
727
- restoreFrom: options?.resumeFrom,
728
- intervalInMs: options?.updateIntervalInMs,
729
- resourceLocationConfig: "location",
730
- });
731
- await poller.poll();
732
- return poller;
733
- }
734
- /**
735
- * Returns changes that will be made by the deployment if executed at the scope of the tenant group.
736
- * @param deploymentName The name of the deployment.
737
- * @param parameters Parameters to validate.
738
- * @param options The options parameters.
739
- */
740
- async beginWhatIfAtTenantScopeAndWait(deploymentName, parameters, options) {
741
- const poller = await this.beginWhatIfAtTenantScope(deploymentName, parameters, options);
742
- return poller.pollUntilDone();
743
- }
744
- /**
745
- * Exports the template used for specified deployment.
746
- * @param deploymentName The name of the deployment.
747
- * @param options The options parameters.
748
- */
749
- exportTemplateAtTenantScope(deploymentName, options) {
750
- return this.client.sendOperationRequest({ deploymentName, options }, exportTemplateAtTenantScopeOperationSpec);
751
- }
752
- /**
753
- * Get all the deployments at the tenant scope.
754
- * @param options The options parameters.
755
- */
756
- _listAtTenantScope(options) {
757
- return this.client.sendOperationRequest({ options }, listAtTenantScopeOperationSpec);
758
- }
759
- /**
760
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
761
- * removes the associated deployment operations. This is an asynchronous operation that returns a
762
- * status of 202 until the template deployment is successfully deleted. The Location response header
763
- * contains the URI that is used to obtain the status of the process. While the process is running, a
764
- * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
765
- * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
766
- * URI in the Location header returns an error-level status code.
767
- * @param groupId The management group ID.
768
- * @param deploymentName The name of the deployment.
769
- * @param options The options parameters.
770
- */
771
- async beginDeleteAtManagementGroupScope(groupId, deploymentName, options) {
772
- const directSendOperation = async (args, spec) => {
773
- return this.client.sendOperationRequest(args, spec);
774
- };
775
- const sendOperationFn = async (args, spec) => {
776
- let currentRawResponse = undefined;
777
- const providedCallback = args.options?.onResponse;
778
- const callback = (rawResponse, flatResponse) => {
779
- currentRawResponse = rawResponse;
780
- providedCallback?.(rawResponse, flatResponse);
781
- };
782
- const updatedArgs = {
783
- ...args,
784
- options: {
785
- ...args.options,
786
- onResponse: callback,
787
- },
788
- };
789
- const flatResponse = await directSendOperation(updatedArgs, spec);
790
- return {
791
- flatResponse,
792
- rawResponse: {
793
- statusCode: currentRawResponse.status,
794
- body: currentRawResponse.parsedBody,
795
- headers: currentRawResponse.headers.toJSON(),
796
- },
797
- };
798
- };
799
- const lro = createLroSpec({
800
- sendOperationFn,
801
- args: { groupId, deploymentName, options },
802
- spec: deleteAtManagementGroupScopeOperationSpec,
803
- });
804
- const poller = await createHttpPoller(lro, {
805
- restoreFrom: options?.resumeFrom,
806
- intervalInMs: options?.updateIntervalInMs,
807
- });
808
- await poller.poll();
809
- return poller;
810
- }
811
- /**
812
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
813
- * removes the associated deployment operations. This is an asynchronous operation that returns a
814
- * status of 202 until the template deployment is successfully deleted. The Location response header
815
- * contains the URI that is used to obtain the status of the process. While the process is running, a
816
- * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
817
- * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
818
- * URI in the Location header returns an error-level status code.
819
- * @param groupId The management group ID.
820
- * @param deploymentName The name of the deployment.
821
- * @param options The options parameters.
822
- */
823
- async beginDeleteAtManagementGroupScopeAndWait(groupId, deploymentName, options) {
824
- const poller = await this.beginDeleteAtManagementGroupScope(groupId, deploymentName, options);
825
- return poller.pollUntilDone();
826
- }
827
- /**
828
- * Checks whether the deployment exists.
829
- * @param groupId The management group ID.
830
- * @param deploymentName The name of the deployment.
831
- * @param options The options parameters.
832
- */
833
- checkExistenceAtManagementGroupScope(groupId, deploymentName, options) {
834
- return this.client.sendOperationRequest({ groupId, deploymentName, options }, checkExistenceAtManagementGroupScopeOperationSpec);
835
- }
836
- /**
837
- * You can provide the template and parameters directly in the request or link to JSON files.
838
- * @param groupId The management group ID.
839
- * @param deploymentName The name of the deployment.
840
- * @param parameters Additional parameters supplied to the operation.
841
- * @param options The options parameters.
842
- */
843
- async beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
844
- const directSendOperation = async (args, spec) => {
845
- return this.client.sendOperationRequest(args, spec);
846
- };
847
- const sendOperationFn = async (args, spec) => {
848
- let currentRawResponse = undefined;
849
- const providedCallback = args.options?.onResponse;
850
- const callback = (rawResponse, flatResponse) => {
851
- currentRawResponse = rawResponse;
852
- providedCallback?.(rawResponse, flatResponse);
853
- };
854
- const updatedArgs = {
855
- ...args,
856
- options: {
857
- ...args.options,
858
- onResponse: callback,
859
- },
860
- };
861
- const flatResponse = await directSendOperation(updatedArgs, spec);
862
- return {
863
- flatResponse,
864
- rawResponse: {
865
- statusCode: currentRawResponse.status,
866
- body: currentRawResponse.parsedBody,
867
- headers: currentRawResponse.headers.toJSON(),
868
- },
869
- };
870
- };
871
- const lro = createLroSpec({
872
- sendOperationFn,
873
- args: { groupId, deploymentName, parameters, options },
874
- spec: createOrUpdateAtManagementGroupScopeOperationSpec,
875
- });
876
- const poller = await createHttpPoller(lro, {
877
- restoreFrom: options?.resumeFrom,
878
- intervalInMs: options?.updateIntervalInMs,
879
- });
880
- await poller.poll();
881
- return poller;
882
- }
883
- /**
884
- * You can provide the template and parameters directly in the request or link to JSON files.
885
- * @param groupId The management group ID.
886
- * @param deploymentName The name of the deployment.
887
- * @param parameters Additional parameters supplied to the operation.
888
- * @param options The options parameters.
889
- */
890
- async beginCreateOrUpdateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
891
- const poller = await this.beginCreateOrUpdateAtManagementGroupScope(groupId, deploymentName, parameters, options);
892
- return poller.pollUntilDone();
893
- }
894
- /**
895
- * Gets a deployment.
896
- * @param groupId The management group ID.
897
- * @param deploymentName The name of the deployment.
898
- * @param options The options parameters.
899
- */
900
- getAtManagementGroupScope(groupId, deploymentName, options) {
901
- return this.client.sendOperationRequest({ groupId, deploymentName, options }, getAtManagementGroupScopeOperationSpec);
902
- }
903
- /**
904
- * You can cancel a deployment only if the provisioningState is Accepted or Running. After the
905
- * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment
906
- * stops the currently running template deployment and leaves the resources partially deployed.
907
- * @param groupId The management group ID.
908
- * @param deploymentName The name of the deployment.
909
- * @param options The options parameters.
910
- */
911
- cancelAtManagementGroupScope(groupId, deploymentName, options) {
912
- return this.client.sendOperationRequest({ groupId, deploymentName, options }, cancelAtManagementGroupScopeOperationSpec);
913
- }
914
- /**
915
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
916
- * Resource Manager..
917
- * @param groupId The management group ID.
918
- * @param deploymentName The name of the deployment.
919
- * @param parameters Parameters to validate.
920
- * @param options The options parameters.
921
- */
922
- async beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options) {
923
- const directSendOperation = async (args, spec) => {
924
- return this.client.sendOperationRequest(args, spec);
925
- };
926
- const sendOperationFn = async (args, spec) => {
927
- let currentRawResponse = undefined;
928
- const providedCallback = args.options?.onResponse;
929
- const callback = (rawResponse, flatResponse) => {
930
- currentRawResponse = rawResponse;
931
- providedCallback?.(rawResponse, flatResponse);
932
- };
933
- const updatedArgs = {
934
- ...args,
935
- options: {
936
- ...args.options,
937
- onResponse: callback,
938
- },
939
- };
940
- const flatResponse = await directSendOperation(updatedArgs, spec);
941
- return {
942
- flatResponse,
943
- rawResponse: {
944
- statusCode: currentRawResponse.status,
945
- body: currentRawResponse.parsedBody,
946
- headers: currentRawResponse.headers.toJSON(),
947
- },
948
- };
949
- };
950
- const lro = createLroSpec({
951
- sendOperationFn,
952
- args: { groupId, deploymentName, parameters, options },
953
- spec: validateAtManagementGroupScopeOperationSpec,
954
- });
955
- const poller = await createHttpPoller(lro, {
956
- restoreFrom: options?.resumeFrom,
957
- intervalInMs: options?.updateIntervalInMs,
958
- });
959
- await poller.poll();
960
- return poller;
961
- }
962
- /**
963
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
964
- * Resource Manager..
965
- * @param groupId The management group ID.
966
- * @param deploymentName The name of the deployment.
967
- * @param parameters Parameters to validate.
968
- * @param options The options parameters.
969
- */
970
- async beginValidateAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
971
- const poller = await this.beginValidateAtManagementGroupScope(groupId, deploymentName, parameters, options);
972
- return poller.pollUntilDone();
973
- }
974
- /**
975
- * Returns changes that will be made by the deployment if executed at the scope of the management
976
- * group.
977
- * @param groupId The management group ID.
978
- * @param deploymentName The name of the deployment.
979
- * @param parameters Parameters to validate.
980
- * @param options The options parameters.
981
- */
982
- async beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options) {
983
- const directSendOperation = async (args, spec) => {
984
- return this.client.sendOperationRequest(args, spec);
985
- };
986
- const sendOperationFn = async (args, spec) => {
987
- let currentRawResponse = undefined;
988
- const providedCallback = args.options?.onResponse;
989
- const callback = (rawResponse, flatResponse) => {
990
- currentRawResponse = rawResponse;
991
- providedCallback?.(rawResponse, flatResponse);
992
- };
993
- const updatedArgs = {
994
- ...args,
995
- options: {
996
- ...args.options,
997
- onResponse: callback,
998
- },
999
- };
1000
- const flatResponse = await directSendOperation(updatedArgs, spec);
1001
- return {
1002
- flatResponse,
1003
- rawResponse: {
1004
- statusCode: currentRawResponse.status,
1005
- body: currentRawResponse.parsedBody,
1006
- headers: currentRawResponse.headers.toJSON(),
1007
- },
1008
- };
1009
- };
1010
- const lro = createLroSpec({
1011
- sendOperationFn,
1012
- args: { groupId, deploymentName, parameters, options },
1013
- spec: whatIfAtManagementGroupScopeOperationSpec,
1014
- });
1015
- const poller = await createHttpPoller(lro, {
1016
- restoreFrom: options?.resumeFrom,
1017
- intervalInMs: options?.updateIntervalInMs,
1018
- resourceLocationConfig: "location",
1019
- });
1020
- await poller.poll();
1021
- return poller;
1022
- }
1023
- /**
1024
- * Returns changes that will be made by the deployment if executed at the scope of the management
1025
- * group.
1026
- * @param groupId The management group ID.
1027
- * @param deploymentName The name of the deployment.
1028
- * @param parameters Parameters to validate.
1029
- * @param options The options parameters.
1030
- */
1031
- async beginWhatIfAtManagementGroupScopeAndWait(groupId, deploymentName, parameters, options) {
1032
- const poller = await this.beginWhatIfAtManagementGroupScope(groupId, deploymentName, parameters, options);
1033
- return poller.pollUntilDone();
1034
- }
1035
- /**
1036
- * Exports the template used for specified deployment.
1037
- * @param groupId The management group ID.
1038
- * @param deploymentName The name of the deployment.
1039
- * @param options The options parameters.
1040
- */
1041
- exportTemplateAtManagementGroupScope(groupId, deploymentName, options) {
1042
- return this.client.sendOperationRequest({ groupId, deploymentName, options }, exportTemplateAtManagementGroupScopeOperationSpec);
1043
- }
1044
- /**
1045
- * Get all the deployments for a management group.
1046
- * @param groupId The management group ID.
1047
- * @param options The options parameters.
1048
- */
1049
- _listAtManagementGroupScope(groupId, options) {
1050
- return this.client.sendOperationRequest({ groupId, options }, listAtManagementGroupScopeOperationSpec);
1051
- }
1052
- /**
1053
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
1054
- * removes the associated deployment operations. This is an asynchronous operation that returns a
1055
- * status of 202 until the template deployment is successfully deleted. The Location response header
1056
- * contains the URI that is used to obtain the status of the process. While the process is running, a
1057
- * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
1058
- * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
1059
- * URI in the Location header returns an error-level status code.
1060
- * @param deploymentName The name of the deployment.
1061
- * @param options The options parameters.
1062
- */
1063
- async beginDeleteAtSubscriptionScope(deploymentName, options) {
1064
- const directSendOperation = async (args, spec) => {
1065
- return this.client.sendOperationRequest(args, spec);
1066
- };
1067
- const sendOperationFn = async (args, spec) => {
1068
- let currentRawResponse = undefined;
1069
- const providedCallback = args.options?.onResponse;
1070
- const callback = (rawResponse, flatResponse) => {
1071
- currentRawResponse = rawResponse;
1072
- providedCallback?.(rawResponse, flatResponse);
1073
- };
1074
- const updatedArgs = {
1075
- ...args,
1076
- options: {
1077
- ...args.options,
1078
- onResponse: callback,
1079
- },
1080
- };
1081
- const flatResponse = await directSendOperation(updatedArgs, spec);
1082
- return {
1083
- flatResponse,
1084
- rawResponse: {
1085
- statusCode: currentRawResponse.status,
1086
- body: currentRawResponse.parsedBody,
1087
- headers: currentRawResponse.headers.toJSON(),
1088
- },
1089
- };
1090
- };
1091
- const lro = createLroSpec({
1092
- sendOperationFn,
1093
- args: { deploymentName, options },
1094
- spec: deleteAtSubscriptionScopeOperationSpec,
1095
- });
1096
- const poller = await createHttpPoller(lro, {
1097
- restoreFrom: options?.resumeFrom,
1098
- intervalInMs: options?.updateIntervalInMs,
1099
- });
1100
- await poller.poll();
1101
- return poller;
1102
- }
1103
- /**
1104
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
1105
- * removes the associated deployment operations. This is an asynchronous operation that returns a
1106
- * status of 202 until the template deployment is successfully deleted. The Location response header
1107
- * contains the URI that is used to obtain the status of the process. While the process is running, a
1108
- * call to the URI in the Location header returns a status of 202. When the process finishes, the URI
1109
- * in the Location header returns a status of 204 on success. If the asynchronous request failed, the
1110
- * URI in the Location header returns an error-level status code.
1111
- * @param deploymentName The name of the deployment.
1112
- * @param options The options parameters.
1113
- */
1114
- async beginDeleteAtSubscriptionScopeAndWait(deploymentName, options) {
1115
- const poller = await this.beginDeleteAtSubscriptionScope(deploymentName, options);
1116
- return poller.pollUntilDone();
1117
- }
1118
- /**
1119
- * Checks whether the deployment exists.
1120
- * @param deploymentName The name of the deployment.
1121
- * @param options The options parameters.
1122
- */
1123
- checkExistenceAtSubscriptionScope(deploymentName, options) {
1124
- return this.client.sendOperationRequest({ deploymentName, options }, checkExistenceAtSubscriptionScopeOperationSpec);
1125
- }
1126
- /**
1127
- * You can provide the template and parameters directly in the request or link to JSON files.
1128
- * @param deploymentName The name of the deployment.
1129
- * @param parameters Additional parameters supplied to the operation.
1130
- * @param options The options parameters.
1131
- */
1132
- async beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options) {
1133
- const directSendOperation = async (args, spec) => {
1134
- return this.client.sendOperationRequest(args, spec);
1135
- };
1136
- const sendOperationFn = async (args, spec) => {
1137
- let currentRawResponse = undefined;
1138
- const providedCallback = args.options?.onResponse;
1139
- const callback = (rawResponse, flatResponse) => {
1140
- currentRawResponse = rawResponse;
1141
- providedCallback?.(rawResponse, flatResponse);
1142
- };
1143
- const updatedArgs = {
1144
- ...args,
1145
- options: {
1146
- ...args.options,
1147
- onResponse: callback,
1148
- },
1149
- };
1150
- const flatResponse = await directSendOperation(updatedArgs, spec);
1151
- return {
1152
- flatResponse,
1153
- rawResponse: {
1154
- statusCode: currentRawResponse.status,
1155
- body: currentRawResponse.parsedBody,
1156
- headers: currentRawResponse.headers.toJSON(),
1157
- },
1158
- };
1159
- };
1160
- const lro = createLroSpec({
1161
- sendOperationFn,
1162
- args: { deploymentName, parameters, options },
1163
- spec: createOrUpdateAtSubscriptionScopeOperationSpec,
1164
- });
1165
- const poller = await createHttpPoller(lro, {
1166
- restoreFrom: options?.resumeFrom,
1167
- intervalInMs: options?.updateIntervalInMs,
1168
- });
1169
- await poller.poll();
1170
- return poller;
1171
- }
1172
- /**
1173
- * You can provide the template and parameters directly in the request or link to JSON files.
1174
- * @param deploymentName The name of the deployment.
1175
- * @param parameters Additional parameters supplied to the operation.
1176
- * @param options The options parameters.
1177
- */
1178
- async beginCreateOrUpdateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
1179
- const poller = await this.beginCreateOrUpdateAtSubscriptionScope(deploymentName, parameters, options);
1180
- return poller.pollUntilDone();
1181
- }
1182
- /**
1183
- * Gets a deployment.
1184
- * @param deploymentName The name of the deployment.
1185
- * @param options The options parameters.
1186
- */
1187
- getAtSubscriptionScope(deploymentName, options) {
1188
- return this.client.sendOperationRequest({ deploymentName, options }, getAtSubscriptionScopeOperationSpec);
1189
- }
1190
- /**
1191
- * You can cancel a deployment only if the provisioningState is Accepted or Running. After the
1192
- * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment
1193
- * stops the currently running template deployment and leaves the resources partially deployed.
1194
- * @param deploymentName The name of the deployment.
1195
- * @param options The options parameters.
1196
- */
1197
- cancelAtSubscriptionScope(deploymentName, options) {
1198
- return this.client.sendOperationRequest({ deploymentName, options }, cancelAtSubscriptionScopeOperationSpec);
1199
- }
1200
- /**
1201
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
1202
- * Resource Manager..
1203
- * @param deploymentName The name of the deployment.
1204
- * @param parameters Parameters to validate.
1205
- * @param options The options parameters.
1206
- */
1207
- async beginValidateAtSubscriptionScope(deploymentName, parameters, options) {
1208
- const directSendOperation = async (args, spec) => {
1209
- return this.client.sendOperationRequest(args, spec);
1210
- };
1211
- const sendOperationFn = async (args, spec) => {
1212
- let currentRawResponse = undefined;
1213
- const providedCallback = args.options?.onResponse;
1214
- const callback = (rawResponse, flatResponse) => {
1215
- currentRawResponse = rawResponse;
1216
- providedCallback?.(rawResponse, flatResponse);
1217
- };
1218
- const updatedArgs = {
1219
- ...args,
1220
- options: {
1221
- ...args.options,
1222
- onResponse: callback,
1223
- },
1224
- };
1225
- const flatResponse = await directSendOperation(updatedArgs, spec);
1226
- return {
1227
- flatResponse,
1228
- rawResponse: {
1229
- statusCode: currentRawResponse.status,
1230
- body: currentRawResponse.parsedBody,
1231
- headers: currentRawResponse.headers.toJSON(),
1232
- },
1233
- };
1234
- };
1235
- const lro = createLroSpec({
1236
- sendOperationFn,
1237
- args: { deploymentName, parameters, options },
1238
- spec: validateAtSubscriptionScopeOperationSpec,
1239
- });
1240
- const poller = await createHttpPoller(lro, {
1241
- restoreFrom: options?.resumeFrom,
1242
- intervalInMs: options?.updateIntervalInMs,
1243
- });
1244
- await poller.poll();
1245
- return poller;
1246
- }
1247
- /**
1248
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
1249
- * Resource Manager..
1250
- * @param deploymentName The name of the deployment.
1251
- * @param parameters Parameters to validate.
1252
- * @param options The options parameters.
1253
- */
1254
- async beginValidateAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
1255
- const poller = await this.beginValidateAtSubscriptionScope(deploymentName, parameters, options);
1256
- return poller.pollUntilDone();
1257
- }
1258
- /**
1259
- * Returns changes that will be made by the deployment if executed at the scope of the subscription.
1260
- * @param deploymentName The name of the deployment.
1261
- * @param parameters Parameters to What If.
1262
- * @param options The options parameters.
1263
- */
1264
- async beginWhatIfAtSubscriptionScope(deploymentName, parameters, options) {
1265
- const directSendOperation = async (args, spec) => {
1266
- return this.client.sendOperationRequest(args, spec);
1267
- };
1268
- const sendOperationFn = async (args, spec) => {
1269
- let currentRawResponse = undefined;
1270
- const providedCallback = args.options?.onResponse;
1271
- const callback = (rawResponse, flatResponse) => {
1272
- currentRawResponse = rawResponse;
1273
- providedCallback?.(rawResponse, flatResponse);
1274
- };
1275
- const updatedArgs = {
1276
- ...args,
1277
- options: {
1278
- ...args.options,
1279
- onResponse: callback,
1280
- },
1281
- };
1282
- const flatResponse = await directSendOperation(updatedArgs, spec);
1283
- return {
1284
- flatResponse,
1285
- rawResponse: {
1286
- statusCode: currentRawResponse.status,
1287
- body: currentRawResponse.parsedBody,
1288
- headers: currentRawResponse.headers.toJSON(),
1289
- },
1290
- };
1291
- };
1292
- const lro = createLroSpec({
1293
- sendOperationFn,
1294
- args: { deploymentName, parameters, options },
1295
- spec: whatIfAtSubscriptionScopeOperationSpec,
1296
- });
1297
- const poller = await createHttpPoller(lro, {
1298
- restoreFrom: options?.resumeFrom,
1299
- intervalInMs: options?.updateIntervalInMs,
1300
- resourceLocationConfig: "location",
1301
- });
1302
- await poller.poll();
1303
- return poller;
1304
- }
1305
- /**
1306
- * Returns changes that will be made by the deployment if executed at the scope of the subscription.
1307
- * @param deploymentName The name of the deployment.
1308
- * @param parameters Parameters to What If.
1309
- * @param options The options parameters.
1310
- */
1311
- async beginWhatIfAtSubscriptionScopeAndWait(deploymentName, parameters, options) {
1312
- const poller = await this.beginWhatIfAtSubscriptionScope(deploymentName, parameters, options);
1313
- return poller.pollUntilDone();
1314
- }
1315
- /**
1316
- * Exports the template used for specified deployment.
1317
- * @param deploymentName The name of the deployment.
1318
- * @param options The options parameters.
1319
- */
1320
- exportTemplateAtSubscriptionScope(deploymentName, options) {
1321
- return this.client.sendOperationRequest({ deploymentName, options }, exportTemplateAtSubscriptionScopeOperationSpec);
1322
- }
1323
- /**
1324
- * Get all the deployments for a subscription.
1325
- * @param options The options parameters.
1326
- */
1327
- _listAtSubscriptionScope(options) {
1328
- return this.client.sendOperationRequest({ options }, listAtSubscriptionScopeOperationSpec);
1329
- }
1330
- /**
1331
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
1332
- * removes the associated deployment operations. Deleting a template deployment does not affect the
1333
- * state of the resource group. This is an asynchronous operation that returns a status of 202 until
1334
- * the template deployment is successfully deleted. The Location response header contains the URI that
1335
- * is used to obtain the status of the process. While the process is running, a call to the URI in the
1336
- * Location header returns a status of 202. When the process finishes, the URI in the Location header
1337
- * returns a status of 204 on success. If the asynchronous request failed, the URI in the Location
1338
- * header returns an error-level status code.
1339
- * @param resourceGroupName The name of the resource group with the deployment to delete. The name is
1340
- * case insensitive.
1341
- * @param deploymentName The name of the deployment.
1342
- * @param options The options parameters.
1343
- */
1344
- async beginDelete(resourceGroupName, deploymentName, options) {
1345
- const directSendOperation = async (args, spec) => {
1346
- return this.client.sendOperationRequest(args, spec);
1347
- };
1348
- const sendOperationFn = async (args, spec) => {
1349
- let currentRawResponse = undefined;
1350
- const providedCallback = args.options?.onResponse;
1351
- const callback = (rawResponse, flatResponse) => {
1352
- currentRawResponse = rawResponse;
1353
- providedCallback?.(rawResponse, flatResponse);
1354
- };
1355
- const updatedArgs = {
1356
- ...args,
1357
- options: {
1358
- ...args.options,
1359
- onResponse: callback,
1360
- },
1361
- };
1362
- const flatResponse = await directSendOperation(updatedArgs, spec);
1363
- return {
1364
- flatResponse,
1365
- rawResponse: {
1366
- statusCode: currentRawResponse.status,
1367
- body: currentRawResponse.parsedBody,
1368
- headers: currentRawResponse.headers.toJSON(),
1369
- },
1370
- };
1371
- };
1372
- const lro = createLroSpec({
1373
- sendOperationFn,
1374
- args: { resourceGroupName, deploymentName, options },
1375
- spec: deleteOperationSpec,
1376
- });
1377
- const poller = await createHttpPoller(lro, {
1378
- restoreFrom: options?.resumeFrom,
1379
- intervalInMs: options?.updateIntervalInMs,
1380
- });
1381
- await poller.poll();
1382
- return poller;
1383
- }
1384
- /**
1385
- * A template deployment that is currently running cannot be deleted. Deleting a template deployment
1386
- * removes the associated deployment operations. Deleting a template deployment does not affect the
1387
- * state of the resource group. This is an asynchronous operation that returns a status of 202 until
1388
- * the template deployment is successfully deleted. The Location response header contains the URI that
1389
- * is used to obtain the status of the process. While the process is running, a call to the URI in the
1390
- * Location header returns a status of 202. When the process finishes, the URI in the Location header
1391
- * returns a status of 204 on success. If the asynchronous request failed, the URI in the Location
1392
- * header returns an error-level status code.
1393
- * @param resourceGroupName The name of the resource group with the deployment to delete. The name is
1394
- * case insensitive.
1395
- * @param deploymentName The name of the deployment.
1396
- * @param options The options parameters.
1397
- */
1398
- async beginDeleteAndWait(resourceGroupName, deploymentName, options) {
1399
- const poller = await this.beginDelete(resourceGroupName, deploymentName, options);
1400
- return poller.pollUntilDone();
1401
- }
1402
- /**
1403
- * Checks whether the deployment exists.
1404
- * @param resourceGroupName The name of the resource group with the deployment to check. The name is
1405
- * case insensitive.
1406
- * @param deploymentName The name of the deployment.
1407
- * @param options The options parameters.
1408
- */
1409
- checkExistence(resourceGroupName, deploymentName, options) {
1410
- return this.client.sendOperationRequest({ resourceGroupName, deploymentName, options }, checkExistenceOperationSpec);
1411
- }
1412
- /**
1413
- * You can provide the template and parameters directly in the request or link to JSON files.
1414
- * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case
1415
- * insensitive. The resource group must already exist.
1416
- * @param deploymentName The name of the deployment.
1417
- * @param parameters Additional parameters supplied to the operation.
1418
- * @param options The options parameters.
1419
- */
1420
- async beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options) {
1421
- const directSendOperation = async (args, spec) => {
1422
- return this.client.sendOperationRequest(args, spec);
1423
- };
1424
- const sendOperationFn = async (args, spec) => {
1425
- let currentRawResponse = undefined;
1426
- const providedCallback = args.options?.onResponse;
1427
- const callback = (rawResponse, flatResponse) => {
1428
- currentRawResponse = rawResponse;
1429
- providedCallback?.(rawResponse, flatResponse);
1430
- };
1431
- const updatedArgs = {
1432
- ...args,
1433
- options: {
1434
- ...args.options,
1435
- onResponse: callback,
1436
- },
1437
- };
1438
- const flatResponse = await directSendOperation(updatedArgs, spec);
1439
- return {
1440
- flatResponse,
1441
- rawResponse: {
1442
- statusCode: currentRawResponse.status,
1443
- body: currentRawResponse.parsedBody,
1444
- headers: currentRawResponse.headers.toJSON(),
1445
- },
1446
- };
1447
- };
1448
- const lro = createLroSpec({
1449
- sendOperationFn,
1450
- args: { resourceGroupName, deploymentName, parameters, options },
1451
- spec: createOrUpdateOperationSpec,
1452
- });
1453
- const poller = await createHttpPoller(lro, {
1454
- restoreFrom: options?.resumeFrom,
1455
- intervalInMs: options?.updateIntervalInMs,
1456
- });
1457
- await poller.poll();
1458
- return poller;
1459
- }
1460
- /**
1461
- * You can provide the template and parameters directly in the request or link to JSON files.
1462
- * @param resourceGroupName The name of the resource group to deploy the resources to. The name is case
1463
- * insensitive. The resource group must already exist.
1464
- * @param deploymentName The name of the deployment.
1465
- * @param parameters Additional parameters supplied to the operation.
1466
- * @param options The options parameters.
1467
- */
1468
- async beginCreateOrUpdateAndWait(resourceGroupName, deploymentName, parameters, options) {
1469
- const poller = await this.beginCreateOrUpdate(resourceGroupName, deploymentName, parameters, options);
1470
- return poller.pollUntilDone();
1471
- }
1472
- /**
1473
- * Gets a deployment.
1474
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1475
- * @param deploymentName The name of the deployment.
1476
- * @param options The options parameters.
1477
- */
1478
- get(resourceGroupName, deploymentName, options) {
1479
- return this.client.sendOperationRequest({ resourceGroupName, deploymentName, options }, getOperationSpec);
1480
- }
1481
- /**
1482
- * You can cancel a deployment only if the provisioningState is Accepted or Running. After the
1483
- * deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment
1484
- * stops the currently running template deployment and leaves the resource group partially deployed.
1485
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1486
- * @param deploymentName The name of the deployment.
1487
- * @param options The options parameters.
1488
- */
1489
- cancel(resourceGroupName, deploymentName, options) {
1490
- return this.client.sendOperationRequest({ resourceGroupName, deploymentName, options }, cancelOperationSpec);
1491
- }
1492
- /**
1493
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
1494
- * Resource Manager..
1495
- * @param resourceGroupName The name of the resource group the template will be deployed to. The name
1496
- * is case insensitive.
1497
- * @param deploymentName The name of the deployment.
1498
- * @param parameters Parameters to validate.
1499
- * @param options The options parameters.
1500
- */
1501
- async beginValidate(resourceGroupName, deploymentName, parameters, options) {
1502
- const directSendOperation = async (args, spec) => {
1503
- return this.client.sendOperationRequest(args, spec);
1504
- };
1505
- const sendOperationFn = async (args, spec) => {
1506
- let currentRawResponse = undefined;
1507
- const providedCallback = args.options?.onResponse;
1508
- const callback = (rawResponse, flatResponse) => {
1509
- currentRawResponse = rawResponse;
1510
- providedCallback?.(rawResponse, flatResponse);
1511
- };
1512
- const updatedArgs = {
1513
- ...args,
1514
- options: {
1515
- ...args.options,
1516
- onResponse: callback,
1517
- },
1518
- };
1519
- const flatResponse = await directSendOperation(updatedArgs, spec);
1520
- return {
1521
- flatResponse,
1522
- rawResponse: {
1523
- statusCode: currentRawResponse.status,
1524
- body: currentRawResponse.parsedBody,
1525
- headers: currentRawResponse.headers.toJSON(),
1526
- },
1527
- };
1528
- };
1529
- const lro = createLroSpec({
1530
- sendOperationFn,
1531
- args: { resourceGroupName, deploymentName, parameters, options },
1532
- spec: validateOperationSpec,
1533
- });
1534
- const poller = await createHttpPoller(lro, {
1535
- restoreFrom: options?.resumeFrom,
1536
- intervalInMs: options?.updateIntervalInMs,
1537
- });
1538
- await poller.poll();
1539
- return poller;
1540
- }
1541
- /**
1542
- * Validates whether the specified template is syntactically correct and will be accepted by Azure
1543
- * Resource Manager..
1544
- * @param resourceGroupName The name of the resource group the template will be deployed to. The name
1545
- * is case insensitive.
1546
- * @param deploymentName The name of the deployment.
1547
- * @param parameters Parameters to validate.
1548
- * @param options The options parameters.
1549
- */
1550
- async beginValidateAndWait(resourceGroupName, deploymentName, parameters, options) {
1551
- const poller = await this.beginValidate(resourceGroupName, deploymentName, parameters, options);
1552
- return poller.pollUntilDone();
1553
- }
1554
- /**
1555
- * Returns changes that will be made by the deployment if executed at the scope of the resource group.
1556
- * @param resourceGroupName The name of the resource group the template will be deployed to. The name
1557
- * is case insensitive.
1558
- * @param deploymentName The name of the deployment.
1559
- * @param parameters Parameters to validate.
1560
- * @param options The options parameters.
1561
- */
1562
- async beginWhatIf(resourceGroupName, deploymentName, parameters, options) {
1563
- const directSendOperation = async (args, spec) => {
1564
- return this.client.sendOperationRequest(args, spec);
1565
- };
1566
- const sendOperationFn = async (args, spec) => {
1567
- let currentRawResponse = undefined;
1568
- const providedCallback = args.options?.onResponse;
1569
- const callback = (rawResponse, flatResponse) => {
1570
- currentRawResponse = rawResponse;
1571
- providedCallback?.(rawResponse, flatResponse);
1572
- };
1573
- const updatedArgs = {
1574
- ...args,
1575
- options: {
1576
- ...args.options,
1577
- onResponse: callback,
1578
- },
1579
- };
1580
- const flatResponse = await directSendOperation(updatedArgs, spec);
1581
- return {
1582
- flatResponse,
1583
- rawResponse: {
1584
- statusCode: currentRawResponse.status,
1585
- body: currentRawResponse.parsedBody,
1586
- headers: currentRawResponse.headers.toJSON(),
1587
- },
1588
- };
1589
- };
1590
- const lro = createLroSpec({
1591
- sendOperationFn,
1592
- args: { resourceGroupName, deploymentName, parameters, options },
1593
- spec: whatIfOperationSpec,
1594
- });
1595
- const poller = await createHttpPoller(lro, {
1596
- restoreFrom: options?.resumeFrom,
1597
- intervalInMs: options?.updateIntervalInMs,
1598
- resourceLocationConfig: "location",
1599
- });
1600
- await poller.poll();
1601
- return poller;
1602
- }
1603
- /**
1604
- * Returns changes that will be made by the deployment if executed at the scope of the resource group.
1605
- * @param resourceGroupName The name of the resource group the template will be deployed to. The name
1606
- * is case insensitive.
1607
- * @param deploymentName The name of the deployment.
1608
- * @param parameters Parameters to validate.
1609
- * @param options The options parameters.
1610
- */
1611
- async beginWhatIfAndWait(resourceGroupName, deploymentName, parameters, options) {
1612
- const poller = await this.beginWhatIf(resourceGroupName, deploymentName, parameters, options);
1613
- return poller.pollUntilDone();
1614
- }
1615
- /**
1616
- * Exports the template used for specified deployment.
1617
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1618
- * @param deploymentName The name of the deployment.
1619
- * @param options The options parameters.
1620
- */
1621
- exportTemplate(resourceGroupName, deploymentName, options) {
1622
- return this.client.sendOperationRequest({ resourceGroupName, deploymentName, options }, exportTemplateOperationSpec);
1623
- }
1624
- /**
1625
- * Get all the deployments for a resource group.
1626
- * @param resourceGroupName The name of the resource group with the deployments to get. The name is
1627
- * case insensitive.
1628
- * @param options The options parameters.
1629
- */
1630
- _listByResourceGroup(resourceGroupName, options) {
1631
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1632
- }
1633
- /**
1634
- * Calculate the hash of the given template.
1635
- * @param template The template provided to calculate hash.
1636
- * @param options The options parameters.
1637
- */
1638
- calculateTemplateHash(template, options) {
1639
- return this.client.sendOperationRequest({ template, options }, calculateTemplateHashOperationSpec);
1640
- }
1641
- /**
1642
- * ListAtScopeNext
1643
- * @param scope The resource scope.
1644
- * @param nextLink The nextLink from the previous successful call to the ListAtScope method.
1645
- * @param options The options parameters.
1646
- */
1647
- _listAtScopeNext(scope, nextLink, options) {
1648
- return this.client.sendOperationRequest({ scope, nextLink, options }, listAtScopeNextOperationSpec);
1649
- }
1650
- /**
1651
- * ListAtTenantScopeNext
1652
- * @param nextLink The nextLink from the previous successful call to the ListAtTenantScope method.
1653
- * @param options The options parameters.
1654
- */
1655
- _listAtTenantScopeNext(nextLink, options) {
1656
- return this.client.sendOperationRequest({ nextLink, options }, listAtTenantScopeNextOperationSpec);
1657
- }
1658
- /**
1659
- * ListAtManagementGroupScopeNext
1660
- * @param groupId The management group ID.
1661
- * @param nextLink The nextLink from the previous successful call to the ListAtManagementGroupScope
1662
- * method.
1663
- * @param options The options parameters.
1664
- */
1665
- _listAtManagementGroupScopeNext(groupId, nextLink, options) {
1666
- return this.client.sendOperationRequest({ groupId, nextLink, options }, listAtManagementGroupScopeNextOperationSpec);
1667
- }
1668
- /**
1669
- * ListAtSubscriptionScopeNext
1670
- * @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionScope
1671
- * method.
1672
- * @param options The options parameters.
1673
- */
1674
- _listAtSubscriptionScopeNext(nextLink, options) {
1675
- return this.client.sendOperationRequest({ nextLink, options }, listAtSubscriptionScopeNextOperationSpec);
1676
- }
1677
- /**
1678
- * ListByResourceGroupNext
1679
- * @param resourceGroupName The name of the resource group with the deployments to get. The name is
1680
- * case insensitive.
1681
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1682
- * @param options The options parameters.
1683
- */
1684
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1685
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1686
- }
1687
- }
1688
- // Operation Specifications
1689
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1690
- const deleteAtScopeOperationSpec = {
1691
- path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}",
1692
- httpMethod: "DELETE",
1693
- responses: {
1694
- 200: {},
1695
- 201: {},
1696
- 202: {},
1697
- 204: {},
1698
- default: {
1699
- bodyMapper: Mappers.CloudError,
1700
- },
1701
- },
1702
- queryParameters: [Parameters.apiVersion],
1703
- urlParameters: [
1704
- Parameters.$host,
1705
- Parameters.scope,
1706
- Parameters.deploymentName,
1707
- ],
1708
- headerParameters: [Parameters.accept],
1709
- serializer,
1710
- };
1711
- const checkExistenceAtScopeOperationSpec = {
1712
- path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}",
1713
- httpMethod: "HEAD",
1714
- responses: {
1715
- 204: {},
1716
- 404: {},
1717
- default: {
1718
- bodyMapper: Mappers.CloudError,
1719
- },
1720
- },
1721
- queryParameters: [Parameters.apiVersion],
1722
- urlParameters: [
1723
- Parameters.$host,
1724
- Parameters.scope,
1725
- Parameters.deploymentName,
1726
- ],
1727
- headerParameters: [Parameters.accept],
1728
- serializer,
1729
- };
1730
- const createOrUpdateAtScopeOperationSpec = {
1731
- path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}",
1732
- httpMethod: "PUT",
1733
- responses: {
1734
- 200: {
1735
- bodyMapper: Mappers.DeploymentExtended,
1736
- },
1737
- 201: {
1738
- bodyMapper: Mappers.DeploymentExtended,
1739
- },
1740
- 202: {
1741
- bodyMapper: Mappers.DeploymentExtended,
1742
- },
1743
- 204: {
1744
- bodyMapper: Mappers.DeploymentExtended,
1745
- },
1746
- default: {
1747
- bodyMapper: Mappers.CloudError,
1748
- },
1749
- },
1750
- requestBody: Parameters.parameters,
1751
- queryParameters: [Parameters.apiVersion],
1752
- urlParameters: [
1753
- Parameters.$host,
1754
- Parameters.scope,
1755
- Parameters.deploymentName,
1756
- ],
1757
- headerParameters: [Parameters.accept, Parameters.contentType],
1758
- mediaType: "json",
1759
- serializer,
1760
- };
1761
- const getAtScopeOperationSpec = {
1762
- path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}",
1763
- httpMethod: "GET",
1764
- responses: {
1765
- 200: {
1766
- bodyMapper: Mappers.DeploymentExtended,
1767
- },
1768
- default: {
1769
- bodyMapper: Mappers.CloudError,
1770
- },
1771
- },
1772
- queryParameters: [Parameters.apiVersion],
1773
- urlParameters: [
1774
- Parameters.$host,
1775
- Parameters.scope,
1776
- Parameters.deploymentName,
1777
- ],
1778
- headerParameters: [Parameters.accept],
1779
- serializer,
1780
- };
1781
- const cancelAtScopeOperationSpec = {
1782
- path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel",
1783
- httpMethod: "POST",
1784
- responses: {
1785
- 204: {},
1786
- default: {
1787
- bodyMapper: Mappers.CloudError,
1788
- },
1789
- },
1790
- queryParameters: [Parameters.apiVersion],
1791
- urlParameters: [
1792
- Parameters.$host,
1793
- Parameters.scope,
1794
- Parameters.deploymentName,
1795
- ],
1796
- headerParameters: [Parameters.accept],
1797
- serializer,
1798
- };
1799
- const validateAtScopeOperationSpec = {
1800
- path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
1801
- httpMethod: "POST",
1802
- responses: {
1803
- 200: {
1804
- bodyMapper: Mappers.DeploymentValidateResult,
1805
- },
1806
- 201: {
1807
- bodyMapper: Mappers.DeploymentValidateResult,
1808
- },
1809
- 202: {
1810
- bodyMapper: Mappers.DeploymentValidateResult,
1811
- },
1812
- 204: {
1813
- bodyMapper: Mappers.DeploymentValidateResult,
1814
- },
1815
- default: {
1816
- bodyMapper: Mappers.CloudError,
1817
- },
1818
- },
1819
- requestBody: Parameters.parameters,
1820
- queryParameters: [Parameters.apiVersion],
1821
- urlParameters: [
1822
- Parameters.$host,
1823
- Parameters.scope,
1824
- Parameters.deploymentName,
1825
- ],
1826
- headerParameters: [Parameters.accept, Parameters.contentType],
1827
- mediaType: "json",
1828
- serializer,
1829
- };
1830
- const exportTemplateAtScopeOperationSpec = {
1831
- path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
1832
- httpMethod: "POST",
1833
- responses: {
1834
- 200: {
1835
- bodyMapper: Mappers.DeploymentExportResult,
1836
- },
1837
- default: {
1838
- bodyMapper: Mappers.CloudError,
1839
- },
1840
- },
1841
- queryParameters: [Parameters.apiVersion],
1842
- urlParameters: [
1843
- Parameters.$host,
1844
- Parameters.scope,
1845
- Parameters.deploymentName,
1846
- ],
1847
- headerParameters: [Parameters.accept],
1848
- serializer,
1849
- };
1850
- const listAtScopeOperationSpec = {
1851
- path: "/{scope}/providers/Microsoft.Resources/deployments/",
1852
- httpMethod: "GET",
1853
- responses: {
1854
- 200: {
1855
- bodyMapper: Mappers.DeploymentListResult,
1856
- },
1857
- default: {
1858
- bodyMapper: Mappers.CloudError,
1859
- },
1860
- },
1861
- queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
1862
- urlParameters: [Parameters.$host, Parameters.scope],
1863
- headerParameters: [Parameters.accept],
1864
- serializer,
1865
- };
1866
- const deleteAtTenantScopeOperationSpec = {
1867
- path: "/providers/Microsoft.Resources/deployments/{deploymentName}",
1868
- httpMethod: "DELETE",
1869
- responses: {
1870
- 200: {},
1871
- 201: {},
1872
- 202: {},
1873
- 204: {},
1874
- default: {
1875
- bodyMapper: Mappers.CloudError,
1876
- },
1877
- },
1878
- queryParameters: [Parameters.apiVersion],
1879
- urlParameters: [Parameters.$host, Parameters.deploymentName],
1880
- headerParameters: [Parameters.accept],
1881
- serializer,
1882
- };
1883
- const checkExistenceAtTenantScopeOperationSpec = {
1884
- path: "/providers/Microsoft.Resources/deployments/{deploymentName}",
1885
- httpMethod: "HEAD",
1886
- responses: {
1887
- 204: {},
1888
- 404: {},
1889
- default: {
1890
- bodyMapper: Mappers.CloudError,
1891
- },
1892
- },
1893
- queryParameters: [Parameters.apiVersion],
1894
- urlParameters: [Parameters.$host, Parameters.deploymentName],
1895
- headerParameters: [Parameters.accept],
1896
- serializer,
1897
- };
1898
- const createOrUpdateAtTenantScopeOperationSpec = {
1899
- path: "/providers/Microsoft.Resources/deployments/{deploymentName}",
1900
- httpMethod: "PUT",
1901
- responses: {
1902
- 200: {
1903
- bodyMapper: Mappers.DeploymentExtended,
1904
- },
1905
- 201: {
1906
- bodyMapper: Mappers.DeploymentExtended,
1907
- },
1908
- 202: {
1909
- bodyMapper: Mappers.DeploymentExtended,
1910
- },
1911
- 204: {
1912
- bodyMapper: Mappers.DeploymentExtended,
1913
- },
1914
- default: {
1915
- bodyMapper: Mappers.CloudError,
1916
- },
1917
- },
1918
- requestBody: Parameters.parameters1,
1919
- queryParameters: [Parameters.apiVersion],
1920
- urlParameters: [Parameters.$host, Parameters.deploymentName],
1921
- headerParameters: [Parameters.accept, Parameters.contentType],
1922
- mediaType: "json",
1923
- serializer,
1924
- };
1925
- const getAtTenantScopeOperationSpec = {
1926
- path: "/providers/Microsoft.Resources/deployments/{deploymentName}",
1927
- httpMethod: "GET",
1928
- responses: {
1929
- 200: {
1930
- bodyMapper: Mappers.DeploymentExtended,
1931
- },
1932
- default: {
1933
- bodyMapper: Mappers.CloudError,
1934
- },
1935
- },
1936
- queryParameters: [Parameters.apiVersion],
1937
- urlParameters: [Parameters.$host, Parameters.deploymentName],
1938
- headerParameters: [Parameters.accept],
1939
- serializer,
1940
- };
1941
- const cancelAtTenantScopeOperationSpec = {
1942
- path: "/providers/Microsoft.Resources/deployments/{deploymentName}/cancel",
1943
- httpMethod: "POST",
1944
- responses: {
1945
- 204: {},
1946
- default: {
1947
- bodyMapper: Mappers.CloudError,
1948
- },
1949
- },
1950
- queryParameters: [Parameters.apiVersion],
1951
- urlParameters: [Parameters.$host, Parameters.deploymentName],
1952
- headerParameters: [Parameters.accept],
1953
- serializer,
1954
- };
1955
- const validateAtTenantScopeOperationSpec = {
1956
- path: "/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
1957
- httpMethod: "POST",
1958
- responses: {
1959
- 200: {
1960
- bodyMapper: Mappers.DeploymentValidateResult,
1961
- },
1962
- 201: {
1963
- bodyMapper: Mappers.DeploymentValidateResult,
1964
- },
1965
- 202: {
1966
- bodyMapper: Mappers.DeploymentValidateResult,
1967
- },
1968
- 204: {
1969
- bodyMapper: Mappers.DeploymentValidateResult,
1970
- },
1971
- default: {
1972
- bodyMapper: Mappers.CloudError,
1973
- },
1974
- },
1975
- requestBody: Parameters.parameters1,
1976
- queryParameters: [Parameters.apiVersion],
1977
- urlParameters: [Parameters.$host, Parameters.deploymentName],
1978
- headerParameters: [Parameters.accept, Parameters.contentType],
1979
- mediaType: "json",
1980
- serializer,
1981
- };
1982
- const whatIfAtTenantScopeOperationSpec = {
1983
- path: "/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf",
1984
- httpMethod: "POST",
1985
- responses: {
1986
- 200: {
1987
- bodyMapper: Mappers.WhatIfOperationResult,
1988
- },
1989
- 201: {
1990
- bodyMapper: Mappers.WhatIfOperationResult,
1991
- },
1992
- 202: {
1993
- bodyMapper: Mappers.WhatIfOperationResult,
1994
- },
1995
- 204: {
1996
- bodyMapper: Mappers.WhatIfOperationResult,
1997
- },
1998
- default: {
1999
- bodyMapper: Mappers.CloudError,
2000
- },
2001
- },
2002
- requestBody: Parameters.parameters2,
2003
- queryParameters: [Parameters.apiVersion],
2004
- urlParameters: [Parameters.$host, Parameters.deploymentName],
2005
- headerParameters: [Parameters.accept, Parameters.contentType],
2006
- mediaType: "json",
2007
- serializer,
2008
- };
2009
- const exportTemplateAtTenantScopeOperationSpec = {
2010
- path: "/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
2011
- httpMethod: "POST",
2012
- responses: {
2013
- 200: {
2014
- bodyMapper: Mappers.DeploymentExportResult,
2015
- },
2016
- default: {
2017
- bodyMapper: Mappers.CloudError,
2018
- },
2019
- },
2020
- queryParameters: [Parameters.apiVersion],
2021
- urlParameters: [Parameters.$host, Parameters.deploymentName],
2022
- headerParameters: [Parameters.accept],
2023
- serializer,
2024
- };
2025
- const listAtTenantScopeOperationSpec = {
2026
- path: "/providers/Microsoft.Resources/deployments/",
2027
- httpMethod: "GET",
2028
- responses: {
2029
- 200: {
2030
- bodyMapper: Mappers.DeploymentListResult,
2031
- },
2032
- default: {
2033
- bodyMapper: Mappers.CloudError,
2034
- },
2035
- },
2036
- queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
2037
- urlParameters: [Parameters.$host],
2038
- headerParameters: [Parameters.accept],
2039
- serializer,
2040
- };
2041
- const deleteAtManagementGroupScopeOperationSpec = {
2042
- path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}",
2043
- httpMethod: "DELETE",
2044
- responses: {
2045
- 200: {},
2046
- 201: {},
2047
- 202: {},
2048
- 204: {},
2049
- default: {
2050
- bodyMapper: Mappers.CloudError,
2051
- },
2052
- },
2053
- queryParameters: [Parameters.apiVersion],
2054
- urlParameters: [
2055
- Parameters.$host,
2056
- Parameters.deploymentName,
2057
- Parameters.groupId,
2058
- ],
2059
- headerParameters: [Parameters.accept],
2060
- serializer,
2061
- };
2062
- const checkExistenceAtManagementGroupScopeOperationSpec = {
2063
- path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}",
2064
- httpMethod: "HEAD",
2065
- responses: {
2066
- 204: {},
2067
- 404: {},
2068
- default: {
2069
- bodyMapper: Mappers.CloudError,
2070
- },
2071
- },
2072
- queryParameters: [Parameters.apiVersion],
2073
- urlParameters: [
2074
- Parameters.$host,
2075
- Parameters.deploymentName,
2076
- Parameters.groupId,
2077
- ],
2078
- headerParameters: [Parameters.accept],
2079
- serializer,
2080
- };
2081
- const createOrUpdateAtManagementGroupScopeOperationSpec = {
2082
- path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}",
2083
- httpMethod: "PUT",
2084
- responses: {
2085
- 200: {
2086
- bodyMapper: Mappers.DeploymentExtended,
2087
- },
2088
- 201: {
2089
- bodyMapper: Mappers.DeploymentExtended,
2090
- },
2091
- 202: {
2092
- bodyMapper: Mappers.DeploymentExtended,
2093
- },
2094
- 204: {
2095
- bodyMapper: Mappers.DeploymentExtended,
2096
- },
2097
- default: {
2098
- bodyMapper: Mappers.CloudError,
2099
- },
2100
- },
2101
- requestBody: Parameters.parameters1,
2102
- queryParameters: [Parameters.apiVersion],
2103
- urlParameters: [
2104
- Parameters.$host,
2105
- Parameters.deploymentName,
2106
- Parameters.groupId,
2107
- ],
2108
- headerParameters: [Parameters.accept, Parameters.contentType],
2109
- mediaType: "json",
2110
- serializer,
2111
- };
2112
- const getAtManagementGroupScopeOperationSpec = {
2113
- path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}",
2114
- httpMethod: "GET",
2115
- responses: {
2116
- 200: {
2117
- bodyMapper: Mappers.DeploymentExtended,
2118
- },
2119
- default: {
2120
- bodyMapper: Mappers.CloudError,
2121
- },
2122
- },
2123
- queryParameters: [Parameters.apiVersion],
2124
- urlParameters: [
2125
- Parameters.$host,
2126
- Parameters.deploymentName,
2127
- Parameters.groupId,
2128
- ],
2129
- headerParameters: [Parameters.accept],
2130
- serializer,
2131
- };
2132
- const cancelAtManagementGroupScopeOperationSpec = {
2133
- path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel",
2134
- httpMethod: "POST",
2135
- responses: {
2136
- 204: {},
2137
- default: {
2138
- bodyMapper: Mappers.CloudError,
2139
- },
2140
- },
2141
- queryParameters: [Parameters.apiVersion],
2142
- urlParameters: [
2143
- Parameters.$host,
2144
- Parameters.deploymentName,
2145
- Parameters.groupId,
2146
- ],
2147
- headerParameters: [Parameters.accept],
2148
- serializer,
2149
- };
2150
- const validateAtManagementGroupScopeOperationSpec = {
2151
- path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
2152
- httpMethod: "POST",
2153
- responses: {
2154
- 200: {
2155
- bodyMapper: Mappers.DeploymentValidateResult,
2156
- },
2157
- 201: {
2158
- bodyMapper: Mappers.DeploymentValidateResult,
2159
- },
2160
- 202: {
2161
- bodyMapper: Mappers.DeploymentValidateResult,
2162
- },
2163
- 204: {
2164
- bodyMapper: Mappers.DeploymentValidateResult,
2165
- },
2166
- default: {
2167
- bodyMapper: Mappers.CloudError,
2168
- },
2169
- },
2170
- requestBody: Parameters.parameters1,
2171
- queryParameters: [Parameters.apiVersion],
2172
- urlParameters: [
2173
- Parameters.$host,
2174
- Parameters.deploymentName,
2175
- Parameters.groupId,
2176
- ],
2177
- headerParameters: [Parameters.accept, Parameters.contentType],
2178
- mediaType: "json",
2179
- serializer,
2180
- };
2181
- const whatIfAtManagementGroupScopeOperationSpec = {
2182
- path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf",
2183
- httpMethod: "POST",
2184
- responses: {
2185
- 200: {
2186
- bodyMapper: Mappers.WhatIfOperationResult,
2187
- },
2188
- 201: {
2189
- bodyMapper: Mappers.WhatIfOperationResult,
2190
- },
2191
- 202: {
2192
- bodyMapper: Mappers.WhatIfOperationResult,
2193
- },
2194
- 204: {
2195
- bodyMapper: Mappers.WhatIfOperationResult,
2196
- },
2197
- default: {
2198
- bodyMapper: Mappers.CloudError,
2199
- },
2200
- },
2201
- requestBody: Parameters.parameters2,
2202
- queryParameters: [Parameters.apiVersion],
2203
- urlParameters: [
2204
- Parameters.$host,
2205
- Parameters.deploymentName,
2206
- Parameters.groupId,
2207
- ],
2208
- headerParameters: [Parameters.accept, Parameters.contentType],
2209
- mediaType: "json",
2210
- serializer,
2211
- };
2212
- const exportTemplateAtManagementGroupScopeOperationSpec = {
2213
- path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
2214
- httpMethod: "POST",
2215
- responses: {
2216
- 200: {
2217
- bodyMapper: Mappers.DeploymentExportResult,
2218
- },
2219
- default: {
2220
- bodyMapper: Mappers.CloudError,
2221
- },
2222
- },
2223
- queryParameters: [Parameters.apiVersion],
2224
- urlParameters: [
2225
- Parameters.$host,
2226
- Parameters.deploymentName,
2227
- Parameters.groupId,
2228
- ],
2229
- headerParameters: [Parameters.accept],
2230
- serializer,
2231
- };
2232
- const listAtManagementGroupScopeOperationSpec = {
2233
- path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/",
2234
- httpMethod: "GET",
2235
- responses: {
2236
- 200: {
2237
- bodyMapper: Mappers.DeploymentListResult,
2238
- },
2239
- default: {
2240
- bodyMapper: Mappers.CloudError,
2241
- },
2242
- },
2243
- queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
2244
- urlParameters: [Parameters.$host, Parameters.groupId],
2245
- headerParameters: [Parameters.accept],
2246
- serializer,
2247
- };
2248
- const deleteAtSubscriptionScopeOperationSpec = {
2249
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}",
2250
- httpMethod: "DELETE",
2251
- responses: {
2252
- 200: {},
2253
- 201: {},
2254
- 202: {},
2255
- 204: {},
2256
- default: {
2257
- bodyMapper: Mappers.CloudError,
2258
- },
2259
- },
2260
- queryParameters: [Parameters.apiVersion],
2261
- urlParameters: [
2262
- Parameters.$host,
2263
- Parameters.deploymentName,
2264
- Parameters.subscriptionId,
2265
- ],
2266
- headerParameters: [Parameters.accept],
2267
- serializer,
2268
- };
2269
- const checkExistenceAtSubscriptionScopeOperationSpec = {
2270
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}",
2271
- httpMethod: "HEAD",
2272
- responses: {
2273
- 204: {},
2274
- 404: {},
2275
- default: {
2276
- bodyMapper: Mappers.CloudError,
2277
- },
2278
- },
2279
- queryParameters: [Parameters.apiVersion],
2280
- urlParameters: [
2281
- Parameters.$host,
2282
- Parameters.deploymentName,
2283
- Parameters.subscriptionId,
2284
- ],
2285
- headerParameters: [Parameters.accept],
2286
- serializer,
2287
- };
2288
- const createOrUpdateAtSubscriptionScopeOperationSpec = {
2289
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}",
2290
- httpMethod: "PUT",
2291
- responses: {
2292
- 200: {
2293
- bodyMapper: Mappers.DeploymentExtended,
2294
- },
2295
- 201: {
2296
- bodyMapper: Mappers.DeploymentExtended,
2297
- },
2298
- 202: {
2299
- bodyMapper: Mappers.DeploymentExtended,
2300
- },
2301
- 204: {
2302
- bodyMapper: Mappers.DeploymentExtended,
2303
- },
2304
- default: {
2305
- bodyMapper: Mappers.CloudError,
2306
- },
2307
- },
2308
- requestBody: Parameters.parameters,
2309
- queryParameters: [Parameters.apiVersion],
2310
- urlParameters: [
2311
- Parameters.$host,
2312
- Parameters.deploymentName,
2313
- Parameters.subscriptionId,
2314
- ],
2315
- headerParameters: [Parameters.accept, Parameters.contentType],
2316
- mediaType: "json",
2317
- serializer,
2318
- };
2319
- const getAtSubscriptionScopeOperationSpec = {
2320
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}",
2321
- httpMethod: "GET",
2322
- responses: {
2323
- 200: {
2324
- bodyMapper: Mappers.DeploymentExtended,
2325
- },
2326
- default: {
2327
- bodyMapper: Mappers.CloudError,
2328
- },
2329
- },
2330
- queryParameters: [Parameters.apiVersion],
2331
- urlParameters: [
2332
- Parameters.$host,
2333
- Parameters.deploymentName,
2334
- Parameters.subscriptionId,
2335
- ],
2336
- headerParameters: [Parameters.accept],
2337
- serializer,
2338
- };
2339
- const cancelAtSubscriptionScopeOperationSpec = {
2340
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel",
2341
- httpMethod: "POST",
2342
- responses: {
2343
- 204: {},
2344
- default: {
2345
- bodyMapper: Mappers.CloudError,
2346
- },
2347
- },
2348
- queryParameters: [Parameters.apiVersion],
2349
- urlParameters: [
2350
- Parameters.$host,
2351
- Parameters.deploymentName,
2352
- Parameters.subscriptionId,
2353
- ],
2354
- headerParameters: [Parameters.accept],
2355
- serializer,
2356
- };
2357
- const validateAtSubscriptionScopeOperationSpec = {
2358
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
2359
- httpMethod: "POST",
2360
- responses: {
2361
- 200: {
2362
- bodyMapper: Mappers.DeploymentValidateResult,
2363
- },
2364
- 201: {
2365
- bodyMapper: Mappers.DeploymentValidateResult,
2366
- },
2367
- 202: {
2368
- bodyMapper: Mappers.DeploymentValidateResult,
2369
- },
2370
- 204: {
2371
- bodyMapper: Mappers.DeploymentValidateResult,
2372
- },
2373
- default: {
2374
- bodyMapper: Mappers.CloudError,
2375
- },
2376
- },
2377
- requestBody: Parameters.parameters,
2378
- queryParameters: [Parameters.apiVersion],
2379
- urlParameters: [
2380
- Parameters.$host,
2381
- Parameters.deploymentName,
2382
- Parameters.subscriptionId,
2383
- ],
2384
- headerParameters: [Parameters.accept, Parameters.contentType],
2385
- mediaType: "json",
2386
- serializer,
2387
- };
2388
- const whatIfAtSubscriptionScopeOperationSpec = {
2389
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf",
2390
- httpMethod: "POST",
2391
- responses: {
2392
- 200: {
2393
- bodyMapper: Mappers.WhatIfOperationResult,
2394
- },
2395
- 201: {
2396
- bodyMapper: Mappers.WhatIfOperationResult,
2397
- },
2398
- 202: {
2399
- bodyMapper: Mappers.WhatIfOperationResult,
2400
- },
2401
- 204: {
2402
- bodyMapper: Mappers.WhatIfOperationResult,
2403
- },
2404
- default: {
2405
- bodyMapper: Mappers.CloudError,
2406
- },
2407
- },
2408
- requestBody: Parameters.parameters3,
2409
- queryParameters: [Parameters.apiVersion],
2410
- urlParameters: [
2411
- Parameters.$host,
2412
- Parameters.deploymentName,
2413
- Parameters.subscriptionId,
2414
- ],
2415
- headerParameters: [Parameters.accept, Parameters.contentType],
2416
- mediaType: "json",
2417
- serializer,
2418
- };
2419
- const exportTemplateAtSubscriptionScopeOperationSpec = {
2420
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
2421
- httpMethod: "POST",
2422
- responses: {
2423
- 200: {
2424
- bodyMapper: Mappers.DeploymentExportResult,
2425
- },
2426
- default: {
2427
- bodyMapper: Mappers.CloudError,
2428
- },
2429
- },
2430
- queryParameters: [Parameters.apiVersion],
2431
- urlParameters: [
2432
- Parameters.$host,
2433
- Parameters.deploymentName,
2434
- Parameters.subscriptionId,
2435
- ],
2436
- headerParameters: [Parameters.accept],
2437
- serializer,
2438
- };
2439
- const listAtSubscriptionScopeOperationSpec = {
2440
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/",
2441
- httpMethod: "GET",
2442
- responses: {
2443
- 200: {
2444
- bodyMapper: Mappers.DeploymentListResult,
2445
- },
2446
- default: {
2447
- bodyMapper: Mappers.CloudError,
2448
- },
2449
- },
2450
- queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
2451
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
2452
- headerParameters: [Parameters.accept],
2453
- serializer,
2454
- };
2455
- const deleteOperationSpec = {
2456
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}",
2457
- httpMethod: "DELETE",
2458
- responses: {
2459
- 200: {},
2460
- 201: {},
2461
- 202: {},
2462
- 204: {},
2463
- default: {
2464
- bodyMapper: Mappers.CloudError,
2465
- },
2466
- },
2467
- queryParameters: [Parameters.apiVersion],
2468
- urlParameters: [
2469
- Parameters.$host,
2470
- Parameters.deploymentName,
2471
- Parameters.subscriptionId,
2472
- Parameters.resourceGroupName,
2473
- ],
2474
- headerParameters: [Parameters.accept],
2475
- serializer,
2476
- };
2477
- const checkExistenceOperationSpec = {
2478
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}",
2479
- httpMethod: "HEAD",
2480
- responses: {
2481
- 204: {},
2482
- 404: {},
2483
- default: {
2484
- bodyMapper: Mappers.CloudError,
2485
- },
2486
- },
2487
- queryParameters: [Parameters.apiVersion],
2488
- urlParameters: [
2489
- Parameters.$host,
2490
- Parameters.deploymentName,
2491
- Parameters.subscriptionId,
2492
- Parameters.resourceGroupName,
2493
- ],
2494
- headerParameters: [Parameters.accept],
2495
- serializer,
2496
- };
2497
- const createOrUpdateOperationSpec = {
2498
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}",
2499
- httpMethod: "PUT",
2500
- responses: {
2501
- 200: {
2502
- bodyMapper: Mappers.DeploymentExtended,
2503
- },
2504
- 201: {
2505
- bodyMapper: Mappers.DeploymentExtended,
2506
- },
2507
- 202: {
2508
- bodyMapper: Mappers.DeploymentExtended,
2509
- },
2510
- 204: {
2511
- bodyMapper: Mappers.DeploymentExtended,
2512
- },
2513
- default: {
2514
- bodyMapper: Mappers.CloudError,
2515
- },
2516
- },
2517
- requestBody: Parameters.parameters,
2518
- queryParameters: [Parameters.apiVersion],
2519
- urlParameters: [
2520
- Parameters.$host,
2521
- Parameters.deploymentName,
2522
- Parameters.subscriptionId,
2523
- Parameters.resourceGroupName,
2524
- ],
2525
- headerParameters: [Parameters.accept, Parameters.contentType],
2526
- mediaType: "json",
2527
- serializer,
2528
- };
2529
- const getOperationSpec = {
2530
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}",
2531
- httpMethod: "GET",
2532
- responses: {
2533
- 200: {
2534
- bodyMapper: Mappers.DeploymentExtended,
2535
- },
2536
- default: {
2537
- bodyMapper: Mappers.CloudError,
2538
- },
2539
- },
2540
- queryParameters: [Parameters.apiVersion],
2541
- urlParameters: [
2542
- Parameters.$host,
2543
- Parameters.deploymentName,
2544
- Parameters.subscriptionId,
2545
- Parameters.resourceGroupName,
2546
- ],
2547
- headerParameters: [Parameters.accept],
2548
- serializer,
2549
- };
2550
- const cancelOperationSpec = {
2551
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel",
2552
- httpMethod: "POST",
2553
- responses: {
2554
- 204: {},
2555
- default: {
2556
- bodyMapper: Mappers.CloudError,
2557
- },
2558
- },
2559
- queryParameters: [Parameters.apiVersion],
2560
- urlParameters: [
2561
- Parameters.$host,
2562
- Parameters.deploymentName,
2563
- Parameters.subscriptionId,
2564
- Parameters.resourceGroupName,
2565
- ],
2566
- headerParameters: [Parameters.accept],
2567
- serializer,
2568
- };
2569
- const validateOperationSpec = {
2570
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate",
2571
- httpMethod: "POST",
2572
- responses: {
2573
- 200: {
2574
- bodyMapper: Mappers.DeploymentValidateResult,
2575
- },
2576
- 201: {
2577
- bodyMapper: Mappers.DeploymentValidateResult,
2578
- },
2579
- 202: {
2580
- bodyMapper: Mappers.DeploymentValidateResult,
2581
- },
2582
- 204: {
2583
- bodyMapper: Mappers.DeploymentValidateResult,
2584
- },
2585
- default: {
2586
- bodyMapper: Mappers.CloudError,
2587
- },
2588
- },
2589
- requestBody: Parameters.parameters,
2590
- queryParameters: [Parameters.apiVersion],
2591
- urlParameters: [
2592
- Parameters.$host,
2593
- Parameters.deploymentName,
2594
- Parameters.subscriptionId,
2595
- Parameters.resourceGroupName,
2596
- ],
2597
- headerParameters: [Parameters.accept, Parameters.contentType],
2598
- mediaType: "json",
2599
- serializer,
2600
- };
2601
- const whatIfOperationSpec = {
2602
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf",
2603
- httpMethod: "POST",
2604
- responses: {
2605
- 200: {
2606
- bodyMapper: Mappers.WhatIfOperationResult,
2607
- },
2608
- 201: {
2609
- bodyMapper: Mappers.WhatIfOperationResult,
2610
- },
2611
- 202: {
2612
- bodyMapper: Mappers.WhatIfOperationResult,
2613
- },
2614
- 204: {
2615
- bodyMapper: Mappers.WhatIfOperationResult,
2616
- },
2617
- default: {
2618
- bodyMapper: Mappers.CloudError,
2619
- },
2620
- },
2621
- requestBody: Parameters.parameters3,
2622
- queryParameters: [Parameters.apiVersion],
2623
- urlParameters: [
2624
- Parameters.$host,
2625
- Parameters.deploymentName,
2626
- Parameters.subscriptionId,
2627
- Parameters.resourceGroupName,
2628
- ],
2629
- headerParameters: [Parameters.accept, Parameters.contentType],
2630
- mediaType: "json",
2631
- serializer,
2632
- };
2633
- const exportTemplateOperationSpec = {
2634
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate",
2635
- httpMethod: "POST",
2636
- responses: {
2637
- 200: {
2638
- bodyMapper: Mappers.DeploymentExportResult,
2639
- },
2640
- default: {
2641
- bodyMapper: Mappers.CloudError,
2642
- },
2643
- },
2644
- queryParameters: [Parameters.apiVersion],
2645
- urlParameters: [
2646
- Parameters.$host,
2647
- Parameters.deploymentName,
2648
- Parameters.subscriptionId,
2649
- Parameters.resourceGroupName,
2650
- ],
2651
- headerParameters: [Parameters.accept],
2652
- serializer,
2653
- };
2654
- const listByResourceGroupOperationSpec = {
2655
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/",
2656
- httpMethod: "GET",
2657
- responses: {
2658
- 200: {
2659
- bodyMapper: Mappers.DeploymentListResult,
2660
- },
2661
- default: {
2662
- bodyMapper: Mappers.CloudError,
2663
- },
2664
- },
2665
- queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top],
2666
- urlParameters: [
2667
- Parameters.$host,
2668
- Parameters.subscriptionId,
2669
- Parameters.resourceGroupName,
2670
- ],
2671
- headerParameters: [Parameters.accept],
2672
- serializer,
2673
- };
2674
- const calculateTemplateHashOperationSpec = {
2675
- path: "/providers/Microsoft.Resources/calculateTemplateHash",
2676
- httpMethod: "POST",
2677
- responses: {
2678
- 200: {
2679
- bodyMapper: Mappers.TemplateHashResult,
2680
- },
2681
- default: {
2682
- bodyMapper: Mappers.CloudError,
2683
- },
2684
- },
2685
- requestBody: Parameters.template,
2686
- queryParameters: [Parameters.apiVersion],
2687
- urlParameters: [Parameters.$host],
2688
- headerParameters: [Parameters.accept, Parameters.contentType],
2689
- mediaType: "json",
2690
- serializer,
2691
- };
2692
- const listAtScopeNextOperationSpec = {
2693
- path: "{nextLink}",
2694
- httpMethod: "GET",
2695
- responses: {
2696
- 200: {
2697
- bodyMapper: Mappers.DeploymentListResult,
2698
- },
2699
- default: {
2700
- bodyMapper: Mappers.CloudError,
2701
- },
2702
- },
2703
- urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],
2704
- headerParameters: [Parameters.accept],
2705
- serializer,
2706
- };
2707
- const listAtTenantScopeNextOperationSpec = {
2708
- path: "{nextLink}",
2709
- httpMethod: "GET",
2710
- responses: {
2711
- 200: {
2712
- bodyMapper: Mappers.DeploymentListResult,
2713
- },
2714
- default: {
2715
- bodyMapper: Mappers.CloudError,
2716
- },
2717
- },
2718
- urlParameters: [Parameters.$host, Parameters.nextLink],
2719
- headerParameters: [Parameters.accept],
2720
- serializer,
2721
- };
2722
- const listAtManagementGroupScopeNextOperationSpec = {
2723
- path: "{nextLink}",
2724
- httpMethod: "GET",
2725
- responses: {
2726
- 200: {
2727
- bodyMapper: Mappers.DeploymentListResult,
2728
- },
2729
- default: {
2730
- bodyMapper: Mappers.CloudError,
2731
- },
2732
- },
2733
- urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.groupId],
2734
- headerParameters: [Parameters.accept],
2735
- serializer,
2736
- };
2737
- const listAtSubscriptionScopeNextOperationSpec = {
2738
- path: "{nextLink}",
2739
- httpMethod: "GET",
2740
- responses: {
2741
- 200: {
2742
- bodyMapper: Mappers.DeploymentListResult,
2743
- },
2744
- default: {
2745
- bodyMapper: Mappers.CloudError,
2746
- },
2747
- },
2748
- urlParameters: [
2749
- Parameters.$host,
2750
- Parameters.nextLink,
2751
- Parameters.subscriptionId,
2752
- ],
2753
- headerParameters: [Parameters.accept],
2754
- serializer,
2755
- };
2756
- const listByResourceGroupNextOperationSpec = {
2757
- path: "{nextLink}",
2758
- httpMethod: "GET",
2759
- responses: {
2760
- 200: {
2761
- bodyMapper: Mappers.DeploymentListResult,
2762
- },
2763
- default: {
2764
- bodyMapper: Mappers.CloudError,
2765
- },
2766
- },
2767
- urlParameters: [
2768
- Parameters.$host,
2769
- Parameters.nextLink,
2770
- Parameters.subscriptionId,
2771
- Parameters.resourceGroupName,
2772
- ],
2773
- headerParameters: [Parameters.accept],
2774
- serializer,
2775
- };
2776
- //# sourceMappingURL=deployments.js.map