@azure/arm-managementpartner 3.0.2-alpha.20250211.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,149 +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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
-
import { Operation } from "../operationsInterfaces";
|
|
12
|
-
import * as coreClient from "@azure/core-client";
|
|
13
|
-
import * as Mappers from "../models/mappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { ACEProvisioningManagementPartnerAPI } from "../aCEProvisioningManagementPartnerAPI";
|
|
16
|
-
import {
|
|
17
|
-
OperationResponse,
|
|
18
|
-
OperationListNextOptionalParams,
|
|
19
|
-
OperationListOptionalParams,
|
|
20
|
-
OperationListResponse,
|
|
21
|
-
OperationListNextResponse
|
|
22
|
-
} from "../models";
|
|
23
|
-
|
|
24
|
-
/// <reference lib="esnext.asynciterable" />
|
|
25
|
-
/** Class containing Operation operations. */
|
|
26
|
-
export class OperationImpl implements Operation {
|
|
27
|
-
private readonly client: ACEProvisioningManagementPartnerAPI;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Initialize a new instance of the class Operation class.
|
|
31
|
-
* @param client Reference to the service client
|
|
32
|
-
*/
|
|
33
|
-
constructor(client: ACEProvisioningManagementPartnerAPI) {
|
|
34
|
-
this.client = client;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* List all the operations.
|
|
39
|
-
* @param options The options parameters.
|
|
40
|
-
*/
|
|
41
|
-
public list(
|
|
42
|
-
options?: OperationListOptionalParams
|
|
43
|
-
): PagedAsyncIterableIterator<OperationResponse> {
|
|
44
|
-
const iter = this.listPagingAll(options);
|
|
45
|
-
return {
|
|
46
|
-
next() {
|
|
47
|
-
return iter.next();
|
|
48
|
-
},
|
|
49
|
-
[Symbol.asyncIterator]() {
|
|
50
|
-
return this;
|
|
51
|
-
},
|
|
52
|
-
byPage: (settings?: PageSettings) => {
|
|
53
|
-
if (settings?.maxPageSize) {
|
|
54
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
55
|
-
}
|
|
56
|
-
return this.listPagingPage(options, settings);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
private async *listPagingPage(
|
|
62
|
-
options?: OperationListOptionalParams,
|
|
63
|
-
settings?: PageSettings
|
|
64
|
-
): AsyncIterableIterator<OperationResponse[]> {
|
|
65
|
-
let result: OperationListResponse;
|
|
66
|
-
let continuationToken = settings?.continuationToken;
|
|
67
|
-
if (!continuationToken) {
|
|
68
|
-
result = await this._list(options);
|
|
69
|
-
let page = result.value || [];
|
|
70
|
-
continuationToken = result.nextLink;
|
|
71
|
-
setContinuationToken(page, continuationToken);
|
|
72
|
-
yield page;
|
|
73
|
-
}
|
|
74
|
-
while (continuationToken) {
|
|
75
|
-
result = await this._listNext(continuationToken, options);
|
|
76
|
-
continuationToken = result.nextLink;
|
|
77
|
-
let page = result.value || [];
|
|
78
|
-
setContinuationToken(page, continuationToken);
|
|
79
|
-
yield page;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
private async *listPagingAll(
|
|
84
|
-
options?: OperationListOptionalParams
|
|
85
|
-
): AsyncIterableIterator<OperationResponse> {
|
|
86
|
-
for await (const page of this.listPagingPage(options)) {
|
|
87
|
-
yield* page;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* List all the operations.
|
|
93
|
-
* @param options The options parameters.
|
|
94
|
-
*/
|
|
95
|
-
private _list(
|
|
96
|
-
options?: OperationListOptionalParams
|
|
97
|
-
): Promise<OperationListResponse> {
|
|
98
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* ListNext
|
|
103
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
104
|
-
* @param options The options parameters.
|
|
105
|
-
*/
|
|
106
|
-
private _listNext(
|
|
107
|
-
nextLink: string,
|
|
108
|
-
options?: OperationListNextOptionalParams
|
|
109
|
-
): Promise<OperationListNextResponse> {
|
|
110
|
-
return this.client.sendOperationRequest(
|
|
111
|
-
{ nextLink, options },
|
|
112
|
-
listNextOperationSpec
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
// Operation Specifications
|
|
117
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
118
|
-
|
|
119
|
-
const listOperationSpec: coreClient.OperationSpec = {
|
|
120
|
-
path: "/providers/Microsoft.ManagementPartner/operations",
|
|
121
|
-
httpMethod: "GET",
|
|
122
|
-
responses: {
|
|
123
|
-
200: {
|
|
124
|
-
bodyMapper: Mappers.OperationList
|
|
125
|
-
},
|
|
126
|
-
default: {
|
|
127
|
-
bodyMapper: Mappers.ErrorModel
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
queryParameters: [Parameters.apiVersion],
|
|
131
|
-
urlParameters: [Parameters.$host],
|
|
132
|
-
headerParameters: [Parameters.accept],
|
|
133
|
-
serializer
|
|
134
|
-
};
|
|
135
|
-
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
136
|
-
path: "{nextLink}",
|
|
137
|
-
httpMethod: "GET",
|
|
138
|
-
responses: {
|
|
139
|
-
200: {
|
|
140
|
-
bodyMapper: Mappers.OperationList
|
|
141
|
-
},
|
|
142
|
-
default: {
|
|
143
|
-
bodyMapper: Mappers.ErrorModel
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
147
|
-
headerParameters: [Parameters.accept],
|
|
148
|
-
serializer
|
|
149
|
-
};
|
|
@@ -1,160 +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 { Partner } from "../operationsInterfaces";
|
|
10
|
-
import * as coreClient from "@azure/core-client";
|
|
11
|
-
import * as Mappers from "../models/mappers";
|
|
12
|
-
import * as Parameters from "../models/parameters";
|
|
13
|
-
import { ACEProvisioningManagementPartnerAPI } from "../aCEProvisioningManagementPartnerAPI";
|
|
14
|
-
import {
|
|
15
|
-
PartnerGetOptionalParams,
|
|
16
|
-
PartnerGetResponse,
|
|
17
|
-
PartnerCreateOptionalParams,
|
|
18
|
-
PartnerCreateResponse,
|
|
19
|
-
PartnerUpdateOptionalParams,
|
|
20
|
-
PartnerUpdateResponse,
|
|
21
|
-
PartnerDeleteOptionalParams
|
|
22
|
-
} from "../models";
|
|
23
|
-
|
|
24
|
-
/** Class containing Partner operations. */
|
|
25
|
-
export class PartnerImpl implements Partner {
|
|
26
|
-
private readonly client: ACEProvisioningManagementPartnerAPI;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Initialize a new instance of the class Partner class.
|
|
30
|
-
* @param client Reference to the service client
|
|
31
|
-
*/
|
|
32
|
-
constructor(client: ACEProvisioningManagementPartnerAPI) {
|
|
33
|
-
this.client = client;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Get the management partner using the partnerId, objectId and tenantId.
|
|
38
|
-
* @param partnerId Id of the Partner
|
|
39
|
-
* @param options The options parameters.
|
|
40
|
-
*/
|
|
41
|
-
get(
|
|
42
|
-
partnerId: string,
|
|
43
|
-
options?: PartnerGetOptionalParams
|
|
44
|
-
): Promise<PartnerGetResponse> {
|
|
45
|
-
return this.client.sendOperationRequest(
|
|
46
|
-
{ partnerId, options },
|
|
47
|
-
getOperationSpec
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Create a management partner for the objectId and tenantId.
|
|
53
|
-
* @param partnerId Id of the Partner
|
|
54
|
-
* @param options The options parameters.
|
|
55
|
-
*/
|
|
56
|
-
create(
|
|
57
|
-
partnerId: string,
|
|
58
|
-
options?: PartnerCreateOptionalParams
|
|
59
|
-
): Promise<PartnerCreateResponse> {
|
|
60
|
-
return this.client.sendOperationRequest(
|
|
61
|
-
{ partnerId, options },
|
|
62
|
-
createOperationSpec
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Update the management partner for the objectId and tenantId.
|
|
68
|
-
* @param partnerId Id of the Partner
|
|
69
|
-
* @param options The options parameters.
|
|
70
|
-
*/
|
|
71
|
-
update(
|
|
72
|
-
partnerId: string,
|
|
73
|
-
options?: PartnerUpdateOptionalParams
|
|
74
|
-
): Promise<PartnerUpdateResponse> {
|
|
75
|
-
return this.client.sendOperationRequest(
|
|
76
|
-
{ partnerId, options },
|
|
77
|
-
updateOperationSpec
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Delete the management partner for the objectId and tenantId.
|
|
83
|
-
* @param partnerId Id of the Partner
|
|
84
|
-
* @param options The options parameters.
|
|
85
|
-
*/
|
|
86
|
-
delete(
|
|
87
|
-
partnerId: string,
|
|
88
|
-
options?: PartnerDeleteOptionalParams
|
|
89
|
-
): Promise<void> {
|
|
90
|
-
return this.client.sendOperationRequest(
|
|
91
|
-
{ partnerId, options },
|
|
92
|
-
deleteOperationSpec
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
// Operation Specifications
|
|
97
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
98
|
-
|
|
99
|
-
const getOperationSpec: coreClient.OperationSpec = {
|
|
100
|
-
path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
|
|
101
|
-
httpMethod: "GET",
|
|
102
|
-
responses: {
|
|
103
|
-
200: {
|
|
104
|
-
bodyMapper: Mappers.PartnerResponse
|
|
105
|
-
},
|
|
106
|
-
default: {
|
|
107
|
-
bodyMapper: Mappers.ErrorModel
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
queryParameters: [Parameters.apiVersion],
|
|
111
|
-
urlParameters: [Parameters.$host, Parameters.partnerId],
|
|
112
|
-
headerParameters: [Parameters.accept],
|
|
113
|
-
serializer
|
|
114
|
-
};
|
|
115
|
-
const createOperationSpec: coreClient.OperationSpec = {
|
|
116
|
-
path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
|
|
117
|
-
httpMethod: "PUT",
|
|
118
|
-
responses: {
|
|
119
|
-
200: {
|
|
120
|
-
bodyMapper: Mappers.PartnerResponse
|
|
121
|
-
},
|
|
122
|
-
default: {
|
|
123
|
-
bodyMapper: Mappers.ErrorModel
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
queryParameters: [Parameters.apiVersion],
|
|
127
|
-
urlParameters: [Parameters.$host, Parameters.partnerId],
|
|
128
|
-
headerParameters: [Parameters.accept],
|
|
129
|
-
serializer
|
|
130
|
-
};
|
|
131
|
-
const updateOperationSpec: coreClient.OperationSpec = {
|
|
132
|
-
path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
|
|
133
|
-
httpMethod: "PATCH",
|
|
134
|
-
responses: {
|
|
135
|
-
200: {
|
|
136
|
-
bodyMapper: Mappers.PartnerResponse
|
|
137
|
-
},
|
|
138
|
-
default: {
|
|
139
|
-
bodyMapper: Mappers.ErrorModel
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
queryParameters: [Parameters.apiVersion],
|
|
143
|
-
urlParameters: [Parameters.$host, Parameters.partnerId],
|
|
144
|
-
headerParameters: [Parameters.accept],
|
|
145
|
-
serializer
|
|
146
|
-
};
|
|
147
|
-
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
148
|
-
path: "/providers/Microsoft.ManagementPartner/partners/{partnerId}",
|
|
149
|
-
httpMethod: "DELETE",
|
|
150
|
-
responses: {
|
|
151
|
-
200: {},
|
|
152
|
-
default: {
|
|
153
|
-
bodyMapper: Mappers.ErrorModel
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
queryParameters: [Parameters.apiVersion],
|
|
157
|
-
urlParameters: [Parameters.$host, Parameters.partnerId],
|
|
158
|
-
headerParameters: [Parameters.accept],
|
|
159
|
-
serializer
|
|
160
|
-
};
|
|
@@ -1,54 +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 { Partners } from "../operationsInterfaces";
|
|
10
|
-
import * as coreClient from "@azure/core-client";
|
|
11
|
-
import * as Mappers from "../models/mappers";
|
|
12
|
-
import * as Parameters from "../models/parameters";
|
|
13
|
-
import { ACEProvisioningManagementPartnerAPI } from "../aCEProvisioningManagementPartnerAPI";
|
|
14
|
-
import { PartnersGetOptionalParams, PartnersGetResponse } from "../models";
|
|
15
|
-
|
|
16
|
-
/** Class containing Partners operations. */
|
|
17
|
-
export class PartnersImpl implements Partners {
|
|
18
|
-
private readonly client: ACEProvisioningManagementPartnerAPI;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Initialize a new instance of the class Partners class.
|
|
22
|
-
* @param client Reference to the service client
|
|
23
|
-
*/
|
|
24
|
-
constructor(client: ACEProvisioningManagementPartnerAPI) {
|
|
25
|
-
this.client = client;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Get the management partner using the objectId and tenantId.
|
|
30
|
-
* @param options The options parameters.
|
|
31
|
-
*/
|
|
32
|
-
get(options?: PartnersGetOptionalParams): Promise<PartnersGetResponse> {
|
|
33
|
-
return this.client.sendOperationRequest({ options }, getOperationSpec);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
// Operation Specifications
|
|
37
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
38
|
-
|
|
39
|
-
const getOperationSpec: coreClient.OperationSpec = {
|
|
40
|
-
path: "/providers/Microsoft.ManagementPartner/partners",
|
|
41
|
-
httpMethod: "GET",
|
|
42
|
-
responses: {
|
|
43
|
-
200: {
|
|
44
|
-
bodyMapper: Mappers.PartnerResponse
|
|
45
|
-
},
|
|
46
|
-
default: {
|
|
47
|
-
bodyMapper: Mappers.ErrorModel
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
queryParameters: [Parameters.apiVersion],
|
|
51
|
-
urlParameters: [Parameters.$host],
|
|
52
|
-
headerParameters: [Parameters.accept],
|
|
53
|
-
serializer
|
|
54
|
-
};
|
|
@@ -1,11 +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
|
-
export * from "./partner";
|
|
10
|
-
export * from "./operation";
|
|
11
|
-
export * from "./partners";
|
|
@@ -1,22 +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 { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import { OperationResponse, OperationListOptionalParams } from "../models";
|
|
11
|
-
|
|
12
|
-
/// <reference lib="esnext.asynciterable" />
|
|
13
|
-
/** Interface representing a Operation. */
|
|
14
|
-
export interface Operation {
|
|
15
|
-
/**
|
|
16
|
-
* List all the operations.
|
|
17
|
-
* @param options The options parameters.
|
|
18
|
-
*/
|
|
19
|
-
list(
|
|
20
|
-
options?: OperationListOptionalParams
|
|
21
|
-
): PagedAsyncIterableIterator<OperationResponse>;
|
|
22
|
-
}
|
|
@@ -1,57 +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
|
-
PartnerGetOptionalParams,
|
|
11
|
-
PartnerGetResponse,
|
|
12
|
-
PartnerCreateOptionalParams,
|
|
13
|
-
PartnerCreateResponse,
|
|
14
|
-
PartnerUpdateOptionalParams,
|
|
15
|
-
PartnerUpdateResponse,
|
|
16
|
-
PartnerDeleteOptionalParams
|
|
17
|
-
} from "../models";
|
|
18
|
-
|
|
19
|
-
/** Interface representing a Partner. */
|
|
20
|
-
export interface Partner {
|
|
21
|
-
/**
|
|
22
|
-
* Get the management partner using the partnerId, objectId and tenantId.
|
|
23
|
-
* @param partnerId Id of the Partner
|
|
24
|
-
* @param options The options parameters.
|
|
25
|
-
*/
|
|
26
|
-
get(
|
|
27
|
-
partnerId: string,
|
|
28
|
-
options?: PartnerGetOptionalParams
|
|
29
|
-
): Promise<PartnerGetResponse>;
|
|
30
|
-
/**
|
|
31
|
-
* Create a management partner for the objectId and tenantId.
|
|
32
|
-
* @param partnerId Id of the Partner
|
|
33
|
-
* @param options The options parameters.
|
|
34
|
-
*/
|
|
35
|
-
create(
|
|
36
|
-
partnerId: string,
|
|
37
|
-
options?: PartnerCreateOptionalParams
|
|
38
|
-
): Promise<PartnerCreateResponse>;
|
|
39
|
-
/**
|
|
40
|
-
* Update the management partner for the objectId and tenantId.
|
|
41
|
-
* @param partnerId Id of the Partner
|
|
42
|
-
* @param options The options parameters.
|
|
43
|
-
*/
|
|
44
|
-
update(
|
|
45
|
-
partnerId: string,
|
|
46
|
-
options?: PartnerUpdateOptionalParams
|
|
47
|
-
): Promise<PartnerUpdateResponse>;
|
|
48
|
-
/**
|
|
49
|
-
* Delete the management partner for the objectId and tenantId.
|
|
50
|
-
* @param partnerId Id of the Partner
|
|
51
|
-
* @param options The options parameters.
|
|
52
|
-
*/
|
|
53
|
-
delete(
|
|
54
|
-
partnerId: string,
|
|
55
|
-
options?: PartnerDeleteOptionalParams
|
|
56
|
-
): Promise<void>;
|
|
57
|
-
}
|
|
@@ -1,18 +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 { PartnersGetOptionalParams, PartnersGetResponse } from "../models";
|
|
10
|
-
|
|
11
|
-
/** Interface representing a Partners. */
|
|
12
|
-
export interface Partners {
|
|
13
|
-
/**
|
|
14
|
-
* Get the management partner using the objectId and tenantId.
|
|
15
|
-
* @param options The options parameters.
|
|
16
|
-
*/
|
|
17
|
-
get(options?: PartnersGetOptionalParams): Promise<PartnersGetResponse>;
|
|
18
|
-
}
|
package/src/pagingHelper.ts
DELETED
|
@@ -1,39 +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
|
-
export interface PageInfo {
|
|
10
|
-
continuationToken?: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const pageMap = new WeakMap<object, PageInfo>();
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Given the last `.value` produced by the `byPage` iterator,
|
|
17
|
-
* returns a continuation token that can be used to begin paging from
|
|
18
|
-
* that point later.
|
|
19
|
-
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
20
|
-
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
21
|
-
*/
|
|
22
|
-
export function getContinuationToken(page: unknown): string | undefined {
|
|
23
|
-
if (typeof page !== "object" || page === null) {
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
return pageMap.get(page)?.continuationToken;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export function setContinuationToken(
|
|
30
|
-
page: unknown,
|
|
31
|
-
continuationToken: string | undefined
|
|
32
|
-
): void {
|
|
33
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
const pageInfo = pageMap.get(page) ?? {};
|
|
37
|
-
pageInfo.continuationToken = continuationToken;
|
|
38
|
-
pageMap.set(page, pageInfo);
|
|
39
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"module": "es6",
|
|
4
|
-
"moduleResolution": "node",
|
|
5
|
-
"strict": true,
|
|
6
|
-
"target": "es6",
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"declarationMap": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"allowSyntheticDefaultImports": true,
|
|
11
|
-
"forceConsistentCasingInFileNames": true,
|
|
12
|
-
"lib": [
|
|
13
|
-
"es6",
|
|
14
|
-
"dom"
|
|
15
|
-
],
|
|
16
|
-
"declaration": true,
|
|
17
|
-
"outDir": "./dist-esm",
|
|
18
|
-
"importHelpers": true,
|
|
19
|
-
"paths": {
|
|
20
|
-
"@azure/arm-managementpartner": [
|
|
21
|
-
"./src/index"
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"include": [
|
|
26
|
-
"./src/**/*.ts",
|
|
27
|
-
"./test/**/*.ts",
|
|
28
|
-
"samples-dev/**/*.ts"
|
|
29
|
-
],
|
|
30
|
-
"exclude": [
|
|
31
|
-
"node_modules"
|
|
32
|
-
]
|
|
33
|
-
}
|