@azure/arm-managementgroups 2.0.0 → 2.0.1-alpha.20220128.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 +11 -1
- package/dist/index.js +90 -60
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +16 -6
- package/types/tsdoc-metadata.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Release History
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
## 2.0.1 (Unreleased)
|
|
4
|
+
|
|
5
|
+
### Features Added
|
|
6
|
+
|
|
7
|
+
### Breaking Changes
|
|
8
|
+
|
|
9
|
+
### Bugs Fixed
|
|
10
|
+
|
|
11
|
+
### Other Changes
|
|
12
|
+
|
|
3
13
|
## 2.0.0 (2021-12-22)
|
|
4
14
|
|
|
5
15
|
The package of @azure/arm-managementgroups is using our next generation design principles since version 2.0.0, which contains breaking changes.
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,26 @@ var coreClient = require('@azure/core-client');
|
|
|
6
6
|
var tslib = require('tslib');
|
|
7
7
|
var coreLro = require('@azure/core-lro');
|
|
8
8
|
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n["default"] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
28
|
+
|
|
9
29
|
/*
|
|
10
30
|
* Copyright (c) Microsoft Corporation.
|
|
11
31
|
* Licensed under the MIT License.
|
|
@@ -13,15 +33,21 @@ var coreLro = require('@azure/core-lro');
|
|
|
13
33
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
34
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
35
|
*/
|
|
36
|
+
/** Known values of {@link Enum0} that the service accepts. */
|
|
37
|
+
exports.KnownEnum0 = void 0;
|
|
16
38
|
(function (KnownEnum0) {
|
|
17
39
|
KnownEnum0["Children"] = "children";
|
|
18
40
|
KnownEnum0["Path"] = "path";
|
|
19
41
|
KnownEnum0["Ancestors"] = "ancestors";
|
|
20
42
|
})(exports.KnownEnum0 || (exports.KnownEnum0 = {}));
|
|
43
|
+
/** Known values of {@link ManagementGroupChildType} that the service accepts. */
|
|
44
|
+
exports.KnownManagementGroupChildType = void 0;
|
|
21
45
|
(function (KnownManagementGroupChildType) {
|
|
22
46
|
KnownManagementGroupChildType["MicrosoftManagementManagementGroups"] = "Microsoft.Management/managementGroups";
|
|
23
47
|
KnownManagementGroupChildType["Subscriptions"] = "/subscriptions";
|
|
24
48
|
})(exports.KnownManagementGroupChildType || (exports.KnownManagementGroupChildType = {}));
|
|
49
|
+
/** Known values of {@link Enum2} that the service accepts. */
|
|
50
|
+
exports.KnownEnum2 = void 0;
|
|
25
51
|
(function (KnownEnum2) {
|
|
26
52
|
KnownEnum2["AllowedParents"] = "AllowedParents";
|
|
27
53
|
KnownEnum2["AllowedChildren"] = "AllowedChildren";
|
|
@@ -29,12 +55,16 @@ var coreLro = require('@azure/core-lro');
|
|
|
29
55
|
KnownEnum2["ParentOnly"] = "ParentOnly";
|
|
30
56
|
KnownEnum2["ChildrenOnly"] = "ChildrenOnly";
|
|
31
57
|
})(exports.KnownEnum2 || (exports.KnownEnum2 = {}));
|
|
58
|
+
/** Known values of {@link Enum3} that the service accepts. */
|
|
59
|
+
exports.KnownEnum3 = void 0;
|
|
32
60
|
(function (KnownEnum3) {
|
|
33
61
|
KnownEnum3["FullHierarchy"] = "FullHierarchy";
|
|
34
62
|
KnownEnum3["GroupsOnly"] = "GroupsOnly";
|
|
35
63
|
KnownEnum3["SubscriptionsOnly"] = "SubscriptionsOnly";
|
|
36
64
|
KnownEnum3["Audit"] = "Audit";
|
|
37
65
|
})(exports.KnownEnum3 || (exports.KnownEnum3 = {}));
|
|
66
|
+
/** Known values of {@link Permissions} that the service accepts. */
|
|
67
|
+
exports.KnownPermissions = void 0;
|
|
38
68
|
(function (KnownPermissions) {
|
|
39
69
|
KnownPermissions["Noaccess"] = "noaccess";
|
|
40
70
|
KnownPermissions["View"] = "view";
|
|
@@ -1787,7 +1817,7 @@ class ManagementGroupsImpl {
|
|
|
1787
1817
|
* @param options The options parameters.
|
|
1788
1818
|
*/
|
|
1789
1819
|
_list(options) {
|
|
1790
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
1820
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
|
1791
1821
|
}
|
|
1792
1822
|
/**
|
|
1793
1823
|
* Get the details of the management group.
|
|
@@ -1796,7 +1826,7 @@ class ManagementGroupsImpl {
|
|
|
1796
1826
|
* @param options The options parameters.
|
|
1797
1827
|
*/
|
|
1798
1828
|
get(groupId, options) {
|
|
1799
|
-
return this.client.sendOperationRequest({ groupId, options }, getOperationSpec);
|
|
1829
|
+
return this.client.sendOperationRequest({ groupId, options }, getOperationSpec$1);
|
|
1800
1830
|
}
|
|
1801
1831
|
/**
|
|
1802
1832
|
* Create or update a management group.
|
|
@@ -1831,7 +1861,7 @@ class ManagementGroupsImpl {
|
|
|
1831
1861
|
}
|
|
1832
1862
|
};
|
|
1833
1863
|
});
|
|
1834
|
-
const lro = new LroImpl(sendOperation, { groupId, createManagementGroupRequest, options }, createOrUpdateOperationSpec);
|
|
1864
|
+
const lro = new LroImpl(sendOperation, { groupId, createManagementGroupRequest, options }, createOrUpdateOperationSpec$1);
|
|
1835
1865
|
return new coreLro.LroEngine(lro, {
|
|
1836
1866
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1837
1867
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
@@ -1862,7 +1892,7 @@ class ManagementGroupsImpl {
|
|
|
1862
1892
|
* @param options The options parameters.
|
|
1863
1893
|
*/
|
|
1864
1894
|
update(groupId, patchGroupRequest, options) {
|
|
1865
|
-
return this.client.sendOperationRequest({ groupId, patchGroupRequest, options }, updateOperationSpec);
|
|
1895
|
+
return this.client.sendOperationRequest({ groupId, patchGroupRequest, options }, updateOperationSpec$1);
|
|
1866
1896
|
}
|
|
1867
1897
|
/**
|
|
1868
1898
|
* Delete management group.
|
|
@@ -1895,7 +1925,7 @@ class ManagementGroupsImpl {
|
|
|
1895
1925
|
}
|
|
1896
1926
|
};
|
|
1897
1927
|
});
|
|
1898
|
-
const lro = new LroImpl(sendOperation, { groupId, options }, deleteOperationSpec);
|
|
1928
|
+
const lro = new LroImpl(sendOperation, { groupId, options }, deleteOperationSpec$2);
|
|
1899
1929
|
return new coreLro.LroEngine(lro, {
|
|
1900
1930
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1901
1931
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
@@ -1931,7 +1961,7 @@ class ManagementGroupsImpl {
|
|
|
1931
1961
|
* @param options The options parameters.
|
|
1932
1962
|
*/
|
|
1933
1963
|
_listNext(nextLink, options) {
|
|
1934
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
1964
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
|
|
1935
1965
|
}
|
|
1936
1966
|
/**
|
|
1937
1967
|
* GetDescendantsNext
|
|
@@ -1944,8 +1974,8 @@ class ManagementGroupsImpl {
|
|
|
1944
1974
|
}
|
|
1945
1975
|
}
|
|
1946
1976
|
// Operation Specifications
|
|
1947
|
-
const serializer =
|
|
1948
|
-
const listOperationSpec = {
|
|
1977
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1978
|
+
const listOperationSpec$3 = {
|
|
1949
1979
|
path: "/providers/Microsoft.Management/managementGroups",
|
|
1950
1980
|
httpMethod: "GET",
|
|
1951
1981
|
responses: {
|
|
@@ -1959,9 +1989,9 @@ const listOperationSpec = {
|
|
|
1959
1989
|
queryParameters: [apiVersion, skiptoken],
|
|
1960
1990
|
urlParameters: [$host],
|
|
1961
1991
|
headerParameters: [accept, cacheControl],
|
|
1962
|
-
serializer
|
|
1992
|
+
serializer: serializer$5
|
|
1963
1993
|
};
|
|
1964
|
-
const getOperationSpec = {
|
|
1994
|
+
const getOperationSpec$1 = {
|
|
1965
1995
|
path: "/providers/Microsoft.Management/managementGroups/{groupId}",
|
|
1966
1996
|
httpMethod: "GET",
|
|
1967
1997
|
responses: {
|
|
@@ -1980,9 +2010,9 @@ const getOperationSpec = {
|
|
|
1980
2010
|
],
|
|
1981
2011
|
urlParameters: [$host, groupId],
|
|
1982
2012
|
headerParameters: [accept, cacheControl],
|
|
1983
|
-
serializer
|
|
2013
|
+
serializer: serializer$5
|
|
1984
2014
|
};
|
|
1985
|
-
const createOrUpdateOperationSpec = {
|
|
2015
|
+
const createOrUpdateOperationSpec$1 = {
|
|
1986
2016
|
path: "/providers/Microsoft.Management/managementGroups/{groupId}",
|
|
1987
2017
|
httpMethod: "PUT",
|
|
1988
2018
|
responses: {
|
|
@@ -2011,9 +2041,9 @@ const createOrUpdateOperationSpec = {
|
|
|
2011
2041
|
contentType
|
|
2012
2042
|
],
|
|
2013
2043
|
mediaType: "json",
|
|
2014
|
-
serializer
|
|
2044
|
+
serializer: serializer$5
|
|
2015
2045
|
};
|
|
2016
|
-
const updateOperationSpec = {
|
|
2046
|
+
const updateOperationSpec$1 = {
|
|
2017
2047
|
path: "/providers/Microsoft.Management/managementGroups/{groupId}",
|
|
2018
2048
|
httpMethod: "PATCH",
|
|
2019
2049
|
responses: {
|
|
@@ -2033,9 +2063,9 @@ const updateOperationSpec = {
|
|
|
2033
2063
|
contentType
|
|
2034
2064
|
],
|
|
2035
2065
|
mediaType: "json",
|
|
2036
|
-
serializer
|
|
2066
|
+
serializer: serializer$5
|
|
2037
2067
|
};
|
|
2038
|
-
const deleteOperationSpec = {
|
|
2068
|
+
const deleteOperationSpec$2 = {
|
|
2039
2069
|
path: "/providers/Microsoft.Management/managementGroups/{groupId}",
|
|
2040
2070
|
httpMethod: "DELETE",
|
|
2041
2071
|
responses: {
|
|
@@ -2062,7 +2092,7 @@ const deleteOperationSpec = {
|
|
|
2062
2092
|
queryParameters: [apiVersion],
|
|
2063
2093
|
urlParameters: [$host, groupId],
|
|
2064
2094
|
headerParameters: [accept, cacheControl],
|
|
2065
|
-
serializer
|
|
2095
|
+
serializer: serializer$5
|
|
2066
2096
|
};
|
|
2067
2097
|
const getDescendantsOperationSpec = {
|
|
2068
2098
|
path: "/providers/Microsoft.Management/managementGroups/{groupId}/descendants",
|
|
@@ -2082,9 +2112,9 @@ const getDescendantsOperationSpec = {
|
|
|
2082
2112
|
],
|
|
2083
2113
|
urlParameters: [$host, groupId],
|
|
2084
2114
|
headerParameters: [accept],
|
|
2085
|
-
serializer
|
|
2115
|
+
serializer: serializer$5
|
|
2086
2116
|
};
|
|
2087
|
-
const listNextOperationSpec = {
|
|
2117
|
+
const listNextOperationSpec$2 = {
|
|
2088
2118
|
path: "{nextLink}",
|
|
2089
2119
|
httpMethod: "GET",
|
|
2090
2120
|
responses: {
|
|
@@ -2098,7 +2128,7 @@ const listNextOperationSpec = {
|
|
|
2098
2128
|
queryParameters: [apiVersion, skiptoken],
|
|
2099
2129
|
urlParameters: [$host, nextLink],
|
|
2100
2130
|
headerParameters: [accept, cacheControl],
|
|
2101
|
-
serializer
|
|
2131
|
+
serializer: serializer$5
|
|
2102
2132
|
};
|
|
2103
2133
|
const getDescendantsNextOperationSpec = {
|
|
2104
2134
|
path: "{nextLink}",
|
|
@@ -2118,7 +2148,7 @@ const getDescendantsNextOperationSpec = {
|
|
|
2118
2148
|
],
|
|
2119
2149
|
urlParameters: [$host, groupId, nextLink],
|
|
2120
2150
|
headerParameters: [accept],
|
|
2121
|
-
serializer
|
|
2151
|
+
serializer: serializer$5
|
|
2122
2152
|
};
|
|
2123
2153
|
|
|
2124
2154
|
/*
|
|
@@ -2239,7 +2269,7 @@ class ManagementGroupSubscriptionsImpl {
|
|
|
2239
2269
|
}
|
|
2240
2270
|
}
|
|
2241
2271
|
// Operation Specifications
|
|
2242
|
-
const serializer$
|
|
2272
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2243
2273
|
const createOperationSpec = {
|
|
2244
2274
|
path: "/providers/Microsoft.Management/managementGroups/{groupId}/subscriptions/{subscriptionId}",
|
|
2245
2275
|
httpMethod: "PUT",
|
|
@@ -2258,7 +2288,7 @@ const createOperationSpec = {
|
|
|
2258
2288
|
subscriptionId
|
|
2259
2289
|
],
|
|
2260
2290
|
headerParameters: [accept, cacheControl],
|
|
2261
|
-
serializer: serializer$
|
|
2291
|
+
serializer: serializer$4
|
|
2262
2292
|
};
|
|
2263
2293
|
const deleteOperationSpec$1 = {
|
|
2264
2294
|
path: "/providers/Microsoft.Management/managementGroups/{groupId}/subscriptions/{subscriptionId}",
|
|
@@ -2277,7 +2307,7 @@ const deleteOperationSpec$1 = {
|
|
|
2277
2307
|
subscriptionId
|
|
2278
2308
|
],
|
|
2279
2309
|
headerParameters: [accept, cacheControl],
|
|
2280
|
-
serializer: serializer$
|
|
2310
|
+
serializer: serializer$4
|
|
2281
2311
|
};
|
|
2282
2312
|
const getSubscriptionOperationSpec = {
|
|
2283
2313
|
path: "/providers/Microsoft.Management/managementGroups/{groupId}/subscriptions/{subscriptionId}",
|
|
@@ -2297,7 +2327,7 @@ const getSubscriptionOperationSpec = {
|
|
|
2297
2327
|
subscriptionId
|
|
2298
2328
|
],
|
|
2299
2329
|
headerParameters: [accept, cacheControl],
|
|
2300
|
-
serializer: serializer$
|
|
2330
|
+
serializer: serializer$4
|
|
2301
2331
|
};
|
|
2302
2332
|
const getSubscriptionsUnderManagementGroupOperationSpec = {
|
|
2303
2333
|
path: "/providers/Microsoft.Management/managementGroups/{groupId}/subscriptions",
|
|
@@ -2313,7 +2343,7 @@ const getSubscriptionsUnderManagementGroupOperationSpec = {
|
|
|
2313
2343
|
queryParameters: [apiVersion, skiptoken],
|
|
2314
2344
|
urlParameters: [$host, groupId],
|
|
2315
2345
|
headerParameters: [accept],
|
|
2316
|
-
serializer: serializer$
|
|
2346
|
+
serializer: serializer$4
|
|
2317
2347
|
};
|
|
2318
2348
|
const getSubscriptionsUnderManagementGroupNextOperationSpec = {
|
|
2319
2349
|
path: "{nextLink}",
|
|
@@ -2329,7 +2359,7 @@ const getSubscriptionsUnderManagementGroupNextOperationSpec = {
|
|
|
2329
2359
|
queryParameters: [apiVersion, skiptoken],
|
|
2330
2360
|
urlParameters: [$host, groupId, nextLink],
|
|
2331
2361
|
headerParameters: [accept],
|
|
2332
|
-
serializer: serializer$
|
|
2362
|
+
serializer: serializer$4
|
|
2333
2363
|
};
|
|
2334
2364
|
|
|
2335
2365
|
/*
|
|
@@ -2356,7 +2386,7 @@ class HierarchySettingsOperationsImpl {
|
|
|
2356
2386
|
* @param options The options parameters.
|
|
2357
2387
|
*/
|
|
2358
2388
|
list(groupId, options) {
|
|
2359
|
-
return this.client.sendOperationRequest({ groupId, options }, listOperationSpec$
|
|
2389
|
+
return this.client.sendOperationRequest({ groupId, options }, listOperationSpec$2);
|
|
2360
2390
|
}
|
|
2361
2391
|
/**
|
|
2362
2392
|
* Gets the hierarchy settings defined at the Management Group level. Settings can only be set on the
|
|
@@ -2366,7 +2396,7 @@ class HierarchySettingsOperationsImpl {
|
|
|
2366
2396
|
* @param options The options parameters.
|
|
2367
2397
|
*/
|
|
2368
2398
|
get(groupId, options) {
|
|
2369
|
-
return this.client.sendOperationRequest({ groupId, options }, getOperationSpec
|
|
2399
|
+
return this.client.sendOperationRequest({ groupId, options }, getOperationSpec);
|
|
2370
2400
|
}
|
|
2371
2401
|
/**
|
|
2372
2402
|
* Creates or updates the hierarchy settings defined at the Management Group level.
|
|
@@ -2376,7 +2406,7 @@ class HierarchySettingsOperationsImpl {
|
|
|
2376
2406
|
* @param options The options parameters.
|
|
2377
2407
|
*/
|
|
2378
2408
|
createOrUpdate(groupId, createTenantSettingsRequest, options) {
|
|
2379
|
-
return this.client.sendOperationRequest({ groupId, createTenantSettingsRequest, options }, createOrUpdateOperationSpec
|
|
2409
|
+
return this.client.sendOperationRequest({ groupId, createTenantSettingsRequest, options }, createOrUpdateOperationSpec);
|
|
2380
2410
|
}
|
|
2381
2411
|
/**
|
|
2382
2412
|
* Updates the hierarchy settings defined at the Management Group level.
|
|
@@ -2386,7 +2416,7 @@ class HierarchySettingsOperationsImpl {
|
|
|
2386
2416
|
* @param options The options parameters.
|
|
2387
2417
|
*/
|
|
2388
2418
|
update(groupId, createTenantSettingsRequest, options) {
|
|
2389
|
-
return this.client.sendOperationRequest({ groupId, createTenantSettingsRequest, options }, updateOperationSpec
|
|
2419
|
+
return this.client.sendOperationRequest({ groupId, createTenantSettingsRequest, options }, updateOperationSpec);
|
|
2390
2420
|
}
|
|
2391
2421
|
/**
|
|
2392
2422
|
* Deletes the hierarchy settings defined at the Management Group level.
|
|
@@ -2395,12 +2425,12 @@ class HierarchySettingsOperationsImpl {
|
|
|
2395
2425
|
* @param options The options parameters.
|
|
2396
2426
|
*/
|
|
2397
2427
|
delete(groupId, options) {
|
|
2398
|
-
return this.client.sendOperationRequest({ groupId, options }, deleteOperationSpec
|
|
2428
|
+
return this.client.sendOperationRequest({ groupId, options }, deleteOperationSpec);
|
|
2399
2429
|
}
|
|
2400
2430
|
}
|
|
2401
2431
|
// Operation Specifications
|
|
2402
|
-
const serializer$
|
|
2403
|
-
const listOperationSpec$
|
|
2432
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2433
|
+
const listOperationSpec$2 = {
|
|
2404
2434
|
path: "/providers/Microsoft.Management/managementGroups/{groupId}/settings",
|
|
2405
2435
|
httpMethod: "GET",
|
|
2406
2436
|
responses: {
|
|
@@ -2414,9 +2444,9 @@ const listOperationSpec$1 = {
|
|
|
2414
2444
|
queryParameters: [apiVersion],
|
|
2415
2445
|
urlParameters: [$host, groupId],
|
|
2416
2446
|
headerParameters: [accept],
|
|
2417
|
-
serializer: serializer$
|
|
2447
|
+
serializer: serializer$3
|
|
2418
2448
|
};
|
|
2419
|
-
const getOperationSpec
|
|
2449
|
+
const getOperationSpec = {
|
|
2420
2450
|
path: "/providers/Microsoft.Management/managementGroups/{groupId}/settings/default",
|
|
2421
2451
|
httpMethod: "GET",
|
|
2422
2452
|
responses: {
|
|
@@ -2430,9 +2460,9 @@ const getOperationSpec$1 = {
|
|
|
2430
2460
|
queryParameters: [apiVersion],
|
|
2431
2461
|
urlParameters: [$host, groupId],
|
|
2432
2462
|
headerParameters: [accept],
|
|
2433
|
-
serializer: serializer$
|
|
2463
|
+
serializer: serializer$3
|
|
2434
2464
|
};
|
|
2435
|
-
const createOrUpdateOperationSpec
|
|
2465
|
+
const createOrUpdateOperationSpec = {
|
|
2436
2466
|
path: "/providers/Microsoft.Management/managementGroups/{groupId}/settings/default",
|
|
2437
2467
|
httpMethod: "PUT",
|
|
2438
2468
|
responses: {
|
|
@@ -2448,9 +2478,9 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
2448
2478
|
urlParameters: [$host, groupId],
|
|
2449
2479
|
headerParameters: [accept, contentType],
|
|
2450
2480
|
mediaType: "json",
|
|
2451
|
-
serializer: serializer$
|
|
2481
|
+
serializer: serializer$3
|
|
2452
2482
|
};
|
|
2453
|
-
const updateOperationSpec
|
|
2483
|
+
const updateOperationSpec = {
|
|
2454
2484
|
path: "/providers/Microsoft.Management/managementGroups/{groupId}/settings/default",
|
|
2455
2485
|
httpMethod: "PATCH",
|
|
2456
2486
|
responses: {
|
|
@@ -2466,9 +2496,9 @@ const updateOperationSpec$1 = {
|
|
|
2466
2496
|
urlParameters: [$host, groupId],
|
|
2467
2497
|
headerParameters: [accept, contentType],
|
|
2468
2498
|
mediaType: "json",
|
|
2469
|
-
serializer: serializer$
|
|
2499
|
+
serializer: serializer$3
|
|
2470
2500
|
};
|
|
2471
|
-
const deleteOperationSpec
|
|
2501
|
+
const deleteOperationSpec = {
|
|
2472
2502
|
path: "/providers/Microsoft.Management/managementGroups/{groupId}/settings/default",
|
|
2473
2503
|
httpMethod: "DELETE",
|
|
2474
2504
|
responses: {
|
|
@@ -2480,7 +2510,7 @@ const deleteOperationSpec$2 = {
|
|
|
2480
2510
|
queryParameters: [apiVersion],
|
|
2481
2511
|
urlParameters: [$host, groupId],
|
|
2482
2512
|
headerParameters: [accept],
|
|
2483
|
-
serializer: serializer$
|
|
2513
|
+
serializer: serializer$3
|
|
2484
2514
|
};
|
|
2485
2515
|
|
|
2486
2516
|
/*
|
|
@@ -2553,7 +2583,7 @@ class OperationsImpl {
|
|
|
2553
2583
|
* @param options The options parameters.
|
|
2554
2584
|
*/
|
|
2555
2585
|
_list(options) {
|
|
2556
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
2586
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
2557
2587
|
}
|
|
2558
2588
|
/**
|
|
2559
2589
|
* ListNext
|
|
@@ -2565,8 +2595,8 @@ class OperationsImpl {
|
|
|
2565
2595
|
}
|
|
2566
2596
|
}
|
|
2567
2597
|
// Operation Specifications
|
|
2568
|
-
const serializer$
|
|
2569
|
-
const listOperationSpec$
|
|
2598
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2599
|
+
const listOperationSpec$1 = {
|
|
2570
2600
|
path: "/providers/Microsoft.Management/operations",
|
|
2571
2601
|
httpMethod: "GET",
|
|
2572
2602
|
responses: {
|
|
@@ -2580,7 +2610,7 @@ const listOperationSpec$2 = {
|
|
|
2580
2610
|
queryParameters: [apiVersion],
|
|
2581
2611
|
urlParameters: [$host],
|
|
2582
2612
|
headerParameters: [accept],
|
|
2583
|
-
serializer: serializer$
|
|
2613
|
+
serializer: serializer$2
|
|
2584
2614
|
};
|
|
2585
2615
|
const listNextOperationSpec$1 = {
|
|
2586
2616
|
path: "{nextLink}",
|
|
@@ -2596,7 +2626,7 @@ const listNextOperationSpec$1 = {
|
|
|
2596
2626
|
queryParameters: [apiVersion],
|
|
2597
2627
|
urlParameters: [$host, nextLink],
|
|
2598
2628
|
headerParameters: [accept],
|
|
2599
|
-
serializer: serializer$
|
|
2629
|
+
serializer: serializer$2
|
|
2600
2630
|
};
|
|
2601
2631
|
|
|
2602
2632
|
/*
|
|
@@ -2671,7 +2701,7 @@ class EntitiesImpl {
|
|
|
2671
2701
|
* @param options The options parameters.
|
|
2672
2702
|
*/
|
|
2673
2703
|
_list(options) {
|
|
2674
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec
|
|
2704
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2675
2705
|
}
|
|
2676
2706
|
/**
|
|
2677
2707
|
* ListNext
|
|
@@ -2679,12 +2709,12 @@ class EntitiesImpl {
|
|
|
2679
2709
|
* @param options The options parameters.
|
|
2680
2710
|
*/
|
|
2681
2711
|
_listNext(nextLink, options) {
|
|
2682
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec
|
|
2712
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
2683
2713
|
}
|
|
2684
2714
|
}
|
|
2685
2715
|
// Operation Specifications
|
|
2686
|
-
const serializer$
|
|
2687
|
-
const listOperationSpec
|
|
2716
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2717
|
+
const listOperationSpec = {
|
|
2688
2718
|
path: "/providers/Microsoft.Management/getEntities",
|
|
2689
2719
|
httpMethod: "POST",
|
|
2690
2720
|
responses: {
|
|
@@ -2708,9 +2738,9 @@ const listOperationSpec$3 = {
|
|
|
2708
2738
|
],
|
|
2709
2739
|
urlParameters: [$host],
|
|
2710
2740
|
headerParameters: [accept, cacheControl],
|
|
2711
|
-
serializer: serializer$
|
|
2741
|
+
serializer: serializer$1
|
|
2712
2742
|
};
|
|
2713
|
-
const listNextOperationSpec
|
|
2743
|
+
const listNextOperationSpec = {
|
|
2714
2744
|
path: "{nextLink}",
|
|
2715
2745
|
httpMethod: "GET",
|
|
2716
2746
|
responses: {
|
|
@@ -2734,7 +2764,7 @@ const listNextOperationSpec$2 = {
|
|
|
2734
2764
|
],
|
|
2735
2765
|
urlParameters: [$host, nextLink],
|
|
2736
2766
|
headerParameters: [accept, cacheControl],
|
|
2737
|
-
serializer: serializer$
|
|
2767
|
+
serializer: serializer$1
|
|
2738
2768
|
};
|
|
2739
2769
|
|
|
2740
2770
|
/*
|
|
@@ -2744,7 +2774,7 @@ const listNextOperationSpec$2 = {
|
|
|
2744
2774
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2745
2775
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2746
2776
|
*/
|
|
2747
|
-
class ManagementGroupsAPI extends
|
|
2777
|
+
class ManagementGroupsAPI extends coreClient__namespace.ServiceClient {
|
|
2748
2778
|
/**
|
|
2749
2779
|
* Initializes a new instance of the ManagementGroupsAPI class.
|
|
2750
2780
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -2806,7 +2836,7 @@ class ManagementGroupsAPI extends coreClient.ServiceClient {
|
|
|
2806
2836
|
}
|
|
2807
2837
|
}
|
|
2808
2838
|
// Operation Specifications
|
|
2809
|
-
const serializer
|
|
2839
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2810
2840
|
const checkNameAvailabilityOperationSpec = {
|
|
2811
2841
|
path: "/providers/Microsoft.Management/checkNameAvailability",
|
|
2812
2842
|
httpMethod: "POST",
|
|
@@ -2823,7 +2853,7 @@ const checkNameAvailabilityOperationSpec = {
|
|
|
2823
2853
|
urlParameters: [$host],
|
|
2824
2854
|
headerParameters: [accept, contentType],
|
|
2825
2855
|
mediaType: "json",
|
|
2826
|
-
serializer
|
|
2856
|
+
serializer
|
|
2827
2857
|
};
|
|
2828
2858
|
const startTenantBackfillOperationSpec = {
|
|
2829
2859
|
path: "/providers/Microsoft.Management/startTenantBackfill",
|
|
@@ -2839,7 +2869,7 @@ const startTenantBackfillOperationSpec = {
|
|
|
2839
2869
|
queryParameters: [apiVersion],
|
|
2840
2870
|
urlParameters: [$host],
|
|
2841
2871
|
headerParameters: [accept],
|
|
2842
|
-
serializer
|
|
2872
|
+
serializer
|
|
2843
2873
|
};
|
|
2844
2874
|
const tenantBackfillStatusOperationSpec = {
|
|
2845
2875
|
path: "/providers/Microsoft.Management/tenantBackfillStatus",
|
|
@@ -2855,7 +2885,7 @@ const tenantBackfillStatusOperationSpec = {
|
|
|
2855
2885
|
queryParameters: [apiVersion],
|
|
2856
2886
|
urlParameters: [$host],
|
|
2857
2887
|
headerParameters: [accept],
|
|
2858
|
-
serializer
|
|
2888
|
+
serializer
|
|
2859
2889
|
};
|
|
2860
2890
|
|
|
2861
2891
|
exports.ManagementGroupsAPI = ManagementGroupsAPI;
|