Class: Google::Apis::StoragetransferV1::TransferSpec
- Inherits:
-
Object
- Object
- Google::Apis::StoragetransferV1::TransferSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/storagetransfer_v1/classes.rb,
generated/google/apis/storagetransfer_v1/representations.rb,
generated/google/apis/storagetransfer_v1/representations.rb
Overview
Configuration for running a transfer.
Instance Attribute Summary collapse
-
#aws_s3_data_source ⇒ Google::Apis::StoragetransferV1::AwsS3Data
An AwsS3Data resource can be a data source, but not a data sink.
-
#gcs_data_sink ⇒ Google::Apis::StoragetransferV1::GcsData
In a GcsData resource, an object's name is the Google Cloud Storage object's name and its
lastModificationTime
refers to the object's updated time, which changes when the content or the metadata of the object is updated. -
#gcs_data_source ⇒ Google::Apis::StoragetransferV1::GcsData
In a GcsData resource, an object's name is the Google Cloud Storage object's name and its
lastModificationTime
refers to the object's updated time, which changes when the content or the metadata of the object is updated. -
#http_data_source ⇒ Google::Apis::StoragetransferV1::HttpData
An HttpData resource specifies a list of objects on the web to be transferred over HTTP.
-
#object_conditions ⇒ Google::Apis::StoragetransferV1::ObjectConditions
Conditions that determine which objects will be transferred.
-
#transfer_options ⇒ Google::Apis::StoragetransferV1::TransferOptions
TransferOptions uses three boolean parameters to define the actions to be performed on objects in a transfer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TransferSpec
constructor
A new instance of TransferSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TransferSpec
Returns a new instance of TransferSpec
1085 1086 1087 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1085 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aws_s3_data_source ⇒ Google::Apis::StoragetransferV1::AwsS3Data
An AwsS3Data resource can be a data source, but not a data sink.
In an AwsS3Data resource, an object's name is the S3 object's key name.
Corresponds to the JSON property awsS3DataSource
1022 1023 1024 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1022 def aws_s3_data_source @aws_s3_data_source end |
#gcs_data_sink ⇒ Google::Apis::StoragetransferV1::GcsData
In a GcsData resource, an object's name is the Google Cloud Storage object's
name and its lastModificationTime
refers to the object's updated time,
which changes when the content or the metadata of the object is updated.
Corresponds to the JSON property gcsDataSink
1029 1030 1031 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1029 def gcs_data_sink @gcs_data_sink end |
#gcs_data_source ⇒ Google::Apis::StoragetransferV1::GcsData
In a GcsData resource, an object's name is the Google Cloud Storage object's
name and its lastModificationTime
refers to the object's updated time,
which changes when the content or the metadata of the object is updated.
Corresponds to the JSON property gcsDataSource
1036 1037 1038 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1036 def gcs_data_source @gcs_data_source end |
#http_data_source ⇒ Google::Apis::StoragetransferV1::HttpData
An HttpData resource specifies a list of objects on the web to be transferred over HTTP. The information of the objects to be transferred is contained in a file referenced by a URL. The first line in the file must be "TsvHttpData-1.0", which specifies the format of the file. Subsequent lines specify the information of the list of objects, one object per list entry. Each entry has the following tab-delimited fields:
- HTTP URL - The location of the object.
- Length - The size of the object in bytes.
- MD5 - The base64-encoded MD5 hash of the object. For an example of a valid TSV file, see Transferring data from URLs. When transferring data based on a URL list, keep the following in mind:
- When an object located at
http(s)://hostname:port/<URL-path>
is transferred to a data sink, the name of the object at the data sink is<hostname>/<URL-path>
. - If the specified size of an object does not match the actual size of the object fetched, the object will not be transferred.
- If the specified MD5 does not match the MD5 computed from the transferred bytes, the object transfer will fail. For more information, see Generating MD5 hashes
- Ensure that each URL you specify is publicly accessible. For example, in Google Cloud Storage you can share an object publicly and get a link to it.
- Storage Transfer Service obeys
robots.txt
rules and requires the source HTTP server to supportRange
requests and to return aContent-Length
header in each response. - ObjectConditions have no effect when filtering objects
to transfer.
Corresponds to the JSON property
httpDataSource
1071 1072 1073 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1071 def http_data_source @http_data_source end |
#object_conditions ⇒ Google::Apis::StoragetransferV1::ObjectConditions
Conditions that determine which objects will be transferred. Applies only
to S3 and GCS objects.
Corresponds to the JSON property objectConditions
1077 1078 1079 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1077 def object_conditions @object_conditions end |
#transfer_options ⇒ Google::Apis::StoragetransferV1::TransferOptions
TransferOptions uses three boolean parameters to define the actions
to be performed on objects in a transfer.
Corresponds to the JSON property transferOptions
1083 1084 1085 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1083 def @transfer_options end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1090 1091 1092 1093 1094 1095 1096 1097 |
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1090 def update!(**args) @aws_s3_data_source = args[:aws_s3_data_source] if args.key?(:aws_s3_data_source) @gcs_data_sink = args[:gcs_data_sink] if args.key?(:gcs_data_sink) @gcs_data_source = args[:gcs_data_source] if args.key?(:gcs_data_source) @http_data_source = args[:http_data_source] if args.key?(:http_data_source) @object_conditions = args[:object_conditions] if args.key?(:object_conditions) @transfer_options = args[:transfer_options] if args.key?(:transfer_options) end |