Class: Google::Apis::GamesV1::SnapshotMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/games_v1/classes.rb,
generated/google/apis/games_v1/representations.rb,
generated/google/apis/games_v1/representations.rb

Overview

Metadata about a snapshot revision. Snapshot metadata is immutable - a metadata change corresponds to a new snapshot revision.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SnapshotMetadata

Returns a new instance of SnapshotMetadata.



2830
2831
2832
# File 'generated/google/apis/games_v1/classes.rb', line 2830

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

Instance Attribute Details

#descriptionString

The description of this snapshot. Corresponds to the JSON property description

Returns:

  • (String)


2800
2801
2802
# File 'generated/google/apis/games_v1/classes.rb', line 2800

def description
  @description
end

#device_nameString

The device that created the current revision. Corresponds to the JSON property deviceName

Returns:

  • (String)


2805
2806
2807
# File 'generated/google/apis/games_v1/classes.rb', line 2805

def device_name
  @device_name
end

#durationString

The duration associated with this snapshot. Values with sub-millisecond precision can be rounded or trimmed to the closest millisecond. Corresponds to the JSON property duration

Returns:

  • (String)


2811
2812
2813
# File 'generated/google/apis/games_v1/classes.rb', line 2811

def duration
  @duration
end

#last_modify_timeString

The timestamp of the last modification to this snapshot. Values with sub- millisecond precision can be rounded or trimmed to the closest millisecond. Corresponds to the JSON property lastModifyTime

Returns:

  • (String)


2817
2818
2819
# File 'generated/google/apis/games_v1/classes.rb', line 2817

def last_modify_time
  @last_modify_time
end

#progress_valueFixnum

The progress value (64-bit integer set by developer) associated with this snapshot. Corresponds to the JSON property progressValue

Returns:

  • (Fixnum)


2823
2824
2825
# File 'generated/google/apis/games_v1/classes.rb', line 2823

def progress_value
  @progress_value
end

#titleString

The title of this snapshot. Corresponds to the JSON property title

Returns:

  • (String)


2828
2829
2830
# File 'generated/google/apis/games_v1/classes.rb', line 2828

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2835
2836
2837
2838
2839
2840
2841
2842
# File 'generated/google/apis/games_v1/classes.rb', line 2835

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @device_name = args[:device_name] if args.key?(:device_name)
  @duration = args[:duration] if args.key?(:duration)
  @last_modify_time = args[:last_modify_time] if args.key?(:last_modify_time)
  @progress_value = args[:progress_value] if args.key?(:progress_value)
  @title = args[:title] if args.key?(:title)
end