@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.
- package/CHANGELOG.md +26 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +78 -77
- package/dist/index.js +2881 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/managementGroupsAPI.d.ts +34 -0
- package/dist-esm/src/managementGroupsAPI.d.ts.map +1 -0
- package/dist-esm/src/managementGroupsAPI.js +102 -0
- package/dist-esm/src/managementGroupsAPI.js.map +1 -0
- package/dist-esm/src/managementGroupsAPIContext.d.ts +14 -0
- package/dist-esm/src/managementGroupsAPIContext.d.ts.map +1 -0
- package/dist-esm/src/managementGroupsAPIContext.js +43 -0
- package/dist-esm/src/managementGroupsAPIContext.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +956 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +46 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +39 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +776 -396
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +24 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +200 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/entities.d.ts +34 -0
- package/dist-esm/src/operations/entities.d.ts.map +1 -0
- package/dist-esm/src/operations/entities.js +142 -0
- package/dist-esm/src/operations/entities.js.map +1 -0
- package/dist-esm/src/operations/hierarchySettingsOperations.d.ts +52 -0
- package/dist-esm/src/operations/hierarchySettingsOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/hierarchySettingsOperations.js +154 -0
- package/dist-esm/src/operations/hierarchySettingsOperations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +4 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/managementGroupSubscriptions.d.ts +62 -0
- package/dist-esm/src/operations/managementGroupSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operations/managementGroupSubscriptions.js +215 -0
- package/dist-esm/src/operations/managementGroupSubscriptions.js.map +1 -0
- package/dist-esm/src/operations/managementGroups.d.ts +109 -0
- package/dist-esm/src/operations/managementGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/managementGroups.js +462 -0
- package/dist-esm/src/operations/managementGroups.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/entities.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/entities.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/entities.js +9 -0
- package/dist-esm/src/operationsInterfaces/entities.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/hierarchySettingsOperations.d.ts +44 -0
- package/dist-esm/src/operationsInterfaces/hierarchySettingsOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/hierarchySettingsOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/hierarchySettingsOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/managementGroupSubscriptions.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/managementGroupSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/managementGroupSubscriptions.js +9 -0
- package/dist-esm/src/operationsInterfaces/managementGroupSubscriptions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/managementGroups.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/managementGroups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/managementGroups.js +9 -0
- package/dist-esm/src/operationsInterfaces/managementGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +71 -25
- package/review/arm-managementgroups.api.md +667 -0
- package/rollup.config.js +184 -27
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/managementGroupsAPI.ts +160 -0
- package/src/managementGroupsAPIContext.ts +62 -0
- package/src/models/index.ts +1082 -0
- package/{lib → src}/models/mappers.ts +792 -400
- package/src/models/parameters.ts +232 -0
- package/src/operations/entities.ts +159 -0
- package/src/operations/hierarchySettingsOperations.ts +214 -0
- package/{lib → src}/operations/index.ts +4 -5
- package/src/operations/managementGroupSubscriptions.ts +294 -0
- package/src/operations/managementGroups.ts +592 -0
- package/src/operations/operations.ts +137 -0
- package/src/operationsInterfaces/entities.ts +23 -0
- package/src/operationsInterfaces/hierarchySettingsOperations.ts +80 -0
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/managementGroupSubscriptions.ts +69 -0
- package/src/operationsInterfaces/managementGroups.ts +131 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/tsconfig.json +4 -4
- package/types/arm-managementgroups.d.ts +1266 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-managementgroups.js +0 -2007
- package/dist/arm-managementgroups.js.map +0 -1
- package/dist/arm-managementgroups.min.js +0 -1
- package/dist/arm-managementgroups.min.js.map +0 -1
- package/esm/managementGroupsAPI.d.ts +0 -68
- package/esm/managementGroupsAPI.d.ts.map +0 -1
- package/esm/managementGroupsAPI.js +0 -115
- package/esm/managementGroupsAPI.js.map +0 -1
- package/esm/managementGroupsAPIContext.d.ts +0 -14
- package/esm/managementGroupsAPIContext.d.ts.map +0 -1
- package/esm/managementGroupsAPIContext.js +0 -51
- package/esm/managementGroupsAPIContext.js.map +0 -1
- package/esm/models/entitiesMappers.d.ts +0 -2
- package/esm/models/entitiesMappers.d.ts.map +0 -1
- package/esm/models/entitiesMappers.js +0 -11
- package/esm/models/entitiesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -1390
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/managementGroupSubscriptionsMappers.d.ts +0 -2
- package/esm/models/managementGroupSubscriptionsMappers.d.ts.map +0 -1
- package/esm/models/managementGroupSubscriptionsMappers.js +0 -11
- package/esm/models/managementGroupSubscriptionsMappers.js.map +0 -1
- package/esm/models/managementGroupsMappers.d.ts +0 -2
- package/esm/models/managementGroupsMappers.d.ts.map +0 -1
- package/esm/models/managementGroupsMappers.js +0 -11
- package/esm/models/managementGroupsMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -28
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -18
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -194
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/entities.d.ts +0 -46
- package/esm/operations/entities.d.ts.map +0 -1
- package/esm/operations/entities.js +0 -87
- package/esm/operations/entities.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/managementGroupSubscriptions.d.ts +0 -55
- package/esm/operations/managementGroupSubscriptions.d.ts.map +0 -1
- package/esm/operations/managementGroupSubscriptions.js +0 -85
- package/esm/operations/managementGroupSubscriptions.js.map +0 -1
- package/esm/operations/managementGroups.d.ts +0 -120
- package/esm/operations/managementGroups.d.ts.map +0 -1
- package/esm/operations/managementGroups.js +0 -252
- package/esm/operations/managementGroups.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/lib/managementGroupsAPI.ts +0 -191
- package/lib/managementGroupsAPIContext.ts +0 -56
- package/lib/models/entitiesMappers.ts +0 -18
- package/lib/models/index.ts +0 -1466
- package/lib/models/managementGroupSubscriptionsMappers.ts +0 -15
- package/lib/models/managementGroupsMappers.ts +0 -29
- package/lib/models/operationsMappers.ts +0 -18
- package/lib/models/parameters.ts +0 -196
- package/lib/operations/entities.ts +0 -133
- package/lib/operations/managementGroupSubscriptions.ts +0 -140
- package/lib/operations/managementGroups.ts +0 -365
- package/lib/operations/operations.ts +0 -123
|
@@ -0,0 +1,137 @@
|
|
|
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 { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Operations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { ManagementGroupsAPIContext } from "../managementGroupsAPIContext";
|
|
15
|
+
import {
|
|
16
|
+
Operation,
|
|
17
|
+
OperationsListNextOptionalParams,
|
|
18
|
+
OperationsListOptionalParams,
|
|
19
|
+
OperationsListResponse,
|
|
20
|
+
OperationsListNextResponse
|
|
21
|
+
} from "../models";
|
|
22
|
+
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing Operations operations. */
|
|
25
|
+
export class OperationsImpl implements Operations {
|
|
26
|
+
private readonly client: ManagementGroupsAPIContext;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Initialize a new instance of the class Operations class.
|
|
30
|
+
* @param client Reference to the service client
|
|
31
|
+
*/
|
|
32
|
+
constructor(client: ManagementGroupsAPIContext) {
|
|
33
|
+
this.client = client;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Lists all of the available Management REST API operations.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
public list(
|
|
41
|
+
options?: OperationsListOptionalParams
|
|
42
|
+
): PagedAsyncIterableIterator<Operation> {
|
|
43
|
+
const iter = this.listPagingAll(options);
|
|
44
|
+
return {
|
|
45
|
+
next() {
|
|
46
|
+
return iter.next();
|
|
47
|
+
},
|
|
48
|
+
[Symbol.asyncIterator]() {
|
|
49
|
+
return this;
|
|
50
|
+
},
|
|
51
|
+
byPage: () => {
|
|
52
|
+
return this.listPagingPage(options);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
private async *listPagingPage(
|
|
58
|
+
options?: OperationsListOptionalParams
|
|
59
|
+
): AsyncIterableIterator<Operation[]> {
|
|
60
|
+
let result = await this._list(options);
|
|
61
|
+
yield result.value || [];
|
|
62
|
+
let continuationToken = result.nextLink;
|
|
63
|
+
while (continuationToken) {
|
|
64
|
+
result = await this._listNext(continuationToken, options);
|
|
65
|
+
continuationToken = result.nextLink;
|
|
66
|
+
yield result.value || [];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
private async *listPagingAll(
|
|
71
|
+
options?: OperationsListOptionalParams
|
|
72
|
+
): AsyncIterableIterator<Operation> {
|
|
73
|
+
for await (const page of this.listPagingPage(options)) {
|
|
74
|
+
yield* page;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Lists all of the available Management REST API operations.
|
|
80
|
+
* @param options The options parameters.
|
|
81
|
+
*/
|
|
82
|
+
private _list(
|
|
83
|
+
options?: OperationsListOptionalParams
|
|
84
|
+
): Promise<OperationsListResponse> {
|
|
85
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* ListNext
|
|
90
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
91
|
+
* @param options The options parameters.
|
|
92
|
+
*/
|
|
93
|
+
private _listNext(
|
|
94
|
+
nextLink: string,
|
|
95
|
+
options?: OperationsListNextOptionalParams
|
|
96
|
+
): Promise<OperationsListNextResponse> {
|
|
97
|
+
return this.client.sendOperationRequest(
|
|
98
|
+
{ nextLink, options },
|
|
99
|
+
listNextOperationSpec
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
// Operation Specifications
|
|
104
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
105
|
+
|
|
106
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
107
|
+
path: "/providers/Microsoft.Management/operations",
|
|
108
|
+
httpMethod: "GET",
|
|
109
|
+
responses: {
|
|
110
|
+
200: {
|
|
111
|
+
bodyMapper: Mappers.OperationListResult
|
|
112
|
+
},
|
|
113
|
+
default: {
|
|
114
|
+
bodyMapper: Mappers.ErrorResponse
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
queryParameters: [Parameters.apiVersion],
|
|
118
|
+
urlParameters: [Parameters.$host],
|
|
119
|
+
headerParameters: [Parameters.accept],
|
|
120
|
+
serializer
|
|
121
|
+
};
|
|
122
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
123
|
+
path: "{nextLink}",
|
|
124
|
+
httpMethod: "GET",
|
|
125
|
+
responses: {
|
|
126
|
+
200: {
|
|
127
|
+
bodyMapper: Mappers.OperationListResult
|
|
128
|
+
},
|
|
129
|
+
default: {
|
|
130
|
+
bodyMapper: Mappers.ErrorResponse
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
queryParameters: [Parameters.apiVersion],
|
|
134
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
135
|
+
headerParameters: [Parameters.accept],
|
|
136
|
+
serializer
|
|
137
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { EntityInfo, EntitiesListOptionalParams } from "../models";
|
|
11
|
+
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Interface representing a Entities. */
|
|
14
|
+
export interface Entities {
|
|
15
|
+
/**
|
|
16
|
+
* List all entities (Management Groups, Subscriptions, etc.) for the authenticated user.
|
|
17
|
+
*
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
list(
|
|
21
|
+
options?: EntitiesListOptionalParams
|
|
22
|
+
): PagedAsyncIterableIterator<EntityInfo>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 {
|
|
10
|
+
HierarchySettingsListOptionalParams,
|
|
11
|
+
HierarchySettingsListResponse,
|
|
12
|
+
HierarchySettingsGetOptionalParams,
|
|
13
|
+
HierarchySettingsGetResponse,
|
|
14
|
+
CreateOrUpdateSettingsRequest,
|
|
15
|
+
HierarchySettingsCreateOrUpdateOptionalParams,
|
|
16
|
+
HierarchySettingsCreateOrUpdateResponse,
|
|
17
|
+
HierarchySettingsUpdateOptionalParams,
|
|
18
|
+
HierarchySettingsUpdateResponse,
|
|
19
|
+
HierarchySettingsDeleteOptionalParams
|
|
20
|
+
} from "../models";
|
|
21
|
+
|
|
22
|
+
/** Interface representing a HierarchySettingsOperations. */
|
|
23
|
+
export interface HierarchySettingsOperations {
|
|
24
|
+
/**
|
|
25
|
+
* Gets all the hierarchy settings defined at the Management Group level. Settings can only be set on
|
|
26
|
+
* the root Management Group of the hierarchy.
|
|
27
|
+
*
|
|
28
|
+
* @param groupId Management Group ID.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
list(
|
|
32
|
+
groupId: string,
|
|
33
|
+
options?: HierarchySettingsListOptionalParams
|
|
34
|
+
): Promise<HierarchySettingsListResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Gets the hierarchy settings defined at the Management Group level. Settings can only be set on the
|
|
37
|
+
* root Management Group of the hierarchy.
|
|
38
|
+
*
|
|
39
|
+
* @param groupId Management Group ID.
|
|
40
|
+
* @param options The options parameters.
|
|
41
|
+
*/
|
|
42
|
+
get(
|
|
43
|
+
groupId: string,
|
|
44
|
+
options?: HierarchySettingsGetOptionalParams
|
|
45
|
+
): Promise<HierarchySettingsGetResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Creates or updates the hierarchy settings defined at the Management Group level.
|
|
48
|
+
*
|
|
49
|
+
* @param groupId Management Group ID.
|
|
50
|
+
* @param createTenantSettingsRequest Tenant level settings request parameter.
|
|
51
|
+
* @param options The options parameters.
|
|
52
|
+
*/
|
|
53
|
+
createOrUpdate(
|
|
54
|
+
groupId: string,
|
|
55
|
+
createTenantSettingsRequest: CreateOrUpdateSettingsRequest,
|
|
56
|
+
options?: HierarchySettingsCreateOrUpdateOptionalParams
|
|
57
|
+
): Promise<HierarchySettingsCreateOrUpdateResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Updates the hierarchy settings defined at the Management Group level.
|
|
60
|
+
*
|
|
61
|
+
* @param groupId Management Group ID.
|
|
62
|
+
* @param createTenantSettingsRequest Tenant level settings request parameter.
|
|
63
|
+
* @param options The options parameters.
|
|
64
|
+
*/
|
|
65
|
+
update(
|
|
66
|
+
groupId: string,
|
|
67
|
+
createTenantSettingsRequest: CreateOrUpdateSettingsRequest,
|
|
68
|
+
options?: HierarchySettingsUpdateOptionalParams
|
|
69
|
+
): Promise<HierarchySettingsUpdateResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Deletes the hierarchy settings defined at the Management Group level.
|
|
72
|
+
*
|
|
73
|
+
* @param groupId Management Group ID.
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
delete(
|
|
77
|
+
groupId: string,
|
|
78
|
+
options?: HierarchySettingsDeleteOptionalParams
|
|
79
|
+
): Promise<void>;
|
|
80
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
export * from "./managementGroups";
|
|
10
|
+
export * from "./managementGroupSubscriptions";
|
|
11
|
+
export * from "./hierarchySettingsOperations";
|
|
12
|
+
export * from "./operations";
|
|
13
|
+
export * from "./entities";
|
|
@@ -0,0 +1,69 @@
|
|
|
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 { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
SubscriptionUnderManagementGroup,
|
|
12
|
+
ManagementGroupSubscriptionsGetSubscriptionsUnderManagementGroupOptionalParams,
|
|
13
|
+
ManagementGroupSubscriptionsCreateOptionalParams,
|
|
14
|
+
ManagementGroupSubscriptionsCreateResponse,
|
|
15
|
+
ManagementGroupSubscriptionsDeleteOptionalParams,
|
|
16
|
+
ManagementGroupSubscriptionsGetSubscriptionOptionalParams,
|
|
17
|
+
ManagementGroupSubscriptionsGetSubscriptionResponse
|
|
18
|
+
} from "../models";
|
|
19
|
+
|
|
20
|
+
/// <reference lib="esnext.asynciterable" />
|
|
21
|
+
/** Interface representing a ManagementGroupSubscriptions. */
|
|
22
|
+
export interface ManagementGroupSubscriptions {
|
|
23
|
+
/**
|
|
24
|
+
* Retrieves details about all subscriptions which are associated with the management group.
|
|
25
|
+
*
|
|
26
|
+
* @param groupId Management Group ID.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
listSubscriptionsUnderManagementGroup(
|
|
30
|
+
groupId: string,
|
|
31
|
+
options?: ManagementGroupSubscriptionsGetSubscriptionsUnderManagementGroupOptionalParams
|
|
32
|
+
): PagedAsyncIterableIterator<SubscriptionUnderManagementGroup>;
|
|
33
|
+
/**
|
|
34
|
+
* Associates existing subscription with the management group.
|
|
35
|
+
*
|
|
36
|
+
* @param groupId Management Group ID.
|
|
37
|
+
* @param subscriptionId Subscription ID.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
create(
|
|
41
|
+
groupId: string,
|
|
42
|
+
subscriptionId: string,
|
|
43
|
+
options?: ManagementGroupSubscriptionsCreateOptionalParams
|
|
44
|
+
): Promise<ManagementGroupSubscriptionsCreateResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* De-associates subscription from the management group.
|
|
47
|
+
*
|
|
48
|
+
* @param groupId Management Group ID.
|
|
49
|
+
* @param subscriptionId Subscription ID.
|
|
50
|
+
* @param options The options parameters.
|
|
51
|
+
*/
|
|
52
|
+
delete(
|
|
53
|
+
groupId: string,
|
|
54
|
+
subscriptionId: string,
|
|
55
|
+
options?: ManagementGroupSubscriptionsDeleteOptionalParams
|
|
56
|
+
): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Retrieves details about given subscription which is associated with the management group.
|
|
59
|
+
*
|
|
60
|
+
* @param groupId Management Group ID.
|
|
61
|
+
* @param subscriptionId Subscription ID.
|
|
62
|
+
* @param options The options parameters.
|
|
63
|
+
*/
|
|
64
|
+
getSubscription(
|
|
65
|
+
groupId: string,
|
|
66
|
+
subscriptionId: string,
|
|
67
|
+
options?: ManagementGroupSubscriptionsGetSubscriptionOptionalParams
|
|
68
|
+
): Promise<ManagementGroupSubscriptionsGetSubscriptionResponse>;
|
|
69
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
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 { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
ManagementGroupInfo,
|
|
13
|
+
ManagementGroupsListOptionalParams,
|
|
14
|
+
DescendantInfo,
|
|
15
|
+
ManagementGroupsGetDescendantsOptionalParams,
|
|
16
|
+
ManagementGroupsGetOptionalParams,
|
|
17
|
+
ManagementGroupsGetResponse,
|
|
18
|
+
CreateManagementGroupRequest,
|
|
19
|
+
ManagementGroupsCreateOrUpdateOptionalParams,
|
|
20
|
+
ManagementGroupsCreateOrUpdateResponse,
|
|
21
|
+
PatchManagementGroupRequest,
|
|
22
|
+
ManagementGroupsUpdateOptionalParams,
|
|
23
|
+
ManagementGroupsUpdateResponse,
|
|
24
|
+
ManagementGroupsDeleteOptionalParams,
|
|
25
|
+
ManagementGroupsDeleteResponse
|
|
26
|
+
} from "../models";
|
|
27
|
+
|
|
28
|
+
/// <reference lib="esnext.asynciterable" />
|
|
29
|
+
/** Interface representing a ManagementGroups. */
|
|
30
|
+
export interface ManagementGroups {
|
|
31
|
+
/**
|
|
32
|
+
* List management groups for the authenticated user.
|
|
33
|
+
*
|
|
34
|
+
* @param options The options parameters.
|
|
35
|
+
*/
|
|
36
|
+
list(
|
|
37
|
+
options?: ManagementGroupsListOptionalParams
|
|
38
|
+
): PagedAsyncIterableIterator<ManagementGroupInfo>;
|
|
39
|
+
/**
|
|
40
|
+
* List all entities that descend from a management group.
|
|
41
|
+
*
|
|
42
|
+
* @param groupId Management Group ID.
|
|
43
|
+
* @param options The options parameters.
|
|
44
|
+
*/
|
|
45
|
+
listDescendants(
|
|
46
|
+
groupId: string,
|
|
47
|
+
options?: ManagementGroupsGetDescendantsOptionalParams
|
|
48
|
+
): PagedAsyncIterableIterator<DescendantInfo>;
|
|
49
|
+
/**
|
|
50
|
+
* Get the details of the management group.
|
|
51
|
+
*
|
|
52
|
+
* @param groupId Management Group ID.
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
get(
|
|
56
|
+
groupId: string,
|
|
57
|
+
options?: ManagementGroupsGetOptionalParams
|
|
58
|
+
): Promise<ManagementGroupsGetResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* Create or update a management group.
|
|
61
|
+
* If a management group is already created and a subsequent create request is issued with different
|
|
62
|
+
* properties, the management group properties will be updated.
|
|
63
|
+
*
|
|
64
|
+
* @param groupId Management Group ID.
|
|
65
|
+
* @param createManagementGroupRequest Management group creation parameters.
|
|
66
|
+
* @param options The options parameters.
|
|
67
|
+
*/
|
|
68
|
+
beginCreateOrUpdate(
|
|
69
|
+
groupId: string,
|
|
70
|
+
createManagementGroupRequest: CreateManagementGroupRequest,
|
|
71
|
+
options?: ManagementGroupsCreateOrUpdateOptionalParams
|
|
72
|
+
): Promise<
|
|
73
|
+
PollerLike<
|
|
74
|
+
PollOperationState<ManagementGroupsCreateOrUpdateResponse>,
|
|
75
|
+
ManagementGroupsCreateOrUpdateResponse
|
|
76
|
+
>
|
|
77
|
+
>;
|
|
78
|
+
/**
|
|
79
|
+
* Create or update a management group.
|
|
80
|
+
* If a management group is already created and a subsequent create request is issued with different
|
|
81
|
+
* properties, the management group properties will be updated.
|
|
82
|
+
*
|
|
83
|
+
* @param groupId Management Group ID.
|
|
84
|
+
* @param createManagementGroupRequest Management group creation parameters.
|
|
85
|
+
* @param options The options parameters.
|
|
86
|
+
*/
|
|
87
|
+
beginCreateOrUpdateAndWait(
|
|
88
|
+
groupId: string,
|
|
89
|
+
createManagementGroupRequest: CreateManagementGroupRequest,
|
|
90
|
+
options?: ManagementGroupsCreateOrUpdateOptionalParams
|
|
91
|
+
): Promise<ManagementGroupsCreateOrUpdateResponse>;
|
|
92
|
+
/**
|
|
93
|
+
* Update a management group.
|
|
94
|
+
*
|
|
95
|
+
* @param groupId Management Group ID.
|
|
96
|
+
* @param patchGroupRequest Management group patch parameters.
|
|
97
|
+
* @param options The options parameters.
|
|
98
|
+
*/
|
|
99
|
+
update(
|
|
100
|
+
groupId: string,
|
|
101
|
+
patchGroupRequest: PatchManagementGroupRequest,
|
|
102
|
+
options?: ManagementGroupsUpdateOptionalParams
|
|
103
|
+
): Promise<ManagementGroupsUpdateResponse>;
|
|
104
|
+
/**
|
|
105
|
+
* Delete management group.
|
|
106
|
+
* If a management group contains child resources, the request will fail.
|
|
107
|
+
*
|
|
108
|
+
* @param groupId Management Group ID.
|
|
109
|
+
* @param options The options parameters.
|
|
110
|
+
*/
|
|
111
|
+
beginDelete(
|
|
112
|
+
groupId: string,
|
|
113
|
+
options?: ManagementGroupsDeleteOptionalParams
|
|
114
|
+
): Promise<
|
|
115
|
+
PollerLike<
|
|
116
|
+
PollOperationState<ManagementGroupsDeleteResponse>,
|
|
117
|
+
ManagementGroupsDeleteResponse
|
|
118
|
+
>
|
|
119
|
+
>;
|
|
120
|
+
/**
|
|
121
|
+
* Delete management group.
|
|
122
|
+
* If a management group contains child resources, the request will fail.
|
|
123
|
+
*
|
|
124
|
+
* @param groupId Management Group ID.
|
|
125
|
+
* @param options The options parameters.
|
|
126
|
+
*/
|
|
127
|
+
beginDeleteAndWait(
|
|
128
|
+
groupId: string,
|
|
129
|
+
options?: ManagementGroupsDeleteOptionalParams
|
|
130
|
+
): Promise<ManagementGroupsDeleteResponse>;
|
|
131
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Operation, OperationsListOptionalParams } from "../models";
|
|
11
|
+
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Interface representing a Operations. */
|
|
14
|
+
export interface Operations {
|
|
15
|
+
/**
|
|
16
|
+
* Lists all of the available Management REST API operations.
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
list(
|
|
20
|
+
options?: OperationsListOptionalParams
|
|
21
|
+
): PagedAsyncIterableIterator<Operation>;
|
|
22
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
"module": "es6",
|
|
4
4
|
"moduleResolution": "node",
|
|
5
5
|
"strict": true,
|
|
6
|
-
"target": "
|
|
6
|
+
"target": "es6",
|
|
7
7
|
"sourceMap": true,
|
|
8
8
|
"declarationMap": true,
|
|
9
9
|
"esModuleInterop": true,
|
|
10
10
|
"allowSyntheticDefaultImports": true,
|
|
11
11
|
"forceConsistentCasingInFileNames": true,
|
|
12
|
-
"lib": ["es6"],
|
|
12
|
+
"lib": ["es6", "dom"],
|
|
13
13
|
"declaration": true,
|
|
14
|
-
"outDir": "./esm",
|
|
14
|
+
"outDir": "./dist-esm",
|
|
15
15
|
"importHelpers": true
|
|
16
16
|
},
|
|
17
|
-
"include": ["./
|
|
17
|
+
"include": ["./src/**/*.ts", "./test/**/*.ts"],
|
|
18
18
|
"exclude": ["node_modules"]
|
|
19
19
|
}
|