google-api-client 0.9.pre3 → 0.9.pre4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +14 -2
- data/Gemfile +4 -0
- data/MIGRATING.md +1 -1
- data/README.md +17 -3
- data/api_names.yaml +127 -14
- data/api_names_out.yaml +5442 -710
- data/bin/generate-api +16 -14
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
- data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
- data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
- data/generated/google/apis/admin_directory_v1.rb +25 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
- data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +5 -10
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
- data/generated/google/apis/adsense_v1_4/service.rb +40 -78
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +11 -13
- data/generated/google/apis/analytics_v3/service.rb +84 -158
- data/generated/google/apis/androidenterprise_v1.rb +2 -2
- data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
- data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
- data/generated/google/apis/appengine_v1beta4.rb +35 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -2
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +6 -11
- data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
- data/generated/google/apis/bigquery_v2.rb +4 -1
- data/generated/google/apis/bigquery_v2/classes.rb +231 -16
- data/generated/google/apis/bigquery_v2/representations.rb +62 -0
- data/generated/google/apis/bigquery_v2/service.rb +24 -45
- data/generated/google/apis/blogger_v3/service.rb +33 -66
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +441 -0
- data/generated/google/apis/books_v1/representations.rb +177 -0
- data/generated/google/apis/books_v1/service.rb +210 -90
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +34 -18
- data/generated/google/apis/calendar_v3/service.rb +118 -103
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +5 -10
- data/generated/google/apis/classroom_v1.rb +49 -0
- data/generated/google/apis/classroom_v1/classes.rb +512 -0
- data/generated/google/apis/classroom_v1/representations.rb +217 -0
- data/generated/google/apis/classroom_v1/service.rb +970 -0
- data/generated/google/apis/cloudbilling_v1.rb +35 -0
- data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
- data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
- data/generated/google/apis/clouddebugger_v2.rb +41 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
- data/generated/google/apis/cloudtrace_v1.rb +35 -0
- data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
- data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
- data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
- data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
- data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
- data/generated/google/apis/compute_beta.rb +49 -0
- data/generated/google/apis/compute_beta/classes.rb +9128 -0
- data/generated/google/apis/compute_beta/representations.rb +3048 -0
- data/generated/google/apis/compute_beta/service.rb +10154 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1305 -520
- data/generated/google/apis/compute_v1/representations.rb +122 -15
- data/generated/google/apis/compute_v1/service.rb +2202 -1085
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +56 -31
- data/generated/google/apis/container_v1/representations.rb +12 -0
- data/generated/google/apis/container_v1/service.rb +62 -41
- data/generated/google/apis/content_v2.rb +2 -2
- data/generated/google/apis/content_v2/classes.rb +2252 -56
- data/generated/google/apis/content_v2/representations.rb +917 -87
- data/generated/google/apis/content_v2/service.rb +680 -85
- data/generated/google/apis/coordinate_v1.rb +1 -1
- data/generated/google/apis/coordinate_v1/service.rb +16 -25
- data/generated/google/apis/customsearch_v1/service.rb +1 -2
- data/generated/google/apis/datastore_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
- data/generated/google/apis/deploymentmanager_v2.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
- data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
- data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
- data/generated/google/apis/dfareporting_v2_1.rb +1 -1
- data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
- data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
- data/generated/google/apis/discovery_v1/classes.rb +7 -0
- data/generated/google/apis/discovery_v1/representations.rb +1 -0
- data/generated/google/apis/discovery_v1/service.rb +2 -4
- data/generated/google/apis/dns_v1.rb +4 -1
- data/generated/google/apis/dns_v1/service.rb +9 -18
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +73 -30
- data/generated/google/apis/drive_v2/representations.rb +14 -0
- data/generated/google/apis/drive_v2/service.rb +139 -135
- data/generated/google/apis/drive_v3.rb +55 -0
- data/generated/google/apis/drive_v3/classes.rb +1534 -0
- data/generated/google/apis/drive_v3/representations.rb +497 -0
- data/generated/google/apis/drive_v3/service.rb +1541 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +14 -27
- data/generated/google/apis/fusiontables_v2/service.rb +40 -73
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
- data/generated/google/apis/games_management_v1management.rb +37 -0
- data/generated/google/apis/games_management_v1management/classes.rb +524 -0
- data/generated/google/apis/games_management_v1management/representations.rb +231 -0
- data/generated/google/apis/games_management_v1management/service.rb +994 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +39 -0
- data/generated/google/apis/games_v1/representations.rb +14 -0
- data/generated/google/apis/games_v1/service.rb +93 -109
- data/generated/google/apis/gan_v1beta1/service.rb +10 -20
- data/generated/google/apis/genomics_v1.rb +5 -3
- data/generated/google/apis/genomics_v1/classes.rb +519 -200
- data/generated/google/apis/genomics_v1/representations.rb +126 -13
- data/generated/google/apis/genomics_v1/service.rb +392 -236
- data/generated/google/apis/gmail_v1.rb +4 -1
- data/generated/google/apis/gmail_v1/service.rb +39 -71
- data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
- data/generated/google/apis/groupssettings_v1/service.rb +3 -6
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
- data/generated/google/apis/kgsearch_v1.rb +32 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
- data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
- data/generated/google/apis/kgsearch_v1/service.rb +111 -0
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +7 -14
- data/generated/google/apis/logging_v1beta3.rb +16 -4
- data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
- data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
- data/generated/google/apis/logging_v1beta3/service.rb +435 -104
- data/generated/google/apis/manager_v1beta2.rb +3 -0
- data/generated/google/apis/manager_v1beta2/service.rb +8 -16
- data/generated/google/apis/mapsengine_v1.rb +1 -1
- data/generated/google/apis/mapsengine_v1/service.rb +85 -162
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +28 -52
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +4 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
- data/generated/google/apis/partners_v2.rb +32 -0
- data/generated/google/apis/partners_v2/classes.rb +942 -0
- data/generated/google/apis/partners_v2/representations.rb +402 -0
- data/generated/google/apis/partners_v2/service.rb +400 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
- data/generated/google/apis/plus_domains_v1/service.rb +21 -41
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/classes.rb +207 -0
- data/generated/google/apis/plus_v1/representations.rb +114 -0
- data/generated/google/apis/plus_v1/service.rb +11 -56
- data/generated/google/apis/prediction_v1_6.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -16
- data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
- data/generated/google/apis/pubsub_v1.rb +37 -0
- data/generated/google/apis/pubsub_v1/classes.rb +614 -0
- data/generated/google/apis/pubsub_v1/representations.rb +281 -0
- data/generated/google/apis/pubsub_v1/service.rb +774 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
- data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
- data/generated/google/apis/qpx_express_v1/service.rb +1 -2
- data/generated/google/apis/replicapool_v1beta2.rb +3 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +19 -1
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/reseller_v1/service.rb +16 -30
- data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
- data/generated/google/apis/script_v1.rb +61 -0
- data/generated/google/apis/script_v1/classes.rb +259 -0
- data/generated/google/apis/script_v1/representations.rb +106 -0
- data/generated/google/apis/script_v1/service.rb +98 -0
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/site_verification_v1/service.rb +8 -15
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
- data/generated/google/apis/storage_v1.rb +5 -2
- data/generated/google/apis/storage_v1/classes.rb +47 -4
- data/generated/google/apis/storage_v1/representations.rb +18 -0
- data/generated/google/apis/storage_v1/service.rb +77 -94
- data/generated/google/apis/storagetransfer_v1.rb +35 -0
- data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
- data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
- data/generated/google/apis/tagmanager_v1/service.rb +114 -275
- data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
- data/generated/google/apis/tasks_v1/service.rb +14 -28
- data/generated/google/apis/translate_v2/service.rb +3 -6
- data/generated/google/apis/urlshortener_v1/service.rb +3 -6
- data/generated/google/apis/webmasters_v3.rb +3 -3
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/service.rb +16 -30
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +111 -78
- data/generated/google/apis/youtube_v3/representations.rb +2 -0
- data/generated/google/apis/youtube_v3/service.rb +78 -246
- data/generated/google/apis/youtubereporting_v1.rb +38 -0
- data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
- data/google-api-client.gemspec +3 -3
- data/lib/google/api_client/auth/installed_app.rb +2 -2
- data/lib/google/api_client/auth/key_utils.rb +1 -0
- data/lib/google/api_client/auth/storage.rb +1 -0
- data/lib/google/api_client/auth/storages/file_store.rb +1 -0
- data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
- data/lib/google/api_client/client_secrets.rb +4 -5
- data/lib/google/apis/core/api_command.rb +2 -2
- data/lib/google/apis/core/base_service.rb +1 -0
- data/lib/google/apis/core/batch.rb +25 -8
- data/lib/google/apis/core/download.rb +1 -1
- data/lib/google/apis/core/http_command.rb +24 -12
- data/lib/google/apis/core/multipart.rb +20 -6
- data/lib/google/apis/core/upload.rb +11 -4
- data/lib/google/apis/generator/annotator.rb +29 -10
- data/lib/google/apis/generator/helpers.rb +1 -1
- data/lib/google/apis/generator/templates/_method.tmpl +5 -6
- data/lib/google/apis/options.rb +7 -3
- data/lib/google/apis/version.rb +1 -1
- data/samples/calendar/calendar.rb +1 -1
- data/samples/drive/drive.rb +9 -2
- data/samples/pubsub/pubsub.rb +5 -6
- data/samples/translate/translate.rb +1 -5
- data/script/generate +20 -5
- data/spec/fixtures/files/child/.gitignore +0 -0
- data/spec/fixtures/files/invalid.json +1 -0
- data/spec/google/api_client/client_secrets_spec.rb +38 -1
- data/spec/google/apis/core/batch_spec.rb +22 -8
- data/spec/google/apis/core/download_spec.rb +13 -0
- data/spec/google/apis/core/http_command_spec.rb +26 -9
- data/spec/google/apis/core/upload_spec.rb +65 -17
- data/spec/google/apis/options_spec.rb +8 -0
- data/spec/integration_tests/adsense_spec.rb +28 -0
- data/spec/integration_tests/pubsub_spec.rb +3 -3
- data/spec/spec_helper.rb +5 -1
- data/third_party/hurley_patches.rb +103 -0
- metadata +87 -7
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/games/services
|
26
26
|
module GamesConfigurationV1configuration
|
27
27
|
VERSION = 'V1configuration'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20151209'
|
29
29
|
|
30
30
|
# View and manage your Google Play Developer account
|
31
31
|
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
@@ -77,8 +77,7 @@ module Google
|
|
77
77
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
78
78
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
79
79
|
def delete_achievement_configuration(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
80
|
-
|
81
|
-
command = make_simple_command(:delete, path, options)
|
80
|
+
command = make_simple_command(:delete, 'achievements/{achievementId}', options)
|
82
81
|
command.params['achievementId'] = achievement_id unless achievement_id.nil?
|
83
82
|
command.query['fields'] = fields unless fields.nil?
|
84
83
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -111,8 +110,7 @@ module Google
|
|
111
110
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
112
111
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
113
112
|
def get_achievement_configuration(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
114
|
-
|
115
|
-
command = make_simple_command(:get, path, options)
|
113
|
+
command = make_simple_command(:get, 'achievements/{achievementId}', options)
|
116
114
|
command.response_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation
|
117
115
|
command.response_class = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration
|
118
116
|
command.params['achievementId'] = achievement_id unless achievement_id.nil?
|
@@ -148,8 +146,7 @@ module Google
|
|
148
146
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
149
147
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
150
148
|
def insert_achievement_configuration(application_id, achievement_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
151
|
-
|
152
|
-
command = make_simple_command(:post, path, options)
|
149
|
+
command = make_simple_command(:post, 'applications/{applicationId}/achievements', options)
|
153
150
|
command.request_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation
|
154
151
|
command.request_object = achievement_configuration_object
|
155
152
|
command.response_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation
|
@@ -192,8 +189,7 @@ module Google
|
|
192
189
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
193
190
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
194
191
|
def list_achievement_configurations(application_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
195
|
-
|
196
|
-
command = make_simple_command(:get, path, options)
|
192
|
+
command = make_simple_command(:get, 'applications/{applicationId}/achievements', options)
|
197
193
|
command.response_representation = Google::Apis::GamesConfigurationV1configuration::ListAchievementConfigurationResponse::Representation
|
198
194
|
command.response_class = Google::Apis::GamesConfigurationV1configuration::ListAchievementConfigurationResponse
|
199
195
|
command.params['applicationId'] = application_id unless application_id.nil?
|
@@ -232,8 +228,7 @@ module Google
|
|
232
228
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
233
229
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
234
230
|
def patch_achievement_configuration(achievement_id, achievement_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
235
|
-
|
236
|
-
command = make_simple_command(:patch, path, options)
|
231
|
+
command = make_simple_command(:patch, 'achievements/{achievementId}', options)
|
237
232
|
command.request_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation
|
238
233
|
command.request_object = achievement_configuration_object
|
239
234
|
command.response_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation
|
@@ -271,8 +266,7 @@ module Google
|
|
271
266
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
272
267
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
273
268
|
def update_achievement_configuration(achievement_id, achievement_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
274
|
-
|
275
|
-
command = make_simple_command(:put, path, options)
|
269
|
+
command = make_simple_command(:put, 'achievements/{achievementId}', options)
|
276
270
|
command.request_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation
|
277
271
|
command.request_object = achievement_configuration_object
|
278
272
|
command.response_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation
|
@@ -315,11 +309,10 @@ module Google
|
|
315
309
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
316
310
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
317
311
|
def upload_image_configuration(resource_id, image_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
318
|
-
path = 'images/{resourceId}/imageType/{imageType}'
|
319
312
|
if upload_source.nil?
|
320
|
-
command = make_simple_command(:post,
|
313
|
+
command = make_simple_command(:post, 'images/{resourceId}/imageType/{imageType}', options)
|
321
314
|
else
|
322
|
-
command = make_upload_command(:post,
|
315
|
+
command = make_upload_command(:post, 'images/{resourceId}/imageType/{imageType}', options)
|
323
316
|
command.upload_source = upload_source
|
324
317
|
command.upload_content_type = content_type
|
325
318
|
end
|
@@ -358,8 +351,7 @@ module Google
|
|
358
351
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
359
352
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
360
353
|
def delete_leaderboard_configuration(leaderboard_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
361
|
-
|
362
|
-
command = make_simple_command(:delete, path, options)
|
354
|
+
command = make_simple_command(:delete, 'leaderboards/{leaderboardId}', options)
|
363
355
|
command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
|
364
356
|
command.query['fields'] = fields unless fields.nil?
|
365
357
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -392,8 +384,7 @@ module Google
|
|
392
384
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
393
385
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
394
386
|
def get_leaderboard_configuration(leaderboard_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
395
|
-
|
396
|
-
command = make_simple_command(:get, path, options)
|
387
|
+
command = make_simple_command(:get, 'leaderboards/{leaderboardId}', options)
|
397
388
|
command.response_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation
|
398
389
|
command.response_class = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration
|
399
390
|
command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
|
@@ -429,8 +420,7 @@ module Google
|
|
429
420
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
430
421
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
431
422
|
def insert_leaderboard_configuration(application_id, leaderboard_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
432
|
-
|
433
|
-
command = make_simple_command(:post, path, options)
|
423
|
+
command = make_simple_command(:post, 'applications/{applicationId}/leaderboards', options)
|
434
424
|
command.request_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation
|
435
425
|
command.request_object = leaderboard_configuration_object
|
436
426
|
command.response_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation
|
@@ -473,8 +463,7 @@ module Google
|
|
473
463
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
474
464
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
475
465
|
def list_leaderboard_configurations(application_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
476
|
-
|
477
|
-
command = make_simple_command(:get, path, options)
|
466
|
+
command = make_simple_command(:get, 'applications/{applicationId}/leaderboards', options)
|
478
467
|
command.response_representation = Google::Apis::GamesConfigurationV1configuration::ListLeaderboardConfigurationResponse::Representation
|
479
468
|
command.response_class = Google::Apis::GamesConfigurationV1configuration::ListLeaderboardConfigurationResponse
|
480
469
|
command.params['applicationId'] = application_id unless application_id.nil?
|
@@ -513,8 +502,7 @@ module Google
|
|
513
502
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
514
503
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
515
504
|
def patch_leaderboard_configuration(leaderboard_id, leaderboard_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
516
|
-
|
517
|
-
command = make_simple_command(:patch, path, options)
|
505
|
+
command = make_simple_command(:patch, 'leaderboards/{leaderboardId}', options)
|
518
506
|
command.request_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation
|
519
507
|
command.request_object = leaderboard_configuration_object
|
520
508
|
command.response_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation
|
@@ -552,8 +540,7 @@ module Google
|
|
552
540
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
553
541
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
554
542
|
def update_leaderboard_configuration(leaderboard_id, leaderboard_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
555
|
-
|
556
|
-
command = make_simple_command(:put, path, options)
|
543
|
+
command = make_simple_command(:put, 'leaderboards/{leaderboardId}', options)
|
557
544
|
command.request_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation
|
558
545
|
command.request_object = leaderboard_configuration_object
|
559
546
|
command.response_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/games_management_v1management/service.rb'
|
16
|
+
require 'google/apis/games_management_v1management/classes.rb'
|
17
|
+
require 'google/apis/games_management_v1management/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# Google Play Game Services Management API
|
22
|
+
#
|
23
|
+
# The Management API for Google Play Game Services.
|
24
|
+
#
|
25
|
+
# @see https://developers.google.com/games/services
|
26
|
+
module GamesManagementV1management
|
27
|
+
VERSION = 'V1management'
|
28
|
+
REVISION = '20151209'
|
29
|
+
|
30
|
+
# Share your Google+ profile information and view and manage your game activity
|
31
|
+
AUTH_GAMES = 'https://www.googleapis.com/auth/games'
|
32
|
+
|
33
|
+
# Know your basic profile info and list of people in your circles.
|
34
|
+
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,524 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module GamesManagementV1management
|
24
|
+
|
25
|
+
# This is a JSON template for achievement reset all response.
|
26
|
+
class AchievementResetAllResponse
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Uniquely identifies the type of this resource. Value is always the fixed
|
30
|
+
# string gamesManagement#achievementResetAllResponse.
|
31
|
+
# Corresponds to the JSON property `kind`
|
32
|
+
# @return [String]
|
33
|
+
attr_accessor :kind
|
34
|
+
|
35
|
+
# The achievement reset results.
|
36
|
+
# Corresponds to the JSON property `results`
|
37
|
+
# @return [Array<Google::Apis::GamesManagementV1management::AchievementResetResponse>]
|
38
|
+
attr_accessor :results
|
39
|
+
|
40
|
+
def initialize(**args)
|
41
|
+
update!(**args)
|
42
|
+
end
|
43
|
+
|
44
|
+
# Update properties of this object
|
45
|
+
def update!(**args)
|
46
|
+
@kind = args[:kind] unless args[:kind].nil?
|
47
|
+
@results = args[:results] unless args[:results].nil?
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# This is a JSON template for multiple achievements reset all request.
|
52
|
+
class AchievementResetMultipleForAllRequest
|
53
|
+
include Google::Apis::Core::Hashable
|
54
|
+
|
55
|
+
# The IDs of achievements to reset.
|
56
|
+
# Corresponds to the JSON property `achievement_ids`
|
57
|
+
# @return [Array<String>]
|
58
|
+
attr_accessor :achievement_ids
|
59
|
+
|
60
|
+
# Uniquely identifies the type of this resource. Value is always the fixed
|
61
|
+
# string gamesManagement#achievementResetMultipleForAllRequest.
|
62
|
+
# Corresponds to the JSON property `kind`
|
63
|
+
# @return [String]
|
64
|
+
attr_accessor :kind
|
65
|
+
|
66
|
+
def initialize(**args)
|
67
|
+
update!(**args)
|
68
|
+
end
|
69
|
+
|
70
|
+
# Update properties of this object
|
71
|
+
def update!(**args)
|
72
|
+
@achievement_ids = args[:achievement_ids] unless args[:achievement_ids].nil?
|
73
|
+
@kind = args[:kind] unless args[:kind].nil?
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# This is a JSON template for an achievement reset response.
|
78
|
+
class AchievementResetResponse
|
79
|
+
include Google::Apis::Core::Hashable
|
80
|
+
|
81
|
+
# The current state of the achievement. This is the same as the initial state of
|
82
|
+
# the achievement.
|
83
|
+
# Possible values are:
|
84
|
+
# - "HIDDEN"- Achievement is hidden.
|
85
|
+
# - "REVEALED" - Achievement is revealed.
|
86
|
+
# - "UNLOCKED" - Achievement is unlocked.
|
87
|
+
# Corresponds to the JSON property `currentState`
|
88
|
+
# @return [String]
|
89
|
+
attr_accessor :current_state
|
90
|
+
|
91
|
+
# The ID of an achievement for which player state has been updated.
|
92
|
+
# Corresponds to the JSON property `definitionId`
|
93
|
+
# @return [String]
|
94
|
+
attr_accessor :definition_id
|
95
|
+
|
96
|
+
# Uniquely identifies the type of this resource. Value is always the fixed
|
97
|
+
# string gamesManagement#achievementResetResponse.
|
98
|
+
# Corresponds to the JSON property `kind`
|
99
|
+
# @return [String]
|
100
|
+
attr_accessor :kind
|
101
|
+
|
102
|
+
# Flag to indicate if the requested update actually occurred.
|
103
|
+
# Corresponds to the JSON property `updateOccurred`
|
104
|
+
# @return [Boolean]
|
105
|
+
attr_accessor :update_occurred
|
106
|
+
alias_method :update_occurred?, :update_occurred
|
107
|
+
|
108
|
+
def initialize(**args)
|
109
|
+
update!(**args)
|
110
|
+
end
|
111
|
+
|
112
|
+
# Update properties of this object
|
113
|
+
def update!(**args)
|
114
|
+
@current_state = args[:current_state] unless args[:current_state].nil?
|
115
|
+
@definition_id = args[:definition_id] unless args[:definition_id].nil?
|
116
|
+
@kind = args[:kind] unless args[:kind].nil?
|
117
|
+
@update_occurred = args[:update_occurred] unless args[:update_occurred].nil?
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
# This is a JSON template for multiple events reset all request.
|
122
|
+
class EventsResetMultipleForAllRequest
|
123
|
+
include Google::Apis::Core::Hashable
|
124
|
+
|
125
|
+
# The IDs of events to reset.
|
126
|
+
# Corresponds to the JSON property `event_ids`
|
127
|
+
# @return [Array<String>]
|
128
|
+
attr_accessor :event_ids
|
129
|
+
|
130
|
+
# Uniquely identifies the type of this resource. Value is always the fixed
|
131
|
+
# string gamesManagement#eventsResetMultipleForAllRequest.
|
132
|
+
# Corresponds to the JSON property `kind`
|
133
|
+
# @return [String]
|
134
|
+
attr_accessor :kind
|
135
|
+
|
136
|
+
def initialize(**args)
|
137
|
+
update!(**args)
|
138
|
+
end
|
139
|
+
|
140
|
+
# Update properties of this object
|
141
|
+
def update!(**args)
|
142
|
+
@event_ids = args[:event_ids] unless args[:event_ids].nil?
|
143
|
+
@kind = args[:kind] unless args[:kind].nil?
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
# This is a JSON template for metadata about a player playing a game with the
|
148
|
+
# currently authenticated user.
|
149
|
+
class GamesPlayedResource
|
150
|
+
include Google::Apis::Core::Hashable
|
151
|
+
|
152
|
+
# True if the player was auto-matched with the currently authenticated user.
|
153
|
+
# Corresponds to the JSON property `autoMatched`
|
154
|
+
# @return [Boolean]
|
155
|
+
attr_accessor :auto_matched
|
156
|
+
alias_method :auto_matched?, :auto_matched
|
157
|
+
|
158
|
+
# The last time the player played the game in milliseconds since the epoch in
|
159
|
+
# UTC.
|
160
|
+
# Corresponds to the JSON property `timeMillis`
|
161
|
+
# @return [String]
|
162
|
+
attr_accessor :time_millis
|
163
|
+
|
164
|
+
def initialize(**args)
|
165
|
+
update!(**args)
|
166
|
+
end
|
167
|
+
|
168
|
+
# Update properties of this object
|
169
|
+
def update!(**args)
|
170
|
+
@auto_matched = args[:auto_matched] unless args[:auto_matched].nil?
|
171
|
+
@time_millis = args[:time_millis] unless args[:time_millis].nil?
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# This is a JSON template for 1P/3P metadata about the player's experience.
|
176
|
+
class GamesPlayerExperienceInfoResource
|
177
|
+
include Google::Apis::Core::Hashable
|
178
|
+
|
179
|
+
# The current number of experience points for the player.
|
180
|
+
# Corresponds to the JSON property `currentExperiencePoints`
|
181
|
+
# @return [String]
|
182
|
+
attr_accessor :current_experience_points
|
183
|
+
|
184
|
+
# This is a JSON template for 1P/3P metadata about a user's level.
|
185
|
+
# Corresponds to the JSON property `currentLevel`
|
186
|
+
# @return [Google::Apis::GamesManagementV1management::GamesPlayerLevelResource]
|
187
|
+
attr_accessor :current_level
|
188
|
+
|
189
|
+
# The timestamp when the player was leveled up, in millis since Unix epoch UTC.
|
190
|
+
# Corresponds to the JSON property `lastLevelUpTimestampMillis`
|
191
|
+
# @return [String]
|
192
|
+
attr_accessor :last_level_up_timestamp_millis
|
193
|
+
|
194
|
+
# This is a JSON template for 1P/3P metadata about a user's level.
|
195
|
+
# Corresponds to the JSON property `nextLevel`
|
196
|
+
# @return [Google::Apis::GamesManagementV1management::GamesPlayerLevelResource]
|
197
|
+
attr_accessor :next_level
|
198
|
+
|
199
|
+
def initialize(**args)
|
200
|
+
update!(**args)
|
201
|
+
end
|
202
|
+
|
203
|
+
# Update properties of this object
|
204
|
+
def update!(**args)
|
205
|
+
@current_experience_points = args[:current_experience_points] unless args[:current_experience_points].nil?
|
206
|
+
@current_level = args[:current_level] unless args[:current_level].nil?
|
207
|
+
@last_level_up_timestamp_millis = args[:last_level_up_timestamp_millis] unless args[:last_level_up_timestamp_millis].nil?
|
208
|
+
@next_level = args[:next_level] unless args[:next_level].nil?
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
# This is a JSON template for 1P/3P metadata about a user's level.
|
213
|
+
class GamesPlayerLevelResource
|
214
|
+
include Google::Apis::Core::Hashable
|
215
|
+
|
216
|
+
# The level for the user.
|
217
|
+
# Corresponds to the JSON property `level`
|
218
|
+
# @return [Fixnum]
|
219
|
+
attr_accessor :level
|
220
|
+
|
221
|
+
# The maximum experience points for this level.
|
222
|
+
# Corresponds to the JSON property `maxExperiencePoints`
|
223
|
+
# @return [String]
|
224
|
+
attr_accessor :max_experience_points
|
225
|
+
|
226
|
+
# The minimum experience points for this level.
|
227
|
+
# Corresponds to the JSON property `minExperiencePoints`
|
228
|
+
# @return [String]
|
229
|
+
attr_accessor :min_experience_points
|
230
|
+
|
231
|
+
def initialize(**args)
|
232
|
+
update!(**args)
|
233
|
+
end
|
234
|
+
|
235
|
+
# Update properties of this object
|
236
|
+
def update!(**args)
|
237
|
+
@level = args[:level] unless args[:level].nil?
|
238
|
+
@max_experience_points = args[:max_experience_points] unless args[:max_experience_points].nil?
|
239
|
+
@min_experience_points = args[:min_experience_points] unless args[:min_experience_points].nil?
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
243
|
+
# This is a JSON template for the HiddenPlayer resource.
|
244
|
+
class HiddenPlayer
|
245
|
+
include Google::Apis::Core::Hashable
|
246
|
+
|
247
|
+
# The time this player was hidden.
|
248
|
+
# Corresponds to the JSON property `hiddenTimeMillis`
|
249
|
+
# @return [String]
|
250
|
+
attr_accessor :hidden_time_millis
|
251
|
+
|
252
|
+
# Uniquely identifies the type of this resource. Value is always the fixed
|
253
|
+
# string gamesManagement#hiddenPlayer.
|
254
|
+
# Corresponds to the JSON property `kind`
|
255
|
+
# @return [String]
|
256
|
+
attr_accessor :kind
|
257
|
+
|
258
|
+
# This is a JSON template for a Player resource.
|
259
|
+
# Corresponds to the JSON property `player`
|
260
|
+
# @return [Google::Apis::GamesManagementV1management::Player]
|
261
|
+
attr_accessor :player
|
262
|
+
|
263
|
+
def initialize(**args)
|
264
|
+
update!(**args)
|
265
|
+
end
|
266
|
+
|
267
|
+
# Update properties of this object
|
268
|
+
def update!(**args)
|
269
|
+
@hidden_time_millis = args[:hidden_time_millis] unless args[:hidden_time_millis].nil?
|
270
|
+
@kind = args[:kind] unless args[:kind].nil?
|
271
|
+
@player = args[:player] unless args[:player].nil?
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
275
|
+
# This is a JSON template for a list of hidden players.
|
276
|
+
class HiddenPlayerList
|
277
|
+
include Google::Apis::Core::Hashable
|
278
|
+
|
279
|
+
# The players.
|
280
|
+
# Corresponds to the JSON property `items`
|
281
|
+
# @return [Array<Google::Apis::GamesManagementV1management::HiddenPlayer>]
|
282
|
+
attr_accessor :items
|
283
|
+
|
284
|
+
# Uniquely identifies the type of this resource. Value is always the fixed
|
285
|
+
# string gamesManagement#hiddenPlayerList.
|
286
|
+
# Corresponds to the JSON property `kind`
|
287
|
+
# @return [String]
|
288
|
+
attr_accessor :kind
|
289
|
+
|
290
|
+
# The pagination token for the next page of results.
|
291
|
+
# Corresponds to the JSON property `nextPageToken`
|
292
|
+
# @return [String]
|
293
|
+
attr_accessor :next_page_token
|
294
|
+
|
295
|
+
def initialize(**args)
|
296
|
+
update!(**args)
|
297
|
+
end
|
298
|
+
|
299
|
+
# Update properties of this object
|
300
|
+
def update!(**args)
|
301
|
+
@items = args[:items] unless args[:items].nil?
|
302
|
+
@kind = args[:kind] unless args[:kind].nil?
|
303
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
# This is a JSON template for a Player resource.
|
308
|
+
class Player
|
309
|
+
include Google::Apis::Core::Hashable
|
310
|
+
|
311
|
+
# The base URL for the image that represents the player.
|
312
|
+
# Corresponds to the JSON property `avatarImageUrl`
|
313
|
+
# @return [String]
|
314
|
+
attr_accessor :avatar_image_url
|
315
|
+
|
316
|
+
# The url to the landscape mode player banner image.
|
317
|
+
# Corresponds to the JSON property `bannerUrlLandscape`
|
318
|
+
# @return [String]
|
319
|
+
attr_accessor :banner_url_landscape
|
320
|
+
|
321
|
+
# The url to the portrait mode player banner image.
|
322
|
+
# Corresponds to the JSON property `bannerUrlPortrait`
|
323
|
+
# @return [String]
|
324
|
+
attr_accessor :banner_url_portrait
|
325
|
+
|
326
|
+
# The name to display for the player.
|
327
|
+
# Corresponds to the JSON property `displayName`
|
328
|
+
# @return [String]
|
329
|
+
attr_accessor :display_name
|
330
|
+
|
331
|
+
# This is a JSON template for 1P/3P metadata about the player's experience.
|
332
|
+
# Corresponds to the JSON property `experienceInfo`
|
333
|
+
# @return [Google::Apis::GamesManagementV1management::GamesPlayerExperienceInfoResource]
|
334
|
+
attr_accessor :experience_info
|
335
|
+
|
336
|
+
# Uniquely identifies the type of this resource. Value is always the fixed
|
337
|
+
# string gamesManagement#player.
|
338
|
+
# Corresponds to the JSON property `kind`
|
339
|
+
# @return [String]
|
340
|
+
attr_accessor :kind
|
341
|
+
|
342
|
+
# This is a JSON template for metadata about a player playing a game with the
|
343
|
+
# currently authenticated user.
|
344
|
+
# Corresponds to the JSON property `lastPlayedWith`
|
345
|
+
# @return [Google::Apis::GamesManagementV1management::GamesPlayedResource]
|
346
|
+
attr_accessor :last_played_with
|
347
|
+
|
348
|
+
# An object representation of the individual components of the player's name.
|
349
|
+
# For some players, these fields may not be present.
|
350
|
+
# Corresponds to the JSON property `name`
|
351
|
+
# @return [Google::Apis::GamesManagementV1management::Player::Name]
|
352
|
+
attr_accessor :name
|
353
|
+
|
354
|
+
# The ID of the player.
|
355
|
+
# Corresponds to the JSON property `playerId`
|
356
|
+
# @return [String]
|
357
|
+
attr_accessor :player_id
|
358
|
+
|
359
|
+
# The player's title rewarded for their game activities.
|
360
|
+
# Corresponds to the JSON property `title`
|
361
|
+
# @return [String]
|
362
|
+
attr_accessor :title
|
363
|
+
|
364
|
+
def initialize(**args)
|
365
|
+
update!(**args)
|
366
|
+
end
|
367
|
+
|
368
|
+
# Update properties of this object
|
369
|
+
def update!(**args)
|
370
|
+
@avatar_image_url = args[:avatar_image_url] unless args[:avatar_image_url].nil?
|
371
|
+
@banner_url_landscape = args[:banner_url_landscape] unless args[:banner_url_landscape].nil?
|
372
|
+
@banner_url_portrait = args[:banner_url_portrait] unless args[:banner_url_portrait].nil?
|
373
|
+
@display_name = args[:display_name] unless args[:display_name].nil?
|
374
|
+
@experience_info = args[:experience_info] unless args[:experience_info].nil?
|
375
|
+
@kind = args[:kind] unless args[:kind].nil?
|
376
|
+
@last_played_with = args[:last_played_with] unless args[:last_played_with].nil?
|
377
|
+
@name = args[:name] unless args[:name].nil?
|
378
|
+
@player_id = args[:player_id] unless args[:player_id].nil?
|
379
|
+
@title = args[:title] unless args[:title].nil?
|
380
|
+
end
|
381
|
+
|
382
|
+
# An object representation of the individual components of the player's name.
|
383
|
+
# For some players, these fields may not be present.
|
384
|
+
class Name
|
385
|
+
include Google::Apis::Core::Hashable
|
386
|
+
|
387
|
+
# The family name of this player. In some places, this is known as the last name.
|
388
|
+
# Corresponds to the JSON property `familyName`
|
389
|
+
# @return [String]
|
390
|
+
attr_accessor :family_name
|
391
|
+
|
392
|
+
# The given name of this player. In some places, this is known as the first name.
|
393
|
+
# Corresponds to the JSON property `givenName`
|
394
|
+
# @return [String]
|
395
|
+
attr_accessor :given_name
|
396
|
+
|
397
|
+
def initialize(**args)
|
398
|
+
update!(**args)
|
399
|
+
end
|
400
|
+
|
401
|
+
# Update properties of this object
|
402
|
+
def update!(**args)
|
403
|
+
@family_name = args[:family_name] unless args[:family_name].nil?
|
404
|
+
@given_name = args[:given_name] unless args[:given_name].nil?
|
405
|
+
end
|
406
|
+
end
|
407
|
+
end
|
408
|
+
|
409
|
+
# This is a JSON template for a list of leaderboard reset resources.
|
410
|
+
class PlayerScoreResetAllResponse
|
411
|
+
include Google::Apis::Core::Hashable
|
412
|
+
|
413
|
+
# Uniquely identifies the type of this resource. Value is always the fixed
|
414
|
+
# string gamesManagement#playerScoreResetResponse.
|
415
|
+
# Corresponds to the JSON property `kind`
|
416
|
+
# @return [String]
|
417
|
+
attr_accessor :kind
|
418
|
+
|
419
|
+
# The leaderboard reset results.
|
420
|
+
# Corresponds to the JSON property `results`
|
421
|
+
# @return [Array<Google::Apis::GamesManagementV1management::PlayerScoreResetResponse>]
|
422
|
+
attr_accessor :results
|
423
|
+
|
424
|
+
def initialize(**args)
|
425
|
+
update!(**args)
|
426
|
+
end
|
427
|
+
|
428
|
+
# Update properties of this object
|
429
|
+
def update!(**args)
|
430
|
+
@kind = args[:kind] unless args[:kind].nil?
|
431
|
+
@results = args[:results] unless args[:results].nil?
|
432
|
+
end
|
433
|
+
end
|
434
|
+
|
435
|
+
# This is a JSON template for a list of reset leaderboard entry resources.
|
436
|
+
class PlayerScoreResetResponse
|
437
|
+
include Google::Apis::Core::Hashable
|
438
|
+
|
439
|
+
# The ID of an leaderboard for which player state has been updated.
|
440
|
+
# Corresponds to the JSON property `definitionId`
|
441
|
+
# @return [String]
|
442
|
+
attr_accessor :definition_id
|
443
|
+
|
444
|
+
# Uniquely identifies the type of this resource. Value is always the fixed
|
445
|
+
# string gamesManagement#playerScoreResetResponse.
|
446
|
+
# Corresponds to the JSON property `kind`
|
447
|
+
# @return [String]
|
448
|
+
attr_accessor :kind
|
449
|
+
|
450
|
+
# The time spans of the updated score.
|
451
|
+
# Possible values are:
|
452
|
+
# - "ALL_TIME" - The score is an all-time score.
|
453
|
+
# - "WEEKLY" - The score is a weekly score.
|
454
|
+
# - "DAILY" - The score is a daily score.
|
455
|
+
# Corresponds to the JSON property `resetScoreTimeSpans`
|
456
|
+
# @return [Array<String>]
|
457
|
+
attr_accessor :reset_score_time_spans
|
458
|
+
|
459
|
+
def initialize(**args)
|
460
|
+
update!(**args)
|
461
|
+
end
|
462
|
+
|
463
|
+
# Update properties of this object
|
464
|
+
def update!(**args)
|
465
|
+
@definition_id = args[:definition_id] unless args[:definition_id].nil?
|
466
|
+
@kind = args[:kind] unless args[:kind].nil?
|
467
|
+
@reset_score_time_spans = args[:reset_score_time_spans] unless args[:reset_score_time_spans].nil?
|
468
|
+
end
|
469
|
+
end
|
470
|
+
|
471
|
+
# This is a JSON template for multiple quests reset all request.
|
472
|
+
class QuestsResetMultipleForAllRequest
|
473
|
+
include Google::Apis::Core::Hashable
|
474
|
+
|
475
|
+
# Uniquely identifies the type of this resource. Value is always the fixed
|
476
|
+
# string gamesManagement#questsResetMultipleForAllRequest.
|
477
|
+
# Corresponds to the JSON property `kind`
|
478
|
+
# @return [String]
|
479
|
+
attr_accessor :kind
|
480
|
+
|
481
|
+
# The IDs of quests to reset.
|
482
|
+
# Corresponds to the JSON property `quest_ids`
|
483
|
+
# @return [Array<String>]
|
484
|
+
attr_accessor :quest_ids
|
485
|
+
|
486
|
+
def initialize(**args)
|
487
|
+
update!(**args)
|
488
|
+
end
|
489
|
+
|
490
|
+
# Update properties of this object
|
491
|
+
def update!(**args)
|
492
|
+
@kind = args[:kind] unless args[:kind].nil?
|
493
|
+
@quest_ids = args[:quest_ids] unless args[:quest_ids].nil?
|
494
|
+
end
|
495
|
+
end
|
496
|
+
|
497
|
+
# This is a JSON template for multiple scores reset all request.
|
498
|
+
class ScoresResetMultipleForAllRequest
|
499
|
+
include Google::Apis::Core::Hashable
|
500
|
+
|
501
|
+
# Uniquely identifies the type of this resource. Value is always the fixed
|
502
|
+
# string gamesManagement#scoresResetMultipleForAllRequest.
|
503
|
+
# Corresponds to the JSON property `kind`
|
504
|
+
# @return [String]
|
505
|
+
attr_accessor :kind
|
506
|
+
|
507
|
+
# The IDs of leaderboards to reset.
|
508
|
+
# Corresponds to the JSON property `leaderboard_ids`
|
509
|
+
# @return [Array<String>]
|
510
|
+
attr_accessor :leaderboard_ids
|
511
|
+
|
512
|
+
def initialize(**args)
|
513
|
+
update!(**args)
|
514
|
+
end
|
515
|
+
|
516
|
+
# Update properties of this object
|
517
|
+
def update!(**args)
|
518
|
+
@kind = args[:kind] unless args[:kind].nil?
|
519
|
+
@leaderboard_ids = args[:leaderboard_ids] unless args[:leaderboard_ids].nil?
|
520
|
+
end
|
521
|
+
end
|
522
|
+
end
|
523
|
+
end
|
524
|
+
end
|