Skip to content

Commit 3fe49ca

Browse files
feat(privateca): update the API
#### privateca:v1 The following keys were added: - schemas.CertificateAuthority.properties.userDefinedAccessUrls.$ref - schemas.CertificateAuthority.properties.userDefinedAccessUrls.description - schemas.IssuancePolicy.properties.backdateDuration.description - schemas.IssuancePolicy.properties.backdateDuration.format - schemas.IssuancePolicy.properties.backdateDuration.type - schemas.UserDefinedAccessUrls.description - schemas.UserDefinedAccessUrls.id - schemas.UserDefinedAccessUrls.properties.aiaIssuingCertificateUrls.description - schemas.UserDefinedAccessUrls.properties.aiaIssuingCertificateUrls.items.type - schemas.UserDefinedAccessUrls.properties.aiaIssuingCertificateUrls.type - schemas.UserDefinedAccessUrls.properties.crlAccessUrls.description - schemas.UserDefinedAccessUrls.properties.crlAccessUrls.items.type - schemas.UserDefinedAccessUrls.properties.crlAccessUrls.type - schemas.UserDefinedAccessUrls.type
1 parent 2a04993 commit 3fe49ca

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

discovery/privateca-v1.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,7 @@
16051605
}
16061606
}
16071607
},
1608-
"revision": "20241204",
1608+
"revision": "20250226",
16091609
"rootUrl": "https://privateca.googleapis.com/",
16101610
"schemas": {
16111611
"AccessUrls": {
@@ -2034,6 +2034,10 @@
20342034
"format": "google-datetime",
20352035
"readOnly": true,
20362036
"type": "string"
2037+
},
2038+
"userDefinedAccessUrls": {
2039+
"$ref": "UserDefinedAccessUrls",
2040+
"description": "Optional. User-defined URLs for CA certificate and CRLs. The service does not publish content to these URLs. It is up to the user to mirror content to these URLs."
20372041
}
20382042
},
20392043
"type": "object"
@@ -2491,6 +2495,11 @@
24912495
},
24922496
"type": "array"
24932497
},
2498+
"backdateDuration": {
2499+
"description": "Optional. The duration to backdate all certificates issued from this CaPool. If not set, the certificates will be issued with a not_before_time of the issuance time (i.e. the current time). If set, the certificates will be issued with a not_before_time of the issuance time minus the backdate_duration. The not_after_time will be adjusted to preserve the requested lifetime. The backdate_duration must be less than or equal to 48 hours.",
2500+
"format": "google-duration",
2501+
"type": "string"
2502+
},
24942503
"baselineValues": {
24952504
"$ref": "X509Parameters",
24962505
"description": "Optional. A set of X.509 values that will be applied to all certificates issued through this CaPool. If a certificate request includes conflicting values for the same properties, they will be overwritten by the values defined here. If a certificate request uses a CertificateTemplate that defines conflicting predefined_values for the same properties, the certificate issuance request will fail."
@@ -3469,6 +3478,27 @@
34693478
},
34703479
"type": "object"
34713480
},
3481+
"UserDefinedAccessUrls": {
3482+
"description": "User-defined URLs for accessing content published by this CertificateAuthority.",
3483+
"id": "UserDefinedAccessUrls",
3484+
"properties": {
3485+
"aiaIssuingCertificateUrls": {
3486+
"description": "Optional. A list of URLs where the issuer CA certificate may be downloaded, which appears in the \"Authority Information Access\" extension in the certificate. If specified, the default Cloud Storage URLs will be omitted.",
3487+
"items": {
3488+
"type": "string"
3489+
},
3490+
"type": "array"
3491+
},
3492+
"crlAccessUrls": {
3493+
"description": "Optional. A list of URLs where to obtain CRL information, i.e. the DistributionPoint.fullName described by https://tools.ietf.org/html/rfc5280#section-4.2.1.13. If specified, the default Cloud Storage URLs will be omitted.",
3494+
"items": {
3495+
"type": "string"
3496+
},
3497+
"type": "array"
3498+
}
3499+
},
3500+
"type": "object"
3501+
},
34723502
"X509Extension": {
34733503
"description": "An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs.",
34743504
"id": "X509Extension",

src/apis/privateca/v1.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,10 @@ export namespace privateca_v1 {
399399
* Output only. The time at which this CertificateAuthority was last updated.
400400
*/
401401
updateTime?: string | null;
402+
/**
403+
* Optional. User-defined URLs for CA certificate and CRLs. The service does not publish content to these URLs. It is up to the user to mirror content to these URLs.
404+
*/
405+
userDefinedAccessUrls?: Schema$UserDefinedAccessUrls;
402406
}
403407
/**
404408
* A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1.
@@ -733,6 +737,10 @@ export namespace privateca_v1 {
733737
* Optional. If any AllowedKeyType is specified, then the certificate request's public key must match one of the key types listed here. Otherwise, any key may be used.
734738
*/
735739
allowedKeyTypes?: Schema$AllowedKeyType[];
740+
/**
741+
* Optional. The duration to backdate all certificates issued from this CaPool. If not set, the certificates will be issued with a not_before_time of the issuance time (i.e. the current time). If set, the certificates will be issued with a not_before_time of the issuance time minus the backdate_duration. The not_after_time will be adjusted to preserve the requested lifetime. The backdate_duration must be less than or equal to 48 hours.
742+
*/
743+
backdateDuration?: string | null;
736744
/**
737745
* Optional. A set of X.509 values that will be applied to all certificates issued through this CaPool. If a certificate request includes conflicting values for the same properties, they will be overwritten by the values defined here. If a certificate request uses a CertificateTemplate that defines conflicting predefined_values for the same properties, the certificate issuance request will fail.
738746
*/
@@ -1377,6 +1385,19 @@ export namespace privateca_v1 {
13771385
*/
13781386
requestId?: string | null;
13791387
}
1388+
/**
1389+
* User-defined URLs for accessing content published by this CertificateAuthority.
1390+
*/
1391+
export interface Schema$UserDefinedAccessUrls {
1392+
/**
1393+
* Optional. A list of URLs where the issuer CA certificate may be downloaded, which appears in the "Authority Information Access" extension in the certificate. If specified, the default Cloud Storage URLs will be omitted.
1394+
*/
1395+
aiaIssuingCertificateUrls?: string[] | null;
1396+
/**
1397+
* Optional. A list of URLs where to obtain CRL information, i.e. the DistributionPoint.fullName described by https://tools.ietf.org/html/rfc5280#section-4.2.1.13. If specified, the default Cloud Storage URLs will be omitted.
1398+
*/
1399+
crlAccessUrls?: string[] | null;
1400+
}
13801401
/**
13811402
* An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs.
13821403
*/

0 commit comments

Comments
 (0)