#[non_exhaustive]pub struct CertificateRevocationList {
pub name: String,
pub sequence_number: i64,
pub revoked_certificates: Vec<RevokedCertificate>,
pub pem_crl: String,
pub access_url: String,
pub state: State,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub revision_id: String,
pub labels: HashMap<String, String>,
/* private fields */
}Expand description
A CertificateRevocationList corresponds to a signed X.509 certificate Revocation List (CRL). A CRL contains the serial numbers of certificates that should no longer be trusted.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringIdentifier. The resource name for this
CertificateRevocationList
in the format projects/*/locations/*/caPools/*certificateAuthorities/*/ certificateRevocationLists/*.
sequence_number: i64Output only. The CRL sequence number that appears in pem_crl.
revoked_certificates: Vec<RevokedCertificate>Output only. The revoked serial numbers that appear in pem_crl.
pem_crl: StringOutput only. The PEM-encoded X.509 CRL.
access_url: StringOutput only. The location where ‘pem_crl’ can be accessed.
state: StateOutput only. The State for this CertificateRevocationList.
create_time: Option<Timestamp>Output only. The time at which this CertificateRevocationList was created.
update_time: Option<Timestamp>Output only. The time at which this CertificateRevocationList was updated.
revision_id: StringOutput only. The revision ID of this CertificateRevocationList. A new revision is committed whenever a new CRL is published. The format is an 8-character hexadecimal string.
labels: HashMap<String, String>Optional. Labels with user-defined metadata.
Implementations§
Source§impl CertificateRevocationList
impl CertificateRevocationList
pub fn new() -> Self
Sourcepub fn set_sequence_number<T: Into<i64>>(self, v: T) -> Self
pub fn set_sequence_number<T: Into<i64>>(self, v: T) -> Self
Sets the value of sequence_number.
§Example
let x = CertificateRevocationList::new().set_sequence_number(42);Sourcepub fn set_revoked_certificates<T, V>(self, v: T) -> Self
pub fn set_revoked_certificates<T, V>(self, v: T) -> Self
Sets the value of revoked_certificates.
§Example
use google_cloud_security_privateca_v1::model::certificate_revocation_list::RevokedCertificate;
let x = CertificateRevocationList::new()
.set_revoked_certificates([
RevokedCertificate::default()/* use setters */,
RevokedCertificate::default()/* use (different) setters */,
]);Sourcepub fn set_pem_crl<T: Into<String>>(self, v: T) -> Self
pub fn set_pem_crl<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_access_url<T: Into<String>>(self, v: T) -> Self
pub fn set_access_url<T: Into<String>>(self, v: T) -> Self
Sets the value of access_url.
§Example
let x = CertificateRevocationList::new().set_access_url("example");Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = CertificateRevocationList::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = CertificateRevocationList::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = CertificateRevocationList::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = CertificateRevocationList::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = CertificateRevocationList::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = CertificateRevocationList::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_revision_id<T: Into<String>>(self, v: T) -> Self
pub fn set_revision_id<T: Into<String>>(self, v: T) -> Self
Sets the value of revision_id.
§Example
let x = CertificateRevocationList::new().set_revision_id("example");Trait Implementations§
Source§impl Clone for CertificateRevocationList
impl Clone for CertificateRevocationList
Source§fn clone(&self) -> CertificateRevocationList
fn clone(&self) -> CertificateRevocationList
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more