@azure/arm-managementgroups 1.2.1 → 2.0.0-alpha.20211220.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 (173) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +72 -83
  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 +69 -24
  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 +93 -130
  94. package/src/managementGroupsAPIContext.ts +45 -45
  95. package/src/models/index.ts +801 -1185
  96. package/src/models/mappers.ts +792 -400
  97. package/src/models/parameters.ts +130 -94
  98. package/src/operations/entities.ts +105 -79
  99. package/src/operations/hierarchySettingsOperations.ts +214 -0
  100. package/src/operations/index.ts +4 -5
  101. package/src/operations/managementGroupSubscriptions.ts +226 -72
  102. package/src/operations/managementGroups.ts +449 -222
  103. package/src/operations/operations.ts +84 -70
  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 -2017
  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 -74
  118. package/esm/managementGroupsAPI.d.ts.map +0 -1
  119. package/esm/managementGroupsAPI.js +0 -120
  120. package/esm/managementGroupsAPI.js.map +0 -1
  121. package/esm/managementGroupsAPIContext.d.ts +0 -20
  122. package/esm/managementGroupsAPIContext.d.ts.map +0 -1
  123. package/esm/managementGroupsAPIContext.js +0 -56
  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/src/models/entitiesMappers.ts +0 -18
  171. package/src/models/managementGroupSubscriptionsMappers.ts +0 -15
  172. package/src/models/managementGroupsMappers.ts +0 -29
  173. package/src/models/operationsMappers.ts +0 -18
