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

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

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.



2870
2871
2872
# File 'generated/google/apis/games_v1/classes.rb', line 2870

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



2852
2853
2854
# File 'generated/google/apis/games_v1/classes.rb', line 2852

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



2857
2858
2859
# File 'generated/google/apis/games_v1/classes.rb', line 2857

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)


2862
2863
2864
# File 'generated/google/apis/games_v1/classes.rb', line 2862

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



2868
2869
2870
# File 'generated/google/apis/games_v1/classes.rb', line 2868

def 
  @metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2875
2876
2877
2878
2879
2880
# File 'generated/google/apis/games_v1/classes.rb', line 2875

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