Class: Google::Apis::StoragetransferV1::TransferJob
- Inherits:
-
Object
- Object
- Google::Apis::StoragetransferV1::TransferJob
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/storagetransfer_v1/classes.rb,
lib/google/apis/storagetransfer_v1/representations.rb,
lib/google/apis/storagetransfer_v1/representations.rb
Overview
This resource represents the configuration of a transfer job that runs periodically.
Instance Attribute Summary collapse
-
#creation_time ⇒ String
Output only.
-
#deletion_time ⇒ String
Output only.
-
#description ⇒ String
A description provided by the user for the job.
-
#last_modification_time ⇒ String
Output only.
-
#latest_operation_name ⇒ String
The name of the most recently started TransferOperation of this JobConfig.
-
#logging_config ⇒ Google::Apis::StoragetransferV1::LoggingConfig
Specifies the logging behavior for transfer operations.
-
#name ⇒ String
A unique name (within the transfer project) assigned when the job is created.
-
#notification_config ⇒ Google::Apis::StoragetransferV1::NotificationConfig
Specification to configure notifications published to Pub/Sub.
-
#project_id ⇒ String
The ID of the Google Cloud project that owns the job.
-
#schedule ⇒ Google::Apis::StoragetransferV1::Schedule
Transfers can be scheduled to recur or to run just once.
-
#status ⇒ String
Status of the job.
-
#transfer_spec ⇒ Google::Apis::StoragetransferV1::TransferSpec
Configuration for running a transfer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TransferJob
constructor
A new instance of TransferJob.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TransferJob
Returns a new instance of TransferJob.
1416 1417 1418 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1416 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_time ⇒ String
Output only. The time that the transfer job was created.
Corresponds to the JSON property creationTime
1327 1328 1329 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1327 def creation_time @creation_time end |
#deletion_time ⇒ String
Output only. The time that the transfer job was deleted.
Corresponds to the JSON property deletionTime
1332 1333 1334 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1332 def deletion_time @deletion_time end |
#description ⇒ String
A description provided by the user for the job. Its max length is 1024 bytes
when Unicode-encoded.
Corresponds to the JSON property description
1338 1339 1340 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1338 def description @description end |
#last_modification_time ⇒ String
Output only. The time that the transfer job was last modified.
Corresponds to the JSON property lastModificationTime
1343 1344 1345 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1343 def last_modification_time @last_modification_time end |
#latest_operation_name ⇒ String
The name of the most recently started TransferOperation of this JobConfig.
Present if a TransferOperation has been created for this JobConfig.
Corresponds to the JSON property latestOperationName
1349 1350 1351 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1349 def latest_operation_name @latest_operation_name end |
#logging_config ⇒ Google::Apis::StoragetransferV1::LoggingConfig
Specifies the logging behavior for transfer operations. For cloud-to-cloud
transfers, logs are sent to Cloud Logging. See Read transfer logs for details. For
transfers to or from a POSIX file system, logs are stored in the Cloud Storage
bucket that is the source or sink of the transfer. See Managing Transfer for
on-premises jobs for details.
Corresponds to the JSON property loggingConfig
1360 1361 1362 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1360 def logging_config @logging_config end |
#name ⇒ String
A unique name (within the transfer project) assigned when the job is created.
If this field is empty in a CreateTransferJobRequest, Storage Transfer Service
assigns a unique name. Otherwise, the specified name is used as the unique
name for this job. If the specified name is in use by a job, the creation
request fails with an ALREADY_EXISTS error. This name must start with "
transferJobs/" prefix and end with a letter or a number, and should be no
more than 128 characters. For transfers involving PosixFilesystem, this name
must start with transferJobs/OPI specifically. For all other transfer types,
this name must not start with transferJobs/OPI. Non-PosixFilesystem example:
"transferJobs/^(?!OPI)[A-Za-z0-9-._~]*[A-Za-z0-9]$" PosixFilesystem example:
"transferJobs/OPI^[A-Za-z0-9-._~]*[A-Za-z0-9]$" Applications must not rely
on the enforcement of naming requirements involving OPI. Invalid job names
fail with an INVALID_ARGUMENT error.
Corresponds to the JSON property name
1377 1378 1379 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1377 def name @name end |
#notification_config ⇒ Google::Apis::StoragetransferV1::NotificationConfig
Specification to configure notifications published to Pub/Sub. Notifications
are published to the customer-provided topic using the following
PubsubMessage.attributes: * "eventType": one of the EventType values * "
payloadFormat": one of the PayloadFormat values * "projectId": the
project_id of the TransferOperation * "transferJobName": the
transfer_job_name of the TransferOperation * "transferOperationName": the
name of the TransferOperation The PubsubMessage.data contains a
TransferOperation resource formatted according to the specified PayloadFormat
.
Corresponds to the JSON property notificationConfig
1390 1391 1392 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1390 def notification_config @notification_config end |
#project_id ⇒ String
The ID of the Google Cloud project that owns the job.
Corresponds to the JSON property projectId
1395 1396 1397 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1395 def project_id @project_id end |
#schedule ⇒ Google::Apis::StoragetransferV1::Schedule
Transfers can be scheduled to recur or to run just once.
Corresponds to the JSON property schedule
1400 1401 1402 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1400 def schedule @schedule end |
#status ⇒ String
Status of the job. This value MUST be specified for CreateTransferJobRequests
. Note: The effect of the new job status takes place during a subsequent
job run. For example, if you change the job status from ENABLED to DISABLED,
and an operation spawned by the transfer is running, the status change would
not affect the current operation.
Corresponds to the JSON property status
1409 1410 1411 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1409 def status @status end |
#transfer_spec ⇒ Google::Apis::StoragetransferV1::TransferSpec
Configuration for running a transfer.
Corresponds to the JSON property transferSpec
1414 1415 1416 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1414 def transfer_spec @transfer_spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1421 def update!(**args) @creation_time = args[:creation_time] if args.key?(:creation_time) @deletion_time = args[:deletion_time] if args.key?(:deletion_time) @description = args[:description] if args.key?(:description) @last_modification_time = args[:last_modification_time] if args.key?(:last_modification_time) @latest_operation_name = args[:latest_operation_name] if args.key?(:latest_operation_name) @logging_config = args[:logging_config] if args.key?(:logging_config) @name = args[:name] if args.key?(:name) @notification_config = args[:notification_config] if args.key?(:notification_config) @project_id = args[:project_id] if args.key?(:project_id) @schedule = args[:schedule] if args.key?(:schedule) @status = args[:status] if args.key?(:status) @transfer_spec = args[:transfer_spec] if args.key?(:transfer_spec) end |