@azure/arm-attestation 1.1.0 → 2.0.1-alpha.20220106.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/CHANGELOG.md +21 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +69 -80
- package/dist/index.js +1319 -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/src/attestationManagementClient.d.ts +20 -0
- package/dist-esm/src/attestationManagementClient.d.ts.map +1 -0
- package/dist-esm/src/attestationManagementClient.js +53 -0
- package/dist-esm/src/attestationManagementClient.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 +389 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +38 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +21 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +239 -164
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +15 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +138 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/attestationProviders.d.ts +65 -0
- package/dist-esm/src/operations/attestationProviders.d.ts.map +1 -0
- package/dist-esm/src/operations/attestationProviders.js +254 -0
- package/dist-esm/src/operations/attestationProviders.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/operations.d.ts +18 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +46 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +58 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +216 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/attestationProviders.d.ts +57 -0
- package/dist-esm/src/operationsInterfaces/attestationProviders.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/attestationProviders.js +9 -0
- package/dist-esm/src/operationsInterfaces/attestationProviders.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/operations.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +41 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/test/attestation_examples.d.ts +4 -0
- package/dist-esm/test/attestation_examples.d.ts.map +1 -0
- package/dist-esm/test/attestation_examples.js +94 -0
- package/dist-esm/test/attestation_examples.js.map +1 -0
- package/package.json +63 -22
- package/review/arm-attestation.api.md +346 -0
- package/rollup.config.js +181 -30
- package/src/attestationManagementClient.ts +74 -37
- package/src/index.ts +12 -0
- package/src/models/index.ts +299 -384
- package/src/models/mappers.ts +242 -162
- package/src/models/parameters.ts +106 -29
- package/src/operations/attestationProviders.ts +178 -315
- package/src/operations/index.ts +4 -5
- package/src/operations/operations.ts +29 -44
- package/src/operations/privateEndpointConnections.ts +277 -0
- package/src/operationsInterfaces/attestationProviders.ts +111 -0
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/operations.ts +21 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +78 -0
- package/tsconfig.json +3 -3
- package/types/arm-attestation.d.ts +565 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-attestation.js +0 -1115
- package/dist/arm-attestation.js.map +0 -1
- package/dist/arm-attestation.min.js +0 -1
- package/dist/arm-attestation.min.js.map +0 -1
- package/esm/attestationManagementClient.d.ts +0 -25
- package/esm/attestationManagementClient.d.ts.map +0 -1
- package/esm/attestationManagementClient.js +0 -39
- package/esm/attestationManagementClient.js.map +0 -1
- package/esm/attestationManagementClientContext.d.ts +0 -22
- package/esm/attestationManagementClientContext.d.ts.map +0 -1
- package/esm/attestationManagementClientContext.js +0 -61
- package/esm/attestationManagementClientContext.js.map +0 -1
- package/esm/models/attestationProvidersMappers.d.ts +0 -2
- package/esm/models/attestationProvidersMappers.d.ts.map +0 -1
- package/esm/models/attestationProvidersMappers.js +0 -9
- package/esm/models/attestationProvidersMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -492
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -19
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -8
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -81
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/attestationProviders.d.ts +0 -169
- package/esm/operations/attestationProviders.d.ts.map +0 -1
- package/esm/operations/attestationProviders.js +0 -277
- package/esm/operations/attestationProviders.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/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/src/attestationManagementClientContext.ts +0 -68
- package/src/models/attestationProvidersMappers.ts +0 -24
- package/src/models/operationsMappers.ts +0 -15
package/package.json
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/arm-attestation",
|
|
3
|
+
"sdk-type": "mgmt",
|
|
3
4
|
"author": "Microsoft Corporation",
|
|
4
|
-
"description": "
|
|
5
|
-
"version": "1.1
|
|
5
|
+
"description": "A generated SDK for AttestationManagementClient.",
|
|
6
|
+
"version": "2.0.1-alpha.20220106.1",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=12.0.0"
|
|
9
|
+
},
|
|
6
10
|
"dependencies": {
|
|
7
|
-
"@azure/
|
|
8
|
-
"@azure/
|
|
9
|
-
"@azure/core-auth": "^1.
|
|
10
|
-
"
|
|
11
|
+
"@azure/core-paging": "^1.2.0",
|
|
12
|
+
"@azure/core-client": "^1.0.0",
|
|
13
|
+
"@azure/core-auth": "^1.3.0",
|
|
14
|
+
"@azure/core-rest-pipeline": "^1.1.0",
|
|
15
|
+
"tslib": "^2.2.0"
|
|
11
16
|
},
|
|
12
17
|
"keywords": [
|
|
13
18
|
"node",
|
|
@@ -17,17 +22,27 @@
|
|
|
17
22
|
"isomorphic"
|
|
18
23
|
],
|
|
19
24
|
"license": "MIT",
|
|
20
|
-
"main": "./dist/
|
|
21
|
-
"module": "./esm/
|
|
22
|
-
"types": "./
|
|
25
|
+
"main": "./dist/index.js",
|
|
26
|
+
"module": "./dist-esm/src/index.js",
|
|
27
|
+
"types": "./types/arm-attestation.d.ts",
|
|
23
28
|
"devDependencies": {
|
|
24
|
-
"
|
|
25
|
-
"rollup": "
|
|
26
|
-
"rollup
|
|
29
|
+
"@microsoft/api-extractor": "^7.18.11",
|
|
30
|
+
"@rollup/plugin-commonjs": "11.0.2",
|
|
31
|
+
"@rollup/plugin-json": "^4.0.0",
|
|
32
|
+
"@rollup/plugin-multi-entry": "^3.0.0",
|
|
33
|
+
"@rollup/plugin-node-resolve": "^8.0.0",
|
|
34
|
+
"mkdirp": "^1.0.4",
|
|
35
|
+
"rollup": "^1.16.3",
|
|
27
36
|
"rollup-plugin-sourcemaps": "^0.4.2",
|
|
28
|
-
"
|
|
37
|
+
"typescript": "~4.2.0",
|
|
38
|
+
"uglify-js": "^3.4.9",
|
|
39
|
+
"rimraf": "^3.0.0",
|
|
40
|
+
"@azure/identity": "^2.0.1",
|
|
41
|
+
"@azure-tools/test-recorder": "^1.0.0",
|
|
42
|
+
"mocha": "^7.1.1",
|
|
43
|
+
"cross-env": "^7.0.2"
|
|
29
44
|
},
|
|
30
|
-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/
|
|
45
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/attestation/arm-attestation",
|
|
31
46
|
"repository": {
|
|
32
47
|
"type": "git",
|
|
33
48
|
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
|
@@ -40,19 +55,45 @@
|
|
|
40
55
|
"dist/**/*.js.map",
|
|
41
56
|
"dist/**/*.d.ts",
|
|
42
57
|
"dist/**/*.d.ts.map",
|
|
43
|
-
"esm/**/*.js",
|
|
44
|
-
"esm/**/*.js.map",
|
|
45
|
-
"esm/**/*.d.ts",
|
|
46
|
-
"esm/**/*.d.ts.map",
|
|
58
|
+
"dist-esm/**/*.js",
|
|
59
|
+
"dist-esm/**/*.js.map",
|
|
60
|
+
"dist-esm/**/*.d.ts",
|
|
61
|
+
"dist-esm/**/*.d.ts.map",
|
|
47
62
|
"src/**/*.ts",
|
|
48
63
|
"README.md",
|
|
64
|
+
"LICENSE",
|
|
49
65
|
"rollup.config.js",
|
|
50
|
-
"tsconfig.json"
|
|
66
|
+
"tsconfig.json",
|
|
67
|
+
"review/*",
|
|
68
|
+
"CHANGELOG.md",
|
|
69
|
+
"types/*"
|
|
51
70
|
],
|
|
52
71
|
"scripts": {
|
|
53
|
-
"build": "tsc && rollup -c
|
|
54
|
-
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/
|
|
55
|
-
"prepack": "npm
|
|
72
|
+
"build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
|
|
73
|
+
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
74
|
+
"prepack": "npm run build",
|
|
75
|
+
"pack": "npm pack 2>&1",
|
|
76
|
+
"extract-api": "api-extractor run --local",
|
|
77
|
+
"lint": "echo skipped",
|
|
78
|
+
"audit": "echo skipped",
|
|
79
|
+
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
80
|
+
"build:node": "echo skipped",
|
|
81
|
+
"build:browser": "echo skipped",
|
|
82
|
+
"build:test": "echo skipped",
|
|
83
|
+
"build:samples": "echo skipped.",
|
|
84
|
+
"check-format": "echo skipped",
|
|
85
|
+
"execute:samples": "echo skipped",
|
|
86
|
+
"format": "echo skipped",
|
|
87
|
+
"test": "npm run integration-test",
|
|
88
|
+
"test:node": "echo skipped",
|
|
89
|
+
"test:browser": "echo skipped",
|
|
90
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
91
|
+
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
|
92
|
+
"unit-test:browser": "echo skipped",
|
|
93
|
+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
94
|
+
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
|
|
95
|
+
"integration-test:browser": "echo skipped",
|
|
96
|
+
"docs": "echo skipped"
|
|
56
97
|
},
|
|
57
98
|
"sideEffects": false,
|
|
58
99
|
"autoPublish": true
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
## API Report File for "@azure/arm-attestation"
|
|
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 AttestationManagementClient extends coreClient.ServiceClient {
|
|
13
|
+
// (undocumented)
|
|
14
|
+
$host: string;
|
|
15
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AttestationManagementClientOptionalParams);
|
|
16
|
+
// (undocumented)
|
|
17
|
+
apiVersion: string;
|
|
18
|
+
// (undocumented)
|
|
19
|
+
attestationProviders: AttestationProviders;
|
|
20
|
+
// (undocumented)
|
|
21
|
+
operations: Operations;
|
|
22
|
+
// (undocumented)
|
|
23
|
+
privateEndpointConnections: PrivateEndpointConnections;
|
|
24
|
+
// (undocumented)
|
|
25
|
+
subscriptionId: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// @public
|
|
29
|
+
export interface AttestationManagementClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
30
|
+
$host?: string;
|
|
31
|
+
apiVersion?: string;
|
|
32
|
+
endpoint?: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// @public
|
|
36
|
+
export type AttestationProvider = TrackedResource & {
|
|
37
|
+
readonly systemData?: SystemData;
|
|
38
|
+
trustModel?: string;
|
|
39
|
+
status?: AttestationServiceStatus;
|
|
40
|
+
attestUri?: string;
|
|
41
|
+
readonly privateEndpointConnections?: PrivateEndpointConnection[];
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
// @public
|
|
45
|
+
export interface AttestationProviderListResult {
|
|
46
|
+
readonly systemData?: SystemData;
|
|
47
|
+
value?: AttestationProvider[];
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// @public
|
|
51
|
+
export interface AttestationProviders {
|
|
52
|
+
create(resourceGroupName: string, providerName: string, creationParams: AttestationServiceCreationParams, options?: AttestationProvidersCreateOptionalParams): Promise<AttestationProvidersCreateResponse>;
|
|
53
|
+
delete(resourceGroupName: string, providerName: string, options?: AttestationProvidersDeleteOptionalParams): Promise<void>;
|
|
54
|
+
get(resourceGroupName: string, providerName: string, options?: AttestationProvidersGetOptionalParams): Promise<AttestationProvidersGetResponse>;
|
|
55
|
+
getDefaultByLocation(location: string, options?: AttestationProvidersGetDefaultByLocationOptionalParams): Promise<AttestationProvidersGetDefaultByLocationResponse>;
|
|
56
|
+
list(options?: AttestationProvidersListOptionalParams): Promise<AttestationProvidersListResponse>;
|
|
57
|
+
listByResourceGroup(resourceGroupName: string, options?: AttestationProvidersListByResourceGroupOptionalParams): Promise<AttestationProvidersListByResourceGroupResponse>;
|
|
58
|
+
listDefault(options?: AttestationProvidersListDefaultOptionalParams): Promise<AttestationProvidersListDefaultResponse>;
|
|
59
|
+
update(resourceGroupName: string, providerName: string, updateParams: AttestationServicePatchParams, options?: AttestationProvidersUpdateOptionalParams): Promise<AttestationProvidersUpdateResponse>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// @public
|
|
63
|
+
export interface AttestationProvidersCreateOptionalParams extends coreClient.OperationOptions {
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// @public
|
|
67
|
+
export type AttestationProvidersCreateResponse = AttestationProvider;
|
|
68
|
+
|
|
69
|
+
// @public
|
|
70
|
+
export interface AttestationProvidersDeleteOptionalParams extends coreClient.OperationOptions {
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// @public
|
|
74
|
+
export interface AttestationProvidersGetDefaultByLocationOptionalParams extends coreClient.OperationOptions {
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// @public
|
|
78
|
+
export type AttestationProvidersGetDefaultByLocationResponse = AttestationProvider;
|
|
79
|
+
|
|
80
|
+
// @public
|
|
81
|
+
export interface AttestationProvidersGetOptionalParams extends coreClient.OperationOptions {
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// @public
|
|
85
|
+
export type AttestationProvidersGetResponse = AttestationProvider;
|
|
86
|
+
|
|
87
|
+
// @public
|
|
88
|
+
export interface AttestationProvidersListByResourceGroupOptionalParams extends coreClient.OperationOptions {
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// @public
|
|
92
|
+
export type AttestationProvidersListByResourceGroupResponse = AttestationProviderListResult;
|
|
93
|
+
|
|
94
|
+
// @public
|
|
95
|
+
export interface AttestationProvidersListDefaultOptionalParams extends coreClient.OperationOptions {
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// @public
|
|
99
|
+
export type AttestationProvidersListDefaultResponse = AttestationProviderListResult;
|
|
100
|
+
|
|
101
|
+
// @public
|
|
102
|
+
export interface AttestationProvidersListOptionalParams extends coreClient.OperationOptions {
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// @public
|
|
106
|
+
export type AttestationProvidersListResponse = AttestationProviderListResult;
|
|
107
|
+
|
|
108
|
+
// @public
|
|
109
|
+
export interface AttestationProvidersUpdateOptionalParams extends coreClient.OperationOptions {
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// @public
|
|
113
|
+
export type AttestationProvidersUpdateResponse = AttestationProvider;
|
|
114
|
+
|
|
115
|
+
// @public
|
|
116
|
+
export interface AttestationServiceCreationParams {
|
|
117
|
+
location: string;
|
|
118
|
+
properties: AttestationServiceCreationSpecificParams;
|
|
119
|
+
tags?: {
|
|
120
|
+
[propertyName: string]: string;
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// @public
|
|
125
|
+
export interface AttestationServiceCreationSpecificParams {
|
|
126
|
+
policySigningCertificates?: JsonWebKeySet;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// @public
|
|
130
|
+
export interface AttestationServicePatchParams {
|
|
131
|
+
tags?: {
|
|
132
|
+
[propertyName: string]: string;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// @public
|
|
137
|
+
export type AttestationServiceStatus = string;
|
|
138
|
+
|
|
139
|
+
// @public
|
|
140
|
+
export interface CloudError {
|
|
141
|
+
error?: CloudErrorBody;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// @public
|
|
145
|
+
export interface CloudErrorBody {
|
|
146
|
+
code?: string;
|
|
147
|
+
message?: string;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// @public
|
|
151
|
+
export type CreatedByType = string;
|
|
152
|
+
|
|
153
|
+
// @public (undocumented)
|
|
154
|
+
interface JsonWebKey_2 {
|
|
155
|
+
alg?: string;
|
|
156
|
+
crv?: string;
|
|
157
|
+
d?: string;
|
|
158
|
+
dp?: string;
|
|
159
|
+
dq?: string;
|
|
160
|
+
e?: string;
|
|
161
|
+
k?: string;
|
|
162
|
+
kid?: string;
|
|
163
|
+
kty: string;
|
|
164
|
+
n?: string;
|
|
165
|
+
p?: string;
|
|
166
|
+
q?: string;
|
|
167
|
+
qi?: string;
|
|
168
|
+
use?: string;
|
|
169
|
+
x?: string;
|
|
170
|
+
x5C?: string[];
|
|
171
|
+
y?: string;
|
|
172
|
+
}
|
|
173
|
+
export { JsonWebKey_2 as JsonWebKey }
|
|
174
|
+
|
|
175
|
+
// @public (undocumented)
|
|
176
|
+
export interface JsonWebKeySet {
|
|
177
|
+
keys?: JsonWebKey_2[];
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// @public
|
|
181
|
+
export enum KnownAttestationServiceStatus {
|
|
182
|
+
// (undocumented)
|
|
183
|
+
Error = "Error",
|
|
184
|
+
// (undocumented)
|
|
185
|
+
NotReady = "NotReady",
|
|
186
|
+
// (undocumented)
|
|
187
|
+
Ready = "Ready"
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// @public
|
|
191
|
+
export enum KnownCreatedByType {
|
|
192
|
+
// (undocumented)
|
|
193
|
+
Application = "Application",
|
|
194
|
+
// (undocumented)
|
|
195
|
+
Key = "Key",
|
|
196
|
+
// (undocumented)
|
|
197
|
+
ManagedIdentity = "ManagedIdentity",
|
|
198
|
+
// (undocumented)
|
|
199
|
+
User = "User"
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// @public
|
|
203
|
+
export enum KnownPrivateEndpointConnectionProvisioningState {
|
|
204
|
+
// (undocumented)
|
|
205
|
+
Creating = "Creating",
|
|
206
|
+
// (undocumented)
|
|
207
|
+
Deleting = "Deleting",
|
|
208
|
+
// (undocumented)
|
|
209
|
+
Failed = "Failed",
|
|
210
|
+
// (undocumented)
|
|
211
|
+
Succeeded = "Succeeded"
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// @public
|
|
215
|
+
export enum KnownPrivateEndpointServiceConnectionStatus {
|
|
216
|
+
// (undocumented)
|
|
217
|
+
Approved = "Approved",
|
|
218
|
+
// (undocumented)
|
|
219
|
+
Pending = "Pending",
|
|
220
|
+
// (undocumented)
|
|
221
|
+
Rejected = "Rejected"
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// @public
|
|
225
|
+
export interface OperationList {
|
|
226
|
+
readonly systemData?: SystemData;
|
|
227
|
+
value?: OperationsDefinition[];
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// @public
|
|
231
|
+
export interface Operations {
|
|
232
|
+
list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
// @public
|
|
236
|
+
export interface OperationsDefinition {
|
|
237
|
+
display?: OperationsDisplayDefinition;
|
|
238
|
+
name?: string;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// @public
|
|
242
|
+
export interface OperationsDisplayDefinition {
|
|
243
|
+
description?: string;
|
|
244
|
+
operation?: string;
|
|
245
|
+
provider?: string;
|
|
246
|
+
resource?: string;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// @public
|
|
250
|
+
export interface OperationsListOptionalParams extends coreClient.OperationOptions {
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// @public
|
|
254
|
+
export type OperationsListResponse = OperationList;
|
|
255
|
+
|
|
256
|
+
// @public
|
|
257
|
+
export interface PrivateEndpoint {
|
|
258
|
+
readonly id?: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// @public
|
|
262
|
+
export type PrivateEndpointConnection = Resource & {
|
|
263
|
+
privateEndpoint?: PrivateEndpoint;
|
|
264
|
+
privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
|
|
265
|
+
readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
// @public
|
|
269
|
+
export interface PrivateEndpointConnectionListResult {
|
|
270
|
+
value?: PrivateEndpointConnection[];
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
// @public
|
|
274
|
+
export type PrivateEndpointConnectionProvisioningState = string;
|
|
275
|
+
|
|
276
|
+
// @public
|
|
277
|
+
export interface PrivateEndpointConnections {
|
|
278
|
+
create(resourceGroupName: string, providerName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOptionalParams): Promise<PrivateEndpointConnectionsCreateResponse>;
|
|
279
|
+
delete(resourceGroupName: string, providerName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<void>;
|
|
280
|
+
get(resourceGroupName: string, providerName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise<PrivateEndpointConnectionsGetResponse>;
|
|
281
|
+
list(resourceGroupName: string, providerName: string, options?: PrivateEndpointConnectionsListOptionalParams): PagedAsyncIterableIterator<PrivateEndpointConnection>;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
// @public
|
|
285
|
+
export interface PrivateEndpointConnectionsCreateOptionalParams extends coreClient.OperationOptions {
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// @public
|
|
289
|
+
export type PrivateEndpointConnectionsCreateResponse = PrivateEndpointConnection;
|
|
290
|
+
|
|
291
|
+
// @public
|
|
292
|
+
export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions {
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
// @public
|
|
296
|
+
export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// @public
|
|
300
|
+
export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection;
|
|
301
|
+
|
|
302
|
+
// @public
|
|
303
|
+
export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions {
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// @public
|
|
307
|
+
export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult;
|
|
308
|
+
|
|
309
|
+
// @public
|
|
310
|
+
export type PrivateEndpointServiceConnectionStatus = string;
|
|
311
|
+
|
|
312
|
+
// @public
|
|
313
|
+
export interface PrivateLinkServiceConnectionState {
|
|
314
|
+
actionsRequired?: string;
|
|
315
|
+
description?: string;
|
|
316
|
+
status?: PrivateEndpointServiceConnectionStatus;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// @public
|
|
320
|
+
export interface Resource {
|
|
321
|
+
readonly id?: string;
|
|
322
|
+
readonly name?: string;
|
|
323
|
+
readonly type?: string;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
// @public
|
|
327
|
+
export interface SystemData {
|
|
328
|
+
createdAt?: Date;
|
|
329
|
+
createdBy?: string;
|
|
330
|
+
createdByType?: CreatedByType;
|
|
331
|
+
lastModifiedAt?: Date;
|
|
332
|
+
lastModifiedBy?: string;
|
|
333
|
+
lastModifiedByType?: CreatedByType;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
// @public
|
|
337
|
+
export type TrackedResource = Resource & {
|
|
338
|
+
tags?: {
|
|
339
|
+
[propertyName: string]: string;
|
|
340
|
+
};
|
|
341
|
+
location: string;
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
// (No @packageDocumentation comment for this package)
|
|
345
|
+
|
|
346
|
+
```
|
package/rollup.config.js
CHANGED
|
@@ -1,37 +1,188 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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";
|
|
3
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
|
|
4
66
|
|
|
5
67
|
/**
|
|
6
|
-
*
|
|
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.
|
|
7
70
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Construct a warning handler for the shared rollup configuration
|
|
95
|
+
* that ignores certain warnings that are not relevant to testing.
|
|
96
|
+
*/
|
|
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/**"]
|
|
22
113
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
|
35
158
|
};
|
|
36
159
|
|
|
37
|
-
export
|
|
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"));
|