@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
|
@@ -1,15 +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
|
-
ErrorResponse,
|
|
13
|
-
ErrorDetails
|
|
14
|
-
} from "../models/mappers";
|
|
15
|
-
|
|
@@ -1,29 +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
|
-
ManagementGroupListResult,
|
|
13
|
-
ManagementGroupInfo,
|
|
14
|
-
ErrorResponse,
|
|
15
|
-
ErrorDetails,
|
|
16
|
-
ManagementGroup,
|
|
17
|
-
BaseResource,
|
|
18
|
-
ManagementGroupDetails,
|
|
19
|
-
ParentGroupInfo,
|
|
20
|
-
ManagementGroupChildInfo,
|
|
21
|
-
CreateManagementGroupRequest,
|
|
22
|
-
CreateManagementGroupDetails,
|
|
23
|
-
CreateParentGroupInfo,
|
|
24
|
-
CreateManagementGroupChildInfo,
|
|
25
|
-
OperationResults,
|
|
26
|
-
PatchManagementGroupRequest,
|
|
27
|
-
EntityHierarchyItem
|
|
28
|
-
} from "../models/mappers";
|
|
29
|
-
|
|
@@ -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
|
-
OperationListResult,
|
|
13
|
-
Operation,
|
|
14
|
-
OperationDisplayProperties,
|
|
15
|
-
ErrorResponse,
|
|
16
|
-
ErrorDetails
|
|
17
|
-
} from "../models/mappers";
|
|
18
|
-
|
package/lib/models/parameters.ts
DELETED
|
@@ -1,196 +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
|
-
|
|
13
|
-
export const acceptLanguage: msRest.OperationParameter = {
|
|
14
|
-
parameterPath: "acceptLanguage",
|
|
15
|
-
mapper: {
|
|
16
|
-
serializedName: "accept-language",
|
|
17
|
-
defaultValue: 'en-US',
|
|
18
|
-
type: {
|
|
19
|
-
name: "String"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
export const apiVersion: msRest.OperationQueryParameter = {
|
|
24
|
-
parameterPath: "apiVersion",
|
|
25
|
-
mapper: {
|
|
26
|
-
required: true,
|
|
27
|
-
serializedName: "api-version",
|
|
28
|
-
type: {
|
|
29
|
-
name: "String"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
export const cacheControl: msRest.OperationParameter = {
|
|
34
|
-
parameterPath: [
|
|
35
|
-
"options",
|
|
36
|
-
"cacheControl"
|
|
37
|
-
],
|
|
38
|
-
mapper: {
|
|
39
|
-
serializedName: "Cache-Control",
|
|
40
|
-
defaultValue: 'no-cache',
|
|
41
|
-
type: {
|
|
42
|
-
name: "String"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
export const expand: msRest.OperationQueryParameter = {
|
|
47
|
-
parameterPath: [
|
|
48
|
-
"options",
|
|
49
|
-
"expand"
|
|
50
|
-
],
|
|
51
|
-
mapper: {
|
|
52
|
-
serializedName: "$expand",
|
|
53
|
-
type: {
|
|
54
|
-
name: "String"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
export const filter: msRest.OperationQueryParameter = {
|
|
59
|
-
parameterPath: [
|
|
60
|
-
"options",
|
|
61
|
-
"filter"
|
|
62
|
-
],
|
|
63
|
-
mapper: {
|
|
64
|
-
serializedName: "$filter",
|
|
65
|
-
type: {
|
|
66
|
-
name: "String"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
export const groupId: msRest.OperationURLParameter = {
|
|
71
|
-
parameterPath: "groupId",
|
|
72
|
-
mapper: {
|
|
73
|
-
required: true,
|
|
74
|
-
serializedName: "groupId",
|
|
75
|
-
type: {
|
|
76
|
-
name: "String"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
export const groupName: msRest.OperationQueryParameter = {
|
|
81
|
-
parameterPath: [
|
|
82
|
-
"options",
|
|
83
|
-
"groupName"
|
|
84
|
-
],
|
|
85
|
-
mapper: {
|
|
86
|
-
serializedName: "groupName",
|
|
87
|
-
type: {
|
|
88
|
-
name: "String"
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
export const nextPageLink: msRest.OperationURLParameter = {
|
|
93
|
-
parameterPath: "nextPageLink",
|
|
94
|
-
mapper: {
|
|
95
|
-
required: true,
|
|
96
|
-
serializedName: "nextLink",
|
|
97
|
-
type: {
|
|
98
|
-
name: "String"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
skipEncoding: true
|
|
102
|
-
};
|
|
103
|
-
export const recurse: msRest.OperationQueryParameter = {
|
|
104
|
-
parameterPath: [
|
|
105
|
-
"options",
|
|
106
|
-
"recurse"
|
|
107
|
-
],
|
|
108
|
-
mapper: {
|
|
109
|
-
serializedName: "$recurse",
|
|
110
|
-
type: {
|
|
111
|
-
name: "Boolean"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
export const search: msRest.OperationQueryParameter = {
|
|
116
|
-
parameterPath: [
|
|
117
|
-
"options",
|
|
118
|
-
"search"
|
|
119
|
-
],
|
|
120
|
-
mapper: {
|
|
121
|
-
serializedName: "$search",
|
|
122
|
-
type: {
|
|
123
|
-
name: "String"
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
export const select: msRest.OperationQueryParameter = {
|
|
128
|
-
parameterPath: [
|
|
129
|
-
"options",
|
|
130
|
-
"select"
|
|
131
|
-
],
|
|
132
|
-
mapper: {
|
|
133
|
-
serializedName: "$select",
|
|
134
|
-
type: {
|
|
135
|
-
name: "String"
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
export const skip: msRest.OperationQueryParameter = {
|
|
140
|
-
parameterPath: [
|
|
141
|
-
"options",
|
|
142
|
-
"skip"
|
|
143
|
-
],
|
|
144
|
-
mapper: {
|
|
145
|
-
serializedName: "$skip",
|
|
146
|
-
type: {
|
|
147
|
-
name: "Number"
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
export const skiptoken: msRest.OperationQueryParameter = {
|
|
152
|
-
parameterPath: [
|
|
153
|
-
"options",
|
|
154
|
-
"skiptoken"
|
|
155
|
-
],
|
|
156
|
-
mapper: {
|
|
157
|
-
serializedName: "$skiptoken",
|
|
158
|
-
type: {
|
|
159
|
-
name: "String"
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
export const subscriptionId: msRest.OperationURLParameter = {
|
|
164
|
-
parameterPath: "subscriptionId",
|
|
165
|
-
mapper: {
|
|
166
|
-
required: true,
|
|
167
|
-
serializedName: "subscriptionId",
|
|
168
|
-
type: {
|
|
169
|
-
name: "String"
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
export const top: msRest.OperationQueryParameter = {
|
|
174
|
-
parameterPath: [
|
|
175
|
-
"options",
|
|
176
|
-
"top"
|
|
177
|
-
],
|
|
178
|
-
mapper: {
|
|
179
|
-
serializedName: "$top",
|
|
180
|
-
type: {
|
|
181
|
-
name: "Number"
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
export const view: msRest.OperationQueryParameter = {
|
|
186
|
-
parameterPath: [
|
|
187
|
-
"options",
|
|
188
|
-
"view"
|
|
189
|
-
],
|
|
190
|
-
mapper: {
|
|
191
|
-
serializedName: "$view",
|
|
192
|
-
type: {
|
|
193
|
-
name: "String"
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
};
|
|
@@ -1,133 +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/entitiesMappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { ManagementGroupsAPIContext } from "../managementGroupsAPIContext";
|
|
16
|
-
|
|
17
|
-
/** Class representing a Entities. */
|
|
18
|
-
export class Entities {
|
|
19
|
-
private readonly client: ManagementGroupsAPIContext;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Create a Entities.
|
|
23
|
-
* @param {ManagementGroupsAPIContext} client Reference to the service client.
|
|
24
|
-
*/
|
|
25
|
-
constructor(client: ManagementGroupsAPIContext) {
|
|
26
|
-
this.client = client;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* List all entities (Management Groups, Subscriptions, etc.) for the authenticated user.
|
|
31
|
-
* @param [options] The optional parameters
|
|
32
|
-
* @returns Promise<Models.EntitiesListResponse>
|
|
33
|
-
*/
|
|
34
|
-
list(options?: Models.EntitiesListOptionalParams): Promise<Models.EntitiesListResponse>;
|
|
35
|
-
/**
|
|
36
|
-
* @param callback The callback
|
|
37
|
-
*/
|
|
38
|
-
list(callback: msRest.ServiceCallback<Models.EntityListResult>): void;
|
|
39
|
-
/**
|
|
40
|
-
* @param options The optional parameters
|
|
41
|
-
* @param callback The callback
|
|
42
|
-
*/
|
|
43
|
-
list(options: Models.EntitiesListOptionalParams, callback: msRest.ServiceCallback<Models.EntityListResult>): void;
|
|
44
|
-
list(options?: Models.EntitiesListOptionalParams | msRest.ServiceCallback<Models.EntityListResult>, callback?: msRest.ServiceCallback<Models.EntityListResult>): Promise<Models.EntitiesListResponse> {
|
|
45
|
-
return this.client.sendOperationRequest(
|
|
46
|
-
{
|
|
47
|
-
options
|
|
48
|
-
},
|
|
49
|
-
listOperationSpec,
|
|
50
|
-
callback) as Promise<Models.EntitiesListResponse>;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* List all entities (Management Groups, Subscriptions, etc.) for the authenticated user.
|
|
55
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
56
|
-
* @param [options] The optional parameters
|
|
57
|
-
* @returns Promise<Models.EntitiesListNextResponse>
|
|
58
|
-
*/
|
|
59
|
-
listNext(nextPageLink: string, options?: Models.EntitiesListNextOptionalParams): Promise<Models.EntitiesListNextResponse>;
|
|
60
|
-
/**
|
|
61
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
62
|
-
* @param callback The callback
|
|
63
|
-
*/
|
|
64
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.EntityListResult>): void;
|
|
65
|
-
/**
|
|
66
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
67
|
-
* @param options The optional parameters
|
|
68
|
-
* @param callback The callback
|
|
69
|
-
*/
|
|
70
|
-
listNext(nextPageLink: string, options: Models.EntitiesListNextOptionalParams, callback: msRest.ServiceCallback<Models.EntityListResult>): void;
|
|
71
|
-
listNext(nextPageLink: string, options?: Models.EntitiesListNextOptionalParams | msRest.ServiceCallback<Models.EntityListResult>, callback?: msRest.ServiceCallback<Models.EntityListResult>): Promise<Models.EntitiesListNextResponse> {
|
|
72
|
-
return this.client.sendOperationRequest(
|
|
73
|
-
{
|
|
74
|
-
nextPageLink,
|
|
75
|
-
options
|
|
76
|
-
},
|
|
77
|
-
listNextOperationSpec,
|
|
78
|
-
callback) as Promise<Models.EntitiesListNextResponse>;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// Operation Specifications
|
|
83
|
-
const serializer = new msRest.Serializer(Mappers);
|
|
84
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
85
|
-
httpMethod: "POST",
|
|
86
|
-
path: "providers/Microsoft.Management/getEntities",
|
|
87
|
-
queryParameters: [
|
|
88
|
-
Parameters.apiVersion,
|
|
89
|
-
Parameters.skiptoken,
|
|
90
|
-
Parameters.skip,
|
|
91
|
-
Parameters.top,
|
|
92
|
-
Parameters.select,
|
|
93
|
-
Parameters.search,
|
|
94
|
-
Parameters.filter,
|
|
95
|
-
Parameters.view,
|
|
96
|
-
Parameters.groupName
|
|
97
|
-
],
|
|
98
|
-
headerParameters: [
|
|
99
|
-
Parameters.cacheControl,
|
|
100
|
-
Parameters.acceptLanguage
|
|
101
|
-
],
|
|
102
|
-
responses: {
|
|
103
|
-
200: {
|
|
104
|
-
bodyMapper: Mappers.EntityListResult
|
|
105
|
-
},
|
|
106
|
-
default: {
|
|
107
|
-
bodyMapper: Mappers.ErrorResponse
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
serializer
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
114
|
-
httpMethod: "POST",
|
|
115
|
-
baseUrl: "https://management.azure.com",
|
|
116
|
-
path: "{nextLink}",
|
|
117
|
-
urlParameters: [
|
|
118
|
-
Parameters.nextPageLink
|
|
119
|
-
],
|
|
120
|
-
headerParameters: [
|
|
121
|
-
Parameters.cacheControl,
|
|
122
|
-
Parameters.acceptLanguage
|
|
123
|
-
],
|
|
124
|
-
responses: {
|
|
125
|
-
200: {
|
|
126
|
-
bodyMapper: Mappers.EntityListResult
|
|
127
|
-
},
|
|
128
|
-
default: {
|
|
129
|
-
bodyMapper: Mappers.ErrorResponse
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
serializer
|
|
133
|
-
};
|
|
@@ -1,140 +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/managementGroupSubscriptionsMappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { ManagementGroupsAPIContext } from "../managementGroupsAPIContext";
|
|
16
|
-
|
|
17
|
-
/** Class representing a ManagementGroupSubscriptions. */
|
|
18
|
-
export class ManagementGroupSubscriptions {
|
|
19
|
-
private readonly client: ManagementGroupsAPIContext;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Create a ManagementGroupSubscriptions.
|
|
23
|
-
* @param {ManagementGroupsAPIContext} client Reference to the service client.
|
|
24
|
-
*/
|
|
25
|
-
constructor(client: ManagementGroupsAPIContext) {
|
|
26
|
-
this.client = client;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Associates existing subscription with the management group.
|
|
31
|
-
* @param groupId Management Group ID.
|
|
32
|
-
* @param subscriptionId Subscription ID.
|
|
33
|
-
* @param [options] The optional parameters
|
|
34
|
-
* @returns Promise<msRest.RestResponse>
|
|
35
|
-
*/
|
|
36
|
-
create(groupId: string, subscriptionId: string, options?: Models.ManagementGroupSubscriptionsCreateOptionalParams): Promise<msRest.RestResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* @param groupId Management Group ID.
|
|
39
|
-
* @param subscriptionId Subscription ID.
|
|
40
|
-
* @param callback The callback
|
|
41
|
-
*/
|
|
42
|
-
create(groupId: string, subscriptionId: string, callback: msRest.ServiceCallback<void>): void;
|
|
43
|
-
/**
|
|
44
|
-
* @param groupId Management Group ID.
|
|
45
|
-
* @param subscriptionId Subscription ID.
|
|
46
|
-
* @param options The optional parameters
|
|
47
|
-
* @param callback The callback
|
|
48
|
-
*/
|
|
49
|
-
create(groupId: string, subscriptionId: string, options: Models.ManagementGroupSubscriptionsCreateOptionalParams, callback: msRest.ServiceCallback<void>): void;
|
|
50
|
-
create(groupId: string, subscriptionId: string, options?: Models.ManagementGroupSubscriptionsCreateOptionalParams | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
|
|
51
|
-
return this.client.sendOperationRequest(
|
|
52
|
-
{
|
|
53
|
-
groupId,
|
|
54
|
-
subscriptionId,
|
|
55
|
-
options
|
|
56
|
-
},
|
|
57
|
-
createOperationSpec,
|
|
58
|
-
callback);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* De-associates subscription from the management group.
|
|
63
|
-
* @param groupId Management Group ID.
|
|
64
|
-
* @param subscriptionId Subscription ID.
|
|
65
|
-
* @param [options] The optional parameters
|
|
66
|
-
* @returns Promise<msRest.RestResponse>
|
|
67
|
-
*/
|
|
68
|
-
deleteMethod(groupId: string, subscriptionId: string, options?: Models.ManagementGroupSubscriptionsDeleteMethodOptionalParams): Promise<msRest.RestResponse>;
|
|
69
|
-
/**
|
|
70
|
-
* @param groupId Management Group ID.
|
|
71
|
-
* @param subscriptionId Subscription ID.
|
|
72
|
-
* @param callback The callback
|
|
73
|
-
*/
|
|
74
|
-
deleteMethod(groupId: string, subscriptionId: string, callback: msRest.ServiceCallback<void>): void;
|
|
75
|
-
/**
|
|
76
|
-
* @param groupId Management Group ID.
|
|
77
|
-
* @param subscriptionId Subscription ID.
|
|
78
|
-
* @param options The optional parameters
|
|
79
|
-
* @param callback The callback
|
|
80
|
-
*/
|
|
81
|
-
deleteMethod(groupId: string, subscriptionId: string, options: Models.ManagementGroupSubscriptionsDeleteMethodOptionalParams, callback: msRest.ServiceCallback<void>): void;
|
|
82
|
-
deleteMethod(groupId: string, subscriptionId: string, options?: Models.ManagementGroupSubscriptionsDeleteMethodOptionalParams | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
|
|
83
|
-
return this.client.sendOperationRequest(
|
|
84
|
-
{
|
|
85
|
-
groupId,
|
|
86
|
-
subscriptionId,
|
|
87
|
-
options
|
|
88
|
-
},
|
|
89
|
-
deleteMethodOperationSpec,
|
|
90
|
-
callback);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Operation Specifications
|
|
95
|
-
const serializer = new msRest.Serializer(Mappers);
|
|
96
|
-
const createOperationSpec: msRest.OperationSpec = {
|
|
97
|
-
httpMethod: "PUT",
|
|
98
|
-
path: "providers/Microsoft.Management/managementGroups/{groupId}/subscriptions/{subscriptionId}",
|
|
99
|
-
urlParameters: [
|
|
100
|
-
Parameters.groupId,
|
|
101
|
-
Parameters.subscriptionId
|
|
102
|
-
],
|
|
103
|
-
queryParameters: [
|
|
104
|
-
Parameters.apiVersion
|
|
105
|
-
],
|
|
106
|
-
headerParameters: [
|
|
107
|
-
Parameters.cacheControl,
|
|
108
|
-
Parameters.acceptLanguage
|
|
109
|
-
],
|
|
110
|
-
responses: {
|
|
111
|
-
204: {},
|
|
112
|
-
default: {
|
|
113
|
-
bodyMapper: Mappers.ErrorResponse
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
serializer
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
120
|
-
httpMethod: "DELETE",
|
|
121
|
-
path: "providers/Microsoft.Management/managementGroups/{groupId}/subscriptions/{subscriptionId}",
|
|
122
|
-
urlParameters: [
|
|
123
|
-
Parameters.groupId,
|
|
124
|
-
Parameters.subscriptionId
|
|
125
|
-
],
|
|
126
|
-
queryParameters: [
|
|
127
|
-
Parameters.apiVersion
|
|
128
|
-
],
|
|
129
|
-
headerParameters: [
|
|
130
|
-
Parameters.cacheControl,
|
|
131
|
-
Parameters.acceptLanguage
|
|
132
|
-
],
|
|
133
|
-
responses: {
|
|
134
|
-
204: {},
|
|
135
|
-
default: {
|
|
136
|
-
bodyMapper: Mappers.ErrorResponse
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
serializer
|
|
140
|
-
};
|