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

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

Represents a snapshot of a job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Snapshot

Returns a new instance of Snapshot.



4580
4581
4582
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4580

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)


4532
4533
4534
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4532

def creation_time
  @creation_time
end

#descriptionString

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

Returns:

  • (String)


4537
4538
4539
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4537

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)


4543
4544
4545
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4543

def disk_size_bytes
  @disk_size_bytes
end

#idString

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

Returns:

  • (String)


4548
4549
4550
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4548

def id
  @id
end

#project_idString

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

Returns:

  • (String)


4553
4554
4555
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4553

def project_id
  @project_id
end

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

Pub/Sub snapshot metadata. Corresponds to the JSON property pubsubMetadata



4558
4559
4560
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4558

def 
  @pubsub_metadata
end

#regionString

Cloud region where this snapshot lives in, e.g., "us-central1". Corresponds to the JSON property region

Returns:

  • (String)


4563
4564
4565
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4563

def region
  @region
end

#source_job_idString

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

Returns:

  • (String)


4568
4569
4570
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4568

def source_job_id
  @source_job_id
end

#stateString

State of the snapshot. Corresponds to the JSON property state

Returns:

  • (String)


4573
4574
4575
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4573

def state
  @state
end

#ttlString

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

Returns:

  • (String)


4578
4579
4580
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4578

def ttl
  @ttl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4585

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)
  @region = args[:region] if args.key?(:region)
  @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