#[non_exhaustive]pub struct UpdateSinkRequest {
pub sink_name: String,
pub sink: Option<LogSink>,
pub unique_writer_identity: bool,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
The parameters to UpdateSink.
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.sink_name: StringRequired. The full resource name of the sink to update, including the parent resource and the sink identifier:
"projects/[PROJECT_ID]/sinks/[SINK_ID]"
"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
"folders/[FOLDER_ID]/sinks/[SINK_ID]"For example:
"projects/my-project/sinks/my-sink"
sink: Option<LogSink>Required. The updated sink, whose name is the same identifier that appears
as part of sink_name.
unique_writer_identity: boolOptional. See sinks.create
for a description of this field. When updating a sink, the effect of this
field on the value of writer_identity in the updated sink depends on both
the old and new values of this field:
- If the old and new values of this field are both false or both true,
then there is no change to the sink’s
writer_identity. - If the old value is false and the new value is true, then
writer_identityis changed to a unique service account. - It is an error if the old value is true and the new value is set to false or defaulted to false.
update_mask: Option<FieldMask>Optional. Field mask that specifies the fields in sink that need
an update. A sink field will be overwritten if, and only if, it is
in the update mask. name and output only fields cannot be updated.
An empty updateMask is temporarily treated as using the following mask
for backwards compatibility purposes:
destination,filter,includeChildren
At some point in the future, behavior will be removed and specifying an
empty updateMask will be an error.
For a detailed FieldMask definition, see
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
For example: updateMask=filter
Implementations§
Source§impl UpdateSinkRequest
impl UpdateSinkRequest
pub fn new() -> Self
Sourcepub fn set_sink_name<T: Into<String>>(self, v: T) -> Self
pub fn set_sink_name<T: Into<String>>(self, v: T) -> Self
Sets the value of sink_name.
Sourcepub fn set_or_clear_sink<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_sink<T>(self, v: Option<T>) -> Self
Sets or clears the value of sink.
Sourcepub fn set_unique_writer_identity<T: Into<bool>>(self, v: T) -> Self
pub fn set_unique_writer_identity<T: Into<bool>>(self, v: T) -> Self
Sets the value of unique_writer_identity.
Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
Trait Implementations§
Source§impl Clone for UpdateSinkRequest
impl Clone for UpdateSinkRequest
Source§fn clone(&self) -> UpdateSinkRequest
fn clone(&self) -> UpdateSinkRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more