Class: Google::Apis::GamesV1::CheckRevisionResponse

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

This is a JSON template for the result of checking a revision.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CheckRevisionResponse

Returns a new instance of CheckRevisionResponse.



2810
2811
2812
# File 'generated/google/apis/games_v1/classes.rb', line 2810

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

Instance Attribute Details

#api_versionString

The version of the API this client revision should use when calling API methods. Corresponds to the JSON property apiVersion

Returns:

  • (String)


2792
2793
2794
# File 'generated/google/apis/games_v1/classes.rb', line 2792

def api_version
  @api_version
end

#kindString

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

Returns:

  • (String)


2798
2799
2800
# File 'generated/google/apis/games_v1/classes.rb', line 2798

def kind
  @kind
end

#revision_statusString

The result of the revision check. Possible values are:

  • "OK" - The revision being used is current.
  • "DEPRECATED" - There is currently a newer version available, but the revision being used still works.
  • "INVALID" - The revision being used is not supported in any released version. Corresponds to the JSON property revisionStatus

Returns:

  • (String)


2808
2809
2810
# File 'generated/google/apis/games_v1/classes.rb', line 2808

def revision_status
  @revision_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2815
2816
2817
2818
2819
# File 'generated/google/apis/games_v1/classes.rb', line 2815

def update!(**args)
  @api_version = args[:api_version] if args.key?(:api_version)
  @kind = args[:kind] if args.key?(:kind)
  @revision_status = args[:revision_status] if args.key?(:revision_status)
end