Class: Google::Apis::DataflowV1b3::Snapshot

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Snapshot

Returns a new instance of Snapshot



3626
3627
3628
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3626

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#creation_timeString

The time this snapshot was created. Corresponds to the JSON property creationTime

Returns:

  • (String)


3604
3605
3606
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3604

def creation_time
  @creation_time
end

#idString

The unique ID of this snapshot. Corresponds to the JSON property id

Returns:

  • (String)


3609
3610
3611
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3609

def id
  @id
end

#project_idString

The project this snapshot belongs to. Corresponds to the JSON property projectId

Returns:

  • (String)


3614
3615
3616
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3614

def project_id
  @project_id
end

#source_job_idString

The job this snapshot was created from. Corresponds to the JSON property sourceJobId

Returns:

  • (String)


3619
3620
3621
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3619

def source_job_id
  @source_job_id
end

#ttlString

The time after which this snapshot will be automatically deleted. Corresponds to the JSON property ttl

Returns:

  • (String)


3624
3625
3626
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3624

def ttl
  @ttl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3631
3632
3633
3634
3635
3636
3637
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3631

def update!(**args)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @id = args[:id] if args.key?(:id)
  @project_id = args[:project_id] if args.key?(:project_id)
  @source_job_id = args[:source_job_id] if args.key?(:source_job_id)
  @ttl = args[:ttl] if args.key?(:ttl)
end