@azure/arm-datalake-analytics 2.0.0-beta.3 → 2.0.0-beta.4
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 +2 -2
- package/README.md +1 -1
- package/dist/index.js +237 -75
- 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/dataLakeAnalyticsAccountManagementClient.d.ts +2 -0
- package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.d.ts.map +1 -1
- package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.js +49 -18
- package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +31 -20
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +11 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/operations/accounts.d.ts.map +1 -1
- package/dist-esm/src/operations/accounts.js +37 -14
- package/dist-esm/src/operations/accounts.js.map +1 -1
- package/dist-esm/src/operations/computePolicies.d.ts.map +1 -1
- package/dist-esm/src/operations/computePolicies.js +19 -7
- package/dist-esm/src/operations/computePolicies.js.map +1 -1
- package/dist-esm/src/operations/dataLakeStoreAccounts.d.ts.map +1 -1
- package/dist-esm/src/operations/dataLakeStoreAccounts.js +19 -7
- package/dist-esm/src/operations/dataLakeStoreAccounts.js.map +1 -1
- package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
- package/dist-esm/src/operations/firewallRules.js +19 -7
- package/dist-esm/src/operations/firewallRules.js.map +1 -1
- package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -1
- package/dist-esm/src/operations/storageAccounts.js +55 -21
- package/dist-esm/src/operations/storageAccounts.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/{sampleTest.d.ts → datalake-analytics_examples.spec.d.ts} +1 -1
- package/dist-esm/test/datalake-analytics_examples.spec.d.ts.map +1 -0
- package/dist-esm/test/datalake-analytics_examples.spec.js +55 -0
- package/dist-esm/test/datalake-analytics_examples.spec.js.map +1 -0
- package/package.json +14 -10
- package/review/arm-datalake-analytics.api.md +68 -76
- package/src/dataLakeAnalyticsAccountManagementClient.ts +60 -20
- package/src/index.ts +1 -0
- package/src/models/index.ts +32 -20
- package/src/operations/accounts.ts +45 -16
- package/src/operations/computePolicies.ts +26 -12
- package/src/operations/dataLakeStoreAccounts.ts +26 -12
- package/src/operations/firewallRules.ts +26 -12
- package/src/operations/storageAccounts.ts +80 -40
- package/src/pagingHelper.ts +39 -0
- package/types/arm-datalake-analytics.d.ts +42 -20
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -89
- package/dist-esm/test/sampleTest.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
-
## 2.0.0-beta.
|
|
3
|
+
## 2.0.0-beta.4 (2022-11-21)
|
|
4
4
|
|
|
5
|
-
The package of @azure/arm-datalake-analytics is using our next generation design principles since version 2.0.0-beta.
|
|
5
|
+
The package of @azure/arm-datalake-analytics is using our next generation design principles since version 2.0.0-beta.4, which contains breaking changes.
|
|
6
6
|
|
|
7
7
|
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
|
|
8
8
|
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Creates an Azure Data Lake Analytics account management client.
|
|
|
13
13
|
|
|
14
14
|
### Currently supported environments
|
|
15
15
|
|
|
16
|
-
- [LTS versions of Node.js](https://
|
|
16
|
+
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
|
|
17
17
|
- Latest versions of Safari, Chrome, Edge and Firefox.
|
|
18
18
|
|
|
19
19
|
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
package/dist/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var tslib = require('tslib');
|
|
5
6
|
var coreClient = require('@azure/core-client');
|
|
6
7
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
7
|
-
var tslib = require('tslib');
|
|
8
8
|
var coreLro = require('@azure/core-lro');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
@@ -28,6 +28,38 @@ function _interopNamespace(e) {
|
|
|
28
28
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
29
|
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
30
|
|
|
31
|
+
/*
|
|
32
|
+
* Copyright (c) Microsoft Corporation.
|
|
33
|
+
* Licensed under the MIT License.
|
|
34
|
+
*
|
|
35
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
+
*/
|
|
38
|
+
const pageMap = new WeakMap();
|
|
39
|
+
/**
|
|
40
|
+
* Given a result page from a pageable operation, returns a
|
|
41
|
+
* continuation token that can be used to begin paging from
|
|
42
|
+
* that point later.
|
|
43
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
44
|
+
* @returns The continuation token that can be passed into byPage().
|
|
45
|
+
*/
|
|
46
|
+
function getContinuationToken(page) {
|
|
47
|
+
var _a;
|
|
48
|
+
if (typeof page !== "object" || page === null) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
+
}
|
|
53
|
+
function setContinuationToken(page, continuationToken) {
|
|
54
|
+
var _a;
|
|
55
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
+
pageInfo.continuationToken = continuationToken;
|
|
60
|
+
pageMap.set(page, pageInfo);
|
|
61
|
+
}
|
|
62
|
+
|
|
31
63
|
/*
|
|
32
64
|
* Copyright (c) Microsoft Corporation.
|
|
33
65
|
* Licensed under the MIT License.
|
|
@@ -38,24 +70,35 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
|
|
|
38
70
|
/** Known values of {@link AADObjectType} that the service accepts. */
|
|
39
71
|
exports.KnownAADObjectType = void 0;
|
|
40
72
|
(function (KnownAADObjectType) {
|
|
73
|
+
/** User */
|
|
41
74
|
KnownAADObjectType["User"] = "User";
|
|
75
|
+
/** Group */
|
|
42
76
|
KnownAADObjectType["Group"] = "Group";
|
|
77
|
+
/** ServicePrincipal */
|
|
43
78
|
KnownAADObjectType["ServicePrincipal"] = "ServicePrincipal";
|
|
44
79
|
})(exports.KnownAADObjectType || (exports.KnownAADObjectType = {}));
|
|
45
80
|
/** Known values of {@link OperationOrigin} that the service accepts. */
|
|
46
81
|
exports.KnownOperationOrigin = void 0;
|
|
47
82
|
(function (KnownOperationOrigin) {
|
|
83
|
+
/** User */
|
|
48
84
|
KnownOperationOrigin["User"] = "user";
|
|
85
|
+
/** System */
|
|
49
86
|
KnownOperationOrigin["System"] = "system";
|
|
87
|
+
/** UserSystem */
|
|
50
88
|
KnownOperationOrigin["UserSystem"] = "user,system";
|
|
51
89
|
})(exports.KnownOperationOrigin || (exports.KnownOperationOrigin = {}));
|
|
52
90
|
/** Known values of {@link SubscriptionState} that the service accepts. */
|
|
53
91
|
exports.KnownSubscriptionState = void 0;
|
|
54
92
|
(function (KnownSubscriptionState) {
|
|
93
|
+
/** Registered */
|
|
55
94
|
KnownSubscriptionState["Registered"] = "Registered";
|
|
95
|
+
/** Suspended */
|
|
56
96
|
KnownSubscriptionState["Suspended"] = "Suspended";
|
|
97
|
+
/** Deleted */
|
|
57
98
|
KnownSubscriptionState["Deleted"] = "Deleted";
|
|
99
|
+
/** Unregistered */
|
|
58
100
|
KnownSubscriptionState["Unregistered"] = "Unregistered";
|
|
101
|
+
/** Warned */
|
|
59
102
|
KnownSubscriptionState["Warned"] = "Warned";
|
|
60
103
|
})(exports.KnownSubscriptionState || (exports.KnownSubscriptionState = {}));
|
|
61
104
|
|
|
@@ -2724,20 +2767,31 @@ class AccountsImpl {
|
|
|
2724
2767
|
[Symbol.asyncIterator]() {
|
|
2725
2768
|
return this;
|
|
2726
2769
|
},
|
|
2727
|
-
byPage: () => {
|
|
2728
|
-
|
|
2770
|
+
byPage: (settings) => {
|
|
2771
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2772
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2773
|
+
}
|
|
2774
|
+
return this.listPagingPage(options, settings);
|
|
2729
2775
|
}
|
|
2730
2776
|
};
|
|
2731
2777
|
}
|
|
2732
|
-
listPagingPage(options) {
|
|
2778
|
+
listPagingPage(options, settings) {
|
|
2733
2779
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2734
|
-
let result
|
|
2735
|
-
|
|
2736
|
-
|
|
2780
|
+
let result;
|
|
2781
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2782
|
+
if (!continuationToken) {
|
|
2783
|
+
result = yield tslib.__await(this._list(options));
|
|
2784
|
+
let page = result.value || [];
|
|
2785
|
+
continuationToken = result.nextLink;
|
|
2786
|
+
setContinuationToken(page, continuationToken);
|
|
2787
|
+
yield yield tslib.__await(page);
|
|
2788
|
+
}
|
|
2737
2789
|
while (continuationToken) {
|
|
2738
2790
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2739
2791
|
continuationToken = result.nextLink;
|
|
2740
|
-
|
|
2792
|
+
let page = result.value || [];
|
|
2793
|
+
setContinuationToken(page, continuationToken);
|
|
2794
|
+
yield yield tslib.__await(page);
|
|
2741
2795
|
}
|
|
2742
2796
|
});
|
|
2743
2797
|
}
|
|
@@ -2774,20 +2828,31 @@ class AccountsImpl {
|
|
|
2774
2828
|
[Symbol.asyncIterator]() {
|
|
2775
2829
|
return this;
|
|
2776
2830
|
},
|
|
2777
|
-
byPage: () => {
|
|
2778
|
-
|
|
2831
|
+
byPage: (settings) => {
|
|
2832
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2833
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2834
|
+
}
|
|
2835
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
2779
2836
|
}
|
|
2780
2837
|
};
|
|
2781
2838
|
}
|
|
2782
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
2839
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
2783
2840
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2784
|
-
let result
|
|
2785
|
-
|
|
2786
|
-
|
|
2841
|
+
let result;
|
|
2842
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2843
|
+
if (!continuationToken) {
|
|
2844
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2845
|
+
let page = result.value || [];
|
|
2846
|
+
continuationToken = result.nextLink;
|
|
2847
|
+
setContinuationToken(page, continuationToken);
|
|
2848
|
+
yield yield tslib.__await(page);
|
|
2849
|
+
}
|
|
2787
2850
|
while (continuationToken) {
|
|
2788
2851
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
2789
2852
|
continuationToken = result.nextLink;
|
|
2790
|
-
|
|
2853
|
+
let page = result.value || [];
|
|
2854
|
+
setContinuationToken(page, continuationToken);
|
|
2855
|
+
yield yield tslib.__await(page);
|
|
2791
2856
|
}
|
|
2792
2857
|
});
|
|
2793
2858
|
}
|
|
@@ -3295,20 +3360,31 @@ class DataLakeStoreAccountsImpl {
|
|
|
3295
3360
|
[Symbol.asyncIterator]() {
|
|
3296
3361
|
return this;
|
|
3297
3362
|
},
|
|
3298
|
-
byPage: () => {
|
|
3299
|
-
|
|
3363
|
+
byPage: (settings) => {
|
|
3364
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3365
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3366
|
+
}
|
|
3367
|
+
return this.listByAccountPagingPage(resourceGroupName, accountName, options, settings);
|
|
3300
3368
|
}
|
|
3301
3369
|
};
|
|
3302
3370
|
}
|
|
3303
|
-
listByAccountPagingPage(resourceGroupName, accountName, options) {
|
|
3371
|
+
listByAccountPagingPage(resourceGroupName, accountName, options, settings) {
|
|
3304
3372
|
return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingPage_1() {
|
|
3305
|
-
let result
|
|
3306
|
-
|
|
3307
|
-
|
|
3373
|
+
let result;
|
|
3374
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3375
|
+
if (!continuationToken) {
|
|
3376
|
+
result = yield tslib.__await(this._listByAccount(resourceGroupName, accountName, options));
|
|
3377
|
+
let page = result.value || [];
|
|
3378
|
+
continuationToken = result.nextLink;
|
|
3379
|
+
setContinuationToken(page, continuationToken);
|
|
3380
|
+
yield yield tslib.__await(page);
|
|
3381
|
+
}
|
|
3308
3382
|
while (continuationToken) {
|
|
3309
3383
|
result = yield tslib.__await(this._listByAccountNext(resourceGroupName, accountName, continuationToken, options));
|
|
3310
3384
|
continuationToken = result.nextLink;
|
|
3311
|
-
|
|
3385
|
+
let page = result.value || [];
|
|
3386
|
+
setContinuationToken(page, continuationToken);
|
|
3387
|
+
yield yield tslib.__await(page);
|
|
3312
3388
|
}
|
|
3313
3389
|
});
|
|
3314
3390
|
}
|
|
@@ -3541,20 +3617,31 @@ class StorageAccountsImpl {
|
|
|
3541
3617
|
[Symbol.asyncIterator]() {
|
|
3542
3618
|
return this;
|
|
3543
3619
|
},
|
|
3544
|
-
byPage: () => {
|
|
3545
|
-
|
|
3620
|
+
byPage: (settings) => {
|
|
3621
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3622
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3623
|
+
}
|
|
3624
|
+
return this.listByAccountPagingPage(resourceGroupName, accountName, options, settings);
|
|
3546
3625
|
}
|
|
3547
3626
|
};
|
|
3548
3627
|
}
|
|
3549
|
-
listByAccountPagingPage(resourceGroupName, accountName, options) {
|
|
3628
|
+
listByAccountPagingPage(resourceGroupName, accountName, options, settings) {
|
|
3550
3629
|
return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingPage_1() {
|
|
3551
|
-
let result
|
|
3552
|
-
|
|
3553
|
-
|
|
3630
|
+
let result;
|
|
3631
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3632
|
+
if (!continuationToken) {
|
|
3633
|
+
result = yield tslib.__await(this._listByAccount(resourceGroupName, accountName, options));
|
|
3634
|
+
let page = result.value || [];
|
|
3635
|
+
continuationToken = result.nextLink;
|
|
3636
|
+
setContinuationToken(page, continuationToken);
|
|
3637
|
+
yield yield tslib.__await(page);
|
|
3638
|
+
}
|
|
3554
3639
|
while (continuationToken) {
|
|
3555
3640
|
result = yield tslib.__await(this._listByAccountNext(resourceGroupName, accountName, continuationToken, options));
|
|
3556
3641
|
continuationToken = result.nextLink;
|
|
3557
|
-
|
|
3642
|
+
let page = result.value || [];
|
|
3643
|
+
setContinuationToken(page, continuationToken);
|
|
3644
|
+
yield yield tslib.__await(page);
|
|
3558
3645
|
}
|
|
3559
3646
|
});
|
|
3560
3647
|
}
|
|
@@ -3593,20 +3680,31 @@ class StorageAccountsImpl {
|
|
|
3593
3680
|
[Symbol.asyncIterator]() {
|
|
3594
3681
|
return this;
|
|
3595
3682
|
},
|
|
3596
|
-
byPage: () => {
|
|
3597
|
-
|
|
3683
|
+
byPage: (settings) => {
|
|
3684
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3685
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3686
|
+
}
|
|
3687
|
+
return this.listStorageContainersPagingPage(resourceGroupName, accountName, storageAccountName, options, settings);
|
|
3598
3688
|
}
|
|
3599
3689
|
};
|
|
3600
3690
|
}
|
|
3601
|
-
listStorageContainersPagingPage(resourceGroupName, accountName, storageAccountName, options) {
|
|
3691
|
+
listStorageContainersPagingPage(resourceGroupName, accountName, storageAccountName, options, settings) {
|
|
3602
3692
|
return tslib.__asyncGenerator(this, arguments, function* listStorageContainersPagingPage_1() {
|
|
3603
|
-
let result
|
|
3604
|
-
|
|
3605
|
-
|
|
3693
|
+
let result;
|
|
3694
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3695
|
+
if (!continuationToken) {
|
|
3696
|
+
result = yield tslib.__await(this._listStorageContainers(resourceGroupName, accountName, storageAccountName, options));
|
|
3697
|
+
let page = result.value || [];
|
|
3698
|
+
continuationToken = result.nextLink;
|
|
3699
|
+
setContinuationToken(page, continuationToken);
|
|
3700
|
+
yield yield tslib.__await(page);
|
|
3701
|
+
}
|
|
3606
3702
|
while (continuationToken) {
|
|
3607
3703
|
result = yield tslib.__await(this._listStorageContainersNext(resourceGroupName, accountName, storageAccountName, continuationToken, options));
|
|
3608
3704
|
continuationToken = result.nextLink;
|
|
3609
|
-
|
|
3705
|
+
let page = result.value || [];
|
|
3706
|
+
setContinuationToken(page, continuationToken);
|
|
3707
|
+
yield yield tslib.__await(page);
|
|
3610
3708
|
}
|
|
3611
3709
|
});
|
|
3612
3710
|
}
|
|
@@ -3648,20 +3746,31 @@ class StorageAccountsImpl {
|
|
|
3648
3746
|
[Symbol.asyncIterator]() {
|
|
3649
3747
|
return this;
|
|
3650
3748
|
},
|
|
3651
|
-
byPage: () => {
|
|
3652
|
-
|
|
3749
|
+
byPage: (settings) => {
|
|
3750
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3751
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3752
|
+
}
|
|
3753
|
+
return this.listSasTokensPagingPage(resourceGroupName, accountName, storageAccountName, containerName, options, settings);
|
|
3653
3754
|
}
|
|
3654
3755
|
};
|
|
3655
3756
|
}
|
|
3656
|
-
listSasTokensPagingPage(resourceGroupName, accountName, storageAccountName, containerName, options) {
|
|
3757
|
+
listSasTokensPagingPage(resourceGroupName, accountName, storageAccountName, containerName, options, settings) {
|
|
3657
3758
|
return tslib.__asyncGenerator(this, arguments, function* listSasTokensPagingPage_1() {
|
|
3658
|
-
let result
|
|
3659
|
-
|
|
3660
|
-
|
|
3759
|
+
let result;
|
|
3760
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3761
|
+
if (!continuationToken) {
|
|
3762
|
+
result = yield tslib.__await(this._listSasTokens(resourceGroupName, accountName, storageAccountName, containerName, options));
|
|
3763
|
+
let page = result.value || [];
|
|
3764
|
+
continuationToken = result.nextLink;
|
|
3765
|
+
setContinuationToken(page, continuationToken);
|
|
3766
|
+
yield yield tslib.__await(page);
|
|
3767
|
+
}
|
|
3661
3768
|
while (continuationToken) {
|
|
3662
3769
|
result = yield tslib.__await(this._listSasTokensNext(resourceGroupName, accountName, storageAccountName, containerName, continuationToken, options));
|
|
3663
3770
|
continuationToken = result.nextLink;
|
|
3664
|
-
|
|
3771
|
+
let page = result.value || [];
|
|
3772
|
+
setContinuationToken(page, continuationToken);
|
|
3773
|
+
yield yield tslib.__await(page);
|
|
3665
3774
|
}
|
|
3666
3775
|
});
|
|
3667
3776
|
}
|
|
@@ -4131,20 +4240,31 @@ class ComputePoliciesImpl {
|
|
|
4131
4240
|
[Symbol.asyncIterator]() {
|
|
4132
4241
|
return this;
|
|
4133
4242
|
},
|
|
4134
|
-
byPage: () => {
|
|
4135
|
-
|
|
4243
|
+
byPage: (settings) => {
|
|
4244
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4245
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4246
|
+
}
|
|
4247
|
+
return this.listByAccountPagingPage(resourceGroupName, accountName, options, settings);
|
|
4136
4248
|
}
|
|
4137
4249
|
};
|
|
4138
4250
|
}
|
|
4139
|
-
listByAccountPagingPage(resourceGroupName, accountName, options) {
|
|
4251
|
+
listByAccountPagingPage(resourceGroupName, accountName, options, settings) {
|
|
4140
4252
|
return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingPage_1() {
|
|
4141
|
-
let result
|
|
4142
|
-
|
|
4143
|
-
|
|
4253
|
+
let result;
|
|
4254
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4255
|
+
if (!continuationToken) {
|
|
4256
|
+
result = yield tslib.__await(this._listByAccount(resourceGroupName, accountName, options));
|
|
4257
|
+
let page = result.value || [];
|
|
4258
|
+
continuationToken = result.nextLink;
|
|
4259
|
+
setContinuationToken(page, continuationToken);
|
|
4260
|
+
yield yield tslib.__await(page);
|
|
4261
|
+
}
|
|
4144
4262
|
while (continuationToken) {
|
|
4145
4263
|
result = yield tslib.__await(this._listByAccountNext(resourceGroupName, accountName, continuationToken, options));
|
|
4146
4264
|
continuationToken = result.nextLink;
|
|
4147
|
-
|
|
4265
|
+
let page = result.value || [];
|
|
4266
|
+
setContinuationToken(page, continuationToken);
|
|
4267
|
+
yield yield tslib.__await(page);
|
|
4148
4268
|
}
|
|
4149
4269
|
});
|
|
4150
4270
|
}
|
|
@@ -4406,20 +4526,31 @@ class FirewallRulesImpl {
|
|
|
4406
4526
|
[Symbol.asyncIterator]() {
|
|
4407
4527
|
return this;
|
|
4408
4528
|
},
|
|
4409
|
-
byPage: () => {
|
|
4410
|
-
|
|
4529
|
+
byPage: (settings) => {
|
|
4530
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4531
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4532
|
+
}
|
|
4533
|
+
return this.listByAccountPagingPage(resourceGroupName, accountName, options, settings);
|
|
4411
4534
|
}
|
|
4412
4535
|
};
|
|
4413
4536
|
}
|
|
4414
|
-
listByAccountPagingPage(resourceGroupName, accountName, options) {
|
|
4537
|
+
listByAccountPagingPage(resourceGroupName, accountName, options, settings) {
|
|
4415
4538
|
return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingPage_1() {
|
|
4416
|
-
let result
|
|
4417
|
-
|
|
4418
|
-
|
|
4539
|
+
let result;
|
|
4540
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4541
|
+
if (!continuationToken) {
|
|
4542
|
+
result = yield tslib.__await(this._listByAccount(resourceGroupName, accountName, options));
|
|
4543
|
+
let page = result.value || [];
|
|
4544
|
+
continuationToken = result.nextLink;
|
|
4545
|
+
setContinuationToken(page, continuationToken);
|
|
4546
|
+
yield yield tslib.__await(page);
|
|
4547
|
+
}
|
|
4419
4548
|
while (continuationToken) {
|
|
4420
4549
|
result = yield tslib.__await(this._listByAccountNext(resourceGroupName, accountName, continuationToken, options));
|
|
4421
4550
|
continuationToken = result.nextLink;
|
|
4422
|
-
|
|
4551
|
+
let page = result.value || [];
|
|
4552
|
+
setContinuationToken(page, continuationToken);
|
|
4553
|
+
yield yield tslib.__await(page);
|
|
4423
4554
|
}
|
|
4424
4555
|
});
|
|
4425
4556
|
}
|
|
@@ -4749,7 +4880,7 @@ class DataLakeAnalyticsAccountManagementClient extends coreClient__namespace.Ser
|
|
|
4749
4880
|
* @param options The parameter options
|
|
4750
4881
|
*/
|
|
4751
4882
|
constructor(credentials, subscriptionId, options) {
|
|
4752
|
-
var _a, _b;
|
|
4883
|
+
var _a, _b, _c;
|
|
4753
4884
|
if (credentials === undefined) {
|
|
4754
4885
|
throw new Error("'credentials' cannot be null");
|
|
4755
4886
|
}
|
|
@@ -4764,32 +4895,34 @@ class DataLakeAnalyticsAccountManagementClient extends coreClient__namespace.Ser
|
|
|
4764
4895
|
requestContentType: "application/json; charset=utf-8",
|
|
4765
4896
|
credential: credentials
|
|
4766
4897
|
};
|
|
4767
|
-
const packageDetails = `azsdk-js-arm-datalake-analytics/2.0.0-beta.
|
|
4898
|
+
const packageDetails = `azsdk-js-arm-datalake-analytics/2.0.0-beta.4`;
|
|
4768
4899
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
4769
4900
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
4770
4901
|
: `${packageDetails}`;
|
|
4771
|
-
if (!options.credentialScopes) {
|
|
4772
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
4773
|
-
}
|
|
4774
4902
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
4775
4903
|
userAgentPrefix
|
|
4776
|
-
},
|
|
4904
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
4777
4905
|
super(optionsWithDefaults);
|
|
4906
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
4778
4907
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
4779
4908
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
4780
|
-
|
|
4909
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
4781
4910
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4911
|
+
}
|
|
4912
|
+
if (!options ||
|
|
4913
|
+
!options.pipeline ||
|
|
4914
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
4915
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
4916
|
+
this.pipeline.removePolicy({
|
|
4917
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
4918
|
+
});
|
|
4919
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
4920
|
+
credential: credentials,
|
|
4921
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
4922
|
+
challengeCallbacks: {
|
|
4923
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
4924
|
+
}
|
|
4925
|
+
}));
|
|
4793
4926
|
}
|
|
4794
4927
|
// Parameter assignments
|
|
4795
4928
|
this.subscriptionId = subscriptionId;
|
|
@@ -4803,8 +4936,37 @@ class DataLakeAnalyticsAccountManagementClient extends coreClient__namespace.Ser
|
|
|
4803
4936
|
this.firewallRules = new FirewallRulesImpl(this);
|
|
4804
4937
|
this.operations = new OperationsImpl(this);
|
|
4805
4938
|
this.locations = new LocationsImpl(this);
|
|
4939
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
4940
|
+
}
|
|
4941
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
4942
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
4943
|
+
if (!apiVersion) {
|
|
4944
|
+
return;
|
|
4945
|
+
}
|
|
4946
|
+
const apiVersionPolicy = {
|
|
4947
|
+
name: "CustomApiVersionPolicy",
|
|
4948
|
+
sendRequest(request, next) {
|
|
4949
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4950
|
+
const param = request.url.split("?");
|
|
4951
|
+
if (param.length > 1) {
|
|
4952
|
+
const newParams = param[1].split("&").map((item) => {
|
|
4953
|
+
if (item.indexOf("api-version") > -1) {
|
|
4954
|
+
return "api-version=" + apiVersion;
|
|
4955
|
+
}
|
|
4956
|
+
else {
|
|
4957
|
+
return item;
|
|
4958
|
+
}
|
|
4959
|
+
});
|
|
4960
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
4961
|
+
}
|
|
4962
|
+
return next(request);
|
|
4963
|
+
});
|
|
4964
|
+
}
|
|
4965
|
+
};
|
|
4966
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
4806
4967
|
}
|
|
4807
4968
|
}
|
|
4808
4969
|
|
|
4809
4970
|
exports.DataLakeAnalyticsAccountManagementClient = DataLakeAnalyticsAccountManagementClient;
|
|
4971
|
+
exports.getContinuationToken = getContinuationToken;
|
|
4810
4972
|
//# sourceMappingURL=index.js.map
|