Class: Google::Apis::DataflowV1b3::SnapshotJobRequest

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

Request to create 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) ⇒ SnapshotJobRequest

Returns a new instance of SnapshotJobRequest



3777
3778
3779
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3777

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

Instance Attribute Details

#locationString

The location that contains this job. Corresponds to the JSON property location

Returns:

  • (String)


3770
3771
3772
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3770

def location
  @location
end

#ttlString

TTL for the snapshot. Corresponds to the JSON property ttl

Returns:

  • (String)


3775
3776
3777
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3775

def ttl
  @ttl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3782
3783
3784
3785
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3782

def update!(**args)
  @location = args[:location] if args.key?(:location)
  @ttl = args[:ttl] if args.key?(:ttl)
end