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

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

Request to create a snapshot of a job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SnapshotJobRequest

Returns a new instance of SnapshotJobRequest.



5222
5223
5224
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5222

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

Instance Attribute Details

#descriptionString

User specified description of the snapshot. Maybe empty. Corresponds to the JSON property description

Returns:

  • (String)


5204
5205
5206
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5204

def description
  @description
end

#locationString

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

Returns:

  • (String)


5209
5210
5211
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5209

def location
  @location
end

#snapshot_sourcesBoolean Also known as: snapshot_sources?

If true, perform snapshots for sources which support this. Corresponds to the JSON property snapshotSources

Returns:

  • (Boolean)


5214
5215
5216
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5214

def snapshot_sources
  @snapshot_sources
end

#ttlString

TTL for the snapshot. Corresponds to the JSON property ttl

Returns:

  • (String)


5220
5221
5222
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5220

def ttl
  @ttl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5227
5228
5229
5230
5231
5232
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5227

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