@azure/arm-managementpartner 1.2.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -81
- package/dist/index.js +634 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/deletePartnerDetails.d.ts +2 -0
- package/dist-esm/samples-dev/deletePartnerDetails.d.ts.map +1 -0
- package/dist-esm/samples-dev/deletePartnerDetails.js +29 -0
- package/dist-esm/samples-dev/deletePartnerDetails.js.map +1 -0
- package/dist-esm/samples-dev/getOperations.d.ts +2 -0
- package/dist-esm/samples-dev/getOperations.d.ts.map +1 -0
- package/dist-esm/samples-dev/getOperations.js +42 -0
- package/dist-esm/samples-dev/getOperations.js.map +1 -0
- package/dist-esm/samples-dev/getPartnerDetails.d.ts +2 -0
- package/dist-esm/samples-dev/getPartnerDetails.d.ts.map +1 -0
- package/dist-esm/samples-dev/getPartnerDetails.js +28 -0
- package/dist-esm/samples-dev/getPartnerDetails.js.map +1 -0
- package/dist-esm/samples-dev/patchPartnerDetails.d.ts +2 -0
- package/dist-esm/samples-dev/patchPartnerDetails.d.ts.map +1 -0
- package/dist-esm/samples-dev/patchPartnerDetails.js +29 -0
- package/dist-esm/samples-dev/patchPartnerDetails.js.map +1 -0
- package/dist-esm/samples-dev/putPartnerDetails.d.ts +2 -0
- package/dist-esm/samples-dev/putPartnerDetails.d.ts.map +1 -0
- package/dist-esm/samples-dev/putPartnerDetails.js +29 -0
- package/dist-esm/samples-dev/putPartnerDetails.js.map +1 -0
- package/dist-esm/src/aCEProvisioningManagementPartnerAPI.d.ts +18 -0
- package/dist-esm/src/aCEProvisioningManagementPartnerAPI.d.ts.map +1 -0
- package/dist-esm/src/aCEProvisioningManagementPartnerAPI.js +47 -0
- package/dist-esm/src/aCEProvisioningManagementPartnerAPI.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +137 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +14 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +8 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +67 -66
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +7 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +33 -22
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +4 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +11 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operation.d.ts +32 -0
- package/dist-esm/src/operations/operation.d.ts.map +1 -0
- package/dist-esm/src/operations/operation.js +120 -0
- package/dist-esm/src/operations/operation.js.map +1 -0
- package/dist-esm/src/operations/partner.d.ts +37 -0
- package/dist-esm/src/operations/partner.d.ts.map +1 -0
- package/dist-esm/src/operations/partner.js +117 -0
- package/dist-esm/src/operations/partner.js.map +1 -0
- package/dist-esm/src/operations/partners.d.ts +18 -0
- package/dist-esm/src/operations/partners.d.ts.map +1 -0
- package/dist-esm/src/operations/partners.js +46 -0
- package/dist-esm/src/operations/partners.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +11 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operation.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operation.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operation.js +9 -0
- package/dist-esm/src/operationsInterfaces/operation.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/partner.d.ts +29 -0
- package/dist-esm/src/operationsInterfaces/partner.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/partner.js +9 -0
- package/dist-esm/src/operationsInterfaces/partner.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/partners.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/partners.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/partners.js +9 -0
- package/dist-esm/src/operationsInterfaces/partners.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +81 -34
- package/review/arm-managementpartner.api.md +160 -0
- package/rollup.config.js +184 -27
- package/src/aCEProvisioningManagementPartnerAPI.ts +59 -37
- package/src/index.ts +12 -0
- package/src/models/index.ts +117 -250
- package/src/models/mappers.ts +68 -68
- package/src/models/parameters.ts +42 -23
- package/src/operations/index.ts +4 -5
- package/src/operations/operation.ts +87 -75
- package/src/operations/partner.ts +76 -152
- package/src/operations/partners.ts +54 -0
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/operation.ts +22 -0
- package/src/operationsInterfaces/partner.ts +57 -0
- package/src/operationsInterfaces/partners.ts +18 -0
- package/tsconfig.json +6 -5
- package/types/arm-managementpartner.d.ts +222 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-managementpartner.js +0 -686
- package/dist/arm-managementpartner.js.map +0 -1
- package/dist/arm-managementpartner.min.js +0 -1
- package/dist/arm-managementpartner.min.js.map +0 -1
- package/esm/aCEProvisioningManagementPartnerAPI.d.ts +0 -24
- package/esm/aCEProvisioningManagementPartnerAPI.d.ts.map +0 -1
- package/esm/aCEProvisioningManagementPartnerAPI.js +0 -38
- package/esm/aCEProvisioningManagementPartnerAPI.js.map +0 -1
- package/esm/aCEProvisioningManagementPartnerAPIContext.d.ts +0 -20
- package/esm/aCEProvisioningManagementPartnerAPIContext.d.ts.map +0 -1
- package/esm/aCEProvisioningManagementPartnerAPIContext.js +0 -56
- package/esm/aCEProvisioningManagementPartnerAPIContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -273
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -10
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationMappers.d.ts +0 -2
- package/esm/models/operationMappers.d.ts.map +0 -1
- package/esm/models/operationMappers.js +0 -11
- package/esm/models/operationMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -6
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/partnerMappers.d.ts +0 -2
- package/esm/models/partnerMappers.d.ts.map +0 -1
- package/esm/models/partnerMappers.js +0 -11
- package/esm/models/partnerMappers.js.map +0 -1
- package/esm/operations/index.d.ts +0 -3
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -12
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operation.d.ts +0 -48
- package/esm/operations/operation.d.ts.map +0 -1
- package/esm/operations/operation.js +0 -77
- package/esm/operations/operation.js.map +0 -1
- package/esm/operations/partner.d.ts +0 -89
- package/esm/operations/partner.d.ts.map +0 -1
- package/esm/operations/partner.js +0 -137
- package/esm/operations/partner.js.map +0 -1
- package/src/aCEProvisioningManagementPartnerAPIContext.ts +0 -62
- package/src/models/operationMappers.ts +0 -18
- package/src/models/partnerMappers.ts +0 -17
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
## API Report File for "@azure/arm-managementpartner"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import * as coreAuth from '@azure/core-auth';
|
|
8
|
+
import * as coreClient from '@azure/core-client';
|
|
9
|
+
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
10
|
+
|
|
11
|
+
// @public (undocumented)
|
|
12
|
+
export class ACEProvisioningManagementPartnerAPI extends coreClient.ServiceClient {
|
|
13
|
+
// (undocumented)
|
|
14
|
+
$host: string;
|
|
15
|
+
constructor(credentials: coreAuth.TokenCredential, options?: ACEProvisioningManagementPartnerAPIOptionalParams);
|
|
16
|
+
// (undocumented)
|
|
17
|
+
apiVersion: string;
|
|
18
|
+
// (undocumented)
|
|
19
|
+
operation: Operation;
|
|
20
|
+
// (undocumented)
|
|
21
|
+
partner: Partner;
|
|
22
|
+
// (undocumented)
|
|
23
|
+
partners: Partners;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// @public
|
|
27
|
+
export interface ACEProvisioningManagementPartnerAPIOptionalParams extends coreClient.ServiceClientOptions {
|
|
28
|
+
$host?: string;
|
|
29
|
+
apiVersion?: string;
|
|
30
|
+
endpoint?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// @public
|
|
34
|
+
export interface ErrorModel {
|
|
35
|
+
code?: string;
|
|
36
|
+
error?: ExtendedErrorInfo;
|
|
37
|
+
message?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// @public
|
|
41
|
+
export interface ExtendedErrorInfo {
|
|
42
|
+
code?: string;
|
|
43
|
+
message?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// @public
|
|
47
|
+
export enum KnownManagementPartnerState {
|
|
48
|
+
// (undocumented)
|
|
49
|
+
Active = "Active",
|
|
50
|
+
// (undocumented)
|
|
51
|
+
Deleted = "Deleted"
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// @public
|
|
55
|
+
export type ManagementPartnerState = string;
|
|
56
|
+
|
|
57
|
+
// @public
|
|
58
|
+
export interface Operation {
|
|
59
|
+
list(options?: OperationListOptionalParams): PagedAsyncIterableIterator<OperationResponse>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// @public
|
|
63
|
+
export interface OperationDisplay {
|
|
64
|
+
description?: string;
|
|
65
|
+
operation?: string;
|
|
66
|
+
provider?: string;
|
|
67
|
+
resource?: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// @public
|
|
71
|
+
export interface OperationList {
|
|
72
|
+
nextLink?: string;
|
|
73
|
+
value?: OperationResponse[];
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// @public
|
|
77
|
+
export interface OperationListNextOptionalParams extends coreClient.OperationOptions {
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// @public
|
|
81
|
+
export type OperationListNextResponse = OperationList;
|
|
82
|
+
|
|
83
|
+
// @public
|
|
84
|
+
export interface OperationListOptionalParams extends coreClient.OperationOptions {
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// @public
|
|
88
|
+
export type OperationListResponse = OperationList;
|
|
89
|
+
|
|
90
|
+
// @public
|
|
91
|
+
export interface OperationResponse {
|
|
92
|
+
display?: OperationDisplay;
|
|
93
|
+
name?: string;
|
|
94
|
+
origin?: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// @public
|
|
98
|
+
export interface Partner {
|
|
99
|
+
create(partnerId: string, options?: PartnerCreateOptionalParams): Promise<PartnerCreateResponse>;
|
|
100
|
+
delete(partnerId: string, options?: PartnerDeleteOptionalParams): Promise<void>;
|
|
101
|
+
get(partnerId: string, options?: PartnerGetOptionalParams): Promise<PartnerGetResponse>;
|
|
102
|
+
update(partnerId: string, options?: PartnerUpdateOptionalParams): Promise<PartnerUpdateResponse>;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// @public
|
|
106
|
+
export interface PartnerCreateOptionalParams extends coreClient.OperationOptions {
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// @public
|
|
110
|
+
export type PartnerCreateResponse = PartnerResponse;
|
|
111
|
+
|
|
112
|
+
// @public
|
|
113
|
+
export interface PartnerDeleteOptionalParams extends coreClient.OperationOptions {
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// @public
|
|
117
|
+
export interface PartnerGetOptionalParams extends coreClient.OperationOptions {
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// @public
|
|
121
|
+
export type PartnerGetResponse = PartnerResponse;
|
|
122
|
+
|
|
123
|
+
// @public
|
|
124
|
+
export interface PartnerResponse {
|
|
125
|
+
createdTime?: Date;
|
|
126
|
+
etag?: number;
|
|
127
|
+
readonly id?: string;
|
|
128
|
+
readonly name?: string;
|
|
129
|
+
objectId?: string;
|
|
130
|
+
partnerId?: string;
|
|
131
|
+
partnerName?: string;
|
|
132
|
+
state?: ManagementPartnerState;
|
|
133
|
+
tenantId?: string;
|
|
134
|
+
readonly type?: string;
|
|
135
|
+
updatedTime?: Date;
|
|
136
|
+
version?: number;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// @public
|
|
140
|
+
export interface Partners {
|
|
141
|
+
get(options?: PartnersGetOptionalParams): Promise<PartnersGetResponse>;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// @public
|
|
145
|
+
export interface PartnersGetOptionalParams extends coreClient.OperationOptions {
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// @public
|
|
149
|
+
export type PartnersGetResponse = PartnerResponse;
|
|
150
|
+
|
|
151
|
+
// @public
|
|
152
|
+
export interface PartnerUpdateOptionalParams extends coreClient.OperationOptions {
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// @public
|
|
156
|
+
export type PartnerUpdateResponse = PartnerResponse;
|
|
157
|
+
|
|
158
|
+
// (No @packageDocumentation comment for this package)
|
|
159
|
+
|
|
160
|
+
```
|
package/rollup.config.js
CHANGED
|
@@ -1,31 +1,188 @@
|
|
|
1
|
-
|
|
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 nodeResolve from "@rollup/plugin-node-resolve";
|
|
10
|
+
import cjs from "@rollup/plugin-commonjs";
|
|
11
|
+
import sourcemaps from "rollup-plugin-sourcemaps";
|
|
12
|
+
import multiEntry from "@rollup/plugin-multi-entry";
|
|
13
|
+
import json from "@rollup/plugin-json";
|
|
14
|
+
|
|
15
|
+
import nodeBuiltins from "builtin-modules";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
|
|
19
|
+
*
|
|
20
|
+
* NOTE: this manual configuration is only needed because OpenTelemetry uses an
|
|
21
|
+
* __exportStar downleveled helper function to declare its exports which confuses
|
|
22
|
+
* rollup's automatic discovery mechanism.
|
|
23
|
+
*
|
|
24
|
+
* @returns an object reference that can be `...`'d into your cjs() configuration.
|
|
25
|
+
*/
|
|
26
|
+
export function openTelemetryCommonJs() {
|
|
27
|
+
const namedExports = {};
|
|
28
|
+
|
|
29
|
+
for (const key of [
|
|
30
|
+
"@opentelemetry/api",
|
|
31
|
+
"@azure/core-tracing/node_modules/@opentelemetry/api"
|
|
32
|
+
]) {
|
|
33
|
+
namedExports[key] = [
|
|
34
|
+
"SpanKind",
|
|
35
|
+
"TraceFlags",
|
|
36
|
+
"getSpan",
|
|
37
|
+
"setSpan",
|
|
38
|
+
"SpanStatusCode",
|
|
39
|
+
"getSpanContext",
|
|
40
|
+
"setSpanContext"
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
|
|
45
|
+
|
|
46
|
+
for (const version of releasedOpenTelemetryVersions) {
|
|
47
|
+
namedExports[
|
|
48
|
+
// working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
|
|
49
|
+
`../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
|
|
50
|
+
] = [
|
|
51
|
+
"SpanKind",
|
|
52
|
+
"TraceFlags",
|
|
53
|
+
"getSpan",
|
|
54
|
+
"setSpan",
|
|
55
|
+
"StatusCode",
|
|
56
|
+
"CanonicalCode",
|
|
57
|
+
"getSpanContext",
|
|
58
|
+
"setSpanContext"
|
|
59
|
+
];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return namedExports;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// #region Warning Handler
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* A function that can determine whether a rollupwarning should be ignored. If
|
|
69
|
+
* the function returns `true`, then the warning will not be displayed.
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
function ignoreNiseSinonEvalWarnings(warning) {
|
|
73
|
+
return (
|
|
74
|
+
warning.code === "EVAL" &&
|
|
75
|
+
warning.id &&
|
|
76
|
+
(warning.id.includes("node_modules/nise") ||
|
|
77
|
+
warning.id.includes("node_modules/sinon")) === true
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function ignoreChaiCircularDependencyWarnings(warning) {
|
|
82
|
+
return (
|
|
83
|
+
warning.code === "CIRCULAR_DEPENDENCY" &&
|
|
84
|
+
warning.importer && warning.importer.includes("node_modules/chai") === true
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const warningInhibitors = [
|
|
89
|
+
ignoreChaiCircularDependencyWarnings,
|
|
90
|
+
ignoreNiseSinonEvalWarnings
|
|
91
|
+
];
|
|
92
|
+
|
|
2
93
|
/**
|
|
3
|
-
*
|
|
94
|
+
* Construct a warning handler for the shared rollup configuration
|
|
95
|
+
* that ignores certain warnings that are not relevant to testing.
|
|
4
96
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
97
|
+
function makeOnWarnForTesting() {
|
|
98
|
+
return (warning, warn) => {
|
|
99
|
+
// If every inhibitor returns false (i.e. no inhibitors), then show the warning
|
|
100
|
+
if (warningInhibitors.every((inhib) => !inhib(warning))) {
|
|
101
|
+
warn(warning);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// #endregion
|
|
107
|
+
|
|
108
|
+
function makeBrowserTestConfig() {
|
|
109
|
+
const config = {
|
|
110
|
+
input: {
|
|
111
|
+
include: ["dist-esm/test/**/*.spec.js"],
|
|
112
|
+
exclude: ["dist-esm/test/**/node/**"]
|
|
16
113
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
114
|
+
output: {
|
|
115
|
+
file: `dist-test/index.browser.js`,
|
|
116
|
+
format: "umd",
|
|
117
|
+
sourcemap: true
|
|
118
|
+
},
|
|
119
|
+
preserveSymlinks: false,
|
|
120
|
+
plugins: [
|
|
121
|
+
multiEntry({ exports: false }),
|
|
122
|
+
nodeResolve({
|
|
123
|
+
mainFields: ["module", "browser"]
|
|
124
|
+
}),
|
|
125
|
+
cjs({
|
|
126
|
+
namedExports: {
|
|
127
|
+
// Chai's strange internal architecture makes it impossible to statically
|
|
128
|
+
// analyze its exports.
|
|
129
|
+
chai: [
|
|
130
|
+
"version",
|
|
131
|
+
"use",
|
|
132
|
+
"util",
|
|
133
|
+
"config",
|
|
134
|
+
"expect",
|
|
135
|
+
"should",
|
|
136
|
+
"assert"
|
|
137
|
+
],
|
|
138
|
+
...openTelemetryCommonJs()
|
|
139
|
+
}
|
|
140
|
+
}),
|
|
141
|
+
json(),
|
|
142
|
+
sourcemaps()
|
|
143
|
+
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
|
144
|
+
],
|
|
145
|
+
onwarn: makeOnWarnForTesting(),
|
|
146
|
+
// Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
|
|
147
|
+
// rollup started respecting the "sideEffects" field in package.json. Since
|
|
148
|
+
// our package.json sets "sideEffects=false", this also applies to test
|
|
149
|
+
// code, which causes all tests to be removed by tree-shaking.
|
|
150
|
+
treeshake: false
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
return config;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const defaultConfigurationOptions = {
|
|
157
|
+
disableBrowserBundle: false
|
|
30
158
|
};
|
|
31
|
-
|
|
159
|
+
|
|
160
|
+
export function makeConfig(pkg, options) {
|
|
161
|
+
options = {
|
|
162
|
+
...defaultConfigurationOptions,
|
|
163
|
+
...(options || {})
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
const baseConfig = {
|
|
167
|
+
// Use the package's module field if it has one
|
|
168
|
+
input: pkg["module"] || "dist-esm/src/index.js",
|
|
169
|
+
external: [
|
|
170
|
+
...nodeBuiltins,
|
|
171
|
+
...Object.keys(pkg.dependencies),
|
|
172
|
+
...Object.keys(pkg.devDependencies)
|
|
173
|
+
],
|
|
174
|
+
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
|
175
|
+
preserveSymlinks: false,
|
|
176
|
+
plugins: [sourcemaps(), nodeResolve(), cjs()]
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
const config = [baseConfig];
|
|
180
|
+
|
|
181
|
+
if (!options.disableBrowserBundle) {
|
|
182
|
+
config.push(makeBrowserTestConfig());
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
return config;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export default makeConfig(require("./package.json"));
|
|
@@ -1,49 +1,71 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import * as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { ACEProvisioningManagementPartnerAPIContext } from "./aCEProvisioningManagementPartnerAPIContext";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as coreAuth from "@azure/core-auth";
|
|
11
|
+
import { PartnerImpl, OperationImpl, PartnersImpl } from "./operations";
|
|
12
|
+
import { Partner, Operation, Partners } from "./operationsInterfaces";
|
|
13
|
+
import { ACEProvisioningManagementPartnerAPIOptionalParams } from "./models";
|
|
17
14
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
partner: operations.Partner;
|
|
22
|
-
operation: operations.Operation;
|
|
15
|
+
export class ACEProvisioningManagementPartnerAPI extends coreClient.ServiceClient {
|
|
16
|
+
$host: string;
|
|
17
|
+
apiVersion: string;
|
|
23
18
|
|
|
24
19
|
/**
|
|
25
20
|
* Initializes a new instance of the ACEProvisioningManagementPartnerAPI class.
|
|
26
|
-
* @param credentials
|
|
27
|
-
*
|
|
28
|
-
* more information about these credentials, see
|
|
29
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
30
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
31
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
32
|
-
* @param [options] The parameter options
|
|
21
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
22
|
+
* @param options The parameter options
|
|
33
23
|
*/
|
|
34
|
-
constructor(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
24
|
+
constructor(
|
|
25
|
+
credentials: coreAuth.TokenCredential,
|
|
26
|
+
options?: ACEProvisioningManagementPartnerAPIOptionalParams
|
|
27
|
+
) {
|
|
28
|
+
if (credentials === undefined) {
|
|
29
|
+
throw new Error("'credentials' cannot be null");
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Initializing default values for options
|
|
33
|
+
if (!options) {
|
|
34
|
+
options = {};
|
|
35
|
+
}
|
|
36
|
+
const defaults: ACEProvisioningManagementPartnerAPIOptionalParams = {
|
|
37
|
+
requestContentType: "application/json; charset=utf-8",
|
|
38
|
+
credential: credentials
|
|
39
|
+
};
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
const packageDetails = `azsdk-js-arm-managementpartner/2.0.0`;
|
|
42
|
+
const userAgentPrefix =
|
|
43
|
+
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
44
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
45
|
+
: `${packageDetails}`;
|
|
42
46
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
if (!options.credentialScopes) {
|
|
48
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
49
|
+
}
|
|
50
|
+
const optionsWithDefaults = {
|
|
51
|
+
...defaults,
|
|
52
|
+
...options,
|
|
53
|
+
userAgentOptions: {
|
|
54
|
+
userAgentPrefix
|
|
55
|
+
},
|
|
56
|
+
baseUri: options.endpoint || "https://management.azure.com"
|
|
57
|
+
};
|
|
58
|
+
super(optionsWithDefaults);
|
|
59
|
+
|
|
60
|
+
// Assigning values to Constant parameters
|
|
61
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
62
|
+
this.apiVersion = options.apiVersion || "2018-02-01";
|
|
63
|
+
this.partner = new PartnerImpl(this);
|
|
64
|
+
this.operation = new OperationImpl(this);
|
|
65
|
+
this.partners = new PartnersImpl(this);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
partner: Partner;
|
|
69
|
+
operation: Operation;
|
|
70
|
+
partners: Partners;
|
|
71
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
/// <reference lib="esnext.asynciterable" />
|
|
10
|
+
export * from "./models";
|
|
11
|
+
export { ACEProvisioningManagementPartnerAPI } from "./aCEProvisioningManagementPartnerAPI";
|
|
12
|
+
export * from "./operationsInterfaces";
|