@azure/arm-resourcesdeploymentstacks 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +2308 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtManagementGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtManagementGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtManagementGroupSample.js +53 -0
- package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtManagementGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtResourceGroupSample.js +56 -0
- package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtSubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtSubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtSubscriptionSample.js +54 -0
- package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtSubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksDeleteAtManagementGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentStacksDeleteAtManagementGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksDeleteAtManagementGroupSample.js +37 -0
- package/dist-esm/samples-dev/deploymentStacksDeleteAtManagementGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksDeleteAtResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentStacksDeleteAtResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksDeleteAtResourceGroupSample.js +40 -0
- package/dist-esm/samples-dev/deploymentStacksDeleteAtResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksDeleteAtSubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentStacksDeleteAtSubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksDeleteAtSubscriptionSample.js +38 -0
- package/dist-esm/samples-dev/deploymentStacksDeleteAtSubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksExportTemplateAtManagementGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentStacksExportTemplateAtManagementGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksExportTemplateAtManagementGroupSample.js +37 -0
- package/dist-esm/samples-dev/deploymentStacksExportTemplateAtManagementGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksExportTemplateAtResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentStacksExportTemplateAtResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksExportTemplateAtResourceGroupSample.js +40 -0
- package/dist-esm/samples-dev/deploymentStacksExportTemplateAtResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksExportTemplateAtSubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentStacksExportTemplateAtSubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksExportTemplateAtSubscriptionSample.js +38 -0
- package/dist-esm/samples-dev/deploymentStacksExportTemplateAtSubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksGetAtManagementGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentStacksGetAtManagementGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksGetAtManagementGroupSample.js +37 -0
- package/dist-esm/samples-dev/deploymentStacksGetAtManagementGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksGetAtResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentStacksGetAtResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksGetAtResourceGroupSample.js +40 -0
- package/dist-esm/samples-dev/deploymentStacksGetAtResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksGetAtSubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentStacksGetAtSubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksGetAtSubscriptionSample.js +38 -0
- package/dist-esm/samples-dev/deploymentStacksGetAtSubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksListAtManagementGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentStacksListAtManagementGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksListAtManagementGroupSample.js +57 -0
- package/dist-esm/samples-dev/deploymentStacksListAtManagementGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksListAtResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentStacksListAtResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksListAtResourceGroupSample.js +60 -0
- package/dist-esm/samples-dev/deploymentStacksListAtResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksListAtSubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentStacksListAtSubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentStacksListAtSubscriptionSample.js +58 -0
- package/dist-esm/samples-dev/deploymentStacksListAtSubscriptionSample.js.map +1 -0
- package/dist-esm/src/deploymentStacksClient.d.ts +21 -0
- package/dist-esm/src/deploymentStacksClient.d.ts.map +1 -0
- package/dist-esm/src/deploymentStacksClient.js +98 -0
- package/dist-esm/src/deploymentStacksClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +11 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +21 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +642 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +116 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +23 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +758 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +15 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +152 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/deploymentStacks.d.ts +207 -0
- package/dist-esm/src/operations/deploymentStacks.d.ts.map +1 -0
- package/dist-esm/src/operations/deploymentStacks.js +1086 -0
- package/dist-esm/src/operations/deploymentStacks.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +9 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/deploymentStacks.d.ts +156 -0
- package/dist-esm/src/operationsInterfaces/deploymentStacks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/deploymentStacks.js +9 -0
- package/dist-esm/src/operationsInterfaces/deploymentStacks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +9 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/resourcesdeploymentstacks_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/resourcesdeploymentstacks_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/resourcesdeploymentstacks_operations_test.spec.js +162 -0
- package/dist-esm/test/resourcesdeploymentstacks_operations_test.spec.js.map +1 -0
- package/package.json +124 -0
- package/review/arm-resourcesdeploymentstacks.api.md +469 -0
- package/rollup.config.js +122 -0
- package/src/deploymentStacksClient.ts +154 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +42 -0
- package/src/models/index.ts +728 -0
- package/src/models/mappers.ts +828 -0
- package/src/models/parameters.ts +170 -0
- package/src/operations/deploymentStacks.ts +1420 -0
- package/src/operations/index.ts +9 -0
- package/src/operationsInterfaces/deploymentStacks.ts +286 -0
- package/src/operationsInterfaces/index.ts +9 -0
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +33 -0
- package/types/arm-resourcesdeploymentstacks.d.ts +899 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,1420 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
+
import { DeploymentStacks } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { DeploymentStacksClient } from "../deploymentStacksClient";
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
22
|
+
import {
|
|
23
|
+
DeploymentStack,
|
|
24
|
+
DeploymentStacksListAtResourceGroupNextOptionalParams,
|
|
25
|
+
DeploymentStacksListAtResourceGroupOptionalParams,
|
|
26
|
+
DeploymentStacksListAtResourceGroupResponse,
|
|
27
|
+
DeploymentStacksListAtSubscriptionNextOptionalParams,
|
|
28
|
+
DeploymentStacksListAtSubscriptionOptionalParams,
|
|
29
|
+
DeploymentStacksListAtSubscriptionResponse,
|
|
30
|
+
DeploymentStacksListAtManagementGroupNextOptionalParams,
|
|
31
|
+
DeploymentStacksListAtManagementGroupOptionalParams,
|
|
32
|
+
DeploymentStacksListAtManagementGroupResponse,
|
|
33
|
+
DeploymentStacksCreateOrUpdateAtResourceGroupOptionalParams,
|
|
34
|
+
DeploymentStacksCreateOrUpdateAtResourceGroupResponse,
|
|
35
|
+
DeploymentStacksGetAtResourceGroupOptionalParams,
|
|
36
|
+
DeploymentStacksGetAtResourceGroupResponse,
|
|
37
|
+
DeploymentStacksDeleteAtResourceGroupOptionalParams,
|
|
38
|
+
DeploymentStacksCreateOrUpdateAtSubscriptionOptionalParams,
|
|
39
|
+
DeploymentStacksCreateOrUpdateAtSubscriptionResponse,
|
|
40
|
+
DeploymentStacksGetAtSubscriptionOptionalParams,
|
|
41
|
+
DeploymentStacksGetAtSubscriptionResponse,
|
|
42
|
+
DeploymentStacksDeleteAtSubscriptionOptionalParams,
|
|
43
|
+
DeploymentStacksCreateOrUpdateAtManagementGroupOptionalParams,
|
|
44
|
+
DeploymentStacksCreateOrUpdateAtManagementGroupResponse,
|
|
45
|
+
DeploymentStacksGetAtManagementGroupOptionalParams,
|
|
46
|
+
DeploymentStacksGetAtManagementGroupResponse,
|
|
47
|
+
DeploymentStacksDeleteAtManagementGroupOptionalParams,
|
|
48
|
+
DeploymentStacksExportTemplateAtResourceGroupOptionalParams,
|
|
49
|
+
DeploymentStacksExportTemplateAtResourceGroupResponse,
|
|
50
|
+
DeploymentStacksExportTemplateAtSubscriptionOptionalParams,
|
|
51
|
+
DeploymentStacksExportTemplateAtSubscriptionResponse,
|
|
52
|
+
DeploymentStacksExportTemplateAtManagementGroupOptionalParams,
|
|
53
|
+
DeploymentStacksExportTemplateAtManagementGroupResponse,
|
|
54
|
+
DeploymentStacksListAtResourceGroupNextResponse,
|
|
55
|
+
DeploymentStacksListAtSubscriptionNextResponse,
|
|
56
|
+
DeploymentStacksListAtManagementGroupNextResponse
|
|
57
|
+
} from "../models";
|
|
58
|
+
|
|
59
|
+
/// <reference lib="esnext.asynciterable" />
|
|
60
|
+
/** Class containing DeploymentStacks operations. */
|
|
61
|
+
export class DeploymentStacksImpl implements DeploymentStacks {
|
|
62
|
+
private readonly client: DeploymentStacksClient;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Initialize a new instance of the class DeploymentStacks class.
|
|
66
|
+
* @param client Reference to the service client
|
|
67
|
+
*/
|
|
68
|
+
constructor(client: DeploymentStacksClient) {
|
|
69
|
+
this.client = client;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Lists all the Deployment Stacks within the specified resource group.
|
|
74
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
75
|
+
* @param options The options parameters.
|
|
76
|
+
*/
|
|
77
|
+
public listAtResourceGroup(
|
|
78
|
+
resourceGroupName: string,
|
|
79
|
+
options?: DeploymentStacksListAtResourceGroupOptionalParams
|
|
80
|
+
): PagedAsyncIterableIterator<DeploymentStack> {
|
|
81
|
+
const iter = this.listAtResourceGroupPagingAll(resourceGroupName, options);
|
|
82
|
+
return {
|
|
83
|
+
next() {
|
|
84
|
+
return iter.next();
|
|
85
|
+
},
|
|
86
|
+
[Symbol.asyncIterator]() {
|
|
87
|
+
return this;
|
|
88
|
+
},
|
|
89
|
+
byPage: (settings?: PageSettings) => {
|
|
90
|
+
if (settings?.maxPageSize) {
|
|
91
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
92
|
+
}
|
|
93
|
+
return this.listAtResourceGroupPagingPage(
|
|
94
|
+
resourceGroupName,
|
|
95
|
+
options,
|
|
96
|
+
settings
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
private async *listAtResourceGroupPagingPage(
|
|
103
|
+
resourceGroupName: string,
|
|
104
|
+
options?: DeploymentStacksListAtResourceGroupOptionalParams,
|
|
105
|
+
settings?: PageSettings
|
|
106
|
+
): AsyncIterableIterator<DeploymentStack[]> {
|
|
107
|
+
let result: DeploymentStacksListAtResourceGroupResponse;
|
|
108
|
+
let continuationToken = settings?.continuationToken;
|
|
109
|
+
if (!continuationToken) {
|
|
110
|
+
result = await this._listAtResourceGroup(resourceGroupName, options);
|
|
111
|
+
let page = result.value || [];
|
|
112
|
+
continuationToken = result.nextLink;
|
|
113
|
+
setContinuationToken(page, continuationToken);
|
|
114
|
+
yield page;
|
|
115
|
+
}
|
|
116
|
+
while (continuationToken) {
|
|
117
|
+
result = await this._listAtResourceGroupNext(
|
|
118
|
+
resourceGroupName,
|
|
119
|
+
continuationToken,
|
|
120
|
+
options
|
|
121
|
+
);
|
|
122
|
+
continuationToken = result.nextLink;
|
|
123
|
+
let page = result.value || [];
|
|
124
|
+
setContinuationToken(page, continuationToken);
|
|
125
|
+
yield page;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
private async *listAtResourceGroupPagingAll(
|
|
130
|
+
resourceGroupName: string,
|
|
131
|
+
options?: DeploymentStacksListAtResourceGroupOptionalParams
|
|
132
|
+
): AsyncIterableIterator<DeploymentStack> {
|
|
133
|
+
for await (const page of this.listAtResourceGroupPagingPage(
|
|
134
|
+
resourceGroupName,
|
|
135
|
+
options
|
|
136
|
+
)) {
|
|
137
|
+
yield* page;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Lists all the Deployment Stacks within the specified subscription.
|
|
143
|
+
* @param options The options parameters.
|
|
144
|
+
*/
|
|
145
|
+
public listAtSubscription(
|
|
146
|
+
options?: DeploymentStacksListAtSubscriptionOptionalParams
|
|
147
|
+
): PagedAsyncIterableIterator<DeploymentStack> {
|
|
148
|
+
const iter = this.listAtSubscriptionPagingAll(options);
|
|
149
|
+
return {
|
|
150
|
+
next() {
|
|
151
|
+
return iter.next();
|
|
152
|
+
},
|
|
153
|
+
[Symbol.asyncIterator]() {
|
|
154
|
+
return this;
|
|
155
|
+
},
|
|
156
|
+
byPage: (settings?: PageSettings) => {
|
|
157
|
+
if (settings?.maxPageSize) {
|
|
158
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
159
|
+
}
|
|
160
|
+
return this.listAtSubscriptionPagingPage(options, settings);
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
private async *listAtSubscriptionPagingPage(
|
|
166
|
+
options?: DeploymentStacksListAtSubscriptionOptionalParams,
|
|
167
|
+
settings?: PageSettings
|
|
168
|
+
): AsyncIterableIterator<DeploymentStack[]> {
|
|
169
|
+
let result: DeploymentStacksListAtSubscriptionResponse;
|
|
170
|
+
let continuationToken = settings?.continuationToken;
|
|
171
|
+
if (!continuationToken) {
|
|
172
|
+
result = await this._listAtSubscription(options);
|
|
173
|
+
let page = result.value || [];
|
|
174
|
+
continuationToken = result.nextLink;
|
|
175
|
+
setContinuationToken(page, continuationToken);
|
|
176
|
+
yield page;
|
|
177
|
+
}
|
|
178
|
+
while (continuationToken) {
|
|
179
|
+
result = await this._listAtSubscriptionNext(continuationToken, options);
|
|
180
|
+
continuationToken = result.nextLink;
|
|
181
|
+
let page = result.value || [];
|
|
182
|
+
setContinuationToken(page, continuationToken);
|
|
183
|
+
yield page;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
private async *listAtSubscriptionPagingAll(
|
|
188
|
+
options?: DeploymentStacksListAtSubscriptionOptionalParams
|
|
189
|
+
): AsyncIterableIterator<DeploymentStack> {
|
|
190
|
+
for await (const page of this.listAtSubscriptionPagingPage(options)) {
|
|
191
|
+
yield* page;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Lists all the Deployment Stacks within the specified management group.
|
|
197
|
+
* @param managementGroupId Management Group.
|
|
198
|
+
* @param options The options parameters.
|
|
199
|
+
*/
|
|
200
|
+
public listAtManagementGroup(
|
|
201
|
+
managementGroupId: string,
|
|
202
|
+
options?: DeploymentStacksListAtManagementGroupOptionalParams
|
|
203
|
+
): PagedAsyncIterableIterator<DeploymentStack> {
|
|
204
|
+
const iter = this.listAtManagementGroupPagingAll(
|
|
205
|
+
managementGroupId,
|
|
206
|
+
options
|
|
207
|
+
);
|
|
208
|
+
return {
|
|
209
|
+
next() {
|
|
210
|
+
return iter.next();
|
|
211
|
+
},
|
|
212
|
+
[Symbol.asyncIterator]() {
|
|
213
|
+
return this;
|
|
214
|
+
},
|
|
215
|
+
byPage: (settings?: PageSettings) => {
|
|
216
|
+
if (settings?.maxPageSize) {
|
|
217
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
218
|
+
}
|
|
219
|
+
return this.listAtManagementGroupPagingPage(
|
|
220
|
+
managementGroupId,
|
|
221
|
+
options,
|
|
222
|
+
settings
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
private async *listAtManagementGroupPagingPage(
|
|
229
|
+
managementGroupId: string,
|
|
230
|
+
options?: DeploymentStacksListAtManagementGroupOptionalParams,
|
|
231
|
+
settings?: PageSettings
|
|
232
|
+
): AsyncIterableIterator<DeploymentStack[]> {
|
|
233
|
+
let result: DeploymentStacksListAtManagementGroupResponse;
|
|
234
|
+
let continuationToken = settings?.continuationToken;
|
|
235
|
+
if (!continuationToken) {
|
|
236
|
+
result = await this._listAtManagementGroup(managementGroupId, options);
|
|
237
|
+
let page = result.value || [];
|
|
238
|
+
continuationToken = result.nextLink;
|
|
239
|
+
setContinuationToken(page, continuationToken);
|
|
240
|
+
yield page;
|
|
241
|
+
}
|
|
242
|
+
while (continuationToken) {
|
|
243
|
+
result = await this._listAtManagementGroupNext(
|
|
244
|
+
managementGroupId,
|
|
245
|
+
continuationToken,
|
|
246
|
+
options
|
|
247
|
+
);
|
|
248
|
+
continuationToken = result.nextLink;
|
|
249
|
+
let page = result.value || [];
|
|
250
|
+
setContinuationToken(page, continuationToken);
|
|
251
|
+
yield page;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
private async *listAtManagementGroupPagingAll(
|
|
256
|
+
managementGroupId: string,
|
|
257
|
+
options?: DeploymentStacksListAtManagementGroupOptionalParams
|
|
258
|
+
): AsyncIterableIterator<DeploymentStack> {
|
|
259
|
+
for await (const page of this.listAtManagementGroupPagingPage(
|
|
260
|
+
managementGroupId,
|
|
261
|
+
options
|
|
262
|
+
)) {
|
|
263
|
+
yield* page;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Lists all the Deployment Stacks within the specified resource group.
|
|
269
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
270
|
+
* @param options The options parameters.
|
|
271
|
+
*/
|
|
272
|
+
private _listAtResourceGroup(
|
|
273
|
+
resourceGroupName: string,
|
|
274
|
+
options?: DeploymentStacksListAtResourceGroupOptionalParams
|
|
275
|
+
): Promise<DeploymentStacksListAtResourceGroupResponse> {
|
|
276
|
+
return this.client.sendOperationRequest(
|
|
277
|
+
{ resourceGroupName, options },
|
|
278
|
+
listAtResourceGroupOperationSpec
|
|
279
|
+
);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Lists all the Deployment Stacks within the specified subscription.
|
|
284
|
+
* @param options The options parameters.
|
|
285
|
+
*/
|
|
286
|
+
private _listAtSubscription(
|
|
287
|
+
options?: DeploymentStacksListAtSubscriptionOptionalParams
|
|
288
|
+
): Promise<DeploymentStacksListAtSubscriptionResponse> {
|
|
289
|
+
return this.client.sendOperationRequest(
|
|
290
|
+
{ options },
|
|
291
|
+
listAtSubscriptionOperationSpec
|
|
292
|
+
);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Lists all the Deployment Stacks within the specified management group.
|
|
297
|
+
* @param managementGroupId Management Group.
|
|
298
|
+
* @param options The options parameters.
|
|
299
|
+
*/
|
|
300
|
+
private _listAtManagementGroup(
|
|
301
|
+
managementGroupId: string,
|
|
302
|
+
options?: DeploymentStacksListAtManagementGroupOptionalParams
|
|
303
|
+
): Promise<DeploymentStacksListAtManagementGroupResponse> {
|
|
304
|
+
return this.client.sendOperationRequest(
|
|
305
|
+
{ managementGroupId, options },
|
|
306
|
+
listAtManagementGroupOperationSpec
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Creates or updates a Deployment Stack.
|
|
312
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
313
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
314
|
+
* @param deploymentStack Deployment Stack supplied to the operation.
|
|
315
|
+
* @param options The options parameters.
|
|
316
|
+
*/
|
|
317
|
+
async beginCreateOrUpdateAtResourceGroup(
|
|
318
|
+
resourceGroupName: string,
|
|
319
|
+
deploymentStackName: string,
|
|
320
|
+
deploymentStack: DeploymentStack,
|
|
321
|
+
options?: DeploymentStacksCreateOrUpdateAtResourceGroupOptionalParams
|
|
322
|
+
): Promise<
|
|
323
|
+
SimplePollerLike<
|
|
324
|
+
OperationState<DeploymentStacksCreateOrUpdateAtResourceGroupResponse>,
|
|
325
|
+
DeploymentStacksCreateOrUpdateAtResourceGroupResponse
|
|
326
|
+
>
|
|
327
|
+
> {
|
|
328
|
+
const directSendOperation = async (
|
|
329
|
+
args: coreClient.OperationArguments,
|
|
330
|
+
spec: coreClient.OperationSpec
|
|
331
|
+
): Promise<DeploymentStacksCreateOrUpdateAtResourceGroupResponse> => {
|
|
332
|
+
return this.client.sendOperationRequest(args, spec);
|
|
333
|
+
};
|
|
334
|
+
const sendOperationFn = async (
|
|
335
|
+
args: coreClient.OperationArguments,
|
|
336
|
+
spec: coreClient.OperationSpec
|
|
337
|
+
) => {
|
|
338
|
+
let currentRawResponse:
|
|
339
|
+
| coreClient.FullOperationResponse
|
|
340
|
+
| undefined = undefined;
|
|
341
|
+
const providedCallback = args.options?.onResponse;
|
|
342
|
+
const callback: coreClient.RawResponseCallback = (
|
|
343
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
344
|
+
flatResponse: unknown
|
|
345
|
+
) => {
|
|
346
|
+
currentRawResponse = rawResponse;
|
|
347
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
348
|
+
};
|
|
349
|
+
const updatedArgs = {
|
|
350
|
+
...args,
|
|
351
|
+
options: {
|
|
352
|
+
...args.options,
|
|
353
|
+
onResponse: callback
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
357
|
+
return {
|
|
358
|
+
flatResponse,
|
|
359
|
+
rawResponse: {
|
|
360
|
+
statusCode: currentRawResponse!.status,
|
|
361
|
+
body: currentRawResponse!.parsedBody,
|
|
362
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
const lro = createLroSpec({
|
|
368
|
+
sendOperationFn,
|
|
369
|
+
args: {
|
|
370
|
+
resourceGroupName,
|
|
371
|
+
deploymentStackName,
|
|
372
|
+
deploymentStack,
|
|
373
|
+
options
|
|
374
|
+
},
|
|
375
|
+
spec: createOrUpdateAtResourceGroupOperationSpec
|
|
376
|
+
});
|
|
377
|
+
const poller = await createHttpPoller<
|
|
378
|
+
DeploymentStacksCreateOrUpdateAtResourceGroupResponse,
|
|
379
|
+
OperationState<DeploymentStacksCreateOrUpdateAtResourceGroupResponse>
|
|
380
|
+
>(lro, {
|
|
381
|
+
restoreFrom: options?.resumeFrom,
|
|
382
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
383
|
+
resourceLocationConfig: "azure-async-operation"
|
|
384
|
+
});
|
|
385
|
+
await poller.poll();
|
|
386
|
+
return poller;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Creates or updates a Deployment Stack.
|
|
391
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
392
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
393
|
+
* @param deploymentStack Deployment Stack supplied to the operation.
|
|
394
|
+
* @param options The options parameters.
|
|
395
|
+
*/
|
|
396
|
+
async beginCreateOrUpdateAtResourceGroupAndWait(
|
|
397
|
+
resourceGroupName: string,
|
|
398
|
+
deploymentStackName: string,
|
|
399
|
+
deploymentStack: DeploymentStack,
|
|
400
|
+
options?: DeploymentStacksCreateOrUpdateAtResourceGroupOptionalParams
|
|
401
|
+
): Promise<DeploymentStacksCreateOrUpdateAtResourceGroupResponse> {
|
|
402
|
+
const poller = await this.beginCreateOrUpdateAtResourceGroup(
|
|
403
|
+
resourceGroupName,
|
|
404
|
+
deploymentStackName,
|
|
405
|
+
deploymentStack,
|
|
406
|
+
options
|
|
407
|
+
);
|
|
408
|
+
return poller.pollUntilDone();
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Gets a Deployment Stack with a given name.
|
|
413
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
414
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
415
|
+
* @param options The options parameters.
|
|
416
|
+
*/
|
|
417
|
+
getAtResourceGroup(
|
|
418
|
+
resourceGroupName: string,
|
|
419
|
+
deploymentStackName: string,
|
|
420
|
+
options?: DeploymentStacksGetAtResourceGroupOptionalParams
|
|
421
|
+
): Promise<DeploymentStacksGetAtResourceGroupResponse> {
|
|
422
|
+
return this.client.sendOperationRequest(
|
|
423
|
+
{ resourceGroupName, deploymentStackName, options },
|
|
424
|
+
getAtResourceGroupOperationSpec
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Deletes a Deployment Stack by name. When operation completes, status code 200 returned without
|
|
430
|
+
* content.
|
|
431
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
432
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
433
|
+
* @param options The options parameters.
|
|
434
|
+
*/
|
|
435
|
+
async beginDeleteAtResourceGroup(
|
|
436
|
+
resourceGroupName: string,
|
|
437
|
+
deploymentStackName: string,
|
|
438
|
+
options?: DeploymentStacksDeleteAtResourceGroupOptionalParams
|
|
439
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
440
|
+
const directSendOperation = async (
|
|
441
|
+
args: coreClient.OperationArguments,
|
|
442
|
+
spec: coreClient.OperationSpec
|
|
443
|
+
): Promise<void> => {
|
|
444
|
+
return this.client.sendOperationRequest(args, spec);
|
|
445
|
+
};
|
|
446
|
+
const sendOperationFn = async (
|
|
447
|
+
args: coreClient.OperationArguments,
|
|
448
|
+
spec: coreClient.OperationSpec
|
|
449
|
+
) => {
|
|
450
|
+
let currentRawResponse:
|
|
451
|
+
| coreClient.FullOperationResponse
|
|
452
|
+
| undefined = undefined;
|
|
453
|
+
const providedCallback = args.options?.onResponse;
|
|
454
|
+
const callback: coreClient.RawResponseCallback = (
|
|
455
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
456
|
+
flatResponse: unknown
|
|
457
|
+
) => {
|
|
458
|
+
currentRawResponse = rawResponse;
|
|
459
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
460
|
+
};
|
|
461
|
+
const updatedArgs = {
|
|
462
|
+
...args,
|
|
463
|
+
options: {
|
|
464
|
+
...args.options,
|
|
465
|
+
onResponse: callback
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
469
|
+
return {
|
|
470
|
+
flatResponse,
|
|
471
|
+
rawResponse: {
|
|
472
|
+
statusCode: currentRawResponse!.status,
|
|
473
|
+
body: currentRawResponse!.parsedBody,
|
|
474
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
const lro = createLroSpec({
|
|
480
|
+
sendOperationFn,
|
|
481
|
+
args: { resourceGroupName, deploymentStackName, options },
|
|
482
|
+
spec: deleteAtResourceGroupOperationSpec
|
|
483
|
+
});
|
|
484
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
485
|
+
restoreFrom: options?.resumeFrom,
|
|
486
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
487
|
+
resourceLocationConfig: "location"
|
|
488
|
+
});
|
|
489
|
+
await poller.poll();
|
|
490
|
+
return poller;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Deletes a Deployment Stack by name. When operation completes, status code 200 returned without
|
|
495
|
+
* content.
|
|
496
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
497
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
498
|
+
* @param options The options parameters.
|
|
499
|
+
*/
|
|
500
|
+
async beginDeleteAtResourceGroupAndWait(
|
|
501
|
+
resourceGroupName: string,
|
|
502
|
+
deploymentStackName: string,
|
|
503
|
+
options?: DeploymentStacksDeleteAtResourceGroupOptionalParams
|
|
504
|
+
): Promise<void> {
|
|
505
|
+
const poller = await this.beginDeleteAtResourceGroup(
|
|
506
|
+
resourceGroupName,
|
|
507
|
+
deploymentStackName,
|
|
508
|
+
options
|
|
509
|
+
);
|
|
510
|
+
return poller.pollUntilDone();
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Creates or updates a Deployment Stack.
|
|
515
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
516
|
+
* @param deploymentStack Deployment Stack supplied to the operation.
|
|
517
|
+
* @param options The options parameters.
|
|
518
|
+
*/
|
|
519
|
+
async beginCreateOrUpdateAtSubscription(
|
|
520
|
+
deploymentStackName: string,
|
|
521
|
+
deploymentStack: DeploymentStack,
|
|
522
|
+
options?: DeploymentStacksCreateOrUpdateAtSubscriptionOptionalParams
|
|
523
|
+
): Promise<
|
|
524
|
+
SimplePollerLike<
|
|
525
|
+
OperationState<DeploymentStacksCreateOrUpdateAtSubscriptionResponse>,
|
|
526
|
+
DeploymentStacksCreateOrUpdateAtSubscriptionResponse
|
|
527
|
+
>
|
|
528
|
+
> {
|
|
529
|
+
const directSendOperation = async (
|
|
530
|
+
args: coreClient.OperationArguments,
|
|
531
|
+
spec: coreClient.OperationSpec
|
|
532
|
+
): Promise<DeploymentStacksCreateOrUpdateAtSubscriptionResponse> => {
|
|
533
|
+
return this.client.sendOperationRequest(args, spec);
|
|
534
|
+
};
|
|
535
|
+
const sendOperationFn = async (
|
|
536
|
+
args: coreClient.OperationArguments,
|
|
537
|
+
spec: coreClient.OperationSpec
|
|
538
|
+
) => {
|
|
539
|
+
let currentRawResponse:
|
|
540
|
+
| coreClient.FullOperationResponse
|
|
541
|
+
| undefined = undefined;
|
|
542
|
+
const providedCallback = args.options?.onResponse;
|
|
543
|
+
const callback: coreClient.RawResponseCallback = (
|
|
544
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
545
|
+
flatResponse: unknown
|
|
546
|
+
) => {
|
|
547
|
+
currentRawResponse = rawResponse;
|
|
548
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
549
|
+
};
|
|
550
|
+
const updatedArgs = {
|
|
551
|
+
...args,
|
|
552
|
+
options: {
|
|
553
|
+
...args.options,
|
|
554
|
+
onResponse: callback
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
558
|
+
return {
|
|
559
|
+
flatResponse,
|
|
560
|
+
rawResponse: {
|
|
561
|
+
statusCode: currentRawResponse!.status,
|
|
562
|
+
body: currentRawResponse!.parsedBody,
|
|
563
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
const lro = createLroSpec({
|
|
569
|
+
sendOperationFn,
|
|
570
|
+
args: { deploymentStackName, deploymentStack, options },
|
|
571
|
+
spec: createOrUpdateAtSubscriptionOperationSpec
|
|
572
|
+
});
|
|
573
|
+
const poller = await createHttpPoller<
|
|
574
|
+
DeploymentStacksCreateOrUpdateAtSubscriptionResponse,
|
|
575
|
+
OperationState<DeploymentStacksCreateOrUpdateAtSubscriptionResponse>
|
|
576
|
+
>(lro, {
|
|
577
|
+
restoreFrom: options?.resumeFrom,
|
|
578
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
579
|
+
resourceLocationConfig: "azure-async-operation"
|
|
580
|
+
});
|
|
581
|
+
await poller.poll();
|
|
582
|
+
return poller;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* Creates or updates a Deployment Stack.
|
|
587
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
588
|
+
* @param deploymentStack Deployment Stack supplied to the operation.
|
|
589
|
+
* @param options The options parameters.
|
|
590
|
+
*/
|
|
591
|
+
async beginCreateOrUpdateAtSubscriptionAndWait(
|
|
592
|
+
deploymentStackName: string,
|
|
593
|
+
deploymentStack: DeploymentStack,
|
|
594
|
+
options?: DeploymentStacksCreateOrUpdateAtSubscriptionOptionalParams
|
|
595
|
+
): Promise<DeploymentStacksCreateOrUpdateAtSubscriptionResponse> {
|
|
596
|
+
const poller = await this.beginCreateOrUpdateAtSubscription(
|
|
597
|
+
deploymentStackName,
|
|
598
|
+
deploymentStack,
|
|
599
|
+
options
|
|
600
|
+
);
|
|
601
|
+
return poller.pollUntilDone();
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* Gets a Deployment Stack with a given name.
|
|
606
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
607
|
+
* @param options The options parameters.
|
|
608
|
+
*/
|
|
609
|
+
getAtSubscription(
|
|
610
|
+
deploymentStackName: string,
|
|
611
|
+
options?: DeploymentStacksGetAtSubscriptionOptionalParams
|
|
612
|
+
): Promise<DeploymentStacksGetAtSubscriptionResponse> {
|
|
613
|
+
return this.client.sendOperationRequest(
|
|
614
|
+
{ deploymentStackName, options },
|
|
615
|
+
getAtSubscriptionOperationSpec
|
|
616
|
+
);
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Deletes a Deployment Stack by name. When operation completes, status code 200 returned without
|
|
621
|
+
* content.
|
|
622
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
623
|
+
* @param options The options parameters.
|
|
624
|
+
*/
|
|
625
|
+
async beginDeleteAtSubscription(
|
|
626
|
+
deploymentStackName: string,
|
|
627
|
+
options?: DeploymentStacksDeleteAtSubscriptionOptionalParams
|
|
628
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
629
|
+
const directSendOperation = async (
|
|
630
|
+
args: coreClient.OperationArguments,
|
|
631
|
+
spec: coreClient.OperationSpec
|
|
632
|
+
): Promise<void> => {
|
|
633
|
+
return this.client.sendOperationRequest(args, spec);
|
|
634
|
+
};
|
|
635
|
+
const sendOperationFn = async (
|
|
636
|
+
args: coreClient.OperationArguments,
|
|
637
|
+
spec: coreClient.OperationSpec
|
|
638
|
+
) => {
|
|
639
|
+
let currentRawResponse:
|
|
640
|
+
| coreClient.FullOperationResponse
|
|
641
|
+
| undefined = undefined;
|
|
642
|
+
const providedCallback = args.options?.onResponse;
|
|
643
|
+
const callback: coreClient.RawResponseCallback = (
|
|
644
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
645
|
+
flatResponse: unknown
|
|
646
|
+
) => {
|
|
647
|
+
currentRawResponse = rawResponse;
|
|
648
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
649
|
+
};
|
|
650
|
+
const updatedArgs = {
|
|
651
|
+
...args,
|
|
652
|
+
options: {
|
|
653
|
+
...args.options,
|
|
654
|
+
onResponse: callback
|
|
655
|
+
}
|
|
656
|
+
};
|
|
657
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
658
|
+
return {
|
|
659
|
+
flatResponse,
|
|
660
|
+
rawResponse: {
|
|
661
|
+
statusCode: currentRawResponse!.status,
|
|
662
|
+
body: currentRawResponse!.parsedBody,
|
|
663
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
664
|
+
}
|
|
665
|
+
};
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
const lro = createLroSpec({
|
|
669
|
+
sendOperationFn,
|
|
670
|
+
args: { deploymentStackName, options },
|
|
671
|
+
spec: deleteAtSubscriptionOperationSpec
|
|
672
|
+
});
|
|
673
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
674
|
+
restoreFrom: options?.resumeFrom,
|
|
675
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
676
|
+
resourceLocationConfig: "location"
|
|
677
|
+
});
|
|
678
|
+
await poller.poll();
|
|
679
|
+
return poller;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Deletes a Deployment Stack by name. When operation completes, status code 200 returned without
|
|
684
|
+
* content.
|
|
685
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
686
|
+
* @param options The options parameters.
|
|
687
|
+
*/
|
|
688
|
+
async beginDeleteAtSubscriptionAndWait(
|
|
689
|
+
deploymentStackName: string,
|
|
690
|
+
options?: DeploymentStacksDeleteAtSubscriptionOptionalParams
|
|
691
|
+
): Promise<void> {
|
|
692
|
+
const poller = await this.beginDeleteAtSubscription(
|
|
693
|
+
deploymentStackName,
|
|
694
|
+
options
|
|
695
|
+
);
|
|
696
|
+
return poller.pollUntilDone();
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Creates or updates a Deployment Stack.
|
|
701
|
+
* @param managementGroupId Management Group.
|
|
702
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
703
|
+
* @param deploymentStack Deployment Stack supplied to the operation.
|
|
704
|
+
* @param options The options parameters.
|
|
705
|
+
*/
|
|
706
|
+
async beginCreateOrUpdateAtManagementGroup(
|
|
707
|
+
managementGroupId: string,
|
|
708
|
+
deploymentStackName: string,
|
|
709
|
+
deploymentStack: DeploymentStack,
|
|
710
|
+
options?: DeploymentStacksCreateOrUpdateAtManagementGroupOptionalParams
|
|
711
|
+
): Promise<
|
|
712
|
+
SimplePollerLike<
|
|
713
|
+
OperationState<DeploymentStacksCreateOrUpdateAtManagementGroupResponse>,
|
|
714
|
+
DeploymentStacksCreateOrUpdateAtManagementGroupResponse
|
|
715
|
+
>
|
|
716
|
+
> {
|
|
717
|
+
const directSendOperation = async (
|
|
718
|
+
args: coreClient.OperationArguments,
|
|
719
|
+
spec: coreClient.OperationSpec
|
|
720
|
+
): Promise<DeploymentStacksCreateOrUpdateAtManagementGroupResponse> => {
|
|
721
|
+
return this.client.sendOperationRequest(args, spec);
|
|
722
|
+
};
|
|
723
|
+
const sendOperationFn = async (
|
|
724
|
+
args: coreClient.OperationArguments,
|
|
725
|
+
spec: coreClient.OperationSpec
|
|
726
|
+
) => {
|
|
727
|
+
let currentRawResponse:
|
|
728
|
+
| coreClient.FullOperationResponse
|
|
729
|
+
| undefined = undefined;
|
|
730
|
+
const providedCallback = args.options?.onResponse;
|
|
731
|
+
const callback: coreClient.RawResponseCallback = (
|
|
732
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
733
|
+
flatResponse: unknown
|
|
734
|
+
) => {
|
|
735
|
+
currentRawResponse = rawResponse;
|
|
736
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
737
|
+
};
|
|
738
|
+
const updatedArgs = {
|
|
739
|
+
...args,
|
|
740
|
+
options: {
|
|
741
|
+
...args.options,
|
|
742
|
+
onResponse: callback
|
|
743
|
+
}
|
|
744
|
+
};
|
|
745
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
746
|
+
return {
|
|
747
|
+
flatResponse,
|
|
748
|
+
rawResponse: {
|
|
749
|
+
statusCode: currentRawResponse!.status,
|
|
750
|
+
body: currentRawResponse!.parsedBody,
|
|
751
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
752
|
+
}
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
|
|
756
|
+
const lro = createLroSpec({
|
|
757
|
+
sendOperationFn,
|
|
758
|
+
args: {
|
|
759
|
+
managementGroupId,
|
|
760
|
+
deploymentStackName,
|
|
761
|
+
deploymentStack,
|
|
762
|
+
options
|
|
763
|
+
},
|
|
764
|
+
spec: createOrUpdateAtManagementGroupOperationSpec
|
|
765
|
+
});
|
|
766
|
+
const poller = await createHttpPoller<
|
|
767
|
+
DeploymentStacksCreateOrUpdateAtManagementGroupResponse,
|
|
768
|
+
OperationState<DeploymentStacksCreateOrUpdateAtManagementGroupResponse>
|
|
769
|
+
>(lro, {
|
|
770
|
+
restoreFrom: options?.resumeFrom,
|
|
771
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
772
|
+
resourceLocationConfig: "azure-async-operation"
|
|
773
|
+
});
|
|
774
|
+
await poller.poll();
|
|
775
|
+
return poller;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Creates or updates a Deployment Stack.
|
|
780
|
+
* @param managementGroupId Management Group.
|
|
781
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
782
|
+
* @param deploymentStack Deployment Stack supplied to the operation.
|
|
783
|
+
* @param options The options parameters.
|
|
784
|
+
*/
|
|
785
|
+
async beginCreateOrUpdateAtManagementGroupAndWait(
|
|
786
|
+
managementGroupId: string,
|
|
787
|
+
deploymentStackName: string,
|
|
788
|
+
deploymentStack: DeploymentStack,
|
|
789
|
+
options?: DeploymentStacksCreateOrUpdateAtManagementGroupOptionalParams
|
|
790
|
+
): Promise<DeploymentStacksCreateOrUpdateAtManagementGroupResponse> {
|
|
791
|
+
const poller = await this.beginCreateOrUpdateAtManagementGroup(
|
|
792
|
+
managementGroupId,
|
|
793
|
+
deploymentStackName,
|
|
794
|
+
deploymentStack,
|
|
795
|
+
options
|
|
796
|
+
);
|
|
797
|
+
return poller.pollUntilDone();
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* Gets a Deployment Stack with a given name.
|
|
802
|
+
* @param managementGroupId Management Group.
|
|
803
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
804
|
+
* @param options The options parameters.
|
|
805
|
+
*/
|
|
806
|
+
getAtManagementGroup(
|
|
807
|
+
managementGroupId: string,
|
|
808
|
+
deploymentStackName: string,
|
|
809
|
+
options?: DeploymentStacksGetAtManagementGroupOptionalParams
|
|
810
|
+
): Promise<DeploymentStacksGetAtManagementGroupResponse> {
|
|
811
|
+
return this.client.sendOperationRequest(
|
|
812
|
+
{ managementGroupId, deploymentStackName, options },
|
|
813
|
+
getAtManagementGroupOperationSpec
|
|
814
|
+
);
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* Deletes a Deployment Stack by name. When operation completes, status code 200 returned without
|
|
819
|
+
* content.
|
|
820
|
+
* @param managementGroupId Management Group.
|
|
821
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
822
|
+
* @param options The options parameters.
|
|
823
|
+
*/
|
|
824
|
+
async beginDeleteAtManagementGroup(
|
|
825
|
+
managementGroupId: string,
|
|
826
|
+
deploymentStackName: string,
|
|
827
|
+
options?: DeploymentStacksDeleteAtManagementGroupOptionalParams
|
|
828
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
829
|
+
const directSendOperation = async (
|
|
830
|
+
args: coreClient.OperationArguments,
|
|
831
|
+
spec: coreClient.OperationSpec
|
|
832
|
+
): Promise<void> => {
|
|
833
|
+
return this.client.sendOperationRequest(args, spec);
|
|
834
|
+
};
|
|
835
|
+
const sendOperationFn = async (
|
|
836
|
+
args: coreClient.OperationArguments,
|
|
837
|
+
spec: coreClient.OperationSpec
|
|
838
|
+
) => {
|
|
839
|
+
let currentRawResponse:
|
|
840
|
+
| coreClient.FullOperationResponse
|
|
841
|
+
| undefined = undefined;
|
|
842
|
+
const providedCallback = args.options?.onResponse;
|
|
843
|
+
const callback: coreClient.RawResponseCallback = (
|
|
844
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
845
|
+
flatResponse: unknown
|
|
846
|
+
) => {
|
|
847
|
+
currentRawResponse = rawResponse;
|
|
848
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
849
|
+
};
|
|
850
|
+
const updatedArgs = {
|
|
851
|
+
...args,
|
|
852
|
+
options: {
|
|
853
|
+
...args.options,
|
|
854
|
+
onResponse: callback
|
|
855
|
+
}
|
|
856
|
+
};
|
|
857
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
858
|
+
return {
|
|
859
|
+
flatResponse,
|
|
860
|
+
rawResponse: {
|
|
861
|
+
statusCode: currentRawResponse!.status,
|
|
862
|
+
body: currentRawResponse!.parsedBody,
|
|
863
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
864
|
+
}
|
|
865
|
+
};
|
|
866
|
+
};
|
|
867
|
+
|
|
868
|
+
const lro = createLroSpec({
|
|
869
|
+
sendOperationFn,
|
|
870
|
+
args: { managementGroupId, deploymentStackName, options },
|
|
871
|
+
spec: deleteAtManagementGroupOperationSpec
|
|
872
|
+
});
|
|
873
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
874
|
+
restoreFrom: options?.resumeFrom,
|
|
875
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
876
|
+
resourceLocationConfig: "location"
|
|
877
|
+
});
|
|
878
|
+
await poller.poll();
|
|
879
|
+
return poller;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* Deletes a Deployment Stack by name. When operation completes, status code 200 returned without
|
|
884
|
+
* content.
|
|
885
|
+
* @param managementGroupId Management Group.
|
|
886
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
887
|
+
* @param options The options parameters.
|
|
888
|
+
*/
|
|
889
|
+
async beginDeleteAtManagementGroupAndWait(
|
|
890
|
+
managementGroupId: string,
|
|
891
|
+
deploymentStackName: string,
|
|
892
|
+
options?: DeploymentStacksDeleteAtManagementGroupOptionalParams
|
|
893
|
+
): Promise<void> {
|
|
894
|
+
const poller = await this.beginDeleteAtManagementGroup(
|
|
895
|
+
managementGroupId,
|
|
896
|
+
deploymentStackName,
|
|
897
|
+
options
|
|
898
|
+
);
|
|
899
|
+
return poller.pollUntilDone();
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* Exports the template used to create the deployment stack.
|
|
904
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
905
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
906
|
+
* @param options The options parameters.
|
|
907
|
+
*/
|
|
908
|
+
exportTemplateAtResourceGroup(
|
|
909
|
+
resourceGroupName: string,
|
|
910
|
+
deploymentStackName: string,
|
|
911
|
+
options?: DeploymentStacksExportTemplateAtResourceGroupOptionalParams
|
|
912
|
+
): Promise<DeploymentStacksExportTemplateAtResourceGroupResponse> {
|
|
913
|
+
return this.client.sendOperationRequest(
|
|
914
|
+
{ resourceGroupName, deploymentStackName, options },
|
|
915
|
+
exportTemplateAtResourceGroupOperationSpec
|
|
916
|
+
);
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* Exports the template used to create the deployment stack.
|
|
921
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
922
|
+
* @param options The options parameters.
|
|
923
|
+
*/
|
|
924
|
+
exportTemplateAtSubscription(
|
|
925
|
+
deploymentStackName: string,
|
|
926
|
+
options?: DeploymentStacksExportTemplateAtSubscriptionOptionalParams
|
|
927
|
+
): Promise<DeploymentStacksExportTemplateAtSubscriptionResponse> {
|
|
928
|
+
return this.client.sendOperationRequest(
|
|
929
|
+
{ deploymentStackName, options },
|
|
930
|
+
exportTemplateAtSubscriptionOperationSpec
|
|
931
|
+
);
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* Exports the template used to create the deployment stack.
|
|
936
|
+
* @param managementGroupId Management Group.
|
|
937
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
938
|
+
* @param options The options parameters.
|
|
939
|
+
*/
|
|
940
|
+
exportTemplateAtManagementGroup(
|
|
941
|
+
managementGroupId: string,
|
|
942
|
+
deploymentStackName: string,
|
|
943
|
+
options?: DeploymentStacksExportTemplateAtManagementGroupOptionalParams
|
|
944
|
+
): Promise<DeploymentStacksExportTemplateAtManagementGroupResponse> {
|
|
945
|
+
return this.client.sendOperationRequest(
|
|
946
|
+
{ managementGroupId, deploymentStackName, options },
|
|
947
|
+
exportTemplateAtManagementGroupOperationSpec
|
|
948
|
+
);
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* ListAtResourceGroupNext
|
|
953
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
954
|
+
* @param nextLink The nextLink from the previous successful call to the ListAtResourceGroup method.
|
|
955
|
+
* @param options The options parameters.
|
|
956
|
+
*/
|
|
957
|
+
private _listAtResourceGroupNext(
|
|
958
|
+
resourceGroupName: string,
|
|
959
|
+
nextLink: string,
|
|
960
|
+
options?: DeploymentStacksListAtResourceGroupNextOptionalParams
|
|
961
|
+
): Promise<DeploymentStacksListAtResourceGroupNextResponse> {
|
|
962
|
+
return this.client.sendOperationRequest(
|
|
963
|
+
{ resourceGroupName, nextLink, options },
|
|
964
|
+
listAtResourceGroupNextOperationSpec
|
|
965
|
+
);
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* ListAtSubscriptionNext
|
|
970
|
+
* @param nextLink The nextLink from the previous successful call to the ListAtSubscription method.
|
|
971
|
+
* @param options The options parameters.
|
|
972
|
+
*/
|
|
973
|
+
private _listAtSubscriptionNext(
|
|
974
|
+
nextLink: string,
|
|
975
|
+
options?: DeploymentStacksListAtSubscriptionNextOptionalParams
|
|
976
|
+
): Promise<DeploymentStacksListAtSubscriptionNextResponse> {
|
|
977
|
+
return this.client.sendOperationRequest(
|
|
978
|
+
{ nextLink, options },
|
|
979
|
+
listAtSubscriptionNextOperationSpec
|
|
980
|
+
);
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
* ListAtManagementGroupNext
|
|
985
|
+
* @param managementGroupId Management Group.
|
|
986
|
+
* @param nextLink The nextLink from the previous successful call to the ListAtManagementGroup method.
|
|
987
|
+
* @param options The options parameters.
|
|
988
|
+
*/
|
|
989
|
+
private _listAtManagementGroupNext(
|
|
990
|
+
managementGroupId: string,
|
|
991
|
+
nextLink: string,
|
|
992
|
+
options?: DeploymentStacksListAtManagementGroupNextOptionalParams
|
|
993
|
+
): Promise<DeploymentStacksListAtManagementGroupNextResponse> {
|
|
994
|
+
return this.client.sendOperationRequest(
|
|
995
|
+
{ managementGroupId, nextLink, options },
|
|
996
|
+
listAtManagementGroupNextOperationSpec
|
|
997
|
+
);
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
// Operation Specifications
|
|
1001
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1002
|
+
|
|
1003
|
+
const listAtResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1004
|
+
path:
|
|
1005
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks",
|
|
1006
|
+
httpMethod: "GET",
|
|
1007
|
+
responses: {
|
|
1008
|
+
200: {
|
|
1009
|
+
bodyMapper: Mappers.DeploymentStackListResult
|
|
1010
|
+
},
|
|
1011
|
+
default: {
|
|
1012
|
+
bodyMapper: Mappers.DeploymentStacksError
|
|
1013
|
+
}
|
|
1014
|
+
},
|
|
1015
|
+
queryParameters: [Parameters.apiVersion],
|
|
1016
|
+
urlParameters: [
|
|
1017
|
+
Parameters.$host,
|
|
1018
|
+
Parameters.subscriptionId,
|
|
1019
|
+
Parameters.resourceGroupName
|
|
1020
|
+
],
|
|
1021
|
+
headerParameters: [Parameters.accept],
|
|
1022
|
+
serializer
|
|
1023
|
+
};
|
|
1024
|
+
const listAtSubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
1025
|
+
path:
|
|
1026
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks",
|
|
1027
|
+
httpMethod: "GET",
|
|
1028
|
+
responses: {
|
|
1029
|
+
200: {
|
|
1030
|
+
bodyMapper: Mappers.DeploymentStackListResult
|
|
1031
|
+
},
|
|
1032
|
+
default: {
|
|
1033
|
+
bodyMapper: Mappers.DeploymentStacksError
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
1036
|
+
queryParameters: [Parameters.apiVersion],
|
|
1037
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
1038
|
+
headerParameters: [Parameters.accept],
|
|
1039
|
+
serializer
|
|
1040
|
+
};
|
|
1041
|
+
const listAtManagementGroupOperationSpec: coreClient.OperationSpec = {
|
|
1042
|
+
path:
|
|
1043
|
+
"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks",
|
|
1044
|
+
httpMethod: "GET",
|
|
1045
|
+
responses: {
|
|
1046
|
+
200: {
|
|
1047
|
+
bodyMapper: Mappers.DeploymentStackListResult
|
|
1048
|
+
},
|
|
1049
|
+
default: {
|
|
1050
|
+
bodyMapper: Mappers.DeploymentStacksError
|
|
1051
|
+
}
|
|
1052
|
+
},
|
|
1053
|
+
queryParameters: [Parameters.apiVersion],
|
|
1054
|
+
urlParameters: [Parameters.$host, Parameters.managementGroupId],
|
|
1055
|
+
headerParameters: [Parameters.accept],
|
|
1056
|
+
serializer
|
|
1057
|
+
};
|
|
1058
|
+
const createOrUpdateAtResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1059
|
+
path:
|
|
1060
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}",
|
|
1061
|
+
httpMethod: "PUT",
|
|
1062
|
+
responses: {
|
|
1063
|
+
200: {
|
|
1064
|
+
bodyMapper: Mappers.DeploymentStack
|
|
1065
|
+
},
|
|
1066
|
+
201: {
|
|
1067
|
+
bodyMapper: Mappers.DeploymentStack
|
|
1068
|
+
},
|
|
1069
|
+
202: {
|
|
1070
|
+
bodyMapper: Mappers.DeploymentStack
|
|
1071
|
+
},
|
|
1072
|
+
204: {
|
|
1073
|
+
bodyMapper: Mappers.DeploymentStack
|
|
1074
|
+
},
|
|
1075
|
+
default: {
|
|
1076
|
+
bodyMapper: Mappers.DeploymentStacksError
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
requestBody: Parameters.deploymentStack,
|
|
1080
|
+
queryParameters: [Parameters.apiVersion],
|
|
1081
|
+
urlParameters: [
|
|
1082
|
+
Parameters.$host,
|
|
1083
|
+
Parameters.subscriptionId,
|
|
1084
|
+
Parameters.resourceGroupName,
|
|
1085
|
+
Parameters.deploymentStackName
|
|
1086
|
+
],
|
|
1087
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1088
|
+
mediaType: "json",
|
|
1089
|
+
serializer
|
|
1090
|
+
};
|
|
1091
|
+
const getAtResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1092
|
+
path:
|
|
1093
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}",
|
|
1094
|
+
httpMethod: "GET",
|
|
1095
|
+
responses: {
|
|
1096
|
+
200: {
|
|
1097
|
+
bodyMapper: Mappers.DeploymentStack
|
|
1098
|
+
},
|
|
1099
|
+
default: {
|
|
1100
|
+
bodyMapper: Mappers.DeploymentStacksError
|
|
1101
|
+
}
|
|
1102
|
+
},
|
|
1103
|
+
queryParameters: [Parameters.apiVersion],
|
|
1104
|
+
urlParameters: [
|
|
1105
|
+
Parameters.$host,
|
|
1106
|
+
Parameters.subscriptionId,
|
|
1107
|
+
Parameters.resourceGroupName,
|
|
1108
|
+
Parameters.deploymentStackName
|
|
1109
|
+
],
|
|
1110
|
+
headerParameters: [Parameters.accept],
|
|
1111
|
+
serializer
|
|
1112
|
+
};
|
|
1113
|
+
const deleteAtResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1114
|
+
path:
|
|
1115
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}",
|
|
1116
|
+
httpMethod: "DELETE",
|
|
1117
|
+
responses: {
|
|
1118
|
+
200: {},
|
|
1119
|
+
201: {},
|
|
1120
|
+
202: {},
|
|
1121
|
+
204: {},
|
|
1122
|
+
default: {
|
|
1123
|
+
bodyMapper: Mappers.DeploymentStacksError
|
|
1124
|
+
}
|
|
1125
|
+
},
|
|
1126
|
+
queryParameters: [
|
|
1127
|
+
Parameters.apiVersion,
|
|
1128
|
+
Parameters.unmanageActionResources,
|
|
1129
|
+
Parameters.unmanageActionResourceGroups
|
|
1130
|
+
],
|
|
1131
|
+
urlParameters: [
|
|
1132
|
+
Parameters.$host,
|
|
1133
|
+
Parameters.subscriptionId,
|
|
1134
|
+
Parameters.resourceGroupName,
|
|
1135
|
+
Parameters.deploymentStackName
|
|
1136
|
+
],
|
|
1137
|
+
headerParameters: [Parameters.accept],
|
|
1138
|
+
serializer
|
|
1139
|
+
};
|
|
1140
|
+
const createOrUpdateAtSubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
1141
|
+
path:
|
|
1142
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}",
|
|
1143
|
+
httpMethod: "PUT",
|
|
1144
|
+
responses: {
|
|
1145
|
+
200: {
|
|
1146
|
+
bodyMapper: Mappers.DeploymentStack
|
|
1147
|
+
},
|
|
1148
|
+
201: {
|
|
1149
|
+
bodyMapper: Mappers.DeploymentStack
|
|
1150
|
+
},
|
|
1151
|
+
202: {
|
|
1152
|
+
bodyMapper: Mappers.DeploymentStack
|
|
1153
|
+
},
|
|
1154
|
+
204: {
|
|
1155
|
+
bodyMapper: Mappers.DeploymentStack
|
|
1156
|
+
},
|
|
1157
|
+
default: {
|
|
1158
|
+
bodyMapper: Mappers.DeploymentStacksError
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
requestBody: Parameters.deploymentStack,
|
|
1162
|
+
queryParameters: [Parameters.apiVersion],
|
|
1163
|
+
urlParameters: [
|
|
1164
|
+
Parameters.$host,
|
|
1165
|
+
Parameters.subscriptionId,
|
|
1166
|
+
Parameters.deploymentStackName
|
|
1167
|
+
],
|
|
1168
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1169
|
+
mediaType: "json",
|
|
1170
|
+
serializer
|
|
1171
|
+
};
|
|
1172
|
+
const getAtSubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
1173
|
+
path:
|
|
1174
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}",
|
|
1175
|
+
httpMethod: "GET",
|
|
1176
|
+
responses: {
|
|
1177
|
+
200: {
|
|
1178
|
+
bodyMapper: Mappers.DeploymentStack
|
|
1179
|
+
},
|
|
1180
|
+
default: {
|
|
1181
|
+
bodyMapper: Mappers.DeploymentStacksError
|
|
1182
|
+
}
|
|
1183
|
+
},
|
|
1184
|
+
queryParameters: [Parameters.apiVersion],
|
|
1185
|
+
urlParameters: [
|
|
1186
|
+
Parameters.$host,
|
|
1187
|
+
Parameters.subscriptionId,
|
|
1188
|
+
Parameters.deploymentStackName
|
|
1189
|
+
],
|
|
1190
|
+
headerParameters: [Parameters.accept],
|
|
1191
|
+
serializer
|
|
1192
|
+
};
|
|
1193
|
+
const deleteAtSubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
1194
|
+
path:
|
|
1195
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}",
|
|
1196
|
+
httpMethod: "DELETE",
|
|
1197
|
+
responses: {
|
|
1198
|
+
200: {},
|
|
1199
|
+
201: {},
|
|
1200
|
+
202: {},
|
|
1201
|
+
204: {},
|
|
1202
|
+
default: {
|
|
1203
|
+
bodyMapper: Mappers.DeploymentStacksError
|
|
1204
|
+
}
|
|
1205
|
+
},
|
|
1206
|
+
queryParameters: [
|
|
1207
|
+
Parameters.apiVersion,
|
|
1208
|
+
Parameters.unmanageActionResources,
|
|
1209
|
+
Parameters.unmanageActionResourceGroups
|
|
1210
|
+
],
|
|
1211
|
+
urlParameters: [
|
|
1212
|
+
Parameters.$host,
|
|
1213
|
+
Parameters.subscriptionId,
|
|
1214
|
+
Parameters.deploymentStackName
|
|
1215
|
+
],
|
|
1216
|
+
headerParameters: [Parameters.accept],
|
|
1217
|
+
serializer
|
|
1218
|
+
};
|
|
1219
|
+
const createOrUpdateAtManagementGroupOperationSpec: coreClient.OperationSpec = {
|
|
1220
|
+
path:
|
|
1221
|
+
"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}",
|
|
1222
|
+
httpMethod: "PUT",
|
|
1223
|
+
responses: {
|
|
1224
|
+
200: {
|
|
1225
|
+
bodyMapper: Mappers.DeploymentStack
|
|
1226
|
+
},
|
|
1227
|
+
201: {
|
|
1228
|
+
bodyMapper: Mappers.DeploymentStack
|
|
1229
|
+
},
|
|
1230
|
+
202: {
|
|
1231
|
+
bodyMapper: Mappers.DeploymentStack
|
|
1232
|
+
},
|
|
1233
|
+
204: {
|
|
1234
|
+
bodyMapper: Mappers.DeploymentStack
|
|
1235
|
+
},
|
|
1236
|
+
default: {
|
|
1237
|
+
bodyMapper: Mappers.DeploymentStacksError
|
|
1238
|
+
}
|
|
1239
|
+
},
|
|
1240
|
+
requestBody: Parameters.deploymentStack,
|
|
1241
|
+
queryParameters: [Parameters.apiVersion],
|
|
1242
|
+
urlParameters: [
|
|
1243
|
+
Parameters.$host,
|
|
1244
|
+
Parameters.managementGroupId,
|
|
1245
|
+
Parameters.deploymentStackName
|
|
1246
|
+
],
|
|
1247
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1248
|
+
mediaType: "json",
|
|
1249
|
+
serializer
|
|
1250
|
+
};
|
|
1251
|
+
const getAtManagementGroupOperationSpec: coreClient.OperationSpec = {
|
|
1252
|
+
path:
|
|
1253
|
+
"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}",
|
|
1254
|
+
httpMethod: "GET",
|
|
1255
|
+
responses: {
|
|
1256
|
+
200: {
|
|
1257
|
+
bodyMapper: Mappers.DeploymentStack
|
|
1258
|
+
},
|
|
1259
|
+
default: {
|
|
1260
|
+
bodyMapper: Mappers.DeploymentStacksError
|
|
1261
|
+
}
|
|
1262
|
+
},
|
|
1263
|
+
queryParameters: [Parameters.apiVersion],
|
|
1264
|
+
urlParameters: [
|
|
1265
|
+
Parameters.$host,
|
|
1266
|
+
Parameters.managementGroupId,
|
|
1267
|
+
Parameters.deploymentStackName
|
|
1268
|
+
],
|
|
1269
|
+
headerParameters: [Parameters.accept],
|
|
1270
|
+
serializer
|
|
1271
|
+
};
|
|
1272
|
+
const deleteAtManagementGroupOperationSpec: coreClient.OperationSpec = {
|
|
1273
|
+
path:
|
|
1274
|
+
"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}",
|
|
1275
|
+
httpMethod: "DELETE",
|
|
1276
|
+
responses: {
|
|
1277
|
+
200: {},
|
|
1278
|
+
201: {},
|
|
1279
|
+
202: {},
|
|
1280
|
+
204: {},
|
|
1281
|
+
default: {
|
|
1282
|
+
bodyMapper: Mappers.DeploymentStacksError
|
|
1283
|
+
}
|
|
1284
|
+
},
|
|
1285
|
+
queryParameters: [
|
|
1286
|
+
Parameters.apiVersion,
|
|
1287
|
+
Parameters.unmanageActionResources,
|
|
1288
|
+
Parameters.unmanageActionResourceGroups,
|
|
1289
|
+
Parameters.unmanageActionManagementGroups
|
|
1290
|
+
],
|
|
1291
|
+
urlParameters: [
|
|
1292
|
+
Parameters.$host,
|
|
1293
|
+
Parameters.managementGroupId,
|
|
1294
|
+
Parameters.deploymentStackName
|
|
1295
|
+
],
|
|
1296
|
+
headerParameters: [Parameters.accept],
|
|
1297
|
+
serializer
|
|
1298
|
+
};
|
|
1299
|
+
const exportTemplateAtResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1300
|
+
path:
|
|
1301
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate",
|
|
1302
|
+
httpMethod: "POST",
|
|
1303
|
+
responses: {
|
|
1304
|
+
200: {
|
|
1305
|
+
bodyMapper: Mappers.DeploymentStackTemplateDefinition
|
|
1306
|
+
},
|
|
1307
|
+
default: {
|
|
1308
|
+
bodyMapper: Mappers.DeploymentStacksError
|
|
1309
|
+
}
|
|
1310
|
+
},
|
|
1311
|
+
queryParameters: [Parameters.apiVersion],
|
|
1312
|
+
urlParameters: [
|
|
1313
|
+
Parameters.$host,
|
|
1314
|
+
Parameters.subscriptionId,
|
|
1315
|
+
Parameters.resourceGroupName,
|
|
1316
|
+
Parameters.deploymentStackName
|
|
1317
|
+
],
|
|
1318
|
+
headerParameters: [Parameters.accept],
|
|
1319
|
+
serializer
|
|
1320
|
+
};
|
|
1321
|
+
const exportTemplateAtSubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
1322
|
+
path:
|
|
1323
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate",
|
|
1324
|
+
httpMethod: "POST",
|
|
1325
|
+
responses: {
|
|
1326
|
+
200: {
|
|
1327
|
+
bodyMapper: Mappers.DeploymentStackTemplateDefinition
|
|
1328
|
+
},
|
|
1329
|
+
default: {
|
|
1330
|
+
bodyMapper: Mappers.DeploymentStacksError
|
|
1331
|
+
}
|
|
1332
|
+
},
|
|
1333
|
+
queryParameters: [Parameters.apiVersion],
|
|
1334
|
+
urlParameters: [
|
|
1335
|
+
Parameters.$host,
|
|
1336
|
+
Parameters.subscriptionId,
|
|
1337
|
+
Parameters.deploymentStackName
|
|
1338
|
+
],
|
|
1339
|
+
headerParameters: [Parameters.accept],
|
|
1340
|
+
serializer
|
|
1341
|
+
};
|
|
1342
|
+
const exportTemplateAtManagementGroupOperationSpec: coreClient.OperationSpec = {
|
|
1343
|
+
path:
|
|
1344
|
+
"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate",
|
|
1345
|
+
httpMethod: "POST",
|
|
1346
|
+
responses: {
|
|
1347
|
+
200: {
|
|
1348
|
+
bodyMapper: Mappers.DeploymentStackTemplateDefinition
|
|
1349
|
+
},
|
|
1350
|
+
default: {
|
|
1351
|
+
bodyMapper: Mappers.DeploymentStacksError
|
|
1352
|
+
}
|
|
1353
|
+
},
|
|
1354
|
+
queryParameters: [Parameters.apiVersion],
|
|
1355
|
+
urlParameters: [
|
|
1356
|
+
Parameters.$host,
|
|
1357
|
+
Parameters.managementGroupId,
|
|
1358
|
+
Parameters.deploymentStackName
|
|
1359
|
+
],
|
|
1360
|
+
headerParameters: [Parameters.accept],
|
|
1361
|
+
serializer
|
|
1362
|
+
};
|
|
1363
|
+
const listAtResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
1364
|
+
path: "{nextLink}",
|
|
1365
|
+
httpMethod: "GET",
|
|
1366
|
+
responses: {
|
|
1367
|
+
200: {
|
|
1368
|
+
bodyMapper: Mappers.DeploymentStackListResult
|
|
1369
|
+
},
|
|
1370
|
+
default: {
|
|
1371
|
+
bodyMapper: Mappers.DeploymentStacksError
|
|
1372
|
+
}
|
|
1373
|
+
},
|
|
1374
|
+
urlParameters: [
|
|
1375
|
+
Parameters.$host,
|
|
1376
|
+
Parameters.subscriptionId,
|
|
1377
|
+
Parameters.resourceGroupName,
|
|
1378
|
+
Parameters.nextLink
|
|
1379
|
+
],
|
|
1380
|
+
headerParameters: [Parameters.accept],
|
|
1381
|
+
serializer
|
|
1382
|
+
};
|
|
1383
|
+
const listAtSubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
1384
|
+
path: "{nextLink}",
|
|
1385
|
+
httpMethod: "GET",
|
|
1386
|
+
responses: {
|
|
1387
|
+
200: {
|
|
1388
|
+
bodyMapper: Mappers.DeploymentStackListResult
|
|
1389
|
+
},
|
|
1390
|
+
default: {
|
|
1391
|
+
bodyMapper: Mappers.DeploymentStacksError
|
|
1392
|
+
}
|
|
1393
|
+
},
|
|
1394
|
+
urlParameters: [
|
|
1395
|
+
Parameters.$host,
|
|
1396
|
+
Parameters.subscriptionId,
|
|
1397
|
+
Parameters.nextLink
|
|
1398
|
+
],
|
|
1399
|
+
headerParameters: [Parameters.accept],
|
|
1400
|
+
serializer
|
|
1401
|
+
};
|
|
1402
|
+
const listAtManagementGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
1403
|
+
path: "{nextLink}",
|
|
1404
|
+
httpMethod: "GET",
|
|
1405
|
+
responses: {
|
|
1406
|
+
200: {
|
|
1407
|
+
bodyMapper: Mappers.DeploymentStackListResult
|
|
1408
|
+
},
|
|
1409
|
+
default: {
|
|
1410
|
+
bodyMapper: Mappers.DeploymentStacksError
|
|
1411
|
+
}
|
|
1412
|
+
},
|
|
1413
|
+
urlParameters: [
|
|
1414
|
+
Parameters.$host,
|
|
1415
|
+
Parameters.managementGroupId,
|
|
1416
|
+
Parameters.nextLink
|
|
1417
|
+
],
|
|
1418
|
+
headerParameters: [Parameters.accept],
|
|
1419
|
+
serializer
|
|
1420
|
+
};
|