Class: Google::Apis::GamesV1::SnapshotRevision

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

A Snapshot revision resource. Snapshot revisions are immutable.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SnapshotRevision

Returns a new instance of SnapshotRevision.



2842
2843
2844
# File 'lib/google/apis/games_v1/classes.rb', line 2842

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

Instance Attribute Details

#blobGoogle::Apis::GamesV1::SnapshotDataResource

Identifies a snapshot data resource. The data is provided by the game. Corresponds to the JSON property blob



2824
2825
2826
# File 'lib/google/apis/games_v1/classes.rb', line 2824

def blob
  @blob
end

#cover_imageGoogle::Apis::GamesV1::SnapshotCoverImageResource

Identifies a snapshot cover image resource. The image is provided by the game. Corresponds to the JSON property coverImage



2829
2830
2831
# File 'lib/google/apis/games_v1/classes.rb', line 2829

def cover_image
  @cover_image
end

#idString

Output only. A server generated identifier of the snapshot revision. Corresponds to the JSON property id

Returns:

  • (String)


2834
2835
2836
# File 'lib/google/apis/games_v1/classes.rb', line 2834

def id
  @id
end

#metadataGoogle::Apis::GamesV1::SnapshotMetadata

Metadata about a snapshot revision. Snapshot metadata is immutable - a metadata change corresponds to a new snapshot revision. Corresponds to the JSON property metadata



2840
2841
2842
# File 'lib/google/apis/games_v1/classes.rb', line 2840

def 
  @metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2847
2848
2849
2850
2851
2852
# File 'lib/google/apis/games_v1/classes.rb', line 2847

def update!(**args)
  @blob = args[:blob] if args.key?(:blob)
  @cover_image = args[:cover_image] if args.key?(:cover_image)
  @id = args[:id] if args.key?(:id)
  @metadata = args[:metadata] if args.key?(:metadata)
end