@@ -0,0 +1,154 @@
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
+ import * as coreClient from "@azure/core-client";
9
+ import * as Mappers from "../models/mappers";
10
+ import * as Parameters from "../models/parameters";
11
+ /** Class containing HierarchySettingsOperations operations. */
12
+ export class HierarchySettingsOperationsImpl {
13
+ /**
14
+ * Initialize a new instance of the class HierarchySettingsOperations class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Gets all the hierarchy settings defined at the Management Group level. Settings can only be set on
22
+ * the root Management Group of the hierarchy.
23
+ *
24
+ * @param groupId Management Group ID.
25
+ * @param options The options parameters.
26
+ */
27
+ list(groupId, options) {
28
+ return this.client.sendOperationRequest({ groupId, options }, listOperationSpec);
29
+ }
30
+ /**
31
+ * Gets the hierarchy settings defined at the Management Group level. Settings can only be set on the
32
+ * root Management Group of the hierarchy.
33
+ *
34
+ * @param groupId Management Group ID.
35
+ * @param options The options parameters.
36
+ */
37
+ get(groupId, options) {
38
+ return this.client.sendOperationRequest({ groupId, options }, getOperationSpec);
39
+ }
40
+ /**
41
+ * Creates or updates the hierarchy settings defined at the Management Group level.
42
+ *
43
+ * @param groupId Management Group ID.
44
+ * @param createTenantSettingsRequest Tenant level settings request parameter.
45
+ * @param options The options parameters.
46
+ */
47
+ createOrUpdate(groupId, createTenantSettingsRequest, options) {
48
+ return this.client.sendOperationRequest({ groupId, createTenantSettingsRequest, options }, createOrUpdateOperationSpec);
49
+ }
50
+ /**
51
+ * Updates the hierarchy settings defined at the Management Group level.
52
+ *
53
+ * @param groupId Management Group ID.
54
+ * @param createTenantSettingsRequest Tenant level settings request parameter.
55
+ * @param options The options parameters.
56
+ */
57
+ update(groupId, createTenantSettingsRequest, options) {
58
+ return this.client.sendOperationRequest({ groupId, createTenantSettingsRequest, options }, updateOperationSpec);
59
+ }
60
+ /**
61
+ * Deletes the hierarchy settings defined at the Management Group level.
62
+ *
63
+ * @param groupId Management Group ID.
64
+ * @param options The options parameters.
65
+ */
66
+ delete(groupId, options) {
67
+ return this.client.sendOperationRequest({ groupId, options }, deleteOperationSpec);
68
+ }
69
+ }
70
+ // Operation Specifications
71
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
72
+ const listOperationSpec = {
73
+ path: "/providers/Microsoft.Management/managementGroups/{groupId}/settings",
74
+ httpMethod: "GET",
75
+ responses: {
76
+ 200: {
77
+ bodyMapper: Mappers.HierarchySettingsList
78
+ },
79
+ default: {
80
+ bodyMapper: Mappers.ErrorResponse
81
+ }
82
+ },
83
+ queryParameters: [Parameters.apiVersion],
84
+ urlParameters: [Parameters.$host, Parameters.groupId],
85
+ headerParameters: [Parameters.accept],
86
+ serializer
87
+ };
88
+ const getOperationSpec = {
89
+ path: "/providers/Microsoft.Management/managementGroups/{groupId}/settings/default",
90
+ httpMethod: "GET",
91
+ responses: {
92
+ 200: {
93
+ bodyMapper: Mappers.HierarchySettings
94
+ },
95
+ default: {
96
+ bodyMapper: Mappers.ErrorResponse
97
+ }
98
+ },
99
+ queryParameters: [Parameters.apiVersion],
100
+ urlParameters: [Parameters.$host, Parameters.groupId],
101
+ headerParameters: [Parameters.accept],
102
+ serializer
103
+ };
104
+ const createOrUpdateOperationSpec = {
105
+ path: "/providers/Microsoft.Management/managementGroups/{groupId}/settings/default",
106
+ httpMethod: "PUT",
107
+ responses: {
108
+ 200: {
109
+ bodyMapper: Mappers.HierarchySettings
110
+ },
111
+ default: {
112
+ bodyMapper: Mappers.ErrorResponse
113
+ }
114
+ },
115
+ requestBody: Parameters.createTenantSettingsRequest,
116
+ queryParameters: [Parameters.apiVersion],
117
+ urlParameters: [Parameters.$host, Parameters.groupId],
118
+ headerParameters: [Parameters.accept, Parameters.contentType],
119
+ mediaType: "json",
120
+ serializer
121
+ };
122
+ const updateOperationSpec = {
123
+ path: "/providers/Microsoft.Management/managementGroups/{groupId}/settings/default",
124
+ httpMethod: "PATCH",
125
+ responses: {
126
+ 200: {
127
+ bodyMapper: Mappers.HierarchySettings
128
+ },
129
+ default: {
130
+ bodyMapper: Mappers.ErrorResponse
131
+ }
132
+ },
133
+ requestBody: Parameters.createTenantSettingsRequest,
134
+ queryParameters: [Parameters.apiVersion],
135
+ urlParameters: [Parameters.$host, Parameters.groupId],
136
+ headerParameters: [Parameters.accept, Parameters.contentType],
137
+ mediaType: "json",
138
+ serializer
139
+ };
140
+ const deleteOperationSpec = {
141
+ path: "/providers/Microsoft.Management/managementGroups/{groupId}/settings/default",
142
+ httpMethod: "DELETE",
143
+ responses: {
144
+ 200: {},
145
+ default: {
146
+ bodyMapper: Mappers.ErrorResponse
147
+ }
148
+ },
149
+ queryParameters: [Parameters.apiVersion],
150
+ urlParameters: [Parameters.$host, Parameters.groupId],
151
+ headerParameters: [Parameters.accept],
152
+ serializer
153
+ };
154
+ //# sourceMappingURL=hierarchySettingsOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hierarchySettingsOperations.js","sourceRoot":"","sources":["../../../src/operations/hierarchySettingsOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAenD,+DAA+D;AAC/D,MAAM,OAAO,+BAA+B;IAI1C;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CACF,OAAe,EACf,OAA6C;QAE7C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,OAAO,EAAE,EACpB,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;OA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AU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;IACrD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,6EAA6E;IAC/E,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;IACrD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export * from "./managementGroups";
2
2
  export * from "./managementGroupSubscriptions";
