pub struct UpdateTransferJobRequest {
pub job_name: String,
pub project_id: String,
pub transfer_job: Option<TransferJob>,
pub update_transfer_job_field_mask: Option<FieldMask>,
}
Expand description
Request passed to UpdateTransferJob.
Fields§
§job_name: String
Required. The name of job to update.
project_id: String
Required. The ID of the Google Cloud project that owns the job.
transfer_job: Option<TransferJob>
Required. The job to update. transferJob
is expected to specify one or
more of five fields:
[description][google.storagetransfer.v1.TransferJob.description],
[transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec],
[notification_config][google.storagetransfer.v1.TransferJob.notification_config],
[logging_config][google.storagetransfer.v1.TransferJob.logging_config], and
[status][google.storagetransfer.v1.TransferJob.status]. An
UpdateTransferJobRequest
that specifies other fields are rejected with
the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. Updating a
job status to
[DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] requires
storagetransfer.jobs.delete
permission.
update_transfer_job_field_mask: Option<FieldMask>
The field mask of the fields in transferJob
that are to be updated in
this request. Fields in transferJob
that can be updated are:
[description][google.storagetransfer.v1.TransferJob.description],
[transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec],
[notification_config][google.storagetransfer.v1.TransferJob.notification_config],
[logging_config][google.storagetransfer.v1.TransferJob.logging_config], and
[status][google.storagetransfer.v1.TransferJob.status]. To update the
transfer_spec
of the job, a complete transfer specification must be
provided. An incomplete specification missing any required fields is
rejected with the error
[INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
Trait Implementations§
source§impl Clone for UpdateTransferJobRequest
impl Clone for UpdateTransferJobRequest
source§fn clone(&self) -> UpdateTransferJobRequest
fn clone(&self) -> UpdateTransferJobRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateTransferJobRequest
impl Debug for UpdateTransferJobRequest
source§impl Default for UpdateTransferJobRequest
impl Default for UpdateTransferJobRequest
source§impl Message for UpdateTransferJobRequest
impl Message for UpdateTransferJobRequest
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 UpdateTransferJobRequest
impl PartialEq for UpdateTransferJobRequest
source§fn eq(&self, other: &UpdateTransferJobRequest) -> bool
fn eq(&self, other: &UpdateTransferJobRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateTransferJobRequest
Auto Trait Implementations§
impl Freeze for UpdateTransferJobRequest
impl RefUnwindSafe for UpdateTransferJobRequest
impl Send for UpdateTransferJobRequest
impl Sync for UpdateTransferJobRequest
impl Unpin for UpdateTransferJobRequest
impl UnwindSafe for UpdateTransferJobRequest
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