class Google::Apis::DataflowV1b3::Snapshot

Represents a snapshot of a job.

Attributes

creation_time[RW]

The time this snapshot was created. Corresponds to the JSON property `creationTime` @return [String]

description[RW]

User specified description of the snapshot. Maybe empty. Corresponds to the JSON property `description` @return [String]

disk_size_bytes[RW]

The disk byte size of the snapshot. Only available for snapshots in READY state. Corresponds to the JSON property `diskSizeBytes` @return [Fixnum]

id[RW]

The unique ID of this snapshot. Corresponds to the JSON property `id` @return [String]

project_id[RW]

The project this snapshot belongs to. Corresponds to the JSON property `projectId` @return [String]

pubsub_metadata[RW]

Pub/Sub snapshot metadata. Corresponds to the JSON property `pubsubMetadata` @return [Array<Google::Apis::DataflowV1b3::PubsubSnapshotMetadata>]

region[RW]

Cloud region where this snapshot lives in, e.g., “us-central1”. Corresponds to the JSON property `region` @return [String]

source_job_id[RW]

The job this snapshot was created from. Corresponds to the JSON property `sourceJobId` @return [String]

state[RW]

State of the snapshot. Corresponds to the JSON property `state` @return [String]

ttl[RW]

The time after which this snapshot will be automatically deleted. Corresponds to the JSON property `ttl` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dataflow_v1b3/classes.rb, line 4413
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