@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,365 +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 msRestAzure from "@azure/ms-rest-azure-js";
|
|
13
|
-
import * as Models from "../models";
|
|
14
|
-
import * as Mappers from "../models/managementGroupsMappers";
|
|
15
|
-
import * as Parameters from "../models/parameters";
|
|
16
|
-
import { ManagementGroupsAPIContext } from "../managementGroupsAPIContext";
|
|
17
|
-
|
|
18
|
-
/** Class representing a ManagementGroups. */
|
|
19
|
-
export class ManagementGroups {
|
|
20
|
-
private readonly client: ManagementGroupsAPIContext;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Create a ManagementGroups.
|
|
24
|
-
* @param {ManagementGroupsAPIContext} client Reference to the service client.
|
|
25
|
-
*/
|
|
26
|
-
constructor(client: ManagementGroupsAPIContext) {
|
|
27
|
-
this.client = client;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* List management groups for the authenticated user.
|
|
32
|
-
* @param [options] The optional parameters
|
|
33
|
-
* @returns Promise<Models.ManagementGroupsListResponse>
|
|
34
|
-
*/
|
|
35
|
-
list(options?: Models.ManagementGroupsListOptionalParams): Promise<Models.ManagementGroupsListResponse>;
|
|
36
|
-
/**
|
|
37
|
-
* @param callback The callback
|
|
38
|
-
*/
|
|
39
|
-
list(callback: msRest.ServiceCallback<Models.ManagementGroupListResult>): void;
|
|
40
|
-
/**
|
|
41
|
-
* @param options The optional parameters
|
|
42
|
-
* @param callback The callback
|
|
43
|
-
*/
|
|
44
|
-
list(options: Models.ManagementGroupsListOptionalParams, callback: msRest.ServiceCallback<Models.ManagementGroupListResult>): void;
|
|
45
|
-
list(options?: Models.ManagementGroupsListOptionalParams | msRest.ServiceCallback<Models.ManagementGroupListResult>, callback?: msRest.ServiceCallback<Models.ManagementGroupListResult>): Promise<Models.ManagementGroupsListResponse> {
|
|
46
|
-
return this.client.sendOperationRequest(
|
|
47
|
-
{
|
|
48
|
-
options
|
|
49
|
-
},
|
|
50
|
-
listOperationSpec,
|
|
51
|
-
callback) as Promise<Models.ManagementGroupsListResponse>;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Get the details of the management group.
|
|
56
|
-
* @param groupId Management Group ID.
|
|
57
|
-
* @param [options] The optional parameters
|
|
58
|
-
* @returns Promise<Models.ManagementGroupsGetResponse>
|
|
59
|
-
*/
|
|
60
|
-
get(groupId: string, options?: Models.ManagementGroupsGetOptionalParams): Promise<Models.ManagementGroupsGetResponse>;
|
|
61
|
-
/**
|
|
62
|
-
* @param groupId Management Group ID.
|
|
63
|
-
* @param callback The callback
|
|
64
|
-
*/
|
|
65
|
-
get(groupId: string, callback: msRest.ServiceCallback<Models.ManagementGroup>): void;
|
|
66
|
-
/**
|
|
67
|
-
* @param groupId Management Group ID.
|
|
68
|
-
* @param options The optional parameters
|
|
69
|
-
* @param callback The callback
|
|
70
|
-
*/
|
|
71
|
-
get(groupId: string, options: Models.ManagementGroupsGetOptionalParams, callback: msRest.ServiceCallback<Models.ManagementGroup>): void;
|
|
72
|
-
get(groupId: string, options?: Models.ManagementGroupsGetOptionalParams | msRest.ServiceCallback<Models.ManagementGroup>, callback?: msRest.ServiceCallback<Models.ManagementGroup>): Promise<Models.ManagementGroupsGetResponse> {
|
|
73
|
-
return this.client.sendOperationRequest(
|
|
74
|
-
{
|
|
75
|
-
groupId,
|
|
76
|
-
options
|
|
77
|
-
},
|
|
78
|
-
getOperationSpec,
|
|
79
|
-
callback) as Promise<Models.ManagementGroupsGetResponse>;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Create or update a management group. If a management group is already created and a subsequent
|
|
84
|
-
* create request is issued with different properties, the management group properties will be
|
|
85
|
-
* updated.
|
|
86
|
-
* @param groupId Management Group ID.
|
|
87
|
-
* @param createManagementGroupRequest Management group creation parameters.
|
|
88
|
-
* @param [options] The optional parameters
|
|
89
|
-
* @returns Promise<Models.ManagementGroupsCreateOrUpdateResponse>
|
|
90
|
-
*/
|
|
91
|
-
createOrUpdate(groupId: string, createManagementGroupRequest: Models.CreateManagementGroupRequest, options?: Models.ManagementGroupsCreateOrUpdateOptionalParams): Promise<Models.ManagementGroupsCreateOrUpdateResponse> {
|
|
92
|
-
return this.beginCreateOrUpdate(groupId,createManagementGroupRequest,options)
|
|
93
|
-
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.ManagementGroupsCreateOrUpdateResponse>;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Update a management group.
|
|
98
|
-
* @param groupId Management Group ID.
|
|
99
|
-
* @param patchGroupRequest Management group patch parameters.
|
|
100
|
-
* @param [options] The optional parameters
|
|
101
|
-
* @returns Promise<Models.ManagementGroupsUpdateResponse>
|
|
102
|
-
*/
|
|
103
|
-
update(groupId: string, patchGroupRequest: Models.PatchManagementGroupRequest, options?: Models.ManagementGroupsUpdateOptionalParams): Promise<Models.ManagementGroupsUpdateResponse>;
|
|
104
|
-
/**
|
|
105
|
-
* @param groupId Management Group ID.
|
|
106
|
-
* @param patchGroupRequest Management group patch parameters.
|
|
107
|
-
* @param callback The callback
|
|
108
|
-
*/
|
|
109
|
-
update(groupId: string, patchGroupRequest: Models.PatchManagementGroupRequest, callback: msRest.ServiceCallback<Models.ManagementGroup>): void;
|
|
110
|
-
/**
|
|
111
|
-
* @param groupId Management Group ID.
|
|
112
|
-
* @param patchGroupRequest Management group patch parameters.
|
|
113
|
-
* @param options The optional parameters
|
|
114
|
-
* @param callback The callback
|
|
115
|
-
*/
|
|
116
|
-
update(groupId: string, patchGroupRequest: Models.PatchManagementGroupRequest, options: Models.ManagementGroupsUpdateOptionalParams, callback: msRest.ServiceCallback<Models.ManagementGroup>): void;
|
|
117
|
-
update(groupId: string, patchGroupRequest: Models.PatchManagementGroupRequest, options?: Models.ManagementGroupsUpdateOptionalParams | msRest.ServiceCallback<Models.ManagementGroup>, callback?: msRest.ServiceCallback<Models.ManagementGroup>): Promise<Models.ManagementGroupsUpdateResponse> {
|
|
118
|
-
return this.client.sendOperationRequest(
|
|
119
|
-
{
|
|
120
|
-
groupId,
|
|
121
|
-
patchGroupRequest,
|
|
122
|
-
options
|
|
123
|
-
},
|
|
124
|
-
updateOperationSpec,
|
|
125
|
-
callback) as Promise<Models.ManagementGroupsUpdateResponse>;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Delete management group. If a management group contains child resources, the request will fail.
|
|
130
|
-
* @param groupId Management Group ID.
|
|
131
|
-
* @param [options] The optional parameters
|
|
132
|
-
* @returns Promise<Models.ManagementGroupsDeleteMethodResponse>
|
|
133
|
-
*/
|
|
134
|
-
deleteMethod(groupId: string, options?: Models.ManagementGroupsDeleteMethodOptionalParams): Promise<Models.ManagementGroupsDeleteMethodResponse> {
|
|
135
|
-
return this.beginDeleteMethod(groupId,options)
|
|
136
|
-
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.ManagementGroupsDeleteMethodResponse>;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Create or update a management group. If a management group is already created and a subsequent
|
|
141
|
-
* create request is issued with different properties, the management group properties will be
|
|
142
|
-
* updated.
|
|
143
|
-
* @param groupId Management Group ID.
|
|
144
|
-
* @param createManagementGroupRequest Management group creation parameters.
|
|
145
|
-
* @param [options] The optional parameters
|
|
146
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
147
|
-
*/
|
|
148
|
-
beginCreateOrUpdate(groupId: string, createManagementGroupRequest: Models.CreateManagementGroupRequest, options?: Models.ManagementGroupsBeginCreateOrUpdateOptionalParams): Promise<msRestAzure.LROPoller> {
|
|
149
|
-
return this.client.sendLRORequest(
|
|
150
|
-
{
|
|
151
|
-
groupId,
|
|
152
|
-
createManagementGroupRequest,
|
|
153
|
-
options
|
|
154
|
-
},
|
|
155
|
-
beginCreateOrUpdateOperationSpec,
|
|
156
|
-
options);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Delete management group. If a management group contains child resources, the request will fail.
|
|
161
|
-
* @param groupId Management Group ID.
|
|
162
|
-
* @param [options] The optional parameters
|
|
163
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
164
|
-
*/
|
|
165
|
-
beginDeleteMethod(groupId: string, options?: Models.ManagementGroupsBeginDeleteMethodOptionalParams): Promise<msRestAzure.LROPoller> {
|
|
166
|
-
return this.client.sendLRORequest(
|
|
167
|
-
{
|
|
168
|
-
groupId,
|
|
169
|
-
options
|
|
170
|
-
},
|
|
171
|
-
beginDeleteMethodOperationSpec,
|
|
172
|
-
options);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* List management groups for the authenticated user.
|
|
177
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
178
|
-
* @param [options] The optional parameters
|
|
179
|
-
* @returns Promise<Models.ManagementGroupsListNextResponse>
|
|
180
|
-
*/
|
|
181
|
-
listNext(nextPageLink: string, options?: Models.ManagementGroupsListNextOptionalParams): Promise<Models.ManagementGroupsListNextResponse>;
|
|
182
|
-
/**
|
|
183
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
184
|
-
* @param callback The callback
|
|
185
|
-
*/
|
|
186
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ManagementGroupListResult>): void;
|
|
187
|
-
/**
|
|
188
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
189
|
-
* @param options The optional parameters
|
|
190
|
-
* @param callback The callback
|
|
191
|
-
*/
|
|
192
|
-
listNext(nextPageLink: string, options: Models.ManagementGroupsListNextOptionalParams, callback: msRest.ServiceCallback<Models.ManagementGroupListResult>): void;
|
|
193
|
-
listNext(nextPageLink: string, options?: Models.ManagementGroupsListNextOptionalParams | msRest.ServiceCallback<Models.ManagementGroupListResult>, callback?: msRest.ServiceCallback<Models.ManagementGroupListResult>): Promise<Models.ManagementGroupsListNextResponse> {
|
|
194
|
-
return this.client.sendOperationRequest(
|
|
195
|
-
{
|
|
196
|
-
nextPageLink,
|
|
197
|
-
options
|
|
198
|
-
},
|
|
199
|
-
listNextOperationSpec,
|
|
200
|
-
callback) as Promise<Models.ManagementGroupsListNextResponse>;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
// Operation Specifications
|
|
205
|
-
const serializer = new msRest.Serializer(Mappers);
|
|
206
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
207
|
-
httpMethod: "GET",
|
|
208
|
-
path: "providers/Microsoft.Management/managementGroups",
|
|
209
|
-
queryParameters: [
|
|
210
|
-
Parameters.apiVersion,
|
|
211
|
-
Parameters.skiptoken
|
|
212
|
-
],
|
|
213
|
-
headerParameters: [
|
|
214
|
-
Parameters.cacheControl,
|
|
215
|
-
Parameters.acceptLanguage
|
|
216
|
-
],
|
|
217
|
-
responses: {
|
|
218
|
-
200: {
|
|
219
|
-
bodyMapper: Mappers.ManagementGroupListResult
|
|
220
|
-
},
|
|
221
|
-
default: {
|
|
222
|
-
bodyMapper: Mappers.ErrorResponse
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
serializer
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
229
|
-
httpMethod: "GET",
|
|
230
|
-
path: "providers/Microsoft.Management/managementGroups/{groupId}",
|
|
231
|
-
urlParameters: [
|
|
232
|
-
Parameters.groupId
|
|
233
|
-
],
|
|
234
|
-
queryParameters: [
|
|
235
|
-
Parameters.apiVersion,
|
|
236
|
-
Parameters.expand,
|
|
237
|
-
Parameters.recurse,
|
|
238
|
-
Parameters.filter
|
|
239
|
-
],
|
|
240
|
-
headerParameters: [
|
|
241
|
-
Parameters.cacheControl,
|
|
242
|
-
Parameters.acceptLanguage
|
|
243
|
-
],
|
|
244
|
-
responses: {
|
|
245
|
-
200: {
|
|
246
|
-
bodyMapper: Mappers.ManagementGroup
|
|
247
|
-
},
|
|
248
|
-
default: {
|
|
249
|
-
bodyMapper: Mappers.ErrorResponse
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
serializer
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
256
|
-
httpMethod: "PATCH",
|
|
257
|
-
path: "providers/Microsoft.Management/managementGroups/{groupId}",
|
|
258
|
-
urlParameters: [
|
|
259
|
-
Parameters.groupId
|
|
260
|
-
],
|
|
261
|
-
queryParameters: [
|
|
262
|
-
Parameters.apiVersion
|
|
263
|
-
],
|
|
264
|
-
headerParameters: [
|
|
265
|
-
Parameters.cacheControl,
|
|
266
|
-
Parameters.acceptLanguage
|
|
267
|
-
],
|
|
268
|
-
requestBody: {
|
|
269
|
-
parameterPath: "patchGroupRequest",
|
|
270
|
-
mapper: {
|
|
271
|
-
...Mappers.PatchManagementGroupRequest,
|
|
272
|
-
required: true
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
responses: {
|
|
276
|
-
200: {
|
|
277
|
-
bodyMapper: Mappers.ManagementGroup
|
|
278
|
-
},
|
|
279
|
-
default: {
|
|
280
|
-
bodyMapper: Mappers.ErrorResponse
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
serializer
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
287
|
-
httpMethod: "PUT",
|
|
288
|
-
path: "providers/Microsoft.Management/managementGroups/{groupId}",
|
|
289
|
-
urlParameters: [
|
|
290
|
-
Parameters.groupId
|
|
291
|
-
],
|
|
292
|
-
queryParameters: [
|
|
293
|
-
Parameters.apiVersion
|
|
294
|
-
],
|
|
295
|
-
headerParameters: [
|
|
296
|
-
Parameters.cacheControl,
|
|
297
|
-
Parameters.acceptLanguage
|
|
298
|
-
],
|
|
299
|
-
requestBody: {
|
|
300
|
-
parameterPath: "createManagementGroupRequest",
|
|
301
|
-
mapper: {
|
|
302
|
-
...Mappers.CreateManagementGroupRequest,
|
|
303
|
-
required: true
|
|
304
|
-
}
|
|
305
|
-
},
|
|
306
|
-
responses: {
|
|
307
|
-
200: {
|
|
308
|
-
bodyMapper: Mappers.ManagementGroup
|
|
309
|
-
},
|
|
310
|
-
202: {
|
|
311
|
-
bodyMapper: Mappers.OperationResults
|
|
312
|
-
},
|
|
313
|
-
default: {
|
|
314
|
-
bodyMapper: Mappers.ErrorResponse
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
serializer
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
321
|
-
httpMethod: "DELETE",
|
|
322
|
-
path: "providers/Microsoft.Management/managementGroups/{groupId}",
|
|
323
|
-
urlParameters: [
|
|
324
|
-
Parameters.groupId
|
|
325
|
-
],
|
|
326
|
-
queryParameters: [
|
|
327
|
-
Parameters.apiVersion
|
|
328
|
-
],
|
|
329
|
-
headerParameters: [
|
|
330
|
-
Parameters.cacheControl,
|
|
331
|
-
Parameters.acceptLanguage
|
|
332
|
-
],
|
|
333
|
-
responses: {
|
|
334
|
-
202: {
|
|
335
|
-
bodyMapper: Mappers.OperationResults
|
|
336
|
-
},
|
|
337
|
-
204: {},
|
|
338
|
-
default: {
|
|
339
|
-
bodyMapper: Mappers.ErrorResponse
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
serializer
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
346
|
-
httpMethod: "GET",
|
|
347
|
-
baseUrl: "https://management.azure.com",
|
|
348
|
-
path: "{nextLink}",
|
|
349
|
-
urlParameters: [
|
|
350
|
-
Parameters.nextPageLink
|
|
351
|
-
],
|
|
352
|
-
headerParameters: [
|
|
353
|
-
Parameters.cacheControl,
|
|
354
|
-
Parameters.acceptLanguage
|
|
355
|
-
],
|
|
356
|
-
responses: {
|
|
357
|
-
200: {
|
|
358
|
-
bodyMapper: Mappers.ManagementGroupListResult
|
|
359
|
-
},
|
|
360
|
-
default: {
|
|
361
|
-
bodyMapper: Mappers.ErrorResponse
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
serializer
|
|
365
|
-
};
|
|
@@ -1,123 +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/operationsMappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { ManagementGroupsAPIContext } from "../managementGroupsAPIContext";
|
|
16
|
-
|
|
17
|
-
/** Class representing a Operations. */
|
|
18
|
-
export class Operations {
|
|
19
|
-
private readonly client: ManagementGroupsAPIContext;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Create a Operations.
|
|
23
|
-
* @param {ManagementGroupsAPIContext} client Reference to the service client.
|
|
24
|
-
*/
|
|
25
|
-
constructor(client: ManagementGroupsAPIContext) {
|
|
26
|
-
this.client = client;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Lists all of the available Management REST API operations.
|
|
31
|
-
* @param [options] The optional parameters
|
|
32
|
-
* @returns Promise<Models.OperationsListResponse>
|
|
33
|
-
*/
|
|
34
|
-
list(options?: msRest.RequestOptionsBase): Promise<Models.OperationsListResponse>;
|
|
35
|
-
/**
|
|
36
|
-
* @param callback The callback
|
|
37
|
-
*/
|
|
38
|
-
list(callback: msRest.ServiceCallback<Models.OperationListResult>): void;
|
|
39
|
-
/**
|
|
40
|
-
* @param options The optional parameters
|
|
41
|
-
* @param callback The callback
|
|
42
|
-
*/
|
|
43
|
-
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
|
|
44
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListResponse> {
|
|
45
|
-
return this.client.sendOperationRequest(
|
|
46
|
-
{
|
|
47
|
-
options
|
|
48
|
-
},
|
|
49
|
-
listOperationSpec,
|
|
50
|
-
callback) as Promise<Models.OperationsListResponse>;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Lists all of the available Management REST API operations.
|
|
55
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
56
|
-
* @param [options] The optional parameters
|
|
57
|
-
* @returns Promise<Models.OperationsListNextResponse>
|
|
58
|
-
*/
|
|
59
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsListNextResponse>;
|
|
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.OperationListResult>): 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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
|
|
71
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListNextResponse> {
|
|
72
|
-
return this.client.sendOperationRequest(
|
|
73
|
-
{
|
|
74
|
-
nextPageLink,
|
|
75
|
-
options
|
|
76
|
-
},
|
|
77
|
-
listNextOperationSpec,
|
|
78
|
-
callback) as Promise<Models.OperationsListNextResponse>;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// Operation Specifications
|
|
83
|
-
const serializer = new msRest.Serializer(Mappers);
|
|
84
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
85
|
-
httpMethod: "GET",
|
|
86
|
-
path: "providers/Microsoft.Management/operations",
|
|
87
|
-
queryParameters: [
|
|
88
|
-
Parameters.apiVersion
|
|
89
|
-
],
|
|
90
|
-
headerParameters: [
|
|
91
|
-
Parameters.acceptLanguage
|
|
92
|
-
],
|
|
93
|
-
responses: {
|
|
94
|
-
200: {
|
|
95
|
-
bodyMapper: Mappers.OperationListResult
|
|
96
|
-
},
|
|
97
|
-
default: {
|
|
98
|
-
bodyMapper: Mappers.ErrorResponse
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
serializer
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
105
|
-
httpMethod: "GET",
|
|
106
|
-
baseUrl: "https://management.azure.com",
|
|
107
|
-
path: "{nextLink}",
|
|
108
|
-
urlParameters: [
|
|
109
|
-
Parameters.nextPageLink
|
|
110
|
-
],
|
|
111
|
-
headerParameters: [
|
|
112
|
-
Parameters.acceptLanguage
|
|
113
|
-
],
|
|
114
|
-
responses: {
|
|
115
|
-
200: {
|
|
116
|
-
bodyMapper: Mappers.OperationListResult
|
|
117
|
-
},
|
|
118
|
-
default: {
|
|
119
|
-
bodyMapper: Mappers.ErrorResponse
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
serializer
|
|
123
|
-
};
|