@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
package/dist/index.js
ADDED
|
@@ -0,0 +1,2308 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib = require('tslib');
|
|
6
|
+
var coreClient = require('@azure/core-client');
|
|
7
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
|
+
var coreLro = require('@azure/core-lro');
|
|
9
|
+
|
|
10
|
+
function _interopNamespace(e) {
|
|
11
|
+
if (e && e.__esModule) return e;
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n["default"] = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
|
+
|
|
31
|
+
/*
|
|
32
|
+
* Copyright (c) Microsoft Corporation.
|
|
33
|
+
* Licensed under the MIT License.
|
|
34
|
+
*
|
|
35
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
+
*/
|
|
38
|
+
const pageMap = new WeakMap();
|
|
39
|
+
/**
|
|
40
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
41
|
+
* returns a continuation token that can be used to begin paging from
|
|
42
|
+
* that point later.
|
|
43
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
44
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
45
|
+
*/
|
|
46
|
+
function getContinuationToken(page) {
|
|
47
|
+
var _a;
|
|
48
|
+
if (typeof page !== "object" || page === null) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
+
}
|
|
53
|
+
function setContinuationToken(page, continuationToken) {
|
|
54
|
+
var _a;
|
|
55
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
+
pageInfo.continuationToken = continuationToken;
|
|
60
|
+
pageMap.set(page, pageInfo);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/*
|
|
64
|
+
* Copyright (c) Microsoft Corporation.
|
|
65
|
+
* Licensed under the MIT License.
|
|
66
|
+
*
|
|
67
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
68
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
69
|
+
*/
|
|
70
|
+
/** Known values of {@link DeploymentStacksDeleteDetachEnum} that the service accepts. */
|
|
71
|
+
exports.KnownDeploymentStacksDeleteDetachEnum = void 0;
|
|
72
|
+
(function (KnownDeploymentStacksDeleteDetachEnum) {
|
|
73
|
+
/** Delete */
|
|
74
|
+
KnownDeploymentStacksDeleteDetachEnum["Delete"] = "delete";
|
|
75
|
+
/** Detach */
|
|
76
|
+
KnownDeploymentStacksDeleteDetachEnum["Detach"] = "detach";
|
|
77
|
+
})(exports.KnownDeploymentStacksDeleteDetachEnum || (exports.KnownDeploymentStacksDeleteDetachEnum = {}));
|
|
78
|
+
/** Known values of {@link DenySettingsMode} that the service accepts. */
|
|
79
|
+
exports.KnownDenySettingsMode = void 0;
|
|
80
|
+
(function (KnownDenySettingsMode) {
|
|
81
|
+
/** Authorized users are able to read and modify the resources, but cannot delete. */
|
|
82
|
+
KnownDenySettingsMode["DenyDelete"] = "denyDelete";
|
|
83
|
+
/** Authorized users can only read from a resource, but cannot modify or delete it. */
|
|
84
|
+
KnownDenySettingsMode["DenyWriteAndDelete"] = "denyWriteAndDelete";
|
|
85
|
+
/** No denyAssignments have been applied. */
|
|
86
|
+
KnownDenySettingsMode["None"] = "none";
|
|
87
|
+
})(exports.KnownDenySettingsMode || (exports.KnownDenySettingsMode = {}));
|
|
88
|
+
/** Known values of {@link DeploymentStackProvisioningState} that the service accepts. */
|
|
89
|
+
exports.KnownDeploymentStackProvisioningState = void 0;
|
|
90
|
+
(function (KnownDeploymentStackProvisioningState) {
|
|
91
|
+
/** Creating */
|
|
92
|
+
KnownDeploymentStackProvisioningState["Creating"] = "Creating";
|
|
93
|
+
/** Validating */
|
|
94
|
+
KnownDeploymentStackProvisioningState["Validating"] = "Validating";
|
|
95
|
+
/** Waiting */
|
|
96
|
+
KnownDeploymentStackProvisioningState["Waiting"] = "Waiting";
|
|
97
|
+
/** Deploying */
|
|
98
|
+
KnownDeploymentStackProvisioningState["Deploying"] = "Deploying";
|
|
99
|
+
/** Canceling */
|
|
100
|
+
KnownDeploymentStackProvisioningState["Canceling"] = "Canceling";
|
|
101
|
+
/** Locking */
|
|
102
|
+
KnownDeploymentStackProvisioningState["Locking"] = "Locking";
|
|
103
|
+
/** DeletingResources */
|
|
104
|
+
KnownDeploymentStackProvisioningState["DeletingResources"] = "DeletingResources";
|
|
105
|
+
/** Succeeded */
|
|
106
|
+
KnownDeploymentStackProvisioningState["Succeeded"] = "Succeeded";
|
|
107
|
+
/** Failed */
|
|
108
|
+
KnownDeploymentStackProvisioningState["Failed"] = "Failed";
|
|
109
|
+
/** Canceled */
|
|
110
|
+
KnownDeploymentStackProvisioningState["Canceled"] = "Canceled";
|
|
111
|
+
/** Deleting */
|
|
112
|
+
KnownDeploymentStackProvisioningState["Deleting"] = "Deleting";
|
|
113
|
+
})(exports.KnownDeploymentStackProvisioningState || (exports.KnownDeploymentStackProvisioningState = {}));
|
|
114
|
+
/** Known values of {@link ResourceStatusMode} that the service accepts. */
|
|
115
|
+
exports.KnownResourceStatusMode = void 0;
|
|
116
|
+
(function (KnownResourceStatusMode) {
|
|
117
|
+
/** This resource is managed by the deployment stack. */
|
|
118
|
+
KnownResourceStatusMode["Managed"] = "Managed";
|
|
119
|
+
/** Unable to remove the deny assignment on resource. */
|
|
120
|
+
KnownResourceStatusMode["RemoveDenyFailed"] = "removeDenyFailed";
|
|
121
|
+
/** Unable to delete the resource from Azure. The delete will be retried on the next stack deployment, or can be deleted manually. */
|
|
122
|
+
KnownResourceStatusMode["DeleteFailed"] = "deleteFailed";
|
|
123
|
+
/** No denyAssignments have been applied. */
|
|
124
|
+
KnownResourceStatusMode["None"] = "None";
|
|
125
|
+
})(exports.KnownResourceStatusMode || (exports.KnownResourceStatusMode = {}));
|
|
126
|
+
/** Known values of {@link DenyStatusMode} that the service accepts. */
|
|
127
|
+
exports.KnownDenyStatusMode = void 0;
|
|
128
|
+
(function (KnownDenyStatusMode) {
|
|
129
|
+
/** Authorized users are able to read and modify the resources, but cannot delete. */
|
|
130
|
+
KnownDenyStatusMode["DenyDelete"] = "denyDelete";
|
|
131
|
+
/** Resource type does not support denyAssignments. */
|
|
132
|
+
KnownDenyStatusMode["NotSupported"] = "notSupported";
|
|
133
|
+
/** denyAssignments are not supported on resources outside the scope of the deployment stack. */
|
|
134
|
+
KnownDenyStatusMode["Inapplicable"] = "inapplicable";
|
|
135
|
+
/** Authorized users can only read from a resource, but cannot modify or delete it. */
|
|
136
|
+
KnownDenyStatusMode["DenyWriteAndDelete"] = "denyWriteAndDelete";
|
|
137
|
+
/** Deny assignment has been removed by Azure due to a resource management change (management group move, etc.) */
|
|
138
|
+
KnownDenyStatusMode["RemovedBySystem"] = "removedBySystem";
|
|
139
|
+
/** No denyAssignments have been applied. */
|
|
140
|
+
KnownDenyStatusMode["None"] = "None";
|
|
141
|
+
})(exports.KnownDenyStatusMode || (exports.KnownDenyStatusMode = {}));
|
|
142
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
143
|
+
exports.KnownCreatedByType = void 0;
|
|
144
|
+
(function (KnownCreatedByType) {
|
|
145
|
+
/** User */
|
|
146
|
+
KnownCreatedByType["User"] = "User";
|
|
147
|
+
/** Application */
|
|
148
|
+
KnownCreatedByType["Application"] = "Application";
|
|
149
|
+
/** ManagedIdentity */
|
|
150
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
151
|
+
/** Key */
|
|
152
|
+
KnownCreatedByType["Key"] = "Key";
|
|
153
|
+
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
154
|
+
/** Known values of {@link UnmanageActionResourceMode} that the service accepts. */
|
|
155
|
+
exports.KnownUnmanageActionResourceMode = void 0;
|
|
156
|
+
(function (KnownUnmanageActionResourceMode) {
|
|
157
|
+
/** Delete */
|
|
158
|
+
KnownUnmanageActionResourceMode["Delete"] = "delete";
|
|
159
|
+
/** Detach */
|
|
160
|
+
KnownUnmanageActionResourceMode["Detach"] = "detach";
|
|
161
|
+
})(exports.KnownUnmanageActionResourceMode || (exports.KnownUnmanageActionResourceMode = {}));
|
|
162
|
+
/** Known values of {@link UnmanageActionResourceGroupMode} that the service accepts. */
|
|
163
|
+
exports.KnownUnmanageActionResourceGroupMode = void 0;
|
|
164
|
+
(function (KnownUnmanageActionResourceGroupMode) {
|
|
165
|
+
/** Delete */
|
|
166
|
+
KnownUnmanageActionResourceGroupMode["Delete"] = "delete";
|
|
167
|
+
/** Detach */
|
|
168
|
+
KnownUnmanageActionResourceGroupMode["Detach"] = "detach";
|
|
169
|
+
})(exports.KnownUnmanageActionResourceGroupMode || (exports.KnownUnmanageActionResourceGroupMode = {}));
|
|
170
|
+
/** Known values of {@link UnmanageActionManagementGroupMode} that the service accepts. */
|
|
171
|
+
exports.KnownUnmanageActionManagementGroupMode = void 0;
|
|
172
|
+
(function (KnownUnmanageActionManagementGroupMode) {
|
|
173
|
+
/** Delete */
|
|
174
|
+
KnownUnmanageActionManagementGroupMode["Delete"] = "delete";
|
|
175
|
+
/** Detach */
|
|
176
|
+
KnownUnmanageActionManagementGroupMode["Detach"] = "detach";
|
|
177
|
+
})(exports.KnownUnmanageActionManagementGroupMode || (exports.KnownUnmanageActionManagementGroupMode = {}));
|
|
178
|
+
|
|
179
|
+
/*
|
|
180
|
+
* Copyright (c) Microsoft Corporation.
|
|
181
|
+
* Licensed under the MIT License.
|
|
182
|
+
*
|
|
183
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
184
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
185
|
+
*/
|
|
186
|
+
const DeploymentStackListResult = {
|
|
187
|
+
type: {
|
|
188
|
+
name: "Composite",
|
|
189
|
+
className: "DeploymentStackListResult",
|
|
190
|
+
modelProperties: {
|
|
191
|
+
value: {
|
|
192
|
+
serializedName: "value",
|
|
193
|
+
type: {
|
|
194
|
+
name: "Sequence",
|
|
195
|
+
element: {
|
|
196
|
+
type: {
|
|
197
|
+
name: "Composite",
|
|
198
|
+
className: "DeploymentStack"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
nextLink: {
|
|
204
|
+
serializedName: "nextLink",
|
|
205
|
+
readOnly: true,
|
|
206
|
+
type: {
|
|
207
|
+
name: "String"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
const DeploymentStacksTemplateLink = {
|
|
214
|
+
type: {
|
|
215
|
+
name: "Composite",
|
|
216
|
+
className: "DeploymentStacksTemplateLink",
|
|
217
|
+
modelProperties: {
|
|
218
|
+
uri: {
|
|
219
|
+
serializedName: "uri",
|
|
220
|
+
type: {
|
|
221
|
+
name: "String"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
id: {
|
|
225
|
+
serializedName: "id",
|
|
226
|
+
type: {
|
|
227
|
+
name: "String"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
relativePath: {
|
|
231
|
+
serializedName: "relativePath",
|
|
232
|
+
type: {
|
|
233
|
+
name: "String"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
queryString: {
|
|
237
|
+
serializedName: "queryString",
|
|
238
|
+
type: {
|
|
239
|
+
name: "String"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
contentVersion: {
|
|
243
|
+
serializedName: "contentVersion",
|
|
244
|
+
type: {
|
|
245
|
+
name: "String"
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
const DeploymentStacksParametersLink = {
|
|
252
|
+
type: {
|
|
253
|
+
name: "Composite",
|
|
254
|
+
className: "DeploymentStacksParametersLink",
|
|
255
|
+
modelProperties: {
|
|
256
|
+
uri: {
|
|
257
|
+
serializedName: "uri",
|
|
258
|
+
required: true,
|
|
259
|
+
type: {
|
|
260
|
+
name: "String"
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
contentVersion: {
|
|
264
|
+
serializedName: "contentVersion",
|
|
265
|
+
type: {
|
|
266
|
+
name: "String"
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
const DeploymentStackPropertiesActionOnUnmanage = {
|
|
273
|
+
type: {
|
|
274
|
+
name: "Composite",
|
|
275
|
+
className: "DeploymentStackPropertiesActionOnUnmanage",
|
|
276
|
+
modelProperties: {
|
|
277
|
+
resources: {
|
|
278
|
+
serializedName: "resources",
|
|
279
|
+
required: true,
|
|
280
|
+
type: {
|
|
281
|
+
name: "String"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
resourceGroups: {
|
|
285
|
+
serializedName: "resourceGroups",
|
|
286
|
+
type: {
|
|
287
|
+
name: "String"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
managementGroups: {
|
|
291
|
+
serializedName: "managementGroups",
|
|
292
|
+
type: {
|
|
293
|
+
name: "String"
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
const DeploymentStacksDebugSetting = {
|
|
300
|
+
type: {
|
|
301
|
+
name: "Composite",
|
|
302
|
+
className: "DeploymentStacksDebugSetting",
|
|
303
|
+
modelProperties: {
|
|
304
|
+
detailLevel: {
|
|
305
|
+
serializedName: "detailLevel",
|
|
306
|
+
type: {
|
|
307
|
+
name: "String"
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
const DenySettings = {
|
|
314
|
+
type: {
|
|
315
|
+
name: "Composite",
|
|
316
|
+
className: "DenySettings",
|
|
317
|
+
modelProperties: {
|
|
318
|
+
mode: {
|
|
319
|
+
serializedName: "mode",
|
|
320
|
+
required: true,
|
|
321
|
+
type: {
|
|
322
|
+
name: "String"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
excludedPrincipals: {
|
|
326
|
+
serializedName: "excludedPrincipals",
|
|
327
|
+
type: {
|
|
328
|
+
name: "Sequence",
|
|
329
|
+
element: {
|
|
330
|
+
type: {
|
|
331
|
+
name: "String"
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
excludedActions: {
|
|
337
|
+
serializedName: "excludedActions",
|
|
338
|
+
type: {
|
|
339
|
+
name: "Sequence",
|
|
340
|
+
element: {
|
|
341
|
+
type: {
|
|
342
|
+
name: "String"
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
applyToChildScopes: {
|
|
348
|
+
serializedName: "applyToChildScopes",
|
|
349
|
+
type: {
|
|
350
|
+
name: "Boolean"
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
const ResourceReference = {
|
|
357
|
+
type: {
|
|
358
|
+
name: "Composite",
|
|
359
|
+
className: "ResourceReference",
|
|
360
|
+
modelProperties: {
|
|
361
|
+
id: {
|
|
362
|
+
serializedName: "id",
|
|
363
|
+
readOnly: true,
|
|
364
|
+
type: {
|
|
365
|
+
name: "String"
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
const DeploymentStacksError = {
|
|
372
|
+
type: {
|
|
373
|
+
name: "Composite",
|
|
374
|
+
className: "DeploymentStacksError",
|
|
375
|
+
modelProperties: {
|
|
376
|
+
error: {
|
|
377
|
+
serializedName: "error",
|
|
378
|
+
type: {
|
|
379
|
+
name: "Composite",
|
|
380
|
+
className: "ErrorResponse"
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
const ErrorResponse = {
|
|
387
|
+
type: {
|
|
388
|
+
name: "Composite",
|
|
389
|
+
className: "ErrorResponse",
|
|
390
|
+
modelProperties: {
|
|
391
|
+
error: {
|
|
392
|
+
serializedName: "error",
|
|
393
|
+
type: {
|
|
394
|
+
name: "Composite",
|
|
395
|
+
className: "ErrorDetail"
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
const ErrorDetail = {
|
|
402
|
+
type: {
|
|
403
|
+
name: "Composite",
|
|
404
|
+
className: "ErrorDetail",
|
|
405
|
+
modelProperties: {
|
|
406
|
+
code: {
|
|
407
|
+
serializedName: "code",
|
|
408
|
+
readOnly: true,
|
|
409
|
+
type: {
|
|
410
|
+
name: "String"
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
message: {
|
|
414
|
+
serializedName: "message",
|
|
415
|
+
readOnly: true,
|
|
416
|
+
type: {
|
|
417
|
+
name: "String"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
target: {
|
|
421
|
+
serializedName: "target",
|
|
422
|
+
readOnly: true,
|
|
423
|
+
type: {
|
|
424
|
+
name: "String"
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
details: {
|
|
428
|
+
serializedName: "details",
|
|
429
|
+
readOnly: true,
|
|
430
|
+
type: {
|
|
431
|
+
name: "Sequence",
|
|
432
|
+
element: {
|
|
433
|
+
type: {
|
|
434
|
+
name: "Composite",
|
|
435
|
+
className: "ErrorDetail"
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
additionalInfo: {
|
|
441
|
+
serializedName: "additionalInfo",
|
|
442
|
+
readOnly: true,
|
|
443
|
+
type: {
|
|
444
|
+
name: "Sequence",
|
|
445
|
+
element: {
|
|
446
|
+
type: {
|
|
447
|
+
name: "Composite",
|
|
448
|
+
className: "ErrorAdditionalInfo"
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
const ErrorAdditionalInfo = {
|
|
457
|
+
type: {
|
|
458
|
+
name: "Composite",
|
|
459
|
+
className: "ErrorAdditionalInfo",
|
|
460
|
+
modelProperties: {
|
|
461
|
+
type: {
|
|
462
|
+
serializedName: "type",
|
|
463
|
+
readOnly: true,
|
|
464
|
+
type: {
|
|
465
|
+
name: "String"
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
info: {
|
|
469
|
+
serializedName: "info",
|
|
470
|
+
readOnly: true,
|
|
471
|
+
type: {
|
|
472
|
+
name: "Dictionary",
|
|
473
|
+
value: { type: { name: "any" } }
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
const AzureResourceBase = {
|
|
480
|
+
type: {
|
|
481
|
+
name: "Composite",
|
|
482
|
+
className: "AzureResourceBase",
|
|
483
|
+
modelProperties: {
|
|
484
|
+
id: {
|
|
485
|
+
serializedName: "id",
|
|
486
|
+
readOnly: true,
|
|
487
|
+
type: {
|
|
488
|
+
name: "String"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
name: {
|
|
492
|
+
serializedName: "name",
|
|
493
|
+
readOnly: true,
|
|
494
|
+
type: {
|
|
495
|
+
name: "String"
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
type: {
|
|
499
|
+
serializedName: "type",
|
|
500
|
+
readOnly: true,
|
|
501
|
+
type: {
|
|
502
|
+
name: "String"
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
systemData: {
|
|
506
|
+
serializedName: "systemData",
|
|
507
|
+
type: {
|
|
508
|
+
name: "Composite",
|
|
509
|
+
className: "SystemData"
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
};
|
|
515
|
+
const SystemData = {
|
|
516
|
+
type: {
|
|
517
|
+
name: "Composite",
|
|
518
|
+
className: "SystemData",
|
|
519
|
+
modelProperties: {
|
|
520
|
+
createdBy: {
|
|
521
|
+
serializedName: "createdBy",
|
|
522
|
+
type: {
|
|
523
|
+
name: "String"
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
createdByType: {
|
|
527
|
+
serializedName: "createdByType",
|
|
528
|
+
type: {
|
|
529
|
+
name: "String"
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
createdAt: {
|
|
533
|
+
serializedName: "createdAt",
|
|
534
|
+
type: {
|
|
535
|
+
name: "DateTime"
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
lastModifiedBy: {
|
|
539
|
+
serializedName: "lastModifiedBy",
|
|
540
|
+
type: {
|
|
541
|
+
name: "String"
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
lastModifiedByType: {
|
|
545
|
+
serializedName: "lastModifiedByType",
|
|
546
|
+
type: {
|
|
547
|
+
name: "String"
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
lastModifiedAt: {
|
|
551
|
+
serializedName: "lastModifiedAt",
|
|
552
|
+
type: {
|
|
553
|
+
name: "DateTime"
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
};
|
|
559
|
+
const DeploymentStackTemplateDefinition = {
|
|
560
|
+
type: {
|
|
561
|
+
name: "Composite",
|
|
562
|
+
className: "DeploymentStackTemplateDefinition",
|
|
563
|
+
modelProperties: {
|
|
564
|
+
template: {
|
|
565
|
+
serializedName: "template",
|
|
566
|
+
type: {
|
|
567
|
+
name: "Dictionary",
|
|
568
|
+
value: { type: { name: "any" } }
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
templateLink: {
|
|
572
|
+
serializedName: "templateLink",
|
|
573
|
+
type: {
|
|
574
|
+
name: "Composite",
|
|
575
|
+
className: "DeploymentStacksTemplateLink"
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
};
|
|
581
|
+
const ResourceReferenceExtended = {
|
|
582
|
+
type: {
|
|
583
|
+
name: "Composite",
|
|
584
|
+
className: "ResourceReferenceExtended",
|
|
585
|
+
modelProperties: Object.assign(Object.assign({}, ResourceReference.type.modelProperties), DeploymentStacksError.type.modelProperties)
|
|
586
|
+
}
|
|
587
|
+
};
|
|
588
|
+
const ManagedResourceReference = {
|
|
589
|
+
type: {
|
|
590
|
+
name: "Composite",
|
|
591
|
+
className: "ManagedResourceReference",
|
|
592
|
+
modelProperties: Object.assign(Object.assign({}, ResourceReference.type.modelProperties), { status: {
|
|
593
|
+
defaultValue: "None",
|
|
594
|
+
serializedName: "status",
|
|
595
|
+
type: {
|
|
596
|
+
name: "String"
|
|
597
|
+
}
|
|
598
|
+
}, denyStatus: {
|
|
599
|
+
defaultValue: "None",
|
|
600
|
+
serializedName: "denyStatus",
|
|
601
|
+
type: {
|
|
602
|
+
name: "String"
|
|
603
|
+
}
|
|
604
|
+
} })
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
const DeploymentStackProperties = {
|
|
608
|
+
type: {
|
|
609
|
+
name: "Composite",
|
|
610
|
+
className: "DeploymentStackProperties",
|
|
611
|
+
modelProperties: Object.assign(Object.assign({}, DeploymentStacksError.type.modelProperties), { template: {
|
|
612
|
+
serializedName: "template",
|
|
613
|
+
type: {
|
|
614
|
+
name: "Dictionary",
|
|
615
|
+
value: { type: { name: "any" } }
|
|
616
|
+
}
|
|
617
|
+
}, templateLink: {
|
|
618
|
+
serializedName: "templateLink",
|
|
619
|
+
type: {
|
|
620
|
+
name: "Composite",
|
|
621
|
+
className: "DeploymentStacksTemplateLink"
|
|
622
|
+
}
|
|
623
|
+
}, parameters: {
|
|
624
|
+
serializedName: "parameters",
|
|
625
|
+
type: {
|
|
626
|
+
name: "Dictionary",
|
|
627
|
+
value: { type: { name: "any" } }
|
|
628
|
+
}
|
|
629
|
+
}, parametersLink: {
|
|
630
|
+
serializedName: "parametersLink",
|
|
631
|
+
type: {
|
|
632
|
+
name: "Composite",
|
|
633
|
+
className: "DeploymentStacksParametersLink"
|
|
634
|
+
}
|
|
635
|
+
}, actionOnUnmanage: {
|
|
636
|
+
serializedName: "actionOnUnmanage",
|
|
637
|
+
type: {
|
|
638
|
+
name: "Composite",
|
|
639
|
+
className: "DeploymentStackPropertiesActionOnUnmanage"
|
|
640
|
+
}
|
|
641
|
+
}, debugSetting: {
|
|
642
|
+
serializedName: "debugSetting",
|
|
643
|
+
type: {
|
|
644
|
+
name: "Composite",
|
|
645
|
+
className: "DeploymentStacksDebugSetting"
|
|
646
|
+
}
|
|
647
|
+
}, deploymentScope: {
|
|
648
|
+
serializedName: "deploymentScope",
|
|
649
|
+
type: {
|
|
650
|
+
name: "String"
|
|
651
|
+
}
|
|
652
|
+
}, description: {
|
|
653
|
+
constraints: {
|
|
654
|
+
MaxLength: 4096
|
|
655
|
+
},
|
|
656
|
+
serializedName: "description",
|
|
657
|
+
type: {
|
|
658
|
+
name: "String"
|
|
659
|
+
}
|
|
660
|
+
}, denySettings: {
|
|
661
|
+
serializedName: "denySettings",
|
|
662
|
+
type: {
|
|
663
|
+
name: "Composite",
|
|
664
|
+
className: "DenySettings"
|
|
665
|
+
}
|
|
666
|
+
}, provisioningState: {
|
|
667
|
+
serializedName: "provisioningState",
|
|
668
|
+
readOnly: true,
|
|
669
|
+
type: {
|
|
670
|
+
name: "String"
|
|
671
|
+
}
|
|
672
|
+
}, detachedResources: {
|
|
673
|
+
serializedName: "detachedResources",
|
|
674
|
+
readOnly: true,
|
|
675
|
+
type: {
|
|
676
|
+
name: "Sequence",
|
|
677
|
+
element: {
|
|
678
|
+
type: {
|
|
679
|
+
name: "Composite",
|
|
680
|
+
className: "ResourceReference"
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}, deletedResources: {
|
|
685
|
+
serializedName: "deletedResources",
|
|
686
|
+
readOnly: true,
|
|
687
|
+
type: {
|
|
688
|
+
name: "Sequence",
|
|
689
|
+
element: {
|
|
690
|
+
type: {
|
|
691
|
+
name: "Composite",
|
|
692
|
+
className: "ResourceReference"
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
}, failedResources: {
|
|
697
|
+
serializedName: "failedResources",
|
|
698
|
+
readOnly: true,
|
|
699
|
+
type: {
|
|
700
|
+
name: "Sequence",
|
|
701
|
+
element: {
|
|
702
|
+
type: {
|
|
703
|
+
name: "Composite",
|
|
704
|
+
className: "ResourceReferenceExtended"
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
}, resources: {
|
|
709
|
+
serializedName: "resources",
|
|
710
|
+
readOnly: true,
|
|
711
|
+
type: {
|
|
712
|
+
name: "Sequence",
|
|
713
|
+
element: {
|
|
714
|
+
type: {
|
|
715
|
+
name: "Composite",
|
|
716
|
+
className: "ManagedResourceReference"
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
}, deploymentId: {
|
|
721
|
+
serializedName: "deploymentId",
|
|
722
|
+
readOnly: true,
|
|
723
|
+
type: {
|
|
724
|
+
name: "String"
|
|
725
|
+
}
|
|
726
|
+
}, outputs: {
|
|
727
|
+
serializedName: "outputs",
|
|
728
|
+
readOnly: true,
|
|
729
|
+
type: {
|
|
730
|
+
name: "Dictionary",
|
|
731
|
+
value: { type: { name: "any" } }
|
|
732
|
+
}
|
|
733
|
+
}, duration: {
|
|
734
|
+
serializedName: "duration",
|
|
735
|
+
readOnly: true,
|
|
736
|
+
type: {
|
|
737
|
+
name: "String"
|
|
738
|
+
}
|
|
739
|
+
} })
|
|
740
|
+
}
|
|
741
|
+
};
|
|
742
|
+
const DeploymentStack = {
|
|
743
|
+
type: {
|
|
744
|
+
name: "Composite",
|
|
745
|
+
className: "DeploymentStack",
|
|
746
|
+
modelProperties: Object.assign(Object.assign({}, AzureResourceBase.type.modelProperties), { location: {
|
|
747
|
+
serializedName: "location",
|
|
748
|
+
type: {
|
|
749
|
+
name: "String"
|
|
750
|
+
}
|
|
751
|
+
}, tags: {
|
|
752
|
+
serializedName: "tags",
|
|
753
|
+
type: {
|
|
754
|
+
name: "Dictionary",
|
|
755
|
+
value: { type: { name: "String" } }
|
|
756
|
+
}
|
|
757
|
+
}, error: {
|
|
758
|
+
serializedName: "properties.error",
|
|
759
|
+
type: {
|
|
760
|
+
name: "Composite",
|
|
761
|
+
className: "ErrorResponse"
|
|
762
|
+
}
|
|
763
|
+
}, template: {
|
|
764
|
+
serializedName: "properties.template",
|
|
765
|
+
type: {
|
|
766
|
+
name: "Dictionary",
|
|
767
|
+
value: { type: { name: "any" } }
|
|
768
|
+
}
|
|
769
|
+
}, templateLink: {
|
|
770
|
+
serializedName: "properties.templateLink",
|
|
771
|
+
type: {
|
|
772
|
+
name: "Composite",
|
|
773
|
+
className: "DeploymentStacksTemplateLink"
|
|
774
|
+
}
|
|
775
|
+
}, parameters: {
|
|
776
|
+
serializedName: "properties.parameters",
|
|
777
|
+
type: {
|
|
778
|
+
name: "Dictionary",
|
|
779
|
+
value: { type: { name: "any" } }
|
|
780
|
+
}
|
|
781
|
+
}, parametersLink: {
|
|
782
|
+
serializedName: "properties.parametersLink",
|
|
783
|
+
type: {
|
|
784
|
+
name: "Composite",
|
|
785
|
+
className: "DeploymentStacksParametersLink"
|
|
786
|
+
}
|
|
787
|
+
}, actionOnUnmanage: {
|
|
788
|
+
serializedName: "properties.actionOnUnmanage",
|
|
789
|
+
type: {
|
|
790
|
+
name: "Composite",
|
|
791
|
+
className: "DeploymentStackPropertiesActionOnUnmanage"
|
|
792
|
+
}
|
|
793
|
+
}, debugSetting: {
|
|
794
|
+
serializedName: "properties.debugSetting",
|
|
795
|
+
type: {
|
|
796
|
+
name: "Composite",
|
|
797
|
+
className: "DeploymentStacksDebugSetting"
|
|
798
|
+
}
|
|
799
|
+
}, deploymentScope: {
|
|
800
|
+
serializedName: "properties.deploymentScope",
|
|
801
|
+
type: {
|
|
802
|
+
name: "String"
|
|
803
|
+
}
|
|
804
|
+
}, description: {
|
|
805
|
+
constraints: {
|
|
806
|
+
MaxLength: 4096
|
|
807
|
+
},
|
|
808
|
+
serializedName: "properties.description",
|
|
809
|
+
type: {
|
|
810
|
+
name: "String"
|
|
811
|
+
}
|
|
812
|
+
}, denySettings: {
|
|
813
|
+
serializedName: "properties.denySettings",
|
|
814
|
+
type: {
|
|
815
|
+
name: "Composite",
|
|
816
|
+
className: "DenySettings"
|
|
817
|
+
}
|
|
818
|
+
}, provisioningState: {
|
|
819
|
+
serializedName: "properties.provisioningState",
|
|
820
|
+
readOnly: true,
|
|
821
|
+
type: {
|
|
822
|
+
name: "String"
|
|
823
|
+
}
|
|
824
|
+
}, detachedResources: {
|
|
825
|
+
serializedName: "properties.detachedResources",
|
|
826
|
+
readOnly: true,
|
|
827
|
+
type: {
|
|
828
|
+
name: "Sequence",
|
|
829
|
+
element: {
|
|
830
|
+
type: {
|
|
831
|
+
name: "Composite",
|
|
832
|
+
className: "ResourceReference"
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
}, deletedResources: {
|
|
837
|
+
serializedName: "properties.deletedResources",
|
|
838
|
+
readOnly: true,
|
|
839
|
+
type: {
|
|
840
|
+
name: "Sequence",
|
|
841
|
+
element: {
|
|
842
|
+
type: {
|
|
843
|
+
name: "Composite",
|
|
844
|
+
className: "ResourceReference"
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
}, failedResources: {
|
|
849
|
+
serializedName: "properties.failedResources",
|
|
850
|
+
readOnly: true,
|
|
851
|
+
type: {
|
|
852
|
+
name: "Sequence",
|
|
853
|
+
element: {
|
|
854
|
+
type: {
|
|
855
|
+
name: "Composite",
|
|
856
|
+
className: "ResourceReferenceExtended"
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
}, resources: {
|
|
861
|
+
serializedName: "properties.resources",
|
|
862
|
+
readOnly: true,
|
|
863
|
+
type: {
|
|
864
|
+
name: "Sequence",
|
|
865
|
+
element: {
|
|
866
|
+
type: {
|
|
867
|
+
name: "Composite",
|
|
868
|
+
className: "ManagedResourceReference"
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
}, deploymentId: {
|
|
873
|
+
serializedName: "properties.deploymentId",
|
|
874
|
+
readOnly: true,
|
|
875
|
+
type: {
|
|
876
|
+
name: "String"
|
|
877
|
+
}
|
|
878
|
+
}, outputs: {
|
|
879
|
+
serializedName: "properties.outputs",
|
|
880
|
+
readOnly: true,
|
|
881
|
+
type: {
|
|
882
|
+
name: "Dictionary",
|
|
883
|
+
value: { type: { name: "any" } }
|
|
884
|
+
}
|
|
885
|
+
}, duration: {
|
|
886
|
+
serializedName: "properties.duration",
|
|
887
|
+
readOnly: true,
|
|
888
|
+
type: {
|
|
889
|
+
name: "String"
|
|
890
|
+
}
|
|
891
|
+
} })
|
|
892
|
+
}
|
|
893
|
+
};
|
|
894
|
+
const DeploymentStacksDeleteAtResourceGroupHeaders = {
|
|
895
|
+
type: {
|
|
896
|
+
name: "Composite",
|
|
897
|
+
className: "DeploymentStacksDeleteAtResourceGroupHeaders",
|
|
898
|
+
modelProperties: {
|
|
899
|
+
location: {
|
|
900
|
+
serializedName: "location",
|
|
901
|
+
type: {
|
|
902
|
+
name: "String"
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
};
|
|
908
|
+
const DeploymentStacksDeleteAtSubscriptionHeaders = {
|
|
909
|
+
type: {
|
|
910
|
+
name: "Composite",
|
|
911
|
+
className: "DeploymentStacksDeleteAtSubscriptionHeaders",
|
|
912
|
+
modelProperties: {
|
|
913
|
+
location: {
|
|
914
|
+
serializedName: "location",
|
|
915
|
+
type: {
|
|
916
|
+
name: "String"
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
};
|
|
922
|
+
const DeploymentStacksDeleteAtManagementGroupHeaders = {
|
|
923
|
+
type: {
|
|
924
|
+
name: "Composite",
|
|
925
|
+
className: "DeploymentStacksDeleteAtManagementGroupHeaders",
|
|
926
|
+
modelProperties: {
|
|
927
|
+
location: {
|
|
928
|
+
serializedName: "location",
|
|
929
|
+
type: {
|
|
930
|
+
name: "String"
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
};
|
|
936
|
+
|
|
937
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
938
|
+
__proto__: null,
|
|
939
|
+
DeploymentStackListResult: DeploymentStackListResult,
|
|
940
|
+
DeploymentStacksTemplateLink: DeploymentStacksTemplateLink,
|
|
941
|
+
DeploymentStacksParametersLink: DeploymentStacksParametersLink,
|
|
942
|
+
DeploymentStackPropertiesActionOnUnmanage: DeploymentStackPropertiesActionOnUnmanage,
|
|
943
|
+
DeploymentStacksDebugSetting: DeploymentStacksDebugSetting,
|
|
944
|
+
DenySettings: DenySettings,
|
|
945
|
+
ResourceReference: ResourceReference,
|
|
946
|
+
DeploymentStacksError: DeploymentStacksError,
|
|
947
|
+
ErrorResponse: ErrorResponse,
|
|
948
|
+
ErrorDetail: ErrorDetail,
|
|
949
|
+
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
950
|
+
AzureResourceBase: AzureResourceBase,
|
|
951
|
+
SystemData: SystemData,
|
|
952
|
+
DeploymentStackTemplateDefinition: DeploymentStackTemplateDefinition,
|
|
953
|
+
ResourceReferenceExtended: ResourceReferenceExtended,
|
|
954
|
+
ManagedResourceReference: ManagedResourceReference,
|
|
955
|
+
DeploymentStackProperties: DeploymentStackProperties,
|
|
956
|
+
DeploymentStack: DeploymentStack,
|
|
957
|
+
DeploymentStacksDeleteAtResourceGroupHeaders: DeploymentStacksDeleteAtResourceGroupHeaders,
|
|
958
|
+
DeploymentStacksDeleteAtSubscriptionHeaders: DeploymentStacksDeleteAtSubscriptionHeaders,
|
|
959
|
+
DeploymentStacksDeleteAtManagementGroupHeaders: DeploymentStacksDeleteAtManagementGroupHeaders
|
|
960
|
+
});
|
|
961
|
+
|
|
962
|
+
/*
|
|
963
|
+
* Copyright (c) Microsoft Corporation.
|
|
964
|
+
* Licensed under the MIT License.
|
|
965
|
+
*
|
|
966
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
967
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
968
|
+
*/
|
|
969
|
+
const accept = {
|
|
970
|
+
parameterPath: "accept",
|
|
971
|
+
mapper: {
|
|
972
|
+
defaultValue: "application/json",
|
|
973
|
+
isConstant: true,
|
|
974
|
+
serializedName: "Accept",
|
|
975
|
+
type: {
|
|
976
|
+
name: "String"
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
};
|
|
980
|
+
const $host = {
|
|
981
|
+
parameterPath: "$host",
|
|
982
|
+
mapper: {
|
|
983
|
+
serializedName: "$host",
|
|
984
|
+
required: true,
|
|
985
|
+
type: {
|
|
986
|
+
name: "String"
|
|
987
|
+
}
|
|
988
|
+
},
|
|
989
|
+
skipEncoding: true
|
|
990
|
+
};
|
|
991
|
+
const subscriptionId = {
|
|
992
|
+
parameterPath: "subscriptionId",
|
|
993
|
+
mapper: {
|
|
994
|
+
constraints: {
|
|
995
|
+
MinLength: 1
|
|
996
|
+
},
|
|
997
|
+
serializedName: "subscriptionId",
|
|
998
|
+
required: true,
|
|
999
|
+
type: {
|
|
1000
|
+
name: "String"
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
};
|
|
1004
|
+
const resourceGroupName = {
|
|
1005
|
+
parameterPath: "resourceGroupName",
|
|
1006
|
+
mapper: {
|
|
1007
|
+
constraints: {
|
|
1008
|
+
MaxLength: 90,
|
|
1009
|
+
MinLength: 1
|
|
1010
|
+
},
|
|
1011
|
+
serializedName: "resourceGroupName",
|
|
1012
|
+
required: true,
|
|
1013
|
+
type: {
|
|
1014
|
+
name: "String"
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
};
|
|
1018
|
+
const apiVersion = {
|
|
1019
|
+
parameterPath: "apiVersion",
|
|
1020
|
+
mapper: {
|
|
1021
|
+
defaultValue: "2022-08-01-preview",
|
|
1022
|
+
isConstant: true,
|
|
1023
|
+
serializedName: "api-version",
|
|
1024
|
+
type: {
|
|
1025
|
+
name: "String"
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
};
|
|
1029
|
+
const managementGroupId = {
|
|
1030
|
+
parameterPath: "managementGroupId",
|
|
1031
|
+
mapper: {
|
|
1032
|
+
constraints: {
|
|
1033
|
+
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
|
|
1034
|
+
MaxLength: 90,
|
|
1035
|
+
MinLength: 1
|
|
1036
|
+
},
|
|
1037
|
+
serializedName: "managementGroupId",
|
|
1038
|
+
required: true,
|
|
1039
|
+
type: {
|
|
1040
|
+
name: "String"
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
};
|
|
1044
|
+
const contentType = {
|
|
1045
|
+
parameterPath: ["options", "contentType"],
|
|
1046
|
+
mapper: {
|
|
1047
|
+
defaultValue: "application/json",
|
|
1048
|
+
isConstant: true,
|
|
1049
|
+
serializedName: "Content-Type",
|
|
1050
|
+
type: {
|
|
1051
|
+
name: "String"
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
};
|
|
1055
|
+
const deploymentStack = {
|
|
1056
|
+
parameterPath: "deploymentStack",
|
|
1057
|
+
mapper: DeploymentStack
|
|
1058
|
+
};
|
|
1059
|
+
const deploymentStackName = {
|
|
1060
|
+
parameterPath: "deploymentStackName",
|
|
1061
|
+
mapper: {
|
|
1062
|
+
constraints: {
|
|
1063
|
+
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
|
|
1064
|
+
MaxLength: 90,
|
|
1065
|
+
MinLength: 1
|
|
1066
|
+
},
|
|
1067
|
+
serializedName: "deploymentStackName",
|
|
1068
|
+
required: true,
|
|
1069
|
+
type: {
|
|
1070
|
+
name: "String"
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
};
|
|
1074
|
+
const unmanageActionResources = {
|
|
1075
|
+
parameterPath: ["options", "unmanageActionResources"],
|
|
1076
|
+
mapper: {
|
|
1077
|
+
serializedName: "unmanageAction.Resources",
|
|
1078
|
+
type: {
|
|
1079
|
+
name: "String"
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
};
|
|
1083
|
+
const unmanageActionResourceGroups = {
|
|
1084
|
+
parameterPath: ["options", "unmanageActionResourceGroups"],
|
|
1085
|
+
mapper: {
|
|
1086
|
+
serializedName: "unmanageAction.ResourceGroups",
|
|
1087
|
+
type: {
|
|
1088
|
+
name: "String"
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
};
|
|
1092
|
+
const unmanageActionManagementGroups = {
|
|
1093
|
+
parameterPath: ["options", "unmanageActionManagementGroups"],
|
|
1094
|
+
mapper: {
|
|
1095
|
+
serializedName: "unmanageAction.ManagementGroups",
|
|
1096
|
+
type: {
|
|
1097
|
+
name: "String"
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
};
|
|
1101
|
+
const nextLink = {
|
|
1102
|
+
parameterPath: "nextLink",
|
|
1103
|
+
mapper: {
|
|
1104
|
+
serializedName: "nextLink",
|
|
1105
|
+
required: true,
|
|
1106
|
+
type: {
|
|
1107
|
+
name: "String"
|
|
1108
|
+
}
|
|
1109
|
+
},
|
|
1110
|
+
skipEncoding: true
|
|
1111
|
+
};
|
|
1112
|
+
|
|
1113
|
+
/*
|
|
1114
|
+
* Copyright (c) Microsoft Corporation.
|
|
1115
|
+
* Licensed under the MIT License.
|
|
1116
|
+
*
|
|
1117
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1118
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1119
|
+
*/
|
|
1120
|
+
function createLroSpec(inputs) {
|
|
1121
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
1122
|
+
return {
|
|
1123
|
+
requestMethod: spec.httpMethod,
|
|
1124
|
+
requestPath: spec.path,
|
|
1125
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
1126
|
+
sendPollRequest: (path, options) => {
|
|
1127
|
+
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
1128
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
1129
|
+
}
|
|
1130
|
+
};
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
/*
|
|
1134
|
+
* Copyright (c) Microsoft Corporation.
|
|
1135
|
+
* Licensed under the MIT License.
|
|
1136
|
+
*
|
|
1137
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1138
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1139
|
+
*/
|
|
1140
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1141
|
+
/** Class containing DeploymentStacks operations. */
|
|
1142
|
+
class DeploymentStacksImpl {
|
|
1143
|
+
/**
|
|
1144
|
+
* Initialize a new instance of the class DeploymentStacks class.
|
|
1145
|
+
* @param client Reference to the service client
|
|
1146
|
+
*/
|
|
1147
|
+
constructor(client) {
|
|
1148
|
+
this.client = client;
|
|
1149
|
+
}
|
|
1150
|
+
/**
|
|
1151
|
+
* Lists all the Deployment Stacks within the specified resource group.
|
|
1152
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1153
|
+
* @param options The options parameters.
|
|
1154
|
+
*/
|
|
1155
|
+
listAtResourceGroup(resourceGroupName, options) {
|
|
1156
|
+
const iter = this.listAtResourceGroupPagingAll(resourceGroupName, options);
|
|
1157
|
+
return {
|
|
1158
|
+
next() {
|
|
1159
|
+
return iter.next();
|
|
1160
|
+
},
|
|
1161
|
+
[Symbol.asyncIterator]() {
|
|
1162
|
+
return this;
|
|
1163
|
+
},
|
|
1164
|
+
byPage: (settings) => {
|
|
1165
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1166
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1167
|
+
}
|
|
1168
|
+
return this.listAtResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1169
|
+
}
|
|
1170
|
+
};
|
|
1171
|
+
}
|
|
1172
|
+
listAtResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1173
|
+
return tslib.__asyncGenerator(this, arguments, function* listAtResourceGroupPagingPage_1() {
|
|
1174
|
+
let result;
|
|
1175
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1176
|
+
if (!continuationToken) {
|
|
1177
|
+
result = yield tslib.__await(this._listAtResourceGroup(resourceGroupName, options));
|
|
1178
|
+
let page = result.value || [];
|
|
1179
|
+
continuationToken = result.nextLink;
|
|
1180
|
+
setContinuationToken(page, continuationToken);
|
|
1181
|
+
yield yield tslib.__await(page);
|
|
1182
|
+
}
|
|
1183
|
+
while (continuationToken) {
|
|
1184
|
+
result = yield tslib.__await(this._listAtResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1185
|
+
continuationToken = result.nextLink;
|
|
1186
|
+
let page = result.value || [];
|
|
1187
|
+
setContinuationToken(page, continuationToken);
|
|
1188
|
+
yield yield tslib.__await(page);
|
|
1189
|
+
}
|
|
1190
|
+
});
|
|
1191
|
+
}
|
|
1192
|
+
listAtResourceGroupPagingAll(resourceGroupName, options) {
|
|
1193
|
+
return tslib.__asyncGenerator(this, arguments, function* listAtResourceGroupPagingAll_1() {
|
|
1194
|
+
var _a, e_1, _b, _c;
|
|
1195
|
+
try {
|
|
1196
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listAtResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1197
|
+
_c = _f.value;
|
|
1198
|
+
_d = false;
|
|
1199
|
+
try {
|
|
1200
|
+
const page = _c;
|
|
1201
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1202
|
+
}
|
|
1203
|
+
finally {
|
|
1204
|
+
_d = true;
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1209
|
+
finally {
|
|
1210
|
+
try {
|
|
1211
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1212
|
+
}
|
|
1213
|
+
finally { if (e_1) throw e_1.error; }
|
|
1214
|
+
}
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1217
|
+
/**
|
|
1218
|
+
* Lists all the Deployment Stacks within the specified subscription.
|
|
1219
|
+
* @param options The options parameters.
|
|
1220
|
+
*/
|
|
1221
|
+
listAtSubscription(options) {
|
|
1222
|
+
const iter = this.listAtSubscriptionPagingAll(options);
|
|
1223
|
+
return {
|
|
1224
|
+
next() {
|
|
1225
|
+
return iter.next();
|
|
1226
|
+
},
|
|
1227
|
+
[Symbol.asyncIterator]() {
|
|
1228
|
+
return this;
|
|
1229
|
+
},
|
|
1230
|
+
byPage: (settings) => {
|
|
1231
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1232
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1233
|
+
}
|
|
1234
|
+
return this.listAtSubscriptionPagingPage(options, settings);
|
|
1235
|
+
}
|
|
1236
|
+
};
|
|
1237
|
+
}
|
|
1238
|
+
listAtSubscriptionPagingPage(options, settings) {
|
|
1239
|
+
return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionPagingPage_1() {
|
|
1240
|
+
let result;
|
|
1241
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1242
|
+
if (!continuationToken) {
|
|
1243
|
+
result = yield tslib.__await(this._listAtSubscription(options));
|
|
1244
|
+
let page = result.value || [];
|
|
1245
|
+
continuationToken = result.nextLink;
|
|
1246
|
+
setContinuationToken(page, continuationToken);
|
|
1247
|
+
yield yield tslib.__await(page);
|
|
1248
|
+
}
|
|
1249
|
+
while (continuationToken) {
|
|
1250
|
+
result = yield tslib.__await(this._listAtSubscriptionNext(continuationToken, options));
|
|
1251
|
+
continuationToken = result.nextLink;
|
|
1252
|
+
let page = result.value || [];
|
|
1253
|
+
setContinuationToken(page, continuationToken);
|
|
1254
|
+
yield yield tslib.__await(page);
|
|
1255
|
+
}
|
|
1256
|
+
});
|
|
1257
|
+
}
|
|
1258
|
+
listAtSubscriptionPagingAll(options) {
|
|
1259
|
+
return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionPagingAll_1() {
|
|
1260
|
+
var _a, e_2, _b, _c;
|
|
1261
|
+
try {
|
|
1262
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listAtSubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1263
|
+
_c = _f.value;
|
|
1264
|
+
_d = false;
|
|
1265
|
+
try {
|
|
1266
|
+
const page = _c;
|
|
1267
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1268
|
+
}
|
|
1269
|
+
finally {
|
|
1270
|
+
_d = true;
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1275
|
+
finally {
|
|
1276
|
+
try {
|
|
1277
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1278
|
+
}
|
|
1279
|
+
finally { if (e_2) throw e_2.error; }
|
|
1280
|
+
}
|
|
1281
|
+
});
|
|
1282
|
+
}
|
|
1283
|
+
/**
|
|
1284
|
+
* Lists all the Deployment Stacks within the specified management group.
|
|
1285
|
+
* @param managementGroupId Management Group.
|
|
1286
|
+
* @param options The options parameters.
|
|
1287
|
+
*/
|
|
1288
|
+
listAtManagementGroup(managementGroupId, options) {
|
|
1289
|
+
const iter = this.listAtManagementGroupPagingAll(managementGroupId, options);
|
|
1290
|
+
return {
|
|
1291
|
+
next() {
|
|
1292
|
+
return iter.next();
|
|
1293
|
+
},
|
|
1294
|
+
[Symbol.asyncIterator]() {
|
|
1295
|
+
return this;
|
|
1296
|
+
},
|
|
1297
|
+
byPage: (settings) => {
|
|
1298
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1299
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1300
|
+
}
|
|
1301
|
+
return this.listAtManagementGroupPagingPage(managementGroupId, options, settings);
|
|
1302
|
+
}
|
|
1303
|
+
};
|
|
1304
|
+
}
|
|
1305
|
+
listAtManagementGroupPagingPage(managementGroupId, options, settings) {
|
|
1306
|
+
return tslib.__asyncGenerator(this, arguments, function* listAtManagementGroupPagingPage_1() {
|
|
1307
|
+
let result;
|
|
1308
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1309
|
+
if (!continuationToken) {
|
|
1310
|
+
result = yield tslib.__await(this._listAtManagementGroup(managementGroupId, options));
|
|
1311
|
+
let page = result.value || [];
|
|
1312
|
+
continuationToken = result.nextLink;
|
|
1313
|
+
setContinuationToken(page, continuationToken);
|
|
1314
|
+
yield yield tslib.__await(page);
|
|
1315
|
+
}
|
|
1316
|
+
while (continuationToken) {
|
|
1317
|
+
result = yield tslib.__await(this._listAtManagementGroupNext(managementGroupId, continuationToken, options));
|
|
1318
|
+
continuationToken = result.nextLink;
|
|
1319
|
+
let page = result.value || [];
|
|
1320
|
+
setContinuationToken(page, continuationToken);
|
|
1321
|
+
yield yield tslib.__await(page);
|
|
1322
|
+
}
|
|
1323
|
+
});
|
|
1324
|
+
}
|
|
1325
|
+
listAtManagementGroupPagingAll(managementGroupId, options) {
|
|
1326
|
+
return tslib.__asyncGenerator(this, arguments, function* listAtManagementGroupPagingAll_1() {
|
|
1327
|
+
var _a, e_3, _b, _c;
|
|
1328
|
+
try {
|
|
1329
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listAtManagementGroupPagingPage(managementGroupId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1330
|
+
_c = _f.value;
|
|
1331
|
+
_d = false;
|
|
1332
|
+
try {
|
|
1333
|
+
const page = _c;
|
|
1334
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1335
|
+
}
|
|
1336
|
+
finally {
|
|
1337
|
+
_d = true;
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
1342
|
+
finally {
|
|
1343
|
+
try {
|
|
1344
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1345
|
+
}
|
|
1346
|
+
finally { if (e_3) throw e_3.error; }
|
|
1347
|
+
}
|
|
1348
|
+
});
|
|
1349
|
+
}
|
|
1350
|
+
/**
|
|
1351
|
+
* Lists all the Deployment Stacks within the specified resource group.
|
|
1352
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1353
|
+
* @param options The options parameters.
|
|
1354
|
+
*/
|
|
1355
|
+
_listAtResourceGroup(resourceGroupName, options) {
|
|
1356
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listAtResourceGroupOperationSpec);
|
|
1357
|
+
}
|
|
1358
|
+
/**
|
|
1359
|
+
* Lists all the Deployment Stacks within the specified subscription.
|
|
1360
|
+
* @param options The options parameters.
|
|
1361
|
+
*/
|
|
1362
|
+
_listAtSubscription(options) {
|
|
1363
|
+
return this.client.sendOperationRequest({ options }, listAtSubscriptionOperationSpec);
|
|
1364
|
+
}
|
|
1365
|
+
/**
|
|
1366
|
+
* Lists all the Deployment Stacks within the specified management group.
|
|
1367
|
+
* @param managementGroupId Management Group.
|
|
1368
|
+
* @param options The options parameters.
|
|
1369
|
+
*/
|
|
1370
|
+
_listAtManagementGroup(managementGroupId, options) {
|
|
1371
|
+
return this.client.sendOperationRequest({ managementGroupId, options }, listAtManagementGroupOperationSpec);
|
|
1372
|
+
}
|
|
1373
|
+
/**
|
|
1374
|
+
* Creates or updates a Deployment Stack.
|
|
1375
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1376
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
1377
|
+
* @param deploymentStack Deployment Stack supplied to the operation.
|
|
1378
|
+
* @param options The options parameters.
|
|
1379
|
+
*/
|
|
1380
|
+
beginCreateOrUpdateAtResourceGroup(resourceGroupName, deploymentStackName, deploymentStack, options) {
|
|
1381
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1382
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1383
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1384
|
+
});
|
|
1385
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1386
|
+
var _a;
|
|
1387
|
+
let currentRawResponse = undefined;
|
|
1388
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1389
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1390
|
+
currentRawResponse = rawResponse;
|
|
1391
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1392
|
+
};
|
|
1393
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1394
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1395
|
+
return {
|
|
1396
|
+
flatResponse,
|
|
1397
|
+
rawResponse: {
|
|
1398
|
+
statusCode: currentRawResponse.status,
|
|
1399
|
+
body: currentRawResponse.parsedBody,
|
|
1400
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1401
|
+
}
|
|
1402
|
+
};
|
|
1403
|
+
});
|
|
1404
|
+
const lro = createLroSpec({
|
|
1405
|
+
sendOperationFn,
|
|
1406
|
+
args: {
|
|
1407
|
+
resourceGroupName,
|
|
1408
|
+
deploymentStackName,
|
|
1409
|
+
deploymentStack,
|
|
1410
|
+
options
|
|
1411
|
+
},
|
|
1412
|
+
spec: createOrUpdateAtResourceGroupOperationSpec
|
|
1413
|
+
});
|
|
1414
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1415
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1416
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1417
|
+
resourceLocationConfig: "azure-async-operation"
|
|
1418
|
+
});
|
|
1419
|
+
yield poller.poll();
|
|
1420
|
+
return poller;
|
|
1421
|
+
});
|
|
1422
|
+
}
|
|
1423
|
+
/**
|
|
1424
|
+
* Creates or updates a Deployment Stack.
|
|
1425
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1426
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
1427
|
+
* @param deploymentStack Deployment Stack supplied to the operation.
|
|
1428
|
+
* @param options The options parameters.
|
|
1429
|
+
*/
|
|
1430
|
+
beginCreateOrUpdateAtResourceGroupAndWait(resourceGroupName, deploymentStackName, deploymentStack, options) {
|
|
1431
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1432
|
+
const poller = yield this.beginCreateOrUpdateAtResourceGroup(resourceGroupName, deploymentStackName, deploymentStack, options);
|
|
1433
|
+
return poller.pollUntilDone();
|
|
1434
|
+
});
|
|
1435
|
+
}
|
|
1436
|
+
/**
|
|
1437
|
+
* Gets a Deployment Stack with a given name.
|
|
1438
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1439
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
1440
|
+
* @param options The options parameters.
|
|
1441
|
+
*/
|
|
1442
|
+
getAtResourceGroup(resourceGroupName, deploymentStackName, options) {
|
|
1443
|
+
return this.client.sendOperationRequest({ resourceGroupName, deploymentStackName, options }, getAtResourceGroupOperationSpec);
|
|
1444
|
+
}
|
|
1445
|
+
/**
|
|
1446
|
+
* Deletes a Deployment Stack by name. When operation completes, status code 200 returned without
|
|
1447
|
+
* content.
|
|
1448
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1449
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
1450
|
+
* @param options The options parameters.
|
|
1451
|
+
*/
|
|
1452
|
+
beginDeleteAtResourceGroup(resourceGroupName, deploymentStackName, options) {
|
|
1453
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1454
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1455
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1456
|
+
});
|
|
1457
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1458
|
+
var _a;
|
|
1459
|
+
let currentRawResponse = undefined;
|
|
1460
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1461
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1462
|
+
currentRawResponse = rawResponse;
|
|
1463
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1464
|
+
};
|
|
1465
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1466
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1467
|
+
return {
|
|
1468
|
+
flatResponse,
|
|
1469
|
+
rawResponse: {
|
|
1470
|
+
statusCode: currentRawResponse.status,
|
|
1471
|
+
body: currentRawResponse.parsedBody,
|
|
1472
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1473
|
+
}
|
|
1474
|
+
};
|
|
1475
|
+
});
|
|
1476
|
+
const lro = createLroSpec({
|
|
1477
|
+
sendOperationFn,
|
|
1478
|
+
args: { resourceGroupName, deploymentStackName, options },
|
|
1479
|
+
spec: deleteAtResourceGroupOperationSpec
|
|
1480
|
+
});
|
|
1481
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1482
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1483
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1484
|
+
resourceLocationConfig: "location"
|
|
1485
|
+
});
|
|
1486
|
+
yield poller.poll();
|
|
1487
|
+
return poller;
|
|
1488
|
+
});
|
|
1489
|
+
}
|
|
1490
|
+
/**
|
|
1491
|
+
* Deletes a Deployment Stack by name. When operation completes, status code 200 returned without
|
|
1492
|
+
* content.
|
|
1493
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1494
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
1495
|
+
* @param options The options parameters.
|
|
1496
|
+
*/
|
|
1497
|
+
beginDeleteAtResourceGroupAndWait(resourceGroupName, deploymentStackName, options) {
|
|
1498
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1499
|
+
const poller = yield this.beginDeleteAtResourceGroup(resourceGroupName, deploymentStackName, options);
|
|
1500
|
+
return poller.pollUntilDone();
|
|
1501
|
+
});
|
|
1502
|
+
}
|
|
1503
|
+
/**
|
|
1504
|
+
* Creates or updates a Deployment Stack.
|
|
1505
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
1506
|
+
* @param deploymentStack Deployment Stack supplied to the operation.
|
|
1507
|
+
* @param options The options parameters.
|
|
1508
|
+
*/
|
|
1509
|
+
beginCreateOrUpdateAtSubscription(deploymentStackName, deploymentStack, options) {
|
|
1510
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1511
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1512
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1513
|
+
});
|
|
1514
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1515
|
+
var _a;
|
|
1516
|
+
let currentRawResponse = undefined;
|
|
1517
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1518
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1519
|
+
currentRawResponse = rawResponse;
|
|
1520
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1521
|
+
};
|
|
1522
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1523
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1524
|
+
return {
|
|
1525
|
+
flatResponse,
|
|
1526
|
+
rawResponse: {
|
|
1527
|
+
statusCode: currentRawResponse.status,
|
|
1528
|
+
body: currentRawResponse.parsedBody,
|
|
1529
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1530
|
+
}
|
|
1531
|
+
};
|
|
1532
|
+
});
|
|
1533
|
+
const lro = createLroSpec({
|
|
1534
|
+
sendOperationFn,
|
|
1535
|
+
args: { deploymentStackName, deploymentStack, options },
|
|
1536
|
+
spec: createOrUpdateAtSubscriptionOperationSpec
|
|
1537
|
+
});
|
|
1538
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1539
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1540
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1541
|
+
resourceLocationConfig: "azure-async-operation"
|
|
1542
|
+
});
|
|
1543
|
+
yield poller.poll();
|
|
1544
|
+
return poller;
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
/**
|
|
1548
|
+
* Creates or updates a Deployment Stack.
|
|
1549
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
1550
|
+
* @param deploymentStack Deployment Stack supplied to the operation.
|
|
1551
|
+
* @param options The options parameters.
|
|
1552
|
+
*/
|
|
1553
|
+
beginCreateOrUpdateAtSubscriptionAndWait(deploymentStackName, deploymentStack, options) {
|
|
1554
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1555
|
+
const poller = yield this.beginCreateOrUpdateAtSubscription(deploymentStackName, deploymentStack, options);
|
|
1556
|
+
return poller.pollUntilDone();
|
|
1557
|
+
});
|
|
1558
|
+
}
|
|
1559
|
+
/**
|
|
1560
|
+
* Gets a Deployment Stack with a given name.
|
|
1561
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
1562
|
+
* @param options The options parameters.
|
|
1563
|
+
*/
|
|
1564
|
+
getAtSubscription(deploymentStackName, options) {
|
|
1565
|
+
return this.client.sendOperationRequest({ deploymentStackName, options }, getAtSubscriptionOperationSpec);
|
|
1566
|
+
}
|
|
1567
|
+
/**
|
|
1568
|
+
* Deletes a Deployment Stack by name. When operation completes, status code 200 returned without
|
|
1569
|
+
* content.
|
|
1570
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
1571
|
+
* @param options The options parameters.
|
|
1572
|
+
*/
|
|
1573
|
+
beginDeleteAtSubscription(deploymentStackName, options) {
|
|
1574
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1575
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1576
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1577
|
+
});
|
|
1578
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1579
|
+
var _a;
|
|
1580
|
+
let currentRawResponse = undefined;
|
|
1581
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1582
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1583
|
+
currentRawResponse = rawResponse;
|
|
1584
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1585
|
+
};
|
|
1586
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1587
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1588
|
+
return {
|
|
1589
|
+
flatResponse,
|
|
1590
|
+
rawResponse: {
|
|
1591
|
+
statusCode: currentRawResponse.status,
|
|
1592
|
+
body: currentRawResponse.parsedBody,
|
|
1593
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1594
|
+
}
|
|
1595
|
+
};
|
|
1596
|
+
});
|
|
1597
|
+
const lro = createLroSpec({
|
|
1598
|
+
sendOperationFn,
|
|
1599
|
+
args: { deploymentStackName, options },
|
|
1600
|
+
spec: deleteAtSubscriptionOperationSpec
|
|
1601
|
+
});
|
|
1602
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1603
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1604
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1605
|
+
resourceLocationConfig: "location"
|
|
1606
|
+
});
|
|
1607
|
+
yield poller.poll();
|
|
1608
|
+
return poller;
|
|
1609
|
+
});
|
|
1610
|
+
}
|
|
1611
|
+
/**
|
|
1612
|
+
* Deletes a Deployment Stack by name. When operation completes, status code 200 returned without
|
|
1613
|
+
* content.
|
|
1614
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
1615
|
+
* @param options The options parameters.
|
|
1616
|
+
*/
|
|
1617
|
+
beginDeleteAtSubscriptionAndWait(deploymentStackName, options) {
|
|
1618
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1619
|
+
const poller = yield this.beginDeleteAtSubscription(deploymentStackName, options);
|
|
1620
|
+
return poller.pollUntilDone();
|
|
1621
|
+
});
|
|
1622
|
+
}
|
|
1623
|
+
/**
|
|
1624
|
+
* Creates or updates a Deployment Stack.
|
|
1625
|
+
* @param managementGroupId Management Group.
|
|
1626
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
1627
|
+
* @param deploymentStack Deployment Stack supplied to the operation.
|
|
1628
|
+
* @param options The options parameters.
|
|
1629
|
+
*/
|
|
1630
|
+
beginCreateOrUpdateAtManagementGroup(managementGroupId, deploymentStackName, deploymentStack, options) {
|
|
1631
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1632
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1633
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1634
|
+
});
|
|
1635
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1636
|
+
var _a;
|
|
1637
|
+
let currentRawResponse = undefined;
|
|
1638
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1639
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1640
|
+
currentRawResponse = rawResponse;
|
|
1641
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1642
|
+
};
|
|
1643
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1644
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1645
|
+
return {
|
|
1646
|
+
flatResponse,
|
|
1647
|
+
rawResponse: {
|
|
1648
|
+
statusCode: currentRawResponse.status,
|
|
1649
|
+
body: currentRawResponse.parsedBody,
|
|
1650
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1651
|
+
}
|
|
1652
|
+
};
|
|
1653
|
+
});
|
|
1654
|
+
const lro = createLroSpec({
|
|
1655
|
+
sendOperationFn,
|
|
1656
|
+
args: {
|
|
1657
|
+
managementGroupId,
|
|
1658
|
+
deploymentStackName,
|
|
1659
|
+
deploymentStack,
|
|
1660
|
+
options
|
|
1661
|
+
},
|
|
1662
|
+
spec: createOrUpdateAtManagementGroupOperationSpec
|
|
1663
|
+
});
|
|
1664
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1665
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1666
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1667
|
+
resourceLocationConfig: "azure-async-operation"
|
|
1668
|
+
});
|
|
1669
|
+
yield poller.poll();
|
|
1670
|
+
return poller;
|
|
1671
|
+
});
|
|
1672
|
+
}
|
|
1673
|
+
/**
|
|
1674
|
+
* Creates or updates a Deployment Stack.
|
|
1675
|
+
* @param managementGroupId Management Group.
|
|
1676
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
1677
|
+
* @param deploymentStack Deployment Stack supplied to the operation.
|
|
1678
|
+
* @param options The options parameters.
|
|
1679
|
+
*/
|
|
1680
|
+
beginCreateOrUpdateAtManagementGroupAndWait(managementGroupId, deploymentStackName, deploymentStack, options) {
|
|
1681
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1682
|
+
const poller = yield this.beginCreateOrUpdateAtManagementGroup(managementGroupId, deploymentStackName, deploymentStack, options);
|
|
1683
|
+
return poller.pollUntilDone();
|
|
1684
|
+
});
|
|
1685
|
+
}
|
|
1686
|
+
/**
|
|
1687
|
+
* Gets a Deployment Stack with a given name.
|
|
1688
|
+
* @param managementGroupId Management Group.
|
|
1689
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
1690
|
+
* @param options The options parameters.
|
|
1691
|
+
*/
|
|
1692
|
+
getAtManagementGroup(managementGroupId, deploymentStackName, options) {
|
|
1693
|
+
return this.client.sendOperationRequest({ managementGroupId, deploymentStackName, options }, getAtManagementGroupOperationSpec);
|
|
1694
|
+
}
|
|
1695
|
+
/**
|
|
1696
|
+
* Deletes a Deployment Stack by name. When operation completes, status code 200 returned without
|
|
1697
|
+
* content.
|
|
1698
|
+
* @param managementGroupId Management Group.
|
|
1699
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
1700
|
+
* @param options The options parameters.
|
|
1701
|
+
*/
|
|
1702
|
+
beginDeleteAtManagementGroup(managementGroupId, deploymentStackName, options) {
|
|
1703
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1704
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1705
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1706
|
+
});
|
|
1707
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1708
|
+
var _a;
|
|
1709
|
+
let currentRawResponse = undefined;
|
|
1710
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1711
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1712
|
+
currentRawResponse = rawResponse;
|
|
1713
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1714
|
+
};
|
|
1715
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1716
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1717
|
+
return {
|
|
1718
|
+
flatResponse,
|
|
1719
|
+
rawResponse: {
|
|
1720
|
+
statusCode: currentRawResponse.status,
|
|
1721
|
+
body: currentRawResponse.parsedBody,
|
|
1722
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1723
|
+
}
|
|
1724
|
+
};
|
|
1725
|
+
});
|
|
1726
|
+
const lro = createLroSpec({
|
|
1727
|
+
sendOperationFn,
|
|
1728
|
+
args: { managementGroupId, deploymentStackName, options },
|
|
1729
|
+
spec: deleteAtManagementGroupOperationSpec
|
|
1730
|
+
});
|
|
1731
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1732
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1733
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1734
|
+
resourceLocationConfig: "location"
|
|
1735
|
+
});
|
|
1736
|
+
yield poller.poll();
|
|
1737
|
+
return poller;
|
|
1738
|
+
});
|
|
1739
|
+
}
|
|
1740
|
+
/**
|
|
1741
|
+
* Deletes a Deployment Stack by name. When operation completes, status code 200 returned without
|
|
1742
|
+
* content.
|
|
1743
|
+
* @param managementGroupId Management Group.
|
|
1744
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
1745
|
+
* @param options The options parameters.
|
|
1746
|
+
*/
|
|
1747
|
+
beginDeleteAtManagementGroupAndWait(managementGroupId, deploymentStackName, options) {
|
|
1748
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1749
|
+
const poller = yield this.beginDeleteAtManagementGroup(managementGroupId, deploymentStackName, options);
|
|
1750
|
+
return poller.pollUntilDone();
|
|
1751
|
+
});
|
|
1752
|
+
}
|
|
1753
|
+
/**
|
|
1754
|
+
* Exports the template used to create the deployment stack.
|
|
1755
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1756
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
1757
|
+
* @param options The options parameters.
|
|
1758
|
+
*/
|
|
1759
|
+
exportTemplateAtResourceGroup(resourceGroupName, deploymentStackName, options) {
|
|
1760
|
+
return this.client.sendOperationRequest({ resourceGroupName, deploymentStackName, options }, exportTemplateAtResourceGroupOperationSpec);
|
|
1761
|
+
}
|
|
1762
|
+
/**
|
|
1763
|
+
* Exports the template used to create the deployment stack.
|
|
1764
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
1765
|
+
* @param options The options parameters.
|
|
1766
|
+
*/
|
|
1767
|
+
exportTemplateAtSubscription(deploymentStackName, options) {
|
|
1768
|
+
return this.client.sendOperationRequest({ deploymentStackName, options }, exportTemplateAtSubscriptionOperationSpec);
|
|
1769
|
+
}
|
|
1770
|
+
/**
|
|
1771
|
+
* Exports the template used to create the deployment stack.
|
|
1772
|
+
* @param managementGroupId Management Group.
|
|
1773
|
+
* @param deploymentStackName Name of the deployment stack.
|
|
1774
|
+
* @param options The options parameters.
|
|
1775
|
+
*/
|
|
1776
|
+
exportTemplateAtManagementGroup(managementGroupId, deploymentStackName, options) {
|
|
1777
|
+
return this.client.sendOperationRequest({ managementGroupId, deploymentStackName, options }, exportTemplateAtManagementGroupOperationSpec);
|
|
1778
|
+
}
|
|
1779
|
+
/**
|
|
1780
|
+
* ListAtResourceGroupNext
|
|
1781
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1782
|
+
* @param nextLink The nextLink from the previous successful call to the ListAtResourceGroup method.
|
|
1783
|
+
* @param options The options parameters.
|
|
1784
|
+
*/
|
|
1785
|
+
_listAtResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1786
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listAtResourceGroupNextOperationSpec);
|
|
1787
|
+
}
|
|
1788
|
+
/**
|
|
1789
|
+
* ListAtSubscriptionNext
|
|
1790
|
+
* @param nextLink The nextLink from the previous successful call to the ListAtSubscription method.
|
|
1791
|
+
* @param options The options parameters.
|
|
1792
|
+
*/
|
|
1793
|
+
_listAtSubscriptionNext(nextLink, options) {
|
|
1794
|
+
return this.client.sendOperationRequest({ nextLink, options }, listAtSubscriptionNextOperationSpec);
|
|
1795
|
+
}
|
|
1796
|
+
/**
|
|
1797
|
+
* ListAtManagementGroupNext
|
|
1798
|
+
* @param managementGroupId Management Group.
|
|
1799
|
+
* @param nextLink The nextLink from the previous successful call to the ListAtManagementGroup method.
|
|
1800
|
+
* @param options The options parameters.
|
|
1801
|
+
*/
|
|
1802
|
+
_listAtManagementGroupNext(managementGroupId, nextLink, options) {
|
|
1803
|
+
return this.client.sendOperationRequest({ managementGroupId, nextLink, options }, listAtManagementGroupNextOperationSpec);
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
// Operation Specifications
|
|
1807
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1808
|
+
const listAtResourceGroupOperationSpec = {
|
|
1809
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks",
|
|
1810
|
+
httpMethod: "GET",
|
|
1811
|
+
responses: {
|
|
1812
|
+
200: {
|
|
1813
|
+
bodyMapper: DeploymentStackListResult
|
|
1814
|
+
},
|
|
1815
|
+
default: {
|
|
1816
|
+
bodyMapper: DeploymentStacksError
|
|
1817
|
+
}
|
|
1818
|
+
},
|
|
1819
|
+
queryParameters: [apiVersion],
|
|
1820
|
+
urlParameters: [
|
|
1821
|
+
$host,
|
|
1822
|
+
subscriptionId,
|
|
1823
|
+
resourceGroupName
|
|
1824
|
+
],
|
|
1825
|
+
headerParameters: [accept],
|
|
1826
|
+
serializer
|
|
1827
|
+
};
|
|
1828
|
+
const listAtSubscriptionOperationSpec = {
|
|
1829
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks",
|
|
1830
|
+
httpMethod: "GET",
|
|
1831
|
+
responses: {
|
|
1832
|
+
200: {
|
|
1833
|
+
bodyMapper: DeploymentStackListResult
|
|
1834
|
+
},
|
|
1835
|
+
default: {
|
|
1836
|
+
bodyMapper: DeploymentStacksError
|
|
1837
|
+
}
|
|
1838
|
+
},
|
|
1839
|
+
queryParameters: [apiVersion],
|
|
1840
|
+
urlParameters: [$host, subscriptionId],
|
|
1841
|
+
headerParameters: [accept],
|
|
1842
|
+
serializer
|
|
1843
|
+
};
|
|
1844
|
+
const listAtManagementGroupOperationSpec = {
|
|
1845
|
+
path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks",
|
|
1846
|
+
httpMethod: "GET",
|
|
1847
|
+
responses: {
|
|
1848
|
+
200: {
|
|
1849
|
+
bodyMapper: DeploymentStackListResult
|
|
1850
|
+
},
|
|
1851
|
+
default: {
|
|
1852
|
+
bodyMapper: DeploymentStacksError
|
|
1853
|
+
}
|
|
1854
|
+
},
|
|
1855
|
+
queryParameters: [apiVersion],
|
|
1856
|
+
urlParameters: [$host, managementGroupId],
|
|
1857
|
+
headerParameters: [accept],
|
|
1858
|
+
serializer
|
|
1859
|
+
};
|
|
1860
|
+
const createOrUpdateAtResourceGroupOperationSpec = {
|
|
1861
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}",
|
|
1862
|
+
httpMethod: "PUT",
|
|
1863
|
+
responses: {
|
|
1864
|
+
200: {
|
|
1865
|
+
bodyMapper: DeploymentStack
|
|
1866
|
+
},
|
|
1867
|
+
201: {
|
|
1868
|
+
bodyMapper: DeploymentStack
|
|
1869
|
+
},
|
|
1870
|
+
202: {
|
|
1871
|
+
bodyMapper: DeploymentStack
|
|
1872
|
+
},
|
|
1873
|
+
204: {
|
|
1874
|
+
bodyMapper: DeploymentStack
|
|
1875
|
+
},
|
|
1876
|
+
default: {
|
|
1877
|
+
bodyMapper: DeploymentStacksError
|
|
1878
|
+
}
|
|
1879
|
+
},
|
|
1880
|
+
requestBody: deploymentStack,
|
|
1881
|
+
queryParameters: [apiVersion],
|
|
1882
|
+
urlParameters: [
|
|
1883
|
+
$host,
|
|
1884
|
+
subscriptionId,
|
|
1885
|
+
resourceGroupName,
|
|
1886
|
+
deploymentStackName
|
|
1887
|
+
],
|
|
1888
|
+
headerParameters: [accept, contentType],
|
|
1889
|
+
mediaType: "json",
|
|
1890
|
+
serializer
|
|
1891
|
+
};
|
|
1892
|
+
const getAtResourceGroupOperationSpec = {
|
|
1893
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}",
|
|
1894
|
+
httpMethod: "GET",
|
|
1895
|
+
responses: {
|
|
1896
|
+
200: {
|
|
1897
|
+
bodyMapper: DeploymentStack
|
|
1898
|
+
},
|
|
1899
|
+
default: {
|
|
1900
|
+
bodyMapper: DeploymentStacksError
|
|
1901
|
+
}
|
|
1902
|
+
},
|
|
1903
|
+
queryParameters: [apiVersion],
|
|
1904
|
+
urlParameters: [
|
|
1905
|
+
$host,
|
|
1906
|
+
subscriptionId,
|
|
1907
|
+
resourceGroupName,
|
|
1908
|
+
deploymentStackName
|
|
1909
|
+
],
|
|
1910
|
+
headerParameters: [accept],
|
|
1911
|
+
serializer
|
|
1912
|
+
};
|
|
1913
|
+
const deleteAtResourceGroupOperationSpec = {
|
|
1914
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}",
|
|
1915
|
+
httpMethod: "DELETE",
|
|
1916
|
+
responses: {
|
|
1917
|
+
200: {},
|
|
1918
|
+
201: {},
|
|
1919
|
+
202: {},
|
|
1920
|
+
204: {},
|
|
1921
|
+
default: {
|
|
1922
|
+
bodyMapper: DeploymentStacksError
|
|
1923
|
+
}
|
|
1924
|
+
},
|
|
1925
|
+
queryParameters: [
|
|
1926
|
+
apiVersion,
|
|
1927
|
+
unmanageActionResources,
|
|
1928
|
+
unmanageActionResourceGroups
|
|
1929
|
+
],
|
|
1930
|
+
urlParameters: [
|
|
1931
|
+
$host,
|
|
1932
|
+
subscriptionId,
|
|
1933
|
+
resourceGroupName,
|
|
1934
|
+
deploymentStackName
|
|
1935
|
+
],
|
|
1936
|
+
headerParameters: [accept],
|
|
1937
|
+
serializer
|
|
1938
|
+
};
|
|
1939
|
+
const createOrUpdateAtSubscriptionOperationSpec = {
|
|
1940
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}",
|
|
1941
|
+
httpMethod: "PUT",
|
|
1942
|
+
responses: {
|
|
1943
|
+
200: {
|
|
1944
|
+
bodyMapper: DeploymentStack
|
|
1945
|
+
},
|
|
1946
|
+
201: {
|
|
1947
|
+
bodyMapper: DeploymentStack
|
|
1948
|
+
},
|
|
1949
|
+
202: {
|
|
1950
|
+
bodyMapper: DeploymentStack
|
|
1951
|
+
},
|
|
1952
|
+
204: {
|
|
1953
|
+
bodyMapper: DeploymentStack
|
|
1954
|
+
},
|
|
1955
|
+
default: {
|
|
1956
|
+
bodyMapper: DeploymentStacksError
|
|
1957
|
+
}
|
|
1958
|
+
},
|
|
1959
|
+
requestBody: deploymentStack,
|
|
1960
|
+
queryParameters: [apiVersion],
|
|
1961
|
+
urlParameters: [
|
|
1962
|
+
$host,
|
|
1963
|
+
subscriptionId,
|
|
1964
|
+
deploymentStackName
|
|
1965
|
+
],
|
|
1966
|
+
headerParameters: [accept, contentType],
|
|
1967
|
+
mediaType: "json",
|
|
1968
|
+
serializer
|
|
1969
|
+
};
|
|
1970
|
+
const getAtSubscriptionOperationSpec = {
|
|
1971
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}",
|
|
1972
|
+
httpMethod: "GET",
|
|
1973
|
+
responses: {
|
|
1974
|
+
200: {
|
|
1975
|
+
bodyMapper: DeploymentStack
|
|
1976
|
+
},
|
|
1977
|
+
default: {
|
|
1978
|
+
bodyMapper: DeploymentStacksError
|
|
1979
|
+
}
|
|
1980
|
+
},
|
|
1981
|
+
queryParameters: [apiVersion],
|
|
1982
|
+
urlParameters: [
|
|
1983
|
+
$host,
|
|
1984
|
+
subscriptionId,
|
|
1985
|
+
deploymentStackName
|
|
1986
|
+
],
|
|
1987
|
+
headerParameters: [accept],
|
|
1988
|
+
serializer
|
|
1989
|
+
};
|
|
1990
|
+
const deleteAtSubscriptionOperationSpec = {
|
|
1991
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}",
|
|
1992
|
+
httpMethod: "DELETE",
|
|
1993
|
+
responses: {
|
|
1994
|
+
200: {},
|
|
1995
|
+
201: {},
|
|
1996
|
+
202: {},
|
|
1997
|
+
204: {},
|
|
1998
|
+
default: {
|
|
1999
|
+
bodyMapper: DeploymentStacksError
|
|
2000
|
+
}
|
|
2001
|
+
},
|
|
2002
|
+
queryParameters: [
|
|
2003
|
+
apiVersion,
|
|
2004
|
+
unmanageActionResources,
|
|
2005
|
+
unmanageActionResourceGroups
|
|
2006
|
+
],
|
|
2007
|
+
urlParameters: [
|
|
2008
|
+
$host,
|
|
2009
|
+
subscriptionId,
|
|
2010
|
+
deploymentStackName
|
|
2011
|
+
],
|
|
2012
|
+
headerParameters: [accept],
|
|
2013
|
+
serializer
|
|
2014
|
+
};
|
|
2015
|
+
const createOrUpdateAtManagementGroupOperationSpec = {
|
|
2016
|
+
path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}",
|
|
2017
|
+
httpMethod: "PUT",
|
|
2018
|
+
responses: {
|
|
2019
|
+
200: {
|
|
2020
|
+
bodyMapper: DeploymentStack
|
|
2021
|
+
},
|
|
2022
|
+
201: {
|
|
2023
|
+
bodyMapper: DeploymentStack
|
|
2024
|
+
},
|
|
2025
|
+
202: {
|
|
2026
|
+
bodyMapper: DeploymentStack
|
|
2027
|
+
},
|
|
2028
|
+
204: {
|
|
2029
|
+
bodyMapper: DeploymentStack
|
|
2030
|
+
},
|
|
2031
|
+
default: {
|
|
2032
|
+
bodyMapper: DeploymentStacksError
|
|
2033
|
+
}
|
|
2034
|
+
},
|
|
2035
|
+
requestBody: deploymentStack,
|
|
2036
|
+
queryParameters: [apiVersion],
|
|
2037
|
+
urlParameters: [
|
|
2038
|
+
$host,
|
|
2039
|
+
managementGroupId,
|
|
2040
|
+
deploymentStackName
|
|
2041
|
+
],
|
|
2042
|
+
headerParameters: [accept, contentType],
|
|
2043
|
+
mediaType: "json",
|
|
2044
|
+
serializer
|
|
2045
|
+
};
|
|
2046
|
+
const getAtManagementGroupOperationSpec = {
|
|
2047
|
+
path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}",
|
|
2048
|
+
httpMethod: "GET",
|
|
2049
|
+
responses: {
|
|
2050
|
+
200: {
|
|
2051
|
+
bodyMapper: DeploymentStack
|
|
2052
|
+
},
|
|
2053
|
+
default: {
|
|
2054
|
+
bodyMapper: DeploymentStacksError
|
|
2055
|
+
}
|
|
2056
|
+
},
|
|
2057
|
+
queryParameters: [apiVersion],
|
|
2058
|
+
urlParameters: [
|
|
2059
|
+
$host,
|
|
2060
|
+
managementGroupId,
|
|
2061
|
+
deploymentStackName
|
|
2062
|
+
],
|
|
2063
|
+
headerParameters: [accept],
|
|
2064
|
+
serializer
|
|
2065
|
+
};
|
|
2066
|
+
const deleteAtManagementGroupOperationSpec = {
|
|
2067
|
+
path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}",
|
|
2068
|
+
httpMethod: "DELETE",
|
|
2069
|
+
responses: {
|
|
2070
|
+
200: {},
|
|
2071
|
+
201: {},
|
|
2072
|
+
202: {},
|
|
2073
|
+
204: {},
|
|
2074
|
+
default: {
|
|
2075
|
+
bodyMapper: DeploymentStacksError
|
|
2076
|
+
}
|
|
2077
|
+
},
|
|
2078
|
+
queryParameters: [
|
|
2079
|
+
apiVersion,
|
|
2080
|
+
unmanageActionResources,
|
|
2081
|
+
unmanageActionResourceGroups,
|
|
2082
|
+
unmanageActionManagementGroups
|
|
2083
|
+
],
|
|
2084
|
+
urlParameters: [
|
|
2085
|
+
$host,
|
|
2086
|
+
managementGroupId,
|
|
2087
|
+
deploymentStackName
|
|
2088
|
+
],
|
|
2089
|
+
headerParameters: [accept],
|
|
2090
|
+
serializer
|
|
2091
|
+
};
|
|
2092
|
+
const exportTemplateAtResourceGroupOperationSpec = {
|
|
2093
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate",
|
|
2094
|
+
httpMethod: "POST",
|
|
2095
|
+
responses: {
|
|
2096
|
+
200: {
|
|
2097
|
+
bodyMapper: DeploymentStackTemplateDefinition
|
|
2098
|
+
},
|
|
2099
|
+
default: {
|
|
2100
|
+
bodyMapper: DeploymentStacksError
|
|
2101
|
+
}
|
|
2102
|
+
},
|
|
2103
|
+
queryParameters: [apiVersion],
|
|
2104
|
+
urlParameters: [
|
|
2105
|
+
$host,
|
|
2106
|
+
subscriptionId,
|
|
2107
|
+
resourceGroupName,
|
|
2108
|
+
deploymentStackName
|
|
2109
|
+
],
|
|
2110
|
+
headerParameters: [accept],
|
|
2111
|
+
serializer
|
|
2112
|
+
};
|
|
2113
|
+
const exportTemplateAtSubscriptionOperationSpec = {
|
|
2114
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate",
|
|
2115
|
+
httpMethod: "POST",
|
|
2116
|
+
responses: {
|
|
2117
|
+
200: {
|
|
2118
|
+
bodyMapper: DeploymentStackTemplateDefinition
|
|
2119
|
+
},
|
|
2120
|
+
default: {
|
|
2121
|
+
bodyMapper: DeploymentStacksError
|
|
2122
|
+
}
|
|
2123
|
+
},
|
|
2124
|
+
queryParameters: [apiVersion],
|
|
2125
|
+
urlParameters: [
|
|
2126
|
+
$host,
|
|
2127
|
+
subscriptionId,
|
|
2128
|
+
deploymentStackName
|
|
2129
|
+
],
|
|
2130
|
+
headerParameters: [accept],
|
|
2131
|
+
serializer
|
|
2132
|
+
};
|
|
2133
|
+
const exportTemplateAtManagementGroupOperationSpec = {
|
|
2134
|
+
path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate",
|
|
2135
|
+
httpMethod: "POST",
|
|
2136
|
+
responses: {
|
|
2137
|
+
200: {
|
|
2138
|
+
bodyMapper: DeploymentStackTemplateDefinition
|
|
2139
|
+
},
|
|
2140
|
+
default: {
|
|
2141
|
+
bodyMapper: DeploymentStacksError
|
|
2142
|
+
}
|
|
2143
|
+
},
|
|
2144
|
+
queryParameters: [apiVersion],
|
|
2145
|
+
urlParameters: [
|
|
2146
|
+
$host,
|
|
2147
|
+
managementGroupId,
|
|
2148
|
+
deploymentStackName
|
|
2149
|
+
],
|
|
2150
|
+
headerParameters: [accept],
|
|
2151
|
+
serializer
|
|
2152
|
+
};
|
|
2153
|
+
const listAtResourceGroupNextOperationSpec = {
|
|
2154
|
+
path: "{nextLink}",
|
|
2155
|
+
httpMethod: "GET",
|
|
2156
|
+
responses: {
|
|
2157
|
+
200: {
|
|
2158
|
+
bodyMapper: DeploymentStackListResult
|
|
2159
|
+
},
|
|
2160
|
+
default: {
|
|
2161
|
+
bodyMapper: DeploymentStacksError
|
|
2162
|
+
}
|
|
2163
|
+
},
|
|
2164
|
+
urlParameters: [
|
|
2165
|
+
$host,
|
|
2166
|
+
subscriptionId,
|
|
2167
|
+
resourceGroupName,
|
|
2168
|
+
nextLink
|
|
2169
|
+
],
|
|
2170
|
+
headerParameters: [accept],
|
|
2171
|
+
serializer
|
|
2172
|
+
};
|
|
2173
|
+
const listAtSubscriptionNextOperationSpec = {
|
|
2174
|
+
path: "{nextLink}",
|
|
2175
|
+
httpMethod: "GET",
|
|
2176
|
+
responses: {
|
|
2177
|
+
200: {
|
|
2178
|
+
bodyMapper: DeploymentStackListResult
|
|
2179
|
+
},
|
|
2180
|
+
default: {
|
|
2181
|
+
bodyMapper: DeploymentStacksError
|
|
2182
|
+
}
|
|
2183
|
+
},
|
|
2184
|
+
urlParameters: [
|
|
2185
|
+
$host,
|
|
2186
|
+
subscriptionId,
|
|
2187
|
+
nextLink
|
|
2188
|
+
],
|
|
2189
|
+
headerParameters: [accept],
|
|
2190
|
+
serializer
|
|
2191
|
+
};
|
|
2192
|
+
const listAtManagementGroupNextOperationSpec = {
|
|
2193
|
+
path: "{nextLink}",
|
|
2194
|
+
httpMethod: "GET",
|
|
2195
|
+
responses: {
|
|
2196
|
+
200: {
|
|
2197
|
+
bodyMapper: DeploymentStackListResult
|
|
2198
|
+
},
|
|
2199
|
+
default: {
|
|
2200
|
+
bodyMapper: DeploymentStacksError
|
|
2201
|
+
}
|
|
2202
|
+
},
|
|
2203
|
+
urlParameters: [
|
|
2204
|
+
$host,
|
|
2205
|
+
managementGroupId,
|
|
2206
|
+
nextLink
|
|
2207
|
+
],
|
|
2208
|
+
headerParameters: [accept],
|
|
2209
|
+
serializer
|
|
2210
|
+
};
|
|
2211
|
+
|
|
2212
|
+
/*
|
|
2213
|
+
* Copyright (c) Microsoft Corporation.
|
|
2214
|
+
* Licensed under the MIT License.
|
|
2215
|
+
*
|
|
2216
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2217
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2218
|
+
*/
|
|
2219
|
+
class DeploymentStacksClient extends coreClient__namespace.ServiceClient {
|
|
2220
|
+
constructor(credentials, subscriptionIdOrOptions, options) {
|
|
2221
|
+
var _a, _b, _c;
|
|
2222
|
+
if (credentials === undefined) {
|
|
2223
|
+
throw new Error("'credentials' cannot be null");
|
|
2224
|
+
}
|
|
2225
|
+
let subscriptionId;
|
|
2226
|
+
if (typeof subscriptionIdOrOptions === "string") {
|
|
2227
|
+
subscriptionId = subscriptionIdOrOptions;
|
|
2228
|
+
}
|
|
2229
|
+
else if (typeof subscriptionIdOrOptions === "object") {
|
|
2230
|
+
options = subscriptionIdOrOptions;
|
|
2231
|
+
}
|
|
2232
|
+
// Initializing default values for options
|
|
2233
|
+
if (!options) {
|
|
2234
|
+
options = {};
|
|
2235
|
+
}
|
|
2236
|
+
const defaults = {
|
|
2237
|
+
requestContentType: "application/json; charset=utf-8",
|
|
2238
|
+
credential: credentials
|
|
2239
|
+
};
|
|
2240
|
+
const packageDetails = `azsdk-js-arm-resourcesdeploymentstacks/1.0.0-beta.1`;
|
|
2241
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
2242
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
2243
|
+
: `${packageDetails}`;
|
|
2244
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
2245
|
+
userAgentPrefix
|
|
2246
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
2247
|
+
super(optionsWithDefaults);
|
|
2248
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
2249
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
2250
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
2251
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
2252
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
2253
|
+
}
|
|
2254
|
+
if (!options ||
|
|
2255
|
+
!options.pipeline ||
|
|
2256
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
2257
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
2258
|
+
this.pipeline.removePolicy({
|
|
2259
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
2260
|
+
});
|
|
2261
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
2262
|
+
credential: credentials,
|
|
2263
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
2264
|
+
challengeCallbacks: {
|
|
2265
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
2266
|
+
}
|
|
2267
|
+
}));
|
|
2268
|
+
}
|
|
2269
|
+
// Parameter assignments
|
|
2270
|
+
this.subscriptionId = subscriptionId;
|
|
2271
|
+
// Assigning values to Constant parameters
|
|
2272
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
2273
|
+
this.apiVersion = options.apiVersion || "2022-08-01-preview";
|
|
2274
|
+
this.deploymentStacks = new DeploymentStacksImpl(this);
|
|
2275
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
2276
|
+
}
|
|
2277
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
2278
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
2279
|
+
if (!apiVersion) {
|
|
2280
|
+
return;
|
|
2281
|
+
}
|
|
2282
|
+
const apiVersionPolicy = {
|
|
2283
|
+
name: "CustomApiVersionPolicy",
|
|
2284
|
+
sendRequest(request, next) {
|
|
2285
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2286
|
+
const param = request.url.split("?");
|
|
2287
|
+
if (param.length > 1) {
|
|
2288
|
+
const newParams = param[1].split("&").map((item) => {
|
|
2289
|
+
if (item.indexOf("api-version") > -1) {
|
|
2290
|
+
return "api-version=" + apiVersion;
|
|
2291
|
+
}
|
|
2292
|
+
else {
|
|
2293
|
+
return item;
|
|
2294
|
+
}
|
|
2295
|
+
});
|
|
2296
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
2297
|
+
}
|
|
2298
|
+
return next(request);
|
|
2299
|
+
});
|
|
2300
|
+
}
|
|
2301
|
+
};
|
|
2302
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
exports.DeploymentStacksClient = DeploymentStacksClient;
|
|
2307
|
+
exports.getContinuationToken = getContinuationToken;
|
|
2308
|
+
//# sourceMappingURL=index.js.map
|