@azure/arm-attestation 2.0.3-alpha.20221102.1 → 2.1.0-alpha.20221117.2
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 +9 -11
- package/dist/index.js +101 -11
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/attestationManagementClient.d.ts +2 -0
- package/dist-esm/src/attestationManagementClient.d.ts.map +1 -1
- package/dist-esm/src/attestationManagementClient.js +54 -6
- package/dist-esm/src/attestationManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +20 -6
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +14 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +8 -4
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/attestation_examples.d.ts.map +1 -1
- package/dist-esm/test/attestation_examples.js +16 -18
- package/dist-esm/test/attestation_examples.js.map +1 -1
- package/package.json +13 -9
- package/review/arm-attestation.api.md +13 -24
- package/src/attestationManagementClient.ts +69 -5
- package/src/index.ts +1 -0
- package/src/models/index.ts +20 -6
- package/src/operations/privateEndpointConnections.ts +15 -5
- package/src/pagingHelper.ts +39 -0
- package/types/arm-attestation.d.ts +31 -6
package/package.json
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for AttestationManagementClient.",
|
|
6
|
-
"version": "2.0
|
|
6
|
+
"version": "2.1.0-alpha.20221117.2",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=14.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@azure/core-paging": "^1.2.0",
|
|
12
|
-
"@azure/core-client": "^1.
|
|
12
|
+
"@azure/core-client": "^1.6.1",
|
|
13
13
|
"@azure/core-auth": "^1.3.0",
|
|
14
|
-
"@azure/core-rest-pipeline": "^1.
|
|
14
|
+
"@azure/core-rest-pipeline": "^1.8.0",
|
|
15
15
|
"tslib": "^2.2.0"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
@@ -34,13 +34,18 @@
|
|
|
34
34
|
"mkdirp": "^1.0.4",
|
|
35
35
|
"rollup": "^2.66.1",
|
|
36
36
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
37
|
-
"typescript": "~4.
|
|
37
|
+
"typescript": "~4.8.0",
|
|
38
38
|
"uglify-js": "^3.4.9",
|
|
39
39
|
"rimraf": "^3.0.0",
|
|
40
40
|
"@azure/identity": "^2.0.1",
|
|
41
|
-
"@azure-tools/test-recorder": "^
|
|
41
|
+
"@azure-tools/test-recorder": "^2.0.0",
|
|
42
|
+
"@azure-tools/test-credential": ">=1.0.0-alpha <1.0.0-alphb",
|
|
42
43
|
"mocha": "^7.1.1",
|
|
43
|
-
"
|
|
44
|
+
"@types/chai": "^4.2.8",
|
|
45
|
+
"chai": "^4.2.0",
|
|
46
|
+
"cross-env": "^7.0.2",
|
|
47
|
+
"@types/node": "^14.0.0",
|
|
48
|
+
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb"
|
|
44
49
|
},
|
|
45
50
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/attestation/arm-attestation",
|
|
46
51
|
"repository": {
|
|
@@ -91,9 +96,8 @@
|
|
|
91
96
|
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
|
92
97
|
"unit-test:browser": "echo skipped",
|
|
93
98
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
94
|
-
"integration-test:node": "
|
|
95
|
-
"integration-test:browser": "echo skipped"
|
|
96
|
-
"docs": "echo skipped"
|
|
99
|
+
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
|
|
100
|
+
"integration-test:browser": "echo skipped"
|
|
97
101
|
},
|
|
98
102
|
"sideEffects": false,
|
|
99
103
|
"//metadata": {
|
|
@@ -33,13 +33,13 @@ export interface AttestationManagementClientOptionalParams extends coreClient.Se
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
// @public
|
|
36
|
-
export
|
|
37
|
-
readonly systemData?: SystemData;
|
|
38
|
-
trustModel?: string;
|
|
39
|
-
status?: AttestationServiceStatus;
|
|
36
|
+
export interface AttestationProvider extends TrackedResource {
|
|
40
37
|
attestUri?: string;
|
|
41
38
|
readonly privateEndpointConnections?: PrivateEndpointConnection[];
|
|
42
|
-
|
|
39
|
+
status?: AttestationServiceStatus;
|
|
40
|
+
readonly systemData?: SystemData;
|
|
41
|
+
trustModel?: string;
|
|
42
|
+
}
|
|
43
43
|
|
|
44
44
|
// @public
|
|
45
45
|
export interface AttestationProviderListResult {
|
|
@@ -150,6 +150,9 @@ export interface CloudErrorBody {
|
|
|
150
150
|
// @public
|
|
151
151
|
export type CreatedByType = string;
|
|
152
152
|
|
|
153
|
+
// @public
|
|
154
|
+
export function getContinuationToken(page: unknown): string | undefined;
|
|
155
|
+
|
|
153
156
|
// @public (undocumented)
|
|
154
157
|
interface JsonWebKey_2 {
|
|
155
158
|
alg?: string;
|
|
@@ -179,45 +182,31 @@ export interface JsonWebKeySet {
|
|
|
179
182
|
|
|
180
183
|
// @public
|
|
181
184
|
export enum KnownAttestationServiceStatus {
|
|
182
|
-
// (undocumented)
|
|
183
185
|
Error = "Error",
|
|
184
|
-
// (undocumented)
|
|
185
186
|
NotReady = "NotReady",
|
|
186
|
-
// (undocumented)
|
|
187
187
|
Ready = "Ready"
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
// @public
|
|
191
191
|
export enum KnownCreatedByType {
|
|
192
|
-
// (undocumented)
|
|
193
192
|
Application = "Application",
|
|
194
|
-
// (undocumented)
|
|
195
193
|
Key = "Key",
|
|
196
|
-
// (undocumented)
|
|
197
194
|
ManagedIdentity = "ManagedIdentity",
|
|
198
|
-
// (undocumented)
|
|
199
195
|
User = "User"
|
|
200
196
|
}
|
|
201
197
|
|
|
202
198
|
// @public
|
|
203
199
|
export enum KnownPrivateEndpointConnectionProvisioningState {
|
|
204
|
-
// (undocumented)
|
|
205
200
|
Creating = "Creating",
|
|
206
|
-
// (undocumented)
|
|
207
201
|
Deleting = "Deleting",
|
|
208
|
-
// (undocumented)
|
|
209
202
|
Failed = "Failed",
|
|
210
|
-
// (undocumented)
|
|
211
203
|
Succeeded = "Succeeded"
|
|
212
204
|
}
|
|
213
205
|
|
|
214
206
|
// @public
|
|
215
207
|
export enum KnownPrivateEndpointServiceConnectionStatus {
|
|
216
|
-
// (undocumented)
|
|
217
208
|
Approved = "Approved",
|
|
218
|
-
// (undocumented)
|
|
219
209
|
Pending = "Pending",
|
|
220
|
-
// (undocumented)
|
|
221
210
|
Rejected = "Rejected"
|
|
222
211
|
}
|
|
223
212
|
|
|
@@ -259,11 +248,11 @@ export interface PrivateEndpoint {
|
|
|
259
248
|
}
|
|
260
249
|
|
|
261
250
|
// @public
|
|
262
|
-
export
|
|
251
|
+
export interface PrivateEndpointConnection extends Resource {
|
|
263
252
|
privateEndpoint?: PrivateEndpoint;
|
|
264
253
|
privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
|
|
265
254
|
readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
|
|
266
|
-
}
|
|
255
|
+
}
|
|
267
256
|
|
|
268
257
|
// @public
|
|
269
258
|
export interface PrivateEndpointConnectionListResult {
|
|
@@ -334,12 +323,12 @@ export interface SystemData {
|
|
|
334
323
|
}
|
|
335
324
|
|
|
336
325
|
// @public
|
|
337
|
-
export
|
|
326
|
+
export interface TrackedResource extends Resource {
|
|
327
|
+
location: string;
|
|
338
328
|
tags?: {
|
|
339
329
|
[propertyName: string]: string;
|
|
340
330
|
};
|
|
341
|
-
|
|
342
|
-
};
|
|
331
|
+
}
|
|
343
332
|
|
|
344
333
|
// (No @packageDocumentation comment for this package)
|
|
345
334
|
|
|
@@ -7,6 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
+
import {
|
|
12
|
+
PipelineRequest,
|
|
13
|
+
PipelineResponse,
|
|
14
|
+
SendRequest
|
|
15
|
+
} from "@azure/core-rest-pipeline";
|
|
10
16
|
import * as coreAuth from "@azure/core-auth";
|
|
11
17
|
import {
|
|
12
18
|
OperationsImpl,
|
|
@@ -52,25 +58,54 @@ export class AttestationManagementClient extends coreClient.ServiceClient {
|
|
|
52
58
|
credential: credentials
|
|
53
59
|
};
|
|
54
60
|
|
|
55
|
-
const packageDetails = `azsdk-js-arm-attestation/2.0
|
|
61
|
+
const packageDetails = `azsdk-js-arm-attestation/2.1.0`;
|
|
56
62
|
const userAgentPrefix =
|
|
57
63
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
58
64
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
59
65
|
: `${packageDetails}`;
|
|
60
66
|
|
|
61
|
-
if (!options.credentialScopes) {
|
|
62
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
63
|
-
}
|
|
64
67
|
const optionsWithDefaults = {
|
|
65
68
|
...defaults,
|
|
66
69
|
...options,
|
|
67
70
|
userAgentOptions: {
|
|
68
71
|
userAgentPrefix
|
|
69
72
|
},
|
|
70
|
-
|
|
73
|
+
endpoint:
|
|
71
74
|
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
72
75
|
};
|
|
73
76
|
super(optionsWithDefaults);
|
|
77
|
+
|
|
78
|
+
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
79
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
80
|
+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
|
81
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
82
|
+
(pipelinePolicy) =>
|
|
83
|
+
pipelinePolicy.name ===
|
|
84
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
if (
|
|
88
|
+
!options ||
|
|
89
|
+
!options.pipeline ||
|
|
90
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
91
|
+
!bearerTokenAuthenticationPolicyFound
|
|
92
|
+
) {
|
|
93
|
+
this.pipeline.removePolicy({
|
|
94
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
95
|
+
});
|
|
96
|
+
this.pipeline.addPolicy(
|
|
97
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
98
|
+
credential: credentials,
|
|
99
|
+
scopes:
|
|
100
|
+
optionsWithDefaults.credentialScopes ??
|
|
101
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
102
|
+
challengeCallbacks: {
|
|
103
|
+
authorizeRequestOnChallenge:
|
|
104
|
+
coreClient.authorizeRequestOnClaimChallenge
|
|
105
|
+
}
|
|
106
|
+
})
|
|
107
|
+
);
|
|
108
|
+
}
|
|
74
109
|
// Parameter assignments
|
|
75
110
|
this.subscriptionId = subscriptionId;
|
|
76
111
|
|
|
@@ -80,6 +115,35 @@ export class AttestationManagementClient extends coreClient.ServiceClient {
|
|
|
80
115
|
this.operations = new OperationsImpl(this);
|
|
81
116
|
this.attestationProviders = new AttestationProvidersImpl(this);
|
|
82
117
|
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
118
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
122
|
+
private addCustomApiVersionPolicy(apiVersion?: string) {
|
|
123
|
+
if (!apiVersion) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const apiVersionPolicy = {
|
|
127
|
+
name: "CustomApiVersionPolicy",
|
|
128
|
+
async sendRequest(
|
|
129
|
+
request: PipelineRequest,
|
|
130
|
+
next: SendRequest
|
|
131
|
+
): Promise<PipelineResponse> {
|
|
132
|
+
const param = request.url.split("?");
|
|
133
|
+
if (param.length > 1) {
|
|
134
|
+
const newParams = param[1].split("&").map((item) => {
|
|
135
|
+
if (item.indexOf("api-version") > -1) {
|
|
136
|
+
return "api-version=" + apiVersion;
|
|
137
|
+
} else {
|
|
138
|
+
return item;
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
142
|
+
}
|
|
143
|
+
return next(request);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
83
147
|
}
|
|
84
148
|
|
|
85
149
|
operations: Operations;
|
package/src/index.ts
CHANGED
package/src/models/index.ts
CHANGED
|
@@ -230,7 +230,7 @@ export interface AttestationProviderListResult {
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
/** The Private Endpoint Connection resource. */
|
|
233
|
-
export
|
|
233
|
+
export interface PrivateEndpointConnection extends Resource {
|
|
234
234
|
/** The resource of private end point. */
|
|
235
235
|
privateEndpoint?: PrivateEndpoint;
|
|
236
236
|
/** A collection of information about the state of the connection between service consumer and provider. */
|
|
@@ -240,18 +240,18 @@ export type PrivateEndpointConnection = Resource & {
|
|
|
240
240
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
241
241
|
*/
|
|
242
242
|
readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
|
|
243
|
-
}
|
|
243
|
+
}
|
|
244
244
|
|
|
245
245
|
/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
|
|
246
|
-
export
|
|
246
|
+
export interface TrackedResource extends Resource {
|
|
247
247
|
/** Resource tags. */
|
|
248
248
|
tags?: { [propertyName: string]: string };
|
|
249
249
|
/** The geo-location where the resource lives */
|
|
250
250
|
location: string;
|
|
251
|
-
}
|
|
251
|
+
}
|
|
252
252
|
|
|
253
253
|
/** Attestation service response message. */
|
|
254
|
-
export
|
|
254
|
+
export interface AttestationProvider extends TrackedResource {
|
|
255
255
|
/**
|
|
256
256
|
* The system metadata relating to this resource
|
|
257
257
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -268,13 +268,17 @@ export type AttestationProvider = TrackedResource & {
|
|
|
268
268
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
269
269
|
*/
|
|
270
270
|
readonly privateEndpointConnections?: PrivateEndpointConnection[];
|
|
271
|
-
}
|
|
271
|
+
}
|
|
272
272
|
|
|
273
273
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
274
274
|
export enum KnownCreatedByType {
|
|
275
|
+
/** User */
|
|
275
276
|
User = "User",
|
|
277
|
+
/** Application */
|
|
276
278
|
Application = "Application",
|
|
279
|
+
/** ManagedIdentity */
|
|
277
280
|
ManagedIdentity = "ManagedIdentity",
|
|
281
|
+
/** Key */
|
|
278
282
|
Key = "Key"
|
|
279
283
|
}
|
|
280
284
|
|
|
@@ -292,8 +296,11 @@ export type CreatedByType = string;
|
|
|
292
296
|
|
|
293
297
|
/** Known values of {@link AttestationServiceStatus} that the service accepts. */
|
|
294
298
|
export enum KnownAttestationServiceStatus {
|
|
299
|
+
/** Ready */
|
|
295
300
|
Ready = "Ready",
|
|
301
|
+
/** NotReady */
|
|
296
302
|
NotReady = "NotReady",
|
|
303
|
+
/** Error */
|
|
297
304
|
Error = "Error"
|
|
298
305
|
}
|
|
299
306
|
|
|
@@ -310,8 +317,11 @@ export type AttestationServiceStatus = string;
|
|
|
310
317
|
|
|
311
318
|
/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
|
|
312
319
|
export enum KnownPrivateEndpointServiceConnectionStatus {
|
|
320
|
+
/** Pending */
|
|
313
321
|
Pending = "Pending",
|
|
322
|
+
/** Approved */
|
|
314
323
|
Approved = "Approved",
|
|
324
|
+
/** Rejected */
|
|
315
325
|
Rejected = "Rejected"
|
|
316
326
|
}
|
|
317
327
|
|
|
@@ -328,9 +338,13 @@ export type PrivateEndpointServiceConnectionStatus = string;
|
|
|
328
338
|
|
|
329
339
|
/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
|
|
330
340
|
export enum KnownPrivateEndpointConnectionProvisioningState {
|
|
341
|
+
/** Succeeded */
|
|
331
342
|
Succeeded = "Succeeded",
|
|
343
|
+
/** Creating */
|
|
332
344
|
Creating = "Creating",
|
|
345
|
+
/** Deleting */
|
|
333
346
|
Deleting = "Deleting",
|
|
347
|
+
/** Failed */
|
|
334
348
|
Failed = "Failed"
|
|
335
349
|
}
|
|
336
350
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { PrivateEndpointConnections } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -56,8 +56,16 @@ export class PrivateEndpointConnectionsImpl
|
|
|
56
56
|
[Symbol.asyncIterator]() {
|
|
57
57
|
return this;
|
|
58
58
|
},
|
|
59
|
-
byPage: () => {
|
|
60
|
-
|
|
59
|
+
byPage: (settings?: PageSettings) => {
|
|
60
|
+
if (settings?.maxPageSize) {
|
|
61
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
62
|
+
}
|
|
63
|
+
return this.listPagingPage(
|
|
64
|
+
resourceGroupName,
|
|
65
|
+
providerName,
|
|
66
|
+
options,
|
|
67
|
+
settings
|
|
68
|
+
);
|
|
61
69
|
}
|
|
62
70
|
};
|
|
63
71
|
}
|
|
@@ -65,9 +73,11 @@ export class PrivateEndpointConnectionsImpl
|
|
|
65
73
|
private async *listPagingPage(
|
|
66
74
|
resourceGroupName: string,
|
|
67
75
|
providerName: string,
|
|
68
|
-
options?: PrivateEndpointConnectionsListOptionalParams
|
|
76
|
+
options?: PrivateEndpointConnectionsListOptionalParams,
|
|
77
|
+
_settings?: PageSettings
|
|
69
78
|
): AsyncIterableIterator<PrivateEndpointConnection[]> {
|
|
70
|
-
let result
|
|
79
|
+
let result: PrivateEndpointConnectionsListResponse;
|
|
80
|
+
result = await this._list(resourceGroupName, providerName, options);
|
|
71
81
|
yield result.value || [];
|
|
72
82
|
}
|
|
73
83
|
|
|
@@ -0,0 +1,39 @@
|
|
|
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 a result page from a pageable operation, returns a
|
|
17
|
+
* continuation token that can be used to begin paging from
|
|
18
|
+
* that point later.
|
|
19
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
20
|
+
* @returns The continuation token that can be passed into byPage().
|
|
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
|
+
}
|
|
@@ -13,6 +13,8 @@ export declare class AttestationManagementClient extends coreClient.ServiceClien
|
|
|
13
13
|
* @param options The parameter options
|
|
14
14
|
*/
|
|
15
15
|
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AttestationManagementClientOptionalParams);
|
|
16
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
17
|
+
private addCustomApiVersionPolicy;
|
|
16
18
|
operations: Operations;
|
|
17
19
|
attestationProviders: AttestationProviders;
|
|
18
20
|
privateEndpointConnections: PrivateEndpointConnections;
|
|
@@ -29,7 +31,7 @@ export declare interface AttestationManagementClientOptionalParams extends coreC
|
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
/** Attestation service response message. */
|
|
32
|
-
export declare
|
|
34
|
+
export declare interface AttestationProvider extends TrackedResource {
|
|
33
35
|
/**
|
|
34
36
|
* The system metadata relating to this resource
|
|
35
37
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -46,7 +48,7 @@ export declare type AttestationProvider = TrackedResource & {
|
|
|
46
48
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
47
49
|
*/
|
|
48
50
|
readonly privateEndpointConnections?: PrivateEndpointConnection[];
|
|
49
|
-
}
|
|
51
|
+
}
|
|
50
52
|
|
|
51
53
|
/** Attestation Providers List. */
|
|
52
54
|
export declare interface AttestationProviderListResult {
|
|
@@ -231,6 +233,15 @@ export declare interface CloudErrorBody {
|
|
|
231
233
|
*/
|
|
232
234
|
export declare type CreatedByType = string;
|
|
233
235
|
|
|
236
|
+
/**
|
|
237
|
+
* Given a result page from a pageable operation, returns a
|
|
238
|
+
* continuation token that can be used to begin paging from
|
|
239
|
+
* that point later.
|
|
240
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
241
|
+
* @returns The continuation token that can be passed into byPage().
|
|
242
|
+
*/
|
|
243
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
244
|
+
|
|
234
245
|
declare interface JsonWebKey_2 {
|
|
235
246
|
/**
|
|
236
247
|
* The "alg" (algorithm) parameter identifies the algorithm intended for
|
|
@@ -317,31 +328,45 @@ export declare interface JsonWebKeySet {
|
|
|
317
328
|
|
|
318
329
|
/** Known values of {@link AttestationServiceStatus} that the service accepts. */
|
|
319
330
|
export declare enum KnownAttestationServiceStatus {
|
|
331
|
+
/** Ready */
|
|
320
332
|
Ready = "Ready",
|
|
333
|
+
/** NotReady */
|
|
321
334
|
NotReady = "NotReady",
|
|
335
|
+
/** Error */
|
|
322
336
|
Error = "Error"
|
|
323
337
|
}
|
|
324
338
|
|
|
325
339
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
326
340
|
export declare enum KnownCreatedByType {
|
|
341
|
+
/** User */
|
|
327
342
|
User = "User",
|
|
343
|
+
/** Application */
|
|
328
344
|
Application = "Application",
|
|
345
|
+
/** ManagedIdentity */
|
|
329
346
|
ManagedIdentity = "ManagedIdentity",
|
|
347
|
+
/** Key */
|
|
330
348
|
Key = "Key"
|
|
331
349
|
}
|
|
332
350
|
|
|
333
351
|
/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
|
|
334
352
|
export declare enum KnownPrivateEndpointConnectionProvisioningState {
|
|
353
|
+
/** Succeeded */
|
|
335
354
|
Succeeded = "Succeeded",
|
|
355
|
+
/** Creating */
|
|
336
356
|
Creating = "Creating",
|
|
357
|
+
/** Deleting */
|
|
337
358
|
Deleting = "Deleting",
|
|
359
|
+
/** Failed */
|
|
338
360
|
Failed = "Failed"
|
|
339
361
|
}
|
|
340
362
|
|
|
341
363
|
/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
|
|
342
364
|
export declare enum KnownPrivateEndpointServiceConnectionStatus {
|
|
365
|
+
/** Pending */
|
|
343
366
|
Pending = "Pending",
|
|
367
|
+
/** Approved */
|
|
344
368
|
Approved = "Approved",
|
|
369
|
+
/** Rejected */
|
|
345
370
|
Rejected = "Rejected"
|
|
346
371
|
}
|
|
347
372
|
|
|
@@ -402,7 +427,7 @@ export declare interface PrivateEndpoint {
|
|
|
402
427
|
}
|
|
403
428
|
|
|
404
429
|
/** The Private Endpoint Connection resource. */
|
|
405
|
-
export declare
|
|
430
|
+
export declare interface PrivateEndpointConnection extends Resource {
|
|
406
431
|
/** The resource of private end point. */
|
|
407
432
|
privateEndpoint?: PrivateEndpoint;
|
|
408
433
|
/** A collection of information about the state of the connection between service consumer and provider. */
|
|
@@ -412,7 +437,7 @@ export declare type PrivateEndpointConnection = Resource & {
|
|
|
412
437
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
413
438
|
*/
|
|
414
439
|
readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
|
|
415
|
-
}
|
|
440
|
+
}
|
|
416
441
|
|
|
417
442
|
/** List of private endpoint connection associated with the specified storage account */
|
|
418
443
|
export declare interface PrivateEndpointConnectionListResult {
|
|
@@ -553,13 +578,13 @@ export declare interface SystemData {
|
|
|
553
578
|
}
|
|
554
579
|
|
|
555
580
|
/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
|
|
556
|
-
export declare
|
|
581
|
+
export declare interface TrackedResource extends Resource {
|
|
557
582
|
/** Resource tags. */
|
|
558
583
|
tags?: {
|
|
559
584
|
[propertyName: string]: string;
|
|
560
585
|
};
|
|
561
586
|
/** The geo-location where the resource lives */
|
|
562
587
|
location: string;
|
|
563
|
-
}
|
|
588
|
+
}
|
|
564
589
|
|
|
565
590
|
export { }
|