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