#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClusterTrustBundle {
#[prost(message, optional, tag="1")]
pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
#[prost(message, optional, tag="2")]
pub spec: ::core::option::Option<ClusterTrustBundleSpec>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClusterTrustBundleList {
#[prost(message, optional, tag="1")]
pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
#[prost(message, repeated, tag="2")]
pub items: ::prost::alloc::vec::Vec<ClusterTrustBundle>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClusterTrustBundleSpec {
#[prost(string, optional, tag="1")]
pub signer_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag="2")]
pub trust_bundle: ::core::option::Option<::prost::alloc::string::String>,
}
impl crate::Resource for ClusterTrustBundle {
const API_VERSION: &'static str = "certificates.k8s.io/v1alpha1";
const GROUP: &'static str = "certificates.k8s.io";
const VERSION: &'static str = "v1alpha1";
const KIND: &'static str = "ClusterTrustBundle";
const NAME: &'static str = "clustertrustbundles";
}
impl crate::HasMetadata for ClusterTrustBundle {
type Metadata = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
fn metadata(&self) -> Option<&<Self as crate::HasMetadata>::Metadata> {
self.metadata.as_ref()
}
fn metadata_mut(&mut self) -> Option<&mut <Self as crate::HasMetadata>::Metadata> {
self.metadata.as_mut()
}
}
impl crate::HasSpec for ClusterTrustBundle {
type Spec = crate::api::certificates::v1alpha1::ClusterTrustBundleSpec;
fn spec(&self) -> Option<&<Self as crate::HasSpec>::Spec> {
self.spec.as_ref()
}
fn spec_mut(&mut self) -> Option<&mut <Self as crate::HasSpec>::Spec> {
self.spec.as_mut()
}
}