@azure/arm-securitydevops 1.0.0-beta.1 → 1.0.0-beta.2
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 +11 -1
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +253 -103
- 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/samples-dev/azureDevOpsConnectorCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsConnectorCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsConnectorDeleteSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsConnectorDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsConnectorGetSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsConnectorGetSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsConnectorListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsConnectorListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsConnectorListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/azureDevOpsConnectorListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsConnectorStatsGetSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsConnectorStatsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsConnectorUpdateSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsConnectorUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsOrgCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsOrgCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsOrgGetSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsOrgGetSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsOrgListSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsOrgListSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsOrgUpdateSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsOrgUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsProjectCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsProjectCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsProjectGetSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsProjectGetSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsProjectListSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsProjectListSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsProjectUpdateSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsProjectUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsRepoCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsRepoCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsRepoGetSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsRepoGetSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsRepoListByConnectorSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsRepoListByConnectorSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsRepoListSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsRepoListSample.js.map +1 -1
- package/dist-esm/samples-dev/azureDevOpsRepoUpdateSample.js +11 -3
- package/dist-esm/samples-dev/azureDevOpsRepoUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/gitHubConnectorCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/gitHubConnectorCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/gitHubConnectorDeleteSample.js +11 -3
- package/dist-esm/samples-dev/gitHubConnectorDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/gitHubConnectorGetSample.js +11 -3
- package/dist-esm/samples-dev/gitHubConnectorGetSample.js.map +1 -1
- package/dist-esm/samples-dev/gitHubConnectorListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/gitHubConnectorListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/gitHubConnectorListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/gitHubConnectorListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/gitHubConnectorStatsGetSample.js +11 -3
- package/dist-esm/samples-dev/gitHubConnectorStatsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/gitHubConnectorUpdateSample.js +11 -3
- package/dist-esm/samples-dev/gitHubConnectorUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/gitHubOwnerCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/gitHubOwnerCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/gitHubOwnerGetSample.js +11 -3
- package/dist-esm/samples-dev/gitHubOwnerGetSample.js.map +1 -1
- package/dist-esm/samples-dev/gitHubOwnerListSample.js +11 -3
- package/dist-esm/samples-dev/gitHubOwnerListSample.js.map +1 -1
- package/dist-esm/samples-dev/gitHubOwnerUpdateSample.js +11 -3
- package/dist-esm/samples-dev/gitHubOwnerUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/gitHubRepoCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/gitHubRepoCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/gitHubRepoGetSample.js +11 -3
- package/dist-esm/samples-dev/gitHubRepoGetSample.js.map +1 -1
- package/dist-esm/samples-dev/gitHubRepoListByConnectorSample.js +11 -3
- package/dist-esm/samples-dev/gitHubRepoListByConnectorSample.js.map +1 -1
- package/dist-esm/samples-dev/gitHubRepoListSample.js +11 -3
- package/dist-esm/samples-dev/gitHubRepoListSample.js.map +1 -1
- package/dist-esm/samples-dev/gitHubRepoUpdateSample.js +11 -3
- package/dist-esm/samples-dev/gitHubRepoUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +10 -2
- package/dist-esm/samples-dev/operationsListSample.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/microsoftSecurityDevOps.d.ts.map +1 -1
- package/dist-esm/src/microsoftSecurityDevOps.js +4 -7
- package/dist-esm/src/microsoftSecurityDevOps.js.map +1 -1
- package/dist-esm/src/operations/azureDevOpsConnectorOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/azureDevOpsConnectorOperations.js +37 -16
- package/dist-esm/src/operations/azureDevOpsConnectorOperations.js.map +1 -1
- package/dist-esm/src/operations/azureDevOpsOrgOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/azureDevOpsOrgOperations.js +19 -8
- package/dist-esm/src/operations/azureDevOpsOrgOperations.js.map +1 -1
- package/dist-esm/src/operations/azureDevOpsProjectOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/azureDevOpsProjectOperations.js +19 -8
- package/dist-esm/src/operations/azureDevOpsProjectOperations.js.map +1 -1
- package/dist-esm/src/operations/azureDevOpsRepoOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/azureDevOpsRepoOperations.js +37 -16
- package/dist-esm/src/operations/azureDevOpsRepoOperations.js.map +1 -1
- package/dist-esm/src/operations/gitHubConnectorOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/gitHubConnectorOperations.js +37 -16
- package/dist-esm/src/operations/gitHubConnectorOperations.js.map +1 -1
- package/dist-esm/src/operations/gitHubOwnerOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/gitHubOwnerOperations.js +19 -8
- package/dist-esm/src/operations/gitHubOwnerOperations.js.map +1 -1
- package/dist-esm/src/operations/gitHubRepoOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/gitHubRepoOperations.js +37 -16
- package/dist-esm/src/operations/gitHubRepoOperations.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -8
- package/dist-esm/src/operations/operations.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/securitydevops_examples.spec.js +3 -51
- package/dist-esm/test/securitydevops_examples.spec.js.map +1 -1
- package/package.json +8 -6
- package/review/arm-securitydevops.api.md +3 -0
- package/src/index.ts +1 -0
- package/src/microsoftSecurityDevOps.ts +5 -6
- package/src/operations/azureDevOpsConnectorOperations.ts +46 -19
- package/src/operations/azureDevOpsOrgOperations.ts +26 -13
- package/src/operations/azureDevOpsProjectOperations.ts +27 -14
- package/src/operations/azureDevOpsRepoOperations.ts +53 -28
- package/src/operations/gitHubConnectorOperations.ts +46 -19
- package/src/operations/gitHubOwnerOperations.ts +26 -13
- package/src/operations/gitHubRepoOperations.ts +52 -27
- package/src/operations/operations.ts +21 -9
- package/src/pagingHelper.ts +39 -0
- package/types/arm-securitydevops.d.ts +9 -0
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
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 the last `.value` produced by the `byPage` iterator,
|
|
41
|
+
* returns a continuation token that can be used to begin paging from
|
|
42
|
+
* that point later.
|
|
43
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
44
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
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.
|
|
@@ -1531,20 +1563,31 @@ class AzureDevOpsConnectorOperationsImpl {
|
|
|
1531
1563
|
[Symbol.asyncIterator]() {
|
|
1532
1564
|
return this;
|
|
1533
1565
|
},
|
|
1534
|
-
byPage: () => {
|
|
1535
|
-
|
|
1566
|
+
byPage: (settings) => {
|
|
1567
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1568
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1569
|
+
}
|
|
1570
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1536
1571
|
}
|
|
1537
1572
|
};
|
|
1538
1573
|
}
|
|
1539
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
1574
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1540
1575
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1541
|
-
let result
|
|
1542
|
-
|
|
1543
|
-
|
|
1576
|
+
let result;
|
|
1577
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1578
|
+
if (!continuationToken) {
|
|
1579
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1580
|
+
let page = result.value || [];
|
|
1581
|
+
continuationToken = result.nextLink;
|
|
1582
|
+
setContinuationToken(page, continuationToken);
|
|
1583
|
+
yield yield tslib.__await(page);
|
|
1584
|
+
}
|
|
1544
1585
|
while (continuationToken) {
|
|
1545
1586
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1546
1587
|
continuationToken = result.nextLink;
|
|
1547
|
-
|
|
1588
|
+
let page = result.value || [];
|
|
1589
|
+
setContinuationToken(page, continuationToken);
|
|
1590
|
+
yield yield tslib.__await(page);
|
|
1548
1591
|
}
|
|
1549
1592
|
});
|
|
1550
1593
|
}
|
|
@@ -1579,20 +1622,31 @@ class AzureDevOpsConnectorOperationsImpl {
|
|
|
1579
1622
|
[Symbol.asyncIterator]() {
|
|
1580
1623
|
return this;
|
|
1581
1624
|
},
|
|
1582
|
-
byPage: () => {
|
|
1583
|
-
|
|
1625
|
+
byPage: (settings) => {
|
|
1626
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1627
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1628
|
+
}
|
|
1629
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
1584
1630
|
}
|
|
1585
1631
|
};
|
|
1586
1632
|
}
|
|
1587
|
-
listBySubscriptionPagingPage(options) {
|
|
1633
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
1588
1634
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1589
|
-
let result
|
|
1590
|
-
|
|
1591
|
-
|
|
1635
|
+
let result;
|
|
1636
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1637
|
+
if (!continuationToken) {
|
|
1638
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
1639
|
+
let page = result.value || [];
|
|
1640
|
+
continuationToken = result.nextLink;
|
|
1641
|
+
setContinuationToken(page, continuationToken);
|
|
1642
|
+
yield yield tslib.__await(page);
|
|
1643
|
+
}
|
|
1592
1644
|
while (continuationToken) {
|
|
1593
1645
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1594
1646
|
continuationToken = result.nextLink;
|
|
1595
|
-
|
|
1647
|
+
let page = result.value || [];
|
|
1648
|
+
setContinuationToken(page, continuationToken);
|
|
1649
|
+
yield yield tslib.__await(page);
|
|
1596
1650
|
}
|
|
1597
1651
|
});
|
|
1598
1652
|
}
|
|
@@ -1972,7 +2026,6 @@ const listByResourceGroupNextOperationSpec$1 = {
|
|
|
1972
2026
|
bodyMapper: ErrorResponse
|
|
1973
2027
|
}
|
|
1974
2028
|
},
|
|
1975
|
-
queryParameters: [apiVersion],
|
|
1976
2029
|
urlParameters: [
|
|
1977
2030
|
$host,
|
|
1978
2031
|
subscriptionId,
|
|
@@ -1993,7 +2046,6 @@ const listBySubscriptionNextOperationSpec$1 = {
|
|
|
1993
2046
|
bodyMapper: ErrorResponse
|
|
1994
2047
|
}
|
|
1995
2048
|
},
|
|
1996
|
-
queryParameters: [apiVersion],
|
|
1997
2049
|
urlParameters: [
|
|
1998
2050
|
$host,
|
|
1999
2051
|
subscriptionId,
|
|
@@ -2034,20 +2086,31 @@ class AzureDevOpsRepoOperationsImpl {
|
|
|
2034
2086
|
[Symbol.asyncIterator]() {
|
|
2035
2087
|
return this;
|
|
2036
2088
|
},
|
|
2037
|
-
byPage: () => {
|
|
2038
|
-
|
|
2089
|
+
byPage: (settings) => {
|
|
2090
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2091
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2092
|
+
}
|
|
2093
|
+
return this.listByConnectorPagingPage(resourceGroupName, azureDevOpsConnectorName, options, settings);
|
|
2039
2094
|
}
|
|
2040
2095
|
};
|
|
2041
2096
|
}
|
|
2042
|
-
listByConnectorPagingPage(resourceGroupName, azureDevOpsConnectorName, options) {
|
|
2097
|
+
listByConnectorPagingPage(resourceGroupName, azureDevOpsConnectorName, options, settings) {
|
|
2043
2098
|
return tslib.__asyncGenerator(this, arguments, function* listByConnectorPagingPage_1() {
|
|
2044
|
-
let result
|
|
2045
|
-
|
|
2046
|
-
|
|
2099
|
+
let result;
|
|
2100
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2101
|
+
if (!continuationToken) {
|
|
2102
|
+
result = yield tslib.__await(this._listByConnector(resourceGroupName, azureDevOpsConnectorName, options));
|
|
2103
|
+
let page = result.value || [];
|
|
2104
|
+
continuationToken = result.nextLink;
|
|
2105
|
+
setContinuationToken(page, continuationToken);
|
|
2106
|
+
yield yield tslib.__await(page);
|
|
2107
|
+
}
|
|
2047
2108
|
while (continuationToken) {
|
|
2048
2109
|
result = yield tslib.__await(this._listByConnectorNext(resourceGroupName, azureDevOpsConnectorName, continuationToken, options));
|
|
2049
2110
|
continuationToken = result.nextLink;
|
|
2050
|
-
|
|
2111
|
+
let page = result.value || [];
|
|
2112
|
+
setContinuationToken(page, continuationToken);
|
|
2113
|
+
yield yield tslib.__await(page);
|
|
2051
2114
|
}
|
|
2052
2115
|
});
|
|
2053
2116
|
}
|
|
@@ -2085,20 +2148,31 @@ class AzureDevOpsRepoOperationsImpl {
|
|
|
2085
2148
|
[Symbol.asyncIterator]() {
|
|
2086
2149
|
return this;
|
|
2087
2150
|
},
|
|
2088
|
-
byPage: () => {
|
|
2089
|
-
|
|
2151
|
+
byPage: (settings) => {
|
|
2152
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2153
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2154
|
+
}
|
|
2155
|
+
return this.listPagingPage(resourceGroupName, azureDevOpsConnectorName, azureDevOpsOrgName, azureDevOpsProjectName, options, settings);
|
|
2090
2156
|
}
|
|
2091
2157
|
};
|
|
2092
2158
|
}
|
|
2093
|
-
listPagingPage(resourceGroupName, azureDevOpsConnectorName, azureDevOpsOrgName, azureDevOpsProjectName, options) {
|
|
2159
|
+
listPagingPage(resourceGroupName, azureDevOpsConnectorName, azureDevOpsOrgName, azureDevOpsProjectName, options, settings) {
|
|
2094
2160
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2095
|
-
let result
|
|
2096
|
-
|
|
2097
|
-
|
|
2161
|
+
let result;
|
|
2162
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2163
|
+
if (!continuationToken) {
|
|
2164
|
+
result = yield tslib.__await(this._list(resourceGroupName, azureDevOpsConnectorName, azureDevOpsOrgName, azureDevOpsProjectName, options));
|
|
2165
|
+
let page = result.value || [];
|
|
2166
|
+
continuationToken = result.nextLink;
|
|
2167
|
+
setContinuationToken(page, continuationToken);
|
|
2168
|
+
yield yield tslib.__await(page);
|
|
2169
|
+
}
|
|
2098
2170
|
while (continuationToken) {
|
|
2099
2171
|
result = yield tslib.__await(this._listNext(resourceGroupName, azureDevOpsConnectorName, azureDevOpsOrgName, azureDevOpsProjectName, continuationToken, options));
|
|
2100
2172
|
continuationToken = result.nextLink;
|
|
2101
|
-
|
|
2173
|
+
let page = result.value || [];
|
|
2174
|
+
setContinuationToken(page, continuationToken);
|
|
2175
|
+
yield yield tslib.__await(page);
|
|
2102
2176
|
}
|
|
2103
2177
|
});
|
|
2104
2178
|
}
|
|
@@ -2476,7 +2550,6 @@ const listByConnectorNextOperationSpec$1 = {
|
|
|
2476
2550
|
bodyMapper: ErrorResponse
|
|
2477
2551
|
}
|
|
2478
2552
|
},
|
|
2479
|
-
queryParameters: [apiVersion],
|
|
2480
2553
|
urlParameters: [
|
|
2481
2554
|
$host,
|
|
2482
2555
|
subscriptionId,
|
|
@@ -2498,7 +2571,6 @@ const listNextOperationSpec$5 = {
|
|
|
2498
2571
|
bodyMapper: ErrorResponse
|
|
2499
2572
|
}
|
|
2500
2573
|
},
|
|
2501
|
-
queryParameters: [apiVersion],
|
|
2502
2574
|
urlParameters: [
|
|
2503
2575
|
$host,
|
|
2504
2576
|
subscriptionId,
|
|
@@ -2593,20 +2665,31 @@ class AzureDevOpsOrgOperationsImpl {
|
|
|
2593
2665
|
[Symbol.asyncIterator]() {
|
|
2594
2666
|
return this;
|
|
2595
2667
|
},
|
|
2596
|
-
byPage: () => {
|
|
2597
|
-
|
|
2668
|
+
byPage: (settings) => {
|
|
2669
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2670
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2671
|
+
}
|
|
2672
|
+
return this.listPagingPage(resourceGroupName, azureDevOpsConnectorName, options, settings);
|
|
2598
2673
|
}
|
|
2599
2674
|
};
|
|
2600
2675
|
}
|
|
2601
|
-
listPagingPage(resourceGroupName, azureDevOpsConnectorName, options) {
|
|
2676
|
+
listPagingPage(resourceGroupName, azureDevOpsConnectorName, options, settings) {
|
|
2602
2677
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2603
|
-
let result
|
|
2604
|
-
|
|
2605
|
-
|
|
2678
|
+
let result;
|
|
2679
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2680
|
+
if (!continuationToken) {
|
|
2681
|
+
result = yield tslib.__await(this._list(resourceGroupName, azureDevOpsConnectorName, options));
|
|
2682
|
+
let page = result.value || [];
|
|
2683
|
+
continuationToken = result.nextLink;
|
|
2684
|
+
setContinuationToken(page, continuationToken);
|
|
2685
|
+
yield yield tslib.__await(page);
|
|
2686
|
+
}
|
|
2606
2687
|
while (continuationToken) {
|
|
2607
2688
|
result = yield tslib.__await(this._listNext(resourceGroupName, azureDevOpsConnectorName, continuationToken, options));
|
|
2608
2689
|
continuationToken = result.nextLink;
|
|
2609
|
-
|
|
2690
|
+
let page = result.value || [];
|
|
2691
|
+
setContinuationToken(page, continuationToken);
|
|
2692
|
+
yield yield tslib.__await(page);
|
|
2610
2693
|
}
|
|
2611
2694
|
});
|
|
2612
2695
|
}
|
|
@@ -2904,7 +2987,6 @@ const listNextOperationSpec$4 = {
|
|
|
2904
2987
|
bodyMapper: ErrorResponse
|
|
2905
2988
|
}
|
|
2906
2989
|
},
|
|
2907
|
-
queryParameters: [apiVersion],
|
|
2908
2990
|
urlParameters: [
|
|
2909
2991
|
$host,
|
|
2910
2992
|
subscriptionId,
|
|
@@ -2948,20 +3030,31 @@ class AzureDevOpsProjectOperationsImpl {
|
|
|
2948
3030
|
[Symbol.asyncIterator]() {
|
|
2949
3031
|
return this;
|
|
2950
3032
|
},
|
|
2951
|
-
byPage: () => {
|
|
2952
|
-
|
|
3033
|
+
byPage: (settings) => {
|
|
3034
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3035
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3036
|
+
}
|
|
3037
|
+
return this.listPagingPage(resourceGroupName, azureDevOpsConnectorName, azureDevOpsOrgName, options, settings);
|
|
2953
3038
|
}
|
|
2954
3039
|
};
|
|
2955
3040
|
}
|
|
2956
|
-
listPagingPage(resourceGroupName, azureDevOpsConnectorName, azureDevOpsOrgName, options) {
|
|
3041
|
+
listPagingPage(resourceGroupName, azureDevOpsConnectorName, azureDevOpsOrgName, options, settings) {
|
|
2957
3042
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2958
|
-
let result
|
|
2959
|
-
|
|
2960
|
-
|
|
3043
|
+
let result;
|
|
3044
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3045
|
+
if (!continuationToken) {
|
|
3046
|
+
result = yield tslib.__await(this._list(resourceGroupName, azureDevOpsConnectorName, azureDevOpsOrgName, options));
|
|
3047
|
+
let page = result.value || [];
|
|
3048
|
+
continuationToken = result.nextLink;
|
|
3049
|
+
setContinuationToken(page, continuationToken);
|
|
3050
|
+
yield yield tslib.__await(page);
|
|
3051
|
+
}
|
|
2961
3052
|
while (continuationToken) {
|
|
2962
3053
|
result = yield tslib.__await(this._listNext(resourceGroupName, azureDevOpsConnectorName, azureDevOpsOrgName, continuationToken, options));
|
|
2963
3054
|
continuationToken = result.nextLink;
|
|
2964
|
-
|
|
3055
|
+
let page = result.value || [];
|
|
3056
|
+
setContinuationToken(page, continuationToken);
|
|
3057
|
+
yield yield tslib.__await(page);
|
|
2965
3058
|
}
|
|
2966
3059
|
});
|
|
2967
3060
|
}
|
|
@@ -3284,7 +3377,6 @@ const listNextOperationSpec$3 = {
|
|
|
3284
3377
|
bodyMapper: ErrorResponse
|
|
3285
3378
|
}
|
|
3286
3379
|
},
|
|
3287
|
-
queryParameters: [apiVersion],
|
|
3288
3380
|
urlParameters: [
|
|
3289
3381
|
$host,
|
|
3290
3382
|
subscriptionId,
|
|
@@ -3327,20 +3419,31 @@ class GitHubConnectorOperationsImpl {
|
|
|
3327
3419
|
[Symbol.asyncIterator]() {
|
|
3328
3420
|
return this;
|
|
3329
3421
|
},
|
|
3330
|
-
byPage: () => {
|
|
3331
|
-
|
|
3422
|
+
byPage: (settings) => {
|
|
3423
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3424
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3425
|
+
}
|
|
3426
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
3332
3427
|
}
|
|
3333
3428
|
};
|
|
3334
3429
|
}
|
|
3335
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
3430
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3336
3431
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3337
|
-
let result
|
|
3338
|
-
|
|
3339
|
-
|
|
3432
|
+
let result;
|
|
3433
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3434
|
+
if (!continuationToken) {
|
|
3435
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3436
|
+
let page = result.value || [];
|
|
3437
|
+
continuationToken = result.nextLink;
|
|
3438
|
+
setContinuationToken(page, continuationToken);
|
|
3439
|
+
yield yield tslib.__await(page);
|
|
3440
|
+
}
|
|
3340
3441
|
while (continuationToken) {
|
|
3341
3442
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
3342
3443
|
continuationToken = result.nextLink;
|
|
3343
|
-
|
|
3444
|
+
let page = result.value || [];
|
|
3445
|
+
setContinuationToken(page, continuationToken);
|
|
3446
|
+
yield yield tslib.__await(page);
|
|
3344
3447
|
}
|
|
3345
3448
|
});
|
|
3346
3449
|
}
|
|
@@ -3375,20 +3478,31 @@ class GitHubConnectorOperationsImpl {
|
|
|
3375
3478
|
[Symbol.asyncIterator]() {
|
|
3376
3479
|
return this;
|
|
3377
3480
|
},
|
|
3378
|
-
byPage: () => {
|
|
3379
|
-
|
|
3481
|
+
byPage: (settings) => {
|
|
3482
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3483
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3484
|
+
}
|
|
3485
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
3380
3486
|
}
|
|
3381
3487
|
};
|
|
3382
3488
|
}
|
|
3383
|
-
listBySubscriptionPagingPage(options) {
|
|
3489
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
3384
3490
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
3385
|
-
let result
|
|
3386
|
-
|
|
3387
|
-
|
|
3491
|
+
let result;
|
|
3492
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3493
|
+
if (!continuationToken) {
|
|
3494
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
3495
|
+
let page = result.value || [];
|
|
3496
|
+
continuationToken = result.nextLink;
|
|
3497
|
+
setContinuationToken(page, continuationToken);
|
|
3498
|
+
yield yield tslib.__await(page);
|
|
3499
|
+
}
|
|
3388
3500
|
while (continuationToken) {
|
|
3389
3501
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
3390
3502
|
continuationToken = result.nextLink;
|
|
3391
|
-
|
|
3503
|
+
let page = result.value || [];
|
|
3504
|
+
setContinuationToken(page, continuationToken);
|
|
3505
|
+
yield yield tslib.__await(page);
|
|
3392
3506
|
}
|
|
3393
3507
|
});
|
|
3394
3508
|
}
|
|
@@ -3763,7 +3877,6 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
3763
3877
|
bodyMapper: ErrorResponse
|
|
3764
3878
|
}
|
|
3765
3879
|
},
|
|
3766
|
-
queryParameters: [apiVersion],
|
|
3767
3880
|
urlParameters: [
|
|
3768
3881
|
$host,
|
|
3769
3882
|
subscriptionId,
|
|
@@ -3784,7 +3897,6 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
3784
3897
|
bodyMapper: ErrorResponse
|
|
3785
3898
|
}
|
|
3786
3899
|
},
|
|
3787
|
-
queryParameters: [apiVersion],
|
|
3788
3900
|
urlParameters: [
|
|
3789
3901
|
$host,
|
|
3790
3902
|
subscriptionId,
|
|
@@ -3826,20 +3938,31 @@ class GitHubRepoOperationsImpl {
|
|
|
3826
3938
|
[Symbol.asyncIterator]() {
|
|
3827
3939
|
return this;
|
|
3828
3940
|
},
|
|
3829
|
-
byPage: () => {
|
|
3830
|
-
|
|
3941
|
+
byPage: (settings) => {
|
|
3942
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3943
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3944
|
+
}
|
|
3945
|
+
return this.listByConnectorPagingPage(resourceGroupName, gitHubConnectorName, options, settings);
|
|
3831
3946
|
}
|
|
3832
3947
|
};
|
|
3833
3948
|
}
|
|
3834
|
-
listByConnectorPagingPage(resourceGroupName, gitHubConnectorName, options) {
|
|
3949
|
+
listByConnectorPagingPage(resourceGroupName, gitHubConnectorName, options, settings) {
|
|
3835
3950
|
return tslib.__asyncGenerator(this, arguments, function* listByConnectorPagingPage_1() {
|
|
3836
|
-
let result
|
|
3837
|
-
|
|
3838
|
-
|
|
3951
|
+
let result;
|
|
3952
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3953
|
+
if (!continuationToken) {
|
|
3954
|
+
result = yield tslib.__await(this._listByConnector(resourceGroupName, gitHubConnectorName, options));
|
|
3955
|
+
let page = result.value || [];
|
|
3956
|
+
continuationToken = result.nextLink;
|
|
3957
|
+
setContinuationToken(page, continuationToken);
|
|
3958
|
+
yield yield tslib.__await(page);
|
|
3959
|
+
}
|
|
3839
3960
|
while (continuationToken) {
|
|
3840
3961
|
result = yield tslib.__await(this._listByConnectorNext(resourceGroupName, gitHubConnectorName, continuationToken, options));
|
|
3841
3962
|
continuationToken = result.nextLink;
|
|
3842
|
-
|
|
3963
|
+
let page = result.value || [];
|
|
3964
|
+
setContinuationToken(page, continuationToken);
|
|
3965
|
+
yield yield tslib.__await(page);
|
|
3843
3966
|
}
|
|
3844
3967
|
});
|
|
3845
3968
|
}
|
|
@@ -3877,20 +4000,31 @@ class GitHubRepoOperationsImpl {
|
|
|
3877
4000
|
[Symbol.asyncIterator]() {
|
|
3878
4001
|
return this;
|
|
3879
4002
|
},
|
|
3880
|
-
byPage: () => {
|
|
3881
|
-
|
|
4003
|
+
byPage: (settings) => {
|
|
4004
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4005
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4006
|
+
}
|
|
4007
|
+
return this.listPagingPage(resourceGroupName, gitHubConnectorName, gitHubOwnerName, options, settings);
|
|
3882
4008
|
}
|
|
3883
4009
|
};
|
|
3884
4010
|
}
|
|
3885
|
-
listPagingPage(resourceGroupName, gitHubConnectorName, gitHubOwnerName, options) {
|
|
4011
|
+
listPagingPage(resourceGroupName, gitHubConnectorName, gitHubOwnerName, options, settings) {
|
|
3886
4012
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3887
|
-
let result
|
|
3888
|
-
|
|
3889
|
-
|
|
4013
|
+
let result;
|
|
4014
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4015
|
+
if (!continuationToken) {
|
|
4016
|
+
result = yield tslib.__await(this._list(resourceGroupName, gitHubConnectorName, gitHubOwnerName, options));
|
|
4017
|
+
let page = result.value || [];
|
|
4018
|
+
continuationToken = result.nextLink;
|
|
4019
|
+
setContinuationToken(page, continuationToken);
|
|
4020
|
+
yield yield tslib.__await(page);
|
|
4021
|
+
}
|
|
3890
4022
|
while (continuationToken) {
|
|
3891
4023
|
result = yield tslib.__await(this._listNext(resourceGroupName, gitHubConnectorName, gitHubOwnerName, continuationToken, options));
|
|
3892
4024
|
continuationToken = result.nextLink;
|
|
3893
|
-
|
|
4025
|
+
let page = result.value || [];
|
|
4026
|
+
setContinuationToken(page, continuationToken);
|
|
4027
|
+
yield yield tslib.__await(page);
|
|
3894
4028
|
}
|
|
3895
4029
|
});
|
|
3896
4030
|
}
|
|
@@ -4249,7 +4383,6 @@ const listByConnectorNextOperationSpec = {
|
|
|
4249
4383
|
bodyMapper: ErrorResponse
|
|
4250
4384
|
}
|
|
4251
4385
|
},
|
|
4252
|
-
queryParameters: [apiVersion],
|
|
4253
4386
|
urlParameters: [
|
|
4254
4387
|
$host,
|
|
4255
4388
|
subscriptionId,
|
|
@@ -4271,7 +4404,6 @@ const listNextOperationSpec$2 = {
|
|
|
4271
4404
|
bodyMapper: ErrorResponse
|
|
4272
4405
|
}
|
|
4273
4406
|
},
|
|
4274
|
-
queryParameters: [apiVersion],
|
|
4275
4407
|
urlParameters: [
|
|
4276
4408
|
$host,
|
|
4277
4409
|
subscriptionId,
|
|
@@ -4366,20 +4498,31 @@ class GitHubOwnerOperationsImpl {
|
|
|
4366
4498
|
[Symbol.asyncIterator]() {
|
|
4367
4499
|
return this;
|
|
4368
4500
|
},
|
|
4369
|
-
byPage: () => {
|
|
4370
|
-
|
|
4501
|
+
byPage: (settings) => {
|
|
4502
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4503
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4504
|
+
}
|
|
4505
|
+
return this.listPagingPage(resourceGroupName, gitHubConnectorName, options, settings);
|
|
4371
4506
|
}
|
|
4372
4507
|
};
|
|
4373
4508
|
}
|
|
4374
|
-
listPagingPage(resourceGroupName, gitHubConnectorName, options) {
|
|
4509
|
+
listPagingPage(resourceGroupName, gitHubConnectorName, options, settings) {
|
|
4375
4510
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4376
|
-
let result
|
|
4377
|
-
|
|
4378
|
-
|
|
4511
|
+
let result;
|
|
4512
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4513
|
+
if (!continuationToken) {
|
|
4514
|
+
result = yield tslib.__await(this._list(resourceGroupName, gitHubConnectorName, options));
|
|
4515
|
+
let page = result.value || [];
|
|
4516
|
+
continuationToken = result.nextLink;
|
|
4517
|
+
setContinuationToken(page, continuationToken);
|
|
4518
|
+
yield yield tslib.__await(page);
|
|
4519
|
+
}
|
|
4379
4520
|
while (continuationToken) {
|
|
4380
4521
|
result = yield tslib.__await(this._listNext(resourceGroupName, gitHubConnectorName, continuationToken, options));
|
|
4381
4522
|
continuationToken = result.nextLink;
|
|
4382
|
-
|
|
4523
|
+
let page = result.value || [];
|
|
4524
|
+
setContinuationToken(page, continuationToken);
|
|
4525
|
+
yield yield tslib.__await(page);
|
|
4383
4526
|
}
|
|
4384
4527
|
});
|
|
4385
4528
|
}
|
|
@@ -4668,7 +4811,6 @@ const listNextOperationSpec$1 = {
|
|
|
4668
4811
|
bodyMapper: ErrorResponse
|
|
4669
4812
|
}
|
|
4670
4813
|
},
|
|
4671
|
-
queryParameters: [apiVersion],
|
|
4672
4814
|
urlParameters: [
|
|
4673
4815
|
$host,
|
|
4674
4816
|
subscriptionId,
|
|
@@ -4710,20 +4852,31 @@ class OperationsImpl {
|
|
|
4710
4852
|
[Symbol.asyncIterator]() {
|
|
4711
4853
|
return this;
|
|
4712
4854
|
},
|
|
4713
|
-
byPage: () => {
|
|
4714
|
-
|
|
4855
|
+
byPage: (settings) => {
|
|
4856
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4857
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4858
|
+
}
|
|
4859
|
+
return this.listPagingPage(options, settings);
|
|
4715
4860
|
}
|
|
4716
4861
|
};
|
|
4717
4862
|
}
|
|
4718
|
-
listPagingPage(options) {
|
|
4863
|
+
listPagingPage(options, settings) {
|
|
4719
4864
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4720
|
-
let result
|
|
4721
|
-
|
|
4722
|
-
|
|
4865
|
+
let result;
|
|
4866
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4867
|
+
if (!continuationToken) {
|
|
4868
|
+
result = yield tslib.__await(this._list(options));
|
|
4869
|
+
let page = result.value || [];
|
|
4870
|
+
continuationToken = result.nextLink;
|
|
4871
|
+
setContinuationToken(page, continuationToken);
|
|
4872
|
+
yield yield tslib.__await(page);
|
|
4873
|
+
}
|
|
4723
4874
|
while (continuationToken) {
|
|
4724
4875
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
4725
4876
|
continuationToken = result.nextLink;
|
|
4726
|
-
|
|
4877
|
+
let page = result.value || [];
|
|
4878
|
+
setContinuationToken(page, continuationToken);
|
|
4879
|
+
yield yield tslib.__await(page);
|
|
4727
4880
|
}
|
|
4728
4881
|
});
|
|
4729
4882
|
}
|
|
@@ -4790,7 +4943,6 @@ const listNextOperationSpec = {
|
|
|
4790
4943
|
bodyMapper: ErrorResponse
|
|
4791
4944
|
}
|
|
4792
4945
|
},
|
|
4793
|
-
queryParameters: [apiVersion],
|
|
4794
4946
|
urlParameters: [$host, nextLink],
|
|
4795
4947
|
headerParameters: [accept],
|
|
4796
4948
|
serializer
|
|
@@ -4811,7 +4963,7 @@ class MicrosoftSecurityDevOps extends coreClient__namespace.ServiceClient {
|
|
|
4811
4963
|
* @param options The parameter options
|
|
4812
4964
|
*/
|
|
4813
4965
|
constructor(credentials, subscriptionId, options) {
|
|
4814
|
-
var _a, _b;
|
|
4966
|
+
var _a, _b, _c;
|
|
4815
4967
|
if (credentials === undefined) {
|
|
4816
4968
|
throw new Error("'credentials' cannot be null");
|
|
4817
4969
|
}
|
|
@@ -4826,16 +4978,13 @@ class MicrosoftSecurityDevOps extends coreClient__namespace.ServiceClient {
|
|
|
4826
4978
|
requestContentType: "application/json; charset=utf-8",
|
|
4827
4979
|
credential: credentials
|
|
4828
4980
|
};
|
|
4829
|
-
const packageDetails = `azsdk-js-arm-securitydevops/1.0.0-beta.
|
|
4981
|
+
const packageDetails = `azsdk-js-arm-securitydevops/1.0.0-beta.2`;
|
|
4830
4982
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
4831
4983
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
4832
4984
|
: `${packageDetails}`;
|
|
4833
|
-
if (!options.credentialScopes) {
|
|
4834
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
4835
|
-
}
|
|
4836
4985
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
4837
4986
|
userAgentPrefix
|
|
4838
|
-
},
|
|
4987
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
4839
4988
|
super(optionsWithDefaults);
|
|
4840
4989
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
4841
4990
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
@@ -4852,7 +5001,7 @@ class MicrosoftSecurityDevOps extends coreClient__namespace.ServiceClient {
|
|
|
4852
5001
|
});
|
|
4853
5002
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
4854
5003
|
credential: credentials,
|
|
4855
|
-
scopes: `${optionsWithDefaults.
|
|
5004
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
4856
5005
|
challengeCallbacks: {
|
|
4857
5006
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
4858
5007
|
}
|
|
@@ -4905,4 +5054,5 @@ class MicrosoftSecurityDevOps extends coreClient__namespace.ServiceClient {
|
|
|
4905
5054
|
}
|
|
4906
5055
|
|
|
4907
5056
|
exports.MicrosoftSecurityDevOps = MicrosoftSecurityDevOps;
|
|
5057
|
+
exports.getContinuationToken = getContinuationToken;
|
|
4908
5058
|
//# sourceMappingURL=index.js.map
|