3
+ export * from "./hierarchySettingsOperations";
3
4
  export * from "./operations";
4
5
  export * from "./entities";
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
@@ -1,14 +1,13 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
  export * from "./managementGroups";
11
9
  export * from "./managementGroupSubscriptions";
10
+ export * from "./hierarchySettingsOperations";
12
11
  export * from "./operations";
13
12
  export * from "./entities";
14
13
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,62 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { ManagementGroupSubscriptions } from "../operationsInterfaces";
3
+ import { ManagementGroupsAPIContext } from "../managementGroupsAPIContext";
4
+ import { SubscriptionUnderManagementGroup, ManagementGroupSubscriptionsGetSubscriptionsUnderManagementGroupOptionalParams, ManagementGroupSubscriptionsCreateOptionalParams, ManagementGroupSubscriptionsCreateResponse, ManagementGroupSubscriptionsDeleteOptionalParams, ManagementGroupSubscriptionsGetSubscriptionOptionalParams, ManagementGroupSubscriptionsGetSubscriptionResponse } from "../models";
5
+ /** Class containing ManagementGroupSubscriptions operations. */
6
+ export declare class ManagementGroupSubscriptionsImpl implements ManagementGroupSubscriptions {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class ManagementGroupSubscriptions class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: ManagementGroupsAPIContext);
13
+ /**
14
+ * Retrieves details about all subscriptions which are associated with the management group.
15
+ *
16
+ * @param groupId Management Group ID.
17
+ * @param options The options parameters.
18
+ */
19
+ listSubscriptionsUnderManagementGroup(groupId: string, options?: ManagementGroupSubscriptionsGetSubscriptionsUnderManagementGroupOptionalParams): PagedAsyncIterableIterator<SubscriptionUnderManagementGroup>;
20
+ private getSubscriptionsUnderManagementGroupPagingPage;
21
+ private getSubscriptionsUnderManagementGroupPagingAll;
22
+ /**
23
+ * Associates existing subscription with the management group.
24
+ *
25
+ * @param groupId Management Group ID.
26
+ * @param subscriptionId Subscription ID.
27
+ * @param options The options parameters.
28
+ */
29
+ create(groupId: string, subscriptionId: string, options?: ManagementGroupSubscriptionsCreateOptionalParams): Promise<ManagementGroupSubscriptionsCreateResponse>;
30
+ /**
31
+ * De-associates subscription from the management group.
32
+ *
33
+ * @param groupId Management Group ID.
34
+ * @param subscriptionId Subscription ID.
35
+ * @param options The options parameters.
36
+ */
37
+ delete(groupId: string, subscriptionId: string, options?: ManagementGroupSubscriptionsDeleteOptionalParams): Promise<void>;
38
+ /**
39
+ * Retrieves details about given subscription which is associated with the management group.
40
+ *
41
+ * @param groupId Management Group ID.
42
+ * @param subscriptionId Subscription ID.
43
+ * @param options The options parameters.
44
+ */
45
+ getSubscription(groupId: string, subscriptionId: string, options?: ManagementGroupSubscriptionsGetSubscriptionOptionalParams): Promise<ManagementGroupSubscriptionsGetSubscriptionResponse>;
46
+ /**
47
+ * Retrieves details about all subscriptions which are associated with the management group.
48
+ *
49
+ * @param groupId Management Group ID.
50
+ * @param options The options parameters.
51
+ */
52
+ private _getSubscriptionsUnderManagementGroup;
53
+ /**
54
+ * GetSubscriptionsUnderManagementGroupNext
55
+ * @param groupId Management Group ID.
56
+ * @param nextLink The nextLink from the previous successful call to the
57
+ * GetSubscriptionsUnderManagementGroup method.
58
+ * @param options The options parameters.
59
+ */
60
+ private _getSubscriptionsUnderManagementGroupNext;
61
+ }
62
+ //# sourceMappingURL=managementGroupSubscriptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managementGroupSubscriptions.d.ts","sourceRoot":"","sources":["../../../src/operations/managementGroupSubscriptions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAIvE,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EACL,gCAAgC,EAEhC,8EAA8E,EAC9E,gDAAgD,EAChD,0CAA0C,EAC1C,gDAAgD,EAChD,yDAAyD,EACzD,mDAAmD,EAGpD,MAAM,WAAW,CAAC;AAGnB,gEAAgE;AAChE,qBAAa,gCACX,YAAW,4BAA4B;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IAEpD;;;OAGG;gBACS,MAAM,EAAE,0BAA0B;IAI9C;;;;;OAKG;IACI,qCAAqC,CAC1C,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,8EAA8E,GACvF,0BAA0B,CAAC,gCAAgC,CAAC;YAqBhD,8CAA8C;YAqB9C,6CAA6C;IAY5D;;;;;;OAMG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CAAC,0CAA0C,CAAC;IAOtD;;;;;;OAMG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;OAMG;IACH,eAAe,CACb,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,yDAAyD,GAClE,OAAO,CAAC,mDAAmD,CAAC;IAO/D;;;;;OAKG;IACH,OAAO,CAAC,qCAAqC;IAY7C;;;;;;OAMG;IACH,OAAO,CAAC,yCAAyC;CAYlD"}
@@ -0,0 +1,215 @@
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
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing ManagementGroupSubscriptions operations. */
14
+ export class ManagementGroupSubscriptionsImpl {
15
+ /**
16
+ * Initialize a new instance of the class ManagementGroupSubscriptions class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Retrieves details about all subscriptions which are associated with the management group.
24
+ *
25
+ * @param groupId Management Group ID.
26
+ * @param options The options parameters.
27
+ */
28
+ listSubscriptionsUnderManagementGroup(groupId, options) {
29
+ const iter = this.getSubscriptionsUnderManagementGroupPagingAll(groupId, options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: () => {
38
+ return this.getSubscriptionsUnderManagementGroupPagingPage(groupId, options);
39
+ }
40
+ };
41
+ }
42
+ getSubscriptionsUnderManagementGroupPagingPage(groupId, options) {
43
+ return __asyncGenerator(this, arguments, function* getSubscriptionsUnderManagementGroupPagingPage_1() {
44
+ let result = yield __await(this._getSubscriptionsUnderManagementGroup(groupId, options));
45
+ yield yield __await(result.value || []);
46
+ let continuationToken = result.nextLink;
47
+ while (continuationToken) {
48
+ result = yield __await(this._getSubscriptionsUnderManagementGroupNext(groupId, continuationToken, options));
49
+ continuationToken = result.nextLink;
50
+ yield yield __await(result.value || []);
51
+ }
52
+ });
53
+ }
54
+ getSubscriptionsUnderManagementGroupPagingAll(groupId, options) {
55
+ return __asyncGenerator(this, arguments, function* getSubscriptionsUnderManagementGroupPagingAll_1() {
56
+ var e_1, _a;
57
+ try {
58
+ for (var _b = __asyncValues(this.getSubscriptionsUnderManagementGroupPagingPage(groupId, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
59
+ const page = _c.value;
60
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
61
+ }
62
+ }
63
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
64
+ finally {
65
+ try {
66
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
67
+ }
68
+ finally { if (e_1) throw e_1.error; }
69
+ }
70
+ });
71
+ }
72
+ /**
73
+ * Associates existing subscription with the management group.
74
+ *
75
+ * @param groupId Management Group ID.
76
+ * @param subscriptionId Subscription ID.
77
+ * @param options The options parameters.
78
+ */
79
+ create(groupId, subscriptionId, options) {
80
+ return this.client.sendOperationRequest({ groupId, subscriptionId, options }, createOperationSpec);
81
+ }
82
+ /**
83
+ * De-associates subscription from the management group.
84
+ *
85
+ * @param groupId Management Group ID.
86
+ * @param subscriptionId Subscription ID.
87
+ * @param options The options parameters.
88
+ */
89
+ delete(groupId, subscriptionId, options) {
90
+ return this.client.sendOperationRequest({ groupId, subscriptionId, options }, deleteOperationSpec);
91
+ }
92
+ /**
93
+ * Retrieves details about given subscription which is associated with the management group.
94
+ *
95
+ * @param groupId Management Group ID.
96
+ * @param subscriptionId Subscription ID.
97
+ * @param options The options parameters.
98
+ */
99
+ getSubscription(groupId, subscriptionId, options) {
100
+ return this.client.sendOperationRequest({ groupId, subscriptionId, options }, getSubscriptionOperationSpec);
101
+ }
102
+ /**
103
+ * Retrieves details about all subscriptions which are associated with the management group.
104
+ *
105
+ * @param groupId Management Group ID.
106
+ * @param options The options parameters.
107
+ */
108
+ _getSubscriptionsUnderManagementGroup(groupId, options) {
109
+ return this.client.sendOperationRequest({ groupId, options }, getSubscriptionsUnderManagementGroupOperationSpec);
110
+ }
111
+ /**
112
+ * GetSubscriptionsUnderManagementGroupNext
113
+ * @param groupId Management Group ID.
114
+ * @param nextLink The nextLink from the previous successful call to the
115
+ * GetSubscriptionsUnderManagementGroup method.
116
+ * @param options The options parameters.
117
+ */
118
+ _getSubscriptionsUnderManagementGroupNext(groupId, nextLink, options) {
119
+ return this.client.sendOperationRequest({ groupId, nextLink, options }, getSubscriptionsUnderManagementGroupNextOperationSpec);
120
+ }
121
+ }
122
+ // Operation Specifications
123
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
124
+ const createOperationSpec = {
125
+ path: "/providers/Microsoft.Management/managementGroups/{groupId}/subscriptions/{subscriptionId}",
126
+ httpMethod: "PUT",
127
+ responses: {
128
+ 200: {
129
+ bodyMapper: Mappers.SubscriptionUnderManagementGroup
130
+ },
131
+ default: {
132
+ bodyMapper: Mappers.ErrorResponse
133
+ }
134
+ },
135
+ queryParameters: [Parameters.apiVersion],
136
+ urlParameters: [
137
+ Parameters.$host,
138
+ Parameters.groupId,
139
+ Parameters.subscriptionId
140
+ ],
141
+ headerParameters: [Parameters.accept, Parameters.cacheControl],
142
+ serializer
143
+ };
144
+ const deleteOperationSpec = {
145
+ path: "/providers/Microsoft.Management/managementGroups/{groupId}/subscriptions/{subscriptionId}",
146
+ httpMethod: "DELETE",
147
+ responses: {
148
+ 200: {},
149
+ 204: {},
150
+ default: {
151
+ bodyMapper: Mappers.ErrorResponse
152
+ }
153
+ },
154
+ queryParameters: [Parameters.apiVersion],
155
+ urlParameters: [
156
+ Parameters.$host,
157
+ Parameters.groupId,
158
+ Parameters.subscriptionId
159
+ ],
160
+ headerParameters: [Parameters.accept, Parameters.cacheControl],
161
+ serializer
162
+ };
163
+ const getSubscriptionOperationSpec = {
164
+ path: "/providers/Microsoft.Management/managementGroups/{groupId}/subscriptions/{subscriptionId}",
165
+ httpMethod: "GET",
166
+ responses: {
167
+ 200: {
168
+ bodyMapper: Mappers.SubscriptionUnderManagementGroup
169
+ },
170
+ default: {
171
+ bodyMapper: Mappers.ErrorResponse
172
+ }
173
+ },
174
+ queryParameters: [Parameters.apiVersion],
175
+ urlParameters: [
176
+ Parameters.$host,
177
+ Parameters.groupId,
178
+ Parameters.subscriptionId
179
+ ],
180
+ headerParameters: [Parameters.accept, Parameters.cacheControl],
181
+ serializer
182
+ };
183
+ const getSubscriptionsUnderManagementGroupOperationSpec = {
184
+ path: "/providers/Microsoft.Management/managementGroups/{groupId}/subscriptions",
185
+ httpMethod: "GET",
186
+ responses: {
187
+ 200: {
188
+ bodyMapper: Mappers.ListSubscriptionUnderManagementGroup
189
+ },
190
+ default: {
191
+ bodyMapper: Mappers.ErrorResponse
192
+ }
193
+ },
194
+ queryParameters: [Parameters.apiVersion, Parameters.skiptoken],
195
+ urlParameters: [Parameters.$host, Parameters.groupId],
196
+ headerParameters: [Parameters.accept],
197
+ serializer
198
+ };
199
+ const getSubscriptionsUnderManagementGroupNextOperationSpec = {
200
+ path: "{nextLink}",
201
+ httpMethod: "GET",
202
+ responses: {
203
+ 200: {
204
+ bodyMapper: Mappers.ListSubscriptionUnderManagementGroup
205
+ },
206
+ default: {
207
+ bodyMapper: Mappers.ErrorResponse
208
+ }
209
+ },
210
+ queryParameters: [Parameters.apiVersion, Parameters.skiptoken],
211
+ urlParameters: [Parameters.$host, Parameters.groupId, Parameters.nextLink],
212
+ headerParameters: [Parameters.accept],
213
+ serializer
214
+ };
215
+ //# sourceMappingURL=managementGroupSubscriptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managementGroupSubscriptions.js","sourceRoot":"","sources":["../../../src/operations/managementGroupSubscriptions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAenD,4CAA4C;AAC5C,gEAAgE;AAChE,MAAM,OAAO,gCAAgC;IAI3C;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,qCAAqC,CAC1C,OAAe,EACf,OAAwF;QAExF,MAAM,IAAI,GAAG,IAAI,CAAC,6CAA6C,CAC7D,OAAO,EACP,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,C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Aa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;IACrD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qDAAqD,GAA6B;IACtF,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oCAAoC;SACzD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC;IAC9D,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,QAAQ,CAAC;IAC1E,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,109 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { ManagementGroups } from "../operationsInterfaces";
3
+ import { ManagementGroupsAPIContext } from "../managementGroupsAPIContext";
4
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
5
+ import { ManagementGroupInfo, ManagementGroupsListOptionalParams, DescendantInfo, ManagementGroupsGetDescendantsOptionalParams, ManagementGroupsGetOptionalParams, ManagementGroupsGetResponse, CreateManagementGroupRequest, ManagementGroupsCreateOrUpdateOptionalParams, ManagementGroupsCreateOrUpdateResponse, PatchManagementGroupRequest, ManagementGroupsUpdateOptionalParams, ManagementGroupsUpdateResponse, ManagementGroupsDeleteOptionalParams, ManagementGroupsDeleteResponse } from "../models";
6
+ /** Class containing ManagementGroups operations. */
7
+ export declare class ManagementGroupsImpl implements ManagementGroups {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class ManagementGroups class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: ManagementGroupsAPIContext);
14
+ /**
15
+ * List management groups for the authenticated user.
16
+ *
17
+ * @param options The options parameters.
18
+ */
19
+ list(options?: ManagementGroupsListOptionalParams): PagedAsyncIterableIterator<ManagementGroupInfo>;
20
+ private listPagingPage;
21
+ private listPagingAll;
22
+ /**
23
+ * List all entities that descend from a management group.
24
+ *
25
+ * @param groupId Management Group ID.
26
+ * @param options The options parameters.
27
+ */
28
+ listDescendants(groupId: string, options?: ManagementGroupsGetDescendantsOptionalParams): PagedAsyncIterableIterator<DescendantInfo>;
29
+ private getDescendantsPagingPage;
30
+ private getDescendantsPagingAll;
31
+ /**
32
+ * List management groups for the authenticated user.
33
+ *
34
+ * @param options The options parameters.
35
+ */
36
+ private _list;
37
+ /**
38
+ * Get the details of the management group.
39
+ *
40
+ * @param groupId Management Group ID.
41
+ * @param options The options parameters.
42
+ */
43
+ get(groupId: string, options?: ManagementGroupsGetOptionalParams): Promise<ManagementGroupsGetResponse>;
44
+ /**
45
+ * Create or update a management group.
46
+ * If a management group is already created and a subsequent create request is issued with different
47
+ * properties, the management group properties will be updated.
48
+ *
49
+ * @param groupId Management Group ID.
50
+ * @param createManagementGroupRequest Management group creation parameters.
51
+ * @param options The options parameters.
52
+ */
53
+ beginCreateOrUpdate(groupId: string, createManagementGroupRequest: CreateManagementGroupRequest, options?: ManagementGroupsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ManagementGroupsCreateOrUpdateResponse>, ManagementGroupsCreateOrUpdateResponse>>;
54
+ /**
55
+ * Create or update a management group.
56
+ * If a management group is already created and a subsequent create request is issued with different
57
+ * properties, the management group properties will be updated.
58
+ *
59
+ * @param groupId Management Group ID.
60
+ * @param createManagementGroupRequest Management group creation parameters.
61
+ * @param options The options parameters.
62
+ */
63
+ beginCreateOrUpdateAndWait(groupId: string, createManagementGroupRequest: CreateManagementGroupRequest, options?: ManagementGroupsCreateOrUpdateOptionalParams): Promise<ManagementGroupsCreateOrUpdateResponse>;
64
+ /**
65
+ * Update a management group.
66
+ *
67
+ * @param groupId Management Group ID.
68
+ * @param patchGroupRequest Management group patch parameters.
69
+ * @param options The options parameters.
70
+ */
71
+ update(groupId: string, patchGroupRequest: PatchManagementGroupRequest, options?: ManagementGroupsUpdateOptionalParams): Promise<ManagementGroupsUpdateResponse>;
72
+ /**
73
+ * Delete management group.
74
+ * If a management group contains child resources, the request will fail.
75
+ *
76
+ * @param groupId Management Group ID.
77
+ * @param options The options parameters.
78
+ */
79
+ beginDelete(groupId: string, options?: ManagementGroupsDeleteOptionalParams): Promise<PollerLike<PollOperationState<ManagementGroupsDeleteResponse>, ManagementGroupsDeleteResponse>>;
80
+ /**
81
+ * Delete management group.
82
+ * If a management group contains child resources, the request will fail.
83
+ *
84
+ * @param groupId Management Group ID.
85
+ * @param options The options parameters.
86
+ */
87
+ beginDeleteAndWait(groupId: string, options?: ManagementGroupsDeleteOptionalParams): Promise<ManagementGroupsDeleteResponse>;
88
+ /**
89
+ * List all entities that descend from a management group.
90
+ *
91
+ * @param groupId Management Group ID.
92
+ * @param options The options parameters.
93
+ */
94
+ private _getDescendants;
95
+ /**
96
+ * ListNext
97
+ * @param nextLink The nextLink from the previous successful call to the List method.
98
+ * @param options The options parameters.
99
+ */
100
+ private _listNext;
101
+ /**
102
+ * GetDescendantsNext
103
+ * @param groupId Management Group ID.
104
+ * @param nextLink The nextLink from the previous successful call to the GetDescendants method.
105
+ * @param options The options parameters.
106
+ */
107
+ private _getDescendantsNext;
108
+ }
109
+ //# sourceMappingURL=managementGroups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managementGroups.d.ts","sourceRoot":"","sources":["../../../src/operations/managementGroups.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAI3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAA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