@azure/arm-azurestackhci 3.0.3-alpha.20221102.1 → 3.1.0-alpha.20221129.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 +10 -10
- package/dist/index.js +233 -47
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/azureStackHCIClient.d.ts +2 -0
- package/dist-esm/src/azureStackHCIClient.d.ts.map +1 -1
- package/dist-esm/src/azureStackHCIClient.js +49 -18
- package/dist-esm/src/azureStackHCIClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +89 -9
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +79 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/operations/arcSettings.d.ts.map +1 -1
- package/dist-esm/src/operations/arcSettings.js +19 -7
- package/dist-esm/src/operations/arcSettings.js.map +1 -1
- package/dist-esm/src/operations/clusters.d.ts.map +1 -1
- package/dist-esm/src/operations/clusters.js +37 -14
- package/dist-esm/src/operations/clusters.js.map +1 -1
- package/dist-esm/src/operations/extensions.d.ts.map +1 -1
- package/dist-esm/src/operations/extensions.js +19 -7
- package/dist-esm/src/operations/extensions.js.map +1 -1
- 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/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +12 -8
- package/review/arm-azurestackhci.api.md +46 -121
- package/src/azureStackHCIClient.ts +60 -20
- package/src/index.ts +1 -0
- package/src/models/index.ts +88 -9
- package/src/operations/arcSettings.ts +26 -12
- package/src/operations/clusters.ts +45 -16
- package/src/operations/extensions.ts +27 -13
- package/src/pagingHelper.ts +39 -0
- package/types/arm-azurestackhci.d.ts +100 -9
- package/types/tsdoc-metadata.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# Release History
|
|
2
|
+
|
|
3
|
+
## 3.1.0 (2022-11-16)
|
|
4
|
+
|
|
5
|
+
**Features**
|
|
2
6
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Bugs Fixed
|
|
10
|
-
|
|
11
|
-
### Other Changes
|
|
12
|
-
|
|
7
|
+
- Added Interface ArcSetting
|
|
8
|
+
- Added Interface Cluster
|
|
9
|
+
- Added Interface Extension
|
|
10
|
+
- Added Interface ProxyResource
|
|
11
|
+
- Added Interface TrackedResource
|
|
12
|
+
|
|
13
13
|
## 3.0.2 (2022-10-08)
|
|
14
14
|
|
|
15
15
|
**Bugs Fixed**
|
package/dist/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var tslib = require('tslib');
|
|
5
6
|
var coreClient = require('@azure/core-client');
|
|
6
7
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
7
|
-
var tslib = require('tslib');
|
|
8
8
|
var coreLro = require('@azure/core-lro');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
@@ -28,6 +28,38 @@ function _interopNamespace(e) {
|
|
|
28
28
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
29
|
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
30
|
|
|
31
|
+
/*
|
|
32
|
+
* Copyright (c) Microsoft Corporation.
|
|
33
|
+
* Licensed under the MIT License.
|
|
34
|
+
*
|
|
35
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
+
*/
|
|
38
|
+
const pageMap = new WeakMap();
|
|
39
|
+
/**
|
|
40
|
+
* Given a result page from a pageable operation, returns a
|
|
41
|
+
* continuation token that can be used to begin paging from
|
|
42
|
+
* that point later.
|
|
43
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
44
|
+
* @returns The continuation token that can be passed into byPage().
|
|
45
|
+
*/
|
|
46
|
+
function getContinuationToken(page) {
|
|
47
|
+
var _a;
|
|
48
|
+
if (typeof page !== "object" || page === null) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
+
}
|
|
53
|
+
function setContinuationToken(page, continuationToken) {
|
|
54
|
+
var _a;
|
|
55
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
+
pageInfo.continuationToken = continuationToken;
|
|
60
|
+
pageMap.set(page, pageInfo);
|
|
61
|
+
}
|
|
62
|
+
|
|
31
63
|
/*
|
|
32
64
|
* Copyright (c) Microsoft Corporation.
|
|
33
65
|
* Licensed under the MIT License.
|
|
@@ -38,128 +70,207 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
|
|
|
38
70
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
39
71
|
exports.KnownCreatedByType = void 0;
|
|
40
72
|
(function (KnownCreatedByType) {
|
|
73
|
+
/** User */
|
|
41
74
|
KnownCreatedByType["User"] = "User";
|
|
75
|
+
/** Application */
|
|
42
76
|
KnownCreatedByType["Application"] = "Application";
|
|
77
|
+
/** ManagedIdentity */
|
|
43
78
|
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
79
|
+
/** Key */
|
|
44
80
|
KnownCreatedByType["Key"] = "Key";
|
|
45
81
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
46
82
|
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
47
83
|
exports.KnownProvisioningState = void 0;
|
|
48
84
|
(function (KnownProvisioningState) {
|
|
85
|
+
/** Succeeded */
|
|
49
86
|
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
87
|
+
/** Failed */
|
|
50
88
|
KnownProvisioningState["Failed"] = "Failed";
|
|
89
|
+
/** Canceled */
|
|
51
90
|
KnownProvisioningState["Canceled"] = "Canceled";
|
|
91
|
+
/** Accepted */
|
|
52
92
|
KnownProvisioningState["Accepted"] = "Accepted";
|
|
93
|
+
/** Provisioning */
|
|
53
94
|
KnownProvisioningState["Provisioning"] = "Provisioning";
|
|
54
95
|
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
55
96
|
/** Known values of {@link ArcSettingAggregateState} that the service accepts. */
|
|
56
97
|
exports.KnownArcSettingAggregateState = void 0;
|
|
57
98
|
(function (KnownArcSettingAggregateState) {
|
|
99
|
+
/** NotSpecified */
|
|
58
100
|
KnownArcSettingAggregateState["NotSpecified"] = "NotSpecified";
|
|
101
|
+
/** Error */
|
|
59
102
|
KnownArcSettingAggregateState["Error"] = "Error";
|
|
103
|
+
/** Succeeded */
|
|
60
104
|
KnownArcSettingAggregateState["Succeeded"] = "Succeeded";
|
|
105
|
+
/** Canceled */
|
|
61
106
|
KnownArcSettingAggregateState["Canceled"] = "Canceled";
|
|
107
|
+
/** Failed */
|
|
62
108
|
KnownArcSettingAggregateState["Failed"] = "Failed";
|
|
109
|
+
/** Connected */
|
|
63
110
|
KnownArcSettingAggregateState["Connected"] = "Connected";
|
|
111
|
+
/** Disconnected */
|
|
64
112
|
KnownArcSettingAggregateState["Disconnected"] = "Disconnected";
|
|
113
|
+
/** Deleted */
|
|
65
114
|
KnownArcSettingAggregateState["Deleted"] = "Deleted";
|
|
115
|
+
/** Creating */
|
|
66
116
|
KnownArcSettingAggregateState["Creating"] = "Creating";
|
|
117
|
+
/** Updating */
|
|
67
118
|
KnownArcSettingAggregateState["Updating"] = "Updating";
|
|
119
|
+
/** Deleting */
|
|
68
120
|
KnownArcSettingAggregateState["Deleting"] = "Deleting";
|
|
121
|
+
/** Moving */
|
|
69
122
|
KnownArcSettingAggregateState["Moving"] = "Moving";
|
|
123
|
+
/** PartiallySucceeded */
|
|
70
124
|
KnownArcSettingAggregateState["PartiallySucceeded"] = "PartiallySucceeded";
|
|
125
|
+
/** PartiallyConnected */
|
|
71
126
|
KnownArcSettingAggregateState["PartiallyConnected"] = "PartiallyConnected";
|
|
127
|
+
/** InProgress */
|
|
72
128
|
KnownArcSettingAggregateState["InProgress"] = "InProgress";
|
|
73
129
|
})(exports.KnownArcSettingAggregateState || (exports.KnownArcSettingAggregateState = {}));
|
|
74
130
|
/** Known values of {@link NodeArcState} that the service accepts. */
|
|
75
131
|
exports.KnownNodeArcState = void 0;
|
|
76
132
|
(function (KnownNodeArcState) {
|
|
133
|
+
/** NotSpecified */
|
|
77
134
|
KnownNodeArcState["NotSpecified"] = "NotSpecified";
|
|
135
|
+
/** Error */
|
|
78
136
|
KnownNodeArcState["Error"] = "Error";
|
|
137
|
+
/** Succeeded */
|
|
79
138
|
KnownNodeArcState["Succeeded"] = "Succeeded";
|
|
139
|
+
/** Canceled */
|
|
80
140
|
KnownNodeArcState["Canceled"] = "Canceled";
|
|
141
|
+
/** Failed */
|
|
81
142
|
KnownNodeArcState["Failed"] = "Failed";
|
|
143
|
+
/** Connected */
|
|
82
144
|
KnownNodeArcState["Connected"] = "Connected";
|
|
145
|
+
/** Disconnected */
|
|
83
146
|
KnownNodeArcState["Disconnected"] = "Disconnected";
|
|
147
|
+
/** Deleted */
|
|
84
148
|
KnownNodeArcState["Deleted"] = "Deleted";
|
|
149
|
+
/** Creating */
|
|
85
150
|
KnownNodeArcState["Creating"] = "Creating";
|
|
151
|
+
/** Updating */
|
|
86
152
|
KnownNodeArcState["Updating"] = "Updating";
|
|
153
|
+
/** Deleting */
|
|
87
154
|
KnownNodeArcState["Deleting"] = "Deleting";
|
|
155
|
+
/** Moving */
|
|
88
156
|
KnownNodeArcState["Moving"] = "Moving";
|
|
89
157
|
})(exports.KnownNodeArcState || (exports.KnownNodeArcState = {}));
|
|
90
158
|
/** Known values of {@link Status} that the service accepts. */
|
|
91
159
|
exports.KnownStatus = void 0;
|
|
92
160
|
(function (KnownStatus) {
|
|
161
|
+
/** NotYetRegistered */
|
|
93
162
|
KnownStatus["NotYetRegistered"] = "NotYetRegistered";
|
|
163
|
+
/** ConnectedRecently */
|
|
94
164
|
KnownStatus["ConnectedRecently"] = "ConnectedRecently";
|
|
165
|
+
/** NotConnectedRecently */
|
|
95
166
|
KnownStatus["NotConnectedRecently"] = "NotConnectedRecently";
|
|
167
|
+
/** Disconnected */
|
|
96
168
|
KnownStatus["Disconnected"] = "Disconnected";
|
|
169
|
+
/** Error */
|
|
97
170
|
KnownStatus["Error"] = "Error";
|
|
98
171
|
})(exports.KnownStatus || (exports.KnownStatus = {}));
|
|
99
172
|
/** Known values of {@link WindowsServerSubscription} that the service accepts. */
|
|
100
173
|
exports.KnownWindowsServerSubscription = void 0;
|
|
101
174
|
(function (KnownWindowsServerSubscription) {
|
|
175
|
+
/** Disabled */
|
|
102
176
|
KnownWindowsServerSubscription["Disabled"] = "Disabled";
|
|
177
|
+
/** Enabled */
|
|
103
178
|
KnownWindowsServerSubscription["Enabled"] = "Enabled";
|
|
104
179
|
})(exports.KnownWindowsServerSubscription || (exports.KnownWindowsServerSubscription = {}));
|
|
105
180
|
/** Known values of {@link DiagnosticLevel} that the service accepts. */
|
|
106
181
|
exports.KnownDiagnosticLevel = void 0;
|
|
107
182
|
(function (KnownDiagnosticLevel) {
|
|
183
|
+
/** Off */
|
|
108
184
|
KnownDiagnosticLevel["Off"] = "Off";
|
|
185
|
+
/** Basic */
|
|
109
186
|
KnownDiagnosticLevel["Basic"] = "Basic";
|
|
187
|
+
/** Enhanced */
|
|
110
188
|
KnownDiagnosticLevel["Enhanced"] = "Enhanced";
|
|
111
189
|
})(exports.KnownDiagnosticLevel || (exports.KnownDiagnosticLevel = {}));
|
|
112
190
|
/** Known values of {@link ImdsAttestation} that the service accepts. */
|
|
113
191
|
exports.KnownImdsAttestation = void 0;
|
|
114
192
|
(function (KnownImdsAttestation) {
|
|
193
|
+
/** Disabled */
|
|
115
194
|
KnownImdsAttestation["Disabled"] = "Disabled";
|
|
195
|
+
/** Enabled */
|
|
116
196
|
KnownImdsAttestation["Enabled"] = "Enabled";
|
|
117
197
|
})(exports.KnownImdsAttestation || (exports.KnownImdsAttestation = {}));
|
|
118
198
|
/** Known values of {@link ExtensionAggregateState} that the service accepts. */
|
|
119
199
|
exports.KnownExtensionAggregateState = void 0;
|
|
120
200
|
(function (KnownExtensionAggregateState) {
|
|
201
|
+
/** NotSpecified */
|
|
121
202
|
KnownExtensionAggregateState["NotSpecified"] = "NotSpecified";
|
|
203
|
+
/** Error */
|
|
122
204
|
KnownExtensionAggregateState["Error"] = "Error";
|
|
205
|
+
/** Succeeded */
|
|
123
206
|
KnownExtensionAggregateState["Succeeded"] = "Succeeded";
|
|
207
|
+
/** Canceled */
|
|
124
208
|
KnownExtensionAggregateState["Canceled"] = "Canceled";
|
|
209
|
+
/** Failed */
|
|
125
210
|
KnownExtensionAggregateState["Failed"] = "Failed";
|
|
211
|
+
/** Connected */
|
|
126
212
|
KnownExtensionAggregateState["Connected"] = "Connected";
|
|
213
|
+
/** Disconnected */
|
|
127
214
|
KnownExtensionAggregateState["Disconnected"] = "Disconnected";
|
|
215
|
+
/** Deleted */
|
|
128
216
|
KnownExtensionAggregateState["Deleted"] = "Deleted";
|
|
217
|
+
/** Creating */
|
|
129
218
|
KnownExtensionAggregateState["Creating"] = "Creating";
|
|
219
|
+
/** Updating */
|
|
130
220
|
KnownExtensionAggregateState["Updating"] = "Updating";
|
|
221
|
+
/** Deleting */
|
|
131
222
|
KnownExtensionAggregateState["Deleting"] = "Deleting";
|
|
223
|
+
/** Moving */
|
|
132
224
|
KnownExtensionAggregateState["Moving"] = "Moving";
|
|
225
|
+
/** PartiallySucceeded */
|
|
133
226
|
KnownExtensionAggregateState["PartiallySucceeded"] = "PartiallySucceeded";
|
|
227
|
+
/** PartiallyConnected */
|
|
134
228
|
KnownExtensionAggregateState["PartiallyConnected"] = "PartiallyConnected";
|
|
229
|
+
/** InProgress */
|
|
135
230
|
KnownExtensionAggregateState["InProgress"] = "InProgress";
|
|
136
231
|
})(exports.KnownExtensionAggregateState || (exports.KnownExtensionAggregateState = {}));
|
|
137
232
|
/** Known values of {@link NodeExtensionState} that the service accepts. */
|
|
138
233
|
exports.KnownNodeExtensionState = void 0;
|
|
139
234
|
(function (KnownNodeExtensionState) {
|
|
235
|
+
/** NotSpecified */
|
|
140
236
|
KnownNodeExtensionState["NotSpecified"] = "NotSpecified";
|
|
237
|
+
/** Error */
|
|
141
238
|
KnownNodeExtensionState["Error"] = "Error";
|
|
239
|
+
/** Succeeded */
|
|
142
240
|
KnownNodeExtensionState["Succeeded"] = "Succeeded";
|
|
241
|
+
/** Canceled */
|
|
143
242
|
KnownNodeExtensionState["Canceled"] = "Canceled";
|
|
243
|
+
/** Failed */
|
|
144
244
|
KnownNodeExtensionState["Failed"] = "Failed";
|
|
245
|
+
/** Connected */
|
|
145
246
|
KnownNodeExtensionState["Connected"] = "Connected";
|
|
247
|
+
/** Disconnected */
|
|
146
248
|
KnownNodeExtensionState["Disconnected"] = "Disconnected";
|
|
249
|
+
/** Deleted */
|
|
147
250
|
KnownNodeExtensionState["Deleted"] = "Deleted";
|
|
251
|
+
/** Creating */
|
|
148
252
|
KnownNodeExtensionState["Creating"] = "Creating";
|
|
253
|
+
/** Updating */
|
|
149
254
|
KnownNodeExtensionState["Updating"] = "Updating";
|
|
255
|
+
/** Deleting */
|
|
150
256
|
KnownNodeExtensionState["Deleting"] = "Deleting";
|
|
257
|
+
/** Moving */
|
|
151
258
|
KnownNodeExtensionState["Moving"] = "Moving";
|
|
152
259
|
})(exports.KnownNodeExtensionState || (exports.KnownNodeExtensionState = {}));
|
|
153
260
|
/** Known values of {@link Origin} that the service accepts. */
|
|
154
261
|
exports.KnownOrigin = void 0;
|
|
155
262
|
(function (KnownOrigin) {
|
|
263
|
+
/** User */
|
|
156
264
|
KnownOrigin["User"] = "user";
|
|
265
|
+
/** System */
|
|
157
266
|
KnownOrigin["System"] = "system";
|
|
267
|
+
/** UserSystem */
|
|
158
268
|
KnownOrigin["UserSystem"] = "user,system";
|
|
159
269
|
})(exports.KnownOrigin || (exports.KnownOrigin = {}));
|
|
160
270
|
/** Known values of {@link ActionType} that the service accepts. */
|
|
161
271
|
exports.KnownActionType = void 0;
|
|
162
272
|
(function (KnownActionType) {
|
|
273
|
+
/** Internal */
|
|
163
274
|
KnownActionType["Internal"] = "Internal";
|
|
164
275
|
})(exports.KnownActionType || (exports.KnownActionType = {}));
|
|
165
276
|
|
|
@@ -1487,20 +1598,31 @@ class ArcSettingsImpl {
|
|
|
1487
1598
|
[Symbol.asyncIterator]() {
|
|
1488
1599
|
return this;
|
|
1489
1600
|
},
|
|
1490
|
-
byPage: () => {
|
|
1491
|
-
|
|
1601
|
+
byPage: (settings) => {
|
|
1602
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1603
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1604
|
+
}
|
|
1605
|
+
return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
|
|
1492
1606
|
}
|
|
1493
1607
|
};
|
|
1494
1608
|
}
|
|
1495
|
-
listByClusterPagingPage(resourceGroupName, clusterName, options) {
|
|
1609
|
+
listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
|
|
1496
1610
|
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
|
|
1497
|
-
let result
|
|
1498
|
-
|
|
1499
|
-
|
|
1611
|
+
let result;
|
|
1612
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1613
|
+
if (!continuationToken) {
|
|
1614
|
+
result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
|
|
1615
|
+
let page = result.value || [];
|
|
1616
|
+
continuationToken = result.nextLink;
|
|
1617
|
+
setContinuationToken(page, continuationToken);
|
|
1618
|
+
yield yield tslib.__await(page);
|
|
1619
|
+
}
|
|
1500
1620
|
while (continuationToken) {
|
|
1501
1621
|
result = yield tslib.__await(this._listByClusterNext(resourceGroupName, clusterName, continuationToken, options));
|
|
1502
1622
|
continuationToken = result.nextLink;
|
|
1503
|
-
|
|
1623
|
+
let page = result.value || [];
|
|
1624
|
+
setContinuationToken(page, continuationToken);
|
|
1625
|
+
yield yield tslib.__await(page);
|
|
1504
1626
|
}
|
|
1505
1627
|
});
|
|
1506
1628
|
}
|
|
@@ -1914,20 +2036,31 @@ class ClustersImpl {
|
|
|
1914
2036
|
[Symbol.asyncIterator]() {
|
|
1915
2037
|
return this;
|
|
1916
2038
|
},
|
|
1917
|
-
byPage: () => {
|
|
1918
|
-
|
|
2039
|
+
byPage: (settings) => {
|
|
2040
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2041
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2042
|
+
}
|
|
2043
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
1919
2044
|
}
|
|
1920
2045
|
};
|
|
1921
2046
|
}
|
|
1922
|
-
listBySubscriptionPagingPage(options) {
|
|
2047
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
1923
2048
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1924
|
-
let result
|
|
1925
|
-
|
|
1926
|
-
|
|
2049
|
+
let result;
|
|
2050
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2051
|
+
if (!continuationToken) {
|
|
2052
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
2053
|
+
let page = result.value || [];
|
|
2054
|
+
continuationToken = result.nextLink;
|
|
2055
|
+
setContinuationToken(page, continuationToken);
|
|
2056
|
+
yield yield tslib.__await(page);
|
|
2057
|
+
}
|
|
1927
2058
|
while (continuationToken) {
|
|
1928
2059
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1929
2060
|
continuationToken = result.nextLink;
|
|
1930
|
-
|
|
2061
|
+
let page = result.value || [];
|
|
2062
|
+
setContinuationToken(page, continuationToken);
|
|
2063
|
+
yield yield tslib.__await(page);
|
|
1931
2064
|
}
|
|
1932
2065
|
});
|
|
1933
2066
|
}
|
|
@@ -1963,20 +2096,31 @@ class ClustersImpl {
|
|
|
1963
2096
|
[Symbol.asyncIterator]() {
|
|
1964
2097
|
return this;
|
|
1965
2098
|
},
|
|
1966
|
-
byPage: () => {
|
|
1967
|
-
|
|
2099
|
+
byPage: (settings) => {
|
|
2100
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2101
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2102
|
+
}
|
|
2103
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1968
2104
|
}
|
|
1969
2105
|
};
|
|
1970
2106
|
}
|
|
1971
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
2107
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1972
2108
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1973
|
-
let result
|
|
1974
|
-
|
|
1975
|
-
|
|
2109
|
+
let result;
|
|
2110
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2111
|
+
if (!continuationToken) {
|
|
2112
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2113
|
+
let page = result.value || [];
|
|
2114
|
+
continuationToken = result.nextLink;
|
|
2115
|
+
setContinuationToken(page, continuationToken);
|
|
2116
|
+
yield yield tslib.__await(page);
|
|
2117
|
+
}
|
|
1976
2118
|
while (continuationToken) {
|
|
1977
2119
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1978
2120
|
continuationToken = result.nextLink;
|
|
1979
|
-
|
|
2121
|
+
let page = result.value || [];
|
|
2122
|
+
setContinuationToken(page, continuationToken);
|
|
2123
|
+
yield yield tslib.__await(page);
|
|
1980
2124
|
}
|
|
1981
2125
|
});
|
|
1982
2126
|
}
|
|
@@ -2473,20 +2617,31 @@ class ExtensionsImpl {
|
|
|
2473
2617
|
[Symbol.asyncIterator]() {
|
|
2474
2618
|
return this;
|
|
2475
2619
|
},
|
|
2476
|
-
byPage: () => {
|
|
2477
|
-
|
|
2620
|
+
byPage: (settings) => {
|
|
2621
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2622
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2623
|
+
}
|
|
2624
|
+
return this.listByArcSettingPagingPage(resourceGroupName, clusterName, arcSettingName, options, settings);
|
|
2478
2625
|
}
|
|
2479
2626
|
};
|
|
2480
2627
|
}
|
|
2481
|
-
listByArcSettingPagingPage(resourceGroupName, clusterName, arcSettingName, options) {
|
|
2628
|
+
listByArcSettingPagingPage(resourceGroupName, clusterName, arcSettingName, options, settings) {
|
|
2482
2629
|
return tslib.__asyncGenerator(this, arguments, function* listByArcSettingPagingPage_1() {
|
|
2483
|
-
let result
|
|
2484
|
-
|
|
2485
|
-
|
|
2630
|
+
let result;
|
|
2631
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2632
|
+
if (!continuationToken) {
|
|
2633
|
+
result = yield tslib.__await(this._listByArcSetting(resourceGroupName, clusterName, arcSettingName, options));
|
|
2634
|
+
let page = result.value || [];
|
|
2635
|
+
continuationToken = result.nextLink;
|
|
2636
|
+
setContinuationToken(page, continuationToken);
|
|
2637
|
+
yield yield tslib.__await(page);
|
|
2638
|
+
}
|
|
2486
2639
|
while (continuationToken) {
|
|
2487
2640
|
result = yield tslib.__await(this._listByArcSettingNext(resourceGroupName, clusterName, arcSettingName, continuationToken, options));
|
|
2488
2641
|
continuationToken = result.nextLink;
|
|
2489
|
-
|
|
2642
|
+
let page = result.value || [];
|
|
2643
|
+
setContinuationToken(page, continuationToken);
|
|
2644
|
+
yield yield tslib.__await(page);
|
|
2490
2645
|
}
|
|
2491
2646
|
});
|
|
2492
2647
|
}
|
|
@@ -2960,7 +3115,7 @@ class AzureStackHCIClient extends coreClient__namespace.ServiceClient {
|
|
|
2960
3115
|
* @param options The parameter options
|
|
2961
3116
|
*/
|
|
2962
3117
|
constructor(credentials, subscriptionId, options) {
|
|
2963
|
-
var _a, _b;
|
|
3118
|
+
var _a, _b, _c;
|
|
2964
3119
|
if (credentials === undefined) {
|
|
2965
3120
|
throw new Error("'credentials' cannot be null");
|
|
2966
3121
|
}
|
|
@@ -2975,32 +3130,34 @@ class AzureStackHCIClient extends coreClient__namespace.ServiceClient {
|
|
|
2975
3130
|
requestContentType: "application/json; charset=utf-8",
|
|
2976
3131
|
credential: credentials
|
|
2977
3132
|
};
|
|
2978
|
-
const packageDetails = `azsdk-js-arm-azurestackhci/3.0
|
|
3133
|
+
const packageDetails = `azsdk-js-arm-azurestackhci/3.1.0`;
|
|
2979
3134
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
2980
3135
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
2981
3136
|
: `${packageDetails}`;
|
|
2982
|
-
if (!options.credentialScopes) {
|
|
2983
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
2984
|
-
}
|
|
2985
3137
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
2986
3138
|
userAgentPrefix
|
|
2987
|
-
},
|
|
3139
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
2988
3140
|
super(optionsWithDefaults);
|
|
3141
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
2989
3142
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
2990
3143
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
2991
|
-
|
|
3144
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
2992
3145
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3146
|
+
}
|
|
3147
|
+
if (!options ||
|
|
3148
|
+
!options.pipeline ||
|
|
3149
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
3150
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
3151
|
+
this.pipeline.removePolicy({
|
|
3152
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
3153
|
+
});
|
|
3154
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
3155
|
+
credential: credentials,
|
|
3156
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
3157
|
+
challengeCallbacks: {
|
|
3158
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
3159
|
+
}
|
|
3160
|
+
}));
|
|
3004
3161
|
}
|
|
3005
3162
|
// Parameter assignments
|
|
3006
3163
|
this.subscriptionId = subscriptionId;
|
|
@@ -3011,8 +3168,37 @@ class AzureStackHCIClient extends coreClient__namespace.ServiceClient {
|
|
|
3011
3168
|
this.clusters = new ClustersImpl(this);
|
|
3012
3169
|
this.extensions = new ExtensionsImpl(this);
|
|
3013
3170
|
this.operations = new OperationsImpl(this);
|
|
3171
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
3172
|
+
}
|
|
3173
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
3174
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
3175
|
+
if (!apiVersion) {
|
|
3176
|
+
return;
|
|
3177
|
+
}
|
|
3178
|
+
const apiVersionPolicy = {
|
|
3179
|
+
name: "CustomApiVersionPolicy",
|
|
3180
|
+
sendRequest(request, next) {
|
|
3181
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3182
|
+
const param = request.url.split("?");
|
|
3183
|
+
if (param.length > 1) {
|
|
3184
|
+
const newParams = param[1].split("&").map((item) => {
|
|
3185
|
+
if (item.indexOf("api-version") > -1) {
|
|
3186
|
+
return "api-version=" + apiVersion;
|
|
3187
|
+
}
|
|
3188
|
+
else {
|
|
3189
|
+
return item;
|
|
3190
|
+
}
|
|
3191
|
+
});
|
|
3192
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
3193
|
+
}
|
|
3194
|
+
return next(request);
|
|
3195
|
+
});
|
|
3196
|
+
}
|
|
3197
|
+
};
|
|
3198
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
3014
3199
|
}
|
|
3015
3200
|
}
|
|
3016
3201
|
|
|
3017
3202
|
exports.AzureStackHCIClient = AzureStackHCIClient;
|
|
3203
|
+
exports.getContinuationToken = getContinuationToken;
|
|
3018
3204
|
//# sourceMappingURL=index.js.map
|