@azure/arm-largeinstance 1.0.0-alpha.20240223.1
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 +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +2490 -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/samples-dev/azureLargeInstanceGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureLargeInstanceGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureLargeInstanceGetSample.js +41 -0
- package/dist-esm/samples-dev/azureLargeInstanceGetSample.js.map +1 -0
- package/dist-esm/samples-dev/azureLargeInstanceListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureLargeInstanceListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureLargeInstanceListByResourceGroupSample.js +56 -0
- package/dist-esm/samples-dev/azureLargeInstanceListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/azureLargeInstanceListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureLargeInstanceListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureLargeInstanceListBySubscriptionSample.js +55 -0
- package/dist-esm/samples-dev/azureLargeInstanceListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/azureLargeInstanceRestartSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureLargeInstanceRestartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureLargeInstanceRestartSample.js +39 -0
- package/dist-esm/samples-dev/azureLargeInstanceRestartSample.js.map +1 -0
- package/dist-esm/samples-dev/azureLargeInstanceShutdownSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureLargeInstanceShutdownSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureLargeInstanceShutdownSample.js +39 -0
- package/dist-esm/samples-dev/azureLargeInstanceShutdownSample.js.map +1 -0
- package/dist-esm/samples-dev/azureLargeInstanceStartSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureLargeInstanceStartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureLargeInstanceStartSample.js +39 -0
- package/dist-esm/samples-dev/azureLargeInstanceStartSample.js.map +1 -0
- package/dist-esm/samples-dev/azureLargeInstanceUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureLargeInstanceUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureLargeInstanceUpdateSample.js +66 -0
- package/dist-esm/samples-dev/azureLargeInstanceUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/azureLargeStorageInstanceGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureLargeStorageInstanceGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureLargeStorageInstanceGetSample.js +41 -0
- package/dist-esm/samples-dev/azureLargeStorageInstanceGetSample.js.map +1 -0
- package/dist-esm/samples-dev/azureLargeStorageInstanceListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureLargeStorageInstanceListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureLargeStorageInstanceListByResourceGroupSample.js +58 -0
- package/dist-esm/samples-dev/azureLargeStorageInstanceListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/azureLargeStorageInstanceListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureLargeStorageInstanceListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureLargeStorageInstanceListBySubscriptionSample.js +55 -0
- package/dist-esm/samples-dev/azureLargeStorageInstanceListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/azureLargeStorageInstanceUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureLargeStorageInstanceUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureLargeStorageInstanceUpdateSample.js +66 -0
- package/dist-esm/samples-dev/azureLargeStorageInstanceUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +53 -0
- package/dist-esm/samples-dev/operationsListSample.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/largeInstanceManagementClient.d.ts +22 -0
- package/dist-esm/src/largeInstanceManagementClient.d.ts.map +1 -0
- package/dist-esm/src/largeInstanceManagementClient.js +103 -0
- package/dist-esm/src/largeInstanceManagementClient.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +11 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +21 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +858 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +210 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +33 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +902 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +14 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +126 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/azureLargeInstanceOperations.d.ts +117 -0
- package/dist-esm/src/operations/azureLargeInstanceOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/azureLargeInstanceOperations.js +587 -0
- package/dist-esm/src/operations/azureLargeInstanceOperations.js.map +1 -0
- package/dist-esm/src/operations/azureLargeStorageInstanceOperations.d.ts +76 -0
- package/dist-esm/src/operations/azureLargeStorageInstanceOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/azureLargeStorageInstanceOperations.js +332 -0
- package/dist-esm/src/operations/azureLargeStorageInstanceOperations.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +4 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +11 -0
- package/dist-esm/src/operations/index.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 +133 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/azureLargeInstanceOperations.d.ts +79 -0
- package/dist-esm/src/operationsInterfaces/azureLargeInstanceOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/azureLargeInstanceOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/azureLargeInstanceOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/azureLargeStorageInstanceOperations.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/azureLargeStorageInstanceOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/azureLargeStorageInstanceOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/azureLargeStorageInstanceOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +11 -0
- package/dist-esm/src/operationsInterfaces/index.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/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/largeinstance_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/largeinstance_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/largeinstance_operations_test.spec.js +73 -0
- package/dist-esm/test/largeinstance_operations_test.spec.js.map +1 -0
- package/package.json +118 -0
- package/review/arm-largeinstance.api.md +569 -0
- package/src/index.ts +13 -0
- package/src/largeInstanceManagementClient.ts +156 -0
- package/src/lroImpl.ts +42 -0
- package/src/models/index.ts +955 -0
- package/src/models/mappers.ts +944 -0
- package/src/models/parameters.ts +147 -0
- package/src/operations/azureLargeInstanceOperations.ts +768 -0
- package/src/operations/azureLargeStorageInstanceOperations.ts +401 -0
- package/src/operations/index.ts +11 -0
- package/src/operations/operations.ts +149 -0
- package/src/operationsInterfaces/azureLargeInstanceOperations.ts +156 -0
- package/src/operationsInterfaces/azureLargeStorageInstanceOperations.ts +69 -0
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +33 -0
- package/types/arm-largeinstance.d.ts +1096 -0
- package/types/tsdoc-metadata.json +11 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,2490 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib = require('tslib');
|
|
6
|
+
var coreClient = require('@azure/core-client');
|
|
7
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
|
+
var coreLro = require('@azure/core-lro');
|
|
9
|
+
|
|
10
|
+
function _interopNamespaceDefault(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__*/_interopNamespaceDefault(coreClient);
|
|
28
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
|
29
|
+
|
|
30
|
+
/*
|
|
31
|
+
* Copyright (c) Microsoft Corporation.
|
|
32
|
+
* Licensed under the MIT License.
|
|
33
|
+
*
|
|
34
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
35
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
36
|
+
*/
|
|
37
|
+
const pageMap = new WeakMap();
|
|
38
|
+
/**
|
|
39
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
40
|
+
* returns a continuation token that can be used to begin paging from
|
|
41
|
+
* that point later.
|
|
42
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
43
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
44
|
+
*/
|
|
45
|
+
function getContinuationToken(page) {
|
|
46
|
+
var _a;
|
|
47
|
+
if (typeof page !== "object" || page === null) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
51
|
+
}
|
|
52
|
+
function setContinuationToken(page, continuationToken) {
|
|
53
|
+
var _a;
|
|
54
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
58
|
+
pageInfo.continuationToken = continuationToken;
|
|
59
|
+
pageMap.set(page, pageInfo);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/*
|
|
63
|
+
* Copyright (c) Microsoft Corporation.
|
|
64
|
+
* Licensed under the MIT License.
|
|
65
|
+
*
|
|
66
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
67
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
68
|
+
*/
|
|
69
|
+
/** Known values of {@link Origin} that the service accepts. */
|
|
70
|
+
exports.KnownOrigin = void 0;
|
|
71
|
+
(function (KnownOrigin) {
|
|
72
|
+
/** User */
|
|
73
|
+
KnownOrigin["User"] = "user";
|
|
74
|
+
/** System */
|
|
75
|
+
KnownOrigin["System"] = "system";
|
|
76
|
+
/** UserSystem */
|
|
77
|
+
KnownOrigin["UserSystem"] = "user,system";
|
|
78
|
+
})(exports.KnownOrigin || (exports.KnownOrigin = {}));
|
|
79
|
+
/** Known values of {@link ActionType} that the service accepts. */
|
|
80
|
+
exports.KnownActionType = void 0;
|
|
81
|
+
(function (KnownActionType) {
|
|
82
|
+
/** Internal */
|
|
83
|
+
KnownActionType["Internal"] = "Internal";
|
|
84
|
+
})(exports.KnownActionType || (exports.KnownActionType = {}));
|
|
85
|
+
/** Known values of {@link AzureLargeInstanceHardwareTypeNamesEnum} that the service accepts. */
|
|
86
|
+
exports.KnownAzureLargeInstanceHardwareTypeNamesEnum = void 0;
|
|
87
|
+
(function (KnownAzureLargeInstanceHardwareTypeNamesEnum) {
|
|
88
|
+
/** Hardware type of UCS from vendor Cisco */
|
|
89
|
+
KnownAzureLargeInstanceHardwareTypeNamesEnum["CiscoUCS"] = "Cisco_UCS";
|
|
90
|
+
/** Hardware type of HPE from vendor Hewlett Packard Enterprise */
|
|
91
|
+
KnownAzureLargeInstanceHardwareTypeNamesEnum["HPE"] = "HPE";
|
|
92
|
+
/** Hardware type of SDFLEX */
|
|
93
|
+
KnownAzureLargeInstanceHardwareTypeNamesEnum["Sdflex"] = "SDFLEX";
|
|
94
|
+
})(exports.KnownAzureLargeInstanceHardwareTypeNamesEnum || (exports.KnownAzureLargeInstanceHardwareTypeNamesEnum = {}));
|
|
95
|
+
/** Known values of {@link AzureLargeInstanceSizeNamesEnum} that the service accepts. */
|
|
96
|
+
exports.KnownAzureLargeInstanceSizeNamesEnum = void 0;
|
|
97
|
+
(function (KnownAzureLargeInstanceSizeNamesEnum) {
|
|
98
|
+
/** Type I class SKU that can't be purchased anymore */
|
|
99
|
+
KnownAzureLargeInstanceSizeNamesEnum["S72M"] = "S72m";
|
|
100
|
+
/** Type I class SKU that can't be purchased anymore */
|
|
101
|
+
KnownAzureLargeInstanceSizeNamesEnum["S144M"] = "S144m";
|
|
102
|
+
/** Type I class SKU that can't be purchased anymore */
|
|
103
|
+
KnownAzureLargeInstanceSizeNamesEnum["S72"] = "S72";
|
|
104
|
+
/** Type I class SKU that can't be purchased anymore */
|
|
105
|
+
KnownAzureLargeInstanceSizeNamesEnum["S144"] = "S144";
|
|
106
|
+
/** Type I class SKU that can't be purchased anymore */
|
|
107
|
+
KnownAzureLargeInstanceSizeNamesEnum["S192"] = "S192";
|
|
108
|
+
/** Type I class SKU that can't be purchased anymore */
|
|
109
|
+
KnownAzureLargeInstanceSizeNamesEnum["S192M"] = "S192m";
|
|
110
|
+
/** Type I class SKU that can't be purchased anymore */
|
|
111
|
+
KnownAzureLargeInstanceSizeNamesEnum["S192Xm"] = "S192xm";
|
|
112
|
+
/** 2 sockets, 96 CPU threads, 48 CPU cores, 768 GB total memory, 768 GB DRAM, 3.0 TB storage, Cisco_UCS hardware type */
|
|
113
|
+
KnownAzureLargeInstanceSizeNamesEnum["S96"] = "S96";
|
|
114
|
+
/** No longer offered or used. */
|
|
115
|
+
KnownAzureLargeInstanceSizeNamesEnum["S112"] = "S112";
|
|
116
|
+
/** 4 sockets, 224 CPU threads, 112 CPU cores, 3 TB total memory, 3 TB DRAM, 6.3 TB storage, Cisco_UCS hardware type */
|
|
117
|
+
KnownAzureLargeInstanceSizeNamesEnum["S224"] = "S224";
|
|
118
|
+
/** 4 sockets, 224 CPU threads, 112 CPU cores, 6 TB total memory, 6 TB DRAM, 10.5 TB storage, Cisco_UCS hardware type */
|
|
119
|
+
KnownAzureLargeInstanceSizeNamesEnum["S224M"] = "S224m";
|
|
120
|
+
/** 4 sockets, 224 CPU threads, 112 CPU cores, 6 TB total memory, 3 TB DRAM, 3 TB memory optane, 10.5 TB storage, Cisco_UCS hardware type */
|
|
121
|
+
KnownAzureLargeInstanceSizeNamesEnum["S224Om"] = "S224om";
|
|
122
|
+
/** 4 sockets, 224 CPU threads, 112 CPU cores, 4.5 TB total memory, 1.5 TB DRAM, 3 TB memory optane, 8.4 TB storage, Cisco_UCS hardware type */
|
|
123
|
+
KnownAzureLargeInstanceSizeNamesEnum["S224Oo"] = "S224oo";
|
|
124
|
+
/** 4 sockets, 224 CPU threads, 112 CPU cores, 9 TB total memory, 3 TB DRAM, 6 TB memory optane, 14.8 TB storage, Cisco_UCS hardware type */
|
|
125
|
+
KnownAzureLargeInstanceSizeNamesEnum["S224Oom"] = "S224oom";
|
|
126
|
+
/** 4 sockets, 224 CPU threads, 112 CPU cores, 7.5TB total memory, 1.5 TB DRAM, 6 TB memory optane, 12.7 TB storage, Cisco_UCS hardware type */
|
|
127
|
+
KnownAzureLargeInstanceSizeNamesEnum["S224Ooo"] = "S224ooo";
|
|
128
|
+
/** 4 sockets, 448 CPU threads, 6 TB total memory, SDFLEX hardware type */
|
|
129
|
+
KnownAzureLargeInstanceSizeNamesEnum["S224Se"] = "S224se";
|
|
130
|
+
/** 8 sockets, 384 CPU threads, 192 CPU cores, 4 TB total memory, 4 TB DRAM, 16 TB storage, HPEMc990x hardware type */
|
|
131
|
+
KnownAzureLargeInstanceSizeNamesEnum["S384"] = "S384";
|
|
132
|
+
/** 8 sockets, 384 CPU threads, 192 CPU cores, 6 TB total memory, 6 TB DRAM, 18 TB storage, HPEMc990x hardware type */
|
|
133
|
+
KnownAzureLargeInstanceSizeNamesEnum["S384M"] = "S384m";
|
|
134
|
+
/** 8 sockets, 384 CPU threads, 192 CPU cores, 8 TB total memory, 8 TB DRAM, 22 TB storage, HPEMc990x hardware type */
|
|
135
|
+
KnownAzureLargeInstanceSizeNamesEnum["S384Xm"] = "S384xm";
|
|
136
|
+
/** 8 sockets, 384 CPU threads, 12 TB total memory, HPEMc990x hardware type */
|
|
137
|
+
KnownAzureLargeInstanceSizeNamesEnum["S384Xxm"] = "S384xxm";
|
|
138
|
+
/** 8 sockets, 448 CPU threads, 224 CPU cores, 6 TB total memory, 6 TB DRAM, 10.5 TB storage, SDFLEX hardware type */
|
|
139
|
+
KnownAzureLargeInstanceSizeNamesEnum["S448"] = "S448";
|
|
140
|
+
/** 8 sockets, 448 CPU threads, 224 CPU cores, 12 TB total memory, 12 TB DRAM, 18.9 TB storage, SDFLEX hardware type */
|
|
141
|
+
KnownAzureLargeInstanceSizeNamesEnum["S448M"] = "S448m";
|
|
142
|
+
/** 8 sockets, 448 CPU threads, 224 CPU cores, 12 TB total memory, 6 TB DRAM, 6 TB memory optane, 18.9 TB storage, SDFLEX hardware type */
|
|
143
|
+
KnownAzureLargeInstanceSizeNamesEnum["S448Om"] = "S448om";
|
|
144
|
+
/** 8 sockets, 448 CPU threads, 224 CPU cores, 9 TB total memory, 3 TB DRAM, 6 TB memory optane, 14.8 TB storage, SDFLEX hardware type */
|
|
145
|
+
KnownAzureLargeInstanceSizeNamesEnum["S448Oo"] = "S448oo";
|
|
146
|
+
/** 8 sockets, 448 CPU threads, 224 CPU cores, 18 TB total memory, 6 TB DRAM, 12 memory optane, 27.4 TB storage, SDFLEX hardware type */
|
|
147
|
+
KnownAzureLargeInstanceSizeNamesEnum["S448Oom"] = "S448oom";
|
|
148
|
+
/** 8 sockets, 448 CPU threads, 224 CPU cores, 15 TB total memory, 3 TB DRAM, 12 memory optane, 23.2 TB storage, SDFLEX hardware type */
|
|
149
|
+
KnownAzureLargeInstanceSizeNamesEnum["S448Ooo"] = "S448ooo";
|
|
150
|
+
/** 8 sockets, 448 CPU threads, 12 TB total memory, SDFLEX hardware type */
|
|
151
|
+
KnownAzureLargeInstanceSizeNamesEnum["S448Se"] = "S448se";
|
|
152
|
+
/** 12 sockets, 576 CPU threads, 288 CPU cores, 12 TB total memory, 12 TB DRAM, 28 TB storage, HPEMc990x hardware type */
|
|
153
|
+
KnownAzureLargeInstanceSizeNamesEnum["S576M"] = "S576m";
|
|
154
|
+
/** 12 sockets, 576 CPU threads, 288 CPU cores, 18 TB total memory, HPEMc990x hardware type */
|
|
155
|
+
KnownAzureLargeInstanceSizeNamesEnum["S576Xm"] = "S576xm";
|
|
156
|
+
/** 12 sockets, 672 CPU threads, 336 CPU cores, 9 TB total memory, 9 TB DRAM, 14.7 TB storage, SDFLEX hardware type */
|
|
157
|
+
KnownAzureLargeInstanceSizeNamesEnum["S672"] = "S672";
|
|
158
|
+
/** 12 sockets, 672 CPU threads, 336 CPU cores, 18 TB total memory, 18 TB DRAM, 27.4 TB storage, SDFLEX hardware type */
|
|
159
|
+
KnownAzureLargeInstanceSizeNamesEnum["S672M"] = "S672m";
|
|
160
|
+
/** 12 sockets, 672 CPU threads, 336 CPU cores, 18 TB total memory, 9 TB DRAM, 9 TB memory optane, 27.4 TB storage, SDFLEX hardware type */
|
|
161
|
+
KnownAzureLargeInstanceSizeNamesEnum["S672Om"] = "S672om";
|
|
162
|
+
/** 12 sockets, 672 CPU threads, 336 CPU cores, 13.5 TB total memory, 4.5 TB DRAM, 9 TB memory optane, 21.1 TB storage, SDFLEX hardware type */
|
|
163
|
+
KnownAzureLargeInstanceSizeNamesEnum["S672Oo"] = "S672oo";
|
|
164
|
+
/** 12 sockets, 672 CPU threads, 336 CPU cores, 27 TB total memory, 9 TB DRAM, 18 TB memory optane, 40 TB storage, SDFLEX hardware type */
|
|
165
|
+
KnownAzureLargeInstanceSizeNamesEnum["S672Oom"] = "S672oom";
|
|
166
|
+
/** 12 sockets, 672 CPU threads, 336 CPU cores, 22.5 TB total memory, 4.5 TB DRAM, 18 TB memory optane, 33.7 TB storage, SDFLEX hardware type */
|
|
167
|
+
KnownAzureLargeInstanceSizeNamesEnum["S672Ooo"] = "S672ooo";
|
|
168
|
+
/** No longer offered or used. */
|
|
169
|
+
KnownAzureLargeInstanceSizeNamesEnum["S768"] = "S768";
|
|
170
|
+
/** 16 sockets, 768 CPU threads, 384 CPU cores, 16 TB total memory, 16 TB DRAM, 36 TB storage, HPEMc990x hardware type */
|
|
171
|
+
KnownAzureLargeInstanceSizeNamesEnum["S768M"] = "S768m";
|
|
172
|
+
/** 16 sockets, 768 CPU threads, 384 CPU cores, 24 TB total memory, 24 TB DRAM, 56 TB storage, HPEMc990x hardware type */
|
|
173
|
+
KnownAzureLargeInstanceSizeNamesEnum["S768Xm"] = "S768xm";
|
|
174
|
+
/** 16 sockets, 896 CPU threads, 448 CPU cores, 12 TB total memory, 12 TB DRAM, 18.9 TB storage, SDFLEX hardware type */
|
|
175
|
+
KnownAzureLargeInstanceSizeNamesEnum["S896"] = "S896";
|
|
176
|
+
/** 16 sockets, 896 CPU threads, 448 CPU cores, 24 TB total memory, 24 TB DRAM, 35.8 TB storage, SDFLEX hardware type */
|
|
177
|
+
KnownAzureLargeInstanceSizeNamesEnum["S896M"] = "S896m";
|
|
178
|
+
/** 16 sockets, 896 CPU threads, 448 CPU cores, 24 TB total memory, 12 TB DRAM, 12 TB memory optane, 35.8 TB storage, SDFLEX hardware type */
|
|
179
|
+
KnownAzureLargeInstanceSizeNamesEnum["S896Om"] = "S896om";
|
|
180
|
+
/** 16 sockets, 896 CPU threads, 448 CPU cores, 18 TB total memory, 6 TB DRAM, 12 TB memory optane, 27.4 TB storage, SDFLEX hardware type */
|
|
181
|
+
KnownAzureLargeInstanceSizeNamesEnum["S896Oo"] = "S896oo";
|
|
182
|
+
/** 16 sockets, 896 CPU threads, 448 CPU cores, 36 TB total memory, 12 TB DRAM, 24 TB memory optane, 52.7 TB storage, SDFLEX hardware type */
|
|
183
|
+
KnownAzureLargeInstanceSizeNamesEnum["S896Oom"] = "S896oom";
|
|
184
|
+
/** 16 sockets, 896 CPU threads, 448 CPU cores, 30 TB total memory, 6 TB DRAM, 24 TB memory optane, 44.3 TB storage, SDFLEX hardware type */
|
|
185
|
+
KnownAzureLargeInstanceSizeNamesEnum["S896Ooo"] = "S896ooo";
|
|
186
|
+
/** 20 sockets, 960 CPU threads, 480 CPU cores, 20 TB total memory, 20 TB DRAM, 46 TB storage, HPEMc990x hardware type */
|
|
187
|
+
KnownAzureLargeInstanceSizeNamesEnum["S960M"] = "S960m";
|
|
188
|
+
})(exports.KnownAzureLargeInstanceSizeNamesEnum || (exports.KnownAzureLargeInstanceSizeNamesEnum = {}));
|
|
189
|
+
/** Known values of {@link AzureLargeInstancePowerStateEnum} that the service accepts. */
|
|
190
|
+
exports.KnownAzureLargeInstancePowerStateEnum = void 0;
|
|
191
|
+
(function (KnownAzureLargeInstancePowerStateEnum) {
|
|
192
|
+
/** Starting means that the Azure Large Instance resource is turning on. */
|
|
193
|
+
KnownAzureLargeInstancePowerStateEnum["Starting"] = "starting";
|
|
194
|
+
/** Started means that the Azure Large Instance resource has been powered on. */
|
|
195
|
+
KnownAzureLargeInstancePowerStateEnum["Started"] = "started";
|
|
196
|
+
/** Stopping means that the Azure Large Instance resource is shutting down. */
|
|
197
|
+
KnownAzureLargeInstancePowerStateEnum["Stopping"] = "stopping";
|
|
198
|
+
/** Stopped means that the Azure Large Instance resource has shut down. */
|
|
199
|
+
KnownAzureLargeInstancePowerStateEnum["Stopped"] = "stopped";
|
|
200
|
+
/** Restarting means that the Azure Large Instance resource is restarting. */
|
|
201
|
+
KnownAzureLargeInstancePowerStateEnum["Restarting"] = "restarting";
|
|
202
|
+
/** Unknown means that the state of the Azure Large Instance is unknown. */
|
|
203
|
+
KnownAzureLargeInstancePowerStateEnum["Unknown"] = "unknown";
|
|
204
|
+
})(exports.KnownAzureLargeInstancePowerStateEnum || (exports.KnownAzureLargeInstancePowerStateEnum = {}));
|
|
205
|
+
/** Known values of {@link AzureLargeInstanceProvisioningStatesEnum} that the service accepts. */
|
|
206
|
+
exports.KnownAzureLargeInstanceProvisioningStatesEnum = void 0;
|
|
207
|
+
(function (KnownAzureLargeInstanceProvisioningStatesEnum) {
|
|
208
|
+
/** Accepted means Azure Large Instance resource provisioning has been accepted. */
|
|
209
|
+
KnownAzureLargeInstanceProvisioningStatesEnum["Accepted"] = "Accepted";
|
|
210
|
+
/** Creating means Azure Large Instance resource is being created. */
|
|
211
|
+
KnownAzureLargeInstanceProvisioningStatesEnum["Creating"] = "Creating";
|
|
212
|
+
/** Updating means an existing Azure Large Instance resource is being updated */
|
|
213
|
+
KnownAzureLargeInstanceProvisioningStatesEnum["Updating"] = "Updating";
|
|
214
|
+
/** Failed means Azure Large Instance resource is in failed state */
|
|
215
|
+
KnownAzureLargeInstanceProvisioningStatesEnum["Failed"] = "Failed";
|
|
216
|
+
/** Succeeded means Azure Large Instance resource creation succeeded during last create\/update */
|
|
217
|
+
KnownAzureLargeInstanceProvisioningStatesEnum["Succeeded"] = "Succeeded";
|
|
218
|
+
/** Deleting means Azure Large Instance resource is in the process of being deleted */
|
|
219
|
+
KnownAzureLargeInstanceProvisioningStatesEnum["Deleting"] = "Deleting";
|
|
220
|
+
/** Migrating means Azure Large Instance resource is being migrated from one subscription or resource group to another */
|
|
221
|
+
KnownAzureLargeInstanceProvisioningStatesEnum["Migrating"] = "Migrating";
|
|
222
|
+
/** Cancelled Azure Large Instance resource operation has been cancelled */
|
|
223
|
+
KnownAzureLargeInstanceProvisioningStatesEnum["Canceled"] = "Canceled";
|
|
224
|
+
})(exports.KnownAzureLargeInstanceProvisioningStatesEnum || (exports.KnownAzureLargeInstanceProvisioningStatesEnum = {}));
|
|
225
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
226
|
+
exports.KnownCreatedByType = void 0;
|
|
227
|
+
(function (KnownCreatedByType) {
|
|
228
|
+
/** User */
|
|
229
|
+
KnownCreatedByType["User"] = "User";
|
|
230
|
+
/** Application */
|
|
231
|
+
KnownCreatedByType["Application"] = "Application";
|
|
232
|
+
/** ManagedIdentity */
|
|
233
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
234
|
+
/** Key */
|
|
235
|
+
KnownCreatedByType["Key"] = "Key";
|
|
236
|
+
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
237
|
+
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
238
|
+
exports.KnownProvisioningState = void 0;
|
|
239
|
+
(function (KnownProvisioningState) {
|
|
240
|
+
/** Accepted means ARM resource has been accepted. */
|
|
241
|
+
KnownProvisioningState["Accepted"] = "Accepted";
|
|
242
|
+
/** Creating means ARM resource is being created. */
|
|
243
|
+
KnownProvisioningState["Creating"] = "Creating";
|
|
244
|
+
/** Updating means an existing ARM resource is being updated */
|
|
245
|
+
KnownProvisioningState["Updating"] = "Updating";
|
|
246
|
+
/** Failed means resource is in failed state */
|
|
247
|
+
KnownProvisioningState["Failed"] = "Failed";
|
|
248
|
+
/** Succeeded means resource creation succeeded during last create\/update */
|
|
249
|
+
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
250
|
+
/** Deleting means resource is in the process of being deleted */
|
|
251
|
+
KnownProvisioningState["Deleting"] = "Deleting";
|
|
252
|
+
/** Cancelled means resource operation has been cancelled */
|
|
253
|
+
KnownProvisioningState["Canceled"] = "Canceled";
|
|
254
|
+
/** Migrating means resource is being migrated from one subscription or resource group to another */
|
|
255
|
+
KnownProvisioningState["Migrating"] = "Migrating";
|
|
256
|
+
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
257
|
+
/** Known values of {@link AzureLargeInstanceForcePowerState} that the service accepts. */
|
|
258
|
+
exports.KnownAzureLargeInstanceForcePowerState = void 0;
|
|
259
|
+
(function (KnownAzureLargeInstanceForcePowerState) {
|
|
260
|
+
/** Active means that the restart operation will terminate and halt existing processes that may be running on the server */
|
|
261
|
+
KnownAzureLargeInstanceForcePowerState["Active"] = "active";
|
|
262
|
+
/** Inactive means that the restart operation will not terminate and halt existing processes that may be running on the server */
|
|
263
|
+
KnownAzureLargeInstanceForcePowerState["Inactive"] = "inactive";
|
|
264
|
+
})(exports.KnownAzureLargeInstanceForcePowerState || (exports.KnownAzureLargeInstanceForcePowerState = {}));
|
|
265
|
+
/** Known values of {@link Versions} that the service accepts. */
|
|
266
|
+
exports.KnownVersions = void 0;
|
|
267
|
+
(function (KnownVersions) {
|
|
268
|
+
/** Azure Large Instance api version 2023-07-20-preview. */
|
|
269
|
+
KnownVersions["V20230720Preview"] = "2023-07-20-preview";
|
|
270
|
+
})(exports.KnownVersions || (exports.KnownVersions = {}));
|
|
271
|
+
|
|
272
|
+
/*
|
|
273
|
+
* Copyright (c) Microsoft Corporation.
|
|
274
|
+
* Licensed under the MIT License.
|
|
275
|
+
*
|
|
276
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
277
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
278
|
+
*/
|
|
279
|
+
const OperationListResult = {
|
|
280
|
+
type: {
|
|
281
|
+
name: "Composite",
|
|
282
|
+
className: "OperationListResult",
|
|
283
|
+
modelProperties: {
|
|
284
|
+
value: {
|
|
285
|
+
serializedName: "value",
|
|
286
|
+
readOnly: true,
|
|
287
|
+
type: {
|
|
288
|
+
name: "Sequence",
|
|
289
|
+
element: {
|
|
290
|
+
type: {
|
|
291
|
+
name: "Composite",
|
|
292
|
+
className: "Operation",
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
},
|
|
296
|
+
},
|
|
297
|
+
nextLink: {
|
|
298
|
+
serializedName: "nextLink",
|
|
299
|
+
readOnly: true,
|
|
300
|
+
type: {
|
|
301
|
+
name: "String",
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
};
|
|
307
|
+
const Operation = {
|
|
308
|
+
type: {
|
|
309
|
+
name: "Composite",
|
|
310
|
+
className: "Operation",
|
|
311
|
+
modelProperties: {
|
|
312
|
+
name: {
|
|
313
|
+
serializedName: "name",
|
|
314
|
+
readOnly: true,
|
|
315
|
+
type: {
|
|
316
|
+
name: "String",
|
|
317
|
+
},
|
|
318
|
+
},
|
|
319
|
+
isDataAction: {
|
|
320
|
+
serializedName: "isDataAction",
|
|
321
|
+
readOnly: true,
|
|
322
|
+
type: {
|
|
323
|
+
name: "Boolean",
|
|
324
|
+
},
|
|
325
|
+
},
|
|
326
|
+
display: {
|
|
327
|
+
serializedName: "display",
|
|
328
|
+
type: {
|
|
329
|
+
name: "Composite",
|
|
330
|
+
className: "OperationDisplay",
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
origin: {
|
|
334
|
+
serializedName: "origin",
|
|
335
|
+
readOnly: true,
|
|
336
|
+
type: {
|
|
337
|
+
name: "String",
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
actionType: {
|
|
341
|
+
serializedName: "actionType",
|
|
342
|
+
readOnly: true,
|
|
343
|
+
type: {
|
|
344
|
+
name: "String",
|
|
345
|
+
},
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
},
|
|
349
|
+
};
|
|
350
|
+
const OperationDisplay = {
|
|
351
|
+
type: {
|
|
352
|
+
name: "Composite",
|
|
353
|
+
className: "OperationDisplay",
|
|
354
|
+
modelProperties: {
|
|
355
|
+
provider: {
|
|
356
|
+
serializedName: "provider",
|
|
357
|
+
readOnly: true,
|
|
358
|
+
type: {
|
|
359
|
+
name: "String",
|
|
360
|
+
},
|
|
361
|
+
},
|
|
362
|
+
resource: {
|
|
363
|
+
serializedName: "resource",
|
|
364
|
+
readOnly: true,
|
|
365
|
+
type: {
|
|
366
|
+
name: "String",
|
|
367
|
+
},
|
|
368
|
+
},
|
|
369
|
+
operation: {
|
|
370
|
+
serializedName: "operation",
|
|
371
|
+
readOnly: true,
|
|
372
|
+
type: {
|
|
373
|
+
name: "String",
|
|
374
|
+
},
|
|
375
|
+
},
|
|
376
|
+
description: {
|
|
377
|
+
serializedName: "description",
|
|
378
|
+
readOnly: true,
|
|
379
|
+
type: {
|
|
380
|
+
name: "String",
|
|
381
|
+
},
|
|
382
|
+
},
|
|
383
|
+
},
|
|
384
|
+
},
|
|
385
|
+
};
|
|
386
|
+
const ErrorResponse = {
|
|
387
|
+
type: {
|
|
388
|
+
name: "Composite",
|
|
389
|
+
className: "ErrorResponse",
|
|
390
|
+
modelProperties: {
|
|
391
|
+
error: {
|
|
392
|
+
serializedName: "error",
|
|
393
|
+
type: {
|
|
394
|
+
name: "Composite",
|
|
395
|
+
className: "ErrorDetail",
|
|
396
|
+
},
|
|
397
|
+
},
|
|
398
|
+
},
|
|
399
|
+
},
|
|
400
|
+
};
|
|
401
|
+
const ErrorDetail = {
|
|
402
|
+
type: {
|
|
403
|
+
name: "Composite",
|
|
404
|
+
className: "ErrorDetail",
|
|
405
|
+
modelProperties: {
|
|
406
|
+
code: {
|
|
407
|
+
serializedName: "code",
|
|
408
|
+
readOnly: true,
|
|
409
|
+
type: {
|
|
410
|
+
name: "String",
|
|
411
|
+
},
|
|
412
|
+
},
|
|
413
|
+
message: {
|
|
414
|
+
serializedName: "message",
|
|
415
|
+
readOnly: true,
|
|
416
|
+
type: {
|
|
417
|
+
name: "String",
|
|
418
|
+
},
|
|
419
|
+
},
|
|
420
|
+
target: {
|
|
421
|
+
serializedName: "target",
|
|
422
|
+
readOnly: true,
|
|
423
|
+
type: {
|
|
424
|
+
name: "String",
|
|
425
|
+
},
|
|
426
|
+
},
|
|
427
|
+
details: {
|
|
428
|
+
serializedName: "details",
|
|
429
|
+
readOnly: true,
|
|
430
|
+
type: {
|
|
431
|
+
name: "Sequence",
|
|
432
|
+
element: {
|
|
433
|
+
type: {
|
|
434
|
+
name: "Composite",
|
|
435
|
+
className: "ErrorDetail",
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
},
|
|
439
|
+
},
|
|
440
|
+
additionalInfo: {
|
|
441
|
+
serializedName: "additionalInfo",
|
|
442
|
+
readOnly: true,
|
|
443
|
+
type: {
|
|
444
|
+
name: "Sequence",
|
|
445
|
+
element: {
|
|
446
|
+
type: {
|
|
447
|
+
name: "Composite",
|
|
448
|
+
className: "ErrorAdditionalInfo",
|
|
449
|
+
},
|
|
450
|
+
},
|
|
451
|
+
},
|
|
452
|
+
},
|
|
453
|
+
},
|
|
454
|
+
},
|
|
455
|
+
};
|
|
456
|
+
const ErrorAdditionalInfo = {
|
|
457
|
+
type: {
|
|
458
|
+
name: "Composite",
|
|
459
|
+
className: "ErrorAdditionalInfo",
|
|
460
|
+
modelProperties: {
|
|
461
|
+
type: {
|
|
462
|
+
serializedName: "type",
|
|
463
|
+
readOnly: true,
|
|
464
|
+
type: {
|
|
465
|
+
name: "String",
|
|
466
|
+
},
|
|
467
|
+
},
|
|
468
|
+
info: {
|
|
469
|
+
serializedName: "info",
|
|
470
|
+
readOnly: true,
|
|
471
|
+
type: {
|
|
472
|
+
name: "Dictionary",
|
|
473
|
+
value: { type: { name: "any" } },
|
|
474
|
+
},
|
|
475
|
+
},
|
|
476
|
+
},
|
|
477
|
+
},
|
|
478
|
+
};
|
|
479
|
+
const AzureLargeInstanceListResult = {
|
|
480
|
+
type: {
|
|
481
|
+
name: "Composite",
|
|
482
|
+
className: "AzureLargeInstanceListResult",
|
|
483
|
+
modelProperties: {
|
|
484
|
+
value: {
|
|
485
|
+
serializedName: "value",
|
|
486
|
+
required: true,
|
|
487
|
+
type: {
|
|
488
|
+
name: "Sequence",
|
|
489
|
+
element: {
|
|
490
|
+
type: {
|
|
491
|
+
name: "Composite",
|
|
492
|
+
className: "AzureLargeInstance",
|
|
493
|
+
},
|
|
494
|
+
},
|
|
495
|
+
},
|
|
496
|
+
},
|
|
497
|
+
nextLink: {
|
|
498
|
+
serializedName: "nextLink",
|
|
499
|
+
type: {
|
|
500
|
+
name: "String",
|
|
501
|
+
},
|
|
502
|
+
},
|
|
503
|
+
},
|
|
504
|
+
},
|
|
505
|
+
};
|
|
506
|
+
const AzureLargeInstanceProperties = {
|
|
507
|
+
type: {
|
|
508
|
+
name: "Composite",
|
|
509
|
+
className: "AzureLargeInstanceProperties",
|
|
510
|
+
modelProperties: {
|
|
511
|
+
hardwareProfile: {
|
|
512
|
+
serializedName: "hardwareProfile",
|
|
513
|
+
type: {
|
|
514
|
+
name: "Composite",
|
|
515
|
+
className: "HardwareProfile",
|
|
516
|
+
},
|
|
517
|
+
},
|
|
518
|
+
storageProfile: {
|
|
519
|
+
serializedName: "storageProfile",
|
|
520
|
+
type: {
|
|
521
|
+
name: "Composite",
|
|
522
|
+
className: "StorageProfile",
|
|
523
|
+
},
|
|
524
|
+
},
|
|
525
|
+
osProfile: {
|
|
526
|
+
serializedName: "osProfile",
|
|
527
|
+
type: {
|
|
528
|
+
name: "Composite",
|
|
529
|
+
className: "OsProfile",
|
|
530
|
+
},
|
|
531
|
+
},
|
|
532
|
+
networkProfile: {
|
|
533
|
+
serializedName: "networkProfile",
|
|
534
|
+
type: {
|
|
535
|
+
name: "Composite",
|
|
536
|
+
className: "NetworkProfile",
|
|
537
|
+
},
|
|
538
|
+
},
|
|
539
|
+
azureLargeInstanceId: {
|
|
540
|
+
serializedName: "azureLargeInstanceId",
|
|
541
|
+
readOnly: true,
|
|
542
|
+
type: {
|
|
543
|
+
name: "String",
|
|
544
|
+
},
|
|
545
|
+
},
|
|
546
|
+
powerState: {
|
|
547
|
+
serializedName: "powerState",
|
|
548
|
+
readOnly: true,
|
|
549
|
+
type: {
|
|
550
|
+
name: "String",
|
|
551
|
+
},
|
|
552
|
+
},
|
|
553
|
+
proximityPlacementGroup: {
|
|
554
|
+
serializedName: "proximityPlacementGroup",
|
|
555
|
+
readOnly: true,
|
|
556
|
+
type: {
|
|
557
|
+
name: "String",
|
|
558
|
+
},
|
|
559
|
+
},
|
|
560
|
+
hwRevision: {
|
|
561
|
+
serializedName: "hwRevision",
|
|
562
|
+
readOnly: true,
|
|
563
|
+
type: {
|
|
564
|
+
name: "String",
|
|
565
|
+
},
|
|
566
|
+
},
|
|
567
|
+
partnerNodeId: {
|
|
568
|
+
serializedName: "partnerNodeId",
|
|
569
|
+
type: {
|
|
570
|
+
name: "String",
|
|
571
|
+
},
|
|
572
|
+
},
|
|
573
|
+
provisioningState: {
|
|
574
|
+
serializedName: "provisioningState",
|
|
575
|
+
readOnly: true,
|
|
576
|
+
type: {
|
|
577
|
+
name: "String",
|
|
578
|
+
},
|
|
579
|
+
},
|
|
580
|
+
},
|
|
581
|
+
},
|
|
582
|
+
};
|
|
583
|
+
const HardwareProfile = {
|
|
584
|
+
type: {
|
|
585
|
+
name: "Composite",
|
|
586
|
+
className: "HardwareProfile",
|
|
587
|
+
modelProperties: {
|
|
588
|
+
hardwareType: {
|
|
589
|
+
serializedName: "hardwareType",
|
|
590
|
+
readOnly: true,
|
|
591
|
+
type: {
|
|
592
|
+
name: "String",
|
|
593
|
+
},
|
|
594
|
+
},
|
|
595
|
+
azureLargeInstanceSize: {
|
|
596
|
+
serializedName: "azureLargeInstanceSize",
|
|
597
|
+
readOnly: true,
|
|
598
|
+
type: {
|
|
599
|
+
name: "String",
|
|
600
|
+
},
|
|
601
|
+
},
|
|
602
|
+
},
|
|
603
|
+
},
|
|
604
|
+
};
|
|
605
|
+
const StorageProfile = {
|
|
606
|
+
type: {
|
|
607
|
+
name: "Composite",
|
|
608
|
+
className: "StorageProfile",
|
|
609
|
+
modelProperties: {
|
|
610
|
+
nfsIpAddress: {
|
|
611
|
+
serializedName: "nfsIpAddress",
|
|
612
|
+
readOnly: true,
|
|
613
|
+
type: {
|
|
614
|
+
name: "String",
|
|
615
|
+
},
|
|
616
|
+
},
|
|
617
|
+
osDisks: {
|
|
618
|
+
serializedName: "osDisks",
|
|
619
|
+
type: {
|
|
620
|
+
name: "Sequence",
|
|
621
|
+
element: {
|
|
622
|
+
type: {
|
|
623
|
+
name: "Composite",
|
|
624
|
+
className: "Disk",
|
|
625
|
+
},
|
|
626
|
+
},
|
|
627
|
+
},
|
|
628
|
+
},
|
|
629
|
+
},
|
|
630
|
+
},
|
|
631
|
+
};
|
|
632
|
+
const Disk = {
|
|
633
|
+
type: {
|
|
634
|
+
name: "Composite",
|
|
635
|
+
className: "Disk",
|
|
636
|
+
modelProperties: {
|
|
637
|
+
name: {
|
|
638
|
+
serializedName: "name",
|
|
639
|
+
type: {
|
|
640
|
+
name: "String",
|
|
641
|
+
},
|
|
642
|
+
},
|
|
643
|
+
diskSizeGB: {
|
|
644
|
+
serializedName: "diskSizeGB",
|
|
645
|
+
type: {
|
|
646
|
+
name: "Number",
|
|
647
|
+
},
|
|
648
|
+
},
|
|
649
|
+
lun: {
|
|
650
|
+
serializedName: "lun",
|
|
651
|
+
readOnly: true,
|
|
652
|
+
type: {
|
|
653
|
+
name: "Number",
|
|
654
|
+
},
|
|
655
|
+
},
|
|
656
|
+
},
|
|
657
|
+
},
|
|
658
|
+
};
|
|
659
|
+
const OsProfile = {
|
|
660
|
+
type: {
|
|
661
|
+
name: "Composite",
|
|
662
|
+
className: "OsProfile",
|
|
663
|
+
modelProperties: {
|
|
664
|
+
computerName: {
|
|
665
|
+
serializedName: "computerName",
|
|
666
|
+
type: {
|
|
667
|
+
name: "String",
|
|
668
|
+
},
|
|
669
|
+
},
|
|
670
|
+
osType: {
|
|
671
|
+
serializedName: "osType",
|
|
672
|
+
readOnly: true,
|
|
673
|
+
type: {
|
|
674
|
+
name: "String",
|
|
675
|
+
},
|
|
676
|
+
},
|
|
677
|
+
version: {
|
|
678
|
+
serializedName: "version",
|
|
679
|
+
readOnly: true,
|
|
680
|
+
type: {
|
|
681
|
+
name: "String",
|
|
682
|
+
},
|
|
683
|
+
},
|
|
684
|
+
sshPublicKey: {
|
|
685
|
+
serializedName: "sshPublicKey",
|
|
686
|
+
type: {
|
|
687
|
+
name: "String",
|
|
688
|
+
},
|
|
689
|
+
},
|
|
690
|
+
},
|
|
691
|
+
},
|
|
692
|
+
};
|
|
693
|
+
const NetworkProfile = {
|
|
694
|
+
type: {
|
|
695
|
+
name: "Composite",
|
|
696
|
+
className: "NetworkProfile",
|
|
697
|
+
modelProperties: {
|
|
698
|
+
networkInterfaces: {
|
|
699
|
+
serializedName: "networkInterfaces",
|
|
700
|
+
type: {
|
|
701
|
+
name: "Sequence",
|
|
702
|
+
element: {
|
|
703
|
+
type: {
|
|
704
|
+
name: "Composite",
|
|
705
|
+
className: "IpAddress",
|
|
706
|
+
},
|
|
707
|
+
},
|
|
708
|
+
},
|
|
709
|
+
},
|
|
710
|
+
circuitId: {
|
|
711
|
+
serializedName: "circuitId",
|
|
712
|
+
readOnly: true,
|
|
713
|
+
type: {
|
|
714
|
+
name: "String",
|
|
715
|
+
},
|
|
716
|
+
},
|
|
717
|
+
},
|
|
718
|
+
},
|
|
719
|
+
};
|
|
720
|
+
const IpAddress = {
|
|
721
|
+
type: {
|
|
722
|
+
name: "Composite",
|
|
723
|
+
className: "IpAddress",
|
|
724
|
+
modelProperties: {
|
|
725
|
+
ipAddress: {
|
|
726
|
+
serializedName: "ipAddress",
|
|
727
|
+
type: {
|
|
728
|
+
name: "String",
|
|
729
|
+
},
|
|
730
|
+
},
|
|
731
|
+
},
|
|
732
|
+
},
|
|
733
|
+
};
|
|
734
|
+
const Resource = {
|
|
735
|
+
type: {
|
|
736
|
+
name: "Composite",
|
|
737
|
+
className: "Resource",
|
|
738
|
+
modelProperties: {
|
|
739
|
+
id: {
|
|
740
|
+
serializedName: "id",
|
|
741
|
+
readOnly: true,
|
|
742
|
+
type: {
|
|
743
|
+
name: "String",
|
|
744
|
+
},
|
|
745
|
+
},
|
|
746
|
+
name: {
|
|
747
|
+
serializedName: "name",
|
|
748
|
+
readOnly: true,
|
|
749
|
+
type: {
|
|
750
|
+
name: "String",
|
|
751
|
+
},
|
|
752
|
+
},
|
|
753
|
+
type: {
|
|
754
|
+
serializedName: "type",
|
|
755
|
+
readOnly: true,
|
|
756
|
+
type: {
|
|
757
|
+
name: "String",
|
|
758
|
+
},
|
|
759
|
+
},
|
|
760
|
+
systemData: {
|
|
761
|
+
serializedName: "systemData",
|
|
762
|
+
type: {
|
|
763
|
+
name: "Composite",
|
|
764
|
+
className: "SystemData",
|
|
765
|
+
},
|
|
766
|
+
},
|
|
767
|
+
},
|
|
768
|
+
},
|
|
769
|
+
};
|
|
770
|
+
const SystemData = {
|
|
771
|
+
type: {
|
|
772
|
+
name: "Composite",
|
|
773
|
+
className: "SystemData",
|
|
774
|
+
modelProperties: {
|
|
775
|
+
createdBy: {
|
|
776
|
+
serializedName: "createdBy",
|
|
777
|
+
type: {
|
|
778
|
+
name: "String",
|
|
779
|
+
},
|
|
780
|
+
},
|
|
781
|
+
createdByType: {
|
|
782
|
+
serializedName: "createdByType",
|
|
783
|
+
type: {
|
|
784
|
+
name: "String",
|
|
785
|
+
},
|
|
786
|
+
},
|
|
787
|
+
createdAt: {
|
|
788
|
+
serializedName: "createdAt",
|
|
789
|
+
type: {
|
|
790
|
+
name: "DateTime",
|
|
791
|
+
},
|
|
792
|
+
},
|
|
793
|
+
lastModifiedBy: {
|
|
794
|
+
serializedName: "lastModifiedBy",
|
|
795
|
+
type: {
|
|
796
|
+
name: "String",
|
|
797
|
+
},
|
|
798
|
+
},
|
|
799
|
+
lastModifiedByType: {
|
|
800
|
+
serializedName: "lastModifiedByType",
|
|
801
|
+
type: {
|
|
802
|
+
name: "String",
|
|
803
|
+
},
|
|
804
|
+
},
|
|
805
|
+
lastModifiedAt: {
|
|
806
|
+
serializedName: "lastModifiedAt",
|
|
807
|
+
type: {
|
|
808
|
+
name: "DateTime",
|
|
809
|
+
},
|
|
810
|
+
},
|
|
811
|
+
},
|
|
812
|
+
},
|
|
813
|
+
};
|
|
814
|
+
const AzureLargeStorageInstanceListResult = {
|
|
815
|
+
type: {
|
|
816
|
+
name: "Composite",
|
|
817
|
+
className: "AzureLargeStorageInstanceListResult",
|
|
818
|
+
modelProperties: {
|
|
819
|
+
value: {
|
|
820
|
+
serializedName: "value",
|
|
821
|
+
required: true,
|
|
822
|
+
type: {
|
|
823
|
+
name: "Sequence",
|
|
824
|
+
element: {
|
|
825
|
+
type: {
|
|
826
|
+
name: "Composite",
|
|
827
|
+
className: "AzureLargeStorageInstance",
|
|
828
|
+
},
|
|
829
|
+
},
|
|
830
|
+
},
|
|
831
|
+
},
|
|
832
|
+
nextLink: {
|
|
833
|
+
serializedName: "nextLink",
|
|
834
|
+
type: {
|
|
835
|
+
name: "String",
|
|
836
|
+
},
|
|
837
|
+
},
|
|
838
|
+
},
|
|
839
|
+
},
|
|
840
|
+
};
|
|
841
|
+
const AzureLargeStorageInstanceProperties = {
|
|
842
|
+
type: {
|
|
843
|
+
name: "Composite",
|
|
844
|
+
className: "AzureLargeStorageInstanceProperties",
|
|
845
|
+
modelProperties: {
|
|
846
|
+
azureLargeStorageInstanceUniqueIdentifier: {
|
|
847
|
+
serializedName: "azureLargeStorageInstanceUniqueIdentifier",
|
|
848
|
+
type: {
|
|
849
|
+
name: "String",
|
|
850
|
+
},
|
|
851
|
+
},
|
|
852
|
+
storageProperties: {
|
|
853
|
+
serializedName: "storageProperties",
|
|
854
|
+
type: {
|
|
855
|
+
name: "Composite",
|
|
856
|
+
className: "StorageProperties",
|
|
857
|
+
},
|
|
858
|
+
},
|
|
859
|
+
},
|
|
860
|
+
},
|
|
861
|
+
};
|
|
862
|
+
const StorageProperties = {
|
|
863
|
+
type: {
|
|
864
|
+
name: "Composite",
|
|
865
|
+
className: "StorageProperties",
|
|
866
|
+
modelProperties: {
|
|
867
|
+
provisioningState: {
|
|
868
|
+
serializedName: "provisioningState",
|
|
869
|
+
readOnly: true,
|
|
870
|
+
type: {
|
|
871
|
+
name: "String",
|
|
872
|
+
},
|
|
873
|
+
},
|
|
874
|
+
offeringType: {
|
|
875
|
+
serializedName: "offeringType",
|
|
876
|
+
type: {
|
|
877
|
+
name: "String",
|
|
878
|
+
},
|
|
879
|
+
},
|
|
880
|
+
storageType: {
|
|
881
|
+
serializedName: "storageType",
|
|
882
|
+
type: {
|
|
883
|
+
name: "String",
|
|
884
|
+
},
|
|
885
|
+
},
|
|
886
|
+
generation: {
|
|
887
|
+
serializedName: "generation",
|
|
888
|
+
type: {
|
|
889
|
+
name: "String",
|
|
890
|
+
},
|
|
891
|
+
},
|
|
892
|
+
hardwareType: {
|
|
893
|
+
serializedName: "hardwareType",
|
|
894
|
+
type: {
|
|
895
|
+
name: "String",
|
|
896
|
+
},
|
|
897
|
+
},
|
|
898
|
+
workloadType: {
|
|
899
|
+
serializedName: "workloadType",
|
|
900
|
+
type: {
|
|
901
|
+
name: "String",
|
|
902
|
+
},
|
|
903
|
+
},
|
|
904
|
+
storageBillingProperties: {
|
|
905
|
+
serializedName: "storageBillingProperties",
|
|
906
|
+
type: {
|
|
907
|
+
name: "Composite",
|
|
908
|
+
className: "StorageBillingProperties",
|
|
909
|
+
},
|
|
910
|
+
},
|
|
911
|
+
},
|
|
912
|
+
},
|
|
913
|
+
};
|
|
914
|
+
const StorageBillingProperties = {
|
|
915
|
+
type: {
|
|
916
|
+
name: "Composite",
|
|
917
|
+
className: "StorageBillingProperties",
|
|
918
|
+
modelProperties: {
|
|
919
|
+
billingMode: {
|
|
920
|
+
serializedName: "billingMode",
|
|
921
|
+
type: {
|
|
922
|
+
name: "String",
|
|
923
|
+
},
|
|
924
|
+
},
|
|
925
|
+
sku: {
|
|
926
|
+
serializedName: "sku",
|
|
927
|
+
type: {
|
|
928
|
+
name: "String",
|
|
929
|
+
},
|
|
930
|
+
},
|
|
931
|
+
},
|
|
932
|
+
},
|
|
933
|
+
};
|
|
934
|
+
const AzureLargeInstanceTagsUpdate = {
|
|
935
|
+
type: {
|
|
936
|
+
name: "Composite",
|
|
937
|
+
className: "AzureLargeInstanceTagsUpdate",
|
|
938
|
+
modelProperties: {
|
|
939
|
+
tags: {
|
|
940
|
+
serializedName: "tags",
|
|
941
|
+
type: {
|
|
942
|
+
name: "Dictionary",
|
|
943
|
+
value: { type: { name: "String" } },
|
|
944
|
+
},
|
|
945
|
+
},
|
|
946
|
+
},
|
|
947
|
+
},
|
|
948
|
+
};
|
|
949
|
+
const ForceState = {
|
|
950
|
+
type: {
|
|
951
|
+
name: "Composite",
|
|
952
|
+
className: "ForceState",
|
|
953
|
+
modelProperties: {
|
|
954
|
+
forceState: {
|
|
955
|
+
serializedName: "forceState",
|
|
956
|
+
type: {
|
|
957
|
+
name: "String",
|
|
958
|
+
},
|
|
959
|
+
},
|
|
960
|
+
},
|
|
961
|
+
},
|
|
962
|
+
};
|
|
963
|
+
const OperationStatusResult = {
|
|
964
|
+
type: {
|
|
965
|
+
name: "Composite",
|
|
966
|
+
className: "OperationStatusResult",
|
|
967
|
+
modelProperties: {
|
|
968
|
+
id: {
|
|
969
|
+
serializedName: "id",
|
|
970
|
+
type: {
|
|
971
|
+
name: "String",
|
|
972
|
+
},
|
|
973
|
+
},
|
|
974
|
+
resourceId: {
|
|
975
|
+
serializedName: "resourceId",
|
|
976
|
+
readOnly: true,
|
|
977
|
+
type: {
|
|
978
|
+
name: "String",
|
|
979
|
+
},
|
|
980
|
+
},
|
|
981
|
+
name: {
|
|
982
|
+
serializedName: "name",
|
|
983
|
+
type: {
|
|
984
|
+
name: "String",
|
|
985
|
+
},
|
|
986
|
+
},
|
|
987
|
+
status: {
|
|
988
|
+
serializedName: "status",
|
|
989
|
+
required: true,
|
|
990
|
+
type: {
|
|
991
|
+
name: "String",
|
|
992
|
+
},
|
|
993
|
+
},
|
|
994
|
+
percentComplete: {
|
|
995
|
+
constraints: {
|
|
996
|
+
InclusiveMaximum: 100,
|
|
997
|
+
InclusiveMinimum: 0,
|
|
998
|
+
},
|
|
999
|
+
serializedName: "percentComplete",
|
|
1000
|
+
type: {
|
|
1001
|
+
name: "Number",
|
|
1002
|
+
},
|
|
1003
|
+
},
|
|
1004
|
+
startTime: {
|
|
1005
|
+
serializedName: "startTime",
|
|
1006
|
+
type: {
|
|
1007
|
+
name: "DateTime",
|
|
1008
|
+
},
|
|
1009
|
+
},
|
|
1010
|
+
endTime: {
|
|
1011
|
+
serializedName: "endTime",
|
|
1012
|
+
type: {
|
|
1013
|
+
name: "DateTime",
|
|
1014
|
+
},
|
|
1015
|
+
},
|
|
1016
|
+
operations: {
|
|
1017
|
+
serializedName: "operations",
|
|
1018
|
+
type: {
|
|
1019
|
+
name: "Sequence",
|
|
1020
|
+
element: {
|
|
1021
|
+
type: {
|
|
1022
|
+
name: "Composite",
|
|
1023
|
+
className: "OperationStatusResult",
|
|
1024
|
+
},
|
|
1025
|
+
},
|
|
1026
|
+
},
|
|
1027
|
+
},
|
|
1028
|
+
error: {
|
|
1029
|
+
serializedName: "error",
|
|
1030
|
+
type: {
|
|
1031
|
+
name: "Composite",
|
|
1032
|
+
className: "ErrorDetail",
|
|
1033
|
+
},
|
|
1034
|
+
},
|
|
1035
|
+
},
|
|
1036
|
+
},
|
|
1037
|
+
};
|
|
1038
|
+
const AzureLargeStorageInstanceTagsUpdate = {
|
|
1039
|
+
type: {
|
|
1040
|
+
name: "Composite",
|
|
1041
|
+
className: "AzureLargeStorageInstanceTagsUpdate",
|
|
1042
|
+
modelProperties: {
|
|
1043
|
+
tags: {
|
|
1044
|
+
serializedName: "tags",
|
|
1045
|
+
type: {
|
|
1046
|
+
name: "Dictionary",
|
|
1047
|
+
value: { type: { name: "String" } },
|
|
1048
|
+
},
|
|
1049
|
+
},
|
|
1050
|
+
},
|
|
1051
|
+
},
|
|
1052
|
+
};
|
|
1053
|
+
const Tags = {
|
|
1054
|
+
type: {
|
|
1055
|
+
name: "Composite",
|
|
1056
|
+
className: "Tags",
|
|
1057
|
+
modelProperties: {
|
|
1058
|
+
tags: {
|
|
1059
|
+
serializedName: "tags",
|
|
1060
|
+
type: {
|
|
1061
|
+
name: "Dictionary",
|
|
1062
|
+
value: { type: { name: "String" } },
|
|
1063
|
+
},
|
|
1064
|
+
},
|
|
1065
|
+
},
|
|
1066
|
+
},
|
|
1067
|
+
};
|
|
1068
|
+
const TrackedResource = {
|
|
1069
|
+
type: {
|
|
1070
|
+
name: "Composite",
|
|
1071
|
+
className: "TrackedResource",
|
|
1072
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
1073
|
+
serializedName: "tags",
|
|
1074
|
+
type: {
|
|
1075
|
+
name: "Dictionary",
|
|
1076
|
+
value: { type: { name: "String" } },
|
|
1077
|
+
},
|
|
1078
|
+
}, location: {
|
|
1079
|
+
serializedName: "location",
|
|
1080
|
+
required: true,
|
|
1081
|
+
type: {
|
|
1082
|
+
name: "String",
|
|
1083
|
+
},
|
|
1084
|
+
} }),
|
|
1085
|
+
},
|
|
1086
|
+
};
|
|
1087
|
+
const AzureLargeInstance = {
|
|
1088
|
+
type: {
|
|
1089
|
+
name: "Composite",
|
|
1090
|
+
className: "AzureLargeInstance",
|
|
1091
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { properties: {
|
|
1092
|
+
serializedName: "properties",
|
|
1093
|
+
type: {
|
|
1094
|
+
name: "Composite",
|
|
1095
|
+
className: "AzureLargeInstanceProperties",
|
|
1096
|
+
},
|
|
1097
|
+
} }),
|
|
1098
|
+
},
|
|
1099
|
+
};
|
|
1100
|
+
const AzureLargeStorageInstance = {
|
|
1101
|
+
type: {
|
|
1102
|
+
name: "Composite",
|
|
1103
|
+
className: "AzureLargeStorageInstance",
|
|
1104
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { properties: {
|
|
1105
|
+
serializedName: "properties",
|
|
1106
|
+
type: {
|
|
1107
|
+
name: "Composite",
|
|
1108
|
+
className: "AzureLargeStorageInstanceProperties",
|
|
1109
|
+
},
|
|
1110
|
+
} }),
|
|
1111
|
+
},
|
|
1112
|
+
};
|
|
1113
|
+
const AzureLargeInstanceRestartHeaders = {
|
|
1114
|
+
type: {
|
|
1115
|
+
name: "Composite",
|
|
1116
|
+
className: "AzureLargeInstanceRestartHeaders",
|
|
1117
|
+
modelProperties: {
|
|
1118
|
+
retryAfter: {
|
|
1119
|
+
serializedName: "retry-after",
|
|
1120
|
+
type: {
|
|
1121
|
+
name: "Number",
|
|
1122
|
+
},
|
|
1123
|
+
},
|
|
1124
|
+
location: {
|
|
1125
|
+
serializedName: "location",
|
|
1126
|
+
type: {
|
|
1127
|
+
name: "String",
|
|
1128
|
+
},
|
|
1129
|
+
},
|
|
1130
|
+
},
|
|
1131
|
+
},
|
|
1132
|
+
};
|
|
1133
|
+
const AzureLargeInstanceShutdownHeaders = {
|
|
1134
|
+
type: {
|
|
1135
|
+
name: "Composite",
|
|
1136
|
+
className: "AzureLargeInstanceShutdownHeaders",
|
|
1137
|
+
modelProperties: {
|
|
1138
|
+
retryAfter: {
|
|
1139
|
+
serializedName: "retry-after",
|
|
1140
|
+
type: {
|
|
1141
|
+
name: "Number",
|
|
1142
|
+
},
|
|
1143
|
+
},
|
|
1144
|
+
location: {
|
|
1145
|
+
serializedName: "location",
|
|
1146
|
+
type: {
|
|
1147
|
+
name: "String",
|
|
1148
|
+
},
|
|
1149
|
+
},
|
|
1150
|
+
},
|
|
1151
|
+
},
|
|
1152
|
+
};
|
|
1153
|
+
const AzureLargeInstanceStartHeaders = {
|
|
1154
|
+
type: {
|
|
1155
|
+
name: "Composite",
|
|
1156
|
+
className: "AzureLargeInstanceStartHeaders",
|
|
1157
|
+
modelProperties: {
|
|
1158
|
+
retryAfter: {
|
|
1159
|
+
serializedName: "retry-after",
|
|
1160
|
+
type: {
|
|
1161
|
+
name: "Number",
|
|
1162
|
+
},
|
|
1163
|
+
},
|
|
1164
|
+
location: {
|
|
1165
|
+
serializedName: "location",
|
|
1166
|
+
type: {
|
|
1167
|
+
name: "String",
|
|
1168
|
+
},
|
|
1169
|
+
},
|
|
1170
|
+
},
|
|
1171
|
+
},
|
|
1172
|
+
};
|
|
1173
|
+
|
|
1174
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1175
|
+
__proto__: null,
|
|
1176
|
+
AzureLargeInstance: AzureLargeInstance,
|
|
1177
|
+
AzureLargeInstanceListResult: AzureLargeInstanceListResult,
|
|
1178
|
+
AzureLargeInstanceProperties: AzureLargeInstanceProperties,
|
|
1179
|
+
AzureLargeInstanceRestartHeaders: AzureLargeInstanceRestartHeaders,
|
|
1180
|
+
AzureLargeInstanceShutdownHeaders: AzureLargeInstanceShutdownHeaders,
|
|
1181
|
+
AzureLargeInstanceStartHeaders: AzureLargeInstanceStartHeaders,
|
|
1182
|
+
AzureLargeInstanceTagsUpdate: AzureLargeInstanceTagsUpdate,
|
|
1183
|
+
AzureLargeStorageInstance: AzureLargeStorageInstance,
|
|
1184
|
+
AzureLargeStorageInstanceListResult: AzureLargeStorageInstanceListResult,
|
|
1185
|
+
AzureLargeStorageInstanceProperties: AzureLargeStorageInstanceProperties,
|
|
1186
|
+
AzureLargeStorageInstanceTagsUpdate: AzureLargeStorageInstanceTagsUpdate,
|
|
1187
|
+
Disk: Disk,
|
|
1188
|
+
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1189
|
+
ErrorDetail: ErrorDetail,
|
|
1190
|
+
ErrorResponse: ErrorResponse,
|
|
1191
|
+
ForceState: ForceState,
|
|
1192
|
+
HardwareProfile: HardwareProfile,
|
|
1193
|
+
IpAddress: IpAddress,
|
|
1194
|
+
NetworkProfile: NetworkProfile,
|
|
1195
|
+
Operation: Operation,
|
|
1196
|
+
OperationDisplay: OperationDisplay,
|
|
1197
|
+
OperationListResult: OperationListResult,
|
|
1198
|
+
OperationStatusResult: OperationStatusResult,
|
|
1199
|
+
OsProfile: OsProfile,
|
|
1200
|
+
Resource: Resource,
|
|
1201
|
+
StorageBillingProperties: StorageBillingProperties,
|
|
1202
|
+
StorageProfile: StorageProfile,
|
|
1203
|
+
StorageProperties: StorageProperties,
|
|
1204
|
+
SystemData: SystemData,
|
|
1205
|
+
Tags: Tags,
|
|
1206
|
+
TrackedResource: TrackedResource
|
|
1207
|
+
});
|
|
1208
|
+
|
|
1209
|
+
/*
|
|
1210
|
+
* Copyright (c) Microsoft Corporation.
|
|
1211
|
+
* Licensed under the MIT License.
|
|
1212
|
+
*
|
|
1213
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1214
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1215
|
+
*/
|
|
1216
|
+
const accept = {
|
|
1217
|
+
parameterPath: "accept",
|
|
1218
|
+
mapper: {
|
|
1219
|
+
defaultValue: "application/json",
|
|
1220
|
+
isConstant: true,
|
|
1221
|
+
serializedName: "Accept",
|
|
1222
|
+
type: {
|
|
1223
|
+
name: "String",
|
|
1224
|
+
},
|
|
1225
|
+
},
|
|
1226
|
+
};
|
|
1227
|
+
const $host = {
|
|
1228
|
+
parameterPath: "$host",
|
|
1229
|
+
mapper: {
|
|
1230
|
+
serializedName: "$host",
|
|
1231
|
+
required: true,
|
|
1232
|
+
type: {
|
|
1233
|
+
name: "String",
|
|
1234
|
+
},
|
|
1235
|
+
},
|
|
1236
|
+
skipEncoding: true,
|
|
1237
|
+
};
|
|
1238
|
+
const apiVersion = {
|
|
1239
|
+
parameterPath: "apiVersion",
|
|
1240
|
+
mapper: {
|
|
1241
|
+
defaultValue: "2023-07-20-preview",
|
|
1242
|
+
isConstant: true,
|
|
1243
|
+
serializedName: "api-version",
|
|
1244
|
+
type: {
|
|
1245
|
+
name: "String",
|
|
1246
|
+
},
|
|
1247
|
+
},
|
|
1248
|
+
};
|
|
1249
|
+
const nextLink = {
|
|
1250
|
+
parameterPath: "nextLink",
|
|
1251
|
+
mapper: {
|
|
1252
|
+
serializedName: "nextLink",
|
|
1253
|
+
required: true,
|
|
1254
|
+
type: {
|
|
1255
|
+
name: "String",
|
|
1256
|
+
},
|
|
1257
|
+
},
|
|
1258
|
+
skipEncoding: true,
|
|
1259
|
+
};
|
|
1260
|
+
const subscriptionId = {
|
|
1261
|
+
parameterPath: "subscriptionId",
|
|
1262
|
+
mapper: {
|
|
1263
|
+
serializedName: "subscriptionId",
|
|
1264
|
+
required: true,
|
|
1265
|
+
type: {
|
|
1266
|
+
name: "Uuid",
|
|
1267
|
+
},
|
|
1268
|
+
},
|
|
1269
|
+
};
|
|
1270
|
+
const resourceGroupName = {
|
|
1271
|
+
parameterPath: "resourceGroupName",
|
|
1272
|
+
mapper: {
|
|
1273
|
+
constraints: {
|
|
1274
|
+
MaxLength: 90,
|
|
1275
|
+
MinLength: 1,
|
|
1276
|
+
},
|
|
1277
|
+
serializedName: "resourceGroupName",
|
|
1278
|
+
required: true,
|
|
1279
|
+
type: {
|
|
1280
|
+
name: "String",
|
|
1281
|
+
},
|
|
1282
|
+
},
|
|
1283
|
+
};
|
|
1284
|
+
const azureLargeInstanceName = {
|
|
1285
|
+
parameterPath: "azureLargeInstanceName",
|
|
1286
|
+
mapper: {
|
|
1287
|
+
constraints: {
|
|
1288
|
+
Pattern: new RegExp(".*"),
|
|
1289
|
+
},
|
|
1290
|
+
serializedName: "azureLargeInstanceName",
|
|
1291
|
+
required: true,
|
|
1292
|
+
type: {
|
|
1293
|
+
name: "String",
|
|
1294
|
+
},
|
|
1295
|
+
},
|
|
1296
|
+
};
|
|
1297
|
+
const contentType = {
|
|
1298
|
+
parameterPath: ["options", "contentType"],
|
|
1299
|
+
mapper: {
|
|
1300
|
+
defaultValue: "application/json",
|
|
1301
|
+
isConstant: true,
|
|
1302
|
+
serializedName: "Content-Type",
|
|
1303
|
+
type: {
|
|
1304
|
+
name: "String",
|
|
1305
|
+
},
|
|
1306
|
+
},
|
|
1307
|
+
};
|
|
1308
|
+
const tagsParameter = {
|
|
1309
|
+
parameterPath: "tagsParameter",
|
|
1310
|
+
mapper: AzureLargeInstanceTagsUpdate,
|
|
1311
|
+
};
|
|
1312
|
+
const forceParameter = {
|
|
1313
|
+
parameterPath: ["options", "forceParameter"],
|
|
1314
|
+
mapper: ForceState,
|
|
1315
|
+
};
|
|
1316
|
+
const azureLargeStorageInstanceName = {
|
|
1317
|
+
parameterPath: "azureLargeStorageInstanceName",
|
|
1318
|
+
mapper: {
|
|
1319
|
+
constraints: {
|
|
1320
|
+
Pattern: new RegExp(".*"),
|
|
1321
|
+
},
|
|
1322
|
+
serializedName: "azureLargeStorageInstanceName",
|
|
1323
|
+
required: true,
|
|
1324
|
+
type: {
|
|
1325
|
+
name: "String",
|
|
1326
|
+
},
|
|
1327
|
+
},
|
|
1328
|
+
};
|
|
1329
|
+
const tagsParameter1 = {
|
|
1330
|
+
parameterPath: "tagsParameter",
|
|
1331
|
+
mapper: AzureLargeStorageInstanceTagsUpdate,
|
|
1332
|
+
};
|
|
1333
|
+
|
|
1334
|
+
/*
|
|
1335
|
+
* Copyright (c) Microsoft Corporation.
|
|
1336
|
+
* Licensed under the MIT License.
|
|
1337
|
+
*
|
|
1338
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1339
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1340
|
+
*/
|
|
1341
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1342
|
+
/** Class containing Operations operations. */
|
|
1343
|
+
class OperationsImpl {
|
|
1344
|
+
/**
|
|
1345
|
+
* Initialize a new instance of the class Operations class.
|
|
1346
|
+
* @param client Reference to the service client
|
|
1347
|
+
*/
|
|
1348
|
+
constructor(client) {
|
|
1349
|
+
this.client = client;
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
* List the operations for the provider
|
|
1353
|
+
* @param options The options parameters.
|
|
1354
|
+
*/
|
|
1355
|
+
list(options) {
|
|
1356
|
+
const iter = this.listPagingAll(options);
|
|
1357
|
+
return {
|
|
1358
|
+
next() {
|
|
1359
|
+
return iter.next();
|
|
1360
|
+
},
|
|
1361
|
+
[Symbol.asyncIterator]() {
|
|
1362
|
+
return this;
|
|
1363
|
+
},
|
|
1364
|
+
byPage: (settings) => {
|
|
1365
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1366
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1367
|
+
}
|
|
1368
|
+
return this.listPagingPage(options, settings);
|
|
1369
|
+
},
|
|
1370
|
+
};
|
|
1371
|
+
}
|
|
1372
|
+
listPagingPage(options, settings) {
|
|
1373
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1374
|
+
let result;
|
|
1375
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1376
|
+
if (!continuationToken) {
|
|
1377
|
+
result = yield tslib.__await(this._list(options));
|
|
1378
|
+
let page = result.value || [];
|
|
1379
|
+
continuationToken = result.nextLink;
|
|
1380
|
+
setContinuationToken(page, continuationToken);
|
|
1381
|
+
yield yield tslib.__await(page);
|
|
1382
|
+
}
|
|
1383
|
+
while (continuationToken) {
|
|
1384
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1385
|
+
continuationToken = result.nextLink;
|
|
1386
|
+
let page = result.value || [];
|
|
1387
|
+
setContinuationToken(page, continuationToken);
|
|
1388
|
+
yield yield tslib.__await(page);
|
|
1389
|
+
}
|
|
1390
|
+
});
|
|
1391
|
+
}
|
|
1392
|
+
listPagingAll(options) {
|
|
1393
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1394
|
+
var _a, e_1, _b, _c;
|
|
1395
|
+
try {
|
|
1396
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1397
|
+
_c = _f.value;
|
|
1398
|
+
_d = false;
|
|
1399
|
+
const page = _c;
|
|
1400
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1404
|
+
finally {
|
|
1405
|
+
try {
|
|
1406
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1407
|
+
}
|
|
1408
|
+
finally { if (e_1) throw e_1.error; }
|
|
1409
|
+
}
|
|
1410
|
+
});
|
|
1411
|
+
}
|
|
1412
|
+
/**
|
|
1413
|
+
* List the operations for the provider
|
|
1414
|
+
* @param options The options parameters.
|
|
1415
|
+
*/
|
|
1416
|
+
_list(options) {
|
|
1417
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
1418
|
+
}
|
|
1419
|
+
/**
|
|
1420
|
+
* ListNext
|
|
1421
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1422
|
+
* @param options The options parameters.
|
|
1423
|
+
*/
|
|
1424
|
+
_listNext(nextLink, options) {
|
|
1425
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
// Operation Specifications
|
|
1429
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1430
|
+
const listOperationSpec = {
|
|
1431
|
+
path: "/providers/Microsoft.AzureLargeInstance/operations",
|
|
1432
|
+
httpMethod: "GET",
|
|
1433
|
+
responses: {
|
|
1434
|
+
200: {
|
|
1435
|
+
bodyMapper: OperationListResult,
|
|
1436
|
+
},
|
|
1437
|
+
default: {
|
|
1438
|
+
bodyMapper: ErrorResponse,
|
|
1439
|
+
},
|
|
1440
|
+
},
|
|
1441
|
+
queryParameters: [apiVersion],
|
|
1442
|
+
urlParameters: [$host],
|
|
1443
|
+
headerParameters: [accept],
|
|
1444
|
+
serializer: serializer$2,
|
|
1445
|
+
};
|
|
1446
|
+
const listNextOperationSpec = {
|
|
1447
|
+
path: "{nextLink}",
|
|
1448
|
+
httpMethod: "GET",
|
|
1449
|
+
responses: {
|
|
1450
|
+
200: {
|
|
1451
|
+
bodyMapper: OperationListResult,
|
|
1452
|
+
},
|
|
1453
|
+
default: {
|
|
1454
|
+
bodyMapper: ErrorResponse,
|
|
1455
|
+
},
|
|
1456
|
+
},
|
|
1457
|
+
urlParameters: [$host, nextLink],
|
|
1458
|
+
headerParameters: [accept],
|
|
1459
|
+
serializer: serializer$2,
|
|
1460
|
+
};
|
|
1461
|
+
|
|
1462
|
+
/*
|
|
1463
|
+
* Copyright (c) Microsoft Corporation.
|
|
1464
|
+
* Licensed under the MIT License.
|
|
1465
|
+
*
|
|
1466
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1467
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1468
|
+
*/
|
|
1469
|
+
function createLroSpec(inputs) {
|
|
1470
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
1471
|
+
return {
|
|
1472
|
+
requestMethod: spec.httpMethod,
|
|
1473
|
+
requestPath: spec.path,
|
|
1474
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
1475
|
+
sendPollRequest: (path, options) => {
|
|
1476
|
+
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
1477
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
1478
|
+
},
|
|
1479
|
+
};
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
/*
|
|
1483
|
+
* Copyright (c) Microsoft Corporation.
|
|
1484
|
+
* Licensed under the MIT License.
|
|
1485
|
+
*
|
|
1486
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1487
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1488
|
+
*/
|
|
1489
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1490
|
+
/** Class containing AzureLargeInstanceOperations operations. */
|
|
1491
|
+
class AzureLargeInstanceOperationsImpl {
|
|
1492
|
+
/**
|
|
1493
|
+
* Initialize a new instance of the class AzureLargeInstanceOperations class.
|
|
1494
|
+
* @param client Reference to the service client
|
|
1495
|
+
*/
|
|
1496
|
+
constructor(client) {
|
|
1497
|
+
this.client = client;
|
|
1498
|
+
}
|
|
1499
|
+
/**
|
|
1500
|
+
* Gets a list of Azure Large Instances in the specified subscription. The
|
|
1501
|
+
* operations returns various properties of each Azure Large Instance.
|
|
1502
|
+
* @param options The options parameters.
|
|
1503
|
+
*/
|
|
1504
|
+
listBySubscription(options) {
|
|
1505
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
1506
|
+
return {
|
|
1507
|
+
next() {
|
|
1508
|
+
return iter.next();
|
|
1509
|
+
},
|
|
1510
|
+
[Symbol.asyncIterator]() {
|
|
1511
|
+
return this;
|
|
1512
|
+
},
|
|
1513
|
+
byPage: (settings) => {
|
|
1514
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1515
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1516
|
+
}
|
|
1517
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
1518
|
+
},
|
|
1519
|
+
};
|
|
1520
|
+
}
|
|
1521
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
1522
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1523
|
+
let result;
|
|
1524
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1525
|
+
if (!continuationToken) {
|
|
1526
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
1527
|
+
let page = result.value || [];
|
|
1528
|
+
continuationToken = result.nextLink;
|
|
1529
|
+
setContinuationToken(page, continuationToken);
|
|
1530
|
+
yield yield tslib.__await(page);
|
|
1531
|
+
}
|
|
1532
|
+
while (continuationToken) {
|
|
1533
|
+
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1534
|
+
continuationToken = result.nextLink;
|
|
1535
|
+
let page = result.value || [];
|
|
1536
|
+
setContinuationToken(page, continuationToken);
|
|
1537
|
+
yield yield tslib.__await(page);
|
|
1538
|
+
}
|
|
1539
|
+
});
|
|
1540
|
+
}
|
|
1541
|
+
listBySubscriptionPagingAll(options) {
|
|
1542
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1543
|
+
var _a, e_1, _b, _c;
|
|
1544
|
+
try {
|
|
1545
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1546
|
+
_c = _f.value;
|
|
1547
|
+
_d = false;
|
|
1548
|
+
const page = _c;
|
|
1549
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1553
|
+
finally {
|
|
1554
|
+
try {
|
|
1555
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1556
|
+
}
|
|
1557
|
+
finally { if (e_1) throw e_1.error; }
|
|
1558
|
+
}
|
|
1559
|
+
});
|
|
1560
|
+
}
|
|
1561
|
+
/**
|
|
1562
|
+
* Gets a list of Azure Large Instances in the specified subscription and resource
|
|
1563
|
+
* group. The operations returns various properties of each Azure Large Instance.
|
|
1564
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1565
|
+
* @param options The options parameters.
|
|
1566
|
+
*/
|
|
1567
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
1568
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1569
|
+
return {
|
|
1570
|
+
next() {
|
|
1571
|
+
return iter.next();
|
|
1572
|
+
},
|
|
1573
|
+
[Symbol.asyncIterator]() {
|
|
1574
|
+
return this;
|
|
1575
|
+
},
|
|
1576
|
+
byPage: (settings) => {
|
|
1577
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1578
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1579
|
+
}
|
|
1580
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1581
|
+
},
|
|
1582
|
+
};
|
|
1583
|
+
}
|
|
1584
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1585
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1586
|
+
let result;
|
|
1587
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1588
|
+
if (!continuationToken) {
|
|
1589
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1590
|
+
let page = result.value || [];
|
|
1591
|
+
continuationToken = result.nextLink;
|
|
1592
|
+
setContinuationToken(page, continuationToken);
|
|
1593
|
+
yield yield tslib.__await(page);
|
|
1594
|
+
}
|
|
1595
|
+
while (continuationToken) {
|
|
1596
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1597
|
+
continuationToken = result.nextLink;
|
|
1598
|
+
let page = result.value || [];
|
|
1599
|
+
setContinuationToken(page, continuationToken);
|
|
1600
|
+
yield yield tslib.__await(page);
|
|
1601
|
+
}
|
|
1602
|
+
});
|
|
1603
|
+
}
|
|
1604
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1605
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1606
|
+
var _a, e_2, _b, _c;
|
|
1607
|
+
try {
|
|
1608
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1609
|
+
_c = _f.value;
|
|
1610
|
+
_d = false;
|
|
1611
|
+
const page = _c;
|
|
1612
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1616
|
+
finally {
|
|
1617
|
+
try {
|
|
1618
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1619
|
+
}
|
|
1620
|
+
finally { if (e_2) throw e_2.error; }
|
|
1621
|
+
}
|
|
1622
|
+
});
|
|
1623
|
+
}
|
|
1624
|
+
/**
|
|
1625
|
+
* Gets a list of Azure Large Instances in the specified subscription. The
|
|
1626
|
+
* operations returns various properties of each Azure Large Instance.
|
|
1627
|
+
* @param options The options parameters.
|
|
1628
|
+
*/
|
|
1629
|
+
_listBySubscription(options) {
|
|
1630
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
|
|
1631
|
+
}
|
|
1632
|
+
/**
|
|
1633
|
+
* Gets a list of Azure Large Instances in the specified subscription and resource
|
|
1634
|
+
* group. The operations returns various properties of each Azure Large Instance.
|
|
1635
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1636
|
+
* @param options The options parameters.
|
|
1637
|
+
*/
|
|
1638
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
1639
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
|
|
1640
|
+
}
|
|
1641
|
+
/**
|
|
1642
|
+
* Gets an Azure Large Instance for the specified subscription, resource group,
|
|
1643
|
+
* and instance name.
|
|
1644
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1645
|
+
* @param azureLargeInstanceName Name of the AzureLargeInstance.
|
|
1646
|
+
* @param options The options parameters.
|
|
1647
|
+
*/
|
|
1648
|
+
get(resourceGroupName, azureLargeInstanceName, options) {
|
|
1649
|
+
return this.client.sendOperationRequest({ resourceGroupName, azureLargeInstanceName, options }, getOperationSpec$1);
|
|
1650
|
+
}
|
|
1651
|
+
/**
|
|
1652
|
+
* Patches the Tags field of an Azure Large Instance for the specified
|
|
1653
|
+
* subscription, resource group, and instance name.
|
|
1654
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1655
|
+
* @param azureLargeInstanceName Name of the AzureLargeInstance.
|
|
1656
|
+
* @param tagsParameter The resource properties to be updated.
|
|
1657
|
+
* @param options The options parameters.
|
|
1658
|
+
*/
|
|
1659
|
+
update(resourceGroupName, azureLargeInstanceName, tagsParameter, options) {
|
|
1660
|
+
return this.client.sendOperationRequest({ resourceGroupName, azureLargeInstanceName, tagsParameter, options }, updateOperationSpec$1);
|
|
1661
|
+
}
|
|
1662
|
+
/**
|
|
1663
|
+
* The operation to restart an Azure Large Instance (only for compute instances)
|
|
1664
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1665
|
+
* @param azureLargeInstanceName Name of the AzureLargeInstance.
|
|
1666
|
+
* @param options The options parameters.
|
|
1667
|
+
*/
|
|
1668
|
+
beginRestart(resourceGroupName, azureLargeInstanceName, options) {
|
|
1669
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1670
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1671
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1672
|
+
});
|
|
1673
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1674
|
+
var _a;
|
|
1675
|
+
let currentRawResponse = undefined;
|
|
1676
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1677
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1678
|
+
currentRawResponse = rawResponse;
|
|
1679
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1680
|
+
};
|
|
1681
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1682
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1683
|
+
return {
|
|
1684
|
+
flatResponse,
|
|
1685
|
+
rawResponse: {
|
|
1686
|
+
statusCode: currentRawResponse.status,
|
|
1687
|
+
body: currentRawResponse.parsedBody,
|
|
1688
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
1689
|
+
},
|
|
1690
|
+
};
|
|
1691
|
+
});
|
|
1692
|
+
const lro = createLroSpec({
|
|
1693
|
+
sendOperationFn,
|
|
1694
|
+
args: { resourceGroupName, azureLargeInstanceName, options },
|
|
1695
|
+
spec: restartOperationSpec,
|
|
1696
|
+
});
|
|
1697
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1698
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1699
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1700
|
+
resourceLocationConfig: "location",
|
|
1701
|
+
});
|
|
1702
|
+
yield poller.poll();
|
|
1703
|
+
return poller;
|
|
1704
|
+
});
|
|
1705
|
+
}
|
|
1706
|
+
/**
|
|
1707
|
+
* The operation to restart an Azure Large Instance (only for compute instances)
|
|
1708
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1709
|
+
* @param azureLargeInstanceName Name of the AzureLargeInstance.
|
|
1710
|
+
* @param options The options parameters.
|
|
1711
|
+
*/
|
|
1712
|
+
beginRestartAndWait(resourceGroupName, azureLargeInstanceName, options) {
|
|
1713
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1714
|
+
const poller = yield this.beginRestart(resourceGroupName, azureLargeInstanceName, options);
|
|
1715
|
+
return poller.pollUntilDone();
|
|
1716
|
+
});
|
|
1717
|
+
}
|
|
1718
|
+
/**
|
|
1719
|
+
* The operation to shutdown an Azure Large Instance (only for compute instances)
|
|
1720
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1721
|
+
* @param azureLargeInstanceName Name of the AzureLargeInstance.
|
|
1722
|
+
* @param options The options parameters.
|
|
1723
|
+
*/
|
|
1724
|
+
beginShutdown(resourceGroupName, azureLargeInstanceName, options) {
|
|
1725
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1726
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1727
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1728
|
+
});
|
|
1729
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1730
|
+
var _a;
|
|
1731
|
+
let currentRawResponse = undefined;
|
|
1732
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1733
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1734
|
+
currentRawResponse = rawResponse;
|
|
1735
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1736
|
+
};
|
|
1737
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1738
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1739
|
+
return {
|
|
1740
|
+
flatResponse,
|
|
1741
|
+
rawResponse: {
|
|
1742
|
+
statusCode: currentRawResponse.status,
|
|
1743
|
+
body: currentRawResponse.parsedBody,
|
|
1744
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
1745
|
+
},
|
|
1746
|
+
};
|
|
1747
|
+
});
|
|
1748
|
+
const lro = createLroSpec({
|
|
1749
|
+
sendOperationFn,
|
|
1750
|
+
args: { resourceGroupName, azureLargeInstanceName, options },
|
|
1751
|
+
spec: shutdownOperationSpec,
|
|
1752
|
+
});
|
|
1753
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1754
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1755
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1756
|
+
resourceLocationConfig: "location",
|
|
1757
|
+
});
|
|
1758
|
+
yield poller.poll();
|
|
1759
|
+
return poller;
|
|
1760
|
+
});
|
|
1761
|
+
}
|
|
1762
|
+
/**
|
|
1763
|
+
* The operation to shutdown an Azure Large Instance (only for compute instances)
|
|
1764
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1765
|
+
* @param azureLargeInstanceName Name of the AzureLargeInstance.
|
|
1766
|
+
* @param options The options parameters.
|
|
1767
|
+
*/
|
|
1768
|
+
beginShutdownAndWait(resourceGroupName, azureLargeInstanceName, options) {
|
|
1769
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1770
|
+
const poller = yield this.beginShutdown(resourceGroupName, azureLargeInstanceName, options);
|
|
1771
|
+
return poller.pollUntilDone();
|
|
1772
|
+
});
|
|
1773
|
+
}
|
|
1774
|
+
/**
|
|
1775
|
+
* The operation to start an Azure Large Instance (only for compute instances)
|
|
1776
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1777
|
+
* @param azureLargeInstanceName Name of the AzureLargeInstance.
|
|
1778
|
+
* @param options The options parameters.
|
|
1779
|
+
*/
|
|
1780
|
+
beginStart(resourceGroupName, azureLargeInstanceName, options) {
|
|
1781
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1782
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1783
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1784
|
+
});
|
|
1785
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1786
|
+
var _a;
|
|
1787
|
+
let currentRawResponse = undefined;
|
|
1788
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1789
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1790
|
+
currentRawResponse = rawResponse;
|
|
1791
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1792
|
+
};
|
|
1793
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1794
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1795
|
+
return {
|
|
1796
|
+
flatResponse,
|
|
1797
|
+
rawResponse: {
|
|
1798
|
+
statusCode: currentRawResponse.status,
|
|
1799
|
+
body: currentRawResponse.parsedBody,
|
|
1800
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
1801
|
+
},
|
|
1802
|
+
};
|
|
1803
|
+
});
|
|
1804
|
+
const lro = createLroSpec({
|
|
1805
|
+
sendOperationFn,
|
|
1806
|
+
args: { resourceGroupName, azureLargeInstanceName, options },
|
|
1807
|
+
spec: startOperationSpec,
|
|
1808
|
+
});
|
|
1809
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1810
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1811
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1812
|
+
resourceLocationConfig: "location",
|
|
1813
|
+
});
|
|
1814
|
+
yield poller.poll();
|
|
1815
|
+
return poller;
|
|
1816
|
+
});
|
|
1817
|
+
}
|
|
1818
|
+
/**
|
|
1819
|
+
* The operation to start an Azure Large Instance (only for compute instances)
|
|
1820
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1821
|
+
* @param azureLargeInstanceName Name of the AzureLargeInstance.
|
|
1822
|
+
* @param options The options parameters.
|
|
1823
|
+
*/
|
|
1824
|
+
beginStartAndWait(resourceGroupName, azureLargeInstanceName, options) {
|
|
1825
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1826
|
+
const poller = yield this.beginStart(resourceGroupName, azureLargeInstanceName, options);
|
|
1827
|
+
return poller.pollUntilDone();
|
|
1828
|
+
});
|
|
1829
|
+
}
|
|
1830
|
+
/**
|
|
1831
|
+
* ListBySubscriptionNext
|
|
1832
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
1833
|
+
* @param options The options parameters.
|
|
1834
|
+
*/
|
|
1835
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
1836
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
|
|
1837
|
+
}
|
|
1838
|
+
/**
|
|
1839
|
+
* ListByResourceGroupNext
|
|
1840
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1841
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
1842
|
+
* @param options The options parameters.
|
|
1843
|
+
*/
|
|
1844
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1845
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
// Operation Specifications
|
|
1849
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1850
|
+
const listBySubscriptionOperationSpec$1 = {
|
|
1851
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzureLargeInstance/azureLargeInstances",
|
|
1852
|
+
httpMethod: "GET",
|
|
1853
|
+
responses: {
|
|
1854
|
+
200: {
|
|
1855
|
+
bodyMapper: AzureLargeInstanceListResult,
|
|
1856
|
+
},
|
|
1857
|
+
default: {
|
|
1858
|
+
bodyMapper: ErrorResponse,
|
|
1859
|
+
},
|
|
1860
|
+
},
|
|
1861
|
+
queryParameters: [apiVersion],
|
|
1862
|
+
urlParameters: [$host, subscriptionId],
|
|
1863
|
+
headerParameters: [accept],
|
|
1864
|
+
serializer: serializer$1,
|
|
1865
|
+
};
|
|
1866
|
+
const listByResourceGroupOperationSpec$1 = {
|
|
1867
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureLargeInstance/azureLargeInstances",
|
|
1868
|
+
httpMethod: "GET",
|
|
1869
|
+
responses: {
|
|
1870
|
+
200: {
|
|
1871
|
+
bodyMapper: AzureLargeInstanceListResult,
|
|
1872
|
+
},
|
|
1873
|
+
default: {
|
|
1874
|
+
bodyMapper: ErrorResponse,
|
|
1875
|
+
},
|
|
1876
|
+
},
|
|
1877
|
+
queryParameters: [apiVersion],
|
|
1878
|
+
urlParameters: [
|
|
1879
|
+
$host,
|
|
1880
|
+
subscriptionId,
|
|
1881
|
+
resourceGroupName,
|
|
1882
|
+
],
|
|
1883
|
+
headerParameters: [accept],
|
|
1884
|
+
serializer: serializer$1,
|
|
1885
|
+
};
|
|
1886
|
+
const getOperationSpec$1 = {
|
|
1887
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureLargeInstance/azureLargeInstances/{azureLargeInstanceName}",
|
|
1888
|
+
httpMethod: "GET",
|
|
1889
|
+
responses: {
|
|
1890
|
+
200: {
|
|
1891
|
+
bodyMapper: AzureLargeInstance,
|
|
1892
|
+
},
|
|
1893
|
+
default: {
|
|
1894
|
+
bodyMapper: ErrorResponse,
|
|
1895
|
+
},
|
|
1896
|
+
},
|
|
1897
|
+
queryParameters: [apiVersion],
|
|
1898
|
+
urlParameters: [
|
|
1899
|
+
$host,
|
|
1900
|
+
subscriptionId,
|
|
1901
|
+
resourceGroupName,
|
|
1902
|
+
azureLargeInstanceName,
|
|
1903
|
+
],
|
|
1904
|
+
headerParameters: [accept],
|
|
1905
|
+
serializer: serializer$1,
|
|
1906
|
+
};
|
|
1907
|
+
const updateOperationSpec$1 = {
|
|
1908
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureLargeInstance/azureLargeInstances/{azureLargeInstanceName}",
|
|
1909
|
+
httpMethod: "PATCH",
|
|
1910
|
+
responses: {
|
|
1911
|
+
200: {
|
|
1912
|
+
bodyMapper: AzureLargeInstance,
|
|
1913
|
+
},
|
|
1914
|
+
default: {
|
|
1915
|
+
bodyMapper: ErrorResponse,
|
|
1916
|
+
},
|
|
1917
|
+
},
|
|
1918
|
+
requestBody: tagsParameter,
|
|
1919
|
+
queryParameters: [apiVersion],
|
|
1920
|
+
urlParameters: [
|
|
1921
|
+
$host,
|
|
1922
|
+
subscriptionId,
|
|
1923
|
+
resourceGroupName,
|
|
1924
|
+
azureLargeInstanceName,
|
|
1925
|
+
],
|
|
1926
|
+
headerParameters: [accept, contentType],
|
|
1927
|
+
mediaType: "json",
|
|
1928
|
+
serializer: serializer$1,
|
|
1929
|
+
};
|
|
1930
|
+
const restartOperationSpec = {
|
|
1931
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureLargeInstance/azureLargeInstances/{azureLargeInstanceName}/restart",
|
|
1932
|
+
httpMethod: "POST",
|
|
1933
|
+
responses: {
|
|
1934
|
+
200: {
|
|
1935
|
+
bodyMapper: OperationStatusResult,
|
|
1936
|
+
},
|
|
1937
|
+
201: {
|
|
1938
|
+
bodyMapper: OperationStatusResult,
|
|
1939
|
+
},
|
|
1940
|
+
202: {
|
|
1941
|
+
bodyMapper: OperationStatusResult,
|
|
1942
|
+
},
|
|
1943
|
+
204: {
|
|
1944
|
+
bodyMapper: OperationStatusResult,
|
|
1945
|
+
},
|
|
1946
|
+
default: {
|
|
1947
|
+
bodyMapper: ErrorResponse,
|
|
1948
|
+
},
|
|
1949
|
+
},
|
|
1950
|
+
requestBody: forceParameter,
|
|
1951
|
+
queryParameters: [apiVersion],
|
|
1952
|
+
urlParameters: [
|
|
1953
|
+
$host,
|
|
1954
|
+
subscriptionId,
|
|
1955
|
+
resourceGroupName,
|
|
1956
|
+
azureLargeInstanceName,
|
|
1957
|
+
],
|
|
1958
|
+
headerParameters: [accept, contentType],
|
|
1959
|
+
mediaType: "json",
|
|
1960
|
+
serializer: serializer$1,
|
|
1961
|
+
};
|
|
1962
|
+
const shutdownOperationSpec = {
|
|
1963
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureLargeInstance/azureLargeInstances/{azureLargeInstanceName}/shutdown",
|
|
1964
|
+
httpMethod: "POST",
|
|
1965
|
+
responses: {
|
|
1966
|
+
200: {
|
|
1967
|
+
bodyMapper: OperationStatusResult,
|
|
1968
|
+
},
|
|
1969
|
+
201: {
|
|
1970
|
+
bodyMapper: OperationStatusResult,
|
|
1971
|
+
},
|
|
1972
|
+
202: {
|
|
1973
|
+
bodyMapper: OperationStatusResult,
|
|
1974
|
+
},
|
|
1975
|
+
204: {
|
|
1976
|
+
bodyMapper: OperationStatusResult,
|
|
1977
|
+
},
|
|
1978
|
+
default: {
|
|
1979
|
+
bodyMapper: ErrorResponse,
|
|
1980
|
+
},
|
|
1981
|
+
},
|
|
1982
|
+
queryParameters: [apiVersion],
|
|
1983
|
+
urlParameters: [
|
|
1984
|
+
$host,
|
|
1985
|
+
subscriptionId,
|
|
1986
|
+
resourceGroupName,
|
|
1987
|
+
azureLargeInstanceName,
|
|
1988
|
+
],
|
|
1989
|
+
headerParameters: [accept],
|
|
1990
|
+
serializer: serializer$1,
|
|
1991
|
+
};
|
|
1992
|
+
const startOperationSpec = {
|
|
1993
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureLargeInstance/azureLargeInstances/{azureLargeInstanceName}/start",
|
|
1994
|
+
httpMethod: "POST",
|
|
1995
|
+
responses: {
|
|
1996
|
+
200: {
|
|
1997
|
+
bodyMapper: OperationStatusResult,
|
|
1998
|
+
},
|
|
1999
|
+
201: {
|
|
2000
|
+
bodyMapper: OperationStatusResult,
|
|
2001
|
+
},
|
|
2002
|
+
202: {
|
|
2003
|
+
bodyMapper: OperationStatusResult,
|
|
2004
|
+
},
|
|
2005
|
+
204: {
|
|
2006
|
+
bodyMapper: OperationStatusResult,
|
|
2007
|
+
},
|
|
2008
|
+
default: {
|
|
2009
|
+
bodyMapper: ErrorResponse,
|
|
2010
|
+
},
|
|
2011
|
+
},
|
|
2012
|
+
queryParameters: [apiVersion],
|
|
2013
|
+
urlParameters: [
|
|
2014
|
+
$host,
|
|
2015
|
+
subscriptionId,
|
|
2016
|
+
resourceGroupName,
|
|
2017
|
+
azureLargeInstanceName,
|
|
2018
|
+
],
|
|
2019
|
+
headerParameters: [accept],
|
|
2020
|
+
serializer: serializer$1,
|
|
2021
|
+
};
|
|
2022
|
+
const listBySubscriptionNextOperationSpec$1 = {
|
|
2023
|
+
path: "{nextLink}",
|
|
2024
|
+
httpMethod: "GET",
|
|
2025
|
+
responses: {
|
|
2026
|
+
200: {
|
|
2027
|
+
bodyMapper: AzureLargeInstanceListResult,
|
|
2028
|
+
},
|
|
2029
|
+
default: {
|
|
2030
|
+
bodyMapper: ErrorResponse,
|
|
2031
|
+
},
|
|
2032
|
+
},
|
|
2033
|
+
urlParameters: [
|
|
2034
|
+
$host,
|
|
2035
|
+
nextLink,
|
|
2036
|
+
subscriptionId,
|
|
2037
|
+
],
|
|
2038
|
+
headerParameters: [accept],
|
|
2039
|
+
serializer: serializer$1,
|
|
2040
|
+
};
|
|
2041
|
+
const listByResourceGroupNextOperationSpec$1 = {
|
|
2042
|
+
path: "{nextLink}",
|
|
2043
|
+
httpMethod: "GET",
|
|
2044
|
+
responses: {
|
|
2045
|
+
200: {
|
|
2046
|
+
bodyMapper: AzureLargeInstanceListResult,
|
|
2047
|
+
},
|
|
2048
|
+
default: {
|
|
2049
|
+
bodyMapper: ErrorResponse,
|
|
2050
|
+
},
|
|
2051
|
+
},
|
|
2052
|
+
urlParameters: [
|
|
2053
|
+
$host,
|
|
2054
|
+
nextLink,
|
|
2055
|
+
subscriptionId,
|
|
2056
|
+
resourceGroupName,
|
|
2057
|
+
],
|
|
2058
|
+
headerParameters: [accept],
|
|
2059
|
+
serializer: serializer$1,
|
|
2060
|
+
};
|
|
2061
|
+
|
|
2062
|
+
/*
|
|
2063
|
+
* Copyright (c) Microsoft Corporation.
|
|
2064
|
+
* Licensed under the MIT License.
|
|
2065
|
+
*
|
|
2066
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2067
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2068
|
+
*/
|
|
2069
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2070
|
+
/** Class containing AzureLargeStorageInstanceOperations operations. */
|
|
2071
|
+
class AzureLargeStorageInstanceOperationsImpl {
|
|
2072
|
+
/**
|
|
2073
|
+
* Initialize a new instance of the class AzureLargeStorageInstanceOperations class.
|
|
2074
|
+
* @param client Reference to the service client
|
|
2075
|
+
*/
|
|
2076
|
+
constructor(client) {
|
|
2077
|
+
this.client = client;
|
|
2078
|
+
}
|
|
2079
|
+
/**
|
|
2080
|
+
* Gets a list of AzureLargeStorageInstances in the specified subscription. The
|
|
2081
|
+
* operations returns various properties of each Azure LargeStorage instance.
|
|
2082
|
+
* @param options The options parameters.
|
|
2083
|
+
*/
|
|
2084
|
+
listBySubscription(options) {
|
|
2085
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
2086
|
+
return {
|
|
2087
|
+
next() {
|
|
2088
|
+
return iter.next();
|
|
2089
|
+
},
|
|
2090
|
+
[Symbol.asyncIterator]() {
|
|
2091
|
+
return this;
|
|
2092
|
+
},
|
|
2093
|
+
byPage: (settings) => {
|
|
2094
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2095
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2096
|
+
}
|
|
2097
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
2098
|
+
},
|
|
2099
|
+
};
|
|
2100
|
+
}
|
|
2101
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
2102
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
2103
|
+
let result;
|
|
2104
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2105
|
+
if (!continuationToken) {
|
|
2106
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
2107
|
+
let page = result.value || [];
|
|
2108
|
+
continuationToken = result.nextLink;
|
|
2109
|
+
setContinuationToken(page, continuationToken);
|
|
2110
|
+
yield yield tslib.__await(page);
|
|
2111
|
+
}
|
|
2112
|
+
while (continuationToken) {
|
|
2113
|
+
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
2114
|
+
continuationToken = result.nextLink;
|
|
2115
|
+
let page = result.value || [];
|
|
2116
|
+
setContinuationToken(page, continuationToken);
|
|
2117
|
+
yield yield tslib.__await(page);
|
|
2118
|
+
}
|
|
2119
|
+
});
|
|
2120
|
+
}
|
|
2121
|
+
listBySubscriptionPagingAll(options) {
|
|
2122
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
2123
|
+
var _a, e_1, _b, _c;
|
|
2124
|
+
try {
|
|
2125
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2126
|
+
_c = _f.value;
|
|
2127
|
+
_d = false;
|
|
2128
|
+
const page = _c;
|
|
2129
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2133
|
+
finally {
|
|
2134
|
+
try {
|
|
2135
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2136
|
+
}
|
|
2137
|
+
finally { if (e_1) throw e_1.error; }
|
|
2138
|
+
}
|
|
2139
|
+
});
|
|
2140
|
+
}
|
|
2141
|
+
/**
|
|
2142
|
+
* Gets a list of AzureLargeStorageInstances in the specified subscription and
|
|
2143
|
+
* resource group. The operations returns various properties of each Azure
|
|
2144
|
+
* LargeStorage instance.
|
|
2145
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2146
|
+
* @param options The options parameters.
|
|
2147
|
+
*/
|
|
2148
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
2149
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
2150
|
+
return {
|
|
2151
|
+
next() {
|
|
2152
|
+
return iter.next();
|
|
2153
|
+
},
|
|
2154
|
+
[Symbol.asyncIterator]() {
|
|
2155
|
+
return this;
|
|
2156
|
+
},
|
|
2157
|
+
byPage: (settings) => {
|
|
2158
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2159
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2160
|
+
}
|
|
2161
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
2162
|
+
},
|
|
2163
|
+
};
|
|
2164
|
+
}
|
|
2165
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
2166
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2167
|
+
let result;
|
|
2168
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2169
|
+
if (!continuationToken) {
|
|
2170
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2171
|
+
let page = result.value || [];
|
|
2172
|
+
continuationToken = result.nextLink;
|
|
2173
|
+
setContinuationToken(page, continuationToken);
|
|
2174
|
+
yield yield tslib.__await(page);
|
|
2175
|
+
}
|
|
2176
|
+
while (continuationToken) {
|
|
2177
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
2178
|
+
continuationToken = result.nextLink;
|
|
2179
|
+
let page = result.value || [];
|
|
2180
|
+
setContinuationToken(page, continuationToken);
|
|
2181
|
+
yield yield tslib.__await(page);
|
|
2182
|
+
}
|
|
2183
|
+
});
|
|
2184
|
+
}
|
|
2185
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
2186
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
2187
|
+
var _a, e_2, _b, _c;
|
|
2188
|
+
try {
|
|
2189
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2190
|
+
_c = _f.value;
|
|
2191
|
+
_d = false;
|
|
2192
|
+
const page = _c;
|
|
2193
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
2197
|
+
finally {
|
|
2198
|
+
try {
|
|
2199
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2200
|
+
}
|
|
2201
|
+
finally { if (e_2) throw e_2.error; }
|
|
2202
|
+
}
|
|
2203
|
+
});
|
|
2204
|
+
}
|
|
2205
|
+
/**
|
|
2206
|
+
* Gets a list of AzureLargeStorageInstances in the specified subscription. The
|
|
2207
|
+
* operations returns various properties of each Azure LargeStorage instance.
|
|
2208
|
+
* @param options The options parameters.
|
|
2209
|
+
*/
|
|
2210
|
+
_listBySubscription(options) {
|
|
2211
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
2212
|
+
}
|
|
2213
|
+
/**
|
|
2214
|
+
* Gets a list of AzureLargeStorageInstances in the specified subscription and
|
|
2215
|
+
* resource group. The operations returns various properties of each Azure
|
|
2216
|
+
* LargeStorage instance.
|
|
2217
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2218
|
+
* @param options The options parameters.
|
|
2219
|
+
*/
|
|
2220
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
2221
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
2222
|
+
}
|
|
2223
|
+
/**
|
|
2224
|
+
* Gets an Azure Large Storage instance for the specified subscription, resource
|
|
2225
|
+
* group, and instance name.
|
|
2226
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2227
|
+
* @param azureLargeStorageInstanceName Name of the AzureLargeStorageInstance.
|
|
2228
|
+
* @param options The options parameters.
|
|
2229
|
+
*/
|
|
2230
|
+
get(resourceGroupName, azureLargeStorageInstanceName, options) {
|
|
2231
|
+
return this.client.sendOperationRequest({ resourceGroupName, azureLargeStorageInstanceName, options }, getOperationSpec);
|
|
2232
|
+
}
|
|
2233
|
+
/**
|
|
2234
|
+
* Patches the Tags field of a Azure Large Storage Instance for the specified
|
|
2235
|
+
* subscription, resource group, and instance name.
|
|
2236
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2237
|
+
* @param azureLargeStorageInstanceName Name of the AzureLargeStorageInstance.
|
|
2238
|
+
* @param tagsParameter The resource properties to be updated.
|
|
2239
|
+
* @param options The options parameters.
|
|
2240
|
+
*/
|
|
2241
|
+
update(resourceGroupName, azureLargeStorageInstanceName, tagsParameter, options) {
|
|
2242
|
+
return this.client.sendOperationRequest({
|
|
2243
|
+
resourceGroupName,
|
|
2244
|
+
azureLargeStorageInstanceName,
|
|
2245
|
+
tagsParameter,
|
|
2246
|
+
options,
|
|
2247
|
+
}, updateOperationSpec);
|
|
2248
|
+
}
|
|
2249
|
+
/**
|
|
2250
|
+
* ListBySubscriptionNext
|
|
2251
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
2252
|
+
* @param options The options parameters.
|
|
2253
|
+
*/
|
|
2254
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
2255
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
2256
|
+
}
|
|
2257
|
+
/**
|
|
2258
|
+
* ListByResourceGroupNext
|
|
2259
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2260
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
2261
|
+
* @param options The options parameters.
|
|
2262
|
+
*/
|
|
2263
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
2264
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
// Operation Specifications
|
|
2268
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2269
|
+
const listBySubscriptionOperationSpec = {
|
|
2270
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzureLargeInstance/azureLargeStorageInstances",
|
|
2271
|
+
httpMethod: "GET",
|
|
2272
|
+
responses: {
|
|
2273
|
+
200: {
|
|
2274
|
+
bodyMapper: AzureLargeStorageInstanceListResult,
|
|
2275
|
+
},
|
|
2276
|
+
default: {
|
|
2277
|
+
bodyMapper: ErrorResponse,
|
|
2278
|
+
},
|
|
2279
|
+
},
|
|
2280
|
+
queryParameters: [apiVersion],
|
|
2281
|
+
urlParameters: [$host, subscriptionId],
|
|
2282
|
+
headerParameters: [accept],
|
|
2283
|
+
serializer,
|
|
2284
|
+
};
|
|
2285
|
+
const listByResourceGroupOperationSpec = {
|
|
2286
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureLargeInstance/azureLargeStorageInstances",
|
|
2287
|
+
httpMethod: "GET",
|
|
2288
|
+
responses: {
|
|
2289
|
+
200: {
|
|
2290
|
+
bodyMapper: AzureLargeStorageInstanceListResult,
|
|
2291
|
+
},
|
|
2292
|
+
default: {
|
|
2293
|
+
bodyMapper: ErrorResponse,
|
|
2294
|
+
},
|
|
2295
|
+
},
|
|
2296
|
+
queryParameters: [apiVersion],
|
|
2297
|
+
urlParameters: [
|
|
2298
|
+
$host,
|
|
2299
|
+
subscriptionId,
|
|
2300
|
+
resourceGroupName,
|
|
2301
|
+
],
|
|
2302
|
+
headerParameters: [accept],
|
|
2303
|
+
serializer,
|
|
2304
|
+
};
|
|
2305
|
+
const getOperationSpec = {
|
|
2306
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureLargeInstance/azureLargeStorageInstances/{azureLargeStorageInstanceName}",
|
|
2307
|
+
httpMethod: "GET",
|
|
2308
|
+
responses: {
|
|
2309
|
+
200: {
|
|
2310
|
+
bodyMapper: AzureLargeStorageInstance,
|
|
2311
|
+
},
|
|
2312
|
+
default: {
|
|
2313
|
+
bodyMapper: ErrorResponse,
|
|
2314
|
+
},
|
|
2315
|
+
},
|
|
2316
|
+
queryParameters: [apiVersion],
|
|
2317
|
+
urlParameters: [
|
|
2318
|
+
$host,
|
|
2319
|
+
subscriptionId,
|
|
2320
|
+
resourceGroupName,
|
|
2321
|
+
azureLargeStorageInstanceName,
|
|
2322
|
+
],
|
|
2323
|
+
headerParameters: [accept],
|
|
2324
|
+
serializer,
|
|
2325
|
+
};
|
|
2326
|
+
const updateOperationSpec = {
|
|
2327
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureLargeInstance/azureLargeStorageInstances/{azureLargeStorageInstanceName}",
|
|
2328
|
+
httpMethod: "PATCH",
|
|
2329
|
+
responses: {
|
|
2330
|
+
200: {
|
|
2331
|
+
bodyMapper: AzureLargeStorageInstance,
|
|
2332
|
+
},
|
|
2333
|
+
default: {
|
|
2334
|
+
bodyMapper: ErrorResponse,
|
|
2335
|
+
},
|
|
2336
|
+
},
|
|
2337
|
+
requestBody: tagsParameter1,
|
|
2338
|
+
queryParameters: [apiVersion],
|
|
2339
|
+
urlParameters: [
|
|
2340
|
+
$host,
|
|
2341
|
+
subscriptionId,
|
|
2342
|
+
resourceGroupName,
|
|
2343
|
+
azureLargeStorageInstanceName,
|
|
2344
|
+
],
|
|
2345
|
+
headerParameters: [accept, contentType],
|
|
2346
|
+
mediaType: "json",
|
|
2347
|
+
serializer,
|
|
2348
|
+
};
|
|
2349
|
+
const listBySubscriptionNextOperationSpec = {
|
|
2350
|
+
path: "{nextLink}",
|
|
2351
|
+
httpMethod: "GET",
|
|
2352
|
+
responses: {
|
|
2353
|
+
200: {
|
|
2354
|
+
bodyMapper: AzureLargeStorageInstanceListResult,
|
|
2355
|
+
},
|
|
2356
|
+
default: {
|
|
2357
|
+
bodyMapper: ErrorResponse,
|
|
2358
|
+
},
|
|
2359
|
+
},
|
|
2360
|
+
urlParameters: [
|
|
2361
|
+
$host,
|
|
2362
|
+
nextLink,
|
|
2363
|
+
subscriptionId,
|
|
2364
|
+
],
|
|
2365
|
+
headerParameters: [accept],
|
|
2366
|
+
serializer,
|
|
2367
|
+
};
|
|
2368
|
+
const listByResourceGroupNextOperationSpec = {
|
|
2369
|
+
path: "{nextLink}",
|
|
2370
|
+
httpMethod: "GET",
|
|
2371
|
+
responses: {
|
|
2372
|
+
200: {
|
|
2373
|
+
bodyMapper: AzureLargeStorageInstanceListResult,
|
|
2374
|
+
},
|
|
2375
|
+
default: {
|
|
2376
|
+
bodyMapper: ErrorResponse,
|
|
2377
|
+
},
|
|
2378
|
+
},
|
|
2379
|
+
urlParameters: [
|
|
2380
|
+
$host,
|
|
2381
|
+
nextLink,
|
|
2382
|
+
subscriptionId,
|
|
2383
|
+
resourceGroupName,
|
|
2384
|
+
],
|
|
2385
|
+
headerParameters: [accept],
|
|
2386
|
+
serializer,
|
|
2387
|
+
};
|
|
2388
|
+
|
|
2389
|
+
/*
|
|
2390
|
+
* Copyright (c) Microsoft Corporation.
|
|
2391
|
+
* Licensed under the MIT License.
|
|
2392
|
+
*
|
|
2393
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2394
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2395
|
+
*/
|
|
2396
|
+
class LargeInstanceManagementClient extends coreClient__namespace.ServiceClient {
|
|
2397
|
+
/**
|
|
2398
|
+
* Initializes a new instance of the LargeInstanceManagementClient class.
|
|
2399
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
2400
|
+
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
|
|
2401
|
+
* @param options The parameter options
|
|
2402
|
+
*/
|
|
2403
|
+
constructor(credentials, subscriptionId, options) {
|
|
2404
|
+
var _a, _b, _c;
|
|
2405
|
+
if (credentials === undefined) {
|
|
2406
|
+
throw new Error("'credentials' cannot be null");
|
|
2407
|
+
}
|
|
2408
|
+
if (subscriptionId === undefined) {
|
|
2409
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
2410
|
+
}
|
|
2411
|
+
// Initializing default values for options
|
|
2412
|
+
if (!options) {
|
|
2413
|
+
options = {};
|
|
2414
|
+
}
|
|
2415
|
+
const defaults = {
|
|
2416
|
+
requestContentType: "application/json; charset=utf-8",
|
|
2417
|
+
credential: credentials,
|
|
2418
|
+
};
|
|
2419
|
+
const packageDetails = `azsdk-js-arm-largeinstance/1.0.0-beta.1`;
|
|
2420
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
2421
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
2422
|
+
: `${packageDetails}`;
|
|
2423
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
2424
|
+
userAgentPrefix,
|
|
2425
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
2426
|
+
super(optionsWithDefaults);
|
|
2427
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
2428
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
2429
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
2430
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
2431
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
2432
|
+
}
|
|
2433
|
+
if (!options ||
|
|
2434
|
+
!options.pipeline ||
|
|
2435
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
2436
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
2437
|
+
this.pipeline.removePolicy({
|
|
2438
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName,
|
|
2439
|
+
});
|
|
2440
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
2441
|
+
credential: credentials,
|
|
2442
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
2443
|
+
challengeCallbacks: {
|
|
2444
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
2445
|
+
},
|
|
2446
|
+
}));
|
|
2447
|
+
}
|
|
2448
|
+
// Parameter assignments
|
|
2449
|
+
this.subscriptionId = subscriptionId;
|
|
2450
|
+
// Assigning values to Constant parameters
|
|
2451
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
2452
|
+
this.apiVersion = options.apiVersion || "2023-07-20-preview";
|
|
2453
|
+
this.operations = new OperationsImpl(this);
|
|
2454
|
+
this.azureLargeInstanceOperations = new AzureLargeInstanceOperationsImpl(this);
|
|
2455
|
+
this.azureLargeStorageInstanceOperations =
|
|
2456
|
+
new AzureLargeStorageInstanceOperationsImpl(this);
|
|
2457
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
2458
|
+
}
|
|
2459
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
2460
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
2461
|
+
if (!apiVersion) {
|
|
2462
|
+
return;
|
|
2463
|
+
}
|
|
2464
|
+
const apiVersionPolicy = {
|
|
2465
|
+
name: "CustomApiVersionPolicy",
|
|
2466
|
+
sendRequest(request, next) {
|
|
2467
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2468
|
+
const param = request.url.split("?");
|
|
2469
|
+
if (param.length > 1) {
|
|
2470
|
+
const newParams = param[1].split("&").map((item) => {
|
|
2471
|
+
if (item.indexOf("api-version") > -1) {
|
|
2472
|
+
return "api-version=" + apiVersion;
|
|
2473
|
+
}
|
|
2474
|
+
else {
|
|
2475
|
+
return item;
|
|
2476
|
+
}
|
|
2477
|
+
});
|
|
2478
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
2479
|
+
}
|
|
2480
|
+
return next(request);
|
|
2481
|
+
});
|
|
2482
|
+
},
|
|
2483
|
+
};
|
|
2484
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
exports.LargeInstanceManagementClient = LargeInstanceManagementClient;
|
|
2489
|
+
exports.getContinuationToken = getContinuationToken;
|
|
2490
|
+
//# sourceMappingURL=index.js.map
|