@azure/arm-managementpartner 3.0.2-alpha.20250212.1 → 3.0.2-alpha.20250213.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
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import * as coreClient from "@azure/core-client";
|
|
10
|
-
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
-
import {
|
|
12
|
-
PipelineRequest,
|
|
13
|
-
PipelineResponse,
|
|
14
|
-
SendRequest
|
|
15
|
-
} from "@azure/core-rest-pipeline";
|
|
16
|
-
import * as coreAuth from "@azure/core-auth";
|
|
17
|
-
import { PartnerImpl, OperationImpl, PartnersImpl } from "./operations";
|
|
18
|
-
import { Partner, Operation, Partners } from "./operationsInterfaces";
|
|
19
|
-
import { ACEProvisioningManagementPartnerAPIOptionalParams } from "./models";
|
|
20
|
-
|
|
21
|
-
export class ACEProvisioningManagementPartnerAPI extends coreClient.ServiceClient {
|
|
22
|
-
$host: string;
|
|
23
|
-
apiVersion: string;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Initializes a new instance of the ACEProvisioningManagementPartnerAPI class.
|
|
27
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
28
|
-
* @param options The parameter options
|
|
29
|
-
*/
|
|
30
|
-
constructor(
|
|
31
|
-
credentials: coreAuth.TokenCredential,
|
|
32
|
-
options?: ACEProvisioningManagementPartnerAPIOptionalParams
|
|
33
|
-
) {
|
|
34
|
-
if (credentials === undefined) {
|
|
35
|
-
throw new Error("'credentials' cannot be null");
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Initializing default values for options
|
|
39
|
-
if (!options) {
|
|
40
|
-
options = {};
|
|
41
|
-
}
|
|
42
|
-
const defaults: ACEProvisioningManagementPartnerAPIOptionalParams = {
|
|
43
|
-
requestContentType: "application/json; charset=utf-8",
|
|
44
|
-
credential: credentials
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
const packageDetails = `azsdk-js-arm-managementpartner/3.0.2`;
|
|
48
|
-
const userAgentPrefix =
|
|
49
|
-
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
50
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
51
|
-
: `${packageDetails}`;
|
|
52
|
-
|
|
53
|
-
const optionsWithDefaults = {
|
|
54
|
-
...defaults,
|
|
55
|
-
...options,
|
|
56
|
-
userAgentOptions: {
|
|
57
|
-
userAgentPrefix
|
|
58
|
-
},
|
|
59
|
-
endpoint:
|
|
60
|
-
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
61
|
-
};
|
|
62
|
-
super(optionsWithDefaults);
|
|
63
|
-
|
|
64
|
-
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
65
|
-
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
66
|
-
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
|
67
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
68
|
-
(pipelinePolicy) =>
|
|
69
|
-
pipelinePolicy.name ===
|
|
70
|
-
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
if (
|
|
74
|
-
!options ||
|
|
75
|
-
!options.pipeline ||
|
|
76
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
77
|
-
!bearerTokenAuthenticationPolicyFound
|
|
78
|
-
) {
|
|
79
|
-
this.pipeline.removePolicy({
|
|
80
|
-
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
81
|
-
});
|
|
82
|
-
this.pipeline.addPolicy(
|
|
83
|
-
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
84
|
-
credential: credentials,
|
|
85
|
-
scopes:
|
|
86
|
-
optionsWithDefaults.credentialScopes ??
|
|
87
|
-
`${optionsWithDefaults.endpoint}/.default`,
|
|
88
|
-
challengeCallbacks: {
|
|
89
|
-
authorizeRequestOnChallenge:
|
|
90
|
-
coreClient.authorizeRequestOnClaimChallenge
|
|
91
|
-
}
|
|
92
|
-
})
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Assigning values to Constant parameters
|
|
97
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
98
|
-
this.apiVersion = options.apiVersion || "2018-02-01";
|
|
99
|
-
this.partner = new PartnerImpl(this);
|
|
100
|
-
this.operation = new OperationImpl(this);
|
|
101
|
-
this.partners = new PartnersImpl(this);
|
|
102
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
106
|
-
private addCustomApiVersionPolicy(apiVersion?: string) {
|
|
107
|
-
if (!apiVersion) {
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
const apiVersionPolicy = {
|
|
111
|
-
name: "CustomApiVersionPolicy",
|
|
112
|
-
async sendRequest(
|
|
113
|
-
request: PipelineRequest,
|
|
114
|
-
next: SendRequest
|
|
115
|
-
): Promise<PipelineResponse> {
|
|
116
|
-
const param = request.url.split("?");
|
|
117
|
-
if (param.length > 1) {
|
|
118
|
-
const newParams = param[1].split("&").map((item) => {
|
|
119
|
-
if (item.indexOf("api-version") > -1) {
|
|
120
|
-
return "api-version=" + apiVersion;
|
|
121
|
-
} else {
|
|
122
|
-
return item;
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
126
|
-
}
|
|
127
|
-
return next(request);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
partner: Partner;
|
|
134
|
-
operation: Operation;
|
|
135
|
-
partners: Partners;
|
|
136
|
-
}
|
package/src/models/index.ts
DELETED
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import * as coreClient from "@azure/core-client";
|
|
10
|
-
|
|
11
|
-
/** this is the management partner operations response */
|
|
12
|
-
export interface PartnerResponse {
|
|
13
|
-
/** Type of the partner */
|
|
14
|
-
etag?: number;
|
|
15
|
-
/**
|
|
16
|
-
* Identifier of the partner
|
|
17
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
18
|
-
*/
|
|
19
|
-
readonly id?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Name of the partner
|
|
22
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
23
|
-
*/
|
|
24
|
-
readonly name?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Type of resource. "Microsoft.ManagementPartner/partners"
|
|
27
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
28
|
-
*/
|
|
29
|
-
readonly type?: string;
|
|
30
|
-
/** This is the partner id */
|
|
31
|
-
partnerId?: string;
|
|
32
|
-
/** This is the partner name */
|
|
33
|
-
partnerName?: string;
|
|
34
|
-
/** This is the tenant id. */
|
|
35
|
-
tenantId?: string;
|
|
36
|
-
/** This is the object id. */
|
|
37
|
-
objectId?: string;
|
|
38
|
-
/** This is the version. */
|
|
39
|
-
version?: number;
|
|
40
|
-
/** This is the DateTime when the partner was updated. */
|
|
41
|
-
updatedTime?: Date;
|
|
42
|
-
/** This is the DateTime when the partner was created. */
|
|
43
|
-
createdTime?: Date;
|
|
44
|
-
/** This is the partner state */
|
|
45
|
-
state?: ManagementPartnerState;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/** this is the management partner operations error */
|
|
49
|
-
export interface ErrorModel {
|
|
50
|
-
/** this is the ExtendedErrorInfo property */
|
|
51
|
-
error?: ExtendedErrorInfo;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/** this is the extended error info */
|
|
55
|
-
export interface ExtendedErrorInfo {
|
|
56
|
-
/** this is the error response code */
|
|
57
|
-
code?: ErrorResponseCode;
|
|
58
|
-
/** this is the extended error info message */
|
|
59
|
-
message?: string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/** this is the management partner operations list */
|
|
63
|
-
export interface OperationList {
|
|
64
|
-
/** this is the operation response list */
|
|
65
|
-
value?: OperationResponse[];
|
|
66
|
-
/** Url to get the next page of items. */
|
|
67
|
-
nextLink?: string;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/** this is the management partner operations response */
|
|
71
|
-
export interface OperationResponse {
|
|
72
|
-
/** this is the operation response name */
|
|
73
|
-
name?: string;
|
|
74
|
-
/** this is the operation display */
|
|
75
|
-
display?: OperationDisplay;
|
|
76
|
-
/** the is operation response origin information */
|
|
77
|
-
origin?: string;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/** this is the management partner operation */
|
|
81
|
-
export interface OperationDisplay {
|
|
82
|
-
/** the is management partner provider */
|
|
83
|
-
provider?: string;
|
|
84
|
-
/** the is management partner resource */
|
|
85
|
-
resource?: string;
|
|
86
|
-
/** the is management partner operation */
|
|
87
|
-
operation?: string;
|
|
88
|
-
/** the is management partner operation description */
|
|
89
|
-
description?: string;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/** Known values of {@link ManagementPartnerState} that the service accepts. */
|
|
93
|
-
export enum KnownManagementPartnerState {
|
|
94
|
-
/** Active */
|
|
95
|
-
Active = "Active",
|
|
96
|
-
/** Deleted */
|
|
97
|
-
Deleted = "Deleted"
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Defines values for ManagementPartnerState. \
|
|
102
|
-
* {@link KnownManagementPartnerState} can be used interchangeably with ManagementPartnerState,
|
|
103
|
-
* this enum contains the known values that the service supports.
|
|
104
|
-
* ### Known values supported by the service
|
|
105
|
-
* **Active** \
|
|
106
|
-
* **Deleted**
|
|
107
|
-
*/
|
|
108
|
-
export type ManagementPartnerState = string;
|
|
109
|
-
|
|
110
|
-
/** Known values of {@link ErrorResponseCode} that the service accepts. */
|
|
111
|
-
export enum KnownErrorResponseCode {
|
|
112
|
-
/** NotFound */
|
|
113
|
-
NotFound = "NotFound",
|
|
114
|
-
/** Conflict */
|
|
115
|
-
Conflict = "Conflict",
|
|
116
|
-
/** BadRequest */
|
|
117
|
-
BadRequest = "BadRequest"
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Defines values for ErrorResponseCode. \
|
|
122
|
-
* {@link KnownErrorResponseCode} can be used interchangeably with ErrorResponseCode,
|
|
123
|
-
* this enum contains the known values that the service supports.
|
|
124
|
-
* ### Known values supported by the service
|
|
125
|
-
* **NotFound** \
|
|
126
|
-
* **Conflict** \
|
|
127
|
-
* **BadRequest**
|
|
128
|
-
*/
|
|
129
|
-
export type ErrorResponseCode = string;
|
|
130
|
-
|
|
131
|
-
/** Optional parameters. */
|
|
132
|
-
export interface PartnerGetOptionalParams extends coreClient.OperationOptions {}
|
|
133
|
-
|
|
134
|
-
/** Contains response data for the get operation. */
|
|
135
|
-
export type PartnerGetResponse = PartnerResponse;
|
|
136
|
-
|
|
137
|
-
/** Optional parameters. */
|
|
138
|
-
export interface PartnerCreateOptionalParams
|
|
139
|
-
extends coreClient.OperationOptions {}
|
|
140
|
-
|
|
141
|
-
/** Contains response data for the create operation. */
|
|
142
|
-
export type PartnerCreateResponse = PartnerResponse;
|
|
143
|
-
|
|
144
|
-
/** Optional parameters. */
|
|
145
|
-
export interface PartnerUpdateOptionalParams
|
|
146
|
-
extends coreClient.OperationOptions {}
|
|
147
|
-
|
|
148
|
-
/** Contains response data for the update operation. */
|
|
149
|
-
export type PartnerUpdateResponse = PartnerResponse;
|
|
150
|
-
|
|
151
|
-
/** Optional parameters. */
|
|
152
|
-
export interface PartnerDeleteOptionalParams
|
|
153
|
-
extends coreClient.OperationOptions {}
|
|
154
|
-
|
|
155
|
-
/** Optional parameters. */
|
|
156
|
-
export interface OperationListOptionalParams
|
|
157
|
-
extends coreClient.OperationOptions {}
|
|
158
|
-
|
|
159
|
-
/** Contains response data for the list operation. */
|
|
160
|
-
export type OperationListResponse = OperationList;
|
|
161
|
-
|
|
162
|
-
/** Optional parameters. */
|
|
163
|
-
export interface OperationListNextOptionalParams
|
|
164
|
-
extends coreClient.OperationOptions {}
|
|
165
|
-
|
|
166
|
-
/** Contains response data for the listNext operation. */
|
|
167
|
-
export type OperationListNextResponse = OperationList;
|
|
168
|
-
|
|
169
|
-
/** Optional parameters. */
|
|
170
|
-
export interface PartnersGetOptionalParams
|
|
171
|
-
extends coreClient.OperationOptions {}
|
|
172
|
-
|
|
173
|
-
/** Contains response data for the get operation. */
|
|
174
|
-
export type PartnersGetResponse = PartnerResponse;
|
|
175
|
-
|
|
176
|
-
/** Optional parameters. */
|
|
177
|
-
export interface ACEProvisioningManagementPartnerAPIOptionalParams
|
|
178
|
-
extends coreClient.ServiceClientOptions {
|
|
179
|
-
/** server parameter */
|
|
180
|
-
$host?: string;
|
|
181
|
-
/** Api Version */
|
|
182
|
-
apiVersion?: string;
|
|
183
|
-
/** Overrides client endpoint. */
|
|
184
|
-
endpoint?: string;
|
|
185
|
-
}
|
package/src/models/mappers.ts
DELETED
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import * as coreClient from "@azure/core-client";
|
|
10
|
-
|
|
11
|
-
export const PartnerResponse: coreClient.CompositeMapper = {
|
|
12
|
-
type: {
|
|
13
|
-
name: "Composite",
|
|
14
|
-
className: "PartnerResponse",
|
|
15
|
-
modelProperties: {
|
|
16
|
-
etag: {
|
|
17
|
-
serializedName: "etag",
|
|
18
|
-
type: {
|
|
19
|
-
name: "Number"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
id: {
|
|
23
|
-
serializedName: "id",
|
|
24
|
-
readOnly: true,
|
|
25
|
-
type: {
|
|
26
|
-
name: "String"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
name: {
|
|
30
|
-
serializedName: "name",
|
|
31
|
-
readOnly: true,
|
|
32
|
-
type: {
|
|
33
|
-
name: "String"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
type: {
|
|
37
|
-
serializedName: "type",
|
|
38
|
-
readOnly: true,
|
|
39
|
-
type: {
|
|
40
|
-
name: "String"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
partnerId: {
|
|
44
|
-
serializedName: "properties.partnerId",
|
|
45
|
-
type: {
|
|
46
|
-
name: "String"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
partnerName: {
|
|
50
|
-
serializedName: "properties.partnerName",
|
|
51
|
-
type: {
|
|
52
|
-
name: "String"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
tenantId: {
|
|
56
|
-
serializedName: "properties.tenantId",
|
|
57
|
-
type: {
|
|
58
|
-
name: "String"
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
objectId: {
|
|
62
|
-
serializedName: "properties.objectId",
|
|
63
|
-
type: {
|
|
64
|
-
name: "String"
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
version: {
|
|
68
|
-
serializedName: "properties.version",
|
|
69
|
-
type: {
|
|
70
|
-
name: "Number"
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
updatedTime: {
|
|
74
|
-
serializedName: "properties.updatedTime",
|
|
75
|
-
type: {
|
|
76
|
-
name: "DateTime"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
createdTime: {
|
|
80
|
-
serializedName: "properties.createdTime",
|
|
81
|
-
type: {
|
|
82
|
-
name: "DateTime"
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
state: {
|
|
86
|
-
serializedName: "properties.state",
|
|
87
|
-
type: {
|
|
88
|
-
name: "String"
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export const ErrorModel: coreClient.CompositeMapper = {
|
|
96
|
-
type: {
|
|
97
|
-
name: "Composite",
|
|
98
|
-
className: "ErrorModel",
|
|
99
|
-
modelProperties: {
|
|
100
|
-
error: {
|
|
101
|
-
serializedName: "error",
|
|
102
|
-
type: {
|
|
103
|
-
name: "Composite",
|
|
104
|
-
className: "ExtendedErrorInfo"
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
export const ExtendedErrorInfo: coreClient.CompositeMapper = {
|
|
112
|
-
type: {
|
|
113
|
-
name: "Composite",
|
|
114
|
-
className: "ExtendedErrorInfo",
|
|
115
|
-
modelProperties: {
|
|
116
|
-
code: {
|
|
117
|
-
serializedName: "code",
|
|
118
|
-
type: {
|
|
119
|
-
name: "String"
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
message: {
|
|
123
|
-
serializedName: "message",
|
|
124
|
-
type: {
|
|
125
|
-
name: "String"
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
export const OperationList: coreClient.CompositeMapper = {
|
|
133
|
-
type: {
|
|
134
|
-
name: "Composite",
|
|
135
|
-
className: "OperationList",
|
|
136
|
-
modelProperties: {
|
|
137
|
-
value: {
|
|
138
|
-
serializedName: "value",
|
|
139
|
-
type: {
|
|
140
|
-
name: "Sequence",
|
|
141
|
-
element: {
|
|
142
|
-
type: {
|
|
143
|
-
name: "Composite",
|
|
144
|
-
className: "OperationResponse"
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
nextLink: {
|
|
150
|
-
serializedName: "nextLink",
|
|
151
|
-
type: {
|
|
152
|
-
name: "String"
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
export const OperationResponse: coreClient.CompositeMapper = {
|
|
160
|
-
type: {
|
|
161
|
-
name: "Composite",
|
|
162
|
-
className: "OperationResponse",
|
|
163
|
-
modelProperties: {
|
|
164
|
-
name: {
|
|
165
|
-
serializedName: "name",
|
|
166
|
-
type: {
|
|
167
|
-
name: "String"
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
display: {
|
|
171
|
-
serializedName: "display",
|
|
172
|
-
type: {
|
|
173
|
-
name: "Composite",
|
|
174
|
-
className: "OperationDisplay"
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
origin: {
|
|
178
|
-
serializedName: "origin",
|
|
179
|
-
type: {
|
|
180
|
-
name: "String"
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
export const OperationDisplay: coreClient.CompositeMapper = {
|
|
188
|
-
type: {
|
|
189
|
-
name: "Composite",
|
|
190
|
-
className: "OperationDisplay",
|
|
191
|
-
modelProperties: {
|
|
192
|
-
provider: {
|
|
193
|
-
serializedName: "provider",
|
|
194
|
-
type: {
|
|
195
|
-
name: "String"
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
resource: {
|
|
199
|
-
serializedName: "resource",
|
|
200
|
-
type: {
|
|
201
|
-
name: "String"
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
operation: {
|
|
205
|
-
serializedName: "operation",
|
|
206
|
-
type: {
|
|
207
|
-
name: "String"
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
description: {
|
|
211
|
-
serializedName: "description",
|
|
212
|
-
type: {
|
|
213
|
-
name: "String"
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
};
|
package/src/models/parameters.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
OperationParameter,
|
|
11
|
-
OperationURLParameter,
|
|
12
|
-
OperationQueryParameter
|
|
13
|
-
} from "@azure/core-client";
|
|
14
|
-
|
|
15
|
-
export const accept: OperationParameter = {
|
|
16
|
-
parameterPath: "accept",
|
|
17
|
-
mapper: {
|
|
18
|
-
defaultValue: "application/json",
|
|
19
|
-
isConstant: true,
|
|
20
|
-
serializedName: "Accept",
|
|
21
|
-
type: {
|
|
22
|
-
name: "String"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const $host: OperationURLParameter = {
|
|
28
|
-
parameterPath: "$host",
|
|
29
|
-
mapper: {
|
|
30
|
-
serializedName: "$host",
|
|
31
|
-
required: true,
|
|
32
|
-
type: {
|
|
33
|
-
name: "String"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
skipEncoding: true
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export const partnerId: OperationURLParameter = {
|
|
40
|
-
parameterPath: "partnerId",
|
|
41
|
-
mapper: {
|
|
42
|
-
serializedName: "partnerId",
|
|
43
|
-
required: true,
|
|
44
|
-
type: {
|
|
45
|
-
name: "String"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export const apiVersion: OperationQueryParameter = {
|
|
51
|
-
parameterPath: "apiVersion",
|
|
52
|
-
mapper: {
|
|
53
|
-
defaultValue: "2018-02-01",
|
|
54
|
-
isConstant: true,
|
|
55
|
-
serializedName: "api-version",
|
|
56
|
-
type: {
|
|
57
|
-
name: "String"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export const nextLink: OperationURLParameter = {
|
|
63
|
-
parameterPath: "nextLink",
|
|
64
|
-
mapper: {
|
|
65
|
-
serializedName: "nextLink",
|
|
66
|
-
required: true,
|
|
67
|
-
type: {
|
|
68
|
-
name: "String"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
skipEncoding: true
|
|
72
|
-
};
|