@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.
Files changed (132) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +2308 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtManagementGroupSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtManagementGroupSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtManagementGroupSample.js +53 -0
  11. package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtManagementGroupSample.js.map +1 -0
  12. package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtResourceGroupSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtResourceGroupSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtResourceGroupSample.js +56 -0
  15. package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtResourceGroupSample.js.map +1 -0
  16. package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtSubscriptionSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtSubscriptionSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtSubscriptionSample.js +54 -0
  19. package/dist-esm/samples-dev/deploymentStacksCreateOrUpdateAtSubscriptionSample.js.map +1 -0
  20. package/dist-esm/samples-dev/deploymentStacksDeleteAtManagementGroupSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/deploymentStacksDeleteAtManagementGroupSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/deploymentStacksDeleteAtManagementGroupSample.js +37 -0
  23. package/dist-esm/samples-dev/deploymentStacksDeleteAtManagementGroupSample.js.map +1 -0
  24. package/dist-esm/samples-dev/deploymentStacksDeleteAtResourceGroupSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/deploymentStacksDeleteAtResourceGroupSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/deploymentStacksDeleteAtResourceGroupSample.js +40 -0
  27. package/dist-esm/samples-dev/deploymentStacksDeleteAtResourceGroupSample.js.map +1 -0
  28. package/dist-esm/samples-dev/deploymentStacksDeleteAtSubscriptionSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/deploymentStacksDeleteAtSubscriptionSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/deploymentStacksDeleteAtSubscriptionSample.js +38 -0
  31. package/dist-esm/samples-dev/deploymentStacksDeleteAtSubscriptionSample.js.map +1 -0
  32. package/dist-esm/samples-dev/deploymentStacksExportTemplateAtManagementGroupSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/deploymentStacksExportTemplateAtManagementGroupSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/deploymentStacksExportTemplateAtManagementGroupSample.js +37 -0
  35. package/dist-esm/samples-dev/deploymentStacksExportTemplateAtManagementGroupSample.js.map +1 -0
  36. package/dist-esm/samples-dev/deploymentStacksExportTemplateAtResourceGroupSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/deploymentStacksExportTemplateAtResourceGroupSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/deploymentStacksExportTemplateAtResourceGroupSample.js +40 -0
  39. package/dist-esm/samples-dev/deploymentStacksExportTemplateAtResourceGroupSample.js.map +1 -0
  40. package/dist-esm/samples-dev/deploymentStacksExportTemplateAtSubscriptionSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/deploymentStacksExportTemplateAtSubscriptionSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/deploymentStacksExportTemplateAtSubscriptionSample.js +38 -0
  43. package/dist-esm/samples-dev/deploymentStacksExportTemplateAtSubscriptionSample.js.map +1 -0
  44. package/dist-esm/samples-dev/deploymentStacksGetAtManagementGroupSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/deploymentStacksGetAtManagementGroupSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/deploymentStacksGetAtManagementGroupSample.js +37 -0
  47. package/dist-esm/samples-dev/deploymentStacksGetAtManagementGroupSample.js.map +1 -0
  48. package/dist-esm/samples-dev/deploymentStacksGetAtResourceGroupSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/deploymentStacksGetAtResourceGroupSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/deploymentStacksGetAtResourceGroupSample.js +40 -0
  51. package/dist-esm/samples-dev/deploymentStacksGetAtResourceGroupSample.js.map +1 -0
  52. package/dist-esm/samples-dev/deploymentStacksGetAtSubscriptionSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/deploymentStacksGetAtSubscriptionSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/deploymentStacksGetAtSubscriptionSample.js +38 -0
  55. package/dist-esm/samples-dev/deploymentStacksGetAtSubscriptionSample.js.map +1 -0
  56. package/dist-esm/samples-dev/deploymentStacksListAtManagementGroupSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/deploymentStacksListAtManagementGroupSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/deploymentStacksListAtManagementGroupSample.js +57 -0
  59. package/dist-esm/samples-dev/deploymentStacksListAtManagementGroupSample.js.map +1 -0
  60. package/dist-esm/samples-dev/deploymentStacksListAtResourceGroupSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/deploymentStacksListAtResourceGroupSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/deploymentStacksListAtResourceGroupSample.js +60 -0
  63. package/dist-esm/samples-dev/deploymentStacksListAtResourceGroupSample.js.map +1 -0
  64. package/dist-esm/samples-dev/deploymentStacksListAtSubscriptionSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/deploymentStacksListAtSubscriptionSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/deploymentStacksListAtSubscriptionSample.js +58 -0
  67. package/dist-esm/samples-dev/deploymentStacksListAtSubscriptionSample.js.map +1 -0
  68. package/dist-esm/src/deploymentStacksClient.d.ts +21 -0
  69. package/dist-esm/src/deploymentStacksClient.d.ts.map +1 -0
  70. package/dist-esm/src/deploymentStacksClient.js +98 -0
  71. package/dist-esm/src/deploymentStacksClient.js.map +1 -0
  72. package/dist-esm/src/index.d.ts +6 -0
  73. package/dist-esm/src/index.d.ts.map +1 -0
  74. package/dist-esm/src/index.js +13 -0
  75. package/dist-esm/src/index.js.map +1 -0
  76. package/dist-esm/src/lroImpl.d.ts +11 -0
  77. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  78. package/dist-esm/src/lroImpl.js +21 -0
  79. package/dist-esm/src/lroImpl.js.map +1 -0
  80. package/dist-esm/src/models/index.d.ts +642 -0
  81. package/dist-esm/src/models/index.d.ts.map +1 -0
  82. package/dist-esm/src/models/index.js +116 -0
  83. package/dist-esm/src/models/index.js.map +1 -0
  84. package/dist-esm/src/models/mappers.d.ts +23 -0
  85. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  86. package/dist-esm/src/models/mappers.js +758 -0
  87. package/dist-esm/src/models/mappers.js.map +1 -0
  88. package/dist-esm/src/models/parameters.d.ts +15 -0
  89. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  90. package/dist-esm/src/models/parameters.js +152 -0
  91. package/dist-esm/src/models/parameters.js.map +1 -0
  92. package/dist-esm/src/operations/deploymentStacks.d.ts +207 -0
  93. package/dist-esm/src/operations/deploymentStacks.d.ts.map +1 -0
  94. package/dist-esm/src/operations/deploymentStacks.js +1086 -0
  95. package/dist-esm/src/operations/deploymentStacks.js.map +1 -0
  96. package/dist-esm/src/operations/index.d.ts +2 -0
  97. package/dist-esm/src/operations/index.d.ts.map +1 -0
  98. package/dist-esm/src/operations/index.js +9 -0
  99. package/dist-esm/src/operations/index.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/deploymentStacks.d.ts +156 -0
  101. package/dist-esm/src/operationsInterfaces/deploymentStacks.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/deploymentStacks.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/deploymentStacks.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
  105. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/index.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  108. package/dist-esm/src/pagingHelper.d.ts +13 -0
  109. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  110. package/dist-esm/src/pagingHelper.js +32 -0
  111. package/dist-esm/src/pagingHelper.js.map +1 -0
  112. package/dist-esm/test/resourcesdeploymentstacks_operations_test.spec.d.ts +4 -0
  113. package/dist-esm/test/resourcesdeploymentstacks_operations_test.spec.d.ts.map +1 -0
  114. package/dist-esm/test/resourcesdeploymentstacks_operations_test.spec.js +162 -0
  115. package/dist-esm/test/resourcesdeploymentstacks_operations_test.spec.js.map +1 -0
  116. package/package.json +124 -0
  117. package/review/arm-resourcesdeploymentstacks.api.md +469 -0
  118. package/rollup.config.js +122 -0
  119. package/src/deploymentStacksClient.ts +154 -0
  120. package/src/index.ts +13 -0
  121. package/src/lroImpl.ts +42 -0
  122. package/src/models/index.ts +728 -0
  123. package/src/models/mappers.ts +828 -0
  124. package/src/models/parameters.ts +170 -0
  125. package/src/operations/deploymentStacks.ts +1420 -0
  126. package/src/operations/index.ts +9 -0
  127. package/src/operationsInterfaces/deploymentStacks.ts +286 -0
  128. package/src/operationsInterfaces/index.ts +9 -0
  129. package/src/pagingHelper.ts +39 -0
  130. package/tsconfig.json +33 -0
  131. package/types/arm-resourcesdeploymentstacks.d.ts +899 -0
  132. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,899 @@
