Struct google_api_proto::google::cloud::security::privateca::v1::CertificateAuthority
source · pub struct CertificateAuthority {Show 17 fields
pub name: String,
pub type: i32,
pub config: Option<CertificateConfig>,
pub lifetime: Option<Duration>,
pub key_spec: Option<KeyVersionSpec>,
pub subordinate_config: Option<SubordinateConfig>,
pub tier: i32,
pub state: i32,
pub pem_ca_certificates: Vec<String>,
pub ca_certificate_descriptions: Vec<CertificateDescription>,
pub gcs_bucket: String,
pub access_urls: Option<AccessUrls>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub delete_time: Option<Timestamp>,
pub expire_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
}
Expand description
A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] represents an individual Certificate Authority. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] can be used to create [Certificates][google.cloud.security.privateca.v1.Certificate].
Fields§
§name: String
Output only. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format projects/*/locations/*/caPools/*/certificateAuthorities/*
.
type: i32
Required. Immutable. The [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
config: Option<CertificateConfig>
Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
lifetime: Option<Duration>
Required. Immutable. The desired lifetime of the CA certificate. Used to create the “not_before_time” and “not_after_time” fields inside an X.509 certificate.
key_spec: Option<KeyVersionSpec>
Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key is also used to sign the self-signed CA certificate. Otherwise, it is used to sign a CSR.
subordinate_config: Option<SubordinateConfig>
Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set with the subordinate configuration, which describes its issuers. This may be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.
tier: i32
Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
state: i32
Output only. The [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
pem_ca_certificates: Vec<String>
Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]’s certificate chain, including the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]’s certificate. Ordered such that the root issuer is the final element (consistent with RFC 5246). For a self-signed CA, this will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]’s certificate.
ca_certificate_descriptions: Vec<CertificateDescription>
Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]’s CA certificate and its issuers. Ordered as self-to-root.
gcs_bucket: String
Immutable. The name of a Cloud Storage bucket where this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
will publish content, such as the CA certificate and CRLs. This must be a
bucket name, without any prefixes (such as gs://
) or suffixes (such as
.googleapis.com
). For example, to use a bucket named my-bucket
, you
would simply specify my-bucket
. If not specified, a managed bucket will
be created.
access_urls: Option<AccessUrls>
Output only. URLs for accessing content published by this CA, such as the CA certificate and CRLs.
create_time: Option<Timestamp>
Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.
update_time: Option<Timestamp>
Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.
delete_time: Option<Timestamp>
Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
expire_time: Option<Timestamp>
Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged, if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.
labels: BTreeMap<String, String>
Optional. Labels with user-defined metadata.
Implementations§
source§impl CertificateAuthority
impl CertificateAuthority
sourcepub fn type(&self) -> Type
pub fn type(&self) -> Type
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn tier(&self) -> Tier
pub fn tier(&self) -> Tier
Returns the enum value of tier
, or the default if the field is set to an invalid enum value.
Trait Implementations§
source§impl Clone for CertificateAuthority
impl Clone for CertificateAuthority
source§fn clone(&self) -> CertificateAuthority
fn clone(&self) -> CertificateAuthority
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CertificateAuthority
impl Debug for CertificateAuthority
source§impl Default for CertificateAuthority
impl Default for CertificateAuthority
source§impl Message for CertificateAuthority
impl Message for CertificateAuthority
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 CertificateAuthority
impl PartialEq for CertificateAuthority
source§fn eq(&self, other: &CertificateAuthority) -> bool
fn eq(&self, other: &CertificateAuthority) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CertificateAuthority
Auto Trait Implementations§
impl !Freeze for CertificateAuthority
impl RefUnwindSafe for CertificateAuthority
impl Send for CertificateAuthority
impl Sync for CertificateAuthority
impl Unpin for CertificateAuthority
impl UnwindSafe for CertificateAuthority
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