Struct google_api_proto::google::cloud::kms::inventory::v1::ProtectedResource
source · pub struct ProtectedResource {
pub name: String,
pub project: String,
pub project_id: String,
pub cloud_product: String,
pub resource_type: String,
pub location: String,
pub labels: BTreeMap<String, String>,
pub crypto_key_version: String,
pub crypto_key_versions: Vec<String>,
pub create_time: Option<Timestamp>,
}
Expand description
Metadata about a resource protected by a Cloud KMS key.
Fields§
§name: String
The full resource name of the resource.
Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
.
project: String
Format: projects/{PROJECT_NUMBER}
.
project_id: String
The ID of the project that owns the resource.
cloud_product: String
The Cloud product that owns the resource.
Example: compute
resource_type: String
Example: compute.googleapis.com/Disk
location: String
Location can be global
, regional like us-east1
, or zonal like
us-west1-b
.
labels: BTreeMap<String, String>
A key-value pair of the resource’s labels (v1) to their values.
crypto_key_version: String
The name of the Cloud KMS CryptoKeyVersion used to protect this resource via CMEK. This field is empty if the Google Cloud product owning the resource does not provide key version data to Asset Inventory. If there are multiple key versions protecting the resource, then this is same value as the first element of crypto_key_versions.
crypto_key_versions: Vec<String>
The names of the Cloud KMS CryptoKeyVersion used to protect this resource via CMEK. This field is empty if the Google Cloud product owning the resource does not provide key versions data to Asset Inventory. The first element of this field is stored in crypto_key_version.
create_time: Option<Timestamp>
Output only. The time at which this resource was created. The granularity is in seconds. Timestamp.nanos will always be 0.
Trait Implementations§
source§impl Clone for ProtectedResource
impl Clone for ProtectedResource
source§fn clone(&self) -> ProtectedResource
fn clone(&self) -> ProtectedResource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProtectedResource
impl Debug for ProtectedResource
source§impl Default for ProtectedResource
impl Default for ProtectedResource
source§impl Message for ProtectedResource
impl Message for ProtectedResource
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 ProtectedResource
impl PartialEq for ProtectedResource
source§fn eq(&self, other: &ProtectedResource) -> bool
fn eq(&self, other: &ProtectedResource) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProtectedResource
Auto Trait Implementations§
impl Freeze for ProtectedResource
impl RefUnwindSafe for ProtectedResource
impl Send for ProtectedResource
impl Sync for ProtectedResource
impl Unpin for ProtectedResource
impl UnwindSafe for ProtectedResource
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