@azure/arm-managementpartner 3.0.2-alpha.20250212.1 → 3.0.2-alpha.20250214.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/README.md +23 -21
- package/{dist-esm/src → dist/browser}/aCEProvisioningManagementPartnerAPI.d.ts +2 -2
- package/dist/browser/aCEProvisioningManagementPartnerAPI.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/aCEProvisioningManagementPartnerAPI.js +15 -18
- package/dist/browser/aCEProvisioningManagementPartnerAPI.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operations/index.js +3 -3
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operation.d.ts +3 -3
- package/dist/browser/operations/operation.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operation.js +3 -3
- package/dist/browser/operations/operation.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/partner.d.ts +3 -3
- package/dist/browser/operations/partner.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/partner.js +2 -2
- package/dist/browser/operations/partner.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/partners.d.ts +3 -3
- package/dist/browser/operations/partners.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/partners.js +2 -2
- package/dist/browser/operations/partners.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +3 -3
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operation.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operation.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operation.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/partner.d.ts +1 -1
- package/dist/browser/operationsInterfaces/partner.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/partner.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/partners.d.ts +1 -1
- package/dist/browser/operationsInterfaces/partners.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/partners.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/aCEProvisioningManagementPartnerAPI.d.ts +20 -0
- package/dist/commonjs/aCEProvisioningManagementPartnerAPI.d.ts.map +1 -0
- package/dist/commonjs/aCEProvisioningManagementPartnerAPI.js +98 -0
- package/dist/commonjs/aCEProvisioningManagementPartnerAPI.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +154 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +29 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +8 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +214 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +7 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +65 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +4 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +14 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/operation.d.ts +32 -0
- package/dist/commonjs/operations/operation.d.ts.map +1 -0
- package/dist/commonjs/operations/operation.js +137 -0
- package/dist/commonjs/operations/operation.js.map +1 -0
- package/dist/commonjs/operations/partner.d.ts +37 -0
- package/dist/commonjs/operations/partner.d.ts.map +1 -0
- package/dist/commonjs/operations/partner.js +122 -0
- package/dist/commonjs/operations/partner.js.map +1 -0
- package/dist/commonjs/operations/partners.d.ts +18 -0
- package/dist/commonjs/operations/partners.d.ts.map +1 -0
- package/dist/commonjs/operations/partners.js +51 -0
- package/dist/commonjs/operations/partners.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +14 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operation.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operation.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operation.js +10 -0
- package/dist/commonjs/operationsInterfaces/operation.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/partner.d.ts +29 -0
- package/dist/commonjs/operationsInterfaces/partner.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/partner.js +10 -0
- package/dist/commonjs/operationsInterfaces/partner.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/partners.d.ts +10 -0
- package/dist/commonjs/operationsInterfaces/partners.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/partners.js +10 -0
- package/dist/commonjs/operationsInterfaces/partners.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/esm/aCEProvisioningManagementPartnerAPI.d.ts +20 -0
- package/dist/esm/aCEProvisioningManagementPartnerAPI.d.ts.map +1 -0
- package/dist/esm/aCEProvisioningManagementPartnerAPI.js +93 -0
- package/dist/esm/aCEProvisioningManagementPartnerAPI.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models/index.d.ts +154 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +26 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +8 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +211 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +7 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +62 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +4 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +11 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/operation.d.ts +32 -0
- package/dist/esm/operations/operation.d.ts.map +1 -0
- package/dist/esm/operations/operation.js +133 -0
- package/dist/esm/operations/operation.js.map +1 -0
- package/dist/esm/operations/partner.d.ts +37 -0
- package/dist/esm/operations/partner.d.ts.map +1 -0
- package/dist/esm/operations/partner.js +117 -0
- package/dist/esm/operations/partner.js.map +1 -0
- package/dist/esm/operations/partners.d.ts +18 -0
- package/dist/esm/operations/partners.d.ts.map +1 -0
- package/dist/esm/operations/partners.js +46 -0
- package/dist/esm/operations/partners.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +4 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +11 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/operation.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operation.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/operation.js} +2 -4
- package/dist/esm/operationsInterfaces/operation.js.map +1 -0
- package/dist/esm/operationsInterfaces/partner.d.ts +29 -0
- package/dist/esm/operationsInterfaces/partner.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/partner.js +9 -0
- package/dist/esm/operationsInterfaces/partner.js.map +1 -0
- package/dist/esm/operationsInterfaces/partners.d.ts +10 -0
- package/dist/esm/operationsInterfaces/partners.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/partners.js +9 -0
- package/dist/esm/operationsInterfaces/partners.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/aCEProvisioningManagementPartnerAPI.d.ts +20 -0
- package/dist/react-native/aCEProvisioningManagementPartnerAPI.d.ts.map +1 -0
- package/dist/react-native/aCEProvisioningManagementPartnerAPI.js +93 -0
- package/dist/react-native/aCEProvisioningManagementPartnerAPI.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/models/index.d.ts +154 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +26 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +8 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +211 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +7 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +62 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +4 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +11 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/operation.d.ts +32 -0
- package/dist/react-native/operations/operation.d.ts.map +1 -0
- package/dist/react-native/operations/operation.js +133 -0
- package/dist/react-native/operations/operation.js.map +1 -0
- package/dist/react-native/operations/partner.d.ts +37 -0
- package/dist/react-native/operations/partner.d.ts.map +1 -0
- package/dist/react-native/operations/partner.js +117 -0
- package/dist/react-native/operations/partner.js.map +1 -0
- package/dist/react-native/operations/partners.d.ts +18 -0
- package/dist/react-native/operations/partners.d.ts.map +1 -0
- package/dist/react-native/operations/partners.js +46 -0
- package/dist/react-native/operations/partners.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +11 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operation.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operation.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operation.js +9 -0
- package/dist/react-native/operationsInterfaces/operation.js.map +1 -0
- package/dist/react-native/operationsInterfaces/partner.d.ts +29 -0
- package/dist/react-native/operationsInterfaces/partner.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/partner.js +9 -0
- package/dist/react-native/operationsInterfaces/partner.js.map +1 -0
- package/dist/react-native/operationsInterfaces/partners.d.ts +10 -0
- package/dist/react-native/operationsInterfaces/partners.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/partners.js +9 -0
- package/dist/react-native/operationsInterfaces/partners.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +69 -40
- package/dist/index.js +0 -749
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/operationListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationListSample.js +0 -49
- package/dist-esm/samples-dev/operationListSample.js.map +0 -1
- package/dist-esm/samples-dev/partnerCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/partnerCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/partnerCreateSample.js +0 -34
- package/dist-esm/samples-dev/partnerCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/partnerDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/partnerDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/partnerDeleteSample.js +0 -34
- package/dist-esm/samples-dev/partnerDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/partnerGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/partnerGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/partnerGetSample.js +0 -34
- package/dist-esm/samples-dev/partnerGetSample.js.map +0 -1
- package/dist-esm/samples-dev/partnerUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/partnerUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/partnerUpdateSample.js +0 -34
- package/dist-esm/samples-dev/partnerUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/partnersGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/partnersGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/partnersGetSample.js +0 -33
- package/dist-esm/samples-dev/partnersGetSample.js.map +0 -1
- package/dist-esm/src/aCEProvisioningManagementPartnerAPI.d.ts.map +0 -1
- package/dist-esm/src/aCEProvisioningManagementPartnerAPI.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -4
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operation.d.ts.map +0 -1
- package/dist-esm/src/operations/operation.js.map +0 -1
- package/dist-esm/src/operations/partner.d.ts.map +0 -1
- package/dist-esm/src/operations/partner.js.map +0 -1
- package/dist-esm/src/operations/partners.d.ts.map +0 -1
- package/dist-esm/src/operations/partners.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operation.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/partner.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/partner.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/partners.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/partners.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -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 -42
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/src/aCEProvisioningManagementPartnerAPI.ts +0 -136
- package/src/models/index.ts +0 -185
- package/src/models/mappers.ts +0 -218
- package/src/models/parameters.ts +0 -72
- package/src/operations/operation.ts +0 -149
- package/src/operations/partner.ts +0 -160
- package/src/operations/partners.ts +0 -54
- package/src/operationsInterfaces/index.ts +0 -11
- package/src/operationsInterfaces/operation.ts +0 -22
- package/src/operationsInterfaces/partner.ts +0 -57
- package/src/operationsInterfaces/partners.ts +0 -18
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- package/types/arm-managementpartner.d.ts +0 -252
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operation.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/partner.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/partners.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
- /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
package/dist/index.js
DELETED
|
@@ -1,749 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var tslib = require('tslib');
|
|
6
|
-
var coreClient = require('@azure/core-client');
|
|
7
|
-
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
|
-
|
|
9
|
-
function _interopNamespaceDefault(e) {
|
|
10
|
-
var n = Object.create(null);
|
|
11
|
-
if (e) {
|
|
12
|
-
Object.keys(e).forEach(function (k) {
|
|
13
|
-
if (k !== 'default') {
|
|
14
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return e[k]; }
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
n.default = e;
|
|
23
|
-
return Object.freeze(n);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
|
27
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
|
28
|
-
|
|
29
|
-
/*
|
|
30
|
-
* Copyright (c) Microsoft Corporation.
|
|
31
|
-
* Licensed under the MIT License.
|
|
32
|
-
*
|
|
33
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
34
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
35
|
-
*/
|
|
36
|
-
const pageMap = new WeakMap();
|
|
37
|
-
/**
|
|
38
|
-
* Given the last `.value` produced by the `byPage` iterator,
|
|
39
|
-
* returns a continuation token that can be used to begin paging from
|
|
40
|
-
* that point later.
|
|
41
|
-
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
42
|
-
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
43
|
-
*/
|
|
44
|
-
function getContinuationToken(page) {
|
|
45
|
-
var _a;
|
|
46
|
-
if (typeof page !== "object" || page === null) {
|
|
47
|
-
return undefined;
|
|
48
|
-
}
|
|
49
|
-
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
50
|
-
}
|
|
51
|
-
function setContinuationToken(page, continuationToken) {
|
|
52
|
-
var _a;
|
|
53
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
57
|
-
pageInfo.continuationToken = continuationToken;
|
|
58
|
-
pageMap.set(page, pageInfo);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/*
|
|
62
|
-
* Copyright (c) Microsoft Corporation.
|
|
63
|
-
* Licensed under the MIT License.
|
|
64
|
-
*
|
|
65
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
66
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
67
|
-
*/
|
|
68
|
-
/** Known values of {@link ManagementPartnerState} that the service accepts. */
|
|
69
|
-
exports.KnownManagementPartnerState = void 0;
|
|
70
|
-
(function (KnownManagementPartnerState) {
|
|
71
|
-
/** Active */
|
|
72
|
-
KnownManagementPartnerState["Active"] = "Active";
|
|
73
|
-
/** Deleted */
|
|
74
|
-
KnownManagementPartnerState["Deleted"] = "Deleted";
|
|
75
|
-
})(exports.KnownManagementPartnerState || (exports.KnownManagementPartnerState = {}));
|
|
76
|
-
/** Known values of {@link ErrorResponseCode} that the service accepts. */
|
|
77
|
-
exports.KnownErrorResponseCode = void 0;
|
|
78
|
-
(function (KnownErrorResponseCode) {
|
|
79
|
-
/** NotFound */
|
|
80
|
-
KnownErrorResponseCode["NotFound"] = "NotFound";
|
|
81
|
-
/** Conflict */
|
|
82
|
-
KnownErrorResponseCode["Conflict"] = "Conflict";
|
|
83
|
-
/** BadRequest */
|
|
84
|
-
KnownErrorResponseCode["BadRequest"] = "BadRequest";
|
|
85
|
-
})(exports.KnownErrorResponseCode || (exports.KnownErrorResponseCode = {}));
|
|
86
|
-
|
|
87
|
-
/*
|
|
88
|
-
* Copyright (c) Microsoft Corporation.
|
|
89
|
-
* Licensed under the MIT License.
|
|
90
|
-
*
|
|
91
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
92
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
93
|
-
*/
|
|
94
|
-
const PartnerResponse = {
|
|
95
|
-
type: {
|
|
96
|
-
name: "Composite",
|
|
97
|
-
className: "PartnerResponse",
|
|
98
|
-
modelProperties: {
|
|
99
|
-
etag: {
|
|
100
|
-
serializedName: "etag",
|
|
101
|
-
type: {
|
|
102
|
-
name: "Number"
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
id: {
|
|
106
|
-
serializedName: "id",
|
|
107
|
-
readOnly: true,
|
|
108
|
-
type: {
|
|
109
|
-
name: "String"
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
name: {
|
|
113
|
-
serializedName: "name",
|
|
114
|
-
readOnly: true,
|
|
115
|
-
type: {
|
|
116
|
-
name: "String"
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
type: {
|
|
120
|
-
serializedName: "type",
|
|
121
|
-
readOnly: true,
|
|
122
|
-
type: {
|
|
123
|
-
name: "String"
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
partnerId: {
|
|
127
|
-
serializedName: "properties.partnerId",
|
|
128
|
-
type: {
|
|
129
|
-
name: "String"
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
partnerName: {
|
|
133
|
-
serializedName: "properties.partnerName",
|
|
134
|
-
type: {
|
|
135
|
-
name: "String"
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
tenantId: {
|
|
139
|
-
serializedName: "properties.tenantId",
|
|
140
|
-
type: {
|
|
141
|
-
name: "String"
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
objectId: {
|
|
145
|
-
serializedName: "properties.objectId",
|
|
146
|
-
type: {
|
|
147
|
-
name: "String"
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
version: {
|
|
151
|
-
serializedName: "properties.version",
|
|
152
|
-
type: {
|
|
153
|
-
name: "Number"
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
updatedTime: {
|
|
157
|
-
serializedName: "properties.updatedTime",
|
|
158
|
-
type: {
|
|
159
|
-
name: "DateTime"
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
createdTime: {
|
|
163
|
-
serializedName: "properties.createdTime",
|
|
164
|
-
type: {
|
|
165
|
-
name: "DateTime"
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
state: {
|
|
169
|
-
serializedName: "properties.state",
|
|
170
|
-
type: {
|
|
171
|
-
name: "String"
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
const ErrorModel = {
|
|
178
|
-
type: {
|
|
179
|
-
name: "Composite",
|
|
180
|
-
className: "ErrorModel",
|
|
181
|
-
modelProperties: {
|
|
182
|
-
error: {
|
|
183
|
-
serializedName: "error",
|
|
184
|
-
type: {
|
|
185
|
-
name: "Composite",
|
|
186
|
-
className: "ExtendedErrorInfo"
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
const ExtendedErrorInfo = {
|
|
193
|
-
type: {
|
|
194
|
-
name: "Composite",
|
|
195
|
-
className: "ExtendedErrorInfo",
|
|
196
|
-
modelProperties: {
|
|
197
|
-
code: {
|
|
198
|
-
serializedName: "code",
|
|
199
|
-
type: {
|
|
200
|
-
name: "String"
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
message: {
|
|
204
|
-
serializedName: "message",
|
|
205
|
-
type: {
|
|
206
|
-
name: "String"
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
};
|
|
212
|
-
const OperationList = {
|
|
213
|
-
type: {
|
|
214
|
-
name: "Composite",
|
|
215
|
-
className: "OperationList",
|
|
216
|
-
modelProperties: {
|
|
217
|
-
value: {
|
|
218
|
-
serializedName: "value",
|
|
219
|
-
type: {
|
|
220
|
-
name: "Sequence",
|
|
221
|
-
element: {
|
|
222
|
-
type: {
|
|
223
|
-
name: "Composite",
|
|
224
|
-
className: "OperationResponse"
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
nextLink: {
|
|
230
|
-
serializedName: "nextLink",
|
|
231
|
-
type: {
|
|
232
|
-
name: "String"
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
const OperationResponse = {
|
|
239
|
-
type: {
|
|
240
|
-
name: "Composite",
|
|
241
|
-
className: "OperationResponse",
|
|
242
|
-
modelProperties: {
|
|
243
|
-
name: {
|
|
244
|
-
serializedName: "name",
|
|
245
|
-
type: {
|
|
246
|
-
name: "String"
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
display: {
|
|
250
|
-
serializedName: "display",
|
|
251
|
-
type: {
|
|
252
|
-
name: "Composite",
|
|
253
|
-
className: "OperationDisplay"
|
|
254
|
-
}
|
|
255
|
-
},
|
|
256
|
-
origin: {
|
|
257
|
-
serializedName: "origin",
|
|
258
|
-
type: {
|
|
259
|
-
name: "String"
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
};
|
|
265
|
-
const OperationDisplay = {
|
|
266
|
-
type: {
|
|
267
|
-
name: "Composite",
|
|
268
|
-
className: "OperationDisplay",
|
|
269
|
-
modelProperties: {
|
|
270
|
-
provider: {
|
|
271
|
-
serializedName: "provider",
|
|
272
|
-
type: {
|
|
273
|
-
name: "String"
|
|
274
|
-
}
|
|
275
|
-
},
|
|
276
|
-
resource: {
|
|
277
|
-
serializedName: "resource",
|
|
278
|
-
type: {
|
|
279
|
-
name: "String"
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
|
-
operation: {
|
|
283
|
-
serializedName: "operation",
|
|
284
|
-
type: {
|
|
285
|
-
name: "String"
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
description: {
|
|
289
|
-
serializedName: "description",
|
|
290
|
-
type: {
|
|
291
|
-
name: "String"
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
};
|
|
297
|
-
|
|
298
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
299
|
-
__proto__: null,
|
|
300
|
-
ErrorModel: ErrorModel,
|
|
301
|
-
ExtendedErrorInfo: ExtendedErrorInfo,
|
|
302
|
-
OperationDisplay: OperationDisplay,
|
|
303
|
-
OperationList: OperationList,
|
|
304
|
-
OperationResponse: OperationResponse,
|
|
305
|
-
PartnerResponse: PartnerResponse
|
|
306
|
-
});
|
|
307
|
-
|
|
308
|
-
/*
|
|
309
|
-
* Copyright (c) Microsoft Corporation.
|
|
310
|
-
* Licensed under the MIT License.
|
|
311
|
-
*
|
|
312
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
313
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
314
|
-
*/
|
|
315
|
-
const accept = {
|
|
316
|
-
parameterPath: "accept",
|
|
317
|
-
mapper: {
|
|
318
|
-
defaultValue: "application/json",
|
|
319
|
-
isConstant: true,
|
|
320
|
-
serializedName: "Accept",
|
|
321
|
-
type: {
|
|
322
|
-
name: "String"
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
};
|
|
326
|
-
const $host = {
|
|
327
|
-
parameterPath: "$host",
|
|
328
|
-
mapper: {
|
|
329
|
-
serializedName: "$host",
|
|
330
|
-
required: true,
|
|
331
|
-
type: {
|
|
332
|
-
name: "String"
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
skipEncoding: true
|
|
336
|
-
};
|
|
337
|
-
const partnerId = {
|
|
338
|
-
parameterPath: "partnerId",
|
|
339
|
-
mapper: {
|
|
340
|
-
serializedName: "partnerId",
|
|
341
|
-
required: true,
|
|
342
|
-
type: {
|
|
343
|
-
name: "String"
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
};
|
|
347
|
-
const apiVersion = {
|
|
348
|
-
parameterPath: "apiVersion",
|
|
349
|
-
mapper: {
|
|
350
|
-
defaultValue: "2018-02-01",
|
|
351
|
-
isConstant: true,
|
|
352
|
-
serializedName: "api-version",
|
|
353
|
-
type: {
|
|
354
|
-
name: "String"
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
|
-
const nextLink = {
|
|
359
|
-
parameterPath: "nextLink",
|
|
360
|
-
mapper: {
|
|
361
|
-
serializedName: "nextLink",
|
|
362
|
-
required: true,
|
|
363
|
-
type: {
|
|
364
|
-
name: "String"
|
|
365
|
-
}
|
|
366
|
-
},
|
|
367
|
-
skipEncoding: true
|
|
368
|
-
};
|
|
369
|
-
|
|
370
|
-
/*
|
|
371
|
-
* Copyright (c) Microsoft Corporation.
|
|
372
|
-
* Licensed under the MIT License.
|
|
373
|
-
*
|
|
374
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
375
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
376
|
-
*/
|
|
377
|
-
/** Class containing Partner operations. */
|
|
378
|
-
class PartnerImpl {
|
|
379
|
-
/**
|
|
380
|
-
* Initialize a new instance of the class Partner class.
|
|
381
|
-
* @param client Reference to the service client
|
|
382
|
-
*/
|
|
383
|
-
constructor(client) {
|
|
384
|
-
this.client = client;
|
|
385
|
-
}
|
|
386
|
-
/**
|
|
387
|
-
* Get the management partner using the partnerId, objectId and tenantId.
|
|
388
|
-
* @param partnerId Id of the Partner
|
|
389
|
-
* @param options The options parameters.
|
|
390
|
-
*/
|
|
391
|
-
get(partnerId, options) {
|
|
392
|
-
return this.client.sendOperationRequest({ partnerId, options }, getOperationSpec$1);
|
|
393
|
-
}
|
|
394
|
-
/**
|
|
395
|
-
* Create a management partner for the objectId and tenantId.
|
|
396
|
-
* @param partnerId Id of the Partner
|
|
397
|
-
* @param options The options parameters.
|
|
398
|
-
*/
|
|
399
|
-
create(partnerId, options) {
|
|
400
|
-
return this.client.sendOperationRequest({ partnerId, options }, createOperationSpec);
|
|
401
|
-
}
|
|
402
|
-
/**
|
|
403
|
-
* Update the management partner for the objectId and tenantId.
|
|
404
|
-
* @param partnerId Id of the Partner
|
|
405
|
-
* @param options The options parameters.
|
|
406
|
-
*/
|
|
407
|
-
update(partnerId, options) {
|
|
408
|
-
return this.client.sendOperationRequest({ partnerId, options }, updateOperationSpec);
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
* Delete the management partner for the objectId and tenantId.
|
|
412
|
-
* @param partnerId Id of the Partner
|
|
413
|
-
* @param options The options parameters.
|
|
414
|
-
*/
|
|
415
|
-
delete(partnerId, options) {
|
|
416
|
-
return this.client.sendOperationRequest({ partnerId, options }, deleteOperationSpec);
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
// Operation Specifications
|
|
420
|
-
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
421
|
-
const getOperationSpec$1 = {
|
|
422
|
-
path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
|
|
423
|
-
httpMethod: "GET",
|
|
424
|
-
responses: {
|
|
425
|
-
200: {
|
|
426
|
-
bodyMapper: PartnerResponse
|
|
427
|
-
},
|
|
428
|
-
default: {
|
|
429
|
-
bodyMapper: ErrorModel
|
|
430
|
-
}
|
|
431
|
-
},
|
|
432
|
-
queryParameters: [apiVersion],
|
|
433
|
-
urlParameters: [$host, partnerId],
|
|
434
|
-
headerParameters: [accept],
|
|
435
|
-
serializer: serializer$2
|
|
436
|
-
};
|
|
437
|
-
const createOperationSpec = {
|
|
438
|
-
path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
|
|
439
|
-
httpMethod: "PUT",
|
|
440
|
-
responses: {
|
|
441
|
-
200: {
|
|
442
|
-
bodyMapper: PartnerResponse
|
|
443
|
-
},
|
|
444
|
-
default: {
|
|
445
|
-
bodyMapper: ErrorModel
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
|
-
queryParameters: [apiVersion],
|
|
449
|
-
urlParameters: [$host, partnerId],
|
|
450
|
-
headerParameters: [accept],
|
|
451
|
-
serializer: serializer$2
|
|
452
|
-
};
|
|
453
|
-
const updateOperationSpec = {
|
|
454
|
-
path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
|
|
455
|
-
httpMethod: "PATCH",
|
|
456
|
-
responses: {
|
|
457
|
-
200: {
|
|
458
|
-
bodyMapper: PartnerResponse
|
|
459
|
-
},
|
|
460
|
-
default: {
|
|
461
|
-
bodyMapper: ErrorModel
|
|
462
|
-
}
|
|
463
|
-
},
|
|
464
|
-
queryParameters: [apiVersion],
|
|
465
|
-
urlParameters: [$host, partnerId],
|
|
466
|
-
headerParameters: [accept],
|
|
467
|
-
serializer: serializer$2
|
|
468
|
-
};
|
|
469
|
-
const deleteOperationSpec = {
|
|
470
|
-
path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
|
|
471
|
-
httpMethod: "DELETE",
|
|
472
|
-
responses: {
|
|
473
|
-
200: {},
|
|
474
|
-
default: {
|
|
475
|
-
bodyMapper: ErrorModel
|
|
476
|
-
}
|
|
477
|
-
},
|
|
478
|
-
queryParameters: [apiVersion],
|
|
479
|
-
urlParameters: [$host, partnerId],
|
|
480
|
-
headerParameters: [accept],
|
|
481
|
-
serializer: serializer$2
|
|
482
|
-
};
|
|
483
|
-
|
|
484
|
-
/*
|
|
485
|
-
* Copyright (c) Microsoft Corporation.
|
|
486
|
-
* Licensed under the MIT License.
|
|
487
|
-
*
|
|
488
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
489
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
490
|
-
*/
|
|
491
|
-
/// <reference lib="esnext.asynciterable" />
|
|
492
|
-
/** Class containing Operation operations. */
|
|
493
|
-
class OperationImpl {
|
|
494
|
-
/**
|
|
495
|
-
* Initialize a new instance of the class Operation class.
|
|
496
|
-
* @param client Reference to the service client
|
|
497
|
-
*/
|
|
498
|
-
constructor(client) {
|
|
499
|
-
this.client = client;
|
|
500
|
-
}
|
|
501
|
-
/**
|
|
502
|
-
* List all the operations.
|
|
503
|
-
* @param options The options parameters.
|
|
504
|
-
*/
|
|
505
|
-
list(options) {
|
|
506
|
-
const iter = this.listPagingAll(options);
|
|
507
|
-
return {
|
|
508
|
-
next() {
|
|
509
|
-
return iter.next();
|
|
510
|
-
},
|
|
511
|
-
[Symbol.asyncIterator]() {
|
|
512
|
-
return this;
|
|
513
|
-
},
|
|
514
|
-
byPage: (settings) => {
|
|
515
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
516
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
517
|
-
}
|
|
518
|
-
return this.listPagingPage(options, settings);
|
|
519
|
-
}
|
|
520
|
-
};
|
|
521
|
-
}
|
|
522
|
-
listPagingPage(options, settings) {
|
|
523
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
524
|
-
let result;
|
|
525
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
526
|
-
if (!continuationToken) {
|
|
527
|
-
result = yield tslib.__await(this._list(options));
|
|
528
|
-
let page = result.value || [];
|
|
529
|
-
continuationToken = result.nextLink;
|
|
530
|
-
setContinuationToken(page, continuationToken);
|
|
531
|
-
yield yield tslib.__await(page);
|
|
532
|
-
}
|
|
533
|
-
while (continuationToken) {
|
|
534
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
535
|
-
continuationToken = result.nextLink;
|
|
536
|
-
let page = result.value || [];
|
|
537
|
-
setContinuationToken(page, continuationToken);
|
|
538
|
-
yield yield tslib.__await(page);
|
|
539
|
-
}
|
|
540
|
-
});
|
|
541
|
-
}
|
|
542
|
-
listPagingAll(options) {
|
|
543
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
544
|
-
var _a, e_1, _b, _c;
|
|
545
|
-
try {
|
|
546
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
547
|
-
_c = _f.value;
|
|
548
|
-
_d = false;
|
|
549
|
-
const page = _c;
|
|
550
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
554
|
-
finally {
|
|
555
|
-
try {
|
|
556
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
557
|
-
}
|
|
558
|
-
finally { if (e_1) throw e_1.error; }
|
|
559
|
-
}
|
|
560
|
-
});
|
|
561
|
-
}
|
|
562
|
-
/**
|
|
563
|
-
* List all the operations.
|
|
564
|
-
* @param options The options parameters.
|
|
565
|
-
*/
|
|
566
|
-
_list(options) {
|
|
567
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
568
|
-
}
|
|
569
|
-
/**
|
|
570
|
-
* ListNext
|
|
571
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
572
|
-
* @param options The options parameters.
|
|
573
|
-
*/
|
|
574
|
-
_listNext(nextLink, options) {
|
|
575
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
// Operation Specifications
|
|
579
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
580
|
-
const listOperationSpec = {
|
|
581
|
-
path: "/providers/Microsoft.ManagementPartner/operations",
|
|
582
|
-
httpMethod: "GET",
|
|
583
|
-
responses: {
|
|
584
|
-
200: {
|
|
585
|
-
bodyMapper: OperationList
|
|
586
|
-
},
|
|
587
|
-
default: {
|
|
588
|
-
bodyMapper: ErrorModel
|
|
589
|
-
}
|
|
590
|
-
},
|
|
591
|
-
queryParameters: [apiVersion],
|
|
592
|
-
urlParameters: [$host],
|
|
593
|
-
headerParameters: [accept],
|
|
594
|
-
serializer: serializer$1
|
|
595
|
-
};
|
|
596
|
-
const listNextOperationSpec = {
|
|
597
|
-
path: "{nextLink}",
|
|
598
|
-
httpMethod: "GET",
|
|
599
|
-
responses: {
|
|
600
|
-
200: {
|
|
601
|
-
bodyMapper: OperationList
|
|
602
|
-
},
|
|
603
|
-
default: {
|
|
604
|
-
bodyMapper: ErrorModel
|
|
605
|
-
}
|
|
606
|
-
},
|
|
607
|
-
urlParameters: [$host, nextLink],
|
|
608
|
-
headerParameters: [accept],
|
|
609
|
-
serializer: serializer$1
|
|
610
|
-
};
|
|
611
|
-
|
|
612
|
-
/*
|
|
613
|
-
* Copyright (c) Microsoft Corporation.
|
|
614
|
-
* Licensed under the MIT License.
|
|
615
|
-
*
|
|
616
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
617
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
618
|
-
*/
|
|
619
|
-
/** Class containing Partners operations. */
|
|
620
|
-
class PartnersImpl {
|
|
621
|
-
/**
|
|
622
|
-
* Initialize a new instance of the class Partners class.
|
|
623
|
-
* @param client Reference to the service client
|
|
624
|
-
*/
|
|
625
|
-
constructor(client) {
|
|
626
|
-
this.client = client;
|
|
627
|
-
}
|
|
628
|
-
/**
|
|
629
|
-
* Get the management partner using the objectId and tenantId.
|
|
630
|
-
* @param options The options parameters.
|
|
631
|
-
*/
|
|
632
|
-
get(options) {
|
|
633
|
-
return this.client.sendOperationRequest({ options }, getOperationSpec);
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
// Operation Specifications
|
|
637
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
638
|
-
const getOperationSpec = {
|
|
639
|
-
path: "/providers/Microsoft.ManagementPartner/partners",
|
|
640
|
-
httpMethod: "GET",
|
|
641
|
-
responses: {
|
|
642
|
-
200: {
|
|
643
|
-
bodyMapper: PartnerResponse
|
|
644
|
-
},
|
|
645
|
-
default: {
|
|
646
|
-
bodyMapper: ErrorModel
|
|
647
|
-
}
|
|
648
|
-
},
|
|
649
|
-
queryParameters: [apiVersion],
|
|
650
|
-
urlParameters: [$host],
|
|
651
|
-
headerParameters: [accept],
|
|
652
|
-
serializer
|
|
653
|
-
};
|
|
654
|
-
|
|
655
|
-
/*
|
|
656
|
-
* Copyright (c) Microsoft Corporation.
|
|
657
|
-
* Licensed under the MIT License.
|
|
658
|
-
*
|
|
659
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
660
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
661
|
-
*/
|
|
662
|
-
class ACEProvisioningManagementPartnerAPI extends coreClient__namespace.ServiceClient {
|
|
663
|
-
/**
|
|
664
|
-
* Initializes a new instance of the ACEProvisioningManagementPartnerAPI class.
|
|
665
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
666
|
-
* @param options The parameter options
|
|
667
|
-
*/
|
|
668
|
-
constructor(credentials, options) {
|
|
669
|
-
var _a, _b, _c;
|
|
670
|
-
if (credentials === undefined) {
|
|
671
|
-
throw new Error("'credentials' cannot be null");
|
|
672
|
-
}
|
|
673
|
-
// Initializing default values for options
|
|
674
|
-
if (!options) {
|
|
675
|
-
options = {};
|
|
676
|
-
}
|
|
677
|
-
const defaults = {
|
|
678
|
-
requestContentType: "application/json; charset=utf-8",
|
|
679
|
-
credential: credentials
|
|
680
|
-
};
|
|
681
|
-
const packageDetails = `azsdk-js-arm-managementpartner/3.0.2`;
|
|
682
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
683
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
684
|
-
: `${packageDetails}`;
|
|
685
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
686
|
-
userAgentPrefix
|
|
687
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
688
|
-
super(optionsWithDefaults);
|
|
689
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
|
690
|
-
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
691
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
692
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
693
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
694
|
-
}
|
|
695
|
-
if (!options ||
|
|
696
|
-
!options.pipeline ||
|
|
697
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
698
|
-
!bearerTokenAuthenticationPolicyFound) {
|
|
699
|
-
this.pipeline.removePolicy({
|
|
700
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
701
|
-
});
|
|
702
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
703
|
-
credential: credentials,
|
|
704
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
705
|
-
challengeCallbacks: {
|
|
706
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
707
|
-
}
|
|
708
|
-
}));
|
|
709
|
-
}
|
|
710
|
-
// Assigning values to Constant parameters
|
|
711
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
712
|
-
this.apiVersion = options.apiVersion || "2018-02-01";
|
|
713
|
-
this.partner = new PartnerImpl(this);
|
|
714
|
-
this.operation = new OperationImpl(this);
|
|
715
|
-
this.partners = new PartnersImpl(this);
|
|
716
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
717
|
-
}
|
|
718
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
719
|
-
addCustomApiVersionPolicy(apiVersion) {
|
|
720
|
-
if (!apiVersion) {
|
|
721
|
-
return;
|
|
722
|
-
}
|
|
723
|
-
const apiVersionPolicy = {
|
|
724
|
-
name: "CustomApiVersionPolicy",
|
|
725
|
-
sendRequest(request, next) {
|
|
726
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
727
|
-
const param = request.url.split("?");
|
|
728
|
-
if (param.length > 1) {
|
|
729
|
-
const newParams = param[1].split("&").map((item) => {
|
|
730
|
-
if (item.indexOf("api-version") > -1) {
|
|
731
|
-
return "api-version=" + apiVersion;
|
|
732
|
-
}
|
|
733
|
-
else {
|
|
734
|
-
return item;
|
|
735
|
-
}
|
|
736
|
-
});
|
|
737
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
738
|
-
}
|
|
739
|
-
return next(request);
|
|
740
|
-
});
|
|
741
|
-
}
|
|
742
|
-
};
|
|
743
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
exports.ACEProvisioningManagementPartnerAPI = ACEProvisioningManagementPartnerAPI;
|
|
748
|
-
exports.getContinuationToken = getContinuationToken;
|
|
749
|
-
//# sourceMappingURL=index.js.map
|