#[non_exhaustive]pub struct CreateSinkRequest {
pub parent: String,
pub sink: Option<LogSink>,
pub unique_writer_identity: bool,
/* private fields */
}Expand description
The parameters to CreateSink.
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.parent: StringRequired. The resource in which to create the sink:
"projects/[PROJECT_ID]"
"organizations/[ORGANIZATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]"
"folders/[FOLDER_ID]"For examples:
"projects/my-project"
"organizations/123456789"
sink: Option<LogSink>Required. The new sink, whose name parameter is a sink identifier that
is not already in use.
unique_writer_identity: boolOptional. Determines the kind of IAM identity returned as writer_identity
in the new sink. If this value is omitted or set to false, and if the
sink’s parent is a project, then the value returned as writer_identity is
the same group or service account used by Cloud Logging before the addition
of writer identities to this API. The sink’s destination must be in the
same project as the sink itself.
If this field is set to true, or if the sink is owned by a non-project
resource such as an organization, then the value of writer_identity will
be a unique service account used only for exports from the new sink. For
more information, see writer_identity in
LogSink.
Implementations§
Source§impl CreateSinkRequest
impl CreateSinkRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
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.
Trait Implementations§
Source§impl Clone for CreateSinkRequest
impl Clone for CreateSinkRequest
Source§fn clone(&self) -> CreateSinkRequest
fn clone(&self) -> CreateSinkRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more