Class: Google::Apis::StoragetransferV1::TransferOperation
- Inherits:
-
Object
- Object
- Google::Apis::StoragetransferV1::TransferOperation
- 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
A description of the execution of a transfer.
Instance Attribute Summary collapse
-
#counters ⇒ Google::Apis::StoragetransferV1::TransferCounters
A collection of counters that report the progress of a transfer operation.
-
#end_time ⇒ String
End time of this transfer execution.
-
#error_breakdowns ⇒ Array<Google::Apis::StoragetransferV1::ErrorSummary>
Summarizes errors encountered with sample error log entries.
-
#logging_config ⇒ Google::Apis::StoragetransferV1::LoggingConfig
Specifies the logging behavior for transfer operations.
-
#name ⇒ String
A globally unique ID assigned by the system.
-
#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 operation.
-
#start_time ⇒ String
Start time of this transfer execution.
-
#status ⇒ String
Status of the transfer operation.
-
#transfer_job_name ⇒ String
The name of the transfer job that triggers this transfer operation.
-
#transfer_spec ⇒ Google::Apis::StoragetransferV1::TransferSpec
Configuration for running a transfer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TransferOperation
constructor
A new instance of TransferOperation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TransferOperation
Returns a new instance of TransferOperation.
1604 1605 1606 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1604 def initialize(**args) update!(**args) end |
Instance Attribute Details
#counters ⇒ Google::Apis::StoragetransferV1::TransferCounters
A collection of counters that report the progress of a transfer operation.
Corresponds to the JSON property counters
1538 1539 1540 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1538 def counters @counters end |
#end_time ⇒ String
End time of this transfer execution.
Corresponds to the JSON property endTime
1543 1544 1545 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1543 def end_time @end_time end |
#error_breakdowns ⇒ Array<Google::Apis::StoragetransferV1::ErrorSummary>
Summarizes errors encountered with sample error log entries.
Corresponds to the JSON property errorBreakdowns
1548 1549 1550 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1548 def error_breakdowns @error_breakdowns 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
1559 1560 1561 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1559 def logging_config @logging_config end |
#name ⇒ String
A globally unique ID assigned by the system.
Corresponds to the JSON property name
1564 1565 1566 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1564 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
1577 1578 1579 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1577 def notification_config @notification_config end |
#project_id ⇒ String
The ID of the Google Cloud project that owns the operation.
Corresponds to the JSON property projectId
1582 1583 1584 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1582 def project_id @project_id end |
#start_time ⇒ String
Start time of this transfer execution.
Corresponds to the JSON property startTime
1587 1588 1589 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1587 def start_time @start_time end |
#status ⇒ String
Status of the transfer operation.
Corresponds to the JSON property status
1592 1593 1594 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1592 def status @status end |
#transfer_job_name ⇒ String
The name of the transfer job that triggers this transfer operation.
Corresponds to the JSON property transferJobName
1597 1598 1599 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1597 def transfer_job_name @transfer_job_name end |
#transfer_spec ⇒ Google::Apis::StoragetransferV1::TransferSpec
Configuration for running a transfer.
Corresponds to the JSON property transferSpec
1602 1603 1604 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1602 def transfer_spec @transfer_spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1609 def update!(**args) @counters = args[:counters] if args.key?(:counters) @end_time = args[:end_time] if args.key?(:end_time) @error_breakdowns = args[:error_breakdowns] if args.key?(:error_breakdowns) @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) @start_time = args[:start_time] if args.key?(:start_time) @status = args[:status] if args.key?(:status) @transfer_job_name = args[:transfer_job_name] if args.key?(:transfer_job_name) @transfer_spec = args[:transfer_spec] if args.key?(:transfer_spec) end |