@azure/arm-managementgroups 1.1.0 → 2.0.0-alpha.20211214.2

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 (181) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +78 -77
  4. package/dist/index.js +2881 -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/src/index.d.ts +6 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +13 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/managementGroupsAPI.d.ts +34 -0
  17. package/dist-esm/src/managementGroupsAPI.d.ts.map +1 -0
  18. package/dist-esm/src/managementGroupsAPI.js +102 -0
  19. package/dist-esm/src/managementGroupsAPI.js.map +1 -0
  20. package/dist-esm/src/managementGroupsAPIContext.d.ts +14 -0
  21. package/dist-esm/src/managementGroupsAPIContext.d.ts.map +1 -0
  22. package/dist-esm/src/managementGroupsAPIContext.js +43 -0
  23. package/dist-esm/src/managementGroupsAPIContext.js.map +1 -0
  24. package/dist-esm/src/models/index.d.ts +956 -0
  25. package/dist-esm/src/models/index.d.ts.map +1 -0
  26. package/dist-esm/src/models/index.js +46 -0
  27. package/dist-esm/src/models/index.js.map +1 -0
  28. package/dist-esm/src/models/mappers.d.ts +39 -0
  29. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  30. package/{esm → dist-esm/src}/models/mappers.js +776 -396
  31. package/dist-esm/src/models/mappers.js.map +1 -0
  32. package/dist-esm/src/models/parameters.d.ts +24 -0
  33. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  34. package/dist-esm/src/models/parameters.js +200 -0
  35. package/dist-esm/src/models/parameters.js.map +1 -0
  36. package/dist-esm/src/operations/entities.d.ts +34 -0
  37. package/dist-esm/src/operations/entities.d.ts.map +1 -0
  38. package/dist-esm/src/operations/entities.js +142 -0
  39. package/dist-esm/src/operations/entities.js.map +1 -0
  40. package/dist-esm/src/operations/hierarchySettingsOperations.d.ts +52 -0
  41. package/dist-esm/src/operations/hierarchySettingsOperations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/hierarchySettingsOperations.js +154 -0
  43. package/dist-esm/src/operations/hierarchySettingsOperations.js.map +1 -0
  44. package/{esm → dist-esm/src}/operations/index.d.ts +1 -0
  45. package/dist-esm/src/operations/index.d.ts.map +1 -0
  46. package/{esm → dist-esm/src}/operations/index.js +4 -5
  47. package/dist-esm/src/operations/index.js.map +1 -0
  48. package/dist-esm/src/operations/managementGroupSubscriptions.d.ts +62 -0
  49. package/dist-esm/src/operations/managementGroupSubscriptions.d.ts.map +1 -0
  50. package/dist-esm/src/operations/managementGroupSubscriptions.js +215 -0
  51. package/dist-esm/src/operations/managementGroupSubscriptions.js.map +1 -0
  52. package/dist-esm/src/operations/managementGroups.d.ts +109 -0
  53. package/dist-esm/src/operations/managementGroups.d.ts.map +1 -0
  54. package/dist-esm/src/operations/managementGroups.js +462 -0
  55. package/dist-esm/src/operations/managementGroups.js.map +1 -0
  56. package/dist-esm/src/operations/operations.d.ts +32 -0
  57. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  58. package/dist-esm/src/operations/operations.js +120 -0
  59. package/dist-esm/src/operations/operations.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/entities.d.ts +12 -0
  61. package/dist-esm/src/operationsInterfaces/entities.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/entities.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/entities.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/hierarchySettingsOperations.d.ts +44 -0
  65. package/dist-esm/src/operationsInterfaces/hierarchySettingsOperations.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/hierarchySettingsOperations.js +9 -0
  67. package/dist-esm/src/operationsInterfaces/hierarchySettingsOperations.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  69. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  71. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/managementGroupSubscriptions.d.ts +37 -0
  73. package/dist-esm/src/operationsInterfaces/managementGroupSubscriptions.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/managementGroupSubscriptions.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/managementGroupSubscriptions.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/managementGroups.d.ts +71 -0
  77. package/dist-esm/src/operationsInterfaces/managementGroups.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/managementGroups.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/managementGroups.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  81. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  84. package/dist-esm/test/sampleTest.d.ts +2 -0
  85. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  86. package/dist-esm/test/sampleTest.js +40 -0
  87. package/dist-esm/test/sampleTest.js.map +1 -0
  88. package/package.json +71 -25
  89. package/review/arm-managementgroups.api.md +667 -0
  90. package/rollup.config.js +184 -27
  91. package/src/index.ts +13 -0
  92. package/src/lroImpl.ts +34 -0
  93. package/src/managementGroupsAPI.ts +160 -0
  94. package/src/managementGroupsAPIContext.ts +62 -0
  95. package/src/models/index.ts +1082 -0
  96. package/{lib → src}/models/mappers.ts +792 -400
  97. package/src/models/parameters.ts +232 -0
  98. package/src/operations/entities.ts +159 -0
  99. package/src/operations/hierarchySettingsOperations.ts +214 -0
  100. package/{lib → src}/operations/index.ts +4 -5
  101. package/src/operations/managementGroupSubscriptions.ts +294 -0
  102. package/src/operations/managementGroups.ts +592 -0
  103. package/src/operations/operations.ts +137 -0
  104. package/src/operationsInterfaces/entities.ts +23 -0
  105. package/src/operationsInterfaces/hierarchySettingsOperations.ts +80 -0
  106. package/src/operationsInterfaces/index.ts +13 -0
  107. package/src/operationsInterfaces/managementGroupSubscriptions.ts +69 -0
  108. package/src/operationsInterfaces/managementGroups.ts +131 -0
  109. package/src/operationsInterfaces/operations.ts +22 -0
  110. package/tsconfig.json +4 -4
  111. package/types/arm-managementgroups.d.ts +1266 -0
  112. package/types/tsdoc-metadata.json +11 -0
  113. package/dist/arm-managementgroups.js +0 -2007
  114. package/dist/arm-managementgroups.js.map +0 -1
  115. package/dist/arm-managementgroups.min.js +0 -1
  116. package/dist/arm-managementgroups.min.js.map +0 -1
  117. package/esm/managementGroupsAPI.d.ts +0 -68
  118. package/esm/managementGroupsAPI.d.ts.map +0 -1
  119. package/esm/managementGroupsAPI.js +0 -115
  120. package/esm/managementGroupsAPI.js.map +0 -1
  121. package/esm/managementGroupsAPIContext.d.ts +0 -14
  122. package/esm/managementGroupsAPIContext.d.ts.map +0 -1
  123. package/esm/managementGroupsAPIContext.js +0 -51
  124. package/esm/managementGroupsAPIContext.js.map +0 -1
  125. package/esm/models/entitiesMappers.d.ts +0 -2
  126. package/esm/models/entitiesMappers.d.ts.map +0 -1
  127. package/esm/models/entitiesMappers.js +0 -11
  128. package/esm/models/entitiesMappers.js.map +0 -1
  129. package/esm/models/index.d.ts +0 -1390
  130. package/esm/models/index.d.ts.map +0 -1
  131. package/esm/models/index.js +0 -10
  132. package/esm/models/index.js.map +0 -1
  133. package/esm/models/managementGroupSubscriptionsMappers.d.ts +0 -2
  134. package/esm/models/managementGroupSubscriptionsMappers.d.ts.map +0 -1
  135. package/esm/models/managementGroupSubscriptionsMappers.js +0 -11
  136. package/esm/models/managementGroupSubscriptionsMappers.js.map +0 -1
  137. package/esm/models/managementGroupsMappers.d.ts +0 -2
  138. package/esm/models/managementGroupsMappers.d.ts.map +0 -1
  139. package/esm/models/managementGroupsMappers.js +0 -11
  140. package/esm/models/managementGroupsMappers.js.map +0 -1
  141. package/esm/models/mappers.d.ts +0 -28
  142. package/esm/models/mappers.d.ts.map +0 -1
  143. package/esm/models/mappers.js.map +0 -1
  144. package/esm/models/operationsMappers.d.ts +0 -2
  145. package/esm/models/operationsMappers.d.ts.map +0 -1
  146. package/esm/models/operationsMappers.js +0 -11
  147. package/esm/models/operationsMappers.js.map +0 -1
  148. package/esm/models/parameters.d.ts +0 -18
  149. package/esm/models/parameters.d.ts.map +0 -1
  150. package/esm/models/parameters.js +0 -194
  151. package/esm/models/parameters.js.map +0 -1
  152. package/esm/operations/entities.d.ts +0 -46
  153. package/esm/operations/entities.d.ts.map +0 -1
  154. package/esm/operations/entities.js +0 -87
  155. package/esm/operations/entities.js.map +0 -1
  156. package/esm/operations/index.d.ts.map +0 -1
  157. package/esm/operations/index.js.map +0 -1
  158. package/esm/operations/managementGroupSubscriptions.d.ts +0 -55
  159. package/esm/operations/managementGroupSubscriptions.d.ts.map +0 -1
  160. package/esm/operations/managementGroupSubscriptions.js +0 -85
  161. package/esm/operations/managementGroupSubscriptions.js.map +0 -1
  162. package/esm/operations/managementGroups.d.ts +0 -120
  163. package/esm/operations/managementGroups.d.ts.map +0 -1
  164. package/esm/operations/managementGroups.js +0 -252
  165. package/esm/operations/managementGroups.js.map +0 -1
  166. package/esm/operations/operations.d.ts +0 -46
  167. package/esm/operations/operations.d.ts.map +0 -1
  168. package/esm/operations/operations.js +0 -77
  169. package/esm/operations/operations.js.map +0 -1
  170. package/lib/managementGroupsAPI.ts +0 -191
  171. package/lib/managementGroupsAPIContext.ts +0 -56
  172. package/lib/models/entitiesMappers.ts +0 -18
  173. package/lib/models/index.ts +0 -1466
  174. package/lib/models/managementGroupSubscriptionsMappers.ts +0 -15
  175. package/lib/models/managementGroupsMappers.ts +0 -29
  176. package/lib/models/operationsMappers.ts +0 -18
  177. package/lib/models/parameters.ts +0 -196
  178. package/lib/operations/entities.ts +0 -133
  179. package/lib/operations/managementGroupSubscriptions.ts +0 -140
  180. package/lib/operations/managementGroups.ts +0 -365
  181. package/lib/operations/operations.ts +0 -123
