@azure/arm-hardwaresecuritymodules 2.0.0-alpha.20250103.1 → 2.0.0-alpha.20250106.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/dist/index.js +110 -110
- package/dist/index.js.map +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
|
|
|
47
47
|
if (typeof page !== "object" || page === null) {
|
|
48
48
|
return undefined;
|
|
49
49
|
}
|
|
50
|
-
return (_a = pageMap.get(page)) === null || _a ===
|
|
50
|
+
return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
|
|
51
51
|
}
|
|
52
52
|
function setContinuationToken(page, continuationToken) {
|
|
53
53
|
var _a;
|
|
54
54
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !==
|
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
|
|
58
58
|
pageInfo.continuationToken = continuationToken;
|
|
59
59
|
pageMap.set(page, pageInfo);
|
|
60
60
|
}
|
|
@@ -1915,7 +1915,7 @@ function createLroSpec(inputs) {
|
|
|
1915
1915
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
1916
1916
|
sendPollRequest: (path, options) => {
|
|
1917
1917
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
1918
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
1918
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
|
1919
1919
|
},
|
|
1920
1920
|
};
|
|
1921
1921
|
}
|
|
@@ -1953,7 +1953,7 @@ class CloudHsmClustersImpl {
|
|
|
1953
1953
|
return this;
|
|
1954
1954
|
},
|
|
1955
1955
|
byPage: (settings) => {
|
|
1956
|
-
if (settings === null || settings ===
|
|
1956
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
1957
1957
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
1958
1958
|
}
|
|
1959
1959
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -1963,7 +1963,7 @@ class CloudHsmClustersImpl {
|
|
|
1963
1963
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1964
1964
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1965
1965
|
let result;
|
|
1966
|
-
let continuationToken = settings === null || settings ===
|
|
1966
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
1967
1967
|
if (!continuationToken) {
|
|
1968
1968
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1969
1969
|
let page = result.value || [];
|
|
@@ -2014,7 +2014,7 @@ class CloudHsmClustersImpl {
|
|
|
2014
2014
|
return this;
|
|
2015
2015
|
},
|
|
2016
2016
|
byPage: (settings) => {
|
|
2017
|
-
if (settings === null || settings ===
|
|
2017
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
2018
2018
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2019
2019
|
}
|
|
2020
2020
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -2024,7 +2024,7 @@ class CloudHsmClustersImpl {
|
|
|
2024
2024
|
listBySubscriptionPagingPage(options, settings) {
|
|
2025
2025
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
2026
2026
|
let result;
|
|
2027
|
-
let continuationToken = settings === null || settings ===
|
|
2027
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
2028
2028
|
if (!continuationToken) {
|
|
2029
2029
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
2030
2030
|
let page = result.value || [];
|
|
@@ -2070,17 +2070,17 @@ class CloudHsmClustersImpl {
|
|
|
2070
2070
|
* @param options The options parameters.
|
|
2071
2071
|
*/
|
|
2072
2072
|
beginCreateOrUpdate(resourceGroupName, cloudHsmClusterName, location, options) {
|
|
2073
|
-
return tslib.__awaiter(this,
|
|
2074
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2073
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2074
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2075
2075
|
return this.client.sendOperationRequest(args, spec);
|
|
2076
2076
|
});
|
|
2077
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2077
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2078
2078
|
var _a;
|
|
2079
2079
|
let currentRawResponse = undefined;
|
|
2080
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2080
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2081
2081
|
const callback = (rawResponse, flatResponse) => {
|
|
2082
2082
|
currentRawResponse = rawResponse;
|
|
2083
|
-
providedCallback === null || providedCallback ===
|
|
2083
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2084
2084
|
};
|
|
2085
2085
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2086
2086
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2099,8 +2099,8 @@ class CloudHsmClustersImpl {
|
|
|
2099
2099
|
spec: createOrUpdateOperationSpec$1,
|
|
2100
2100
|
});
|
|
2101
2101
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2102
|
-
restoreFrom: options === null || options ===
|
|
2103
|
-
intervalInMs: options === null || options ===
|
|
2102
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2103
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2104
2104
|
resourceLocationConfig: "original-uri",
|
|
2105
2105
|
});
|
|
2106
2106
|
yield poller.poll();
|
|
@@ -2116,7 +2116,7 @@ class CloudHsmClustersImpl {
|
|
|
2116
2116
|
* @param options The options parameters.
|
|
2117
2117
|
*/
|
|
2118
2118
|
beginCreateOrUpdateAndWait(resourceGroupName, cloudHsmClusterName, location, options) {
|
|
2119
|
-
return tslib.__awaiter(this,
|
|
2119
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2120
2120
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, cloudHsmClusterName, location, options);
|
|
2121
2121
|
return poller.pollUntilDone();
|
|
2122
2122
|
});
|
|
@@ -2129,17 +2129,17 @@ class CloudHsmClustersImpl {
|
|
|
2129
2129
|
* @param options The options parameters.
|
|
2130
2130
|
*/
|
|
2131
2131
|
beginUpdate(resourceGroupName, cloudHsmClusterName, options) {
|
|
2132
|
-
return tslib.__awaiter(this,
|
|
2133
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2132
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2133
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2134
2134
|
return this.client.sendOperationRequest(args, spec);
|
|
2135
2135
|
});
|
|
2136
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2136
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2137
2137
|
var _a;
|
|
2138
2138
|
let currentRawResponse = undefined;
|
|
2139
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2139
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2140
2140
|
const callback = (rawResponse, flatResponse) => {
|
|
2141
2141
|
currentRawResponse = rawResponse;
|
|
2142
|
-
providedCallback === null || providedCallback ===
|
|
2142
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2143
2143
|
};
|
|
2144
2144
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2145
2145
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2158,8 +2158,8 @@ class CloudHsmClustersImpl {
|
|
|
2158
2158
|
spec: updateOperationSpec$1,
|
|
2159
2159
|
});
|
|
2160
2160
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2161
|
-
restoreFrom: options === null || options ===
|
|
2162
|
-
intervalInMs: options === null || options ===
|
|
2161
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2162
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2163
2163
|
resourceLocationConfig: "location",
|
|
2164
2164
|
});
|
|
2165
2165
|
yield poller.poll();
|
|
@@ -2174,7 +2174,7 @@ class CloudHsmClustersImpl {
|
|
|
2174
2174
|
* @param options The options parameters.
|
|
2175
2175
|
*/
|
|
2176
2176
|
beginUpdateAndWait(resourceGroupName, cloudHsmClusterName, options) {
|
|
2177
|
-
return tslib.__awaiter(this,
|
|
2177
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2178
2178
|
const poller = yield this.beginUpdate(resourceGroupName, cloudHsmClusterName, options);
|
|
2179
2179
|
return poller.pollUntilDone();
|
|
2180
2180
|
});
|
|
@@ -2197,17 +2197,17 @@ class CloudHsmClustersImpl {
|
|
|
2197
2197
|
* @param options The options parameters.
|
|
2198
2198
|
*/
|
|
2199
2199
|
beginDelete(resourceGroupName, cloudHsmClusterName, options) {
|
|
2200
|
-
return tslib.__awaiter(this,
|
|
2201
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2200
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2201
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2202
2202
|
return this.client.sendOperationRequest(args, spec);
|
|
2203
2203
|
});
|
|
2204
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2204
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2205
2205
|
var _a;
|
|
2206
2206
|
let currentRawResponse = undefined;
|
|
2207
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2207
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2208
2208
|
const callback = (rawResponse, flatResponse) => {
|
|
2209
2209
|
currentRawResponse = rawResponse;
|
|
2210
|
-
providedCallback === null || providedCallback ===
|
|
2210
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2211
2211
|
};
|
|
2212
2212
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2213
2213
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2226,8 +2226,8 @@ class CloudHsmClustersImpl {
|
|
|
2226
2226
|
spec: deleteOperationSpec$2,
|
|
2227
2227
|
});
|
|
2228
2228
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2229
|
-
restoreFrom: options === null || options ===
|
|
2230
|
-
intervalInMs: options === null || options ===
|
|
2229
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2230
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2231
2231
|
resourceLocationConfig: "location",
|
|
2232
2232
|
});
|
|
2233
2233
|
yield poller.poll();
|
|
@@ -2242,7 +2242,7 @@ class CloudHsmClustersImpl {
|
|
|
2242
2242
|
* @param options The options parameters.
|
|
2243
2243
|
*/
|
|
2244
2244
|
beginDeleteAndWait(resourceGroupName, cloudHsmClusterName, options) {
|
|
2245
|
-
return tslib.__awaiter(this,
|
|
2245
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2246
2246
|
const poller = yield this.beginDelete(resourceGroupName, cloudHsmClusterName, options);
|
|
2247
2247
|
return poller.pollUntilDone();
|
|
2248
2248
|
});
|
|
@@ -2272,17 +2272,17 @@ class CloudHsmClustersImpl {
|
|
|
2272
2272
|
* @param options The options parameters.
|
|
2273
2273
|
*/
|
|
2274
2274
|
beginValidateBackupProperties(resourceGroupName, cloudHsmClusterName, options) {
|
|
2275
|
-
return tslib.__awaiter(this,
|
|
2276
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2275
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2276
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2277
2277
|
return this.client.sendOperationRequest(args, spec);
|
|
2278
2278
|
});
|
|
2279
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2279
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2280
2280
|
var _a;
|
|
2281
2281
|
let currentRawResponse = undefined;
|
|
2282
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2282
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2283
2283
|
const callback = (rawResponse, flatResponse) => {
|
|
2284
2284
|
currentRawResponse = rawResponse;
|
|
2285
|
-
providedCallback === null || providedCallback ===
|
|
2285
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2286
2286
|
};
|
|
2287
2287
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2288
2288
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2301,8 +2301,8 @@ class CloudHsmClustersImpl {
|
|
|
2301
2301
|
spec: validateBackupPropertiesOperationSpec,
|
|
2302
2302
|
});
|
|
2303
2303
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2304
|
-
restoreFrom: options === null || options ===
|
|
2305
|
-
intervalInMs: options === null || options ===
|
|
2304
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2305
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2306
2306
|
resourceLocationConfig: "azure-async-operation",
|
|
2307
2307
|
});
|
|
2308
2308
|
yield poller.poll();
|
|
@@ -2318,7 +2318,7 @@ class CloudHsmClustersImpl {
|
|
|
2318
2318
|
* @param options The options parameters.
|
|
2319
2319
|
*/
|
|
2320
2320
|
beginValidateBackupPropertiesAndWait(resourceGroupName, cloudHsmClusterName, options) {
|
|
2321
|
-
return tslib.__awaiter(this,
|
|
2321
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2322
2322
|
const poller = yield this.beginValidateBackupProperties(resourceGroupName, cloudHsmClusterName, options);
|
|
2323
2323
|
return poller.pollUntilDone();
|
|
2324
2324
|
});
|
|
@@ -2331,17 +2331,17 @@ class CloudHsmClustersImpl {
|
|
|
2331
2331
|
* @param options The options parameters.
|
|
2332
2332
|
*/
|
|
2333
2333
|
beginBackup(resourceGroupName, cloudHsmClusterName, options) {
|
|
2334
|
-
return tslib.__awaiter(this,
|
|
2335
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2334
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2335
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2336
2336
|
return this.client.sendOperationRequest(args, spec);
|
|
2337
2337
|
});
|
|
2338
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2338
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2339
2339
|
var _a;
|
|
2340
2340
|
let currentRawResponse = undefined;
|
|
2341
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2341
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2342
2342
|
const callback = (rawResponse, flatResponse) => {
|
|
2343
2343
|
currentRawResponse = rawResponse;
|
|
2344
|
-
providedCallback === null || providedCallback ===
|
|
2344
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2345
2345
|
};
|
|
2346
2346
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2347
2347
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2360,8 +2360,8 @@ class CloudHsmClustersImpl {
|
|
|
2360
2360
|
spec: backupOperationSpec,
|
|
2361
2361
|
});
|
|
2362
2362
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2363
|
-
restoreFrom: options === null || options ===
|
|
2364
|
-
intervalInMs: options === null || options ===
|
|
2363
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2364
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2365
2365
|
resourceLocationConfig: "azure-async-operation",
|
|
2366
2366
|
});
|
|
2367
2367
|
yield poller.poll();
|
|
@@ -2376,7 +2376,7 @@ class CloudHsmClustersImpl {
|
|
|
2376
2376
|
* @param options The options parameters.
|
|
2377
2377
|
*/
|
|
2378
2378
|
beginBackupAndWait(resourceGroupName, cloudHsmClusterName, options) {
|
|
2379
|
-
return tslib.__awaiter(this,
|
|
2379
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2380
2380
|
const poller = yield this.beginBackup(resourceGroupName, cloudHsmClusterName, options);
|
|
2381
2381
|
return poller.pollUntilDone();
|
|
2382
2382
|
});
|
|
@@ -2389,17 +2389,17 @@ class CloudHsmClustersImpl {
|
|
|
2389
2389
|
* @param options The options parameters.
|
|
2390
2390
|
*/
|
|
2391
2391
|
beginValidateRestoreProperties(resourceGroupName, cloudHsmClusterName, options) {
|
|
2392
|
-
return tslib.__awaiter(this,
|
|
2393
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2392
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2393
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2394
2394
|
return this.client.sendOperationRequest(args, spec);
|
|
2395
2395
|
});
|
|
2396
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2396
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2397
2397
|
var _a;
|
|
2398
2398
|
let currentRawResponse = undefined;
|
|
2399
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2399
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2400
2400
|
const callback = (rawResponse, flatResponse) => {
|
|
2401
2401
|
currentRawResponse = rawResponse;
|
|
2402
|
-
providedCallback === null || providedCallback ===
|
|
2402
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2403
2403
|
};
|
|
2404
2404
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2405
2405
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2418,8 +2418,8 @@ class CloudHsmClustersImpl {
|
|
|
2418
2418
|
spec: validateRestorePropertiesOperationSpec,
|
|
2419
2419
|
});
|
|
2420
2420
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2421
|
-
restoreFrom: options === null || options ===
|
|
2422
|
-
intervalInMs: options === null || options ===
|
|
2421
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2422
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2423
2423
|
resourceLocationConfig: "azure-async-operation",
|
|
2424
2424
|
});
|
|
2425
2425
|
yield poller.poll();
|
|
@@ -2434,7 +2434,7 @@ class CloudHsmClustersImpl {
|
|
|
2434
2434
|
* @param options The options parameters.
|
|
2435
2435
|
*/
|
|
2436
2436
|
beginValidateRestorePropertiesAndWait(resourceGroupName, cloudHsmClusterName, options) {
|
|
2437
|
-
return tslib.__awaiter(this,
|
|
2437
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2438
2438
|
const poller = yield this.beginValidateRestoreProperties(resourceGroupName, cloudHsmClusterName, options);
|
|
2439
2439
|
return poller.pollUntilDone();
|
|
2440
2440
|
});
|
|
@@ -2448,17 +2448,17 @@ class CloudHsmClustersImpl {
|
|
|
2448
2448
|
* @param options The options parameters.
|
|
2449
2449
|
*/
|
|
2450
2450
|
beginRestore(resourceGroupName, cloudHsmClusterName, restoreRequestProperties, options) {
|
|
2451
|
-
return tslib.__awaiter(this,
|
|
2452
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2451
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2452
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2453
2453
|
return this.client.sendOperationRequest(args, spec);
|
|
2454
2454
|
});
|
|
2455
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2455
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2456
2456
|
var _a;
|
|
2457
2457
|
let currentRawResponse = undefined;
|
|
2458
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2458
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2459
2459
|
const callback = (rawResponse, flatResponse) => {
|
|
2460
2460
|
currentRawResponse = rawResponse;
|
|
2461
|
-
providedCallback === null || providedCallback ===
|
|
2461
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2462
2462
|
};
|
|
2463
2463
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2464
2464
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2482,8 +2482,8 @@ class CloudHsmClustersImpl {
|
|
|
2482
2482
|
spec: restoreOperationSpec,
|
|
2483
2483
|
});
|
|
2484
2484
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2485
|
-
restoreFrom: options === null || options ===
|
|
2486
|
-
intervalInMs: options === null || options ===
|
|
2485
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2486
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2487
2487
|
resourceLocationConfig: "azure-async-operation",
|
|
2488
2488
|
});
|
|
2489
2489
|
yield poller.poll();
|
|
@@ -2499,7 +2499,7 @@ class CloudHsmClustersImpl {
|
|
|
2499
2499
|
* @param options The options parameters.
|
|
2500
2500
|
*/
|
|
2501
2501
|
beginRestoreAndWait(resourceGroupName, cloudHsmClusterName, restoreRequestProperties, options) {
|
|
2502
|
-
return tslib.__awaiter(this,
|
|
2502
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2503
2503
|
const poller = yield this.beginRestore(resourceGroupName, cloudHsmClusterName, restoreRequestProperties, options);
|
|
2504
2504
|
return poller.pollUntilDone();
|
|
2505
2505
|
});
|
|
@@ -2912,7 +2912,7 @@ class CloudHsmClusterPrivateLinkResourcesImpl {
|
|
|
2912
2912
|
return this;
|
|
2913
2913
|
},
|
|
2914
2914
|
byPage: (settings) => {
|
|
2915
|
-
if (settings === null || settings ===
|
|
2915
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
2916
2916
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2917
2917
|
}
|
|
2918
2918
|
return this.listByCloudHsmClusterPagingPage(resourceGroupName, cloudHsmClusterName, options, settings);
|
|
@@ -2922,7 +2922,7 @@ class CloudHsmClusterPrivateLinkResourcesImpl {
|
|
|
2922
2922
|
listByCloudHsmClusterPagingPage(resourceGroupName, cloudHsmClusterName, options, settings) {
|
|
2923
2923
|
return tslib.__asyncGenerator(this, arguments, function* listByCloudHsmClusterPagingPage_1() {
|
|
2924
2924
|
let result;
|
|
2925
|
-
let continuationToken = settings === null || settings ===
|
|
2925
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
2926
2926
|
if (!continuationToken) {
|
|
2927
2927
|
result = yield tslib.__await(this._listByCloudHsmCluster(resourceGroupName, cloudHsmClusterName, options));
|
|
2928
2928
|
let page = result.value || [];
|
|
@@ -3071,17 +3071,17 @@ class CloudHsmClusterPrivateEndpointConnectionsImpl {
|
|
|
3071
3071
|
* @param options The options parameters.
|
|
3072
3072
|
*/
|
|
3073
3073
|
beginDelete(resourceGroupName, cloudHsmClusterName, peConnectionName, options) {
|
|
3074
|
-
return tslib.__awaiter(this,
|
|
3075
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3074
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3075
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3076
3076
|
return this.client.sendOperationRequest(args, spec);
|
|
3077
3077
|
});
|
|
3078
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3078
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3079
3079
|
var _a;
|
|
3080
3080
|
let currentRawResponse = undefined;
|
|
3081
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3081
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3082
3082
|
const callback = (rawResponse, flatResponse) => {
|
|
3083
3083
|
currentRawResponse = rawResponse;
|
|
3084
|
-
providedCallback === null || providedCallback ===
|
|
3084
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3085
3085
|
};
|
|
3086
3086
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3087
3087
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3105,8 +3105,8 @@ class CloudHsmClusterPrivateEndpointConnectionsImpl {
|
|
|
3105
3105
|
spec: deleteOperationSpec$1,
|
|
3106
3106
|
});
|
|
3107
3107
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3108
|
-
restoreFrom: options === null || options ===
|
|
3109
|
-
intervalInMs: options === null || options ===
|
|
3108
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3109
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3110
3110
|
resourceLocationConfig: "location",
|
|
3111
3111
|
});
|
|
3112
3112
|
yield poller.poll();
|
|
@@ -3123,7 +3123,7 @@ class CloudHsmClusterPrivateEndpointConnectionsImpl {
|
|
|
3123
3123
|
* @param options The options parameters.
|
|
3124
3124
|
*/
|
|
3125
3125
|
beginDeleteAndWait(resourceGroupName, cloudHsmClusterName, peConnectionName, options) {
|
|
3126
|
-
return tslib.__awaiter(this,
|
|
3126
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3127
3127
|
const poller = yield this.beginDelete(resourceGroupName, cloudHsmClusterName, peConnectionName, options);
|
|
3128
3128
|
return poller.pollUntilDone();
|
|
3129
3129
|
});
|
|
@@ -3256,7 +3256,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
3256
3256
|
return this;
|
|
3257
3257
|
},
|
|
3258
3258
|
byPage: (settings) => {
|
|
3259
|
-
if (settings === null || settings ===
|
|
3259
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3260
3260
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3261
3261
|
}
|
|
3262
3262
|
return this.listByCloudHsmClusterPagingPage(resourceGroupName, cloudHsmClusterName, options, settings);
|
|
@@ -3266,7 +3266,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
3266
3266
|
listByCloudHsmClusterPagingPage(resourceGroupName, cloudHsmClusterName, options, settings) {
|
|
3267
3267
|
return tslib.__asyncGenerator(this, arguments, function* listByCloudHsmClusterPagingPage_1() {
|
|
3268
3268
|
let result;
|
|
3269
|
-
let continuationToken = settings === null || settings ===
|
|
3269
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3270
3270
|
if (!continuationToken) {
|
|
3271
3271
|
result = yield tslib.__await(this._listByCloudHsmCluster(resourceGroupName, cloudHsmClusterName, options));
|
|
3272
3272
|
let page = result.value || [];
|
|
@@ -3520,7 +3520,7 @@ class DedicatedHsmOperationsImpl {
|
|
|
3520
3520
|
return this;
|
|
3521
3521
|
},
|
|
3522
3522
|
byPage: (settings) => {
|
|
3523
|
-
if (settings === null || settings ===
|
|
3523
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3524
3524
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3525
3525
|
}
|
|
3526
3526
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -3530,7 +3530,7 @@ class DedicatedHsmOperationsImpl {
|
|
|
3530
3530
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3531
3531
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3532
3532
|
let result;
|
|
3533
|
-
let continuationToken = settings === null || settings ===
|
|
3533
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3534
3534
|
if (!continuationToken) {
|
|
3535
3535
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3536
3536
|
let page = result.value || [];
|
|
@@ -3581,7 +3581,7 @@ class DedicatedHsmOperationsImpl {
|
|
|
3581
3581
|
return this;
|
|
3582
3582
|
},
|
|
3583
3583
|
byPage: (settings) => {
|
|
3584
|
-
if (settings === null || settings ===
|
|
3584
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3585
3585
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3586
3586
|
}
|
|
3587
3587
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -3591,7 +3591,7 @@ class DedicatedHsmOperationsImpl {
|
|
|
3591
3591
|
listBySubscriptionPagingPage(options, settings) {
|
|
3592
3592
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
3593
3593
|
let result;
|
|
3594
|
-
let continuationToken = settings === null || settings ===
|
|
3594
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3595
3595
|
if (!continuationToken) {
|
|
3596
3596
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
3597
3597
|
let page = result.value || [];
|
|
@@ -3645,7 +3645,7 @@ class DedicatedHsmOperationsImpl {
|
|
|
3645
3645
|
return this;
|
|
3646
3646
|
},
|
|
3647
3647
|
byPage: (settings) => {
|
|
3648
|
-
if (settings === null || settings ===
|
|
3648
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3649
3649
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3650
3650
|
}
|
|
3651
3651
|
return this.listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, name, options, settings);
|
|
@@ -3655,7 +3655,7 @@ class DedicatedHsmOperationsImpl {
|
|
|
3655
3655
|
listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, name, options, settings) {
|
|
3656
3656
|
return tslib.__asyncGenerator(this, arguments, function* listOutboundNetworkDependenciesEndpointsPagingPage_1() {
|
|
3657
3657
|
let result;
|
|
3658
|
-
let continuationToken = settings === null || settings ===
|
|
3658
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3659
3659
|
if (!continuationToken) {
|
|
3660
3660
|
result = yield tslib.__await(this._listOutboundNetworkDependenciesEndpoints(resourceGroupName, name, options));
|
|
3661
3661
|
let page = result.value || [];
|
|
@@ -3700,17 +3700,17 @@ class DedicatedHsmOperationsImpl {
|
|
|
3700
3700
|
* @param options The options parameters.
|
|
3701
3701
|
*/
|
|
3702
3702
|
beginCreateOrUpdate(resourceGroupName, name, parameters, options) {
|
|
3703
|
-
return tslib.__awaiter(this,
|
|
3704
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3703
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3704
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3705
3705
|
return this.client.sendOperationRequest(args, spec);
|
|
3706
3706
|
});
|
|
3707
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3707
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3708
3708
|
var _a;
|
|
3709
3709
|
let currentRawResponse = undefined;
|
|
3710
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3710
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3711
3711
|
const callback = (rawResponse, flatResponse) => {
|
|
3712
3712
|
currentRawResponse = rawResponse;
|
|
3713
|
-
providedCallback === null || providedCallback ===
|
|
3713
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3714
3714
|
};
|
|
3715
3715
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3716
3716
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3729,8 +3729,8 @@ class DedicatedHsmOperationsImpl {
|
|
|
3729
3729
|
spec: createOrUpdateOperationSpec,
|
|
3730
3730
|
});
|
|
3731
3731
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3732
|
-
restoreFrom: options === null || options ===
|
|
3733
|
-
intervalInMs: options === null || options ===
|
|
3732
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3733
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3734
3734
|
});
|
|
3735
3735
|
yield poller.poll();
|
|
3736
3736
|
return poller;
|
|
@@ -3744,7 +3744,7 @@ class DedicatedHsmOperationsImpl {
|
|
|
3744
3744
|
* @param options The options parameters.
|
|
3745
3745
|
*/
|
|
3746
3746
|
beginCreateOrUpdateAndWait(resourceGroupName, name, parameters, options) {
|
|
3747
|
-
return tslib.__awaiter(this,
|
|
3747
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3748
3748
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, name, parameters, options);
|
|
3749
3749
|
return poller.pollUntilDone();
|
|
3750
3750
|
});
|
|
@@ -3756,17 +3756,17 @@ class DedicatedHsmOperationsImpl {
|
|
|
3756
3756
|
* @param options The options parameters.
|
|
3757
3757
|
*/
|
|
3758
3758
|
beginUpdate(resourceGroupName, name, options) {
|
|
3759
|
-
return tslib.__awaiter(this,
|
|
3760
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3759
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3760
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3761
3761
|
return this.client.sendOperationRequest(args, spec);
|
|
3762
3762
|
});
|
|
3763
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3763
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3764
3764
|
var _a;
|
|
3765
3765
|
let currentRawResponse = undefined;
|
|
3766
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3766
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3767
3767
|
const callback = (rawResponse, flatResponse) => {
|
|
3768
3768
|
currentRawResponse = rawResponse;
|
|
3769
|
-
providedCallback === null || providedCallback ===
|
|
3769
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3770
3770
|
};
|
|
3771
3771
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3772
3772
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3785,8 +3785,8 @@ class DedicatedHsmOperationsImpl {
|
|
|
3785
3785
|
spec: updateOperationSpec,
|
|
3786
3786
|
});
|
|
3787
3787
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3788
|
-
restoreFrom: options === null || options ===
|
|
3789
|
-
intervalInMs: options === null || options ===
|
|
3788
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3789
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3790
3790
|
});
|
|
3791
3791
|
yield poller.poll();
|
|
3792
3792
|
return poller;
|
|
@@ -3799,7 +3799,7 @@ class DedicatedHsmOperationsImpl {
|
|
|
3799
3799
|
* @param options The options parameters.
|
|
3800
3800
|
*/
|
|
3801
3801
|
beginUpdateAndWait(resourceGroupName, name, options) {
|
|
3802
|
-
return tslib.__awaiter(this,
|
|
3802
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3803
3803
|
const poller = yield this.beginUpdate(resourceGroupName, name, options);
|
|
3804
3804
|
return poller.pollUntilDone();
|
|
3805
3805
|
});
|
|
@@ -3811,17 +3811,17 @@ class DedicatedHsmOperationsImpl {
|
|
|
3811
3811
|
* @param options The options parameters.
|
|
3812
3812
|
*/
|
|
3813
3813
|
beginDelete(resourceGroupName, name, options) {
|
|
3814
|
-
return tslib.__awaiter(this,
|
|
3815
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3814
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3815
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3816
3816
|
return this.client.sendOperationRequest(args, spec);
|
|
3817
3817
|
});
|
|
3818
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3818
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3819
3819
|
var _a;
|
|
3820
3820
|
let currentRawResponse = undefined;
|
|
3821
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3821
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3822
3822
|
const callback = (rawResponse, flatResponse) => {
|
|
3823
3823
|
currentRawResponse = rawResponse;
|
|
3824
|
-
providedCallback === null || providedCallback ===
|
|
3824
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3825
3825
|
};
|
|
3826
3826
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3827
3827
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3840,8 +3840,8 @@ class DedicatedHsmOperationsImpl {
|
|
|
3840
3840
|
spec: deleteOperationSpec,
|
|
3841
3841
|
});
|
|
3842
3842
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3843
|
-
restoreFrom: options === null || options ===
|
|
3844
|
-
intervalInMs: options === null || options ===
|
|
3843
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3844
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3845
3845
|
});
|
|
3846
3846
|
yield poller.poll();
|
|
3847
3847
|
return poller;
|
|
@@ -3854,7 +3854,7 @@ class DedicatedHsmOperationsImpl {
|
|
|
3854
3854
|
* @param options The options parameters.
|
|
3855
3855
|
*/
|
|
3856
3856
|
beginDeleteAndWait(resourceGroupName, name, options) {
|
|
3857
|
-
return tslib.__awaiter(this,
|
|
3857
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3858
3858
|
const poller = yield this.beginDelete(resourceGroupName, name, options);
|
|
3859
3859
|
return poller.pollUntilDone();
|
|
3860
3860
|
});
|
|
@@ -4192,7 +4192,7 @@ class OperationsImpl {
|
|
|
4192
4192
|
return this;
|
|
4193
4193
|
},
|
|
4194
4194
|
byPage: (settings) => {
|
|
4195
|
-
if (settings === null || settings ===
|
|
4195
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4196
4196
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4197
4197
|
}
|
|
4198
4198
|
return this.listPagingPage(options, settings);
|
|
@@ -4289,10 +4289,10 @@ class AzureHSMResourceProvider extends coreClient__namespace.ServiceClient {
|
|
|
4289
4289
|
: `${packageDetails}`;
|
|
4290
4290
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
4291
4291
|
userAgentPrefix,
|
|
4292
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
4292
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
4293
4293
|
super(optionsWithDefaults);
|
|
4294
4294
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
4295
|
-
if ((options === null || options ===
|
|
4295
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
4296
4296
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
4297
4297
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
4298
4298
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -4306,7 +4306,7 @@ class AzureHSMResourceProvider extends coreClient__namespace.ServiceClient {
|
|
|
4306
4306
|
});
|
|
4307
4307
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
4308
4308
|
credential: credentials,
|
|
4309
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
4309
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
4310
4310
|
challengeCallbacks: {
|
|
4311
4311
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
4312
4312
|
},
|
|
@@ -4337,7 +4337,7 @@ class AzureHSMResourceProvider extends coreClient__namespace.ServiceClient {
|
|
|
4337
4337
|
const apiVersionPolicy = {
|
|
4338
4338
|
name: "CustomApiVersionPolicy",
|
|
4339
4339
|
sendRequest(request, next) {
|
|
4340
|
-
return tslib.__awaiter(this,
|
|
4340
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4341
4341
|
const param = request.url.split("?");
|
|
4342
4342
|
if (param.length > 1) {
|
|
4343
4343
|
const newParams = param[1].split("&").map((item) => {
|