Class: Google::Apis::DataflowV1b3::Snapshot
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::Snapshot
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataflow_v1b3/classes.rb,
lib/google/apis/dataflow_v1b3/representations.rb,
lib/google/apis/dataflow_v1b3/representations.rb
Overview
Represents a snapshot of a job.
Instance Attribute Summary collapse
-
#creation_time ⇒ String
The time this snapshot was created.
-
#description ⇒ String
User specified description of the snapshot.
-
#disk_size_bytes ⇒ Fixnum
The disk byte size of the snapshot.
-
#id ⇒ String
The unique ID of this snapshot.
-
#project_id ⇒ String
The project this snapshot belongs to.
-
#pubsub_metadata ⇒ Array<Google::Apis::DataflowV1b3::PubsubSnapshotMetadata>
Pub/Sub snapshot metadata.
-
#region ⇒ String
Cloud region where this snapshot lives in, e.g., "us-central1".
-
#source_job_id ⇒ String
The job this snapshot was created from.
-
#state ⇒ String
State of the snapshot.
-
#ttl ⇒ String
The time after which this snapshot will be automatically deleted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Snapshot
constructor
A new instance of Snapshot.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Snapshot
Returns a new instance of Snapshot.
5127 5128 5129 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5127 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_time ⇒ String
The time this snapshot was created.
Corresponds to the JSON property creationTime
5079 5080 5081 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5079 def creation_time @creation_time end |
#description ⇒ String
User specified description of the snapshot. Maybe empty.
Corresponds to the JSON property description
5084 5085 5086 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5084 def description @description end |
#disk_size_bytes ⇒ Fixnum
The disk byte size of the snapshot. Only available for snapshots in READY
state.
Corresponds to the JSON property diskSizeBytes
5090 5091 5092 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5090 def disk_size_bytes @disk_size_bytes end |
#id ⇒ String
The unique ID of this snapshot.
Corresponds to the JSON property id
5095 5096 5097 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5095 def id @id end |
#project_id ⇒ String
The project this snapshot belongs to.
Corresponds to the JSON property projectId
5100 5101 5102 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5100 def project_id @project_id end |
#pubsub_metadata ⇒ Array<Google::Apis::DataflowV1b3::PubsubSnapshotMetadata>
Pub/Sub snapshot metadata.
Corresponds to the JSON property pubsubMetadata
5105 5106 5107 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5105 def @pubsub_metadata end |
#region ⇒ String
Cloud region where this snapshot lives in, e.g., "us-central1".
Corresponds to the JSON property region
5110 5111 5112 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5110 def region @region end |
#source_job_id ⇒ String
The job this snapshot was created from.
Corresponds to the JSON property sourceJobId
5115 5116 5117 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5115 def source_job_id @source_job_id end |
#state ⇒ String
State of the snapshot.
Corresponds to the JSON property state
5120 5121 5122 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5120 def state @state end |
#ttl ⇒ String
The time after which this snapshot will be automatically deleted.
Corresponds to the JSON property ttl
5125 5126 5127 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5125 def ttl @ttl end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5132 def update!(**args) @creation_time = args[:creation_time] if args.key?(:creation_time) @description = args[:description] if args.key?(:description) @disk_size_bytes = args[:disk_size_bytes] if args.key?(:disk_size_bytes) @id = args[:id] if args.key?(:id) @project_id = args[:project_id] if args.key?(:project_id) @pubsub_metadata = args[:pubsub_metadata] if args.key?(:pubsub_metadata) @region = args[:region] if args.key?(:region) @source_job_id = args[:source_job_id] if args.key?(:source_job_id) @state = args[:state] if args.key?(:state) @ttl = args[:ttl] if args.key?(:ttl) end |