#[non_exhaustive]pub struct GoogleChannelConfig {
pub name: String,
pub update_time: Option<Timestamp>,
pub crypto_key_name: String,
pub labels: HashMap<String, String>,
/* private fields */
}Expand description
A GoogleChannelConfig is a resource that stores the custom settings respected by Eventarc first-party triggers in the matching region. Once configured, first-party event data will be protected using the specified custom managed encryption key instead of Google-managed encryption keys.
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: StringRequired. The resource name of the config. Must be in the format of,
projects/{project}/locations/{location}/googleChannelConfig.
In API responses, the config name always includes the projectID, regardless
of whether the projectID or projectNumber was provided.
update_time: Option<Timestamp>Output only. The last-modified time.
crypto_key_name: StringOptional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data.
It must match the pattern
projects/*/locations/*/keyRings/*/cryptoKeys/*.
labels: HashMap<String, String>Optional. Resource labels.
Implementations§
Source§impl GoogleChannelConfig
impl GoogleChannelConfig
pub fn new() -> Self
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.
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.
Sourcepub fn set_crypto_key_name<T: Into<String>>(self, v: T) -> Self
pub fn set_crypto_key_name<T: Into<String>>(self, v: T) -> Self
Sets the value of crypto_key_name.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Trait Implementations§
Source§impl Clone for GoogleChannelConfig
impl Clone for GoogleChannelConfig
Source§fn clone(&self) -> GoogleChannelConfig
fn clone(&self) -> GoogleChannelConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more