Struct googapis::google::storagetransfer::v1::ObjectConditions[][src]

pub struct ObjectConditions {
    pub min_time_elapsed_since_last_modification: Option<Duration>,
    pub max_time_elapsed_since_last_modification: Option<Duration>,
    pub include_prefixes: Vec<String>,
    pub exclude_prefixes: Vec<String>,
    pub last_modified_since: Option<Timestamp>,
    pub last_modified_before: Option<Timestamp>,
}
Expand description

Conditions that determine which objects will be transferred. Applies only to Cloud Data Sources such as S3, Azure, and Cloud Storage.

The “last modification time” refers to the time of the last change to the object’s content or metadata — specifically, this is the updated property of Cloud Storage objects, the LastModified field of S3 objects, and the Last-Modified header of Azure blobs.

Fields

min_time_elapsed_since_last_modification: Option<Duration>

If specified, only objects with a “last modification time” before NOW - min_time_elapsed_since_last_modification and objects that don’t have a “last modification time” are transferred.

For each [TransferOperation][google.storagetransfer.v1.TransferOperation] started by this [TransferJob][google.storagetransfer.v1.TransferJob], NOW refers to the [start_time] [google.storagetransfer.v1.TransferOperation.start_time] of the TransferOperation.

max_time_elapsed_since_last_modification: Option<Duration>

If specified, only objects with a “last modification time” on or after NOW - max_time_elapsed_since_last_modification and objects that don’t have a “last modification time” are transferred.

For each [TransferOperation][google.storagetransfer.v1.TransferOperation] started by this [TransferJob][google.storagetransfer.v1.TransferJob], NOW refers to the [start_time] [google.storagetransfer.v1.TransferOperation.start_time] of the TransferOperation.

include_prefixes: Vec<String>

If you specify include_prefixes, Storage Transfer Service uses the items in the include_prefixes array to determine which objects to include in a transfer. Objects must start with one of the matching include_prefixes for inclusion in the transfer. If [exclude_prefixes] [google.storagetransfer.v1.ObjectConditions.exclude_prefixes] is specified, objects must not start with any of the exclude_prefixes specified for inclusion in the transfer.

The following are requirements of include_prefixes:

The max size of include_prefixes is 1000.

For more information, see Filtering objects from transfers.

exclude_prefixes: Vec<String>

If you specify exclude_prefixes, Storage Transfer Service uses the items in the exclude_prefixes array to determine which objects to exclude from a transfer. Objects must not start with one of the matching exclude_prefixes for inclusion in a transfer.

The following are requirements of exclude_prefixes:

The max size of exclude_prefixes is 1000.

For more information, see Filtering objects from transfers.

last_modified_since: Option<Timestamp>

If specified, only objects with a “last modification time” on or after this timestamp and objects that don’t have a “last modification time” are transferred.

The last_modified_since and last_modified_before fields can be used together for chunked data processing. For example, consider a script that processes each day’s worth of data at a time. For that you’d set each of the fields as follows:

last_modified_before: Option<Timestamp>

If specified, only objects with a “last modification time” before this timestamp and objects that don’t have a “last modification time” will be transferred.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Returns the encoded length of the message without a length delimiter.

Clears the message, resetting all fields to their default.

Encodes the message to a buffer. Read more

Encodes the message to a newly allocated buffer.

Encodes the message with a length-delimiter to a buffer. Read more

Encodes the message with a length-delimiter to a newly allocated buffer.

Decodes an instance of the message from a buffer. Read more

Decodes a length-delimited instance of the message from the buffer.

Decodes an instance of the message from a buffer, and merges it into self. Read more

Decodes a length-delimited instance of the message from buffer, and merges it into self. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more