Class: Google::Apis::GamesV1::Snapshot
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GamesV1::Snapshot
 
- 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
This is a JSON template for an snapshot object.
Instance Attribute Summary collapse
- 
  
    
      #cover_image  ⇒ Google::Apis::GamesV1::SnapshotImage 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is a JSON template for an image of a snapshot. 
- 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The description of this snapshot. 
- 
  
    
      #drive_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the file underlying this snapshot in the Drive API. 
- 
  
    
      #duration_millis  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The duration associated with this snapshot, in millis. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the snapshot. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Uniquely identifies the type of this resource. 
- 
  
    
      #last_modified_millis  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The timestamp (in millis since Unix epoch) 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. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of this snapshot. 
- 
  
    
      #unique_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The unique name provided when the snapshot was created. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Snapshot 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Snapshot. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Snapshot
Returns a new instance of Snapshot
| 3968 3969 3970 | # File 'generated/google/apis/games_v1/classes.rb', line 3968 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#cover_image ⇒ Google::Apis::GamesV1::SnapshotImage
This is a JSON template for an image of a snapshot.
Corresponds to the JSON property coverImage
| 3910 3911 3912 | # File 'generated/google/apis/games_v1/classes.rb', line 3910 def cover_image @cover_image end | 
#description ⇒ String
The description of this snapshot.
Corresponds to the JSON property description
| 3915 3916 3917 | # File 'generated/google/apis/games_v1/classes.rb', line 3915 def description @description end | 
#drive_id ⇒ String
The ID of the file underlying this snapshot in the Drive API. Only present if
the snapshot is a view on a Drive file and the file is owned by the caller.
Corresponds to the JSON property driveId
| 3921 3922 3923 | # File 'generated/google/apis/games_v1/classes.rb', line 3921 def drive_id @drive_id end | 
#duration_millis ⇒ Fixnum
The duration associated with this snapshot, in millis.
Corresponds to the JSON property durationMillis
| 3926 3927 3928 | # File 'generated/google/apis/games_v1/classes.rb', line 3926 def duration_millis @duration_millis end | 
#id ⇒ String
The ID of the snapshot.
Corresponds to the JSON property id
| 3931 3932 3933 | # File 'generated/google/apis/games_v1/classes.rb', line 3931 def id @id end | 
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#snapshot.
Corresponds to the JSON property kind
| 3937 3938 3939 | # File 'generated/google/apis/games_v1/classes.rb', line 3937 def kind @kind end | 
#last_modified_millis ⇒ Fixnum
The timestamp (in millis since Unix epoch) of the last modification to this
snapshot.
Corresponds to the JSON property lastModifiedMillis
| 3943 3944 3945 | # File 'generated/google/apis/games_v1/classes.rb', line 3943 def last_modified_millis @last_modified_millis end | 
#progress_value ⇒ Fixnum
The progress value (64-bit integer set by developer) associated with this
snapshot.
Corresponds to the JSON property progressValue
| 3949 3950 3951 | # File 'generated/google/apis/games_v1/classes.rb', line 3949 def progress_value @progress_value end | 
#title ⇒ String
The title of this snapshot.
Corresponds to the JSON property title
| 3954 3955 3956 | # File 'generated/google/apis/games_v1/classes.rb', line 3954 def title @title end | 
#type ⇒ String
The type of this snapshot. Possible values are:
- "SAVE_GAME" - A snapshot representing a save game.
Corresponds to the JSON property type
| 3961 3962 3963 | # File 'generated/google/apis/games_v1/classes.rb', line 3961 def type @type end | 
#unique_name ⇒ String
The unique name provided when the snapshot was created.
Corresponds to the JSON property uniqueName
| 3966 3967 3968 | # File 'generated/google/apis/games_v1/classes.rb', line 3966 def unique_name @unique_name end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 | # File 'generated/google/apis/games_v1/classes.rb', line 3973 def update!(**args) @cover_image = args[:cover_image] if args.key?(:cover_image) @description = args[:description] if args.key?(:description) @drive_id = args[:drive_id] if args.key?(:drive_id) @duration_millis = args[:duration_millis] if args.key?(:duration_millis) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @last_modified_millis = args[:last_modified_millis] if args.key?(:last_modified_millis) @progress_value = args[:progress_value] if args.key?(:progress_value) @title = args[:title] if args.key?(:title) @type = args[:type] if args.key?(:type) @unique_name = args[:unique_name] if args.key?(:unique_name) end |