@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,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
|
-
|