@@ -0,0 +1,1082 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import * as coreClient from "@azure/core-client";
10
+
11
+ /** Describes the result of the request to list management groups. */
12
+ export interface ManagementGroupListResult {
13
+ /** The list of management groups. */
14
+ value?: ManagementGroupInfo[];
15
+ /**
16
+ * The URL to use for getting the next set of results.
17
+ * NOTE: This property will not be serialized. It can only be populated by the server.
18
+ */
19
+ readonly nextLink?: string;
20
+ }
21
+
22
+ /** The management group resource. */
23
+ export interface ManagementGroupInfo {
24
+ /**
25
+ * The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
26
+ * NOTE: This property will not be serialized. It can only be populated by the server.
27
+ */
28
+ readonly id?: string;
29
+ /**
30
+ * The type of the resource. For example, Microsoft.Management/managementGroups
31
+ * NOTE: This property will not be serialized. It can only be populated by the server.
32
+ */
33
+ readonly type?: string;
34
+ /**
35
+ * The name of the management group. For example, 00000000-0000-0000-0000-000000000000
36
+ * NOTE: This property will not be serialized. It can only be populated by the server.
37
+ */
38
+ readonly name?: string;
39
+ /** The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000 */
40
+ tenantId?: string;
41
+ /** The friendly name of the management group. */
42
+ displayName?: string;
43
+ }
44
+
45
+ /** The error object. */
46
+ export interface ErrorResponse {
47
+ /** The details of the error. */
48
+ error?: ErrorDetails;
49
+ }
50
+
51
+ /** The details of the error. */
52
+ export interface ErrorDetails {
53
+ /** One of a server-defined set of error codes. */
54
+ code?: string;
55
+ /** A human-readable representation of the error. */
56
+ message?: string;
57
+ /** A human-readable representation of the error's details. */
58
+ details?: string;
59
+ }
60
+
61
+ /** The management group details. */
62
+ export interface ManagementGroup {
63
+ /**
64
+ * The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
65
+ * NOTE: This property will not be serialized. It can only be populated by the server.
66
+ */
67
+ readonly id?: string;
68
+ /**
69
+ * The type of the resource. For example, Microsoft.Management/managementGroups
70
+ * NOTE: This property will not be serialized. It can only be populated by the server.
71
+ */
72
+ readonly type?: string;
73
+ /**
74
+ * The name of the management group. For example, 00000000-0000-0000-0000-000000000000
75
+ * NOTE: This property will not be serialized. It can only be populated by the server.
76
+ */
77
+ readonly name?: string;
78
+ /** The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000 */
79
+ tenantId?: string;
80
+ /** The friendly name of the management group. */
81
+ displayName?: string;
82
+ /** The details of a management group. */
83
+ details?: ManagementGroupDetails;
84
+ /** The list of children. */
85
+ children?: ManagementGroupChildInfo[];
86
+ }
87
+
88
+ /** The details of a management group. */
89
+ export interface ManagementGroupDetails {
90
+ /** The version number of the object. */
91
+ version?: number;
92
+ /** The date and time when this object was last updated. */
93
+ updatedTime?: Date;
94
+ /** The identity of the principal or process that updated the object. */
95
+ updatedBy?: string;
96
+ /** (Optional) The ID of the parent management group. */
97
+ parent?: ParentGroupInfo;
98
+ /** The path from the root to the current group. */
99
+ path?: ManagementGroupPathElement[];
100
+ /** The ancestors of the management group. */
101
+ managementGroupAncestors?: string[];
102
+ /** The ancestors of the management group displayed in reversed order, from immediate parent to the root. */
103
+ managementGroupAncestorsChain?: ManagementGroupPathElement[];
104
+ }
105
+
106
+ /** (Optional) The ID of the parent management group. */
107
+ export interface ParentGroupInfo {
108
+ /** The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 */
109
+ id?: string;
110
+ /** The name of the parent management group */
111
+ name?: string;
112
+ /** The friendly name of the parent management group. */
113
+ displayName?: string;
114
+ }
115
+
116
+ /** A path element of a management group ancestors. */
117
+ export interface ManagementGroupPathElement {
118
+ /** The name of the group. */
119
+ name?: string;
120
+ /** The friendly name of the group. */
121
+ displayName?: string;
122
+ }
123
+
124
+ /** The child information of a management group. */
125
+ export interface ManagementGroupChildInfo {
126
+ /** The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups) */
127
+ type?: ManagementGroupChildType;
128
+ /** The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 */
129
+ id?: string;
130
+ /** The name of the child entity. */
131
+ name?: string;
132
+ /** The friendly name of the child resource. */
133
+ displayName?: string;
134
+ /** The list of children. */
135
+ children?: ManagementGroupChildInfo[];
136
+ }
137
+
138
+ /** Management group creation parameters. */
139
+ export interface CreateManagementGroupRequest {
140
+ /**
141
+ * The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
142
+ * NOTE: This property will not be serialized. It can only be populated by the server.
143
+ */
144
+ readonly id?: string;
145
+ /**
146
+ * The type of the resource. For example, Microsoft.Management/managementGroups
147
+ * NOTE: This property will not be serialized. It can only be populated by the server.
148
+ */
149
+ readonly type?: string;
150
+ /** The name of the management group. For example, 00000000-0000-0000-0000-000000000000 */
151
+ name?: string;
152
+ /**
153
+ * The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000
154
+ * NOTE: This property will not be serialized. It can only be populated by the server.
155
+ */
156
+ readonly tenantId?: string;
157
+ /** The friendly name of the management group. If no value is passed then this field will be set to the groupId. */
158
+ displayName?: string;
159
+ /** The details of a management group used during creation. */
160
+ details?: CreateManagementGroupDetails;
161
+ /**
162
+ * The list of children.
163
+ * NOTE: This property will not be serialized. It can only be populated by the server.
164
+ */
165
+ readonly children?: CreateManagementGroupChildInfo[];
166
+ }
167
+
168
+ /** The details of a management group used during creation. */
169
+ export interface CreateManagementGroupDetails {
170
+ /**
171
+ * The version number of the object.
172
+ * NOTE: This property will not be serialized. It can only be populated by the server.
173
+ */
174
+ readonly version?: number;
175
+ /**
176
+ * The date and time when this object was last updated.
177
+ * NOTE: This property will not be serialized. It can only be populated by the server.
178
+ */
179
+ readonly updatedTime?: Date;
180
+ /**
181
+ * The identity of the principal or process that updated the object.
182
+ * NOTE: This property will not be serialized. It can only be populated by the server.
183
+ */
184
+ readonly updatedBy?: string;
185
+ /** (Optional) The ID of the parent management group used during creation. */
186
+ parent?: CreateParentGroupInfo;
187
+ }
188
+
189
+ /** (Optional) The ID of the parent management group used during creation. */
190
+ export interface CreateParentGroupInfo {
191
+ /** The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 */
192
+ id?: string;
193
+ /**
194
+ * The name of the parent management group
195
+ * NOTE: This property will not be serialized. It can only be populated by the server.
196
+ */
197
+ readonly name?: string;
198
+ /**
199
+ * The friendly name of the parent management group.
200
+ * NOTE: This property will not be serialized. It can only be populated by the server.
201
+ */
202
+ readonly displayName?: string;
203
+ }
204
+
205
+ /** The child information of a management group used during creation. */
206
+ export interface CreateManagementGroupChildInfo {
207
+ /**
208
+ * The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups)
209
+ * NOTE: This property will not be serialized. It can only be populated by the server.
210
+ */
211
+ readonly type?: ManagementGroupChildType;
212
+ /**
213
+ * The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
214
+ * NOTE: This property will not be serialized. It can only be populated by the server.
215
+ */
216
+ readonly id?: string;
217
+ /**
218
+ * The name of the child entity.
219
+ * NOTE: This property will not be serialized. It can only be populated by the server.
220
+ */
221
+ readonly name?: string;
222
+ /**
223
+ * The friendly name of the child resource.
224
+ * NOTE: This property will not be serialized. It can only be populated by the server.
225
+ */
226
+ readonly displayName?: string;
227
+ /**
228
+ * The list of children.
229
+ * NOTE: This property will not be serialized. It can only be populated by the server.
230
+ */
231
+ readonly children?: CreateManagementGroupChildInfo[];
232
+ }
233
+
234
+ /** The results of Azure-AsyncOperation. */
235
+ export interface AzureAsyncOperationResults {
236
+ /**
237
+ * The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
238
+ * NOTE: This property will not be serialized. It can only be populated by the server.
239
+ */
240
+ readonly id?: string;
241
+ /**
242
+ * The type of the resource. For example, Microsoft.Management/managementGroups
243
+ * NOTE: This property will not be serialized. It can only be populated by the server.
244
+ */
245
+ readonly type?: string;
246
+ /**
247
+ * The name of the management group. For example, 00000000-0000-0000-0000-000000000000
248
+ * NOTE: This property will not be serialized. It can only be populated by the server.
249
+ */
250
+ readonly name?: string;
251
+ /**
252
+ * The current status of the asynchronous operation performed . For example, Running, Succeeded, Failed
253
+ * NOTE: This property will not be serialized. It can only be populated by the server.
254
+ */
255
+ readonly status?: string;
256
+ /** The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000 */
257
+ tenantId?: string;
258
+ /** The friendly name of the management group. */
259
+ displayName?: string;
260
+ }
261
+
262
+ /** Management group patch parameters. */
263
+ export interface PatchManagementGroupRequest {
264
+ /** The friendly name of the management group. */
265
+ displayName?: string;
266
+ /** (Optional) The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 */
267
+ parentGroupId?: string;
268
+ }
269
+
270
+ /** Describes the result of the request to view descendants. */
271
+ export interface DescendantListResult {
272
+ /** The list of descendants. */
273
+ value?: DescendantInfo[];
274
+ /**
275
+ * The URL to use for getting the next set of results.
276
+ * NOTE: This property will not be serialized. It can only be populated by the server.
277
+ */
278
+ readonly nextLink?: string;
279
+ }
280
+
281
+ /** The descendant. */
282
+ export interface DescendantInfo {
283
+ /**
284
+ * The fully qualified ID for the descendant. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 or /subscriptions/0000000-0000-0000-0000-000000000000
285
+ * NOTE: This property will not be serialized. It can only be populated by the server.
286
+ */
287
+ readonly id?: string;
288
+ /**
289
+ * The type of the resource. For example, Microsoft.Management/managementGroups or /subscriptions
290
+ * NOTE: This property will not be serialized. It can only be populated by the server.
291
+ */
292
+ readonly type?: string;
293
+ /**
294
+ * The name of the descendant. For example, 00000000-0000-0000-0000-000000000000
295
+ * NOTE: This property will not be serialized. It can only be populated by the server.
296
+ */
297
+ readonly name?: string;
298
+ /** The friendly name of the management group. */
299
+ displayName?: string;
300
+ /** The ID of the parent management group. */
301
+ parent?: DescendantParentGroupInfo;
302
+ }
303
+
304
+ /** The ID of the parent management group. */
305
+ export interface DescendantParentGroupInfo {
306
+ /** The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 */
307
+ id?: string;
308
+ }
309
+
310
+ /** The details of subscription under management group. */
311
+ export interface SubscriptionUnderManagementGroup {
312
+ /**
313
+ * The fully qualified ID for the subscription. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/subscriptions/0000000-0000-0000-0000-000000000001
314
+ * NOTE: This property will not be serialized. It can only be populated by the server.
315
+ */
316
+ readonly id?: string;
317
+ /**
318
+ * The type of the resource. For example, Microsoft.Management/managementGroups/subscriptions
319
+ * NOTE: This property will not be serialized. It can only be populated by the server.
320
+ */
321
+ readonly type?: string;
322
+ /**
323
+ * The stringified id of the subscription. For example, 00000000-0000-0000-0000-000000000000
324
+ * NOTE: This property will not be serialized. It can only be populated by the server.
325
+ */
326
+ readonly name?: string;
327
+ /** The AAD Tenant ID associated with the subscription. For example, 00000000-0000-0000-0000-000000000000 */
328
+ tenant?: string;
329
+ /** The friendly name of the subscription. */
330
+ displayName?: string;
331
+ /** The ID of the parent management group. */
332
+ parent?: DescendantParentGroupInfo;
333
+ /** The state of the subscription. */
334
+ state?: string;
335
+ }
336
+
337
+ /** The details of all subscriptions under management group. */
338
+ export interface ListSubscriptionUnderManagementGroup {
339
+ /** The list of subscriptions. */
340
+ value?: SubscriptionUnderManagementGroup[];
341
+ /**
342
+ * The URL to use for getting the next set of results.
343
+ * NOTE: This property will not be serialized. It can only be populated by the server.
344
+ */
345
+ readonly nextLink?: string;
346
+ }
347
+
348
+ /** Lists all hierarchy settings. */
349
+ export interface HierarchySettingsList {
350
+ /** The list of hierarchy settings. */
351
+ value?: HierarchySettingsInfo[];
352
+ /**
353
+ * The URL to use for getting the next set of results.
354
+ * NOTE: This property will not be serialized. It can only be populated by the server.
355
+ */
356
+ readonly nextLink?: string;
357
+ }
358
+
359
+ /** The hierarchy settings resource. */
360
+ export interface HierarchySettingsInfo {
361
+ /**
362
+ * The fully qualified ID for the settings object. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/settings/default.
363
+ * NOTE: This property will not be serialized. It can only be populated by the server.
364
+ */
365
+ readonly id?: string;
366
+ /**
367
+ * The type of the resource. For example, Microsoft.Management/managementGroups/settings.
368
+ * NOTE: This property will not be serialized. It can only be populated by the server.
369
+ */
370
+ readonly type?: string;
371
+ /**
372
+ * The name of the object. In this case, default.
373
+ * NOTE: This property will not be serialized. It can only be populated by the server.
374
+ */
375
+ readonly name?: string;
376
+ /** The AAD Tenant ID associated with the hierarchy settings. For example, 00000000-0000-0000-0000-000000000000 */
377
+ tenantId?: string;
378
+ /** Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access. */
379
+ requireAuthorizationForGroupCreation?: boolean;
380
+ /** Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup */
381
+ defaultManagementGroup?: string;
382
+ }
383
+
384
+ /** Settings defined at the Management Group scope. */
385
+ export interface HierarchySettings {
386
+ /**
387
+ * The fully qualified ID for the settings object. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/settings/default.
388
+ * NOTE: This property will not be serialized. It can only be populated by the server.
389
+ */
390
+ readonly id?: string;
391
+ /**
392
+ * The type of the resource. For example, Microsoft.Management/managementGroups/settings.
393
+ * NOTE: This property will not be serialized. It can only be populated by the server.
394
+ */
395
+ readonly type?: string;
396
+ /**
397
+ * The name of the object. In this case, default.
398
+ * NOTE: This property will not be serialized. It can only be populated by the server.
399
+ */
400
+ readonly name?: string;
401
+ /** The AAD Tenant ID associated with the hierarchy settings. For example, 00000000-0000-0000-0000-000000000000 */
402
+ tenantId?: string;
403
+ /** Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access. */
404
+ requireAuthorizationForGroupCreation?: boolean;
405
+ /** Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup */
406
+ defaultManagementGroup?: string;
407
+ }
408
+
409
+ /** Parameters for creating or updating Management Group settings */
410
+ export interface CreateOrUpdateSettingsRequest {
411
+ /** Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access. */
412
+ requireAuthorizationForGroupCreation?: boolean;
413
+ /** Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup */
414
+ defaultManagementGroup?: string;
415
+ }
416
+
417
+ /** Describes the result of the request to list Microsoft.Management operations. */
418
+ export interface OperationListResult {
419
+ /**
420
+ * List of operations supported by the Microsoft.Management resource provider.
421
+ * NOTE: This property will not be serialized. It can only be populated by the server.
422
+ */
423
+ readonly value?: Operation[];
424
+ /**
425
+ * URL to get the next set of operation list results if there are any.
426
+ * NOTE: This property will not be serialized. It can only be populated by the server.
427
+ */
428
+ readonly nextLink?: string;
429
+ }
430
+
431
+ /** Operation supported by the Microsoft.Management resource provider. */
432
+ export interface Operation {
433
+ /**
434
+ * Operation name: {provider}/{resource}/{operation}.
435
+ * NOTE: This property will not be serialized. It can only be populated by the server.
436
+ */
437
+ readonly name?: string;
438
+ /** The object that represents the operation. */
439
+ display?: OperationDisplayProperties;
440
+ }
441
+
442
+ /** The object that represents the operation. */
443
+ export interface OperationDisplayProperties {
444
+ /**
445
+ * The name of the provider.
446
+ * NOTE: This property will not be serialized. It can only be populated by the server.
447
+ */
448
+ readonly provider?: string;
449
+ /**
450
+ * The resource on which the operation is performed.
451
+ * NOTE: This property will not be serialized. It can only be populated by the server.
452
+ */
453
+ readonly resource?: string;
454
+ /**
455
+ * The operation that can be performed.
456
+ * NOTE: This property will not be serialized. It can only be populated by the server.
457
+ */
458
+ readonly operation?: string;
459
+ /**
460
+ * Operation description.
461
+ * NOTE: This property will not be serialized. It can only be populated by the server.
462
+ */
463
+ readonly description?: string;
464
+ }
465
+
466
+ /** Management group name availability check parameters. */
467
+ export interface CheckNameAvailabilityRequest {
468
+ /** the name to check for availability */
469
+ name?: string;
470
+ /** fully qualified resource type which includes provider namespace */
471
+ type?: "Microsoft.Management/managementGroups";
472
+ }
473
+
474
+ /** Describes the result of the request to check management group name availability. */
475
+ export interface CheckNameAvailabilityResult {
476
+ /**
477
+ * Required. True indicates name is valid and available. False indicates the name is invalid, unavailable, or both.
478
+ * NOTE: This property will not be serialized. It can only be populated by the server.
479
+ */
480
+ readonly nameAvailable?: boolean;
481
+ /**
482
+ * Required if nameAvailable == false. Invalid indicates the name provided does not match the resource provider's naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable.
483
+ * NOTE: This property will not be serialized. It can only be populated by the server.
484
+ */
485
+ readonly reason?: Reason;
486
+ /**
487
+ * Required if nameAvailable == false. Localized. If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that is already in use, and direct them to select a different name.
488
+ * NOTE: This property will not be serialized. It can only be populated by the server.
489
+ */
490
+ readonly message?: string;
491
+ }
492
+
493
+ /** Describes the result of the request to view entities. */
494
+ export interface EntityListResult {
495
+ /** The list of entities. */
496
+ value?: EntityInfo[];
497
+ /**
498
+ * Total count of records that match the filter
499
+ * NOTE: This property will not be serialized. It can only be populated by the server.
500
+ */
501
+ readonly count?: number;
502
+ /**
503
+ * The URL to use for getting the next set of results.
504
+ * NOTE: This property will not be serialized. It can only be populated by the server.
505
+ */
506
+ readonly nextLink?: string;
507
+ }
508
+
509
+ /** The entity. */
510
+ export interface EntityInfo {
511
+ /**
512
+ * The fully qualified ID for the entity. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
513
+ * NOTE: This property will not be serialized. It can only be populated by the server.
514
+ */
515
+ readonly id?: string;
516
+ /**
517
+ * The type of the resource. For example, Microsoft.Management/managementGroups
518
+ * NOTE: This property will not be serialized. It can only be populated by the server.
519
+ */
520
+ readonly type?: string;
521
+ /**
522
+ * The name of the entity. For example, 00000000-0000-0000-0000-000000000000
523
+ * NOTE: This property will not be serialized. It can only be populated by the server.
524
+ */
525
+ readonly name?: string;
526
+ /** The AAD Tenant ID associated with the entity. For example, 00000000-0000-0000-0000-000000000000 */
527
+ tenantId?: string;
528
+ /** The friendly name of the management group. */
529
+ displayName?: string;
530
+ /** (Optional) The ID of the parent management group. */
531
+ parent?: EntityParentGroupInfo;
532
+ /** The users specific permissions to this item. */
533
+ permissions?: Permissions;
534
+ /** The users specific permissions to this item. */
535
+ inheritedPermissions?: Permissions;
536
+ /** Number of Descendants */
537
+ numberOfDescendants?: number;
538
+ /** Number of children is the number of Groups and Subscriptions that are exactly one level underneath the current Group. */
539
+ numberOfChildren?: number;
540
+ /** Number of children is the number of Groups that are exactly one level underneath the current Group. */
541
+ numberOfChildGroups?: number;
542
+ /** The parent display name chain from the root group to the immediate parent */
543
+ parentDisplayNameChain?: string[];
544
+ /** The parent name chain from the root group to the immediate parent */
545
+ parentNameChain?: string[];
546
+ }
547
+
548
+ /** (Optional) The ID of the parent management group. */
549
+ export interface EntityParentGroupInfo {
550
+ /** The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 */
551
+ id?: string;
552
+ }
553
+
554
+ /** The tenant backfill status */
555
+ export interface TenantBackfillStatusResult {
556
+ /**
557
+ * The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000
558
+ * NOTE: This property will not be serialized. It can only be populated by the server.
559
+ */
560
+ readonly tenantId?: string;
561
+ /**
562
+ * The status of the Tenant Backfill
563
+ * NOTE: This property will not be serialized. It can only be populated by the server.
564
+ */
565
+ readonly status?: Status;
566
+ }
567
+
568
+ /** The results of an asynchronous operation. */
569
+ export interface OperationResults {
570
+ /**
571
+ * The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
572
+ * NOTE: This property will not be serialized. It can only be populated by the server.
573
+ */
574
+ readonly id?: string;
575
+ /**
576
+ * The type of the resource. For example, Microsoft.Management/managementGroups
577
+ * NOTE: This property will not be serialized. It can only be populated by the server.
578
+ */
579
+ readonly type?: string;
580
+ /**
581
+ * The name of the management group. For example, 00000000-0000-0000-0000-000000000000
582
+ * NOTE: This property will not be serialized. It can only be populated by the server.
583
+ */
584
+ readonly name?: string;
585
+ /** The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000 */
586
+ tenantId?: string;
587
+ /** The friendly name of the management group. */
588
+ displayName?: string;
589
+ }
590
+
591
+ /** The management group details for the hierarchy view. */
592
+ export interface EntityHierarchyItem {
593
+ /**
594
+ * The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
595
+ * NOTE: This property will not be serialized. It can only be populated by the server.
596
+ */
597
+ readonly id?: string;
598
+ /**
599
+ * The type of the resource. For example, Microsoft.Management/managementGroups
600
+ * NOTE: This property will not be serialized. It can only be populated by the server.
601
+ */
602
+ readonly type?: string;
603
+ /**
604
+ * The name of the management group. For example, 00000000-0000-0000-0000-000000000000
605
+ * NOTE: This property will not be serialized. It can only be populated by the server.
606
+ */
607
+ readonly name?: string;
608
+ /** The friendly name of the management group. */
609
+ displayName?: string;
610
+ /** The users specific permissions to this item. */
611
+ permissions?: Permissions;
612
+ /** The list of children. */
613
+ children?: EntityHierarchyItem[];
614
+ }
615
+
616
+ /** Defines headers for ManagementGroups_createOrUpdate operation. */
617
+ export interface ManagementGroupsCreateOrUpdateHeaders {
618
+ /**
619
+ * URL for determining when an operation has completed. Send a GET request to the URL in Location header.
620
+ * The URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.
621
+ *
622
+ * For more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers
623
+ */
624
+ location?: string;
625
+ /**
626
+ * URL for checking the ongoing status of the operation.
627
+ * To get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.
628
+ *
629
+ * For more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations
630
+ */
631
+ azureAsyncOperation?: string;
632
+ }
633
+
634
+ /** Defines headers for ManagementGroups_delete operation. */
635
+ export interface ManagementGroupsDeleteHeaders {
636
+ /**
637
+ * URL for determining when an operation has completed. Send a GET request to the URL in Location header.
638
+ * The URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.
639
+ *
640
+ * For more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers
641
+ */
642
+ location?: string;
643
+ /**
644
+ * URL for checking the ongoing status of the operation.
645
+ * To get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.
646
+ *
647
+ * For more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations
648
+ */
649
+ azureAsyncOperation?: string;
650
+ }
651
+
652
+ /** Known values of {@link Enum0} that the service accepts. */
653
+ export enum KnownEnum0 {
654
+ Children = "children",
655
+ Path = "path",
656
+ Ancestors = "ancestors"
657
+ }
658
+
659
+ /**
660
+ * Defines values for Enum0. \
661
+ * {@link KnownEnum0} can be used interchangeably with Enum0,
662
+ * this enum contains the known values that the service supports.
663
+ * ### Known values supported by the service
664
+ * **children** \
665
+ * **path** \
666
+ * **ancestors**
667
+ */
668
+ export type Enum0 = string;
669
+
670
+ /** Known values of {@link ManagementGroupChildType} that the service accepts. */
671
+ export enum KnownManagementGroupChildType {
672
+ MicrosoftManagementManagementGroups = "Microsoft.Management/managementGroups",
673
+ Subscriptions = "/subscriptions"
674
+ }
675
+
676
+ /**
677
+ * Defines values for ManagementGroupChildType. \
678
+ * {@link KnownManagementGroupChildType} can be used interchangeably with ManagementGroupChildType,
679
+ * this enum contains the known values that the service supports.
680
+ * ### Known values supported by the service
681
+ * **Microsoft.Management\/managementGroups** \
682
+ * **\/subscriptions**
683
+ */
684
+ export type ManagementGroupChildType = string;
685
+
686
+ /** Known values of {@link Enum2} that the service accepts. */
687
+ export enum KnownEnum2 {
688
+ AllowedParents = "AllowedParents",
689
+ AllowedChildren = "AllowedChildren",
690
+ ParentAndFirstLevelChildren = "ParentAndFirstLevelChildren",
691
+ ParentOnly = "ParentOnly",
692
+ ChildrenOnly = "ChildrenOnly"
693
+ }
694
+
695
+ /**
696
+ * Defines values for Enum2. \
697
+ * {@link KnownEnum2} can be used interchangeably with Enum2,
698
+ * this enum contains the known values that the service supports.
699
+ * ### Known values supported by the service
700
+ * **AllowedParents** \
701
+ * **AllowedChildren** \
702
+ * **ParentAndFirstLevelChildren** \
703
+ * **ParentOnly** \
704
+ * **ChildrenOnly**
705
+ */
706
+ export type Enum2 = string;
707
+
708
+ /** Known values of {@link Enum3} that the service accepts. */
709
+ export enum KnownEnum3 {
710
+ FullHierarchy = "FullHierarchy",
711
+ GroupsOnly = "GroupsOnly",
712
+ SubscriptionsOnly = "SubscriptionsOnly",
713
+ Audit = "Audit"
714
+ }
715
+
716
+ /**
717
+ * Defines values for Enum3. \
718
+ * {@link KnownEnum3} can be used interchangeably with Enum3,
719
+ * this enum contains the known values that the service supports.
720
+ * ### Known values supported by the service
721
+ * **FullHierarchy** \
722
+ * **GroupsOnly** \
723
+ * **SubscriptionsOnly** \
724
+ * **Audit**
725
+ */
726
+ export type Enum3 = string;
727
+
728
+ /** Known values of {@link Permissions} that the service accepts. */
729
+ export enum KnownPermissions {
730
+ Noaccess = "noaccess",
731
+ View = "view",
732
+ Edit = "edit",
733
+ Delete = "delete"
734
+ }
735
+
736
+ /**
737
+ * Defines values for Permissions. \
738
+ * {@link KnownPermissions} can be used interchangeably with Permissions,
739
+ * this enum contains the known values that the service supports.
740
+ * ### Known values supported by the service
741
+ * **noaccess** \
742
+ * **view** \
743
+ * **edit** \
744
+ * **delete**
745
+ */
746
+ export type Permissions = string;
747
+ /** Defines values for Reason. */
748
+ export type Reason = "Invalid" | "AlreadyExists";
749
+ /** Defines values for Status. */
750
+ export type Status =
751
+ | "NotStarted"
752
+ | "NotStartedButGroupsExist"
753
+ | "Started"
754
+ | "Failed"
755
+ | "Cancelled"
756
+ | "Completed";
757
+
758
+ /** Optional parameters. */
759
+ export interface ManagementGroupsListOptionalParams
760
+ extends coreClient.OperationOptions {
761
+ /** Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. */
762
+ cacheControl?: string;
763
+ /**
764
+ * Page continuation token is only used if a previous operation returned a partial result.
765
+ * If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.
766
+ *
767
+ */
768
+ skiptoken?: string;
769
+ }
770
+
771
+ /** Contains response data for the list operation. */
772
+ export type ManagementGroupsListResponse = ManagementGroupListResult;
773
+
774
+ /** Optional parameters. */
775
+ export interface ManagementGroupsGetOptionalParams
776
+ extends coreClient.OperationOptions {
777
+ /** Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. */
778
+ cacheControl?: string;
779
+ /** The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group. */
780
+ expand?: Enum0;
781
+ /** The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true. */
782
+ recurse?: boolean;
783
+ /** A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription') */
784
+ filter?: string;
785
+ }
786
+
787
+ /** Contains response data for the get operation. */
788
+ export type ManagementGroupsGetResponse = ManagementGroup;
789
+
790
+ /** Optional parameters. */
791
+ export interface ManagementGroupsCreateOrUpdateOptionalParams
792
+ extends coreClient.OperationOptions {
793
+ /** Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. */
794
+ cacheControl?: string;
795
+ /** Delay to wait until next poll, in milliseconds. */
796
+ updateIntervalInMs?: number;
797
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
798
+ resumeFrom?: string;
799
+ }
800
+
801
+ /** Contains response data for the createOrUpdate operation. */
802
+ export type ManagementGroupsCreateOrUpdateResponse = ManagementGroup;
803
+
804
+ /** Optional parameters. */
805
+ export interface ManagementGroupsUpdateOptionalParams
806
+ extends coreClient.OperationOptions {
807
+ /** Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. */
808
+ cacheControl?: string;
809
+ }
810
+
811
+ /** Contains response data for the update operation. */
812
+ export type ManagementGroupsUpdateResponse = ManagementGroup;
813
+
814
+ /** Optional parameters. */
815
+ export interface ManagementGroupsDeleteOptionalParams
816
+ extends coreClient.OperationOptions {
817
+ /** Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. */
818
+ cacheControl?: string;
819
+ /** Delay to wait until next poll, in milliseconds. */
820
+ updateIntervalInMs?: number;
821
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
822
+ resumeFrom?: string;
823
+ }
824
+
825
+ /** Contains response data for the delete operation. */
826
+ export type ManagementGroupsDeleteResponse = ManagementGroupsDeleteHeaders &
827
+ AzureAsyncOperationResults;
828
+
829
+ /** Optional parameters. */
830
+ export interface ManagementGroupsGetDescendantsOptionalParams
831
+ extends coreClient.OperationOptions {
832
+ /**
833
+ * Page continuation token is only used if a previous operation returned a partial result.
834
+ * If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.
835
+ *
836
+ */
837
+ skiptoken?: string;
838
+ /** Number of elements to return when retrieving results. Passing this in will override $skipToken. */
839
+ top?: number;
840
+ }
841
+
842
+ /** Contains response data for the getDescendants operation. */
843
+ export type ManagementGroupsGetDescendantsResponse = DescendantListResult;
844
+
845
+ /** Optional parameters. */
846
+ export interface ManagementGroupsListNextOptionalParams
847
+ extends coreClient.OperationOptions {
848
+ /** Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. */
849
+ cacheControl?: string;
850
+ /**
851
+ * Page continuation token is only used if a previous operation returned a partial result.
852
+ * If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.
853
+ *
854
+ */
855
+ skiptoken?: string;
856
+ }
857
+
858
+ /** Contains response data for the listNext operation. */
859
+ export type ManagementGroupsListNextResponse = ManagementGroupListResult;
860
+
861
+ /** Optional parameters. */
862
+ export interface ManagementGroupsGetDescendantsNextOptionalParams
863
+ extends coreClient.OperationOptions {
864
+ /**
865
+ * Page continuation token is only used if a previous operation returned a partial result.
866
+ * If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.
867
+ *
868
+ */
869
+ skiptoken?: string;
870
+ /** Number of elements to return when retrieving results. Passing this in will override $skipToken. */
871
+ top?: number;
872
+ }
873
+
874
+ /** Contains response data for the getDescendantsNext operation. */
875
+ export type ManagementGroupsGetDescendantsNextResponse = DescendantListResult;
876
+
877
+ /** Optional parameters. */
878
+ export interface ManagementGroupSubscriptionsCreateOptionalParams
879
+ extends coreClient.OperationOptions {
880
+ /** Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. */
881
+ cacheControl?: string;
882
+ }
883
+
884
+ /** Contains response data for the create operation. */
885
+ export type ManagementGroupSubscriptionsCreateResponse = SubscriptionUnderManagementGroup;
886
+
887
+ /** Optional parameters. */
888
+ export interface ManagementGroupSubscriptionsDeleteOptionalParams
889
+ extends coreClient.OperationOptions {
890
+ /** Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. */
891
+ cacheControl?: string;
892
+ }
893
+
894
+ /** Optional parameters. */
895
+ export interface ManagementGroupSubscriptionsGetSubscriptionOptionalParams
896
+ extends coreClient.OperationOptions {
897
+ /** Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. */
898
+ cacheControl?: string;
899
+ }
900
+
901
+ /** Contains response data for the getSubscription operation. */
902
+ export type ManagementGroupSubscriptionsGetSubscriptionResponse = SubscriptionUnderManagementGroup;
903
+
904
+ /** Optional parameters. */
905
+ export interface ManagementGroupSubscriptionsGetSubscriptionsUnderManagementGroupOptionalParams
906
+ extends coreClient.OperationOptions {
907
+ /**
908
+ * Page continuation token is only used if a previous operation returned a partial result.
909
+ * If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.
910
+ *
911
+ */
912
+ skiptoken?: string;
913
+ }
914
+
915
+ /** Contains response data for the getSubscriptionsUnderManagementGroup operation. */
916
+ export type ManagementGroupSubscriptionsGetSubscriptionsUnderManagementGroupResponse = ListSubscriptionUnderManagementGroup;
917
+
918
+ /** Optional parameters. */
919
+ export interface ManagementGroupSubscriptionsGetSubscriptionsUnderManagementGroupNextOptionalParams
920
+ extends coreClient.OperationOptions {
921
+ /**
922
+ * Page continuation token is only used if a previous operation returned a partial result.
923
+ * If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.
924
+ *
925
+ */
926
+ skiptoken?: string;
927
+ }
928
+
929
+ /** Contains response data for the getSubscriptionsUnderManagementGroupNext operation. */
930
+ export type ManagementGroupSubscriptionsGetSubscriptionsUnderManagementGroupNextResponse = ListSubscriptionUnderManagementGroup;
931
+
932
+ /** Optional parameters. */
933
+ export interface HierarchySettingsListOptionalParams
934
+ extends coreClient.OperationOptions {}
935
+
936
+ /** Contains response data for the list operation. */
937
+ export type HierarchySettingsListResponse = HierarchySettingsList;
938
+
939
+ /** Optional parameters. */
940
+ export interface HierarchySettingsGetOptionalParams
941
+ extends coreClient.OperationOptions {}
942
+
943
+ /** Contains response data for the get operation. */
944
+ export type HierarchySettingsGetResponse = HierarchySettings;
945
+
946
+ /** Optional parameters. */
947
+ export interface HierarchySettingsCreateOrUpdateOptionalParams
948
+ extends coreClient.OperationOptions {}
949
+
950
+ /** Contains response data for the createOrUpdate operation. */
951
+ export type HierarchySettingsCreateOrUpdateResponse = HierarchySettings;
952
+
953
+ /** Optional parameters. */
954
+ export interface HierarchySettingsUpdateOptionalParams
955
+ extends coreClient.OperationOptions {}
956
+
957
+ /** Contains response data for the update operation. */
958
+ export type HierarchySettingsUpdateResponse = HierarchySettings;
959
+
960
+ /** Optional parameters. */
961
+ export interface HierarchySettingsDeleteOptionalParams
962
+ extends coreClient.OperationOptions {}
963
+
964
+ /** Optional parameters. */
965
+ export interface OperationsListOptionalParams
966
+ extends coreClient.OperationOptions {}
967
+
968
+ /** Contains response data for the list operation. */
969
+ export type OperationsListResponse = OperationListResult;
970
+
971
+ /** Optional parameters. */
972
+ export interface OperationsListNextOptionalParams
973
+ extends coreClient.OperationOptions {}
974
+
975
+ /** Contains response data for the listNext operation. */
976
+ export type OperationsListNextResponse = OperationListResult;
977
+
978
+ /** Optional parameters. */
979
+ export interface CheckNameAvailabilityOptionalParams
980
+ extends coreClient.OperationOptions {}
981
+
982
+ /** Contains response data for the checkNameAvailability operation. */
983
+ export type CheckNameAvailabilityResponse = CheckNameAvailabilityResult;
984
+
985
+ /** Optional parameters. */
986
+ export interface StartTenantBackfillOptionalParams
987
+ extends coreClient.OperationOptions {}
988
+
989
+ /** Contains response data for the startTenantBackfill operation. */
990
+ export type StartTenantBackfillResponse = TenantBackfillStatusResult;
991
+
992
+ /** Optional parameters. */
993
+ export interface TenantBackfillStatusOptionalParams
994
+ extends coreClient.OperationOptions {}
995
+
996
+ /** Contains response data for the tenantBackfillStatus operation. */
997
+ export type TenantBackfillStatusResponse = TenantBackfillStatusResult;
998
+
999
+ /** Optional parameters. */
1000
+ export interface EntitiesListOptionalParams
1001
+ extends coreClient.OperationOptions {
1002
+ /** Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. */
1003
+ cacheControl?: string;
1004
+ /**
1005
+ * Page continuation token is only used if a previous operation returned a partial result.
1006
+ * If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.
1007
+ *
1008
+ */
1009
+ skiptoken?: string;
1010
+ /** The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively. */
1011
+ filter?: string;
1012
+ /** Number of elements to return when retrieving results. Passing this in will override $skipToken. */
1013
+ top?: number;
1014
+ /** Number of entities to skip over when retrieving results. Passing this in will override $skipToken. */
1015
+ skip?: number;
1016
+ /** This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken. */
1017
+ select?: string;
1018
+ /**
1019
+ * The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in.
1020
+ * With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions.
1021
+ * With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity.
1022
+ * With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants.
1023
+ * With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group.
1024
+ * With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results.
1025
+ */
1026
+ search?: Enum2;
1027
+ /** The view parameter allows clients to filter the type of data that is returned by the getEntities call. */
1028
+ view?: Enum3;
1029
+ /** A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'") */
1030
+ groupName?: string;
1031
+ }
1032
+
1033
+ /** Contains response data for the list operation. */
1034
+ export type EntitiesListResponse = EntityListResult;
1035
+
1036
+ /** Optional parameters. */
1037
+ export interface EntitiesListNextOptionalParams
1038
+ extends coreClient.OperationOptions {
1039
+ /** Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. */
1040
+ cacheControl?: string;
1041
+ /**
1042
+ * Page continuation token is only used if a previous operation returned a partial result.
1043
+ * If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.
1044
+ *
1045
+ */
1046
+ skiptoken?: string;
1047
+ /** The filter parameter allows you to filter on the the name or display name fields. You can check for equality on the name field (e.g. name eq '{entityName}') and you can check for substrings on either the name or display name fields(e.g. contains(name, '{substringToSearch}'), contains(displayName, '{substringToSearch')). Note that the '{entityName}' and '{substringToSearch}' fields are checked case insensitively. */
1048
+ filter?: string;
1049
+ /** Number of elements to return when retrieving results. Passing this in will override $skipToken. */
1050
+ top?: number;
1051
+ /** Number of entities to skip over when retrieving results. Passing this in will override $skipToken. */
1052
+ skip?: number;
1053
+ /** This parameter specifies the fields to include in the response. Can include any combination of Name,DisplayName,Type,ParentDisplayNameChain,ParentChain, e.g. '$select=Name,DisplayName,Type,ParentDisplayNameChain,ParentNameChain'. When specified the $select parameter can override select in $skipToken. */
1054
+ select?: string;
1055
+ /**
1056
+ * The $search parameter is used in conjunction with the $filter parameter to return three different outputs depending on the parameter passed in.
1057
+ * With $search=AllowedParents the API will return the entity info of all groups that the requested entity will be able to reparent to as determined by the user's permissions.
1058
+ * With $search=AllowedChildren the API will return the entity info of all entities that can be added as children of the requested entity.
1059
+ * With $search=ParentAndFirstLevelChildren the API will return the parent and first level of children that the user has either direct access to or indirect access via one of their descendants.
1060
+ * With $search=ParentOnly the API will return only the group if the user has access to at least one of the descendants of the group.
1061
+ * With $search=ChildrenOnly the API will return only the first level of children of the group entity info specified in $filter. The user must have direct access to the children entities or one of it's descendants for it to show up in the results.
1062
+ */
1063
+ search?: Enum2;
1064
+ /** The view parameter allows clients to filter the type of data that is returned by the getEntities call. */
1065
+ view?: Enum3;
1066
+ /** A filter which allows the get entities call to focus on a particular group (i.e. "$filter=name eq 'groupName'") */
1067
+ groupName?: string;
1068
+ }
1069
+
1070
+ /** Contains response data for the listNext operation. */
1071
+ export type EntitiesListNextResponse = EntityListResult;
1072
+
1073
+ /** Optional parameters. */
1074
+ export interface ManagementGroupsAPIOptionalParams
1075
+ extends coreClient.ServiceClientOptions {
1076
+ /** server parameter */
1077
+ $host?: string;
1078
+ /** Api Version */
1079
+ apiVersion?: string;
1080
+ /** Overrides client endpoint. */
1081
+ endpoint?: string;
1082
+ }