Class: Google::Apis::GamesV1::SnapshotMetadata
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::SnapshotMetadata
- 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
-
#description ⇒ String
The description of this snapshot.
-
#device_name ⇒ String
The device that created the current revision.
-
#duration ⇒ String
The duration associated with this snapshot.
-
#last_modify_time ⇒ String
The timestamp of the last modification to this snapshot.
-
#progress_value ⇒ Fixnum
The progress value (64-bit integer set by developer) associated with this snapshot.
-
#title ⇒ String
The title of this snapshot.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SnapshotMetadata
constructor
A new instance of SnapshotMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#description ⇒ String
The description of this snapshot.
Corresponds to the JSON property description
2800 2801 2802 |
# File 'generated/google/apis/games_v1/classes.rb', line 2800 def description @description end |
#device_name ⇒ String
The device that created the current revision.
Corresponds to the JSON property deviceName
2805 2806 2807 |
# File 'generated/google/apis/games_v1/classes.rb', line 2805 def device_name @device_name end |
#duration ⇒ String
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
2811 2812 2813 |
# File 'generated/google/apis/games_v1/classes.rb', line 2811 def duration @duration end |
#last_modify_time ⇒ String
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
2817 2818 2819 |
# File 'generated/google/apis/games_v1/classes.rb', line 2817 def last_modify_time @last_modify_time end |
#progress_value ⇒ Fixnum
The progress value (64-bit integer set by developer) associated with this
snapshot.
Corresponds to the JSON property progressValue
2823 2824 2825 |
# File 'generated/google/apis/games_v1/classes.rb', line 2823 def progress_value @progress_value end |
#title ⇒ String
The title of this snapshot.
Corresponds to the JSON property title
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 |