@azure/arm-managementpartner 0.1.0 → 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 +75 -75
- 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 +83 -34
- package/review/arm-managementpartner.api.md +160 -0
- package/rollup.config.js +184 -27
- package/src/aCEProvisioningManagementPartnerAPI.ts +71 -0
- package/src/index.ts +12 -0
- package/src/models/index.ts +166 -0
- package/{lib → src}/models/mappers.ts +68 -68
- package/src/models/parameters.ts +72 -0
- package/{lib → src}/operations/index.ts +4 -5
- package/src/operations/operation.ts +137 -0
- package/src/operations/partner.ts +160 -0
- 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 -676
- 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 -18
- package/esm/aCEProvisioningManagementPartnerAPI.d.ts.map +0 -1
- package/esm/aCEProvisioningManagementPartnerAPI.js +0 -33
- package/esm/aCEProvisioningManagementPartnerAPI.js.map +0 -1
- package/esm/aCEProvisioningManagementPartnerAPIContext.d.ts +0 -14
- package/esm/aCEProvisioningManagementPartnerAPIContext.d.ts.map +0 -1
- package/esm/aCEProvisioningManagementPartnerAPIContext.js +0 -51
- 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/lib/aCEProvisioningManagementPartnerAPI.ts +0 -43
- package/lib/aCEProvisioningManagementPartnerAPIContext.ts +0 -56
- package/lib/models/index.ts +0 -299
- package/lib/models/operationMappers.ts +0 -18
- package/lib/models/parameters.ts +0 -53
- package/lib/models/partnerMappers.ts +0 -17
- package/lib/operations/operation.ts +0 -125
- package/lib/operations/partner.ts +0 -236
|
@@ -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"));
|
|
@@ -0,0 +1,71 @@
|
|
|
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 coreAuth from "@azure/core-auth";
|
|
11
|
+
import { PartnerImpl, OperationImpl, PartnersImpl } from "./operations";
|
|
12
|
+
import { Partner, Operation, Partners } from "./operationsInterfaces";
|
|
13
|
+
import { ACEProvisioningManagementPartnerAPIOptionalParams } from "./models";
|
|
14
|
+
|
|
15
|
+
export class ACEProvisioningManagementPartnerAPI extends coreClient.ServiceClient {
|
|
16
|
+
$host: string;
|
|
17
|
+
apiVersion: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Initializes a new instance of the ACEProvisioningManagementPartnerAPI class.
|
|
21
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
22
|
+
* @param options The parameter options
|
|
23
|
+
*/
|
|
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
|
+
|
|
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}`;
|
|
46
|
+
|
|
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";
|
|
@@ -0,0 +1,166 @@
|
|
|
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
|
+
/** this is the error response code */
|
|
53
|
+
code?: string;
|
|
54
|
+
/** this is the extended error info message */
|
|
55
|
+
message?: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** this is the extended error info */
|
|
59
|
+
export interface ExtendedErrorInfo {
|
|
60
|
+
/** this is the error response code */
|
|
61
|
+
code?: string;
|
|
62
|
+
/** this is the extended error info message */
|
|
63
|
+
message?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** this is the management partner operations list */
|
|
67
|
+
export interface OperationList {
|
|
68
|
+
/** this is the operation response list */
|
|
69
|
+
value?: OperationResponse[];
|
|
70
|
+
/** Url to get the next page of items. */
|
|
71
|
+
nextLink?: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** this is the management partner operations response */
|
|
75
|
+
export interface OperationResponse {
|
|
76
|
+
/** this is the operation response name */
|
|
77
|
+
name?: string;
|
|
78
|
+
/** this is the operation display */
|
|
79
|
+
display?: OperationDisplay;
|
|
80
|
+
/** the is operation response origin information */
|
|
81
|
+
origin?: string;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** this is the management partner operation */
|
|
85
|
+
export interface OperationDisplay {
|
|
86
|
+
/** the is management partner provider */
|
|
87
|
+
provider?: string;
|
|
88
|
+
/** the is management partner resource */
|
|
89
|
+
resource?: string;
|
|
90
|
+
/** the is management partner operation */
|
|
91
|
+
operation?: string;
|
|
92
|
+
/** the is management partner operation description */
|
|
93
|
+
description?: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** Known values of {@link ManagementPartnerState} that the service accepts. */
|
|
97
|
+
export enum KnownManagementPartnerState {
|
|
98
|
+
Active = "Active",
|
|
99
|
+
Deleted = "Deleted"
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Defines values for ManagementPartnerState. \
|
|
104
|
+
* {@link KnownManagementPartnerState} can be used interchangeably with ManagementPartnerState,
|
|
105
|
+
* this enum contains the known values that the service supports.
|
|
106
|
+
* ### Known values supported by the service
|
|
107
|
+
* **Active** \
|
|
108
|
+
* **Deleted**
|
|
109
|
+
*/
|
|
110
|
+
export type ManagementPartnerState = string;
|
|
111
|
+
|
|
112
|
+
/** Optional parameters. */
|
|
113
|
+
export interface PartnerGetOptionalParams extends coreClient.OperationOptions {}
|
|
114
|
+
|
|
115
|
+
/** Contains response data for the get operation. */
|
|
116
|
+
export type PartnerGetResponse = PartnerResponse;
|
|
117
|
+
|
|
118
|
+
/** Optional parameters. */
|
|
119
|
+
export interface PartnerCreateOptionalParams
|
|
120
|
+
extends coreClient.OperationOptions {}
|
|
121
|
+
|
|
122
|
+
/** Contains response data for the create operation. */
|
|
123
|
+
export type PartnerCreateResponse = PartnerResponse;
|
|
124
|
+
|
|
125
|
+
/** Optional parameters. */
|
|
126
|
+
export interface PartnerUpdateOptionalParams
|
|
127
|
+
extends coreClient.OperationOptions {}
|
|
128
|
+
|
|
129
|
+
/** Contains response data for the update operation. */
|
|
130
|
+
export type PartnerUpdateResponse = PartnerResponse;
|
|
131
|
+
|
|
132
|
+
/** Optional parameters. */
|
|
133
|
+
export interface PartnerDeleteOptionalParams
|
|
134
|
+
extends coreClient.OperationOptions {}
|
|
135
|
+
|
|
136
|
+
/** Optional parameters. */
|
|
137
|
+
export interface OperationListOptionalParams
|
|
138
|
+
extends coreClient.OperationOptions {}
|
|
139
|
+
|
|
140
|
+
/** Contains response data for the list operation. */
|
|
141
|
+
export type OperationListResponse = OperationList;
|
|
142
|
+
|
|
143
|
+
/** Optional parameters. */
|
|
144
|
+
export interface OperationListNextOptionalParams
|
|
145
|
+
extends coreClient.OperationOptions {}
|
|
146
|
+
|
|
147
|
+
/** Contains response data for the listNext operation. */
|
|
148
|
+
export type OperationListNextResponse = OperationList;
|
|
149
|
+
|
|
150
|
+
/** Optional parameters. */
|
|
151
|
+
export interface PartnersGetOptionalParams
|
|
152
|
+
extends coreClient.OperationOptions {}
|
|
153
|
+
|
|
154
|
+
/** Contains response data for the get operation. */
|
|
155
|
+
export type PartnersGetResponse = PartnerResponse;
|
|
156
|
+
|
|
157
|
+
/** Optional parameters. */
|
|
158
|
+
export interface ACEProvisioningManagementPartnerAPIOptionalParams
|
|
159
|
+
extends coreClient.ServiceClientOptions {
|
|
160
|
+
/** server parameter */
|
|
161
|
+
$host?: string;
|
|
162
|
+
/** Api Version */
|
|
163
|
+
apiVersion?: string;
|
|
164
|
+
/** Overrides client endpoint. */
|
|
165
|
+
endpoint?: string;
|
|
166
|
+
}
|