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.


4331
4332
4333
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4331

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)

4288
4289
4290
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4288

def creation_time
  @creation_time
end

#descriptionString

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

Returns:

  • (String)

4293
4294
4295
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4293

def description
  @description
end

#disk_size_bytesFixnum

The disk byte size of the snapshot. Only available for snapshots in READY state. Corresponds to the JSON property diskSizeBytes

Returns:

  • (Fixnum)

4299
4300
4301
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4299

def disk_size_bytes
  @disk_size_bytes
end

#idString

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

Returns:

  • (String)

4304
4305
4306
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4304

def id
  @id
end

#project_idString

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

Returns:

  • (String)

4309
4310
4311
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4309

def project_id
  @project_id
end

#pubsub_metadataArray<Google::Apis::DataflowV1b3::PubsubSnapshotMetadata>

PubSub snapshot metadata. Corresponds to the JSON property pubsubMetadata


4314
4315
4316
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4314

def 
  @pubsub_metadata
end

#source_job_idString

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

Returns:

  • (String)

4319
4320
4321
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4319

def source_job_id
  @source_job_id
end

#stateString

State of the snapshot. Corresponds to the JSON property state

Returns:

  • (String)

4324
4325
4326
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4324

def state
  @state
end

#ttlString

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

Returns:

  • (String)

4329
4330
4331
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4329

def ttl
  @ttl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4336

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)
  @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