Class: Google::Apis::DataflowV1b3::Snapshot
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::Snapshot
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataflow_v1b3/classes.rb,
generated/google/apis/dataflow_v1b3/representations.rb,
generated/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>
PubSub snapshot metadata.
-
#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.
4506 4507 4508 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4506 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_time ⇒ String
The time this snapshot was created.
Corresponds to the JSON property creationTime
4463 4464 4465 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4463 def creation_time @creation_time end |
#description ⇒ String
User specified description of the snapshot. Maybe empty.
Corresponds to the JSON property description
4468 4469 4470 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4468 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
4474 4475 4476 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4474 def disk_size_bytes @disk_size_bytes end |
#id ⇒ String
The unique ID of this snapshot.
Corresponds to the JSON property id
4479 4480 4481 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4479 def id @id end |
#project_id ⇒ String
The project this snapshot belongs to.
Corresponds to the JSON property projectId
4484 4485 4486 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4484 def project_id @project_id end |
#pubsub_metadata ⇒ Array<Google::Apis::DataflowV1b3::PubsubSnapshotMetadata>
PubSub snapshot metadata.
Corresponds to the JSON property pubsubMetadata
4489 4490 4491 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4489 def @pubsub_metadata end |
#source_job_id ⇒ String
The job this snapshot was created from.
Corresponds to the JSON property sourceJobId
4494 4495 4496 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4494 def source_job_id @source_job_id end |
#state ⇒ String
State of the snapshot.
Corresponds to the JSON property state
4499 4500 4501 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4499 def state @state end |
#ttl ⇒ String
The time after which this snapshot will be automatically deleted.
Corresponds to the JSON property ttl
4504 4505 4506 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4504 def ttl @ttl end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4511 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) @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 |