class Google::Apis::StoragetransferV1::TransferSpec

Configuration for running a transfer.

Attributes

aws_s3_data_source[RW]

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` @return [Google::Apis::StoragetransferV1::AwsS3Data]

azure_blob_storage_data_source[RW]

An AzureBlobStorageData resource can be a data source, but not a data sink. An AzureBlobStorageData resource represents one Azure container. The storage account determines the [Azure endpoint](docs.microsoft.com/en-us/azure/ storage/common/storage-create-storage-account#storage-account-endpoints). In an AzureBlobStorageData resource, a blobs's name is the [Azure Blob Storage blob's key name](docs.microsoft.com/en-us/rest/api/storageservices/ naming-and-referencing-containers–blobs–and-metadata#blob-names). Corresponds to the JSON property `azureBlobStorageDataSource` @return [Google::Apis::StoragetransferV1::AzureBlobStorageData]

gcs_data_sink[RW]

In a GcsData resource, an object's name is the Cloud Storage object's name and its “last modification time” refers to the object's `updated` property of Cloud Storage objects, which changes when the content or the metadata of the object is updated. Corresponds to the JSON property `gcsDataSink` @return [Google::Apis::StoragetransferV1::GcsData]

gcs_data_source[RW]

In a GcsData resource, an object's name is the Cloud Storage object's name and its “last modification time” refers to the object's `updated` property of Cloud Storage objects, which changes when the content or the metadata of the object is updated. Corresponds to the JSON property `gcsDataSource` @return [Google::Apis::StoragetransferV1::GcsData]

http_data_source[RW]

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](cloud.google.com/storage-transfer/docs/ create-url-list). When transferring data based on a URL list, keep the following in mind: * When an object located at `http(s)://hostname:port/` is transferred to a data sink, the name of the object at the data sink is `/`. * If the specified size of an object does not match the actual size of the object fetched, the object is not transferred. * If the specified MD5 does not match the MD5 computed from the transferred bytes, the object transfer fails. * Ensure that each URL you specify is publicly accessible. For example, in Cloud Storage you can [share an object publicly] (/storage/docs/cloud-console# _sharingdata) and get a link to it. * Storage Transfer Service obeys `robots. txt` rules and requires the source HTTP server to support `Range` requests and to return a `Content-Length` header in each response. * ObjectConditions have no effect when filtering objects to transfer. Corresponds to the JSON property `httpDataSource` @return [Google::Apis::StoragetransferV1::HttpData]

object_conditions[RW]

Conditions that determine which objects are 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. This is not supported for transfers involving PosixFilesystem. Corresponds to the JSON property `objectConditions` @return [Google::Apis::StoragetransferV1::ObjectConditions]

posix_data_source[RW]

A POSIX filesystem data source or sink. Corresponds to the JSON property `posixDataSource` @return [Google::Apis::StoragetransferV1::PosixFilesystem]

transfer_options[RW]

TransferOptions define the actions to be performed on objects in a transfer. Corresponds to the JSON property `transferOptions` @return [Google::Apis::StoragetransferV1::TransferOptions]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/storagetransfer_v1/classes.rb, line 1339
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/storagetransfer_v1/classes.rb, line 1344
def update!(**args)
  @aws_s3_data_source = args[:aws_s3_data_source] if args.key?(:aws_s3_data_source)
  @azure_blob_storage_data_source = args[:azure_blob_storage_data_source] if args.key?(:azure_blob_storage_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)
  @posix_data_source = args[:posix_data_source] if args.key?(:posix_data_source)
  @transfer_options = args[:transfer_options] if args.key?(:transfer_options)
end