Files
google-api-ruby-client/generated/google/apis/games_v1/representations.rb
T
Yoshi Automation Bot 8c087d1968 feat: Automated regeneration of games v1 client (#1299)
This PR was generated using Autosynth. 🌈


<details><summary>Log from Synthtool</summary>

```
2020-10-28 02:35:43,530 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-games-v1
nothing to commit, working tree clean
2020-10-28 02:35:43,568 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth games v1
DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth games v1
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 11.3.0
Installing rake 11.3.0
Fetching concurrent-ruby 1.1.7
Installing concurrent-ruby 1.1.7
Fetching i18n 1.8.5
Installing i18n 1.8.5
Fetching minitest 5.14.2
Installing minitest 5.14.2
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.7
Installing tzinfo 1.2.7
Fetching activesupport 5.0.7.2
Installing activesupport 5.0.7.2
Fetching public_suffix 4.0.6
Installing public_suffix 4.0.6
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching ast 2.4.1
Installing ast 2.4.1
Using bundler 2.1.4
Fetching byebug 11.1.3
Installing byebug 11.1.3 with native extensions
Fetching coderay 1.1.3
Installing coderay 1.1.3
Fetching json 2.3.1
Installing json 2.3.1 with native extensions
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Using sync 0.5.0
Fetching tins 1.26.0
Installing tins 1.26.0
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Fetching crack 0.4.4
Installing crack 0.4.4
Fetching declarative 0.0.20
Installing declarative 0.0.20
Fetching declarative-option 0.1.0
Installing declarative-option 0.1.0
Fetching diff-lcs 1.4.4
Installing diff-lcs 1.4.4
Fetching dotenv 2.7.6
Installing dotenv 2.7.6
Fetching fakefs 0.20.1
Installing fakefs 0.20.1
Fetching multipart-post 2.1.1
Installing multipart-post 2.1.1
Fetching ruby2_keywords 0.0.2
Installing ruby2_keywords 0.0.2
Fetching faraday 1.1.0
Installing faraday 1.1.0
Fetching gems 1.2.0
Installing gems 1.2.0
Fetching github-markup 1.7.0
Installing github-markup 1.7.0
Fetching jwt 2.2.2
Installing jwt 2.2.2
Fetching memoist 0.16.2
Installing memoist 0.16.2
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Fetching os 0.9.6
Installing os 0.9.6
Fetching signet 0.14.0
Installing signet 0.14.0
Fetching googleauth 0.14.0
Installing googleauth 0.14.0
Fetching httpclient 2.8.3
Installing httpclient 2.8.3
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching representable 3.0.4
Installing representable 3.0.4
Fetching retriable 3.1.2
Installing retriable 3.1.2
Fetching rexml 3.2.4
Installing rexml 3.2.4
Using google-api-client 0.47.0 from source at `.`
Fetching google-id-token 1.4.2
Installing google-id-token 1.4.2
Fetching hashdiff 1.0.1
Installing hashdiff 1.0.1
Fetching mime-types-data 3.2020.0512
Installing mime-types-data 3.2020.0512
Fetching mime-types 3.3.1
Installing mime-types 3.3.1
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching httparty 0.18.1
Installing httparty 0.18.1
Fetching rspec-support 3.9.4
Installing rspec-support 3.9.4
Fetching rspec-core 3.9.3
Installing rspec-core 3.9.3
Fetching rspec-expectations 3.9.3
Installing rspec-expectations 3.9.3
Fetching rspec-mocks 3.9.1
Installing rspec-mocks 3.9.1
Fetching rspec 3.9.0
Installing rspec 3.9.0
Fetching json_spec 1.1.5
Installing json_spec 1.1.5
Fetching launchy 2.5.0
Installing launchy 2.5.0
Fetching little-plugger 1.1.4
Installing little-plugger 1.1.4
Fetching logging 2.3.0
Installing logging 2.3.0
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching opencensus 0.5.0
Installing opencensus 0.5.0
Fetching parallel 1.19.2
Installing parallel 1.19.2
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.2
Installing powerpack 0.1.2
Fetching pry 0.13.1
Installing pry 0.13.1
Fetching pry-byebug 3.9.0
Installing pry-byebug 3.9.0
Fetching yard 0.9.25
Installing yard 0.9.25
Fetching pry-doc 0.13.5
Installing pry-doc 0.13.5
Fetching rainbow 2.2.2
Installing rainbow 2.2.2 with native extensions
Fetching redcarpet 3.5.0
Installing redcarpet 3.5.0 with native extensions
Fetching redis 3.3.5
Installing redis 3.3.5
Fetching rmail 1.1.4
Installing rmail 1.1.4
Fetching ruby-progressbar 1.10.1
Installing ruby-progressbar 1.10.1
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching rubocop 0.49.1
Installing rubocop 0.49.1
Fetching webmock 2.3.2
Installing webmock 2.3.2
Bundle complete! 31 Gemfile dependencies, 78 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from i18n:

HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.

If you are upgrading your Rails application from an older version of Rails:

Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.

If you are starting a NEW Rails application, you can ignore this notice.

For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0

Post-install message from httparty:
When you HTTParty, you must party hard!
echo a | bundle exec bin/generate-api gen generated --api=games.v1 --names-out=/workspace/api_names_out.yaml
Loading games, version v1 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/games.v1.json
    conflict  google/apis/games_v1.rb
<e/apis/games_v1.rb? (enter "h" for help) [Ynaqdhm] a
       force  google/apis/games_v1.rb
    conflict  google/apis/games_v1/service.rb
       force  google/apis/games_v1/service.rb
    conflict  google/apis/games_v1/classes.rb
       force  google/apis/games_v1/classes.rb
    conflict  google/apis/games_v1/representations.rb
       force  google/apis/games_v1/representations.rb
    conflict  /workspace/api_names_out.yaml
       force  /workspace/api_names_out.yaml
2020-10-28 02:36:15,459 synthtool [DEBUG] > Wrote metadata to generated/google/apis/games_v1/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google/apis/games_v1/synth.metadata.

```
</details>

Full log will be available here:
https://source.cloud.google.com/results/invocations/fc014795-ecad-4bb9-a08f-f26793ec33cc/targets

- [ ] To automatically regenerate this PR, check this box.
2020-10-28 14:06:03 +00:00

1188 lines
44 KiB
Ruby

# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module GamesV1
class AchievementDefinition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAchievementDefinitionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AchievementIncrementResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AchievementRevealResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AchievementSetStepsAtLeastResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AchievementUnlockResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AchievementUpdateMultipleRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AchievementUpdateMultipleResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateAchievementRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateAchievementResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Application
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApplicationCategory
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApplicationVerifyResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Category
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCategoryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EventBatchRecordFailure
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EventChild
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EventDefinition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListEventDefinitionResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EventPeriodRange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EventPeriodUpdate
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EventRecordFailure
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EventRecordRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateEventRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateEventResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GamesAchievementIncrement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GamesAchievementSetStepsAtLeast
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImageAsset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Instance
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstanceAndroidDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstanceIosDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstanceWebDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Leaderboard
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LeaderboardEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLeaderboardResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LeaderboardScoreRank
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LeaderboardScores
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MetagameConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Player
class Representation < Google::Apis::Core::JsonRepresentation; end
class Name
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class PlayerAchievement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListPlayerAchievementResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PlayerEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListPlayerEventResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PlayerExperienceInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PlayerLeaderboardScore
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListPlayerLeaderboardScoreResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PlayerLevel
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListPlayerResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PlayerScore
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListPlayerScoreResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PlayerScoreResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PlayerScoreSubmissionList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProfileSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResolveSnapshotHeadRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResolveSnapshotHeadResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CheckRevisionResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ScoreSubmission
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Snapshot
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SnapshotCoverImageResource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SnapshotDataResource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SnapshotExtended
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SnapshotImage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListSnapshotResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SnapshotMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SnapshotRevision
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StatsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AchievementDefinition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :achievement_type, as: 'achievementType'
property :description, as: 'description'
property :experience_points, :numeric_string => true, as: 'experiencePoints'
property :formatted_total_steps, as: 'formattedTotalSteps'
property :id, as: 'id'
property :initial_state, as: 'initialState'
property :is_revealed_icon_url_default, as: 'isRevealedIconUrlDefault'
property :is_unlocked_icon_url_default, as: 'isUnlockedIconUrlDefault'
property :kind, as: 'kind'
property :name, as: 'name'
property :revealed_icon_url, as: 'revealedIconUrl'
property :total_steps, as: 'totalSteps'
property :unlocked_icon_url, as: 'unlockedIconUrl'
end
end
class ListAchievementDefinitionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::GamesV1::AchievementDefinition, decorator: Google::Apis::GamesV1::AchievementDefinition::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class AchievementIncrementResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :current_steps, as: 'currentSteps'
property :kind, as: 'kind'
property :newly_unlocked, as: 'newlyUnlocked'
end
end
class AchievementRevealResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :current_state, as: 'currentState'
property :kind, as: 'kind'
end
end
class AchievementSetStepsAtLeastResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :current_steps, as: 'currentSteps'
property :kind, as: 'kind'
property :newly_unlocked, as: 'newlyUnlocked'
end
end
class AchievementUnlockResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :newly_unlocked, as: 'newlyUnlocked'
end
end
class AchievementUpdateMultipleRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :updates, as: 'updates', class: Google::Apis::GamesV1::UpdateAchievementRequest, decorator: Google::Apis::GamesV1::UpdateAchievementRequest::Representation
end
end
class AchievementUpdateMultipleResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :updated_achievements, as: 'updatedAchievements', class: Google::Apis::GamesV1::UpdateAchievementResponse, decorator: Google::Apis::GamesV1::UpdateAchievementResponse::Representation
end
end
class UpdateAchievementRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :achievement_id, as: 'achievementId'
property :increment_payload, as: 'incrementPayload', class: Google::Apis::GamesV1::GamesAchievementIncrement, decorator: Google::Apis::GamesV1::GamesAchievementIncrement::Representation
property :kind, as: 'kind'
property :set_steps_at_least_payload, as: 'setStepsAtLeastPayload', class: Google::Apis::GamesV1::GamesAchievementSetStepsAtLeast, decorator: Google::Apis::GamesV1::GamesAchievementSetStepsAtLeast::Representation
property :update_type, as: 'updateType'
end
end
class UpdateAchievementResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :achievement_id, as: 'achievementId'
property :current_state, as: 'currentState'
property :current_steps, as: 'currentSteps'
property :kind, as: 'kind'
property :newly_unlocked, as: 'newlyUnlocked'
property :update_occurred, as: 'updateOccurred'
end
end
class Application
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :achievement_count, as: 'achievement_count'
collection :assets, as: 'assets', class: Google::Apis::GamesV1::ImageAsset, decorator: Google::Apis::GamesV1::ImageAsset::Representation
property :author, as: 'author'
property :category, as: 'category', class: Google::Apis::GamesV1::ApplicationCategory, decorator: Google::Apis::GamesV1::ApplicationCategory::Representation
property :description, as: 'description'
collection :enabled_features, as: 'enabledFeatures'
property :id, as: 'id'
collection :instances, as: 'instances', class: Google::Apis::GamesV1::Instance, decorator: Google::Apis::GamesV1::Instance::Representation
property :kind, as: 'kind'
property :last_updated_timestamp, :numeric_string => true, as: 'lastUpdatedTimestamp'
property :leaderboard_count, as: 'leaderboard_count'
property :name, as: 'name'
property :theme_color, as: 'themeColor'
end
end
class ApplicationCategory
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :primary, as: 'primary'
property :secondary, as: 'secondary'
end
end
class ApplicationVerifyResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alternate_player_id, as: 'alternate_player_id'
property :kind, as: 'kind'
property :player_id, as: 'player_id'
end
end
class Category
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :category, as: 'category'
property :experience_points, :numeric_string => true, as: 'experiencePoints'
property :kind, as: 'kind'
end
end
class ListCategoryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::GamesV1::Category, decorator: Google::Apis::GamesV1::Category::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class EventBatchRecordFailure
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :failure_cause, as: 'failureCause'
property :kind, as: 'kind'
property :range, as: 'range', class: Google::Apis::GamesV1::EventPeriodRange, decorator: Google::Apis::GamesV1::EventPeriodRange::Representation
end
end
class EventChild
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :child_id, as: 'childId'
property :kind, as: 'kind'
end
end
class EventDefinition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :child_events, as: 'childEvents', class: Google::Apis::GamesV1::EventChild, decorator: Google::Apis::GamesV1::EventChild::Representation
property :description, as: 'description'
property :display_name, as: 'displayName'
property :id, as: 'id'
property :image_url, as: 'imageUrl'
property :is_default_image_url, as: 'isDefaultImageUrl'
property :kind, as: 'kind'
property :visibility, as: 'visibility'
end
end
class ListEventDefinitionResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::GamesV1::EventDefinition, decorator: Google::Apis::GamesV1::EventDefinition::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class EventPeriodRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :period_end_millis, :numeric_string => true, as: 'periodEndMillis'
property :period_start_millis, :numeric_string => true, as: 'periodStartMillis'
end
end
class EventPeriodUpdate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :time_period, as: 'timePeriod', class: Google::Apis::GamesV1::EventPeriodRange, decorator: Google::Apis::GamesV1::EventPeriodRange::Representation
collection :updates, as: 'updates', class: Google::Apis::GamesV1::UpdateEventRequest, decorator: Google::Apis::GamesV1::UpdateEventRequest::Representation
end
end
class EventRecordFailure
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :event_id, as: 'eventId'
property :failure_cause, as: 'failureCause'
property :kind, as: 'kind'
end
end
class EventRecordRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :current_time_millis, :numeric_string => true, as: 'currentTimeMillis'
property :kind, as: 'kind'
property :request_id, :numeric_string => true, as: 'requestId'
collection :time_periods, as: 'timePeriods', class: Google::Apis::GamesV1::EventPeriodUpdate, decorator: Google::Apis::GamesV1::EventPeriodUpdate::Representation
end
end
class UpdateEventRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :definition_id, as: 'definitionId'
property :kind, as: 'kind'
property :update_count, :numeric_string => true, as: 'updateCount'
end
end
class UpdateEventResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :batch_failures, as: 'batchFailures', class: Google::Apis::GamesV1::EventBatchRecordFailure, decorator: Google::Apis::GamesV1::EventBatchRecordFailure::Representation
collection :event_failures, as: 'eventFailures', class: Google::Apis::GamesV1::EventRecordFailure, decorator: Google::Apis::GamesV1::EventRecordFailure::Representation
property :kind, as: 'kind'
collection :player_events, as: 'playerEvents', class: Google::Apis::GamesV1::PlayerEvent, decorator: Google::Apis::GamesV1::PlayerEvent::Representation
end
end
class GamesAchievementIncrement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :request_id, :numeric_string => true, as: 'requestId'
property :steps, as: 'steps'
end
end
class GamesAchievementSetStepsAtLeast
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :steps, as: 'steps'
end
end
class ImageAsset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :height, as: 'height'
property :kind, as: 'kind'
property :name, as: 'name'
property :url, as: 'url'
property :width, as: 'width'
end
end
class Instance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :acquisition_uri, as: 'acquisitionUri'
property :android_instance, as: 'androidInstance', class: Google::Apis::GamesV1::InstanceAndroidDetails, decorator: Google::Apis::GamesV1::InstanceAndroidDetails::Representation
property :ios_instance, as: 'iosInstance', class: Google::Apis::GamesV1::InstanceIosDetails, decorator: Google::Apis::GamesV1::InstanceIosDetails::Representation
property :kind, as: 'kind'
property :name, as: 'name'
property :platform_type, as: 'platformType'
property :realtime_play, as: 'realtimePlay'
property :turn_based_play, as: 'turnBasedPlay'
property :web_instance, as: 'webInstance', class: Google::Apis::GamesV1::InstanceWebDetails, decorator: Google::Apis::GamesV1::InstanceWebDetails::Representation
end
end
class InstanceAndroidDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable_piracy_check, as: 'enablePiracyCheck'
property :kind, as: 'kind'
property :package_name, as: 'packageName'
property :preferred, as: 'preferred'
end
end
class InstanceIosDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bundle_identifier, as: 'bundleIdentifier'
property :itunes_app_id, as: 'itunesAppId'
property :kind, as: 'kind'
property :preferred_for_ipad, as: 'preferredForIpad'
property :preferred_for_iphone, as: 'preferredForIphone'
property :support_ipad, as: 'supportIpad'
property :support_iphone, as: 'supportIphone'
end
end
class InstanceWebDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :launch_url, as: 'launchUrl'
property :preferred, as: 'preferred'
end
end
class Leaderboard
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :icon_url, as: 'iconUrl'
property :id, as: 'id'
property :is_icon_url_default, as: 'isIconUrlDefault'
property :kind, as: 'kind'
property :name, as: 'name'
property :order, as: 'order'
end
end
class LeaderboardEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :formatted_score, as: 'formattedScore'
property :formatted_score_rank, as: 'formattedScoreRank'
property :kind, as: 'kind'
property :player, as: 'player', class: Google::Apis::GamesV1::Player, decorator: Google::Apis::GamesV1::Player::Representation
property :score_rank, :numeric_string => true, as: 'scoreRank'
property :score_tag, as: 'scoreTag'
property :score_value, :numeric_string => true, as: 'scoreValue'
property :time_span, as: 'timeSpan'
property :write_timestamp_millis, :numeric_string => true, as: 'writeTimestampMillis'
end
end
class ListLeaderboardResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::GamesV1::Leaderboard, decorator: Google::Apis::GamesV1::Leaderboard::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class LeaderboardScoreRank
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :formatted_num_scores, as: 'formattedNumScores'
property :formatted_rank, as: 'formattedRank'
property :kind, as: 'kind'
property :num_scores, :numeric_string => true, as: 'numScores'
property :rank, :numeric_string => true, as: 'rank'
end
end
class LeaderboardScores
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::GamesV1::LeaderboardEntry, decorator: Google::Apis::GamesV1::LeaderboardEntry::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :num_scores, :numeric_string => true, as: 'numScores'
property :player_score, as: 'playerScore', class: Google::Apis::GamesV1::LeaderboardEntry, decorator: Google::Apis::GamesV1::LeaderboardEntry::Representation
property :prev_page_token, as: 'prevPageToken'
end
end
class MetagameConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :current_version, as: 'currentVersion'
property :kind, as: 'kind'
collection :player_levels, as: 'playerLevels', class: Google::Apis::GamesV1::PlayerLevel, decorator: Google::Apis::GamesV1::PlayerLevel::Representation
end
end
class Player
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :avatar_image_url, as: 'avatarImageUrl'
property :banner_url_landscape, as: 'bannerUrlLandscape'
property :banner_url_portrait, as: 'bannerUrlPortrait'
property :display_name, as: 'displayName'
property :experience_info, as: 'experienceInfo', class: Google::Apis::GamesV1::PlayerExperienceInfo, decorator: Google::Apis::GamesV1::PlayerExperienceInfo::Representation
property :friend_status, as: 'friendStatus'
property :kind, as: 'kind'
property :name, as: 'name', class: Google::Apis::GamesV1::Player::Name, decorator: Google::Apis::GamesV1::Player::Name::Representation
property :original_player_id, as: 'originalPlayerId'
property :player_id, as: 'playerId'
property :profile_settings, as: 'profileSettings', class: Google::Apis::GamesV1::ProfileSettings, decorator: Google::Apis::GamesV1::ProfileSettings::Representation
property :title, as: 'title'
end
class Name
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :family_name, as: 'familyName'
property :given_name, as: 'givenName'
end
end
end
class PlayerAchievement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :achievement_state, as: 'achievementState'
property :current_steps, as: 'currentSteps'
property :experience_points, :numeric_string => true, as: 'experiencePoints'
property :formatted_current_steps_string, as: 'formattedCurrentStepsString'
property :id, as: 'id'
property :kind, as: 'kind'
property :last_updated_timestamp, :numeric_string => true, as: 'lastUpdatedTimestamp'
end
end
class ListPlayerAchievementResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::GamesV1::PlayerAchievement, decorator: Google::Apis::GamesV1::PlayerAchievement::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class PlayerEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :definition_id, as: 'definitionId'
property :formatted_num_events, as: 'formattedNumEvents'
property :kind, as: 'kind'
property :num_events, :numeric_string => true, as: 'numEvents'
property :player_id, as: 'playerId'
end
end
class ListPlayerEventResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::GamesV1::PlayerEvent, decorator: Google::Apis::GamesV1::PlayerEvent::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class PlayerExperienceInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :current_experience_points, :numeric_string => true, as: 'currentExperiencePoints'
property :current_level, as: 'currentLevel', class: Google::Apis::GamesV1::PlayerLevel, decorator: Google::Apis::GamesV1::PlayerLevel::Representation
property :kind, as: 'kind'
property :last_level_up_timestamp_millis, :numeric_string => true, as: 'lastLevelUpTimestampMillis'
property :next_level, as: 'nextLevel', class: Google::Apis::GamesV1::PlayerLevel, decorator: Google::Apis::GamesV1::PlayerLevel::Representation
end
end
class PlayerLeaderboardScore
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :friends_rank, as: 'friendsRank', class: Google::Apis::GamesV1::LeaderboardScoreRank, decorator: Google::Apis::GamesV1::LeaderboardScoreRank::Representation
property :kind, as: 'kind'
property :leaderboard_id, as: 'leaderboard_id'
property :public_rank, as: 'publicRank', class: Google::Apis::GamesV1::LeaderboardScoreRank, decorator: Google::Apis::GamesV1::LeaderboardScoreRank::Representation
property :score_string, as: 'scoreString'
property :score_tag, as: 'scoreTag'
property :score_value, :numeric_string => true, as: 'scoreValue'
property :social_rank, as: 'socialRank', class: Google::Apis::GamesV1::LeaderboardScoreRank, decorator: Google::Apis::GamesV1::LeaderboardScoreRank::Representation
property :time_span, as: 'timeSpan'
property :write_timestamp, :numeric_string => true, as: 'writeTimestamp'
end
end
class ListPlayerLeaderboardScoreResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::GamesV1::PlayerLeaderboardScore, decorator: Google::Apis::GamesV1::PlayerLeaderboardScore::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :player, as: 'player', class: Google::Apis::GamesV1::Player, decorator: Google::Apis::GamesV1::Player::Representation
end
end
class PlayerLevel
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :level, as: 'level'
property :max_experience_points, :numeric_string => true, as: 'maxExperiencePoints'
property :min_experience_points, :numeric_string => true, as: 'minExperiencePoints'
end
end
class ListPlayerResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::GamesV1::Player, decorator: Google::Apis::GamesV1::Player::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class PlayerScore
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :formatted_score, as: 'formattedScore'
property :kind, as: 'kind'
property :score, :numeric_string => true, as: 'score'
property :score_tag, as: 'scoreTag'
property :time_span, as: 'timeSpan'
end
end
class ListPlayerScoreResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :submitted_scores, as: 'submittedScores', class: Google::Apis::GamesV1::PlayerScoreResponse, decorator: Google::Apis::GamesV1::PlayerScoreResponse::Representation
end
end
class PlayerScoreResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :beaten_score_time_spans, as: 'beatenScoreTimeSpans'
property :formatted_score, as: 'formattedScore'
property :kind, as: 'kind'
property :leaderboard_id, as: 'leaderboardId'
property :score_tag, as: 'scoreTag'
collection :unbeaten_scores, as: 'unbeatenScores', class: Google::Apis::GamesV1::PlayerScore, decorator: Google::Apis::GamesV1::PlayerScore::Representation
end
end
class PlayerScoreSubmissionList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :scores, as: 'scores', class: Google::Apis::GamesV1::ScoreSubmission, decorator: Google::Apis::GamesV1::ScoreSubmission::Representation
end
end
class ProfileSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :friends_list_visibility, as: 'friendsListVisibility'
property :kind, as: 'kind'
property :profile_visible, as: 'profileVisible'
end
end
class ResolveSnapshotHeadRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resolution_policy, as: 'resolutionPolicy'
end
end
class ResolveSnapshotHeadResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :snapshot, as: 'snapshot', class: Google::Apis::GamesV1::SnapshotExtended, decorator: Google::Apis::GamesV1::SnapshotExtended::Representation
end
end
class CheckRevisionResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :api_version, as: 'apiVersion'
property :kind, as: 'kind'
property :revision_status, as: 'revisionStatus'
end
end
class ScoreSubmission
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :leaderboard_id, as: 'leaderboardId'
property :score, :numeric_string => true, as: 'score'
property :score_tag, as: 'scoreTag'
property :signature, as: 'signature'
end
end
class Snapshot
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cover_image, as: 'coverImage', class: Google::Apis::GamesV1::SnapshotImage, decorator: Google::Apis::GamesV1::SnapshotImage::Representation
property :description, as: 'description'
property :drive_id, as: 'driveId'
property :duration_millis, :numeric_string => true, as: 'durationMillis'
property :id, as: 'id'
property :kind, as: 'kind'
property :last_modified_millis, :numeric_string => true, as: 'lastModifiedMillis'
property :progress_value, :numeric_string => true, as: 'progressValue'
property :title, as: 'title'
property :type, as: 'type'
property :unique_name, as: 'uniqueName'
end
end
class SnapshotCoverImageResource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :content_hash, as: 'contentHash'
property :download_url, as: 'downloadUrl'
property :height, as: 'height'
property :mime_type, as: 'mimeType'
property :resource_id, as: 'resourceId'
property :width, as: 'width'
end
end
class SnapshotDataResource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :content_hash, as: 'contentHash'
property :download_url, as: 'downloadUrl'
property :resource_id, as: 'resourceId'
property :size, :numeric_string => true, as: 'size'
end
end
class SnapshotExtended
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :conflicting_revisions, as: 'conflictingRevisions', class: Google::Apis::GamesV1::SnapshotRevision, decorator: Google::Apis::GamesV1::SnapshotRevision::Representation
property :has_conflicting_revisions, as: 'hasConflictingRevisions'
property :head_revision, as: 'headRevision', class: Google::Apis::GamesV1::SnapshotRevision, decorator: Google::Apis::GamesV1::SnapshotRevision::Representation
property :name, as: 'name'
end
end
class SnapshotImage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :height, as: 'height'
property :kind, as: 'kind'
property :mime_type, as: 'mime_type'
property :url, as: 'url'
property :width, as: 'width'
end
end
class ListSnapshotResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::GamesV1::Snapshot, decorator: Google::Apis::GamesV1::Snapshot::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class SnapshotMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :device_name, as: 'deviceName'
property :duration, as: 'duration'
property :last_modify_time, as: 'lastModifyTime'
property :progress_value, :numeric_string => true, as: 'progressValue'
property :title, as: 'title'
end
end
class SnapshotRevision
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :blob, as: 'blob', class: Google::Apis::GamesV1::SnapshotDataResource, decorator: Google::Apis::GamesV1::SnapshotDataResource::Representation
property :cover_image, as: 'coverImage', class: Google::Apis::GamesV1::SnapshotCoverImageResource, decorator: Google::Apis::GamesV1::SnapshotCoverImageResource::Representation
property :id, as: 'id'
property :metadata, as: 'metadata', class: Google::Apis::GamesV1::SnapshotMetadata, decorator: Google::Apis::GamesV1::SnapshotMetadata::Representation
end
end
class StatsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :avg_session_length_minutes, as: 'avg_session_length_minutes'
property :churn_probability, as: 'churn_probability'
property :days_since_last_played, as: 'days_since_last_played'
property :high_spender_probability, as: 'high_spender_probability'
property :kind, as: 'kind'
property :num_purchases, as: 'num_purchases'
property :num_sessions, as: 'num_sessions'
property :num_sessions_percentile, as: 'num_sessions_percentile'
property :spend_percentile, as: 'spend_percentile'
property :spend_probability, as: 'spend_probability'
property :total_spend_next_28_days, as: 'total_spend_next_28_days'
end
end
end
end
end