Class: Google::Apis::GamesV1::Snapshot

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

Overview

An snapshot object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Snapshot

Returns a new instance of Snapshot.



2508
2509
2510
# File 'lib/google/apis/games_v1/classes.rb', line 2508

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

Instance Attribute Details

#cover_imageGoogle::Apis::GamesV1::SnapshotImage

An image of a snapshot. Corresponds to the JSON property coverImage



2452
2453
2454
# File 'lib/google/apis/games_v1/classes.rb', line 2452

def cover_image
  @cover_image
end

#descriptionString

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

Returns:

  • (String)


2457
2458
2459
# File 'lib/google/apis/games_v1/classes.rb', line 2457

def description
  @description
end

#drive_idString

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

Returns:

  • (String)


2463
2464
2465
# File 'lib/google/apis/games_v1/classes.rb', line 2463

def drive_id
  @drive_id
end

#duration_millisFixnum

The duration associated with this snapshot, in millis. Corresponds to the JSON property durationMillis

Returns:

  • (Fixnum)


2468
2469
2470
# File 'lib/google/apis/games_v1/classes.rb', line 2468

def duration_millis
  @duration_millis
end

#idString

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

Returns:

  • (String)


2473
2474
2475
# File 'lib/google/apis/games_v1/classes.rb', line 2473

def id
  @id
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#snapshot. Corresponds to the JSON property kind

Returns:

  • (String)


2479
2480
2481
# File 'lib/google/apis/games_v1/classes.rb', line 2479

def kind
  @kind
end

#last_modified_millisFixnum

The timestamp (in millis since Unix epoch) of the last modification to this snapshot. Corresponds to the JSON property lastModifiedMillis

Returns:

  • (Fixnum)


2485
2486
2487
# File 'lib/google/apis/games_v1/classes.rb', line 2485

def last_modified_millis
  @last_modified_millis
end

#progress_valueFixnum

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

Returns:

  • (Fixnum)


2491
2492
2493
# File 'lib/google/apis/games_v1/classes.rb', line 2491

def progress_value
  @progress_value
end

#titleString

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

Returns:

  • (String)


2496
2497
2498
# File 'lib/google/apis/games_v1/classes.rb', line 2496

def title
  @title
end

#typeString

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

Returns:

  • (String)


2501
2502
2503
# File 'lib/google/apis/games_v1/classes.rb', line 2501

def type
  @type
end

#unique_nameString

The unique name provided when the snapshot was created. Corresponds to the JSON property uniqueName

Returns:

  • (String)


2506
2507
2508
# File 'lib/google/apis/games_v1/classes.rb', line 2506

def unique_name
  @unique_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
# File 'lib/google/apis/games_v1/classes.rb', line 2513

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