1
+ import * as coreAuth from '@azure/core-auth';
2
+ import * as coreClient from '@azure/core-client';
3
+ import { OperationState } from '@azure/core-lro';
4
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
5
+ import { SimplePollerLike } from '@azure/core-lro';
6
+
7
+ /** Common properties for all Azure resources. */
8
+ export declare interface AzureResourceBase {
9
+ /**
10
+ * String Id used to locate any resource on Azure.
11
+ * NOTE: This property will not be serialized. It can only be populated by the server.
12
+ */
13
+ readonly id?: string;
14
+ /**
15
+ * Name of this resource.
16
+ * NOTE: This property will not be serialized. It can only be populated by the server.
17
+ */
18
+ readonly name?: string;
19
+ /**
20
+ * Type of this resource.
21
+ * NOTE: This property will not be serialized. It can only be populated by the server.
22
+ */
23
+ readonly type?: string;
24
+ /**
25
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
26
+ * NOTE: This property will not be serialized. It can only be populated by the server.
27
+ */
28
+ readonly systemData?: SystemData;
29
+ }
30
+
31
+ /**
32
+ * Defines values for CreatedByType. \
33
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
34
+ * this enum contains the known values that the service supports.
35
+ * ### Known values supported by the service
36
+ * **User** \
37
+ * **Application** \
38
+ * **ManagedIdentity** \
39
+ * **Key**
40
+ */
41
+ export declare type CreatedByType = string;
42
+
43
+ /** Defines how resources deployed by the deployment stack are locked. */
44
+ export declare interface DenySettings {
45
+ /** denySettings Mode. */
46
+ mode: DenySettingsMode;
47
+ /** List of AAD principal IDs excluded from the lock. Up to 5 principals are permitted. */
48
+ excludedPrincipals?: string[];
49
+ /** List of role-based management operations that are excluded from the denySettings. Up to 200 actions are permitted. If the denySetting mode is set to 'denyWriteAndDelete', then the following actions are automatically appended to 'excludedActions': '*\/read' and 'Microsoft.Authorization/locks/delete'. If the denySetting mode is set to 'denyDelete', then the following actions are automatically appended to 'excludedActions': 'Microsoft.Authorization/locks/delete'. Duplicate actions will be removed. */
50
+ excludedActions?: string[];
51
+ /** DenySettings will be applied to child scopes. */
52
+ applyToChildScopes?: boolean;
53
+ }
54
+
55
+ /**
56
+ * Defines values for DenySettingsMode. \
57
+ * {@link KnownDenySettingsMode} can be used interchangeably with DenySettingsMode,
58
+ * this enum contains the known values that the service supports.
59
+ * ### Known values supported by the service
60
+ * **denyDelete**: Authorized users are able to read and modify the resources, but cannot delete. \
61
+ * **denyWriteAndDelete**: Authorized users can only read from a resource, but cannot modify or delete it. \
62
+ * **none**: No denyAssignments have been applied.
63
+ */
64
+ export declare type DenySettingsMode = string;
65
+
66
+ /**
67
+ * Defines values for DenyStatusMode. \
68
+ * {@link KnownDenyStatusMode} can be used interchangeably with DenyStatusMode,
69
+ * this enum contains the known values that the service supports.
70
+ * ### Known values supported by the service
71
+ * **denyDelete**: Authorized users are able to read and modify the resources, but cannot delete. \
72
+ * **notSupported**: Resource type does not support denyAssignments. \
73
+ * **inapplicable**: denyAssignments are not supported on resources outside the scope of the deployment stack. \
74
+ * **denyWriteAndDelete**: Authorized users can only read from a resource, but cannot modify or delete it. \
75
+ * **removedBySystem**: Deny assignment has been removed by Azure due to a resource management change (management group move, etc.) \
76
+ * **None**: No denyAssignments have been applied.
77
+ */
78
+ export declare type DenyStatusMode = string;
79
+
80
+ /** Deployment stack object. */
81
+ export declare interface DeploymentStack extends AzureResourceBase {
82
+ /** The location of the deployment stack. It cannot be changed after creation. It must be one of the supported Azure locations. */
83
+ location?: string;
84
+ /** Deployment stack resource tags. */
85
+ tags?: {
86
+ [propertyName: string]: string;
87
+ };
88
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
89
+ error?: ErrorResponse;
90
+ /** The template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. */
91
+ template?: Record<string, unknown>;
92
+ /** The URI of the template. Use either the templateLink property or the template property, but not both. */
93
+ templateLink?: DeploymentStacksTemplateLink;
94
+ /** Name and value pairs that define the deployment parameters for the template. Use this element when providing the parameter values directly in the request, rather than linking to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. */
95
+ parameters?: Record<string, unknown>;
96
+ /** The URI of parameters file. Use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. */
97
+ parametersLink?: DeploymentStacksParametersLink;
98
+ /** Defines the behavior of resources that are not managed immediately after the stack is updated. */
99
+ actionOnUnmanage?: DeploymentStackPropertiesActionOnUnmanage;
100
+ /** The debug setting of the deployment. */
101
+ debugSetting?: DeploymentStacksDebugSetting;
102
+ /** The scope at which the initial deployment should be created. If a scope is not specified, it will default to the scope of the deployment stack. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroupId}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'). */
103
+ deploymentScope?: string;
104
+ /** Deployment stack description. */
105
+ description?: string;
106
+ /** Defines how resources deployed by the stack are locked. */
107
+ denySettings?: DenySettings;
108
+ /**
109
+ * State of the deployment stack.
110
+ * NOTE: This property will not be serialized. It can only be populated by the server.
111
+ */
112
+ readonly provisioningState?: DeploymentStackProvisioningState;
113
+ /**
114
+ * An array of resources that were detached during the most recent update.
115
+ * NOTE: This property will not be serialized. It can only be populated by the server.
116
+ */
117
+ readonly detachedResources?: ResourceReference[];
118
+ /**
119
+ * An array of resources that were deleted during the most recent update.
120
+ * NOTE: This property will not be serialized. It can only be populated by the server.
121
+ */
122
+ readonly deletedResources?: ResourceReference[];
123
+ /**
124
+ * An array of resources that failed to reach goal state during the most recent update.
125
+ * NOTE: This property will not be serialized. It can only be populated by the server.
126
+ */
127
+ readonly failedResources?: ResourceReferenceExtended[];
128
+ /**
129
+ * An array of resources currently managed by the deployment stack.
130
+ * NOTE: This property will not be serialized. It can only be populated by the server.
131
+ */
132
+ readonly resources?: ManagedResourceReference[];
133
+ /**
134
+ * The resourceId of the deployment resource created by the deployment stack.
135
+ * NOTE: This property will not be serialized. It can only be populated by the server.
136
+ */
137
+ readonly deploymentId?: string;
138
+ /**
139
+ * The outputs of the underlying deployment.
140
+ * NOTE: This property will not be serialized. It can only be populated by the server.
141
+ */
142
+ readonly outputs?: Record<string, unknown>;
143
+ /**
144
+ * The duration of the deployment stack update.
145
+ * NOTE: This property will not be serialized. It can only be populated by the server.
146
+ */
147
+ readonly duration?: string;
148
+ }
149
+
150
+ /** List of deployment stacks. */
151
+ export declare interface DeploymentStackListResult {
152
+ /** An array of deployment stacks. */
153
+ value?: DeploymentStack[];
154
+ /**
155
+ * The URL to use for getting the next set of results.
156
+ * NOTE: This property will not be serialized. It can only be populated by the server.
157
+ */
158
+ readonly nextLink?: string;
159
+ }
160
+
161
+ /** Deployment stack properties. */
162
+ export declare interface DeploymentStackProperties extends DeploymentStacksError {
163
+ /** The template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. */
164
+ template?: Record<string, unknown>;
165
+ /** The URI of the template. Use either the templateLink property or the template property, but not both. */
166
+ templateLink?: DeploymentStacksTemplateLink;
167
+ /** Name and value pairs that define the deployment parameters for the template. Use this element when providing the parameter values directly in the request, rather than linking to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. */
168
+ parameters?: Record<string, unknown>;
169
+ /** The URI of parameters file. Use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. */
170
+ parametersLink?: DeploymentStacksParametersLink;
171
+ /** Defines the behavior of resources that are not managed immediately after the stack is updated. */
172
+ actionOnUnmanage: DeploymentStackPropertiesActionOnUnmanage;
173
+ /** The debug setting of the deployment. */
174
+ debugSetting?: DeploymentStacksDebugSetting;
175
+ /** The scope at which the initial deployment should be created. If a scope is not specified, it will default to the scope of the deployment stack. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroupId}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'). */
176
+ deploymentScope?: string;
177
+ /** Deployment stack description. */
178
+ description?: string;
179
+ /** Defines how resources deployed by the stack are locked. */
180
+ denySettings: DenySettings;
181
+ /**
182
+ * State of the deployment stack.
183
+ * NOTE: This property will not be serialized. It can only be populated by the server.
184
+ */
185
+ readonly provisioningState?: DeploymentStackProvisioningState;
186
+ /**
187
+ * An array of resources that were detached during the most recent update.
188
+ * NOTE: This property will not be serialized. It can only be populated by the server.
189
+ */
190
+ readonly detachedResources?: ResourceReference[];
191
+ /**
192
+ * An array of resources that were deleted during the most recent update.
193
+ * NOTE: This property will not be serialized. It can only be populated by the server.
194
+ */
195
+ readonly deletedResources?: ResourceReference[];
196
+ /**
197
+ * An array of resources that failed to reach goal state during the most recent update.
198
+ * NOTE: This property will not be serialized. It can only be populated by the server.
199
+ */
200
+ readonly failedResources?: ResourceReferenceExtended[];
201
+ /**
202
+ * An array of resources currently managed by the deployment stack.
203
+ * NOTE: This property will not be serialized. It can only be populated by the server.
204
+ */
205
+ readonly resources?: ManagedResourceReference[];
206
+ /**
207
+ * The resourceId of the deployment resource created by the deployment stack.
208
+ * NOTE: This property will not be serialized. It can only be populated by the server.
209
+ */
210
+ readonly deploymentId?: string;
211
+ /**
212
+ * The outputs of the underlying deployment.
213
+ * NOTE: This property will not be serialized. It can only be populated by the server.
214
+ */
215
+ readonly outputs?: Record<string, unknown>;
216
+ /**
217
+ * The duration of the deployment stack update.
218
+ * NOTE: This property will not be serialized. It can only be populated by the server.
219
+ */
220
+ readonly duration?: string;
221
+ }
222
+
223
+ /** Defines the behavior of resources that are not managed immediately after the stack is updated. */
224
+ export declare interface DeploymentStackPropertiesActionOnUnmanage {
225
+ /** Specifies the action that should be taken on the resource when the deployment stack is deleted. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state. */
226
+ resources: DeploymentStacksDeleteDetachEnum;
227
+ /** Specifies the action that should be taken on the resource when the deployment stack is deleted. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state. */
228
+ resourceGroups?: DeploymentStacksDeleteDetachEnum;
229
+ /** Specifies the action that should be taken on the resource when the deployment stack is deleted. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state. */
230
+ managementGroups?: DeploymentStacksDeleteDetachEnum;
231
+ }
232
+
233
+ /**
234
+ * Defines values for DeploymentStackProvisioningState. \
235
+ * {@link KnownDeploymentStackProvisioningState} can be used interchangeably with DeploymentStackProvisioningState,
236
+ * this enum contains the known values that the service supports.
237
+ * ### Known values supported by the service
238
+ * **Creating** \
239
+ * **Validating** \
240
+ * **Waiting** \
241
+ * **Deploying** \
242
+ * **Canceling** \
243
+ * **Locking** \
244
+ * **DeletingResources** \
245
+ * **Succeeded** \
246
+ * **Failed** \
247
+ * **Canceled** \
248
+ * **Deleting**
249
+ */
250
+ export declare type DeploymentStackProvisioningState = string;
251
+
252
+ /** Interface representing a DeploymentStacks. */
253
+ export declare interface DeploymentStacks {
254
+ /**
255
+ * Lists all the Deployment Stacks within the specified resource group.
256
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
257
+ * @param options The options parameters.
258
+ */
259
+ listAtResourceGroup(resourceGroupName: string, options?: DeploymentStacksListAtResourceGroupOptionalParams): PagedAsyncIterableIterator<DeploymentStack>;
260
+ /**
261
+ * Lists all the Deployment Stacks within the specified subscription.
262
+ * @param options The options parameters.
263
+ */
264
+ listAtSubscription(options?: DeploymentStacksListAtSubscriptionOptionalParams): PagedAsyncIterableIterator<DeploymentStack>;
265
+ /**
266
+ * Lists all the Deployment Stacks within the specified management group.
267
+ * @param managementGroupId Management Group.
268
+ * @param options The options parameters.
269
+ */
270
+ listAtManagementGroup(managementGroupId: string, options?: DeploymentStacksListAtManagementGroupOptionalParams): PagedAsyncIterableIterator<DeploymentStack>;
271
+ /**
272
+ * Creates or updates a Deployment Stack.
273
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
274
+ * @param deploymentStackName Name of the deployment stack.
275
+ * @param deploymentStack Deployment Stack supplied to the operation.
276
+ * @param options The options parameters.
277
+ */
278
+ beginCreateOrUpdateAtResourceGroup(resourceGroupName: string, deploymentStackName: string, deploymentStack: DeploymentStack, options?: DeploymentStacksCreateOrUpdateAtResourceGroupOptionalParams): Promise<SimplePollerLike<OperationState<DeploymentStacksCreateOrUpdateAtResourceGroupResponse>, DeploymentStacksCreateOrUpdateAtResourceGroupResponse>>;
279
+ /**
280
+ * Creates or updates a Deployment Stack.
281
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
282
+ * @param deploymentStackName Name of the deployment stack.
283
+ * @param deploymentStack Deployment Stack supplied to the operation.
284
+ * @param options The options parameters.
285
+ */
286
+ beginCreateOrUpdateAtResourceGroupAndWait(resourceGroupName: string, deploymentStackName: string, deploymentStack: DeploymentStack, options?: DeploymentStacksCreateOrUpdateAtResourceGroupOptionalParams): Promise<DeploymentStacksCreateOrUpdateAtResourceGroupResponse>;
287
+ /**
288
+ * Gets a Deployment Stack with a given name.
289
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
290
+ * @param deploymentStackName Name of the deployment stack.
291
+ * @param options The options parameters.
292
+ */
293
+ getAtResourceGroup(resourceGroupName: string, deploymentStackName: string, options?: DeploymentStacksGetAtResourceGroupOptionalParams): Promise<DeploymentStacksGetAtResourceGroupResponse>;
294
+ /**
295
+ * Deletes a Deployment Stack by name. When operation completes, status code 200 returned without
296
+ * content.
297
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
298
+ * @param deploymentStackName Name of the deployment stack.
299
+ * @param options The options parameters.
300
+ */
301
+ beginDeleteAtResourceGroup(resourceGroupName: string, deploymentStackName: string, options?: DeploymentStacksDeleteAtResourceGroupOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
302
+ /**
303
+ * Deletes a Deployment Stack by name. When operation completes, status code 200 returned without
304
+ * content.
305
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
306
+ * @param deploymentStackName Name of the deployment stack.
307
+ * @param options The options parameters.
308
+ */
309
+ beginDeleteAtResourceGroupAndWait(resourceGroupName: string, deploymentStackName: string, options?: DeploymentStacksDeleteAtResourceGroupOptionalParams): Promise<void>;
310
+ /**
311
+ * Creates or updates a Deployment Stack.
312
+ * @param deploymentStackName Name of the deployment stack.
313
+ * @param deploymentStack Deployment Stack supplied to the operation.
314
+ * @param options The options parameters.
315
+ */
316
+ beginCreateOrUpdateAtSubscription(deploymentStackName: string, deploymentStack: DeploymentStack, options?: DeploymentStacksCreateOrUpdateAtSubscriptionOptionalParams): Promise<SimplePollerLike<OperationState<DeploymentStacksCreateOrUpdateAtSubscriptionResponse>, DeploymentStacksCreateOrUpdateAtSubscriptionResponse>>;
317
+ /**
318
+ * Creates or updates a Deployment Stack.
319
+ * @param deploymentStackName Name of the deployment stack.
320
+ * @param deploymentStack Deployment Stack supplied to the operation.
321
+ * @param options The options parameters.
322
+ */
323
+ beginCreateOrUpdateAtSubscriptionAndWait(deploymentStackName: string, deploymentStack: DeploymentStack, options?: DeploymentStacksCreateOrUpdateAtSubscriptionOptionalParams): Promise<DeploymentStacksCreateOrUpdateAtSubscriptionResponse>;
324
+ /**
325
+ * Gets a Deployment Stack with a given name.
326
+ * @param deploymentStackName Name of the deployment stack.
327
+ * @param options The options parameters.
328
+ */
329
+ getAtSubscription(deploymentStackName: string, options?: DeploymentStacksGetAtSubscriptionOptionalParams): Promise<DeploymentStacksGetAtSubscriptionResponse>;
330
+ /**
331
+ * Deletes a Deployment Stack by name. When operation completes, status code 200 returned without
332
+ * content.
333
+ * @param deploymentStackName Name of the deployment stack.
334
+ * @param options The options parameters.
335
+ */
336
+ beginDeleteAtSubscription(deploymentStackName: string, options?: DeploymentStacksDeleteAtSubscriptionOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
337
+ /**
338
+ * Deletes a Deployment Stack by name. When operation completes, status code 200 returned without
339
+ * content.
340
+ * @param deploymentStackName Name of the deployment stack.
341
+ * @param options The options parameters.
342
+ */
343
+ beginDeleteAtSubscriptionAndWait(deploymentStackName: string, options?: DeploymentStacksDeleteAtSubscriptionOptionalParams): Promise<void>;
344
+ /**
345
+ * Creates or updates a Deployment Stack.
346
+ * @param managementGroupId Management Group.
347
+ * @param deploymentStackName Name of the deployment stack.
348
+ * @param deploymentStack Deployment Stack supplied to the operation.
349
+ * @param options The options parameters.
350
+ */
351
+ beginCreateOrUpdateAtManagementGroup(managementGroupId: string, deploymentStackName: string, deploymentStack: DeploymentStack, options?: DeploymentStacksCreateOrUpdateAtManagementGroupOptionalParams): Promise<SimplePollerLike<OperationState<DeploymentStacksCreateOrUpdateAtManagementGroupResponse>, DeploymentStacksCreateOrUpdateAtManagementGroupResponse>>;
352
+ /**
353
+ * Creates or updates a Deployment Stack.
354
+ * @param managementGroupId Management Group.
355
+ * @param deploymentStackName Name of the deployment stack.
356
+ * @param deploymentStack Deployment Stack supplied to the operation.
357
+ * @param options The options parameters.
358
+ */
359
+ beginCreateOrUpdateAtManagementGroupAndWait(managementGroupId: string, deploymentStackName: string, deploymentStack: DeploymentStack, options?: DeploymentStacksCreateOrUpdateAtManagementGroupOptionalParams): Promise<DeploymentStacksCreateOrUpdateAtManagementGroupResponse>;
360
+ /**
361
+ * Gets a Deployment Stack with a given name.
362
+ * @param managementGroupId Management Group.
363
+ * @param deploymentStackName Name of the deployment stack.
364
+ * @param options The options parameters.
365
+ */
366
+ getAtManagementGroup(managementGroupId: string, deploymentStackName: string, options?: DeploymentStacksGetAtManagementGroupOptionalParams): Promise<DeploymentStacksGetAtManagementGroupResponse>;
367
+ /**
368
+ * Deletes a Deployment Stack by name. When operation completes, status code 200 returned without
369
+ * content.
370
+ * @param managementGroupId Management Group.
371
+ * @param deploymentStackName Name of the deployment stack.
372
+ * @param options The options parameters.
373
+ */
374
+ beginDeleteAtManagementGroup(managementGroupId: string, deploymentStackName: string, options?: DeploymentStacksDeleteAtManagementGroupOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
375
+ /**
376
+ * Deletes a Deployment Stack by name. When operation completes, status code 200 returned without
377
+ * content.
378
+ * @param managementGroupId Management Group.
379
+ * @param deploymentStackName Name of the deployment stack.
380
+ * @param options The options parameters.
381
+ */
382
+ beginDeleteAtManagementGroupAndWait(managementGroupId: string, deploymentStackName: string, options?: DeploymentStacksDeleteAtManagementGroupOptionalParams): Promise<void>;
383
+ /**
384
+ * Exports the template used to create the deployment stack.
385
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
386
+ * @param deploymentStackName Name of the deployment stack.
387
+ * @param options The options parameters.
388
+ */
389
+ exportTemplateAtResourceGroup(resourceGroupName: string, deploymentStackName: string, options?: DeploymentStacksExportTemplateAtResourceGroupOptionalParams): Promise<DeploymentStacksExportTemplateAtResourceGroupResponse>;
390
+ /**
391
+ * Exports the template used to create the deployment stack.
392
+ * @param deploymentStackName Name of the deployment stack.
393
+ * @param options The options parameters.
394
+ */
395
+ exportTemplateAtSubscription(deploymentStackName: string, options?: DeploymentStacksExportTemplateAtSubscriptionOptionalParams): Promise<DeploymentStacksExportTemplateAtSubscriptionResponse>;
396
+ /**
397
+ * Exports the template used to create the deployment stack.
398
+ * @param managementGroupId Management Group.
399
+ * @param deploymentStackName Name of the deployment stack.
400
+ * @param options The options parameters.
401
+ */
402
+ exportTemplateAtManagementGroup(managementGroupId: string, deploymentStackName: string, options?: DeploymentStacksExportTemplateAtManagementGroupOptionalParams): Promise<DeploymentStacksExportTemplateAtManagementGroupResponse>;
403
+ }
404
+
405
+ export declare class DeploymentStacksClient extends coreClient.ServiceClient {
406
+ $host: string;
407
+ subscriptionId?: string;
408
+ apiVersion: string;
409
+ /**
410
+ * Initializes a new instance of the DeploymentStacksClient class.
411
+ * @param credentials Subscription credentials which uniquely identify client subscription.
412
+ * @param subscriptionId The ID of the target subscription.
413
+ * @param options The parameter options
414
+ */
415
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: DeploymentStacksClientOptionalParams);
416
+ constructor(credentials: coreAuth.TokenCredential, options?: DeploymentStacksClientOptionalParams);
417
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
418
+ private addCustomApiVersionPolicy;
419
+ deploymentStacks: DeploymentStacks;
420
+ }
421
+
422
+ /** Optional parameters. */
423
+ export declare interface DeploymentStacksClientOptionalParams extends coreClient.ServiceClientOptions {
424
+ /** server parameter */
425
+ $host?: string;
426
+ /** Api Version */
427
+ apiVersion?: string;
428
+ /** Overrides client endpoint. */
429
+ endpoint?: string;
430
+ }
431
+
432
+ /** Optional parameters. */
433
+ export declare interface DeploymentStacksCreateOrUpdateAtManagementGroupOptionalParams extends coreClient.OperationOptions {
434
+ /** Delay to wait until next poll, in milliseconds. */
435
+ updateIntervalInMs?: number;
436
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
437
+ resumeFrom?: string;
438
+ }
439
+
440
+ /** Contains response data for the createOrUpdateAtManagementGroup operation. */
441
+ export declare type DeploymentStacksCreateOrUpdateAtManagementGroupResponse = DeploymentStack;
442
+
443
+ /** Optional parameters. */
444
+ export declare interface DeploymentStacksCreateOrUpdateAtResourceGroupOptionalParams extends coreClient.OperationOptions {
445
+ /** Delay to wait until next poll, in milliseconds. */
446
+ updateIntervalInMs?: number;
447
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
448
+ resumeFrom?: string;
449
+ }
450
+
451
+ /** Contains response data for the createOrUpdateAtResourceGroup operation. */
452
+ export declare type DeploymentStacksCreateOrUpdateAtResourceGroupResponse = DeploymentStack;
453
+
454
+ /** Optional parameters. */
455
+ export declare interface DeploymentStacksCreateOrUpdateAtSubscriptionOptionalParams extends coreClient.OperationOptions {
456
+ /** Delay to wait until next poll, in milliseconds. */
457
+ updateIntervalInMs?: number;
458
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
459
+ resumeFrom?: string;
460
+ }
461
+
462
+ /** Contains response data for the createOrUpdateAtSubscription operation. */
463
+ export declare type DeploymentStacksCreateOrUpdateAtSubscriptionResponse = DeploymentStack;
464
+
465
+ /** The debug setting. */
466
+ export declare interface DeploymentStacksDebugSetting {
467
+ /** Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information that is being passed in during deployment. By logging information about the request or response, sensitive data that is retrieved through the deployment operations could potentially be exposed. */
468
+ detailLevel?: string;
469
+ }
470
+
471
+ /** Defines headers for DeploymentStacks_deleteAtManagementGroup operation. */
472
+ export declare interface DeploymentStacksDeleteAtManagementGroupHeaders {
473
+ location?: string;
474
+ }
475
+
476
+ /** Optional parameters. */
477
+ export declare interface DeploymentStacksDeleteAtManagementGroupOptionalParams extends coreClient.OperationOptions {
478
+ /** Flag to indicate delete rather than detach for the resources. */
479
+ unmanageActionResources?: UnmanageActionResourceMode;
480
+ /** Flag to indicate delete rather than detach for the resource groups. */
481
+ unmanageActionResourceGroups?: UnmanageActionResourceGroupMode;
482
+ /** Flag to indicate delete rather than detach for the management groups. */
483
+ unmanageActionManagementGroups?: UnmanageActionManagementGroupMode;
484
+ /** Delay to wait until next poll, in milliseconds. */
485
+ updateIntervalInMs?: number;
486
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
487
+ resumeFrom?: string;
488
+ }
489
+
490
+ /** Defines headers for DeploymentStacks_deleteAtResourceGroup operation. */
491
+ export declare interface DeploymentStacksDeleteAtResourceGroupHeaders {
492
+ location?: string;
493
+ }
494
+
495
+ /** Optional parameters. */
496
+ export declare interface DeploymentStacksDeleteAtResourceGroupOptionalParams extends coreClient.OperationOptions {
497
+ /** Flag to indicate delete rather than detach for the resources. */
498
+ unmanageActionResources?: UnmanageActionResourceMode;
499
+ /** Flag to indicate delete rather than detach for the resource groups. */
500
+ unmanageActionResourceGroups?: UnmanageActionResourceGroupMode;
501
+ /** Delay to wait until next poll, in milliseconds. */
502
+ updateIntervalInMs?: number;
503
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
504
+ resumeFrom?: string;
505
+ }
506
+
507
+ /** Defines headers for DeploymentStacks_deleteAtSubscription operation. */
508
+ export declare interface DeploymentStacksDeleteAtSubscriptionHeaders {
509
+ location?: string;
510
+ }
511
+
512
+ /** Optional parameters. */
513
+ export declare interface DeploymentStacksDeleteAtSubscriptionOptionalParams extends coreClient.OperationOptions {
514
+ /** Flag to indicate delete rather than detach for the resources. */
515
+ unmanageActionResources?: UnmanageActionResourceMode;
516
+ /** Flag to indicate delete rather than detach for the resource groups. */
517
+ unmanageActionResourceGroups?: UnmanageActionResourceGroupMode;
518
+ /** Delay to wait until next poll, in milliseconds. */
519
+ updateIntervalInMs?: number;
520
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
521
+ resumeFrom?: string;
522
+ }
523
+
524
+ /**
525
+ * Defines values for DeploymentStacksDeleteDetachEnum. \
526
+ * {@link KnownDeploymentStacksDeleteDetachEnum} can be used interchangeably with DeploymentStacksDeleteDetachEnum,
527
+ * this enum contains the known values that the service supports.
528
+ * ### Known values supported by the service
529
+ * **delete** \
530
+ * **detach**
531
+ */
532
+ export declare type DeploymentStacksDeleteDetachEnum = string;
533
+
534
+ /** Deployment Stacks error response. */
535
+ export declare interface DeploymentStacksError {
536
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
537
+ error?: ErrorResponse;
538
+ }
539
+
540
+ /** Optional parameters. */
541
+ export declare interface DeploymentStacksExportTemplateAtManagementGroupOptionalParams extends coreClient.OperationOptions {
542
+ }
543
+
544
+ /** Contains response data for the exportTemplateAtManagementGroup operation. */
545
+ export declare type DeploymentStacksExportTemplateAtManagementGroupResponse = DeploymentStackTemplateDefinition;
546
+
547
+ /** Optional parameters. */
548
+ export declare interface DeploymentStacksExportTemplateAtResourceGroupOptionalParams extends coreClient.OperationOptions {
549
+ }
550
+
551
+ /** Contains response data for the exportTemplateAtResourceGroup operation. */
552
+ export declare type DeploymentStacksExportTemplateAtResourceGroupResponse = DeploymentStackTemplateDefinition;
553
+
554
+ /** Optional parameters. */
555
+ export declare interface DeploymentStacksExportTemplateAtSubscriptionOptionalParams extends coreClient.OperationOptions {
556
+ }
557
+
558
+ /** Contains response data for the exportTemplateAtSubscription operation. */
559
+ export declare type DeploymentStacksExportTemplateAtSubscriptionResponse = DeploymentStackTemplateDefinition;
560
+
561
+ /** Optional parameters. */
562
+ export declare interface DeploymentStacksGetAtManagementGroupOptionalParams extends coreClient.OperationOptions {
563
+ }
564
+
565
+ /** Contains response data for the getAtManagementGroup operation. */
566
+ export declare type DeploymentStacksGetAtManagementGroupResponse = DeploymentStack;
567
+
568
+ /** Optional parameters. */
569
+ export declare interface DeploymentStacksGetAtResourceGroupOptionalParams extends coreClient.OperationOptions {
570
+ }
571
+
572
+ /** Contains response data for the getAtResourceGroup operation. */
573
+ export declare type DeploymentStacksGetAtResourceGroupResponse = DeploymentStack;
574
+
575
+ /** Optional parameters. */
576
+ export declare interface DeploymentStacksGetAtSubscriptionOptionalParams extends coreClient.OperationOptions {
577
+ }
578
+
579
+ /** Contains response data for the getAtSubscription operation. */
580
+ export declare type DeploymentStacksGetAtSubscriptionResponse = DeploymentStack;
581
+
582
+ /** Optional parameters. */
583
+ export declare interface DeploymentStacksListAtManagementGroupNextOptionalParams extends coreClient.OperationOptions {
584
+ }
585
+
586
+ /** Contains response data for the listAtManagementGroupNext operation. */
587
+ export declare type DeploymentStacksListAtManagementGroupNextResponse = DeploymentStackListResult;
588
+
589
+ /** Optional parameters. */
590
+ export declare interface DeploymentStacksListAtManagementGroupOptionalParams extends coreClient.OperationOptions {
591
+ }
592
+
593
+ /** Contains response data for the listAtManagementGroup operation. */
594
+ export declare type DeploymentStacksListAtManagementGroupResponse = DeploymentStackListResult;
595
+
596
+ /** Optional parameters. */
597
+ export declare interface DeploymentStacksListAtResourceGroupNextOptionalParams extends coreClient.OperationOptions {
598
+ }
599
+
600
+ /** Contains response data for the listAtResourceGroupNext operation. */
601
+ export declare type DeploymentStacksListAtResourceGroupNextResponse = DeploymentStackListResult;
602
+
603
+ /** Optional parameters. */
604
+ export declare interface DeploymentStacksListAtResourceGroupOptionalParams extends coreClient.OperationOptions {
605
+ }
606
+
607
+ /** Contains response data for the listAtResourceGroup operation. */
608
+ export declare type DeploymentStacksListAtResourceGroupResponse = DeploymentStackListResult;
609
+
610
+ /** Optional parameters. */
611
+ export declare interface DeploymentStacksListAtSubscriptionNextOptionalParams extends coreClient.OperationOptions {
612
+ }
613
+
614
+ /** Contains response data for the listAtSubscriptionNext operation. */
615
+ export declare type DeploymentStacksListAtSubscriptionNextResponse = DeploymentStackListResult;
616
+
617
+ /** Optional parameters. */
618
+ export declare interface DeploymentStacksListAtSubscriptionOptionalParams extends coreClient.OperationOptions {
619
+ }
620
+
621
+ /** Contains response data for the listAtSubscription operation. */
622
+ export declare type DeploymentStacksListAtSubscriptionResponse = DeploymentStackListResult;
623
+
624
+ /** Entity representing the reference to the deployment parameters. */
625
+ export declare interface DeploymentStacksParametersLink {
626
+ /** The URI of the parameters file. */
627
+ uri: string;
628
+ /** If included, must match the ContentVersion in the template. */
629
+ contentVersion?: string;
630
+ }
631
+
632
+ /** Entity representing the reference to the template. */
633
+ export declare interface DeploymentStacksTemplateLink {
634
+ /** The URI of the template to deploy. Use either the uri or id property, but not both. */
635
+ uri?: string;
636
+ /** The resource id of a Template Spec. Use either the id or uri property, but not both. */
637
+ id?: string;
638
+ /** The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec. If the parent was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs */
639
+ relativePath?: string;
640
+ /** The query string (for example, a SAS token) to be used with the templateLink URI. */
641
+ queryString?: string;
642
+ /** If included, must match the ContentVersion in the template. */
643
+ contentVersion?: string;
644
+ }
645
+
646
+ /** Export Template specific properties of the Stack. */
647
+ export declare interface DeploymentStackTemplateDefinition {
648
+ /** The template content. Use this element to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. */
649
+ template?: Record<string, unknown>;
650
+ /** The URI of the template. Use either the templateLink property or the template property, but not both. */
651
+ templateLink?: DeploymentStacksTemplateLink;
652
+ }
653
+
654
+ /** The resource management error additional info. */
655
+ export declare interface ErrorAdditionalInfo {
656
+ /**
657
+ * The additional info type.
658
+ * NOTE: This property will not be serialized. It can only be populated by the server.
659
+ */
660
+ readonly type?: string;
661
+ /**
662
+ * The additional info.
663
+ * NOTE: This property will not be serialized. It can only be populated by the server.
664
+ */
665
+ readonly info?: Record<string, unknown>;
666
+ }
667
+
668
+ /** The error detail. */
669
+ export declare interface ErrorDetail {
670
+ /**
671
+ * The error code.
672
+ * NOTE: This property will not be serialized. It can only be populated by the server.
673
+ */
674
+ readonly code?: string;
675
+ /**
676
+ * The error message.
677
+ * NOTE: This property will not be serialized. It can only be populated by the server.
678
+ */
679
+ readonly message?: string;
680
+ /**
681
+ * The error target.
682
+ * NOTE: This property will not be serialized. It can only be populated by the server.
683
+ */
684
+ readonly target?: string;
685
+ /**
686
+ * The error details.
687
+ * NOTE: This property will not be serialized. It can only be populated by the server.
688
+ */
689
+ readonly details?: ErrorDetail[];
690
+ /**
691
+ * The error additional info.
692
+ * NOTE: This property will not be serialized. It can only be populated by the server.
693
+ */
694
+ readonly additionalInfo?: ErrorAdditionalInfo[];
695
+ }
696
+
697
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
698
+ export declare interface ErrorResponse {
699
+ /** The error object. */
700
+ error?: ErrorDetail;
701
+ }
702
+
703
+ /**
704
+ * Given the last `.value` produced by the `byPage` iterator,
705
+ * returns a continuation token that can be used to begin paging from
706
+ * that point later.
707
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
708
+ * @returns The continuation token that can be passed into byPage() during future calls.
709
+ */
710
+ export declare function getContinuationToken(page: unknown): string | undefined;
711
+
712
+ /** Known values of {@link CreatedByType} that the service accepts. */
713
+ export declare enum KnownCreatedByType {
714
+ /** User */
715
+ User = "User",
716
+ /** Application */
717
+ Application = "Application",
718
+ /** ManagedIdentity */
719
+ ManagedIdentity = "ManagedIdentity",
720
+ /** Key */
721
+ Key = "Key"
722
+ }
723
+
724
+ /** Known values of {@link DenySettingsMode} that the service accepts. */
725
+ export declare enum KnownDenySettingsMode {
726
+ /** Authorized users are able to read and modify the resources, but cannot delete. */
727
+ DenyDelete = "denyDelete",
728
+ /** Authorized users can only read from a resource, but cannot modify or delete it. */
729
+ DenyWriteAndDelete = "denyWriteAndDelete",
730
+ /** No denyAssignments have been applied. */
731
+ None = "none"
732
+ }
733
+
734
+ /** Known values of {@link DenyStatusMode} that the service accepts. */
735
+ export declare enum KnownDenyStatusMode {
736
+ /** Authorized users are able to read and modify the resources, but cannot delete. */
737
+ DenyDelete = "denyDelete",
738
+ /** Resource type does not support denyAssignments. */
739
+ NotSupported = "notSupported",
740
+ /** denyAssignments are not supported on resources outside the scope of the deployment stack. */
741
+ Inapplicable = "inapplicable",
742
+ /** Authorized users can only read from a resource, but cannot modify or delete it. */
743
+ DenyWriteAndDelete = "denyWriteAndDelete",
744
+ /** Deny assignment has been removed by Azure due to a resource management change (management group move, etc.) */
745
+ RemovedBySystem = "removedBySystem",
746
+ /** No denyAssignments have been applied. */
747
+ None = "None"
748
+ }
749
+
750
+ /** Known values of {@link DeploymentStackProvisioningState} that the service accepts. */
751
+ export declare enum KnownDeploymentStackProvisioningState {
752
+ /** Creating */
753
+ Creating = "Creating",
754
+ /** Validating */
755
+ Validating = "Validating",
756
+ /** Waiting */
757
+ Waiting = "Waiting",
758
+ /** Deploying */
759
+ Deploying = "Deploying",
760
+ /** Canceling */
761
+ Canceling = "Canceling",
762
+ /** Locking */
763
+ Locking = "Locking",
764
+ /** DeletingResources */
765
+ DeletingResources = "DeletingResources",
766
+ /** Succeeded */
767
+ Succeeded = "Succeeded",
768
+ /** Failed */
769
+ Failed = "Failed",
770
+ /** Canceled */
771
+ Canceled = "Canceled",
772
+ /** Deleting */
773
+ Deleting = "Deleting"
774
+ }
775
+
776
+ /** Known values of {@link DeploymentStacksDeleteDetachEnum} that the service accepts. */
777
+ export declare enum KnownDeploymentStacksDeleteDetachEnum {
778
+ /** Delete */
779
+ Delete = "delete",
780
+ /** Detach */
781
+ Detach = "detach"
782
+ }
783
+
784
+ /** Known values of {@link ResourceStatusMode} that the service accepts. */
785
+ export declare enum KnownResourceStatusMode {
786
+ /** This resource is managed by the deployment stack. */
787
+ Managed = "Managed",
788
+ /** Unable to remove the deny assignment on resource. */
789
+ RemoveDenyFailed = "removeDenyFailed",
790
+ /** Unable to delete the resource from Azure. The delete will be retried on the next stack deployment, or can be deleted manually. */
791
+ DeleteFailed = "deleteFailed",
792
+ /** No denyAssignments have been applied. */
793
+ None = "None"
794
+ }
795
+
796
+ /** Known values of {@link UnmanageActionManagementGroupMode} that the service accepts. */
797
+ export declare enum KnownUnmanageActionManagementGroupMode {
798
+ /** Delete */
799
+ Delete = "delete",
800
+ /** Detach */
801
+ Detach = "detach"
802
+ }
803
+
804
+ /** Known values of {@link UnmanageActionResourceGroupMode} that the service accepts. */
805
+ export declare enum KnownUnmanageActionResourceGroupMode {
806
+ /** Delete */
807
+ Delete = "delete",
808
+ /** Detach */
809
+ Detach = "detach"
810
+ }
811
+
812
+ /** Known values of {@link UnmanageActionResourceMode} that the service accepts. */
813
+ export declare enum KnownUnmanageActionResourceMode {
814
+ /** Delete */
815
+ Delete = "delete",
816
+ /** Detach */
817
+ Detach = "detach"
818
+ }
819
+
820
+ /** The managed resource model. */
821
+ export declare interface ManagedResourceReference extends ResourceReference {
822
+ /** Current management state of the resource in the deployment stack. */
823
+ status?: ResourceStatusMode;
824
+ /** denyAssignment settings applied to the resource. */
825
+ denyStatus?: DenyStatusMode;
826
+ }
827
+
828
+ /** The resource Id model. */
829
+ export declare interface ResourceReference {
830
+ /**
831
+ * The resourceId of a resource managed by the deployment stack.
832
+ * NOTE: This property will not be serialized. It can only be populated by the server.
833
+ */
834
+ readonly id?: string;
835
+ }
836
+
837
+ /** The resource Id extended model. */
838
+ export declare interface ResourceReferenceExtended extends ResourceReference, DeploymentStacksError {
839
+ }
840
+
841
+ /**
842
+ * Defines values for ResourceStatusMode. \
843
+ * {@link KnownResourceStatusMode} can be used interchangeably with ResourceStatusMode,
844
+ * this enum contains the known values that the service supports.
845
+ * ### Known values supported by the service
846
+ * **Managed**: This resource is managed by the deployment stack. \
847
+ * **removeDenyFailed**: Unable to remove the deny assignment on resource. \
848
+ * **deleteFailed**: Unable to delete the resource from Azure. The delete will be retried on the next stack deployment, or can be deleted manually. \
849
+ * **None**: No denyAssignments have been applied.
850
+ */
851
+ export declare type ResourceStatusMode = string;
852
+
853
+ /** Metadata pertaining to creation and last modification of the resource. */
854
+ export declare interface SystemData {
855
+ /** The identity that created the resource. */
856
+ createdBy?: string;
857
+ /** The type of identity that created the resource. */
858
+ createdByType?: CreatedByType;
859
+ /** The timestamp of resource creation (UTC). */
860
+ createdAt?: Date;
861
+ /** The identity that last modified the resource. */
862
+ lastModifiedBy?: string;
863
+ /** The type of identity that last modified the resource. */
864
+ lastModifiedByType?: CreatedByType;
865
+ /** The timestamp of resource last modification (UTC) */
866
+ lastModifiedAt?: Date;
867
+ }
868
+
869
+ /**
870
+ * Defines values for UnmanageActionManagementGroupMode. \
871
+ * {@link KnownUnmanageActionManagementGroupMode} can be used interchangeably with UnmanageActionManagementGroupMode,
872
+ * this enum contains the known values that the service supports.
873
+ * ### Known values supported by the service
874
+ * **delete** \
875
+ * **detach**
876
+ */
877
+ export declare type UnmanageActionManagementGroupMode = string;
878
+
879
+ /**
880
+ * Defines values for UnmanageActionResourceGroupMode. \
881
+ * {@link KnownUnmanageActionResourceGroupMode} can be used interchangeably with UnmanageActionResourceGroupMode,
882
+ * this enum contains the known values that the service supports.
883
+ * ### Known values supported by the service
884
+ * **delete** \
885
+ * **detach**
886
+ */
887
+ export declare type UnmanageActionResourceGroupMode = string;
888
+
889
+ /**
890
+ * Defines values for UnmanageActionResourceMode. \
891
+ * {@link KnownUnmanageActionResourceMode} can be used interchangeably with UnmanageActionResourceMode,
892
+ * this enum contains the known values that the service supports.
893
+ * ### Known values supported by the service
894
+ * **delete** \
895
+ * **detach**
896
+ */
897
+ export declare type UnmanageActionResourceMode = string;
898
+
899
+ export { }