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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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