@azure/arm-healthcareapis 3.1.1-alpha.20250103.1 → 3.1.1-alpha.20250106.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +196 -196
- 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
|
}
|
@@ -2906,7 +2906,7 @@ function createLroSpec(inputs) {
|
|
2906
2906
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
2907
2907
|
sendPollRequest: (path, options) => {
|
2908
2908
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
2909
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
2909
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
2910
2910
|
},
|
2911
2911
|
};
|
2912
2912
|
}
|
@@ -2942,7 +2942,7 @@ class ServicesImpl {
|
|
2942
2942
|
return this;
|
2943
2943
|
},
|
2944
2944
|
byPage: (settings) => {
|
2945
|
-
if (settings === null || settings ===
|
2945
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
2946
2946
|
throw new Error("maxPageSize is not supported by this operation.");
|
2947
2947
|
}
|
2948
2948
|
return this.listPagingPage(options, settings);
|
@@ -2952,7 +2952,7 @@ class ServicesImpl {
|
|
2952
2952
|
listPagingPage(options, settings) {
|
2953
2953
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
2954
2954
|
let result;
|
2955
|
-
let continuationToken = settings === null || settings ===
|
2955
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
2956
2956
|
if (!continuationToken) {
|
2957
2957
|
result = yield tslib.__await(this._list(options));
|
2958
2958
|
let page = result.value || [];
|
@@ -3004,7 +3004,7 @@ class ServicesImpl {
|
|
3004
3004
|
return this;
|
3005
3005
|
},
|
3006
3006
|
byPage: (settings) => {
|
3007
|
-
if (settings === null || settings ===
|
3007
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
3008
3008
|
throw new Error("maxPageSize is not supported by this operation.");
|
3009
3009
|
}
|
3010
3010
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
@@ -3014,7 +3014,7 @@ class ServicesImpl {
|
|
3014
3014
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
3015
3015
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
3016
3016
|
let result;
|
3017
|
-
let continuationToken = settings === null || settings ===
|
3017
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
3018
3018
|
if (!continuationToken) {
|
3019
3019
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
3020
3020
|
let page = result.value || [];
|
@@ -3068,17 +3068,17 @@ class ServicesImpl {
|
|
3068
3068
|
* @param options The options parameters.
|
3069
3069
|
*/
|
3070
3070
|
beginCreateOrUpdate(resourceGroupName, resourceName, serviceDescription, options) {
|
3071
|
-
return tslib.__awaiter(this,
|
3072
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
3071
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
3072
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
3073
3073
|
return this.client.sendOperationRequest(args, spec);
|
3074
3074
|
});
|
3075
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
3075
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
3076
3076
|
var _a;
|
3077
3077
|
let currentRawResponse = undefined;
|
3078
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
3078
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
3079
3079
|
const callback = (rawResponse, flatResponse) => {
|
3080
3080
|
currentRawResponse = rawResponse;
|
3081
|
-
providedCallback === null || providedCallback ===
|
3081
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
3082
3082
|
};
|
3083
3083
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
3084
3084
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -3097,8 +3097,8 @@ class ServicesImpl {
|
|
3097
3097
|
spec: createOrUpdateOperationSpec$7,
|
3098
3098
|
});
|
3099
3099
|
const poller = yield coreLro.createHttpPoller(lro, {
|
3100
|
-
restoreFrom: options === null || options ===
|
3101
|
-
intervalInMs: options === null || options ===
|
3100
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
3101
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
3102
3102
|
});
|
3103
3103
|
yield poller.poll();
|
3104
3104
|
return poller;
|
@@ -3112,7 +3112,7 @@ class ServicesImpl {
|
|
3112
3112
|
* @param options The options parameters.
|
3113
3113
|
*/
|
3114
3114
|
beginCreateOrUpdateAndWait(resourceGroupName, resourceName, serviceDescription, options) {
|
3115
|
-
return tslib.__awaiter(this,
|
3115
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
3116
3116
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, serviceDescription, options);
|
3117
3117
|
return poller.pollUntilDone();
|
3118
3118
|
});
|
@@ -3125,17 +3125,17 @@ class ServicesImpl {
|
|
3125
3125
|
* @param options The options parameters.
|
3126
3126
|
*/
|
3127
3127
|
beginUpdate(resourceGroupName, resourceName, servicePatchDescription, options) {
|
3128
|
-
return tslib.__awaiter(this,
|
3129
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
3128
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
3129
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
3130
3130
|
return this.client.sendOperationRequest(args, spec);
|
3131
3131
|
});
|
3132
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
3132
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
3133
3133
|
var _a;
|
3134
3134
|
let currentRawResponse = undefined;
|
3135
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
3135
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
3136
3136
|
const callback = (rawResponse, flatResponse) => {
|
3137
3137
|
currentRawResponse = rawResponse;
|
3138
|
-
providedCallback === null || providedCallback ===
|
3138
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
3139
3139
|
};
|
3140
3140
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
3141
3141
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -3159,8 +3159,8 @@ class ServicesImpl {
|
|
3159
3159
|
spec: updateOperationSpec$4,
|
3160
3160
|
});
|
3161
3161
|
const poller = yield coreLro.createHttpPoller(lro, {
|
3162
|
-
restoreFrom: options === null || options ===
|
3163
|
-
intervalInMs: options === null || options ===
|
3162
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
3163
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
3164
3164
|
});
|
3165
3165
|
yield poller.poll();
|
3166
3166
|
return poller;
|
@@ -3174,7 +3174,7 @@ class ServicesImpl {
|
|
3174
3174
|
* @param options The options parameters.
|
3175
3175
|
*/
|
3176
3176
|
beginUpdateAndWait(resourceGroupName, resourceName, servicePatchDescription, options) {
|
3177
|
-
return tslib.__awaiter(this,
|
3177
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
3178
3178
|
const poller = yield this.beginUpdate(resourceGroupName, resourceName, servicePatchDescription, options);
|
3179
3179
|
return poller.pollUntilDone();
|
3180
3180
|
});
|
@@ -3186,17 +3186,17 @@ class ServicesImpl {
|
|
3186
3186
|
* @param options The options parameters.
|
3187
3187
|
*/
|
3188
3188
|
beginDelete(resourceGroupName, resourceName, options) {
|
3189
|
-
return tslib.__awaiter(this,
|
3190
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
3189
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
3190
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
3191
3191
|
return this.client.sendOperationRequest(args, spec);
|
3192
3192
|
});
|
3193
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
3193
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
3194
3194
|
var _a;
|
3195
3195
|
let currentRawResponse = undefined;
|
3196
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
3196
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
3197
3197
|
const callback = (rawResponse, flatResponse) => {
|
3198
3198
|
currentRawResponse = rawResponse;
|
3199
|
-
providedCallback === null || providedCallback ===
|
3199
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
3200
3200
|
};
|
3201
3201
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
3202
3202
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -3215,8 +3215,8 @@ class ServicesImpl {
|
|
3215
3215
|
spec: deleteOperationSpec$7,
|
3216
3216
|
});
|
3217
3217
|
const poller = yield coreLro.createHttpPoller(lro, {
|
3218
|
-
restoreFrom: options === null || options ===
|
3219
|
-
intervalInMs: options === null || options ===
|
3218
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
3219
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
3220
3220
|
});
|
3221
3221
|
yield poller.poll();
|
3222
3222
|
return poller;
|
@@ -3229,7 +3229,7 @@ class ServicesImpl {
|
|
3229
3229
|
* @param options The options parameters.
|
3230
3230
|
*/
|
3231
3231
|
beginDeleteAndWait(resourceGroupName, resourceName, options) {
|
3232
|
-
return tslib.__awaiter(this,
|
3232
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
3233
3233
|
const poller = yield this.beginDelete(resourceGroupName, resourceName, options);
|
3234
3234
|
return poller.pollUntilDone();
|
3235
3235
|
});
|
@@ -3512,7 +3512,7 @@ class PrivateEndpointConnectionsImpl {
|
|
3512
3512
|
return this;
|
3513
3513
|
},
|
3514
3514
|
byPage: (settings) => {
|
3515
|
-
if (settings === null || settings ===
|
3515
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
3516
3516
|
throw new Error("maxPageSize is not supported by this operation.");
|
3517
3517
|
}
|
3518
3518
|
return this.listByServicePagingPage(resourceGroupName, resourceName, options, settings);
|
@@ -3581,17 +3581,17 @@ class PrivateEndpointConnectionsImpl {
|
|
3581
3581
|
* @param options The options parameters.
|
3582
3582
|
*/
|
3583
3583
|
beginCreateOrUpdate(resourceGroupName, resourceName, privateEndpointConnectionName, properties, options) {
|
3584
|
-
return tslib.__awaiter(this,
|
3585
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
3584
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
3585
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
3586
3586
|
return this.client.sendOperationRequest(args, spec);
|
3587
3587
|
});
|
3588
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
3588
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
3589
3589
|
var _a;
|
3590
3590
|
let currentRawResponse = undefined;
|
3591
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
3591
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
3592
3592
|
const callback = (rawResponse, flatResponse) => {
|
3593
3593
|
currentRawResponse = rawResponse;
|
3594
|
-
providedCallback === null || providedCallback ===
|
3594
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
3595
3595
|
};
|
3596
3596
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
3597
3597
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -3616,8 +3616,8 @@ class PrivateEndpointConnectionsImpl {
|
|
3616
3616
|
spec: createOrUpdateOperationSpec$6,
|
3617
3617
|
});
|
3618
3618
|
const poller = yield coreLro.createHttpPoller(lro, {
|
3619
|
-
restoreFrom: options === null || options ===
|
3620
|
-
intervalInMs: options === null || options ===
|
3619
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
3620
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
3621
3621
|
});
|
3622
3622
|
yield poller.poll();
|
3623
3623
|
return poller;
|
@@ -3633,7 +3633,7 @@ class PrivateEndpointConnectionsImpl {
|
|
3633
3633
|
* @param options The options parameters.
|
3634
3634
|
*/
|
3635
3635
|
beginCreateOrUpdateAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, properties, options) {
|
3636
|
-
return tslib.__awaiter(this,
|
3636
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
3637
3637
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, privateEndpointConnectionName, properties, options);
|
3638
3638
|
return poller.pollUntilDone();
|
3639
3639
|
});
|
@@ -3647,17 +3647,17 @@ class PrivateEndpointConnectionsImpl {
|
|
3647
3647
|
* @param options The options parameters.
|
3648
3648
|
*/
|
3649
3649
|
beginDelete(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
|
3650
|
-
return tslib.__awaiter(this,
|
3651
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
3650
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
3651
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
3652
3652
|
return this.client.sendOperationRequest(args, spec);
|
3653
3653
|
});
|
3654
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
3654
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
3655
3655
|
var _a;
|
3656
3656
|
let currentRawResponse = undefined;
|
3657
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
3657
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
3658
3658
|
const callback = (rawResponse, flatResponse) => {
|
3659
3659
|
currentRawResponse = rawResponse;
|
3660
|
-
providedCallback === null || providedCallback ===
|
3660
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
3661
3661
|
};
|
3662
3662
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
3663
3663
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -3681,8 +3681,8 @@ class PrivateEndpointConnectionsImpl {
|
|
3681
3681
|
spec: deleteOperationSpec$6,
|
3682
3682
|
});
|
3683
3683
|
const poller = yield coreLro.createHttpPoller(lro, {
|
3684
|
-
restoreFrom: options === null || options ===
|
3685
|
-
intervalInMs: options === null || options ===
|
3684
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
3685
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
3686
3686
|
});
|
3687
3687
|
yield poller.poll();
|
3688
3688
|
return poller;
|
@@ -3697,7 +3697,7 @@ class PrivateEndpointConnectionsImpl {
|
|
3697
3697
|
* @param options The options parameters.
|
3698
3698
|
*/
|
3699
3699
|
beginDeleteAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
|
3700
|
-
return tslib.__awaiter(this,
|
3700
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
3701
3701
|
const poller = yield this.beginDelete(resourceGroupName, resourceName, privateEndpointConnectionName, options);
|
3702
3702
|
return poller.pollUntilDone();
|
3703
3703
|
});
|
@@ -3918,7 +3918,7 @@ class WorkspacesImpl {
|
|
3918
3918
|
return this;
|
3919
3919
|
},
|
3920
3920
|
byPage: (settings) => {
|
3921
|
-
if (settings === null || settings ===
|
3921
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
3922
3922
|
throw new Error("maxPageSize is not supported by this operation.");
|
3923
3923
|
}
|
3924
3924
|
return this.listBySubscriptionPagingPage(options, settings);
|
@@ -3928,7 +3928,7 @@ class WorkspacesImpl {
|
|
3928
3928
|
listBySubscriptionPagingPage(options, settings) {
|
3929
3929
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
3930
3930
|
let result;
|
3931
|
-
let continuationToken = settings === null || settings ===
|
3931
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
3932
3932
|
if (!continuationToken) {
|
3933
3933
|
result = yield tslib.__await(this._listBySubscription(options));
|
3934
3934
|
let page = result.value || [];
|
@@ -3980,7 +3980,7 @@ class WorkspacesImpl {
|
|
3980
3980
|
return this;
|
3981
3981
|
},
|
3982
3982
|
byPage: (settings) => {
|
3983
|
-
if (settings === null || settings ===
|
3983
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
3984
3984
|
throw new Error("maxPageSize is not supported by this operation.");
|
3985
3985
|
}
|
3986
3986
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
@@ -3990,7 +3990,7 @@ class WorkspacesImpl {
|
|
3990
3990
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
3991
3991
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
3992
3992
|
let result;
|
3993
|
-
let continuationToken = settings === null || settings ===
|
3993
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
3994
3994
|
if (!continuationToken) {
|
3995
3995
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
3996
3996
|
let page = result.value || [];
|
@@ -4059,17 +4059,17 @@ class WorkspacesImpl {
|
|
4059
4059
|
* @param options The options parameters.
|
4060
4060
|
*/
|
4061
4061
|
beginCreateOrUpdate(resourceGroupName, workspaceName, workspace, options) {
|
4062
|
-
return tslib.__awaiter(this,
|
4063
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
4062
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4063
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4064
4064
|
return this.client.sendOperationRequest(args, spec);
|
4065
4065
|
});
|
4066
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
4066
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4067
4067
|
var _a;
|
4068
4068
|
let currentRawResponse = undefined;
|
4069
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
4069
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
4070
4070
|
const callback = (rawResponse, flatResponse) => {
|
4071
4071
|
currentRawResponse = rawResponse;
|
4072
|
-
providedCallback === null || providedCallback ===
|
4072
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
4073
4073
|
};
|
4074
4074
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
4075
4075
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -4088,8 +4088,8 @@ class WorkspacesImpl {
|
|
4088
4088
|
spec: createOrUpdateOperationSpec$5,
|
4089
4089
|
});
|
4090
4090
|
const poller = yield coreLro.createHttpPoller(lro, {
|
4091
|
-
restoreFrom: options === null || options ===
|
4092
|
-
intervalInMs: options === null || options ===
|
4091
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
4092
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
4093
4093
|
});
|
4094
4094
|
yield poller.poll();
|
4095
4095
|
return poller;
|
@@ -4103,7 +4103,7 @@ class WorkspacesImpl {
|
|
4103
4103
|
* @param options The options parameters.
|
4104
4104
|
*/
|
4105
4105
|
beginCreateOrUpdateAndWait(resourceGroupName, workspaceName, workspace, options) {
|
4106
|
-
return tslib.__awaiter(this,
|
4106
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4107
4107
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, workspaceName, workspace, options);
|
4108
4108
|
return poller.pollUntilDone();
|
4109
4109
|
});
|
@@ -4116,17 +4116,17 @@ class WorkspacesImpl {
|
|
4116
4116
|
* @param options The options parameters.
|
4117
4117
|
*/
|
4118
4118
|
beginUpdate(resourceGroupName, workspaceName, workspacePatchResource, options) {
|
4119
|
-
return tslib.__awaiter(this,
|
4120
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
4119
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4120
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4121
4121
|
return this.client.sendOperationRequest(args, spec);
|
4122
4122
|
});
|
4123
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
4123
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4124
4124
|
var _a;
|
4125
4125
|
let currentRawResponse = undefined;
|
4126
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
4126
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
4127
4127
|
const callback = (rawResponse, flatResponse) => {
|
4128
4128
|
currentRawResponse = rawResponse;
|
4129
|
-
providedCallback === null || providedCallback ===
|
4129
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
4130
4130
|
};
|
4131
4131
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
4132
4132
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -4150,8 +4150,8 @@ class WorkspacesImpl {
|
|
4150
4150
|
spec: updateOperationSpec$3,
|
4151
4151
|
});
|
4152
4152
|
const poller = yield coreLro.createHttpPoller(lro, {
|
4153
|
-
restoreFrom: options === null || options ===
|
4154
|
-
intervalInMs: options === null || options ===
|
4153
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
4154
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
4155
4155
|
});
|
4156
4156
|
yield poller.poll();
|
4157
4157
|
return poller;
|
@@ -4165,7 +4165,7 @@ class WorkspacesImpl {
|
|
4165
4165
|
* @param options The options parameters.
|
4166
4166
|
*/
|
4167
4167
|
beginUpdateAndWait(resourceGroupName, workspaceName, workspacePatchResource, options) {
|
4168
|
-
return tslib.__awaiter(this,
|
4168
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4169
4169
|
const poller = yield this.beginUpdate(resourceGroupName, workspaceName, workspacePatchResource, options);
|
4170
4170
|
return poller.pollUntilDone();
|
4171
4171
|
});
|
@@ -4177,17 +4177,17 @@ class WorkspacesImpl {
|
|
4177
4177
|
* @param options The options parameters.
|
4178
4178
|
*/
|
4179
4179
|
beginDelete(resourceGroupName, workspaceName, options) {
|
4180
|
-
return tslib.__awaiter(this,
|
4181
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
4180
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4181
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4182
4182
|
return this.client.sendOperationRequest(args, spec);
|
4183
4183
|
});
|
4184
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
4184
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4185
4185
|
var _a;
|
4186
4186
|
let currentRawResponse = undefined;
|
4187
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
4187
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
4188
4188
|
const callback = (rawResponse, flatResponse) => {
|
4189
4189
|
currentRawResponse = rawResponse;
|
4190
|
-
providedCallback === null || providedCallback ===
|
4190
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
4191
4191
|
};
|
4192
4192
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
4193
4193
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -4206,8 +4206,8 @@ class WorkspacesImpl {
|
|
4206
4206
|
spec: deleteOperationSpec$5,
|
4207
4207
|
});
|
4208
4208
|
const poller = yield coreLro.createHttpPoller(lro, {
|
4209
|
-
restoreFrom: options === null || options ===
|
4210
|
-
intervalInMs: options === null || options ===
|
4209
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
4210
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
4211
4211
|
});
|
4212
4212
|
yield poller.poll();
|
4213
4213
|
return poller;
|
@@ -4220,7 +4220,7 @@ class WorkspacesImpl {
|
|
4220
4220
|
* @param options The options parameters.
|
4221
4221
|
*/
|
4222
4222
|
beginDeleteAndWait(resourceGroupName, workspaceName, options) {
|
4223
|
-
return tslib.__awaiter(this,
|
4223
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4224
4224
|
const poller = yield this.beginDelete(resourceGroupName, workspaceName, options);
|
4225
4225
|
return poller.pollUntilDone();
|
4226
4226
|
});
|
@@ -4461,7 +4461,7 @@ class DicomServicesImpl {
|
|
4461
4461
|
return this;
|
4462
4462
|
},
|
4463
4463
|
byPage: (settings) => {
|
4464
|
-
if (settings === null || settings ===
|
4464
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
4465
4465
|
throw new Error("maxPageSize is not supported by this operation.");
|
4466
4466
|
}
|
4467
4467
|
return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
|
@@ -4471,7 +4471,7 @@ class DicomServicesImpl {
|
|
4471
4471
|
listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
|
4472
4472
|
return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
|
4473
4473
|
let result;
|
4474
|
-
let continuationToken = settings === null || settings ===
|
4474
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
4475
4475
|
if (!continuationToken) {
|
4476
4476
|
result = yield tslib.__await(this._listByWorkspace(resourceGroupName, workspaceName, options));
|
4477
4477
|
let page = result.value || [];
|
@@ -4536,17 +4536,17 @@ class DicomServicesImpl {
|
|
4536
4536
|
* @param options The options parameters.
|
4537
4537
|
*/
|
4538
4538
|
beginCreateOrUpdate(resourceGroupName, workspaceName, dicomServiceName, dicomservice, options) {
|
4539
|
-
return tslib.__awaiter(this,
|
4540
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
4539
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4540
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4541
4541
|
return this.client.sendOperationRequest(args, spec);
|
4542
4542
|
});
|
4543
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
4543
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4544
4544
|
var _a;
|
4545
4545
|
let currentRawResponse = undefined;
|
4546
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
4546
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
4547
4547
|
const callback = (rawResponse, flatResponse) => {
|
4548
4548
|
currentRawResponse = rawResponse;
|
4549
|
-
providedCallback === null || providedCallback ===
|
4549
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
4550
4550
|
};
|
4551
4551
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
4552
4552
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -4571,8 +4571,8 @@ class DicomServicesImpl {
|
|
4571
4571
|
spec: createOrUpdateOperationSpec$4,
|
4572
4572
|
});
|
4573
4573
|
const poller = yield coreLro.createHttpPoller(lro, {
|
4574
|
-
restoreFrom: options === null || options ===
|
4575
|
-
intervalInMs: options === null || options ===
|
4574
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
4575
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
4576
4576
|
});
|
4577
4577
|
yield poller.poll();
|
4578
4578
|
return poller;
|
@@ -4587,7 +4587,7 @@ class DicomServicesImpl {
|
|
4587
4587
|
* @param options The options parameters.
|
4588
4588
|
*/
|
4589
4589
|
beginCreateOrUpdateAndWait(resourceGroupName, workspaceName, dicomServiceName, dicomservice, options) {
|
4590
|
-
return tslib.__awaiter(this,
|
4590
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4591
4591
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, workspaceName, dicomServiceName, dicomservice, options);
|
4592
4592
|
return poller.pollUntilDone();
|
4593
4593
|
});
|
@@ -4601,17 +4601,17 @@ class DicomServicesImpl {
|
|
4601
4601
|
* @param options The options parameters.
|
4602
4602
|
*/
|
4603
4603
|
beginUpdate(resourceGroupName, dicomServiceName, workspaceName, dicomservicePatchResource, options) {
|
4604
|
-
return tslib.__awaiter(this,
|
4605
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
4604
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4605
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4606
4606
|
return this.client.sendOperationRequest(args, spec);
|
4607
4607
|
});
|
4608
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
4608
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4609
4609
|
var _a;
|
4610
4610
|
let currentRawResponse = undefined;
|
4611
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
4611
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
4612
4612
|
const callback = (rawResponse, flatResponse) => {
|
4613
4613
|
currentRawResponse = rawResponse;
|
4614
|
-
providedCallback === null || providedCallback ===
|
4614
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
4615
4615
|
};
|
4616
4616
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
4617
4617
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -4636,8 +4636,8 @@ class DicomServicesImpl {
|
|
4636
4636
|
spec: updateOperationSpec$2,
|
4637
4637
|
});
|
4638
4638
|
const poller = yield coreLro.createHttpPoller(lro, {
|
4639
|
-
restoreFrom: options === null || options ===
|
4640
|
-
intervalInMs: options === null || options ===
|
4639
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
4640
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
4641
4641
|
});
|
4642
4642
|
yield poller.poll();
|
4643
4643
|
return poller;
|
@@ -4652,7 +4652,7 @@ class DicomServicesImpl {
|
|
4652
4652
|
* @param options The options parameters.
|
4653
4653
|
*/
|
4654
4654
|
beginUpdateAndWait(resourceGroupName, dicomServiceName, workspaceName, dicomservicePatchResource, options) {
|
4655
|
-
return tslib.__awaiter(this,
|
4655
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4656
4656
|
const poller = yield this.beginUpdate(resourceGroupName, dicomServiceName, workspaceName, dicomservicePatchResource, options);
|
4657
4657
|
return poller.pollUntilDone();
|
4658
4658
|
});
|
@@ -4665,17 +4665,17 @@ class DicomServicesImpl {
|
|
4665
4665
|
* @param options The options parameters.
|
4666
4666
|
*/
|
4667
4667
|
beginDelete(resourceGroupName, dicomServiceName, workspaceName, options) {
|
4668
|
-
return tslib.__awaiter(this,
|
4669
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
4668
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4669
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4670
4670
|
return this.client.sendOperationRequest(args, spec);
|
4671
4671
|
});
|
4672
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
4672
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4673
4673
|
var _a;
|
4674
4674
|
let currentRawResponse = undefined;
|
4675
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
4675
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
4676
4676
|
const callback = (rawResponse, flatResponse) => {
|
4677
4677
|
currentRawResponse = rawResponse;
|
4678
|
-
providedCallback === null || providedCallback ===
|
4678
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
4679
4679
|
};
|
4680
4680
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
4681
4681
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -4694,8 +4694,8 @@ class DicomServicesImpl {
|
|
4694
4694
|
spec: deleteOperationSpec$4,
|
4695
4695
|
});
|
4696
4696
|
const poller = yield coreLro.createHttpPoller(lro, {
|
4697
|
-
restoreFrom: options === null || options ===
|
4698
|
-
intervalInMs: options === null || options ===
|
4697
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
4698
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
4699
4699
|
});
|
4700
4700
|
yield poller.poll();
|
4701
4701
|
return poller;
|
@@ -4709,7 +4709,7 @@ class DicomServicesImpl {
|
|
4709
4709
|
* @param options The options parameters.
|
4710
4710
|
*/
|
4711
4711
|
beginDeleteAndWait(resourceGroupName, dicomServiceName, workspaceName, options) {
|
4712
|
-
return tslib.__awaiter(this,
|
4712
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4713
4713
|
const poller = yield this.beginDelete(resourceGroupName, dicomServiceName, workspaceName, options);
|
4714
4714
|
return poller.pollUntilDone();
|
4715
4715
|
});
|
@@ -4914,7 +4914,7 @@ class IotConnectorsImpl {
|
|
4914
4914
|
return this;
|
4915
4915
|
},
|
4916
4916
|
byPage: (settings) => {
|
4917
|
-
if (settings === null || settings ===
|
4917
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
4918
4918
|
throw new Error("maxPageSize is not supported by this operation.");
|
4919
4919
|
}
|
4920
4920
|
return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
|
@@ -4924,7 +4924,7 @@ class IotConnectorsImpl {
|
|
4924
4924
|
listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
|
4925
4925
|
return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
|
4926
4926
|
let result;
|
4927
|
-
let continuationToken = settings === null || settings ===
|
4927
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
4928
4928
|
if (!continuationToken) {
|
4929
4929
|
result = yield tslib.__await(this._listByWorkspace(resourceGroupName, workspaceName, options));
|
4930
4930
|
let page = result.value || [];
|
@@ -4989,17 +4989,17 @@ class IotConnectorsImpl {
|
|
4989
4989
|
* @param options The options parameters.
|
4990
4990
|
*/
|
4991
4991
|
beginCreateOrUpdate(resourceGroupName, workspaceName, iotConnectorName, iotConnector, options) {
|
4992
|
-
return tslib.__awaiter(this,
|
4993
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
4992
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4993
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4994
4994
|
return this.client.sendOperationRequest(args, spec);
|
4995
4995
|
});
|
4996
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
4996
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4997
4997
|
var _a;
|
4998
4998
|
let currentRawResponse = undefined;
|
4999
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
4999
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
5000
5000
|
const callback = (rawResponse, flatResponse) => {
|
5001
5001
|
currentRawResponse = rawResponse;
|
5002
|
-
providedCallback === null || providedCallback ===
|
5002
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
5003
5003
|
};
|
5004
5004
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
5005
5005
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -5024,8 +5024,8 @@ class IotConnectorsImpl {
|
|
5024
5024
|
spec: createOrUpdateOperationSpec$3,
|
5025
5025
|
});
|
5026
5026
|
const poller = yield coreLro.createHttpPoller(lro, {
|
5027
|
-
restoreFrom: options === null || options ===
|
5028
|
-
intervalInMs: options === null || options ===
|
5027
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
5028
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
5029
5029
|
});
|
5030
5030
|
yield poller.poll();
|
5031
5031
|
return poller;
|
@@ -5040,7 +5040,7 @@ class IotConnectorsImpl {
|
|
5040
5040
|
* @param options The options parameters.
|
5041
5041
|
*/
|
5042
5042
|
beginCreateOrUpdateAndWait(resourceGroupName, workspaceName, iotConnectorName, iotConnector, options) {
|
5043
|
-
return tslib.__awaiter(this,
|
5043
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5044
5044
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, workspaceName, iotConnectorName, iotConnector, options);
|
5045
5045
|
return poller.pollUntilDone();
|
5046
5046
|
});
|
@@ -5054,17 +5054,17 @@ class IotConnectorsImpl {
|
|
5054
5054
|
* @param options The options parameters.
|
5055
5055
|
*/
|
5056
5056
|
beginUpdate(resourceGroupName, iotConnectorName, workspaceName, iotConnectorPatchResource, options) {
|
5057
|
-
return tslib.__awaiter(this,
|
5058
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
5057
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5058
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5059
5059
|
return this.client.sendOperationRequest(args, spec);
|
5060
5060
|
});
|
5061
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
5061
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5062
5062
|
var _a;
|
5063
5063
|
let currentRawResponse = undefined;
|
5064
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
5064
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
5065
5065
|
const callback = (rawResponse, flatResponse) => {
|
5066
5066
|
currentRawResponse = rawResponse;
|
5067
|
-
providedCallback === null || providedCallback ===
|
5067
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
5068
5068
|
};
|
5069
5069
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
5070
5070
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -5089,8 +5089,8 @@ class IotConnectorsImpl {
|
|
5089
5089
|
spec: updateOperationSpec$1,
|
5090
5090
|
});
|
5091
5091
|
const poller = yield coreLro.createHttpPoller(lro, {
|
5092
|
-
restoreFrom: options === null || options ===
|
5093
|
-
intervalInMs: options === null || options ===
|
5092
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
5093
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
5094
5094
|
});
|
5095
5095
|
yield poller.poll();
|
5096
5096
|
return poller;
|
@@ -5105,7 +5105,7 @@ class IotConnectorsImpl {
|
|
5105
5105
|
* @param options The options parameters.
|
5106
5106
|
*/
|
5107
5107
|
beginUpdateAndWait(resourceGroupName, iotConnectorName, workspaceName, iotConnectorPatchResource, options) {
|
5108
|
-
return tslib.__awaiter(this,
|
5108
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5109
5109
|
const poller = yield this.beginUpdate(resourceGroupName, iotConnectorName, workspaceName, iotConnectorPatchResource, options);
|
5110
5110
|
return poller.pollUntilDone();
|
5111
5111
|
});
|
@@ -5118,17 +5118,17 @@ class IotConnectorsImpl {
|
|
5118
5118
|
* @param options The options parameters.
|
5119
5119
|
*/
|
5120
5120
|
beginDelete(resourceGroupName, iotConnectorName, workspaceName, options) {
|
5121
|
-
return tslib.__awaiter(this,
|
5122
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
5121
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5122
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5123
5123
|
return this.client.sendOperationRequest(args, spec);
|
5124
5124
|
});
|
5125
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
5125
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5126
5126
|
var _a;
|
5127
5127
|
let currentRawResponse = undefined;
|
5128
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
5128
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
5129
5129
|
const callback = (rawResponse, flatResponse) => {
|
5130
5130
|
currentRawResponse = rawResponse;
|
5131
|
-
providedCallback === null || providedCallback ===
|
5131
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
5132
5132
|
};
|
5133
5133
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
5134
5134
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -5147,8 +5147,8 @@ class IotConnectorsImpl {
|
|
5147
5147
|
spec: deleteOperationSpec$3,
|
5148
5148
|
});
|
5149
5149
|
const poller = yield coreLro.createHttpPoller(lro, {
|
5150
|
-
restoreFrom: options === null || options ===
|
5151
|
-
intervalInMs: options === null || options ===
|
5150
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
5151
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
5152
5152
|
});
|
5153
5153
|
yield poller.poll();
|
5154
5154
|
return poller;
|
@@ -5162,7 +5162,7 @@ class IotConnectorsImpl {
|
|
5162
5162
|
* @param options The options parameters.
|
5163
5163
|
*/
|
5164
5164
|
beginDeleteAndWait(resourceGroupName, iotConnectorName, workspaceName, options) {
|
5165
|
-
return tslib.__awaiter(this,
|
5165
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5166
5166
|
const poller = yield this.beginDelete(resourceGroupName, iotConnectorName, workspaceName, options);
|
5167
5167
|
return poller.pollUntilDone();
|
5168
5168
|
});
|
@@ -5368,7 +5368,7 @@ class FhirDestinationsImpl {
|
|
5368
5368
|
return this;
|
5369
5369
|
},
|
5370
5370
|
byPage: (settings) => {
|
5371
|
-
if (settings === null || settings ===
|
5371
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
5372
5372
|
throw new Error("maxPageSize is not supported by this operation.");
|
5373
5373
|
}
|
5374
5374
|
return this.listByIotConnectorPagingPage(resourceGroupName, workspaceName, iotConnectorName, options, settings);
|
@@ -5378,7 +5378,7 @@ class FhirDestinationsImpl {
|
|
5378
5378
|
listByIotConnectorPagingPage(resourceGroupName, workspaceName, iotConnectorName, options, settings) {
|
5379
5379
|
return tslib.__asyncGenerator(this, arguments, function* listByIotConnectorPagingPage_1() {
|
5380
5380
|
let result;
|
5381
|
-
let continuationToken = settings === null || settings ===
|
5381
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
5382
5382
|
if (!continuationToken) {
|
5383
5383
|
result = yield tslib.__await(this._listByIotConnector(resourceGroupName, workspaceName, iotConnectorName, options));
|
5384
5384
|
let page = result.value || [];
|
@@ -5528,17 +5528,17 @@ class IotConnectorFhirDestinationImpl {
|
|
5528
5528
|
* @param options The options parameters.
|
5529
5529
|
*/
|
5530
5530
|
beginCreateOrUpdate(resourceGroupName, workspaceName, iotConnectorName, fhirDestinationName, iotFhirDestination, options) {
|
5531
|
-
return tslib.__awaiter(this,
|
5532
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
5531
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5532
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5533
5533
|
return this.client.sendOperationRequest(args, spec);
|
5534
5534
|
});
|
5535
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
5535
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5536
5536
|
var _a;
|
5537
5537
|
let currentRawResponse = undefined;
|
5538
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
5538
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
5539
5539
|
const callback = (rawResponse, flatResponse) => {
|
5540
5540
|
currentRawResponse = rawResponse;
|
5541
|
-
providedCallback === null || providedCallback ===
|
5541
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
5542
5542
|
};
|
5543
5543
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
5544
5544
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -5564,8 +5564,8 @@ class IotConnectorFhirDestinationImpl {
|
|
5564
5564
|
spec: createOrUpdateOperationSpec$2,
|
5565
5565
|
});
|
5566
5566
|
const poller = yield coreLro.createHttpPoller(lro, {
|
5567
|
-
restoreFrom: options === null || options ===
|
5568
|
-
intervalInMs: options === null || options ===
|
5567
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
5568
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
5569
5569
|
});
|
5570
5570
|
yield poller.poll();
|
5571
5571
|
return poller;
|
@@ -5582,7 +5582,7 @@ class IotConnectorFhirDestinationImpl {
|
|
5582
5582
|
* @param options The options parameters.
|
5583
5583
|
*/
|
5584
5584
|
beginCreateOrUpdateAndWait(resourceGroupName, workspaceName, iotConnectorName, fhirDestinationName, iotFhirDestination, options) {
|
5585
|
-
return tslib.__awaiter(this,
|
5585
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5586
5586
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, workspaceName, iotConnectorName, fhirDestinationName, iotFhirDestination, options);
|
5587
5587
|
return poller.pollUntilDone();
|
5588
5588
|
});
|
@@ -5596,17 +5596,17 @@ class IotConnectorFhirDestinationImpl {
|
|
5596
5596
|
* @param options The options parameters.
|
5597
5597
|
*/
|
5598
5598
|
beginDelete(resourceGroupName, workspaceName, iotConnectorName, fhirDestinationName, options) {
|
5599
|
-
return tslib.__awaiter(this,
|
5600
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
5599
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5600
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5601
5601
|
return this.client.sendOperationRequest(args, spec);
|
5602
5602
|
});
|
5603
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
5603
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5604
5604
|
var _a;
|
5605
5605
|
let currentRawResponse = undefined;
|
5606
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
5606
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
5607
5607
|
const callback = (rawResponse, flatResponse) => {
|
5608
5608
|
currentRawResponse = rawResponse;
|
5609
|
-
providedCallback === null || providedCallback ===
|
5609
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
5610
5610
|
};
|
5611
5611
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
5612
5612
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -5631,8 +5631,8 @@ class IotConnectorFhirDestinationImpl {
|
|
5631
5631
|
spec: deleteOperationSpec$2,
|
5632
5632
|
});
|
5633
5633
|
const poller = yield coreLro.createHttpPoller(lro, {
|
5634
|
-
restoreFrom: options === null || options ===
|
5635
|
-
intervalInMs: options === null || options ===
|
5634
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
5635
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
5636
5636
|
});
|
5637
5637
|
yield poller.poll();
|
5638
5638
|
return poller;
|
@@ -5647,7 +5647,7 @@ class IotConnectorFhirDestinationImpl {
|
|
5647
5647
|
* @param options The options parameters.
|
5648
5648
|
*/
|
5649
5649
|
beginDeleteAndWait(resourceGroupName, workspaceName, iotConnectorName, fhirDestinationName, options) {
|
5650
|
-
return tslib.__awaiter(this,
|
5650
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5651
5651
|
const poller = yield this.beginDelete(resourceGroupName, workspaceName, iotConnectorName, fhirDestinationName, options);
|
5652
5652
|
return poller.pollUntilDone();
|
5653
5653
|
});
|
@@ -5770,7 +5770,7 @@ class FhirServicesImpl {
|
|
5770
5770
|
return this;
|
5771
5771
|
},
|
5772
5772
|
byPage: (settings) => {
|
5773
|
-
if (settings === null || settings ===
|
5773
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
5774
5774
|
throw new Error("maxPageSize is not supported by this operation.");
|
5775
5775
|
}
|
5776
5776
|
return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
|
@@ -5780,7 +5780,7 @@ class FhirServicesImpl {
|
|
5780
5780
|
listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
|
5781
5781
|
return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
|
5782
5782
|
let result;
|
5783
|
-
let continuationToken = settings === null || settings ===
|
5783
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
5784
5784
|
if (!continuationToken) {
|
5785
5785
|
result = yield tslib.__await(this._listByWorkspace(resourceGroupName, workspaceName, options));
|
5786
5786
|
let page = result.value || [];
|
@@ -5845,17 +5845,17 @@ class FhirServicesImpl {
|
|
5845
5845
|
* @param options The options parameters.
|
5846
5846
|
*/
|
5847
5847
|
beginCreateOrUpdate(resourceGroupName, workspaceName, fhirServiceName, fhirservice, options) {
|
5848
|
-
return tslib.__awaiter(this,
|
5849
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
5848
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5849
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5850
5850
|
return this.client.sendOperationRequest(args, spec);
|
5851
5851
|
});
|
5852
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
5852
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5853
5853
|
var _a;
|
5854
5854
|
let currentRawResponse = undefined;
|
5855
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
5855
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
5856
5856
|
const callback = (rawResponse, flatResponse) => {
|
5857
5857
|
currentRawResponse = rawResponse;
|
5858
|
-
providedCallback === null || providedCallback ===
|
5858
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
5859
5859
|
};
|
5860
5860
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
5861
5861
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -5880,8 +5880,8 @@ class FhirServicesImpl {
|
|
5880
5880
|
spec: createOrUpdateOperationSpec$1,
|
5881
5881
|
});
|
5882
5882
|
const poller = yield coreLro.createHttpPoller(lro, {
|
5883
|
-
restoreFrom: options === null || options ===
|
5884
|
-
intervalInMs: options === null || options ===
|
5883
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
5884
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
5885
5885
|
});
|
5886
5886
|
yield poller.poll();
|
5887
5887
|
return poller;
|
@@ -5896,7 +5896,7 @@ class FhirServicesImpl {
|
|
5896
5896
|
* @param options The options parameters.
|
5897
5897
|
*/
|
5898
5898
|
beginCreateOrUpdateAndWait(resourceGroupName, workspaceName, fhirServiceName, fhirservice, options) {
|
5899
|
-
return tslib.__awaiter(this,
|
5899
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5900
5900
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, workspaceName, fhirServiceName, fhirservice, options);
|
5901
5901
|
return poller.pollUntilDone();
|
5902
5902
|
});
|
@@ -5910,17 +5910,17 @@ class FhirServicesImpl {
|
|
5910
5910
|
* @param options The options parameters.
|
5911
5911
|
*/
|
5912
5912
|
beginUpdate(resourceGroupName, fhirServiceName, workspaceName, fhirservicePatchResource, options) {
|
5913
|
-
return tslib.__awaiter(this,
|
5914
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
5913
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5914
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5915
5915
|
return this.client.sendOperationRequest(args, spec);
|
5916
5916
|
});
|
5917
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
5917
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5918
5918
|
var _a;
|
5919
5919
|
let currentRawResponse = undefined;
|
5920
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
5920
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
5921
5921
|
const callback = (rawResponse, flatResponse) => {
|
5922
5922
|
currentRawResponse = rawResponse;
|
5923
|
-
providedCallback === null || providedCallback ===
|
5923
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
5924
5924
|
};
|
5925
5925
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
5926
5926
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -5945,8 +5945,8 @@ class FhirServicesImpl {
|
|
5945
5945
|
spec: updateOperationSpec,
|
5946
5946
|
});
|
5947
5947
|
const poller = yield coreLro.createHttpPoller(lro, {
|
5948
|
-
restoreFrom: options === null || options ===
|
5949
|
-
intervalInMs: options === null || options ===
|
5948
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
5949
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
5950
5950
|
});
|
5951
5951
|
yield poller.poll();
|
5952
5952
|
return poller;
|
@@ -5961,7 +5961,7 @@ class FhirServicesImpl {
|
|
5961
5961
|
* @param options The options parameters.
|
5962
5962
|
*/
|
5963
5963
|
beginUpdateAndWait(resourceGroupName, fhirServiceName, workspaceName, fhirservicePatchResource, options) {
|
5964
|
-
return tslib.__awaiter(this,
|
5964
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5965
5965
|
const poller = yield this.beginUpdate(resourceGroupName, fhirServiceName, workspaceName, fhirservicePatchResource, options);
|
5966
5966
|
return poller.pollUntilDone();
|
5967
5967
|
});
|
@@ -5974,17 +5974,17 @@ class FhirServicesImpl {
|
|
5974
5974
|
* @param options The options parameters.
|
5975
5975
|
*/
|
5976
5976
|
beginDelete(resourceGroupName, fhirServiceName, workspaceName, options) {
|
5977
|
-
return tslib.__awaiter(this,
|
5978
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
5977
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
5978
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5979
5979
|
return this.client.sendOperationRequest(args, spec);
|
5980
5980
|
});
|
5981
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
5981
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
5982
5982
|
var _a;
|
5983
5983
|
let currentRawResponse = undefined;
|
5984
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
5984
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
5985
5985
|
const callback = (rawResponse, flatResponse) => {
|
5986
5986
|
currentRawResponse = rawResponse;
|
5987
|
-
providedCallback === null || providedCallback ===
|
5987
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
5988
5988
|
};
|
5989
5989
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
5990
5990
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -6003,8 +6003,8 @@ class FhirServicesImpl {
|
|
6003
6003
|
spec: deleteOperationSpec$1,
|
6004
6004
|
});
|
6005
6005
|
const poller = yield coreLro.createHttpPoller(lro, {
|
6006
|
-
restoreFrom: options === null || options ===
|
6007
|
-
intervalInMs: options === null || options ===
|
6006
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
6007
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
6008
6008
|
});
|
6009
6009
|
yield poller.poll();
|
6010
6010
|
return poller;
|
@@ -6018,7 +6018,7 @@ class FhirServicesImpl {
|
|
6018
6018
|
* @param options The options parameters.
|
6019
6019
|
*/
|
6020
6020
|
beginDeleteAndWait(resourceGroupName, fhirServiceName, workspaceName, options) {
|
6021
|
-
return tslib.__awaiter(this,
|
6021
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6022
6022
|
const poller = yield this.beginDelete(resourceGroupName, fhirServiceName, workspaceName, options);
|
6023
6023
|
return poller.pollUntilDone();
|
6024
6024
|
});
|
@@ -6223,7 +6223,7 @@ class WorkspacePrivateEndpointConnectionsImpl {
|
|
6223
6223
|
return this;
|
6224
6224
|
},
|
6225
6225
|
byPage: (settings) => {
|
6226
|
-
if (settings === null || settings ===
|
6226
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
6227
6227
|
throw new Error("maxPageSize is not supported by this operation.");
|
6228
6228
|
}
|
6229
6229
|
return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
|
@@ -6292,17 +6292,17 @@ class WorkspacePrivateEndpointConnectionsImpl {
|
|
6292
6292
|
* @param options The options parameters.
|
6293
6293
|
*/
|
6294
6294
|
beginCreateOrUpdate(resourceGroupName, workspaceName, privateEndpointConnectionName, properties, options) {
|
6295
|
-
return tslib.__awaiter(this,
|
6296
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
6295
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6296
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6297
6297
|
return this.client.sendOperationRequest(args, spec);
|
6298
6298
|
});
|
6299
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
6299
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6300
6300
|
var _a;
|
6301
6301
|
let currentRawResponse = undefined;
|
6302
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
6302
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
6303
6303
|
const callback = (rawResponse, flatResponse) => {
|
6304
6304
|
currentRawResponse = rawResponse;
|
6305
|
-
providedCallback === null || providedCallback ===
|
6305
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
6306
6306
|
};
|
6307
6307
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
6308
6308
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -6327,8 +6327,8 @@ class WorkspacePrivateEndpointConnectionsImpl {
|
|
6327
6327
|
spec: createOrUpdateOperationSpec,
|
6328
6328
|
});
|
6329
6329
|
const poller = yield coreLro.createHttpPoller(lro, {
|
6330
|
-
restoreFrom: options === null || options ===
|
6331
|
-
intervalInMs: options === null || options ===
|
6330
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
6331
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
6332
6332
|
});
|
6333
6333
|
yield poller.poll();
|
6334
6334
|
return poller;
|
@@ -6344,7 +6344,7 @@ class WorkspacePrivateEndpointConnectionsImpl {
|
|
6344
6344
|
* @param options The options parameters.
|
6345
6345
|
*/
|
6346
6346
|
beginCreateOrUpdateAndWait(resourceGroupName, workspaceName, privateEndpointConnectionName, properties, options) {
|
6347
|
-
return tslib.__awaiter(this,
|
6347
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6348
6348
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, workspaceName, privateEndpointConnectionName, properties, options);
|
6349
6349
|
return poller.pollUntilDone();
|
6350
6350
|
});
|
@@ -6358,17 +6358,17 @@ class WorkspacePrivateEndpointConnectionsImpl {
|
|
6358
6358
|
* @param options The options parameters.
|
6359
6359
|
*/
|
6360
6360
|
beginDelete(resourceGroupName, workspaceName, privateEndpointConnectionName, options) {
|
6361
|
-
return tslib.__awaiter(this,
|
6362
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
6361
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6362
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6363
6363
|
return this.client.sendOperationRequest(args, spec);
|
6364
6364
|
});
|
6365
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
6365
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6366
6366
|
var _a;
|
6367
6367
|
let currentRawResponse = undefined;
|
6368
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
6368
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
6369
6369
|
const callback = (rawResponse, flatResponse) => {
|
6370
6370
|
currentRawResponse = rawResponse;
|
6371
|
-
providedCallback === null || providedCallback ===
|
6371
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
6372
6372
|
};
|
6373
6373
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
6374
6374
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -6392,8 +6392,8 @@ class WorkspacePrivateEndpointConnectionsImpl {
|
|
6392
6392
|
spec: deleteOperationSpec,
|
6393
6393
|
});
|
6394
6394
|
const poller = yield coreLro.createHttpPoller(lro, {
|
6395
|
-
restoreFrom: options === null || options ===
|
6396
|
-
intervalInMs: options === null || options ===
|
6395
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
6396
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
6397
6397
|
});
|
6398
6398
|
yield poller.poll();
|
6399
6399
|
return poller;
|
@@ -6408,7 +6408,7 @@ class WorkspacePrivateEndpointConnectionsImpl {
|
|
6408
6408
|
* @param options The options parameters.
|
6409
6409
|
*/
|
6410
6410
|
beginDeleteAndWait(resourceGroupName, workspaceName, privateEndpointConnectionName, options) {
|
6411
|
-
return tslib.__awaiter(this,
|
6411
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6412
6412
|
const poller = yield this.beginDelete(resourceGroupName, workspaceName, privateEndpointConnectionName, options);
|
6413
6413
|
return poller.pollUntilDone();
|
6414
6414
|
});
|
@@ -6549,7 +6549,7 @@ class WorkspacePrivateLinkResourcesImpl {
|
|
6549
6549
|
return this;
|
6550
6550
|
},
|
6551
6551
|
byPage: (settings) => {
|
6552
|
-
if (settings === null || settings ===
|
6552
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
6553
6553
|
throw new Error("maxPageSize is not supported by this operation.");
|
6554
6554
|
}
|
6555
6555
|
return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
|
@@ -6680,7 +6680,7 @@ class OperationsImpl {
|
|
6680
6680
|
return this;
|
6681
6681
|
},
|
6682
6682
|
byPage: (settings) => {
|
6683
|
-
if (settings === null || settings ===
|
6683
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
6684
6684
|
throw new Error("maxPageSize is not supported by this operation.");
|
6685
6685
|
}
|
6686
6686
|
return this.listPagingPage(options, settings);
|
@@ -6690,7 +6690,7 @@ class OperationsImpl {
|
|
6690
6690
|
listPagingPage(options, settings) {
|
6691
6691
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
6692
6692
|
let result;
|
6693
|
-
let continuationToken = settings === null || settings ===
|
6693
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
6694
6694
|
if (!continuationToken) {
|
6695
6695
|
result = yield tslib.__await(this._list(options));
|
6696
6696
|
let page = result.value || [];
|
@@ -6863,10 +6863,10 @@ class HealthcareApisManagementClient extends coreClient__namespace.ServiceClient
|
|
6863
6863
|
: `${packageDetails}`;
|
6864
6864
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
6865
6865
|
userAgentPrefix,
|
6866
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
6866
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
6867
6867
|
super(optionsWithDefaults);
|
6868
6868
|
let bearerTokenAuthenticationPolicyFound = false;
|
6869
|
-
if ((options === null || options ===
|
6869
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
6870
6870
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
6871
6871
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
6872
6872
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
@@ -6880,7 +6880,7 @@ class HealthcareApisManagementClient extends coreClient__namespace.ServiceClient
|
|
6880
6880
|
});
|
6881
6881
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
6882
6882
|
credential: credentials,
|
6883
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
6883
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
6884
6884
|
challengeCallbacks: {
|
6885
6885
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
6886
6886
|
},
|
@@ -6915,7 +6915,7 @@ class HealthcareApisManagementClient extends coreClient__namespace.ServiceClient
|
|
6915
6915
|
const apiVersionPolicy = {
|
6916
6916
|
name: "CustomApiVersionPolicy",
|
6917
6917
|
sendRequest(request, next) {
|
6918
|
-
return tslib.__awaiter(this,
|
6918
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6919
6919
|
const param = request.url.split("?");
|
6920
6920
|
if (param.length > 1) {
|
6921
6921
|
const newParams = param[1].split("&").map((item) => {
|