#[non_exhaustive]pub struct GoogleApiSource {
pub name: String,
pub uid: String,
pub etag: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub annotations: HashMap<String, String>,
pub display_name: String,
pub destination: String,
pub crypto_key_name: String,
pub logging_config: Option<LoggingConfig>,
/* private fields */
}Expand description
A GoogleApiSource represents a subscription of 1P events from a MessageBus.
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: StringIdentifier. Resource name of the form projects/{project}/locations/{location}/googleApiSources/{google_api_source}
uid: StringOutput only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
etag: StringOutput only. This checksum is computed by the server based on the value of other fields, and might be sent only on update and delete requests to ensure that the client has an up-to-date value before proceeding.
create_time: Option<Timestamp>Output only. The creation time.
update_time: Option<Timestamp>Output only. The last-modified time.
labels: HashMap<String, String>Optional. Resource labels.
annotations: HashMap<String, String>Optional. Resource annotations.
display_name: StringOptional. Resource display name.
destination: StringRequired. Destination is the message bus that the GoogleApiSource is delivering to. It must be point to the full resource name of a MessageBus. Format: “projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
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/*.
logging_config: Option<LoggingConfig>Optional. Config to control Platform logging for the GoogleApiSource.
Implementations§
Source§impl GoogleApiSource
impl GoogleApiSource
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
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_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_annotations<T, K, V>(self, v: T) -> Self
pub fn set_annotations<T, K, V>(self, v: T) -> Self
Sets the value of annotations.
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_destination<T: Into<String>>(self, v: T) -> Self
pub fn set_destination<T: Into<String>>(self, v: T) -> Self
Sets the value of destination.
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_logging_config<T>(self, v: T) -> Selfwhere
T: Into<LoggingConfig>,
pub fn set_logging_config<T>(self, v: T) -> Selfwhere
T: Into<LoggingConfig>,
Sets the value of logging_config.
Sourcepub fn set_or_clear_logging_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<LoggingConfig>,
pub fn set_or_clear_logging_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<LoggingConfig>,
Sets or clears the value of logging_config.
Trait Implementations§
Source§impl Clone for GoogleApiSource
impl Clone for GoogleApiSource
Source§fn clone(&self) -> GoogleApiSource
fn clone(&self) -> GoogleApiSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more