Struct google_api_proto::google::storagetransfer::v1::TransferSpec
source · pub struct TransferSpec {
pub object_conditions: Option<ObjectConditions>,
pub transfer_options: Option<TransferOptions>,
pub transfer_manifest: Option<TransferManifest>,
pub source_agent_pool_name: String,
pub sink_agent_pool_name: String,
pub data_sink: Option<DataSink>,
pub data_source: Option<DataSource>,
pub intermediate_data_location: Option<IntermediateDataLocation>,
}
Expand description
Configuration for running a transfer.
Fields§
§object_conditions: Option<ObjectConditions>
Only objects that satisfy these object conditions are included in the set of data source and data sink objects. Object conditions based on objects’ “last modification time” do not exclude objects in a data sink.
transfer_options: Option<TransferOptions>
If the option
[delete_objects_unique_in_sink][google.storagetransfer.v1.TransferOptions.delete_objects_unique_in_sink]
is true
and time-based object conditions such as ‘last modification time’
are specified, the request fails with an
[INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error.
transfer_manifest: Option<TransferManifest>
A manifest file provides a list of objects to be transferred from the data source. This field points to the location of the manifest file. Otherwise, the entire source bucket is used. ObjectConditions still apply.
source_agent_pool_name: String
Specifies the agent pool name associated with the posix data source. When unspecified, the default name is used.
sink_agent_pool_name: String
Specifies the agent pool name associated with the posix data sink. When unspecified, the default name is used.
data_sink: Option<DataSink>
The write sink for the data.
data_source: Option<DataSource>
The read source of the data.
intermediate_data_location: Option<IntermediateDataLocation>
Trait Implementations§
source§impl Clone for TransferSpec
impl Clone for TransferSpec
source§fn clone(&self) -> TransferSpec
fn clone(&self) -> TransferSpec
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransferSpec
impl Debug for TransferSpec
source§impl Default for TransferSpec
impl Default for TransferSpec
source§impl Message for TransferSpec
impl Message for TransferSpec
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 TransferSpec
impl PartialEq for TransferSpec
source§fn eq(&self, other: &TransferSpec) -> bool
fn eq(&self, other: &TransferSpec) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransferSpec
Auto Trait Implementations§
impl Freeze for TransferSpec
impl RefUnwindSafe for TransferSpec
impl Send for TransferSpec
impl Sync for TransferSpec
impl Unpin for TransferSpec
impl UnwindSafe for TransferSpec
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