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.


4374
4375
4376
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4374

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)

4356
4357
4358
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4356

def description
  @description
end

#locationString

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

Returns:

  • (String)

4361
4362
4363
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4361

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)

4366
4367
4368
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4366

def snapshot_sources
  @snapshot_sources
end

#ttlString

TTL for the snapshot. Corresponds to the JSON property ttl

Returns:

  • (String)

4372
4373
4374
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4372

def ttl
  @ttl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4379
4380
4381
4382
4383
4384
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4379

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