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