@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
@@ -1,191 +0,0 @@
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.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
9
- */
10
-
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as Models from "./models";
13
- import * as Mappers from "./models/mappers";
14
- import * as Parameters from "./models/parameters";
15
- import * as operations from "./operations";
16
- import { ManagementGroupsAPIContext } from "./managementGroupsAPIContext";
17
-
18
-
19
- class ManagementGroupsAPI extends ManagementGroupsAPIContext {
20
- // Operation groups
21
- managementGroups: operations.ManagementGroups;
22
- managementGroupSubscriptions: operations.ManagementGroupSubscriptions;
23
- operations: operations.Operations;
24
- entities: operations.Entities;
25
-
26
- /**
27
- * Initializes a new instance of the ManagementGroupsAPI class.
28
- * @param credentials Credentials needed for the client to connect to Azure.
29
- * @param [options] The parameter options
30
- */
31
- constructor(credentials: msRest.ServiceClientCredentials, options?: Models.ManagementGroupsAPIOptions) {
32
- super(credentials, options);
33
- this.managementGroups = new operations.ManagementGroups(this);
34
- this.managementGroupSubscriptions = new operations.ManagementGroupSubscriptions(this);
35
- this.operations = new operations.Operations(this);
36
- this.entities = new operations.Entities(this);
37
- }
38
-
39
- /**
40
- * Checks if the specified management group name is valid and unique
41
- * @param checkNameAvailabilityRequest Management group name availability check parameters.
42
- * @param [options] The optional parameters
43
- * @returns Promise<Models.CheckNameAvailabilityResponse>
44
- */
45
- checkNameAvailability(checkNameAvailabilityRequest: Models.CheckNameAvailabilityRequest, options?: msRest.RequestOptionsBase): Promise<Models.CheckNameAvailabilityResponse>;
46
- /**
47
- * @param checkNameAvailabilityRequest Management group name availability check parameters.
48
- * @param callback The callback
49
- */
50
- checkNameAvailability(checkNameAvailabilityRequest: Models.CheckNameAvailabilityRequest, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityResult>): void;
51
- /**
52
- * @param checkNameAvailabilityRequest Management group name availability check parameters.
53
- * @param options The optional parameters
54
- * @param callback The callback
55
- */
56
- checkNameAvailability(checkNameAvailabilityRequest: Models.CheckNameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityResult>): void;
57
- checkNameAvailability(checkNameAvailabilityRequest: Models.CheckNameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckNameAvailabilityResult>, callback?: msRest.ServiceCallback<Models.CheckNameAvailabilityResult>): Promise<Models.CheckNameAvailabilityResponse> {
58
- return this.sendOperationRequest(
59
- {
60
- checkNameAvailabilityRequest,
61
- options
62
- },
63
- checkNameAvailabilityOperationSpec,
64
- callback) as Promise<Models.CheckNameAvailabilityResponse>;
65
- }
66
-
67
- /**
68
- * Starts backfilling subscriptions for the Tenant.
69
- * @param [options] The optional parameters
70
- * @returns Promise<Models.StartTenantBackfillResponse>
71
- */
72
- startTenantBackfill(options?: msRest.RequestOptionsBase): Promise<Models.StartTenantBackfillResponse>;
73
- /**
74
- * @param callback The callback
75
- */
76
- startTenantBackfill(callback: msRest.ServiceCallback<Models.TenantBackfillStatusResult>): void;
77
- /**
78
- * @param options The optional parameters
79
- * @param callback The callback
80
- */
81
- startTenantBackfill(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.TenantBackfillStatusResult>): void;
82
- startTenantBackfill(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.TenantBackfillStatusResult>, callback?: msRest.ServiceCallback<Models.TenantBackfillStatusResult>): Promise<Models.StartTenantBackfillResponse> {
83
- return this.sendOperationRequest(
84
- {
85
- options
86
- },
87
- startTenantBackfillOperationSpec,
88
- callback) as Promise<Models.StartTenantBackfillResponse>;
89
- }
90
-
91
- /**
92
- * Gets tenant backfill status
93
- * @param [options] The optional parameters
94
- * @returns Promise<Models.TenantBackfillStatusResponse>
95
- */
96
- tenantBackfillStatus(options?: msRest.RequestOptionsBase): Promise<Models.TenantBackfillStatusResponse>;
97
- /**
98
- * @param callback The callback
99
- */
100
- tenantBackfillStatus(callback: msRest.ServiceCallback<Models.TenantBackfillStatusResult>): void;
101
- /**
102
- * @param options The optional parameters
103
- * @param callback The callback
104
- */
105
- tenantBackfillStatus(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.TenantBackfillStatusResult>): void;
106
- tenantBackfillStatus(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.TenantBackfillStatusResult>, callback?: msRest.ServiceCallback<Models.TenantBackfillStatusResult>): Promise<Models.TenantBackfillStatusResponse> {
107
- return this.sendOperationRequest(
108
- {
109
- options
110
- },
111
- tenantBackfillStatusOperationSpec,
112
- callback) as Promise<Models.TenantBackfillStatusResponse>;
113
- }
114
- }
115
-
116
- // Operation Specifications
117
- const serializer = new msRest.Serializer(Mappers);
118
- const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
119
- httpMethod: "POST",
120
- path: "providers/Microsoft.Management/checkNameAvailability",
121
- queryParameters: [
122
- Parameters.apiVersion
123
- ],
124
- headerParameters: [
125
- Parameters.acceptLanguage
126
- ],
127
- requestBody: {
128
- parameterPath: "checkNameAvailabilityRequest",
129
- mapper: {
130
- ...Mappers.CheckNameAvailabilityRequest,
131
- required: true
132
- }
133
- },
134
- responses: {
135
- 200: {
136
- bodyMapper: Mappers.CheckNameAvailabilityResult
137
- },
138
- default: {
139
- bodyMapper: Mappers.ErrorResponse
140
- }
141
- },
142
- serializer
143
- };
144
-
145
- const startTenantBackfillOperationSpec: msRest.OperationSpec = {
146
- httpMethod: "POST",
147
- path: "providers/Microsoft.Management/startTenantBackfill",
148
- queryParameters: [
149
- Parameters.apiVersion
150
- ],
151
- headerParameters: [
152
- Parameters.acceptLanguage
153
- ],
154
- responses: {
155
- 200: {
156
- bodyMapper: Mappers.TenantBackfillStatusResult
157
- },
158
- default: {
159
- bodyMapper: Mappers.ErrorResponse
160
- }
161
- },
162
- serializer
163
- };
164
-
165
- const tenantBackfillStatusOperationSpec: msRest.OperationSpec = {
166
- httpMethod: "POST",
167
- path: "providers/Microsoft.Management/tenantBackfillStatus",
168
- queryParameters: [
169
- Parameters.apiVersion
170
- ],
171
- headerParameters: [
172
- Parameters.acceptLanguage
173
- ],
174
- responses: {
175
- 200: {
176
- bodyMapper: Mappers.TenantBackfillStatusResult
177
- },
178
- default: {
179
- bodyMapper: Mappers.ErrorResponse
180
- }
181
- },
182
- serializer
183
- };
184
-
185
- export {
186
- ManagementGroupsAPI,
187
- ManagementGroupsAPIContext,
188
- Models as ManagementGroupsAPIModels,
189
- Mappers as ManagementGroupsAPIMappers
190
- };
191
- export * from "./operations";
@@ -1,56 +0,0 @@
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.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
9
- */
10
-
11
- import * as Models from "./models";
12
- import * as msRest from "@azure/ms-rest-js";
13
- import * as msRestAzure from "@azure/ms-rest-azure-js";
14
-
15
- const packageName = "@azure/arm-managementgroups";
16
- const packageVersion = "0.1.0";
17
-
18
- export class ManagementGroupsAPIContext extends msRestAzure.AzureServiceClient {
19
- credentials: msRest.ServiceClientCredentials;
20
- apiVersion?: string;
21
-
22
- /**
23
- * Initializes a new instance of the ManagementGroupsAPI class.
24
- * @param credentials Credentials needed for the client to connect to Azure.
25
- * @param [options] The parameter options
26
- */
27
- constructor(credentials: msRest.ServiceClientCredentials, options?: Models.ManagementGroupsAPIOptions) {
28
- if (credentials == undefined) {
29
- throw new Error('\'credentials\' cannot be null.');
30
- }
31
-
32
- if (!options) {
33
- options = {};
34
- }
35
- if(!options.userAgent) {
36
- const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
37
- options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
38
- }
39
-
40
- super(credentials, options);
41
-
42
- this.apiVersion = '2018-03-01-preview';
43
- this.acceptLanguage = 'en-US';
44
- this.longRunningOperationRetryTimeout = 30;
45
- this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
46
- this.requestContentType = "application/json; charset=utf-8";
47
- this.credentials = credentials;
48
-
49
- if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
50
- this.acceptLanguage = options.acceptLanguage;
51
- }
52
- if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
53
- this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
54
- }
55
- }
56
- }
@@ -1,18 +0,0 @@
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.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
9
- */
10
-
11
- export {
12
- EntityListResult,
13
- EntityInfo,
14
- EntityParentGroupInfo,
15
- ErrorResponse,
16
- ErrorDetails
17
- } from "../models/mappers";
18
-