@azure/arm-cognitiveservices 7.3.0-alpha.20221102.2 → 7.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/index.js +199 -70
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/cognitiveServicesManagementClient.d.ts.map +1 -1
- package/dist-esm/src/cognitiveServicesManagementClient.js +4 -7
- package/dist-esm/src/cognitiveServicesManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/operations/accounts.d.ts.map +1 -1
- package/dist-esm/src/operations/accounts.js +55 -21
- package/dist-esm/src/operations/accounts.js.map +1 -1
- package/dist-esm/src/operations/commitmentPlans.d.ts.map +1 -1
- package/dist-esm/src/operations/commitmentPlans.js +19 -7
- package/dist-esm/src/operations/commitmentPlans.js.map +1 -1
- package/dist-esm/src/operations/commitmentTiers.d.ts.map +1 -1
- package/dist-esm/src/operations/commitmentTiers.js +19 -7
- package/dist-esm/src/operations/commitmentTiers.js.map +1 -1
- package/dist-esm/src/operations/deletedAccounts.d.ts.map +1 -1
- package/dist-esm/src/operations/deletedAccounts.js +19 -7
- package/dist-esm/src/operations/deletedAccounts.js.map +1 -1
- package/dist-esm/src/operations/deployments.d.ts.map +1 -1
- package/dist-esm/src/operations/deployments.js +19 -7
- package/dist-esm/src/operations/deployments.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -7
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/resourceSkus.d.ts.map +1 -1
- package/dist-esm/src/operations/resourceSkus.js +19 -7
- package/dist-esm/src/operations/resourceSkus.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/package.json +5 -5
- package/review/arm-cognitiveservices.api.md +3 -0
- package/src/cognitiveServicesManagementClient.ts +5 -6
- package/src/index.ts +1 -0
- package/src/operations/accounts.ts +67 -29
- package/src/operations/commitmentPlans.ts +26 -8
- package/src/operations/commitmentTiers.ts +21 -8
- package/src/operations/deletedAccounts.ts +22 -9
- package/src/operations/deployments.ts +26 -8
- package/src/operations/operations.ts +21 -8
- package/src/operations/resourceSkus.ts +21 -8
- package/src/pagingHelper.ts +39 -0
- package/types/arm-cognitiveservices.d.ts +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
## 7.3.1 (2022-11-21)
|
|
4
|
+
|
|
5
|
+
**Features**
|
|
6
|
+
|
|
7
|
+
- Exposes `getContinuationToken` helper function to extract continuation token
|
|
8
|
+
|
|
9
|
+
**Bugs Fixed**
|
|
10
|
+
|
|
11
|
+
- A series of small bug fixs relevant to authentication and apiVersion policy
|
|
12
|
+
|
|
3
13
|
## 7.3.0 (2022-10-31)
|
|
4
14
|
|
|
5
15
|
**Features**
|
package/dist/index.js
CHANGED
|
@@ -28,6 +28,38 @@ function _interopNamespace(e) {
|
|
|
28
28
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
29
|
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
30
|
|
|
31
|
+
/*
|
|
32
|
+
* Copyright (c) Microsoft Corporation.
|
|
33
|
+
* Licensed under the MIT License.
|
|
34
|
+
*
|
|
35
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
+
*/
|
|
38
|
+
const pageMap = new WeakMap();
|
|
39
|
+
/**
|
|
40
|
+
* Given a result page from a pageable operation, returns a
|
|
41
|
+
* continuation token that can be used to begin paging from
|
|
42
|
+
* that point later.
|
|
43
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
44
|
+
* @returns The continuation token that can be passed into byPage().
|
|
45
|
+
*/
|
|
46
|
+
function getContinuationToken(page) {
|
|
47
|
+
var _a;
|
|
48
|
+
if (typeof page !== "object" || page === null) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
+
}
|
|
53
|
+
function setContinuationToken(page, continuationToken) {
|
|
54
|
+
var _a;
|
|
55
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
+
pageInfo.continuationToken = continuationToken;
|
|
60
|
+
pageMap.set(page, pageInfo);
|
|
61
|
+
}
|
|
62
|
+
|
|
31
63
|
/*
|
|
32
64
|
* Copyright (c) Microsoft Corporation.
|
|
33
65
|
* Licensed under the MIT License.
|
|
@@ -2811,20 +2843,31 @@ class AccountsImpl {
|
|
|
2811
2843
|
[Symbol.asyncIterator]() {
|
|
2812
2844
|
return this;
|
|
2813
2845
|
},
|
|
2814
|
-
byPage: () => {
|
|
2815
|
-
|
|
2846
|
+
byPage: (settings) => {
|
|
2847
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2848
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2849
|
+
}
|
|
2850
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
2816
2851
|
}
|
|
2817
2852
|
};
|
|
2818
2853
|
}
|
|
2819
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
2854
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
2820
2855
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2821
|
-
let result
|
|
2822
|
-
|
|
2823
|
-
|
|
2856
|
+
let result;
|
|
2857
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2858
|
+
if (!continuationToken) {
|
|
2859
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2860
|
+
let page = result.value || [];
|
|
2861
|
+
continuationToken = result.nextLink;
|
|
2862
|
+
setContinuationToken(page, continuationToken);
|
|
2863
|
+
yield yield tslib.__await(page);
|
|
2864
|
+
}
|
|
2824
2865
|
while (continuationToken) {
|
|
2825
2866
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
2826
2867
|
continuationToken = result.nextLink;
|
|
2827
|
-
|
|
2868
|
+
let page = result.value || [];
|
|
2869
|
+
setContinuationToken(page, continuationToken);
|
|
2870
|
+
yield yield tslib.__await(page);
|
|
2828
2871
|
}
|
|
2829
2872
|
});
|
|
2830
2873
|
}
|
|
@@ -2859,20 +2902,31 @@ class AccountsImpl {
|
|
|
2859
2902
|
[Symbol.asyncIterator]() {
|
|
2860
2903
|
return this;
|
|
2861
2904
|
},
|
|
2862
|
-
byPage: () => {
|
|
2863
|
-
|
|
2905
|
+
byPage: (settings) => {
|
|
2906
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2907
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2908
|
+
}
|
|
2909
|
+
return this.listPagingPage(options, settings);
|
|
2864
2910
|
}
|
|
2865
2911
|
};
|
|
2866
2912
|
}
|
|
2867
|
-
listPagingPage(options) {
|
|
2913
|
+
listPagingPage(options, settings) {
|
|
2868
2914
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2869
|
-
let result
|
|
2870
|
-
|
|
2871
|
-
|
|
2915
|
+
let result;
|
|
2916
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2917
|
+
if (!continuationToken) {
|
|
2918
|
+
result = yield tslib.__await(this._list(options));
|
|
2919
|
+
let page = result.value || [];
|
|
2920
|
+
continuationToken = result.nextLink;
|
|
2921
|
+
setContinuationToken(page, continuationToken);
|
|
2922
|
+
yield yield tslib.__await(page);
|
|
2923
|
+
}
|
|
2872
2924
|
while (continuationToken) {
|
|
2873
2925
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2874
2926
|
continuationToken = result.nextLink;
|
|
2875
|
-
|
|
2927
|
+
let page = result.value || [];
|
|
2928
|
+
setContinuationToken(page, continuationToken);
|
|
2929
|
+
yield yield tslib.__await(page);
|
|
2876
2930
|
}
|
|
2877
2931
|
});
|
|
2878
2932
|
}
|
|
@@ -2909,20 +2963,31 @@ class AccountsImpl {
|
|
|
2909
2963
|
[Symbol.asyncIterator]() {
|
|
2910
2964
|
return this;
|
|
2911
2965
|
},
|
|
2912
|
-
byPage: () => {
|
|
2913
|
-
|
|
2966
|
+
byPage: (settings) => {
|
|
2967
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2968
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2969
|
+
}
|
|
2970
|
+
return this.listModelsPagingPage(resourceGroupName, accountName, options, settings);
|
|
2914
2971
|
}
|
|
2915
2972
|
};
|
|
2916
2973
|
}
|
|
2917
|
-
listModelsPagingPage(resourceGroupName, accountName, options) {
|
|
2974
|
+
listModelsPagingPage(resourceGroupName, accountName, options, settings) {
|
|
2918
2975
|
return tslib.__asyncGenerator(this, arguments, function* listModelsPagingPage_1() {
|
|
2919
|
-
let result
|
|
2920
|
-
|
|
2921
|
-
|
|
2976
|
+
let result;
|
|
2977
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2978
|
+
if (!continuationToken) {
|
|
2979
|
+
result = yield tslib.__await(this._listModels(resourceGroupName, accountName, options));
|
|
2980
|
+
let page = result.value || [];
|
|
2981
|
+
continuationToken = result.nextLink;
|
|
2982
|
+
setContinuationToken(page, continuationToken);
|
|
2983
|
+
yield yield tslib.__await(page);
|
|
2984
|
+
}
|
|
2922
2985
|
while (continuationToken) {
|
|
2923
2986
|
result = yield tslib.__await(this._listModelsNext(resourceGroupName, accountName, continuationToken, options));
|
|
2924
2987
|
continuationToken = result.nextLink;
|
|
2925
|
-
|
|
2988
|
+
let page = result.value || [];
|
|
2989
|
+
setContinuationToken(page, continuationToken);
|
|
2990
|
+
yield yield tslib.__await(page);
|
|
2926
2991
|
}
|
|
2927
2992
|
});
|
|
2928
2993
|
}
|
|
@@ -3550,20 +3615,31 @@ class DeletedAccountsImpl {
|
|
|
3550
3615
|
[Symbol.asyncIterator]() {
|
|
3551
3616
|
return this;
|
|
3552
3617
|
},
|
|
3553
|
-
byPage: () => {
|
|
3554
|
-
|
|
3618
|
+
byPage: (settings) => {
|
|
3619
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3620
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3621
|
+
}
|
|
3622
|
+
return this.listPagingPage(options, settings);
|
|
3555
3623
|
}
|
|
3556
3624
|
};
|
|
3557
3625
|
}
|
|
3558
|
-
listPagingPage(options) {
|
|
3626
|
+
listPagingPage(options, settings) {
|
|
3559
3627
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3560
|
-
let result
|
|
3561
|
-
|
|
3562
|
-
|
|
3628
|
+
let result;
|
|
3629
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3630
|
+
if (!continuationToken) {
|
|
3631
|
+
result = yield tslib.__await(this._list(options));
|
|
3632
|
+
let page = result.value || [];
|
|
3633
|
+
continuationToken = result.nextLink;
|
|
3634
|
+
setContinuationToken(page, continuationToken);
|
|
3635
|
+
yield yield tslib.__await(page);
|
|
3636
|
+
}
|
|
3563
3637
|
while (continuationToken) {
|
|
3564
3638
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
3565
3639
|
continuationToken = result.nextLink;
|
|
3566
|
-
|
|
3640
|
+
let page = result.value || [];
|
|
3641
|
+
setContinuationToken(page, continuationToken);
|
|
3642
|
+
yield yield tslib.__await(page);
|
|
3567
3643
|
}
|
|
3568
3644
|
});
|
|
3569
3645
|
}
|
|
@@ -3778,20 +3854,31 @@ class ResourceSkusImpl {
|
|
|
3778
3854
|
[Symbol.asyncIterator]() {
|
|
3779
3855
|
return this;
|
|
3780
3856
|
},
|
|
3781
|
-
byPage: () => {
|
|
3782
|
-
|
|
3857
|
+
byPage: (settings) => {
|
|
3858
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3859
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3860
|
+
}
|
|
3861
|
+
return this.listPagingPage(options, settings);
|
|
3783
3862
|
}
|
|
3784
3863
|
};
|
|
3785
3864
|
}
|
|
3786
|
-
listPagingPage(options) {
|
|
3865
|
+
listPagingPage(options, settings) {
|
|
3787
3866
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3788
|
-
let result
|
|
3789
|
-
|
|
3790
|
-
|
|
3867
|
+
let result;
|
|
3868
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3869
|
+
if (!continuationToken) {
|
|
3870
|
+
result = yield tslib.__await(this._list(options));
|
|
3871
|
+
let page = result.value || [];
|
|
3872
|
+
continuationToken = result.nextLink;
|
|
3873
|
+
setContinuationToken(page, continuationToken);
|
|
3874
|
+
yield yield tslib.__await(page);
|
|
3875
|
+
}
|
|
3791
3876
|
while (continuationToken) {
|
|
3792
3877
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
3793
3878
|
continuationToken = result.nextLink;
|
|
3794
|
-
|
|
3879
|
+
let page = result.value || [];
|
|
3880
|
+
setContinuationToken(page, continuationToken);
|
|
3881
|
+
yield yield tslib.__await(page);
|
|
3795
3882
|
}
|
|
3796
3883
|
});
|
|
3797
3884
|
}
|
|
@@ -3898,20 +3985,31 @@ class OperationsImpl {
|
|
|
3898
3985
|
[Symbol.asyncIterator]() {
|
|
3899
3986
|
return this;
|
|
3900
3987
|
},
|
|
3901
|
-
byPage: () => {
|
|
3902
|
-
|
|
3988
|
+
byPage: (settings) => {
|
|
3989
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3990
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3991
|
+
}
|
|
3992
|
+
return this.listPagingPage(options, settings);
|
|
3903
3993
|
}
|
|
3904
3994
|
};
|
|
3905
3995
|
}
|
|
3906
|
-
listPagingPage(options) {
|
|
3996
|
+
listPagingPage(options, settings) {
|
|
3907
3997
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3908
|
-
let result
|
|
3909
|
-
|
|
3910
|
-
|
|
3998
|
+
let result;
|
|
3999
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4000
|
+
if (!continuationToken) {
|
|
4001
|
+
result = yield tslib.__await(this._list(options));
|
|
4002
|
+
let page = result.value || [];
|
|
4003
|
+
continuationToken = result.nextLink;
|
|
4004
|
+
setContinuationToken(page, continuationToken);
|
|
4005
|
+
yield yield tslib.__await(page);
|
|
4006
|
+
}
|
|
3911
4007
|
while (continuationToken) {
|
|
3912
4008
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
3913
4009
|
continuationToken = result.nextLink;
|
|
3914
|
-
|
|
4010
|
+
let page = result.value || [];
|
|
4011
|
+
setContinuationToken(page, continuationToken);
|
|
4012
|
+
yield yield tslib.__await(page);
|
|
3915
4013
|
}
|
|
3916
4014
|
});
|
|
3917
4015
|
}
|
|
@@ -4015,20 +4113,31 @@ class CommitmentTiersImpl {
|
|
|
4015
4113
|
[Symbol.asyncIterator]() {
|
|
4016
4114
|
return this;
|
|
4017
4115
|
},
|
|
4018
|
-
byPage: () => {
|
|
4019
|
-
|
|
4116
|
+
byPage: (settings) => {
|
|
4117
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4118
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4119
|
+
}
|
|
4120
|
+
return this.listPagingPage(location, options, settings);
|
|
4020
4121
|
}
|
|
4021
4122
|
};
|
|
4022
4123
|
}
|
|
4023
|
-
listPagingPage(location, options) {
|
|
4124
|
+
listPagingPage(location, options, settings) {
|
|
4024
4125
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4025
|
-
let result
|
|
4026
|
-
|
|
4027
|
-
|
|
4126
|
+
let result;
|
|
4127
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4128
|
+
if (!continuationToken) {
|
|
4129
|
+
result = yield tslib.__await(this._list(location, options));
|
|
4130
|
+
let page = result.value || [];
|
|
4131
|
+
continuationToken = result.nextLink;
|
|
4132
|
+
setContinuationToken(page, continuationToken);
|
|
4133
|
+
yield yield tslib.__await(page);
|
|
4134
|
+
}
|
|
4028
4135
|
while (continuationToken) {
|
|
4029
4136
|
result = yield tslib.__await(this._listNext(location, continuationToken, options));
|
|
4030
4137
|
continuationToken = result.nextLink;
|
|
4031
|
-
|
|
4138
|
+
let page = result.value || [];
|
|
4139
|
+
setContinuationToken(page, continuationToken);
|
|
4140
|
+
yield yield tslib.__await(page);
|
|
4032
4141
|
}
|
|
4033
4142
|
});
|
|
4034
4143
|
}
|
|
@@ -4463,20 +4572,31 @@ class DeploymentsImpl {
|
|
|
4463
4572
|
[Symbol.asyncIterator]() {
|
|
4464
4573
|
return this;
|
|
4465
4574
|
},
|
|
4466
|
-
byPage: () => {
|
|
4467
|
-
|
|
4575
|
+
byPage: (settings) => {
|
|
4576
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4577
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4578
|
+
}
|
|
4579
|
+
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
4468
4580
|
}
|
|
4469
4581
|
};
|
|
4470
4582
|
}
|
|
4471
|
-
listPagingPage(resourceGroupName, accountName, options) {
|
|
4583
|
+
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
4472
4584
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4473
|
-
let result
|
|
4474
|
-
|
|
4475
|
-
|
|
4585
|
+
let result;
|
|
4586
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4587
|
+
if (!continuationToken) {
|
|
4588
|
+
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
4589
|
+
let page = result.value || [];
|
|
4590
|
+
continuationToken = result.nextLink;
|
|
4591
|
+
setContinuationToken(page, continuationToken);
|
|
4592
|
+
yield yield tslib.__await(page);
|
|
4593
|
+
}
|
|
4476
4594
|
while (continuationToken) {
|
|
4477
4595
|
result = yield tslib.__await(this._listNext(resourceGroupName, accountName, continuationToken, options));
|
|
4478
4596
|
continuationToken = result.nextLink;
|
|
4479
|
-
|
|
4597
|
+
let page = result.value || [];
|
|
4598
|
+
setContinuationToken(page, continuationToken);
|
|
4599
|
+
yield yield tslib.__await(page);
|
|
4480
4600
|
}
|
|
4481
4601
|
});
|
|
4482
4602
|
}
|
|
@@ -4792,20 +4912,31 @@ class CommitmentPlansImpl {
|
|
|
4792
4912
|
[Symbol.asyncIterator]() {
|
|
4793
4913
|
return this;
|
|
4794
4914
|
},
|
|
4795
|
-
byPage: () => {
|
|
4796
|
-
|
|
4915
|
+
byPage: (settings) => {
|
|
4916
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4917
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4918
|
+
}
|
|
4919
|
+
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
4797
4920
|
}
|
|
4798
4921
|
};
|
|
4799
4922
|
}
|
|
4800
|
-
listPagingPage(resourceGroupName, accountName, options) {
|
|
4923
|
+
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
4801
4924
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4802
|
-
let result
|
|
4803
|
-
|
|
4804
|
-
|
|
4925
|
+
let result;
|
|
4926
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4927
|
+
if (!continuationToken) {
|
|
4928
|
+
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
4929
|
+
let page = result.value || [];
|
|
4930
|
+
continuationToken = result.nextLink;
|
|
4931
|
+
setContinuationToken(page, continuationToken);
|
|
4932
|
+
yield yield tslib.__await(page);
|
|
4933
|
+
}
|
|
4805
4934
|
while (continuationToken) {
|
|
4806
4935
|
result = yield tslib.__await(this._listNext(resourceGroupName, accountName, continuationToken, options));
|
|
4807
4936
|
continuationToken = result.nextLink;
|
|
4808
|
-
|
|
4937
|
+
let page = result.value || [];
|
|
4938
|
+
setContinuationToken(page, continuationToken);
|
|
4939
|
+
yield yield tslib.__await(page);
|
|
4809
4940
|
}
|
|
4810
4941
|
});
|
|
4811
4942
|
}
|
|
@@ -5064,7 +5195,7 @@ class CognitiveServicesManagementClient extends coreClient__namespace.ServiceCli
|
|
|
5064
5195
|
* @param options The parameter options
|
|
5065
5196
|
*/
|
|
5066
5197
|
constructor(credentials, subscriptionId, options) {
|
|
5067
|
-
var _a, _b;
|
|
5198
|
+
var _a, _b, _c;
|
|
5068
5199
|
if (credentials === undefined) {
|
|
5069
5200
|
throw new Error("'credentials' cannot be null");
|
|
5070
5201
|
}
|
|
@@ -5079,16 +5210,13 @@ class CognitiveServicesManagementClient extends coreClient__namespace.ServiceCli
|
|
|
5079
5210
|
requestContentType: "application/json; charset=utf-8",
|
|
5080
5211
|
credential: credentials
|
|
5081
5212
|
};
|
|
5082
|
-
const packageDetails = `azsdk-js-arm-cognitiveservices/7.3.
|
|
5213
|
+
const packageDetails = `azsdk-js-arm-cognitiveservices/7.3.1`;
|
|
5083
5214
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
5084
5215
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
5085
5216
|
: `${packageDetails}`;
|
|
5086
|
-
if (!options.credentialScopes) {
|
|
5087
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
5088
|
-
}
|
|
5089
5217
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
5090
5218
|
userAgentPrefix
|
|
5091
|
-
},
|
|
5219
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
5092
5220
|
super(optionsWithDefaults);
|
|
5093
5221
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
5094
5222
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
@@ -5105,7 +5233,7 @@ class CognitiveServicesManagementClient extends coreClient__namespace.ServiceCli
|
|
|
5105
5233
|
});
|
|
5106
5234
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
5107
5235
|
credential: credentials,
|
|
5108
|
-
scopes: `${optionsWithDefaults.
|
|
5236
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
5109
5237
|
challengeCallbacks: {
|
|
5110
5238
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
5111
5239
|
}
|
|
@@ -5229,4 +5357,5 @@ const checkDomainAvailabilityOperationSpec = {
|
|
|
5229
5357
|
};
|
|
5230
5358
|
|
|
5231
5359
|
exports.CognitiveServicesManagementClient = CognitiveServicesManagementClient;
|
|
5360
|
+
exports.getContinuationToken = getContinuationToken;
|
|
5232
5361
|
//# sourceMappingURL=index.js.map
|