Struct google_api_proto::google::logging::v2::CreateSinkRequest
source · pub struct CreateSinkRequest {
pub parent: String,
pub sink: Option<LogSink>,
pub unique_writer_identity: bool,
}
Expand description
The parameters to CreateSink
.
Fields§
§parent: String
Required. 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: bool
Optional. 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][google.logging.v2.LogSink].
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 moresource§impl Debug for CreateSinkRequest
impl Debug for CreateSinkRequest
source§impl Default for CreateSinkRequest
impl Default for CreateSinkRequest
source§impl Message for CreateSinkRequest
impl Message for CreateSinkRequest
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 CreateSinkRequest
impl PartialEq for CreateSinkRequest
source§fn eq(&self, other: &CreateSinkRequest) -> bool
fn eq(&self, other: &CreateSinkRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateSinkRequest
Auto Trait Implementations§
impl Freeze for CreateSinkRequest
impl RefUnwindSafe for CreateSinkRequest
impl Send for CreateSinkRequest
impl Sync for CreateSinkRequest
impl Unpin for CreateSinkRequest
impl UnwindSafe for CreateSinkRequest
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