@maxim_mazurok/gapi.client.certificatemanager-v1 0.0.20220914 → 0.0.20220927
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/index.d.ts +209 -2
- package/package.json +1 -1
- package/tests.ts +40 -1
package/index.d.ts
CHANGED
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
// Nick Amoscato <https://github.com/namoscato>
|
|
5
5
|
// Declan Vong <https://github.com/declanvong>
|
|
6
6
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
-
// TypeScript Version: 2.8
|
|
8
7
|
|
|
9
8
|
// IMPORTANT
|
|
10
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
11
|
// Generated from: https://certificatemanager.googleapis.com/$discovery/rest?version=v1
|
|
13
|
-
// Revision:
|
|
12
|
+
// Revision: 20220927
|
|
14
13
|
|
|
15
14
|
/// <reference types="gapi.client" />
|
|
16
15
|
|
|
@@ -66,6 +65,40 @@ declare namespace gapi.client {
|
|
|
66
65
|
/** Output only. The last update timestamp of a Certificate. */
|
|
67
66
|
updateTime?: string;
|
|
68
67
|
}
|
|
68
|
+
interface CertificateAuthorityConfig {
|
|
69
|
+
/** Defines a CertificateAuthorityServiceConfig. */
|
|
70
|
+
certificateAuthorityServiceConfig?: CertificateAuthorityServiceConfig;
|
|
71
|
+
}
|
|
72
|
+
interface CertificateAuthorityServiceConfig {
|
|
73
|
+
/**
|
|
74
|
+
* Required. A CA pool resource used to issue a certificate. The CA pool string has a relative resource path following the form
|
|
75
|
+
* "projects/{project}/locations/{location}/caPools/{ca_pool}".
|
|
76
|
+
*/
|
|
77
|
+
caPool?: string;
|
|
78
|
+
}
|
|
79
|
+
interface CertificateIssuanceConfig {
|
|
80
|
+
/** Required. The CA that issues the workload certificate. It includes the CA address, type, authentication to CA service, etc. */
|
|
81
|
+
certificateAuthorityConfig?: CertificateAuthorityConfig;
|
|
82
|
+
/** Output only. The creation timestamp of a CertificateIssuanceConfig. */
|
|
83
|
+
createTime?: string;
|
|
84
|
+
/** One or more paragraphs of text description of a CertificateIssuanceConfig. */
|
|
85
|
+
description?: string;
|
|
86
|
+
/** Required. The key algorithm to use when generating the private key. */
|
|
87
|
+
keyAlgorithm?: string;
|
|
88
|
+
/** Set of labels associated with a CertificateIssuanceConfig. */
|
|
89
|
+
labels?: { [P in string]: string };
|
|
90
|
+
/** Required. Workload certificate lifetime requested. */
|
|
91
|
+
lifetime?: string;
|
|
92
|
+
/**
|
|
93
|
+
* A user-defined name of the certificate issuance config. CertificateIssuanceConfig names must be unique globally and match pattern
|
|
94
|
+
* `projects/*/locations/*/certificateIssuanceConfigs/*`.
|
|
95
|
+
*/
|
|
96
|
+
name?: string;
|
|
97
|
+
/** Required. Specifies the percentage of elapsed time of the certificate lifetime to wait before renewing the certificate. Must be a number between 1-99, inclusive. */
|
|
98
|
+
rotationWindowPercentage?: number;
|
|
99
|
+
/** Output only. The last update timestamp of a CertificateIssuanceConfig. */
|
|
100
|
+
updateTime?: string;
|
|
101
|
+
}
|
|
69
102
|
interface CertificateMap {
|
|
70
103
|
/** Output only. The creation timestamp of a Certificate Map. */
|
|
71
104
|
createTime?: string;
|
|
@@ -153,6 +186,17 @@ declare namespace gapi.client {
|
|
|
153
186
|
/** Output only. Ports. */
|
|
154
187
|
ports?: number[];
|
|
155
188
|
}
|
|
189
|
+
interface ListCertificateIssuanceConfigsResponse {
|
|
190
|
+
/** A list of certificate configs for the parent resource. */
|
|
191
|
+
certificateIssuanceConfigs?: CertificateIssuanceConfig[];
|
|
192
|
+
/**
|
|
193
|
+
* If there might be more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of
|
|
194
|
+
* `next_page_token` as `page_token`.
|
|
195
|
+
*/
|
|
196
|
+
nextPageToken?: string;
|
|
197
|
+
/** Locations that could not be reached. */
|
|
198
|
+
unreachable?: string[];
|
|
199
|
+
}
|
|
156
200
|
interface ListCertificateMapEntriesResponse {
|
|
157
201
|
/** A list of certificate map entries for the parent resource. */
|
|
158
202
|
certificateMapEntries?: CertificateMapEntry[];
|
|
@@ -228,6 +272,11 @@ declare namespace gapi.client {
|
|
|
228
272
|
dnsAuthorizations?: string[];
|
|
229
273
|
/** Immutable. The domains for which a managed SSL certificate will be generated. Wildcard domains are only supported with DNS challenge resolution. */
|
|
230
274
|
domains?: string[];
|
|
275
|
+
/**
|
|
276
|
+
* Immutable. The resource name for a CertificateIssuanceConfig used to configure private PKI certificates in the format `projects/*/locations/*/certificateIssuanceConfigs/*`. If
|
|
277
|
+
* this field is not set, the certificates will instead be publicly signed as documented at https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
|
|
278
|
+
*/
|
|
279
|
+
issuanceConfig?: string;
|
|
231
280
|
/** Output only. Information about issues with provisioning a Managed Certificate. */
|
|
232
281
|
provisioningIssue?: ProvisioningIssue;
|
|
233
282
|
/** Output only. State of the managed certificate resource. */
|
|
@@ -297,6 +346,163 @@ declare namespace gapi.client {
|
|
|
297
346
|
*/
|
|
298
347
|
message?: string;
|
|
299
348
|
}
|
|
349
|
+
interface CertificateIssuanceConfigsResource {
|
|
350
|
+
/** Creates a new CertificateIssuanceConfig in a given project and location. */
|
|
351
|
+
create(request: {
|
|
352
|
+
/** V1 error format. */
|
|
353
|
+
"$.xgafv"?: string;
|
|
354
|
+
/** OAuth access token. */
|
|
355
|
+
access_token?: string;
|
|
356
|
+
/** Data format for response. */
|
|
357
|
+
alt?: string;
|
|
358
|
+
/** JSONP */
|
|
359
|
+
callback?: string;
|
|
360
|
+
/** Required. A user-provided name of the certificate config. */
|
|
361
|
+
certificateIssuanceConfigId?: string;
|
|
362
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
363
|
+
fields?: string;
|
|
364
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
365
|
+
key?: string;
|
|
366
|
+
/** OAuth 2.0 token for the current user. */
|
|
367
|
+
oauth_token?: string;
|
|
368
|
+
/** Required. The parent resource of the certificate issuance config. Must be in the format `projects/*/locations/*`. */
|
|
369
|
+
parent: string;
|
|
370
|
+
/** Returns response with indentations and line breaks. */
|
|
371
|
+
prettyPrint?: boolean;
|
|
372
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
373
|
+
quotaUser?: string;
|
|
374
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
375
|
+
upload_protocol?: string;
|
|
376
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
377
|
+
uploadType?: string;
|
|
378
|
+
/** Request body */
|
|
379
|
+
resource: CertificateIssuanceConfig;
|
|
380
|
+
}): Request<Operation>;
|
|
381
|
+
create(request: {
|
|
382
|
+
/** V1 error format. */
|
|
383
|
+
"$.xgafv"?: string;
|
|
384
|
+
/** OAuth access token. */
|
|
385
|
+
access_token?: string;
|
|
386
|
+
/** Data format for response. */
|
|
387
|
+
alt?: string;
|
|
388
|
+
/** JSONP */
|
|
389
|
+
callback?: string;
|
|
390
|
+
/** Required. A user-provided name of the certificate config. */
|
|
391
|
+
certificateIssuanceConfigId?: string;
|
|
392
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
393
|
+
fields?: string;
|
|
394
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
395
|
+
key?: string;
|
|
396
|
+
/** OAuth 2.0 token for the current user. */
|
|
397
|
+
oauth_token?: string;
|
|
398
|
+
/** Required. The parent resource of the certificate issuance config. Must be in the format `projects/*/locations/*`. */
|
|
399
|
+
parent: string;
|
|
400
|
+
/** Returns response with indentations and line breaks. */
|
|
401
|
+
prettyPrint?: boolean;
|
|
402
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
403
|
+
quotaUser?: string;
|
|
404
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
405
|
+
upload_protocol?: string;
|
|
406
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
407
|
+
uploadType?: string;
|
|
408
|
+
},
|
|
409
|
+
body: CertificateIssuanceConfig): Request<Operation>;
|
|
410
|
+
/** Deletes a single CertificateIssuanceConfig. */
|
|
411
|
+
delete(request?: {
|
|
412
|
+
/** V1 error format. */
|
|
413
|
+
"$.xgafv"?: string;
|
|
414
|
+
/** OAuth access token. */
|
|
415
|
+
access_token?: string;
|
|
416
|
+
/** Data format for response. */
|
|
417
|
+
alt?: string;
|
|
418
|
+
/** JSONP */
|
|
419
|
+
callback?: string;
|
|
420
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
421
|
+
fields?: string;
|
|
422
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
423
|
+
key?: string;
|
|
424
|
+
/** Required. A name of the certificate issuance config to delete. Must be in the format `projects/*/locations/*/certificateIssuanceConfigs/*`. */
|
|
425
|
+
name: string;
|
|
426
|
+
/** OAuth 2.0 token for the current user. */
|
|
427
|
+
oauth_token?: string;
|
|
428
|
+
/** Returns response with indentations and line breaks. */
|
|
429
|
+
prettyPrint?: boolean;
|
|
430
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
431
|
+
quotaUser?: string;
|
|
432
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
433
|
+
upload_protocol?: string;
|
|
434
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
435
|
+
uploadType?: string;
|
|
436
|
+
}): Request<Operation>;
|
|
437
|
+
/** Gets details of a single CertificateIssuanceConfig. */
|
|
438
|
+
get(request?: {
|
|
439
|
+
/** V1 error format. */
|
|
440
|
+
"$.xgafv"?: string;
|
|
441
|
+
/** OAuth access token. */
|
|
442
|
+
access_token?: string;
|
|
443
|
+
/** Data format for response. */
|
|
444
|
+
alt?: string;
|
|
445
|
+
/** JSONP */
|
|
446
|
+
callback?: string;
|
|
447
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
448
|
+
fields?: string;
|
|
449
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
450
|
+
key?: string;
|
|
451
|
+
/** Required. A name of the certificate issuance config to describe. Must be in the format `projects/*/locations/*/certificateIssuanceConfigs/*`. */
|
|
452
|
+
name: string;
|
|
453
|
+
/** OAuth 2.0 token for the current user. */
|
|
454
|
+
oauth_token?: string;
|
|
455
|
+
/** Returns response with indentations and line breaks. */
|
|
456
|
+
prettyPrint?: boolean;
|
|
457
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
458
|
+
quotaUser?: string;
|
|
459
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
460
|
+
upload_protocol?: string;
|
|
461
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
462
|
+
uploadType?: string;
|
|
463
|
+
}): Request<CertificateIssuanceConfig>;
|
|
464
|
+
/** Lists CertificateIssuanceConfigs in a given project and location. */
|
|
465
|
+
list(request?: {
|
|
466
|
+
/** V1 error format. */
|
|
467
|
+
"$.xgafv"?: string;
|
|
468
|
+
/** OAuth access token. */
|
|
469
|
+
access_token?: string;
|
|
470
|
+
/** Data format for response. */
|
|
471
|
+
alt?: string;
|
|
472
|
+
/** JSONP */
|
|
473
|
+
callback?: string;
|
|
474
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
475
|
+
fields?: string;
|
|
476
|
+
/** Filter expression to restrict the Certificates Configs returned. */
|
|
477
|
+
filter?: string;
|
|
478
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
479
|
+
key?: string;
|
|
480
|
+
/** OAuth 2.0 token for the current user. */
|
|
481
|
+
oauth_token?: string;
|
|
482
|
+
/**
|
|
483
|
+
* A list of Certificate Config field names used to specify the order of the returned results. The default sorting order is ascending. To specify descending order for a field, add
|
|
484
|
+
* a suffix " desc".
|
|
485
|
+
*/
|
|
486
|
+
orderBy?: string;
|
|
487
|
+
/** Maximum number of certificate configs to return per call. */
|
|
488
|
+
pageSize?: number;
|
|
489
|
+
/**
|
|
490
|
+
* The value returned by the last `ListCertificateIssuanceConfigsResponse`. Indicates that this is a continuation of a prior `ListCertificateIssuanceConfigs` call, and that the
|
|
491
|
+
* system should return the next page of data.
|
|
492
|
+
*/
|
|
493
|
+
pageToken?: string;
|
|
494
|
+
/** Required. The project and location from which the certificate should be listed, specified in the format `projects/*/locations/*`. */
|
|
495
|
+
parent: string;
|
|
496
|
+
/** Returns response with indentations and line breaks. */
|
|
497
|
+
prettyPrint?: boolean;
|
|
498
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
499
|
+
quotaUser?: string;
|
|
500
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
501
|
+
upload_protocol?: string;
|
|
502
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
503
|
+
uploadType?: string;
|
|
504
|
+
}): Request<ListCertificateIssuanceConfigsResponse>;
|
|
505
|
+
}
|
|
300
506
|
interface CertificateMapEntriesResource {
|
|
301
507
|
/** Creates a new CertificateMapEntry in a given project and location. */
|
|
302
508
|
create(request: {
|
|
@@ -1400,6 +1606,7 @@ declare namespace gapi.client {
|
|
|
1400
1606
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1401
1607
|
uploadType?: string;
|
|
1402
1608
|
}): Request<ListLocationsResponse>;
|
|
1609
|
+
certificateIssuanceConfigs: CertificateIssuanceConfigsResource;
|
|
1403
1610
|
certificateMaps: CertificateMapsResource;
|
|
1404
1611
|
certificates: CertificatesResource;
|
|
1405
1612
|
dnsAuthorizations: DnsAuthorizationsResource;
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20220927
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -40,6 +40,43 @@ gapi.load('client', async () => {
|
|
|
40
40
|
pageSize: 42,
|
|
41
41
|
pageToken: "Test string",
|
|
42
42
|
});
|
|
43
|
+
/** Creates a new CertificateIssuanceConfig in a given project and location. */
|
|
44
|
+
await gapi.client.certificatemanager.projects.locations.certificateIssuanceConfigs.create({
|
|
45
|
+
certificateIssuanceConfigId: "Test string",
|
|
46
|
+
parent: "Test string",
|
|
47
|
+
}, {
|
|
48
|
+
certificateAuthorityConfig: {
|
|
49
|
+
certificateAuthorityServiceConfig: {
|
|
50
|
+
caPool: "Test string",
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
createTime: "Test string",
|
|
54
|
+
description: "Test string",
|
|
55
|
+
keyAlgorithm: "Test string",
|
|
56
|
+
labels: {
|
|
57
|
+
A: "Test string"
|
|
58
|
+
},
|
|
59
|
+
lifetime: "Test string",
|
|
60
|
+
name: "Test string",
|
|
61
|
+
rotationWindowPercentage: 42,
|
|
62
|
+
updateTime: "Test string",
|
|
63
|
+
});
|
|
64
|
+
/** Deletes a single CertificateIssuanceConfig. */
|
|
65
|
+
await gapi.client.certificatemanager.projects.locations.certificateIssuanceConfigs.delete({
|
|
66
|
+
name: "Test string",
|
|
67
|
+
});
|
|
68
|
+
/** Gets details of a single CertificateIssuanceConfig. */
|
|
69
|
+
await gapi.client.certificatemanager.projects.locations.certificateIssuanceConfigs.get({
|
|
70
|
+
name: "Test string",
|
|
71
|
+
});
|
|
72
|
+
/** Lists CertificateIssuanceConfigs in a given project and location. */
|
|
73
|
+
await gapi.client.certificatemanager.projects.locations.certificateIssuanceConfigs.list({
|
|
74
|
+
filter: "Test string",
|
|
75
|
+
orderBy: "Test string",
|
|
76
|
+
pageSize: 42,
|
|
77
|
+
pageToken: "Test string",
|
|
78
|
+
parent: "Test string",
|
|
79
|
+
});
|
|
43
80
|
/** Creates a new CertificateMap in a given project and location. */
|
|
44
81
|
await gapi.client.certificatemanager.projects.locations.certificateMaps.create({
|
|
45
82
|
certificateMapId: "Test string",
|
|
@@ -190,6 +227,7 @@ gapi.load('client', async () => {
|
|
|
190
227
|
domains: [
|
|
191
228
|
"Test string"
|
|
192
229
|
],
|
|
230
|
+
issuanceConfig: "Test string",
|
|
193
231
|
provisioningIssue: {
|
|
194
232
|
details: "Test string",
|
|
195
233
|
reason: "Test string",
|
|
@@ -250,6 +288,7 @@ gapi.load('client', async () => {
|
|
|
250
288
|
domains: [
|
|
251
289
|
"Test string"
|
|
252
290
|
],
|
|
291
|
+
issuanceConfig: "Test string",
|
|
253
292
|
provisioningIssue: {
|
|
254
293
|
details: "Test string",
|
|
255
294
|
reason: "Test string",
|