Struct google_api_proto::google::cloud::security::privateca::v1::Certificate
source · pub struct Certificate {Show 13 fields
pub name: String,
pub issuer_certificate_authority: String,
pub lifetime: Option<Duration>,
pub certificate_template: String,
pub subject_mode: i32,
pub revocation_details: Option<RevocationDetails>,
pub pem_certificate: String,
pub certificate_description: Option<CertificateDescription>,
pub pem_certificate_chain: Vec<String>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
pub certificate_config: Option<CertificateConfig>,
}
Expand description
A [Certificate][google.cloud.security.privateca.v1.Certificate] corresponds to a signed X.509 certificate issued by a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
Fields§
§name: String
Output only. The resource name for this
[Certificate][google.cloud.security.privateca.v1.Certificate] in the format
projects/*/locations/*/caPools/*/certificates/*
.
Output only. The resource name of the issuing
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format projects/*/locations/*/caPools/*/certificateAuthorities/*
.
lifetime: Option<Duration>
Required. Immutable. The desired lifetime of a certificate. Used to create the “not_before_time” and “not_after_time” fields inside an X.509 certificate. Note that the lifetime may be truncated if it would extend past the life of any certificate authority in the issuing chain.
certificate_template: String
Immutable. The resource name for a
[CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]
used to issue this certificate, in the format
projects/*/locations/*/certificateTemplates/*
.
If this is specified, the caller must have the necessary permission to
use this template. If this is omitted, no template will be used.
This template must be in the same location as the
[Certificate][google.cloud.security.privateca.v1.Certificate].
subject_mode: i32
Immutable. Specifies how the
[Certificate][google.cloud.security.privateca.v1.Certificate]’s identity
fields are to be decided. If this is omitted, the DEFAULT
subject mode
will be used.
revocation_details: Option<RevocationDetails>
Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.
pem_certificate: String
Output only. The pem-encoded, signed X.509 certificate.
certificate_description: Option<CertificateDescription>
Output only. A structured description of the issued X.509 certificate.
pem_certificate_chain: Vec<String>
Output only. The chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
create_time: Option<Timestamp>
Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.
update_time: Option<Timestamp>
Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.
labels: BTreeMap<String, String>
Optional. Labels with user-defined metadata.
certificate_config: Option<CertificateConfig>
The config used to create a signed X.509 certificate.
Implementations§
source§impl Certificate
impl Certificate
sourcepub fn subject_mode(&self) -> SubjectRequestMode
pub fn subject_mode(&self) -> SubjectRequestMode
Returns the enum value of subject_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_subject_mode(&mut self, value: SubjectRequestMode)
pub fn set_subject_mode(&mut self, value: SubjectRequestMode)
Sets subject_mode
to the provided enum value.
Trait Implementations§
source§impl Clone for Certificate
impl Clone for Certificate
source§fn clone(&self) -> Certificate
fn clone(&self) -> Certificate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Certificate
impl Debug for Certificate
source§impl Default for Certificate
impl Default for Certificate
source§impl Message for Certificate
impl Message for Certificate
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Certificate
impl PartialEq for Certificate
source§fn eq(&self, other: &Certificate) -> bool
fn eq(&self, other: &Certificate) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Certificate
Auto Trait Implementations§
impl !Freeze for Certificate
impl RefUnwindSafe for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Unpin for Certificate
impl UnwindSafe for Certificate
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request