From 206045285c6b0137be31019fa1fcf9b25e2c9e37 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 2 Jul 2020 00:38:31 +0000 Subject: [PATCH] Autogenerated update (2020-07-02) Update: - androiddeviceprovisioning_v1 - androidpublisher_v3 - displayvideo_v1 - games_v1 - ml_v1 - run_v1 - run_v1alpha1 - run_v1beta1 --- api_names_out.yaml | 39 + .../apis/androiddeviceprovisioning_v1.rb | 2 +- .../androiddeviceprovisioning_v1/classes.rb | 58 +- generated/google/apis/androidpublisher_v3.rb | 2 +- .../apis/androidpublisher_v3/classes.rb | 78 + .../androidpublisher_v3/representations.rb | 44 + .../apis/androidpublisher_v3/service.rb | 150 +- generated/google/apis/displayvideo_v1.rb | 2 +- .../google/apis/displayvideo_v1/classes.rb | 9 +- .../google/apis/displayvideo_v1/service.rb | 4 - generated/google/apis/games_v1.rb | 10 +- generated/google/apis/games_v1/classes.rb | 2412 +++-------------- .../google/apis/games_v1/representations.rb | 659 +---- generated/google/apis/games_v1/service.rb | 1366 ++-------- generated/google/apis/ml_v1.rb | 2 +- generated/google/apis/ml_v1/classes.rb | 12 +- generated/google/apis/run_v1.rb | 2 +- generated/google/apis/run_v1/classes.rb | 7 +- generated/google/apis/run_v1/service.rb | 2 +- generated/google/apis/run_v1alpha1.rb | 2 +- generated/google/apis/run_v1alpha1/service.rb | 2 +- generated/google/apis/run_v1beta1.rb | 2 +- generated/google/apis/run_v1beta1/service.rb | 2 +- 23 files changed, 919 insertions(+), 3949 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index add173d5e..ce36388b3 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -8888,6 +8888,12 @@ "/androidpublisher:v3/DeviceMetadata/screenDensityDpi": screen_density_dpi "/androidpublisher:v3/DeviceMetadata/screenHeightPx": screen_height_px "/androidpublisher:v3/DeviceMetadata/screenWidthPx": screen_width_px +"/androidpublisher:v3/DeviceSpec": device_spec +"/androidpublisher:v3/DeviceSpec/screenDensity": screen_density +"/androidpublisher:v3/DeviceSpec/supportedAbis": supported_abis +"/androidpublisher:v3/DeviceSpec/supportedAbis/supported_abi": supported_abi +"/androidpublisher:v3/DeviceSpec/supportedLocales": supported_locales +"/androidpublisher:v3/DeviceSpec/supportedLocales/supported_locale": supported_locale "/androidpublisher:v3/ExpansionFile": expansion_file "/androidpublisher:v3/ExpansionFile/fileSize": file_size "/androidpublisher:v3/ExpansionFile/referencesVersion": references_version @@ -9073,6 +9079,9 @@ "/androidpublisher:v3/SubscriptionPurchasesDeferRequest/deferralInfo": deferral_info "/androidpublisher:v3/SubscriptionPurchasesDeferResponse": subscription_purchases_defer_response "/androidpublisher:v3/SubscriptionPurchasesDeferResponse/newExpiryTimeMillis": new_expiry_time_millis +"/androidpublisher:v3/SystemApksListResponse": system_apks_list_response +"/androidpublisher:v3/SystemApksListResponse/variants": variants +"/androidpublisher:v3/SystemApksListResponse/variants/variant": variant "/androidpublisher:v3/Testers": testers "/androidpublisher:v3/Testers/googleGroups": google_groups "/androidpublisher:v3/Testers/googleGroups/google_group": google_group @@ -9118,6 +9127,9 @@ "/androidpublisher:v3/UsesPermission": uses_permission "/androidpublisher:v3/UsesPermission/maxSdkVersion": max_sdk_version "/androidpublisher:v3/UsesPermission/name": name +"/androidpublisher:v3/Variant": variant +"/androidpublisher:v3/Variant/deviceSpec": device_spec +"/androidpublisher:v3/Variant/variantId": variant_id "/androidpublisher:v3/VoidedPurchase": voided_purchase "/androidpublisher:v3/VoidedPurchase/kind": kind "/androidpublisher:v3/VoidedPurchase/orderId": order_id @@ -9348,6 +9360,20 @@ "/androidpublisher:v3/androidpublisher.reviews.reply": reply_review "/androidpublisher:v3/androidpublisher.reviews.reply/packageName": package_name "/androidpublisher:v3/androidpublisher.reviews.reply/reviewId": review_id +"/androidpublisher:v3/androidpublisher.systemapks.variants.create": create_systemapk_variant +"/androidpublisher:v3/androidpublisher.systemapks.variants.create/packageName": package_name +"/androidpublisher:v3/androidpublisher.systemapks.variants.create/versionCode": version_code +"/androidpublisher:v3/androidpublisher.systemapks.variants.download": download_systemapk_variant +"/androidpublisher:v3/androidpublisher.systemapks.variants.download/packageName": package_name +"/androidpublisher:v3/androidpublisher.systemapks.variants.download/variantId": variant_id +"/androidpublisher:v3/androidpublisher.systemapks.variants.download/versionCode": version_code +"/androidpublisher:v3/androidpublisher.systemapks.variants.get": get_systemapk_variant +"/androidpublisher:v3/androidpublisher.systemapks.variants.get/packageName": package_name +"/androidpublisher:v3/androidpublisher.systemapks.variants.get/variantId": variant_id +"/androidpublisher:v3/androidpublisher.systemapks.variants.get/versionCode": version_code +"/androidpublisher:v3/androidpublisher.systemapks.variants.list": list_systemapk_variants +"/androidpublisher:v3/androidpublisher.systemapks.variants.list/packageName": package_name +"/androidpublisher:v3/androidpublisher.systemapks.variants.list/versionCode": version_code "/androidpublisher:v3/fields": fields "/androidpublisher:v3/key": key "/androidpublisher:v3/quotaUser": quota_user @@ -94768,6 +94794,18 @@ "/games:v1/SnapshotListResponse/items/item": item "/games:v1/SnapshotListResponse/kind": kind "/games:v1/SnapshotListResponse/nextPageToken": next_page_token +"/games:v1/StatsResponse": stats_response +"/games:v1/StatsResponse/avg_session_length_minutes": avg_session_length_minutes +"/games:v1/StatsResponse/churn_probability": churn_probability +"/games:v1/StatsResponse/days_since_last_played": days_since_last_played +"/games:v1/StatsResponse/high_spender_probability": high_spender_probability +"/games:v1/StatsResponse/kind": kind +"/games:v1/StatsResponse/num_purchases": num_purchases +"/games:v1/StatsResponse/num_sessions": num_sessions +"/games:v1/StatsResponse/num_sessions_percentile": num_sessions_percentile +"/games:v1/StatsResponse/spend_percentile": spend_percentile +"/games:v1/StatsResponse/spend_probability": spend_probability +"/games:v1/StatsResponse/total_spend_next_28_days": total_spend_next_28_days "/games:v1/TurnBasedAutoMatchingCriteria": turn_based_auto_matching_criteria "/games:v1/TurnBasedAutoMatchingCriteria/exclusiveBitmask": exclusive_bitmask "/games:v1/TurnBasedAutoMatchingCriteria/kind": kind @@ -95032,6 +95070,7 @@ "/games:v1/games.snapshots.list/maxResults": max_results "/games:v1/games.snapshots.list/pageToken": page_token "/games:v1/games.snapshots.list/playerId": player_id +"/games:v1/games.stats.get": get_stat "/games:v1/games.turnBasedMatches.cancel": cancel_turn_based_match "/games:v1/games.turnBasedMatches.cancel/consistencyToken": consistency_token "/games:v1/games.turnBasedMatches.cancel/matchId": match_id diff --git a/generated/google/apis/androiddeviceprovisioning_v1.rb b/generated/google/apis/androiddeviceprovisioning_v1.rb index 6367110c9..9c7782500 100644 --- a/generated/google/apis/androiddeviceprovisioning_v1.rb +++ b/generated/google/apis/androiddeviceprovisioning_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/zero-touch/ module AndroiddeviceprovisioningV1 VERSION = 'V1' - REVISION = '20200311' + REVISION = '20200701' end end end diff --git a/generated/google/apis/androiddeviceprovisioning_v1/classes.rb b/generated/google/apis/androiddeviceprovisioning_v1/classes.rb index f0224e17a..06f2af86f 100644 --- a/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +++ b/generated/google/apis/androiddeviceprovisioning_v1/classes.rb @@ -33,13 +33,13 @@ module Google # Encapsulates hardware and product IDs to identify a manufactured device. # To understand requirements on identifier sets, read - # [Identifiers](/zero-touch/guides/identifiers). + # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Corresponds to the JSON property `deviceIdentifier` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] attr_accessor :device_identifier # Metadata entries that can be attached to a `Device`. To learn more, read - # [Device metadata](/zero-touch/guides/metadata). + # [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # Corresponds to the JSON property `deviceMetadata` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata] attr_accessor :device_metadata @@ -113,7 +113,7 @@ module Google class Company include Google::Apis::Core::Hashable - # Optional. Input only. Email address of customer's users in the admin role. + # Optional. Email address of customer's users in the admin role. # Each email address must be associated with a Google Account. # Corresponds to the JSON property `adminEmails` # @return [Array] @@ -140,7 +140,8 @@ module Google # @return [String] attr_accessor :name - # Input only. Email address of customer's users in the owner role. At least + # Required. Input only. Email address of customer's users in the owner role. At + # least # one `owner_email` is required. Each email address must be associated with a # Google Account. Owners share the same access as admins but can also add, # delete, and edit your organization's portal users. @@ -306,7 +307,8 @@ module Google # device. # Methods that operate on devices take a `DeviceReference` as a parameter type # because it's more flexible for the caller. To learn more about device - # identifiers, read [Identifiers](/zero-touch/guides/identifiers). + # identifiers, read + # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Corresponds to the JSON property `device` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceReference] attr_accessor :device @@ -424,7 +426,8 @@ module Google # device. # Methods that operate on devices take a `DeviceReference` as a parameter type # because it's more flexible for the caller. To learn more about device - # identifiers, read [Identifiers](/zero-touch/guides/identifiers). + # identifiers, read + # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Corresponds to the JSON property `device` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceReference] attr_accessor :device @@ -450,7 +453,8 @@ module Google # device. # Methods that operate on devices take a `DeviceReference` as a parameter type # because it's more flexible for the caller. To learn more about device - # identifiers, read [Identifiers](/zero-touch/guides/identifiers). + # identifiers, read + # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Corresponds to the JSON property `device` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceReference] attr_accessor :device @@ -492,13 +496,13 @@ module Google # Encapsulates hardware and product IDs to identify a manufactured device. # To understand requirements on identifier sets, read - # [Identifiers](/zero-touch/guides/identifiers). + # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Corresponds to the JSON property `deviceIdentifier` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] attr_accessor :device_identifier # Metadata entries that can be attached to a `Device`. To learn more, read - # [Device metadata](/zero-touch/guides/metadata). + # [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # Corresponds to the JSON property `deviceMetadata` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata] attr_accessor :device_metadata @@ -574,7 +578,7 @@ module Google # Encapsulates hardware and product IDs to identify a manufactured device. # To understand requirements on identifier sets, read - # [Identifiers](/zero-touch/guides/identifiers). + # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). class DeviceIdentifier include Google::Apis::Core::Hashable @@ -624,7 +628,7 @@ module Google end # Metadata entries that can be attached to a `Device`. To learn more, read - # [Device metadata](/zero-touch/guides/metadata). + # [Device metadata](https://developers.google.com/zero-touch/guides/metadata). class DeviceMetadata include Google::Apis::Core::Hashable @@ -650,7 +654,8 @@ module Google # device. # Methods that operate on devices take a `DeviceReference` as a parameter type # because it's more flexible for the caller. To learn more about device - # identifiers, read [Identifiers](/zero-touch/guides/identifiers). + # identifiers, read + # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). class DeviceReference include Google::Apis::Core::Hashable @@ -661,7 +666,7 @@ module Google # Encapsulates hardware and product IDs to identify a manufactured device. # To understand requirements on identifier sets, read - # [Identifiers](/zero-touch/guides/identifiers). + # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Corresponds to the JSON property `deviceIdentifier` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] attr_accessor :device_identifier @@ -810,7 +815,7 @@ module Google # Encapsulates hardware and product IDs to identify a manufactured device. # To understand requirements on identifier sets, read - # [Identifiers](/zero-touch/guides/identifiers). + # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Corresponds to the JSON property `deviceIdentifier` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] attr_accessor :device_identifier @@ -1142,13 +1147,13 @@ module Google # Encapsulates hardware and product IDs to identify a manufactured device. # To understand requirements on identifier sets, read - # [Identifiers](/zero-touch/guides/identifiers). + # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Corresponds to the JSON property `deviceIdentifier` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] attr_accessor :device_identifier # Metadata entries that can be attached to a `Device`. To learn more, read - # [Device metadata](/zero-touch/guides/metadata). + # [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # Corresponds to the JSON property `deviceMetadata` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata] attr_accessor :device_metadata @@ -1175,14 +1180,14 @@ module Google class PartnerUnclaim include Google::Apis::Core::Hashable - # Device ID of the device. + # Required. Device ID of the device. # Corresponds to the JSON property `deviceId` # @return [Fixnum] attr_accessor :device_id # Encapsulates hardware and product IDs to identify a manufactured device. # To understand requirements on identifier sets, read - # [Identifiers](/zero-touch/guides/identifiers). + # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Corresponds to the JSON property `deviceIdentifier` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] attr_accessor :device_identifier @@ -1192,13 +1197,14 @@ module Google # @return [String] attr_accessor :section_type - # The duration of the vacation unlock starting from when the request is + # Optional. The duration of the vacation unlock starting from when the request + # is # processed. (1 day is treated as 24 hours) # Corresponds to the JSON property `vacationModeDays` # @return [Fixnum] attr_accessor :vacation_mode_days - # The expiration time of the vacation unlock. + # Optional. The expiration time of the vacation unlock. # Corresponds to the JSON property `vacationModeExpireTime` # @return [String] attr_accessor :vacation_mode_expire_time @@ -1297,14 +1303,14 @@ module Google class UnclaimDeviceRequest include Google::Apis::Core::Hashable - # The device ID returned by `ClaimDevice`. + # Required. The device ID returned by `ClaimDevice`. # Corresponds to the JSON property `deviceId` # @return [Fixnum] attr_accessor :device_id # Encapsulates hardware and product IDs to identify a manufactured device. # To understand requirements on identifier sets, read - # [Identifiers](/zero-touch/guides/identifiers). + # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Corresponds to the JSON property `deviceIdentifier` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] attr_accessor :device_identifier @@ -1382,7 +1388,7 @@ module Google include Google::Apis::Core::Hashable # Metadata entries that can be attached to a `Device`. To learn more, read - # [Device metadata](/zero-touch/guides/metadata). + # [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # Corresponds to the JSON property `deviceMetadata` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata] attr_accessor :device_metadata @@ -1401,20 +1407,20 @@ module Google class UpdateMetadataArguments include Google::Apis::Core::Hashable - # Device ID of the device. + # Required. Device ID of the device. # Corresponds to the JSON property `deviceId` # @return [Fixnum] attr_accessor :device_id # Encapsulates hardware and product IDs to identify a manufactured device. # To understand requirements on identifier sets, read - # [Identifiers](/zero-touch/guides/identifiers). + # [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). # Corresponds to the JSON property `deviceIdentifier` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] attr_accessor :device_identifier # Metadata entries that can be attached to a `Device`. To learn more, read - # [Device metadata](/zero-touch/guides/metadata). + # [Device metadata](https://developers.google.com/zero-touch/guides/metadata). # Corresponds to the JSON property `deviceMetadata` # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata] attr_accessor :device_metadata diff --git a/generated/google/apis/androidpublisher_v3.rb b/generated/google/apis/androidpublisher_v3.rb index f750a6652..f6f6f9141 100644 --- a/generated/google/apis/androidpublisher_v3.rb +++ b/generated/google/apis/androidpublisher_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV3 VERSION = 'V3' - REVISION = '20200616' + REVISION = '20200701' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v3/classes.rb b/generated/google/apis/androidpublisher_v3/classes.rb index 8b82fc283..a9a82ca7e 100644 --- a/generated/google/apis/androidpublisher_v3/classes.rb +++ b/generated/google/apis/androidpublisher_v3/classes.rb @@ -464,6 +464,39 @@ module Google end end + # The device spec used to generate a system APK. + class DeviceSpec + include Google::Apis::Core::Hashable + + # Screen dpi. + # Corresponds to the JSON property `screenDensity` + # @return [Fixnum] + attr_accessor :screen_density + + # Supported ABI architectures in the order of preference. + # The values should be the string as reported by the platform, e.g. + # "armeabi-v7a", "x86_64". + # Corresponds to the JSON property `supportedAbis` + # @return [Array] + attr_accessor :supported_abis + + # All installed locales represented as BCP-47 strings, e.g. "en-US". + # Corresponds to the JSON property `supportedLocales` + # @return [Array] + attr_accessor :supported_locales + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @screen_density = args[:screen_density] if args.key?(:screen_density) + @supported_abis = args[:supported_abis] if args.key?(:supported_abis) + @supported_locales = args[:supported_locales] if args.key?(:supported_locales) + end + end + # An expansion file. The resource for ExpansionFilesService. class ExpansionFile include Google::Apis::Core::Hashable @@ -1805,6 +1838,25 @@ module Google end end + # Response to list previously created system APK variants. + class SystemApksListResponse + include Google::Apis::Core::Hashable + + # All system APK variants created. + # Corresponds to the JSON property `variants` + # @return [Array] + attr_accessor :variants + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @variants = args[:variants] if args.key?(:variants) + end + end + # The testers of an app. The resource for TestersService. class Testers include Google::Apis::Core::Hashable @@ -2124,6 +2176,32 @@ module Google end end + # APK that is suitable for inclusion in a system image. The resource of + # SystemApksService. + class Variant + include Google::Apis::Core::Hashable + + # The device spec used to generate a system APK. + # Corresponds to the JSON property `deviceSpec` + # @return [Google::Apis::AndroidpublisherV3::DeviceSpec] + attr_accessor :device_spec + + # Output only. The ID of a previously created system APK variant. + # Corresponds to the JSON property `variantId` + # @return [Fixnum] + attr_accessor :variant_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device_spec = args[:device_spec] if args.key?(:device_spec) + @variant_id = args[:variant_id] if args.key?(:variant_id) + end + end + # A VoidedPurchase resource indicates a purchase that was either # canceled/refunded/charged-back. class VoidedPurchase diff --git a/generated/google/apis/androidpublisher_v3/representations.rb b/generated/google/apis/androidpublisher_v3/representations.rb index 8367dfef8..f05fcc4d4 100644 --- a/generated/google/apis/androidpublisher_v3/representations.rb +++ b/generated/google/apis/androidpublisher_v3/representations.rb @@ -112,6 +112,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DeviceSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ExpansionFile class Representation < Google::Apis::Core::JsonRepresentation; end @@ -298,6 +304,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SystemApksListResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Testers class Representation < Google::Apis::Core::JsonRepresentation; end @@ -346,6 +358,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Variant + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class VoidedPurchase class Representation < Google::Apis::Core::JsonRepresentation; end @@ -495,6 +513,15 @@ module Google end end + class DeviceSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :screen_density, as: 'screenDensity' + collection :supported_abis, as: 'supportedAbis' + collection :supported_locales, as: 'supportedLocales' + end + end + class ExpansionFile # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -830,6 +857,14 @@ module Google end end + class SystemApksListResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :variants, as: 'variants', class: Google::Apis::AndroidpublisherV3::Variant, decorator: Google::Apis::AndroidpublisherV3::Variant::Representation + + end + end + class Testers # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -914,6 +949,15 @@ module Google end end + class Variant + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :device_spec, as: 'deviceSpec', class: Google::Apis::AndroidpublisherV3::DeviceSpec, decorator: Google::Apis::AndroidpublisherV3::DeviceSpec::Representation + + property :variant_id, as: 'variantId' + end + end + class VoidedPurchase # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/androidpublisher_v3/service.rb b/generated/google/apis/androidpublisher_v3/service.rb index ea1e9db5f..5c790a2b7 100644 --- a/generated/google/apis/androidpublisher_v3/service.rb +++ b/generated/google/apis/androidpublisher_v3/service.rb @@ -44,7 +44,7 @@ module Google def initialize super('https://www.googleapis.com/', '') - @batch_path = 'batch/androidpublisher' + @batch_path = 'batch/androidpublisher/v3' end # Commits an app edit. @@ -2255,6 +2255,154 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Creates an APK which is suitable for inclusion in a system image from an + # already uploaded Android App Bundle. + # @param [String] package_name + # Unique identifier of the Android app. + # @param [Fixnum] version_code + # The version code of the App Bundle. + # @param [Google::Apis::AndroidpublisherV3::Variant] variant_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::Variant] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::Variant] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_systemapk_variant(package_name, version_code, variant_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants', options) + command.request_representation = Google::Apis::AndroidpublisherV3::Variant::Representation + command.request_object = variant_object + command.response_representation = Google::Apis::AndroidpublisherV3::Variant::Representation + command.response_class = Google::Apis::AndroidpublisherV3::Variant + command.params['packageName'] = package_name unless package_name.nil? + command.params['versionCode'] = version_code unless version_code.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Downloads a previously created system APK which is suitable for inclusion + # in a system image. + # @param [String] package_name + # Unique identifier of the Android app. + # @param [Fixnum] version_code + # The version code of the App Bundle. + # @param [Fixnum] variant_id + # The ID of a previously created system APK variant. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [IO, String] download_dest + # IO stream or filename to receive content download + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def download_systemapk_variant(package_name, version_code, variant_id, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block) + if download_dest.nil? + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download', options) + else + command = make_download_command(:get, 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download', options) + command.download_dest = download_dest + end + command.params['packageName'] = package_name unless package_name.nil? + command.params['versionCode'] = version_code unless version_code.nil? + command.params['variantId'] = variant_id unless variant_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a previously created system APK variant. + # @param [String] package_name + # Unique identifier of the Android app. + # @param [Fixnum] version_code + # The version code of the App Bundle. + # @param [Fixnum] variant_id + # The ID of a previously created system APK variant. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::Variant] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::Variant] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_systemapk_variant(package_name, version_code, variant_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}', options) + command.response_representation = Google::Apis::AndroidpublisherV3::Variant::Representation + command.response_class = Google::Apis::AndroidpublisherV3::Variant + command.params['packageName'] = package_name unless package_name.nil? + command.params['versionCode'] = version_code unless version_code.nil? + command.params['variantId'] = variant_id unless variant_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of previously created system APK variants. + # @param [String] package_name + # Unique identifier of the Android app. + # @param [Fixnum] version_code + # The version code of the App Bundle. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::SystemApksListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::SystemApksListResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_systemapk_variants(package_name, version_code, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants', options) + command.response_representation = Google::Apis::AndroidpublisherV3::SystemApksListResponse::Representation + command.response_class = Google::Apis::AndroidpublisherV3::SystemApksListResponse + command.params['packageName'] = package_name unless package_name.nil? + command.params['versionCode'] = version_code unless version_code.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/displayvideo_v1.rb b/generated/google/apis/displayvideo_v1.rb index a7ee412df..2d59ac722 100644 --- a/generated/google/apis/displayvideo_v1.rb +++ b/generated/google/apis/displayvideo_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/display-video/ module DisplayvideoV1 VERSION = 'V1' - REVISION = '20200623' + REVISION = '20200630' # Create, see, edit, and permanently delete your Display & Video 360 entities and reports AUTH_DISPLAY_VIDEO = 'https://www.googleapis.com/auth/display-video' diff --git a/generated/google/apis/displayvideo_v1/classes.rb b/generated/google/apis/displayvideo_v1/classes.rb index edb2c9eba..5482eb553 100644 --- a/generated/google/apis/displayvideo_v1/classes.rb +++ b/generated/google/apis/displayvideo_v1/classes.rb @@ -3829,7 +3829,7 @@ module Google # @return [String] attr_accessor :audience_type - # Output only. The description of the first and third party audience. + # The user-provided description of the audience. # Only applicable to first party audiences. # Corresponds to the JSON property `description` # @return [String] @@ -3874,8 +3874,7 @@ module Google # @return [Fixnum] attr_accessor :display_mobile_web_audience_size - # Output only. The display name of the first and third party audience. - # . + # The display name of the first and third party audience. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name @@ -3888,7 +3887,6 @@ module Google attr_accessor :first_and_third_party_audience_id # Output only. Whether the audience is a first or third party audience. - # . # Corresponds to the JSON property `firstAndThirdPartyAudienceType` # @return [String] attr_accessor :first_and_third_party_audience_type @@ -3903,8 +3901,7 @@ module Google # @return [Fixnum] attr_accessor :gmail_audience_size - # Output only. The duration in days that an entry remains in the audience after - # the + # The duration in days that an entry remains in the audience after the # qualifying event. # Only applicable to first party audiences. # Corresponds to the JSON property `membershipDurationDays` diff --git a/generated/google/apis/displayvideo_v1/service.rb b/generated/google/apis/displayvideo_v1/service.rb index 9692675dd..f78efe528 100644 --- a/generated/google/apis/displayvideo_v1/service.rb +++ b/generated/google/apis/displayvideo_v1/service.rb @@ -651,8 +651,6 @@ module Google execute_or_queue_command(command, &block) end - # Updates an existing inventory source. - # Returns the updated inventory source if successful. # Gets a channel for a partner or advertiser. # @param [Fixnum] advertiser_id # The ID of the advertiser that owns the fetched channel. @@ -4028,8 +4026,6 @@ module Google execute_or_queue_command(command, &block) end - # Updates an existing inventory source. - # Returns the updated inventory source if successful. # Gets a channel for a partner or advertiser. # @param [Fixnum] partner_id # The ID of the partner that owns the fetched channel. diff --git a/generated/google/apis/games_v1.rb b/generated/google/apis/games_v1.rb index 7bec8da0d..90373aac9 100644 --- a/generated/google/apis/games_v1.rb +++ b/generated/google/apis/games_v1.rb @@ -18,14 +18,16 @@ require 'google/apis/games_v1/representations.rb' module Google module Apis - # Google Play Game Services API + # Google Play Game Services # - # The API for Google Play Game Services. + # The Google Play games service allows developers to enhance games with social + # leaderboards, + # achievements, game state, sign-in with Google, and more. # - # @see https://developers.google.com/games/services/ + # @see https://developers.google.com/games/ module GamesV1 VERSION = 'V1' - REVISION = '20200528' + REVISION = '20200625' # View and manage its own configuration data in your Google Drive AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata' diff --git a/generated/google/apis/games_v1/classes.rb b/generated/google/apis/games_v1/classes.rb index 19c010b6d..1603fa066 100644 --- a/generated/google/apis/games_v1/classes.rb +++ b/generated/google/apis/games_v1/classes.rb @@ -22,14 +22,11 @@ module Google module Apis module GamesV1 - # This is a JSON template for an achievement definition object. + # An achievement definition object. class AchievementDefinition include Google::Apis::Core::Hashable # The type of the achievement. - # Possible values are: - # - "STANDARD" - Achievement is either locked or unlocked. - # - "INCREMENTAL" - Achievement is incremental. # Corresponds to the JSON property `achievementType` # @return [String] attr_accessor :achievement_type @@ -55,30 +52,26 @@ module Google attr_accessor :id # The initial state of the achievement. - # Possible values are: - # - "HIDDEN" - Achievement is hidden. - # - "REVEALED" - Achievement is revealed. - # - "UNLOCKED" - Achievement is unlocked. # Corresponds to the JSON property `initialState` # @return [String] attr_accessor :initial_state - # Indicates whether the revealed icon image being returned is a default image, - # or is provided by the game. + # Indicates whether the revealed icon image being returned is a default + # image, or is provided by the game. # Corresponds to the JSON property `isRevealedIconUrlDefault` # @return [Boolean] attr_accessor :is_revealed_icon_url_default alias_method :is_revealed_icon_url_default?, :is_revealed_icon_url_default - # Indicates whether the unlocked icon image being returned is a default image, - # or is game-provided. + # Indicates whether the unlocked icon image being returned is a default + # image, or is game-provided. # Corresponds to the JSON property `isUnlockedIconUrlDefault` # @return [Boolean] attr_accessor :is_unlocked_icon_url_default alias_method :is_unlocked_icon_url_default?, :is_unlocked_icon_url_default # Uniquely identifies the type of this resource. Value is always the fixed - # string games#achievementDefinition. + # string `games#achievementDefinition`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -125,7 +118,7 @@ module Google end end - # This is a JSON template for a list of achievement definition objects. + # A list of achievement definition objects. class ListAchievementDefinitionsResponse include Google::Apis::Core::Hashable @@ -135,7 +128,7 @@ module Google attr_accessor :items # Uniquely identifies the type of this resource. Value is always the fixed - # string games#achievementDefinitionsListResponse. + # string `games#achievementDefinitionsListResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -157,7 +150,7 @@ module Google end end - # This is a JSON template for an achievement increment response + # An achievement increment response class AchievementIncrementResponse include Google::Apis::Core::Hashable @@ -167,76 +160,12 @@ module Google attr_accessor :current_steps # Uniquely identifies the type of this resource. Value is always the fixed - # string games#achievementIncrementResponse. + # string `games#achievementIncrementResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # Whether the current steps for the achievement has reached the number of steps - # required to unlock. - # Corresponds to the JSON property `newlyUnlocked` - # @return [Boolean] - attr_accessor :newly_unlocked - alias_method :newly_unlocked?, :newly_unlocked - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @current_steps = args[:current_steps] if args.key?(:current_steps) - @kind = args[:kind] if args.key?(:kind) - @newly_unlocked = args[:newly_unlocked] if args.key?(:newly_unlocked) - end - end - - # This is a JSON template for an achievement reveal response - class AchievementRevealResponse - include Google::Apis::Core::Hashable - - # The current state of the achievement for which a reveal was attempted. This - # might be UNLOCKED if the achievement was already unlocked. - # Possible values are: - # - "REVEALED" - Achievement is revealed. - # - "UNLOCKED" - Achievement is unlocked. - # Corresponds to the JSON property `currentState` - # @return [String] - attr_accessor :current_state - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#achievementRevealResponse. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @current_state = args[:current_state] if args.key?(:current_state) - @kind = args[:kind] if args.key?(:kind) - end - end - - # This is a JSON template for an achievement set steps at least response. - class AchievementSetStepsAtLeastResponse - include Google::Apis::Core::Hashable - - # The current steps recorded for this incremental achievement. - # Corresponds to the JSON property `currentSteps` - # @return [Fixnum] - attr_accessor :current_steps - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#achievementSetStepsAtLeastResponse. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Whether the the current steps for the achievement has reached the number of + # Whether the current steps for the achievement has reached the number of # steps required to unlock. # Corresponds to the JSON property `newlyUnlocked` # @return [Boolean] @@ -255,12 +184,73 @@ module Google end end - # This is a JSON template for an achievement unlock response + # An achievement reveal response + class AchievementRevealResponse + include Google::Apis::Core::Hashable + + # The current state of the achievement for which a reveal was attempted. This + # might be `UNLOCKED` if the achievement was already unlocked. + # Corresponds to the JSON property `currentState` + # @return [String] + attr_accessor :current_state + + # Uniquely identifies the type of this resource. Value is always the fixed + # string `games#achievementRevealResponse`. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @current_state = args[:current_state] if args.key?(:current_state) + @kind = args[:kind] if args.key?(:kind) + end + end + + # An achievement set steps at least response. + class AchievementSetStepsAtLeastResponse + include Google::Apis::Core::Hashable + + # The current steps recorded for this incremental achievement. + # Corresponds to the JSON property `currentSteps` + # @return [Fixnum] + attr_accessor :current_steps + + # Uniquely identifies the type of this resource. Value is always the fixed + # string `games#achievementSetStepsAtLeastResponse`. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Whether the current steps for the achievement has reached the number of + # steps required to unlock. + # Corresponds to the JSON property `newlyUnlocked` + # @return [Boolean] + attr_accessor :newly_unlocked + alias_method :newly_unlocked?, :newly_unlocked + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @current_steps = args[:current_steps] if args.key?(:current_steps) + @kind = args[:kind] if args.key?(:kind) + @newly_unlocked = args[:newly_unlocked] if args.key?(:newly_unlocked) + end + end + + # An achievement unlock response class AchievementUnlockResponse include Google::Apis::Core::Hashable # Uniquely identifies the type of this resource. Value is always the fixed - # string games#achievementUnlockResponse. + # string `games#achievementUnlockResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -283,12 +273,12 @@ module Google end end - # This is a JSON template for a list of achievement update requests. + # A list of achievement update requests. class AchievementUpdateMultipleRequest include Google::Apis::Core::Hashable # Uniquely identifies the type of this resource. Value is always the fixed - # string games#achievementUpdateMultipleRequest. + # string `games#achievementUpdateMultipleRequest`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -309,12 +299,12 @@ module Google end end - # This is a JSON template for an achievement unlock response. + # class AchievementUpdateMultipleResponse include Google::Apis::Core::Hashable # Uniquely identifies the type of this resource. Value is always the fixed - # string games#achievementUpdateMultipleResponse. + # string `games#achievementUpdateMultipleResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -335,7 +325,7 @@ module Google end end - # This is a JSON template for a request to update an achievement. + # A request to update an achievement. class UpdateAchievementRequest include Google::Apis::Core::Hashable @@ -344,29 +334,25 @@ module Google # @return [String] attr_accessor :achievement_id - # This is a JSON template for the payload to request to increment an achievement. + # The payload to request to increment an + # achievement. # Corresponds to the JSON property `incrementPayload` # @return [Google::Apis::GamesV1::GamesAchievementIncrement] attr_accessor :increment_payload # Uniquely identifies the type of this resource. Value is always the fixed - # string games#achievementUpdateRequest. + # string `games#achievementUpdateRequest`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # This is a JSON template for the payload to request to increment an achievement. + # The payload to request to increment an + # achievement. # Corresponds to the JSON property `setStepsAtLeastPayload` # @return [Google::Apis::GamesV1::GamesAchievementSetStepsAtLeast] attr_accessor :set_steps_at_least_payload # The type of update being applied. - # Possible values are: - # - "REVEAL" - Achievement is revealed. - # - "UNLOCK" - Achievement is unlocked. - # - "INCREMENT" - Achievement is incremented. - # - "SET_STEPS_AT_LEAST" - Achievement progress is set to at least the passed - # value. # Corresponds to the JSON property `updateType` # @return [String] attr_accessor :update_type @@ -385,7 +371,7 @@ module Google end end - # This is a JSON template for an achievement update response. + # An updated achievement. class UpdateAchievementResponse include Google::Apis::Core::Hashable @@ -395,10 +381,6 @@ module Google attr_accessor :achievement_id # The current state of the achievement. - # Possible values are: - # - "HIDDEN" - Achievement is hidden. - # - "REVEALED" - Achievement is revealed. - # - "UNLOCKED" - Achievement is unlocked. # Corresponds to the JSON property `currentState` # @return [String] attr_accessor :current_state @@ -409,7 +391,7 @@ module Google attr_accessor :current_steps # Uniquely identifies the type of this resource. Value is always the fixed - # string games#achievementUpdateResponse. + # string `games#achievementUpdateResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -442,83 +424,7 @@ module Google end end - # This is a JSON template for aggregate stats. - class AggregateStats - include Google::Apis::Core::Hashable - - # The number of messages sent between a pair of peers. - # Corresponds to the JSON property `count` - # @return [Fixnum] - attr_accessor :count - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#aggregateStats. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The maximum amount. - # Corresponds to the JSON property `max` - # @return [Fixnum] - attr_accessor :max - - # The minimum amount. - # Corresponds to the JSON property `min` - # @return [Fixnum] - attr_accessor :min - - # The total number of bytes sent for messages between a pair of peers. - # Corresponds to the JSON property `sum` - # @return [Fixnum] - attr_accessor :sum - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @count = args[:count] if args.key?(:count) - @kind = args[:kind] if args.key?(:kind) - @max = args[:max] if args.key?(:max) - @min = args[:min] if args.key?(:min) - @sum = args[:sum] if args.key?(:sum) - end - end - - # This is a JSON template for an anonymous player - class AnonymousPlayer - include Google::Apis::Core::Hashable - - # The base URL for the image to display for the anonymous player. - # Corresponds to the JSON property `avatarImageUrl` - # @return [String] - attr_accessor :avatar_image_url - - # The name to display for the anonymous player. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#anonymousPlayer. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @avatar_image_url = args[:avatar_image_url] if args.key?(:avatar_image_url) - @display_name = args[:display_name] if args.key?(:display_name) - @kind = args[:kind] if args.key?(:kind) - end - end - - # This is a JSON template for the Application resource. + # The Application resource. class Application include Google::Apis::Core::Hashable @@ -537,7 +443,7 @@ module Google # @return [String] attr_accessor :author - # This is a JSON template for an application category object. + # An application category object. # Corresponds to the JSON property `category` # @return [Google::Apis::GamesV1::ApplicationCategory] attr_accessor :category @@ -548,8 +454,6 @@ module Google attr_accessor :description # A list of features that have been enabled for the application. - # Possible values are: - # - "SNAPSHOTS" - Snapshots has been enabled # Corresponds to the JSON property `enabledFeatures` # @return [Array] attr_accessor :enabled_features @@ -565,7 +469,7 @@ module Google attr_accessor :instances # Uniquely identifies the type of this resource. Value is always the fixed - # string games#application. + # string `games#application`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -613,12 +517,12 @@ module Google end end - # This is a JSON template for an application category object. + # An application category object. class ApplicationCategory include Google::Apis::Core::Hashable # Uniquely identifies the type of this resource. Value is always the fixed - # string games#applicationCategory. + # string `games#applicationCategory`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -645,8 +549,7 @@ module Google end end - # This is a JSON template for a third party application verification response - # resource. + # A third party application verification response resource. class ApplicationVerifyResponse include Google::Apis::Core::Hashable @@ -657,7 +560,7 @@ module Google attr_accessor :alternate_player_id # Uniquely identifies the type of this resource. Value is always the fixed - # string games#applicationVerifyResponse. + # string `games#applicationVerifyResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -679,7 +582,7 @@ module Google end end - # This is a JSON template for data related to individual game categories. + # Data related to individual game categories. class Category include Google::Apis::Core::Hashable @@ -694,7 +597,7 @@ module Google attr_accessor :experience_points # Uniquely identifies the type of this resource. Value is always the fixed - # string games#category. + # string `games#category`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -711,7 +614,7 @@ module Google end end - # This is a JSON template for a list of category data objects. + # A third party list metagame categories response. class ListCategoryResponse include Google::Apis::Core::Hashable @@ -721,7 +624,7 @@ module Google attr_accessor :items # Uniquely identifies the type of this resource. Value is always the fixed - # string games#categoryListResponse. + # string `games#categoryListResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -743,33 +646,22 @@ module Google end end - # This is a JSON template for a batch update failure resource. + # A batch update failure resource. class EventBatchRecordFailure include Google::Apis::Core::Hashable # The cause for the update failure. - # Possible values are: - # - "TOO_LARGE": A batch request was issued with more events than are allowed in - # a single batch. - # - "TIME_PERIOD_EXPIRED": A batch was sent with data too far in the past to - # record. - # - "TIME_PERIOD_SHORT": A batch was sent with a time range that was too short. - # - "TIME_PERIOD_LONG": A batch was sent with a time range that was too long. - # - "ALREADY_UPDATED": An attempt was made to record a batch of data which was - # already seen. - # - "RECORD_RATE_HIGH": An attempt was made to record data faster than the - # server will apply updates. # Corresponds to the JSON property `failureCause` # @return [String] attr_accessor :failure_cause # Uniquely identifies the type of this resource. Value is always the fixed - # string games#eventBatchRecordFailure. + # string `games#eventBatchRecordFailure`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # This is a JSON template for an event period time range. + # An event period time range. # Corresponds to the JSON property `range` # @return [Google::Apis::GamesV1::EventPeriodRange] attr_accessor :range @@ -786,7 +678,7 @@ module Google end end - # This is a JSON template for an event child relationship resource. + # An event child relationship resource. class EventChild include Google::Apis::Core::Hashable @@ -796,7 +688,7 @@ module Google attr_accessor :child_id # Uniquely identifies the type of this resource. Value is always the fixed - # string games#eventChild. + # string `games#eventChild`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -812,7 +704,7 @@ module Google end end - # This is a JSON template for an event definition resource. + # An event definition resource. class EventDefinition include Google::Apis::Core::Hashable @@ -841,24 +733,20 @@ module Google # @return [String] attr_accessor :image_url - # Indicates whether the icon image being returned is a default image, or is game- - # provided. + # Indicates whether the icon image being returned is a default image, or is + # game-provided. # Corresponds to the JSON property `isDefaultImageUrl` # @return [Boolean] attr_accessor :is_default_image_url alias_method :is_default_image_url?, :is_default_image_url # Uniquely identifies the type of this resource. Value is always the fixed - # string games#eventDefinition. + # string `games#eventDefinition`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # The visibility of event being tracked in this definition. - # Possible values are: - # - "REVEALED": This event should be visible to all users. - # - "HIDDEN": This event should only be shown to users that have recorded this - # event at least once. # Corresponds to the JSON property `visibility` # @return [String] attr_accessor :visibility @@ -880,7 +768,7 @@ module Google end end - # This is a JSON template for a ListDefinitions response. + # A ListDefinitions response. class ListEventDefinitionResponse include Google::Apis::Core::Hashable @@ -890,7 +778,7 @@ module Google attr_accessor :items # Uniquely identifies the type of this resource. Value is always the fixed - # string games#eventDefinitionListResponse. + # string `games#eventDefinitionListResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -912,23 +800,24 @@ module Google end end - # This is a JSON template for an event period time range. + # An event period time range. class EventPeriodRange include Google::Apis::Core::Hashable # Uniquely identifies the type of this resource. Value is always the fixed - # string games#eventPeriodRange. + # string `games#eventPeriodRange`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # The time when this update period ends, in millis, since 1970 UTC (Unix Epoch). + # The time when this update period ends, in millis, since 1970 UTC (Unix + # Epoch). # Corresponds to the JSON property `periodEndMillis` # @return [Fixnum] attr_accessor :period_end_millis - # The time when this update period begins, in millis, since 1970 UTC (Unix Epoch) - # . + # The time when this update period begins, in millis, since 1970 UTC (Unix + # Epoch). # Corresponds to the JSON property `periodStartMillis` # @return [Fixnum] attr_accessor :period_start_millis @@ -945,17 +834,17 @@ module Google end end - # This is a JSON template for an event period update resource. + # An event period update resource. class EventPeriodUpdate include Google::Apis::Core::Hashable # Uniquely identifies the type of this resource. Value is always the fixed - # string games#eventPeriodUpdate. + # string `games#eventPeriodUpdate`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # This is a JSON template for an event period time range. + # An event period time range. # Corresponds to the JSON property `timePeriod` # @return [Google::Apis::GamesV1::EventPeriodRange] attr_accessor :time_period @@ -977,7 +866,7 @@ module Google end end - # This is a JSON template for an event update failure resource. + # An event update failure resource. class EventRecordFailure include Google::Apis::Core::Hashable @@ -987,16 +876,12 @@ module Google attr_accessor :event_id # The cause for the update failure. - # Possible values are: - # - "NOT_FOUND" - An attempt was made to set an event that was not defined. - # - "INVALID_UPDATE_VALUE" - An attempt was made to increment an event by a non- - # positive value. # Corresponds to the JSON property `failureCause` # @return [String] attr_accessor :failure_cause # Uniquely identifies the type of this resource. Value is always the fixed - # string games#eventRecordFailure. + # string `games#eventRecordFailure`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -1013,18 +898,18 @@ module Google end end - # This is a JSON template for an event period update resource. + # An event period update resource. class EventRecordRequest include Google::Apis::Core::Hashable - # The current time when this update was sent, in milliseconds, since 1970 UTC ( - # Unix Epoch). + # The current time when this update was sent, in milliseconds, since 1970 UTC + # (Unix Epoch). # Corresponds to the JSON property `currentTimeMillis` # @return [Fixnum] attr_accessor :current_time_millis # Uniquely identifies the type of this resource. Value is always the fixed - # string games#eventRecordRequest. + # string `games#eventRecordRequest`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -1052,7 +937,7 @@ module Google end end - # This is a JSON template for an event period update resource. + # An event period update resource. class UpdateEventRequest include Google::Apis::Core::Hashable @@ -1062,7 +947,7 @@ module Google attr_accessor :definition_id # Uniquely identifies the type of this resource. Value is always the fixed - # string games#eventUpdateRequest. + # string `games#eventUpdateRequest`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -1084,7 +969,7 @@ module Google end end - # This is a JSON template for an event period update resource. + # An event period update resource. class UpdateEventResponse include Google::Apis::Core::Hashable @@ -1099,7 +984,7 @@ module Google attr_accessor :event_failures # Uniquely identifies the type of this resource. Value is always the fixed - # string games#eventUpdateResponse. + # string `games#eventUpdateResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -1122,12 +1007,13 @@ module Google end end - # This is a JSON template for the payload to request to increment an achievement. + # The payload to request to increment an + # achievement. class GamesAchievementIncrement include Google::Apis::Core::Hashable # Uniquely identifies the type of this resource. Value is always the fixed - # string games#GamesAchievementIncrement. + # string `games#GamesAchievementIncrement`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -1154,12 +1040,13 @@ module Google end end - # This is a JSON template for the payload to request to increment an achievement. + # The payload to request to increment an + # achievement. class GamesAchievementSetStepsAtLeast include Google::Apis::Core::Hashable # Uniquely identifies the type of this resource. Value is always the fixed - # string games#GamesAchievementSetStepsAtLeast. + # string `games#GamesAchievementSetStepsAtLeast`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -1180,7 +1067,7 @@ module Google end end - # This is a JSON template for an image asset object. + # An image asset object. class ImageAsset include Google::Apis::Core::Hashable @@ -1190,7 +1077,7 @@ module Google attr_accessor :height # Uniquely identifies the type of this resource. Value is always the fixed - # string games#imageAsset. + # string `games#imageAsset`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -1224,7 +1111,7 @@ module Google end end - # This is a JSON template for the Instance resource. + # The Instance resource. class Instance include Google::Apis::Core::Hashable @@ -1233,18 +1120,18 @@ module Google # @return [String] attr_accessor :acquisition_uri - # This is a JSON template for the Android instance details resource. + # The Android instance details resource. # Corresponds to the JSON property `androidInstance` # @return [Google::Apis::GamesV1::InstanceAndroidDetails] attr_accessor :android_instance - # This is a JSON template for the iOS details resource. + # The iOS details resource. # Corresponds to the JSON property `iosInstance` # @return [Google::Apis::GamesV1::InstanceIosDetails] attr_accessor :ios_instance # Uniquely identifies the type of this resource. Value is always the fixed - # string games#instance. + # string `games#instance`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -1255,10 +1142,6 @@ module Google attr_accessor :name # The platform type. - # Possible values are: - # - "ANDROID" - Instance is for Android. - # - "IOS" - Instance is for iOS - # - "WEB_APP" - Instance is for Web App. # Corresponds to the JSON property `platformType` # @return [String] attr_accessor :platform_type @@ -1275,7 +1158,7 @@ module Google attr_accessor :turn_based_play alias_method :turn_based_play?, :turn_based_play - # This is a JSON template for the Web details resource. + # The Web details resource. # Corresponds to the JSON property `webInstance` # @return [Google::Apis::GamesV1::InstanceWebDetails] attr_accessor :web_instance @@ -1298,7 +1181,7 @@ module Google end end - # This is a JSON template for the Android instance details resource. + # The Android instance details resource. class InstanceAndroidDetails include Google::Apis::Core::Hashable @@ -1309,7 +1192,7 @@ module Google alias_method :enable_piracy_check?, :enable_piracy_check # Uniquely identifies the type of this resource. Value is always the fixed - # string games#instanceAndroidDetails. + # string `games#instanceAndroidDetails`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -1338,7 +1221,7 @@ module Google end end - # This is a JSON template for the iOS details resource. + # The iOS details resource. class InstanceIosDetails include Google::Apis::Core::Hashable @@ -1353,7 +1236,7 @@ module Google attr_accessor :itunes_app_id # Uniquely identifies the type of this resource. Value is always the fixed - # string games#instanceIosDetails. + # string `games#instanceIosDetails`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -1400,12 +1283,12 @@ module Google end end - # This is a JSON template for the Web details resource. + # The Web details resource. class InstanceWebDetails include Google::Apis::Core::Hashable # Uniquely identifies the type of this resource. Value is always the fixed - # string games#instanceWebDetails. + # string `games#instanceWebDetails`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -1433,7 +1316,7 @@ module Google end end - # This is a JSON template for the Leaderboard resource. + # The Leaderboard resource. class Leaderboard include Google::Apis::Core::Hashable @@ -1447,15 +1330,15 @@ module Google # @return [String] attr_accessor :id - # Indicates whether the icon image being returned is a default image, or is game- - # provided. + # Indicates whether the icon image being returned is a default image, or is + # game-provided. # Corresponds to the JSON property `isIconUrlDefault` # @return [Boolean] attr_accessor :is_icon_url_default alias_method :is_icon_url_default?, :is_icon_url_default # Uniquely identifies the type of this resource. Value is always the fixed - # string games#leaderboard. + # string `games#leaderboard`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -1466,11 +1349,6 @@ module Google attr_accessor :name # How scores are ordered. - # Possible values are: - # - "LARGER_IS_BETTER" - Larger values are better; scores are sorted in - # descending order. - # - "SMALLER_IS_BETTER" - Smaller values are better; scores are sorted in - # ascending order. # Corresponds to the JSON property `order` # @return [String] attr_accessor :order @@ -1490,7 +1368,7 @@ module Google end end - # This is a JSON template for the Leaderboard Entry resource. + # The Leaderboard Entry resource. class LeaderboardEntry include Google::Apis::Core::Hashable @@ -1505,12 +1383,12 @@ module Google attr_accessor :formatted_score_rank # Uniquely identifies the type of this resource. Value is always the fixed - # string games#leaderboardEntry. + # string `games#leaderboardEntry`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # This is a JSON template for a Player resource. + # A Player resource. # Corresponds to the JSON property `player` # @return [Google::Apis::GamesV1::Player] attr_accessor :player @@ -1520,8 +1398,8 @@ module Google # @return [Fixnum] attr_accessor :score_rank - # Additional information about the score. Values must contain no more than 64 - # URI-safe characters as defined by section 2.3 of RFC 3986. + # Additional information about the score. Values must contain no more than + # 64 URI-safe characters as defined by section 2.3 of RFC 3986. # Corresponds to the JSON property `scoreTag` # @return [String] attr_accessor :score_tag @@ -1532,10 +1410,6 @@ module Google attr_accessor :score_value # The time span of this high score. - # Possible values are: - # - "ALL_TIME" - The score is an all-time high score. - # - "WEEKLY" - The score is a weekly high score. - # - "DAILY" - The score is a daily high score. # Corresponds to the JSON property `timeSpan` # @return [String] attr_accessor :time_span @@ -1564,7 +1438,7 @@ module Google end end - # This is a JSON template for a list of leaderboard objects. + # A list of leaderboard objects. class ListLeaderboardResponse include Google::Apis::Core::Hashable @@ -1574,7 +1448,7 @@ module Google attr_accessor :items # Uniquely identifies the type of this resource. Value is always the fixed - # string games#leaderboardListResponse. + # string `games#leaderboardListResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -1596,7 +1470,7 @@ module Google end end - # This is a JSON template for a score rank in a leaderboard. + # A score rank in a leaderboard. class LeaderboardScoreRank include Google::Apis::Core::Hashable @@ -1611,7 +1485,7 @@ module Google attr_accessor :formatted_rank # Uniquely identifies the type of this resource. Value is always the fixed - # string games#leaderboardScoreRank. + # string `games#leaderboardScoreRank`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -1640,7 +1514,7 @@ module Google end end - # This is a JSON template for a ListScores response. + # A ListScores response. class LeaderboardScores include Google::Apis::Core::Hashable @@ -1650,7 +1524,7 @@ module Google attr_accessor :items # Uniquely identifies the type of this resource. Value is always the fixed - # string games#leaderboardScores. + # string `games#leaderboardScores`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -1665,7 +1539,7 @@ module Google # @return [Fixnum] attr_accessor :num_scores - # This is a JSON template for the Leaderboard Entry resource. + # The Leaderboard Entry resource. # Corresponds to the JSON property `playerScore` # @return [Google::Apis::GamesV1::LeaderboardEntry] attr_accessor :player_score @@ -1690,18 +1564,18 @@ module Google end end - # This is a JSON template for the metagame config resource + # The metagame config resource class MetagameConfig include Google::Apis::Core::Hashable - # Current version of the metagame configuration data. When this data is updated, - # the version number will be increased by one. + # Current version of the metagame configuration data. When this data is + # updated, the version number will be increased by one. # Corresponds to the JSON property `currentVersion` # @return [Fixnum] attr_accessor :current_version # Uniquely identifies the type of this resource. Value is always the fixed - # string games#metagameConfig. + # string `games#metagameConfig`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -1723,262 +1597,7 @@ module Google end end - # This is a JSON template for network diagnostics reported for a client. - class NetworkDiagnostics - include Google::Apis::Core::Hashable - - # The Android network subtype. - # Corresponds to the JSON property `androidNetworkSubtype` - # @return [Fixnum] - attr_accessor :android_network_subtype - - # The Android network type. - # Corresponds to the JSON property `androidNetworkType` - # @return [Fixnum] - attr_accessor :android_network_type - - # iOS network type as defined in Reachability.h. - # Corresponds to the JSON property `iosNetworkType` - # @return [Fixnum] - attr_accessor :ios_network_type - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#networkDiagnostics. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The MCC+MNC code for the client's network connection. On Android: http:// - # developer.android.com/reference/android/telephony/TelephonyManager.html# - # getNetworkOperator() On iOS, see: https://developer.apple.com/library/ios/ - # documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html - # Corresponds to the JSON property `networkOperatorCode` - # @return [String] - attr_accessor :network_operator_code - - # The name of the carrier of the client's network connection. On Android: http:// - # developer.android.com/reference/android/telephony/TelephonyManager.html# - # getNetworkOperatorName() On iOS: https://developer.apple.com/library/ios/ - # documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html#/ - # /apple_ref/occ/instp/CTCarrier/carrierName - # Corresponds to the JSON property `networkOperatorName` - # @return [String] - attr_accessor :network_operator_name - - # The amount of time in milliseconds it took for the client to establish a - # connection with the XMPP server. - # Corresponds to the JSON property `registrationLatencyMillis` - # @return [Fixnum] - attr_accessor :registration_latency_millis - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @android_network_subtype = args[:android_network_subtype] if args.key?(:android_network_subtype) - @android_network_type = args[:android_network_type] if args.key?(:android_network_type) - @ios_network_type = args[:ios_network_type] if args.key?(:ios_network_type) - @kind = args[:kind] if args.key?(:kind) - @network_operator_code = args[:network_operator_code] if args.key?(:network_operator_code) - @network_operator_name = args[:network_operator_name] if args.key?(:network_operator_name) - @registration_latency_millis = args[:registration_latency_millis] if args.key?(:registration_latency_millis) - end - end - - # This is a JSON template for a result for a match participant. - class ParticipantResult - include Google::Apis::Core::Hashable - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#participantResult. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The ID of the participant. - # Corresponds to the JSON property `participantId` - # @return [String] - attr_accessor :participant_id - - # The placement or ranking of the participant in the match results; a number - # from one to the number of participants in the match. Multiple participants may - # have the same placing value in case of a type. - # Corresponds to the JSON property `placing` - # @return [Fixnum] - attr_accessor :placing - - # The result of the participant for this match. - # Possible values are: - # - "MATCH_RESULT_WIN" - The participant won the match. - # - "MATCH_RESULT_LOSS" - The participant lost the match. - # - "MATCH_RESULT_TIE" - The participant tied the match. - # - "MATCH_RESULT_NONE" - There was no winner for the match (nobody wins or - # loses this kind of game.) - # - "MATCH_RESULT_DISCONNECT" - The participant disconnected / left during the - # match. - # - "MATCH_RESULT_DISAGREED" - Different clients reported different results for - # this participant. - # Corresponds to the JSON property `result` - # @return [String] - attr_accessor :result - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @participant_id = args[:participant_id] if args.key?(:participant_id) - @placing = args[:placing] if args.key?(:placing) - @result = args[:result] if args.key?(:result) - end - end - - # This is a JSON template for peer channel diagnostics. - class PeerChannelDiagnostics - include Google::Apis::Core::Hashable - - # This is a JSON template for aggregate stats. - # Corresponds to the JSON property `bytesReceived` - # @return [Google::Apis::GamesV1::AggregateStats] - attr_accessor :bytes_received - - # This is a JSON template for aggregate stats. - # Corresponds to the JSON property `bytesSent` - # @return [Google::Apis::GamesV1::AggregateStats] - attr_accessor :bytes_sent - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#peerChannelDiagnostics. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Number of messages lost. - # Corresponds to the JSON property `numMessagesLost` - # @return [Fixnum] - attr_accessor :num_messages_lost - - # Number of messages received. - # Corresponds to the JSON property `numMessagesReceived` - # @return [Fixnum] - attr_accessor :num_messages_received - - # Number of messages sent. - # Corresponds to the JSON property `numMessagesSent` - # @return [Fixnum] - attr_accessor :num_messages_sent - - # Number of send failures. - # Corresponds to the JSON property `numSendFailures` - # @return [Fixnum] - attr_accessor :num_send_failures - - # This is a JSON template for aggregate stats. - # Corresponds to the JSON property `roundtripLatencyMillis` - # @return [Google::Apis::GamesV1::AggregateStats] - attr_accessor :roundtrip_latency_millis - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bytes_received = args[:bytes_received] if args.key?(:bytes_received) - @bytes_sent = args[:bytes_sent] if args.key?(:bytes_sent) - @kind = args[:kind] if args.key?(:kind) - @num_messages_lost = args[:num_messages_lost] if args.key?(:num_messages_lost) - @num_messages_received = args[:num_messages_received] if args.key?(:num_messages_received) - @num_messages_sent = args[:num_messages_sent] if args.key?(:num_messages_sent) - @num_send_failures = args[:num_send_failures] if args.key?(:num_send_failures) - @roundtrip_latency_millis = args[:roundtrip_latency_millis] if args.key?(:roundtrip_latency_millis) - end - end - - # This is a JSON template for peer session diagnostics. - class PeerSessionDiagnostics - include Google::Apis::Core::Hashable - - # Connected time in milliseconds. - # Corresponds to the JSON property `connectedTimestampMillis` - # @return [Fixnum] - attr_accessor :connected_timestamp_millis - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#peerSessionDiagnostics. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The participant ID of the peer. - # Corresponds to the JSON property `participantId` - # @return [String] - attr_accessor :participant_id - - # This is a JSON template for peer channel diagnostics. - # Corresponds to the JSON property `reliableChannel` - # @return [Google::Apis::GamesV1::PeerChannelDiagnostics] - attr_accessor :reliable_channel - - # This is a JSON template for peer channel diagnostics. - # Corresponds to the JSON property `unreliableChannel` - # @return [Google::Apis::GamesV1::PeerChannelDiagnostics] - attr_accessor :unreliable_channel - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @connected_timestamp_millis = args[:connected_timestamp_millis] if args.key?(:connected_timestamp_millis) - @kind = args[:kind] if args.key?(:kind) - @participant_id = args[:participant_id] if args.key?(:participant_id) - @reliable_channel = args[:reliable_channel] if args.key?(:reliable_channel) - @unreliable_channel = args[:unreliable_channel] if args.key?(:unreliable_channel) - end - end - - # This is a JSON template for metadata about a player playing a game with the - # currently authenticated user. - class Played - include Google::Apis::Core::Hashable - - # True if the player was auto-matched with the currently authenticated user. - # Corresponds to the JSON property `autoMatched` - # @return [Boolean] - attr_accessor :auto_matched - alias_method :auto_matched?, :auto_matched - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#played. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The last time the player played the game in milliseconds since the epoch in - # UTC. - # Corresponds to the JSON property `timeMillis` - # @return [Fixnum] - attr_accessor :time_millis - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @auto_matched = args[:auto_matched] if args.key?(:auto_matched) - @kind = args[:kind] if args.key?(:kind) - @time_millis = args[:time_millis] if args.key?(:time_millis) - end - end - - # This is a JSON template for a Player resource. + # A Player resource. class Player include Google::Apis::Core::Hashable @@ -2002,7 +1621,7 @@ module Google # @return [String] attr_accessor :display_name - # This is a JSON template for 1P/3P metadata about the player's experience. + # 1P/3P metadata about the player's experience. # Corresponds to the JSON property `experienceInfo` # @return [Google::Apis::GamesV1::PlayerExperienceInfo] attr_accessor :experience_info @@ -2014,27 +1633,20 @@ module Google attr_accessor :friend_status # Uniquely identifies the type of this resource. Value is always the fixed - # string games#player. + # string `games#player` # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # This is a JSON template for metadata about a player playing a game with the - # currently authenticated user. - # Corresponds to the JSON property `lastPlayedWith` - # @return [Google::Apis::GamesV1::Played] - attr_accessor :last_played_with - - # An object representation of the individual components of the player's name. - # For some players, these fields may not be present. + # A representation of the individual components of the name. # Corresponds to the JSON property `name` # @return [Google::Apis::GamesV1::Player::Name] attr_accessor :name # The player ID that was used for this player the first time they signed into - # the game in question. This is only populated for calls to player.get for the - # requesting player, only if the player ID has subsequently changed, and only to - # clients that support remapping player IDs. + # the game in question. This is only populated for calls to player.get for + # the requesting player, only if the player ID has subsequently changed, and + # only to clients that support remapping player IDs. # Corresponds to the JSON property `originalPlayerId` # @return [String] attr_accessor :original_player_id @@ -2044,7 +1656,7 @@ module Google # @return [String] attr_accessor :player_id - # This is a JSON template for profile settings + # Profile settings # Corresponds to the JSON property `profileSettings` # @return [Google::Apis::GamesV1::ProfileSettings] attr_accessor :profile_settings @@ -2067,7 +1679,6 @@ module Google @experience_info = args[:experience_info] if args.key?(:experience_info) @friend_status = args[:friend_status] if args.key?(:friend_status) @kind = args[:kind] if args.key?(:kind) - @last_played_with = args[:last_played_with] if args.key?(:last_played_with) @name = args[:name] if args.key?(:name) @original_player_id = args[:original_player_id] if args.key?(:original_player_id) @player_id = args[:player_id] if args.key?(:player_id) @@ -2075,17 +1686,18 @@ module Google @title = args[:title] if args.key?(:title) end - # An object representation of the individual components of the player's name. - # For some players, these fields may not be present. + # A representation of the individual components of the name. class Name include Google::Apis::Core::Hashable - # The family name of this player. In some places, this is known as the last name. + # The family name of this player. In some places, this is known as the last + # name. # Corresponds to the JSON property `familyName` # @return [String] attr_accessor :family_name - # The given name of this player. In some places, this is known as the first name. + # The given name of this player. In some places, this is known as the first + # name. # Corresponds to the JSON property `givenName` # @return [String] attr_accessor :given_name @@ -2102,15 +1714,11 @@ module Google end end - # This is a JSON template for an achievement object. + # An achievement object. class PlayerAchievement include Google::Apis::Core::Hashable # The state of the achievement. - # Possible values are: - # - "HIDDEN" - Achievement is hidden. - # - "REVEALED" - Achievement is revealed. - # - "UNLOCKED" - Achievement is unlocked. # Corresponds to the JSON property `achievementState` # @return [String] attr_accessor :achievement_state @@ -2121,8 +1729,8 @@ module Google attr_accessor :current_steps # Experience points earned for the achievement. This field is absent for - # achievements that have not yet been unlocked and 0 for achievements that have - # been unlocked by testers but that are unpublished. + # achievements that have not yet been unlocked and 0 for achievements that + # have been unlocked by testers but that are unpublished. # Corresponds to the JSON property `experiencePoints` # @return [Fixnum] attr_accessor :experience_points @@ -2138,7 +1746,7 @@ module Google attr_accessor :id # Uniquely identifies the type of this resource. Value is always the fixed - # string games#playerAchievement. + # string `games#playerAchievement`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -2164,7 +1772,7 @@ module Google end end - # This is a JSON template for a list of achievement objects. + # A list of achievement objects. class ListPlayerAchievementResponse include Google::Apis::Core::Hashable @@ -2174,7 +1782,7 @@ module Google attr_accessor :items # Uniquely identifies the type of this resource. Value is always the fixed - # string games#playerAchievementListResponse. + # string `games#playerAchievementListResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -2196,7 +1804,7 @@ module Google end end - # This is a JSON template for an event status resource. + # An event status resource. class PlayerEvent include Google::Apis::Core::Hashable @@ -2213,7 +1821,7 @@ module Google attr_accessor :formatted_num_events # Uniquely identifies the type of this resource. Value is always the fixed - # string games#playerEvent. + # string `games#playerEvent`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -2242,7 +1850,7 @@ module Google end end - # This is a JSON template for a ListByPlayer response. + # A ListByPlayer response. class ListPlayerEventResponse include Google::Apis::Core::Hashable @@ -2252,7 +1860,7 @@ module Google attr_accessor :items # Uniquely identifies the type of this resource. Value is always the fixed - # string games#playerEventListResponse. + # string `games#playerEventListResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -2274,7 +1882,7 @@ module Google end end - # This is a JSON template for 1P/3P metadata about the player's experience. + # 1P/3P metadata about the player's experience. class PlayerExperienceInfo include Google::Apis::Core::Hashable @@ -2283,23 +1891,24 @@ module Google # @return [Fixnum] attr_accessor :current_experience_points - # This is a JSON template for 1P/3P metadata about a user's level. + # 1P/3P metadata about a user's level. # Corresponds to the JSON property `currentLevel` # @return [Google::Apis::GamesV1::PlayerLevel] attr_accessor :current_level # Uniquely identifies the type of this resource. Value is always the fixed - # string games#playerExperienceInfo. + # string `games#playerExperienceInfo`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # The timestamp when the player was leveled up, in millis since Unix epoch UTC. + # The timestamp when the player was leveled up, in millis since Unix epoch + # UTC. # Corresponds to the JSON property `lastLevelUpTimestampMillis` # @return [Fixnum] attr_accessor :last_level_up_timestamp_millis - # This is a JSON template for 1P/3P metadata about a user's level. + # 1P/3P metadata about a user's level. # Corresponds to the JSON property `nextLevel` # @return [Google::Apis::GamesV1::PlayerLevel] attr_accessor :next_level @@ -2318,12 +1927,12 @@ module Google end end - # This is a JSON template for a player leaderboard score object. + # A player leaderboard score object. class PlayerLeaderboardScore include Google::Apis::Core::Hashable # Uniquely identifies the type of this resource. Value is always the fixed - # string games#playerLeaderboardScore. + # string `games#playerLeaderboardScore`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -2333,7 +1942,7 @@ module Google # @return [String] attr_accessor :leaderboard_id - # This is a JSON template for a score rank in a leaderboard. + # A score rank in a leaderboard. # Corresponds to the JSON property `publicRank` # @return [Google::Apis::GamesV1::LeaderboardScoreRank] attr_accessor :public_rank @@ -2343,8 +1952,8 @@ module Google # @return [String] attr_accessor :score_string - # Additional information about the score. Values must contain no more than 64 - # URI-safe characters as defined by section 2.3 of RFC 3986. + # Additional information about the score. Values must contain no more than + # 64 URI-safe characters as defined by section 2.3 of RFC 3986. # Corresponds to the JSON property `scoreTag` # @return [String] attr_accessor :score_tag @@ -2354,16 +1963,12 @@ module Google # @return [Fixnum] attr_accessor :score_value - # This is a JSON template for a score rank in a leaderboard. + # A score rank in a leaderboard. # Corresponds to the JSON property `socialRank` # @return [Google::Apis::GamesV1::LeaderboardScoreRank] attr_accessor :social_rank # The time span of this score. - # Possible values are: - # - "ALL_TIME" - The score is an all-time score. - # - "WEEKLY" - The score is a weekly score. - # - "DAILY" - The score is a daily score. # Corresponds to the JSON property `timeSpan` # @return [String] attr_accessor :time_span @@ -2392,7 +1997,7 @@ module Google end end - # This is a JSON template for a list of player leaderboard scores. + # A list of player leaderboard scores. class ListPlayerLeaderboardScoreResponse include Google::Apis::Core::Hashable @@ -2402,7 +2007,7 @@ module Google attr_accessor :items # Uniquely identifies the type of this resource. Value is always the fixed - # string games#playerLeaderboardScoreListResponse. + # string `games#playerLeaderboardScoreListResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -2412,7 +2017,7 @@ module Google # @return [String] attr_accessor :next_page_token - # This is a JSON template for a Player resource. + # A Player resource. # Corresponds to the JSON property `player` # @return [Google::Apis::GamesV1::Player] attr_accessor :player @@ -2430,12 +2035,12 @@ module Google end end - # This is a JSON template for 1P/3P metadata about a user's level. + # 1P/3P metadata about a user's level. class PlayerLevel include Google::Apis::Core::Hashable # Uniquely identifies the type of this resource. Value is always the fixed - # string games#playerLevel. + # string `games#playerLevel`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -2468,7 +2073,7 @@ module Google end end - # This is a JSON template for a third party player list response. + # A third party player list response. class ListPlayerResponse include Google::Apis::Core::Hashable @@ -2478,7 +2083,7 @@ module Google attr_accessor :items # Uniquely identifies the type of this resource. Value is always the fixed - # string games#playerListResponse. + # string `games#playerListResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -2500,7 +2105,7 @@ module Google end end - # This is a JSON template for a player score. + # A player score. class PlayerScore include Google::Apis::Core::Hashable @@ -2510,7 +2115,7 @@ module Google attr_accessor :formatted_score # Uniquely identifies the type of this resource. Value is always the fixed - # string games#playerScore. + # string `games#playerScore`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -2520,17 +2125,13 @@ module Google # @return [Fixnum] attr_accessor :score - # Additional information about this score. Values will contain no more than 64 - # URI-safe characters as defined by section 2.3 of RFC 3986. + # Additional information about this score. Values will contain no more than + # 64 URI-safe characters as defined by section 2.3 of RFC 3986. # Corresponds to the JSON property `scoreTag` # @return [String] attr_accessor :score_tag # The time span for this player score. - # Possible values are: - # - "ALL_TIME" - The score is an all-time score. - # - "WEEKLY" - The score is a weekly score. - # - "DAILY" - The score is a daily score. # Corresponds to the JSON property `timeSpan` # @return [String] attr_accessor :time_span @@ -2549,12 +2150,12 @@ module Google end end - # This is a JSON template for a list of score submission statuses. + # A list of score submission statuses. class ListPlayerScoreResponse include Google::Apis::Core::Hashable # Uniquely identifies the type of this resource. Value is always the fixed - # string games#playerScoreListResponse. + # string `games#playerScoreListResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -2575,16 +2176,12 @@ module Google end end - # This is a JSON template for a list of leaderboard entry resources. + # A list of leaderboard entry resources. class PlayerScoreResponse include Google::Apis::Core::Hashable - # The time spans where the submitted score is better than the existing score for - # that time span. - # Possible values are: - # - "ALL_TIME" - The score is an all-time score. - # - "WEEKLY" - The score is a weekly score. - # - "DAILY" - The score is a daily score. + # The time spans where the submitted score is better than the existing score + # for that time span. # Corresponds to the JSON property `beatenScoreTimeSpans` # @return [Array] attr_accessor :beaten_score_time_spans @@ -2595,7 +2192,7 @@ module Google attr_accessor :formatted_score # Uniquely identifies the type of this resource. Value is always the fixed - # string games#playerScoreResponse. + # string `games#playerScoreResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -2605,15 +2202,16 @@ module Google # @return [String] attr_accessor :leaderboard_id - # Additional information about this score. Values will contain no more than 64 - # URI-safe characters as defined by section 2.3 of RFC 3986. + # Additional information about this score. Values will contain no more than + # 64 URI-safe characters as defined by section 2.3 of RFC 3986. # Corresponds to the JSON property `scoreTag` # @return [String] attr_accessor :score_tag - # The scores in time spans that have not been beaten. As an example, the - # submitted score may be better than the player's DAILY score, but not better - # than the player's scores for the WEEKLY or ALL_TIME time spans. + # The scores in time spans that have not been beaten. As an example, the + # submitted score may be better than the + # player's `DAILY` score, but not better than the player's scores + # for the `WEEKLY` or `ALL_TIME` time spans. # Corresponds to the JSON property `unbeatenScores` # @return [Array] attr_accessor :unbeaten_scores @@ -2633,12 +2231,12 @@ module Google end end - # This is a JSON template for a list of score submission requests + # A list of score submission requests. class PlayerScoreSubmissionList include Google::Apis::Core::Hashable # Uniquely identifies the type of this resource. Value is always the fixed - # string games#playerScoreSubmissionList. + # string `games#playerScoreSubmissionList`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -2659,22 +2257,22 @@ module Google end end - # This is a JSON template for profile settings + # Profile settings class ProfileSettings include Google::Apis::Core::Hashable - # Whether the player's friends list is visible to the game. + # # Corresponds to the JSON property `friendsListVisibility` # @return [String] attr_accessor :friends_list_visibility # Uniquely identifies the type of this resource. Value is always the fixed - # string games#profileSettings. + # string `games#profileSettings`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # + # Whether the player's profile is visible to the currently signed in player. # Corresponds to the JSON property `profileVisible` # @return [Boolean] attr_accessor :profile_visible @@ -2692,103 +2290,7 @@ module Google end end - # This is a JSON template for a push token resource. - class PushToken - include Google::Apis::Core::Hashable - - # The revision of the client SDK used by your application, in the same format - # that's used by revisions.check. Used to send backward compatible messages. - # Format: [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of PLATFORM_TYPE are: - # - # - IOS - Push token is for iOS - # Corresponds to the JSON property `clientRevision` - # @return [String] - attr_accessor :client_revision - - # This is a JSON template for a push token ID resource. - # Corresponds to the JSON property `id` - # @return [Google::Apis::GamesV1::PushTokenId] - attr_accessor :id - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#pushToken. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The preferred language for notifications that are sent using this token. - # Corresponds to the JSON property `language` - # @return [String] - attr_accessor :language - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @client_revision = args[:client_revision] if args.key?(:client_revision) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @language = args[:language] if args.key?(:language) - end - end - - # This is a JSON template for a push token ID resource. - class PushTokenId - include Google::Apis::Core::Hashable - - # A push token ID for iOS devices. - # Corresponds to the JSON property `ios` - # @return [Google::Apis::GamesV1::PushTokenId::Ios] - attr_accessor :ios - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#pushTokenId. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @ios = args[:ios] if args.key?(:ios) - @kind = args[:kind] if args.key?(:kind) - end - - # A push token ID for iOS devices. - class Ios - include Google::Apis::Core::Hashable - - # Device token supplied by an iOS system call to register for remote - # notifications. Encode this field as web-safe base64. - # Corresponds to the JSON property `apns_device_token` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :apns_device_token - - # Indicates whether this token should be used for the production or sandbox APNS - # server. - # Corresponds to the JSON property `apns_environment` - # @return [String] - attr_accessor :apns_environment - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @apns_device_token = args[:apns_device_token] if args.key?(:apns_device_token) - @apns_environment = args[:apns_environment] if args.key?(:apns_environment) - end - end - end - - # This is a JSON template for the result of checking a revision. + # A third party checking a revision response. class CheckRevisionResponse include Google::Apis::Core::Hashable @@ -2799,17 +2301,12 @@ module Google attr_accessor :api_version # Uniquely identifies the type of this resource. Value is always the fixed - # string games#revisionCheckResponse. + # string `games#revisionCheckResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # The result of the revision check. - # Possible values are: - # - "OK" - The revision being used is current. - # - "DEPRECATED" - There is currently a newer version available, but the - # revision being used still works. - # - "INVALID" - The revision being used is not supported in any released version. # Corresponds to the JSON property `revisionStatus` # @return [String] attr_accessor :revision_status @@ -2826,760 +2323,12 @@ module Google end end - # This is a JSON template for a room resource object. - class Room - include Google::Apis::Core::Hashable - - # The ID of the application being played. - # Corresponds to the JSON property `applicationId` - # @return [String] - attr_accessor :application_id - - # This is a JSON template for a room auto-match criteria object. - # Corresponds to the JSON property `autoMatchingCriteria` - # @return [Google::Apis::GamesV1::RoomAutoMatchingCriteria] - attr_accessor :auto_matching_criteria - - # This is a JSON template for status of room automatching that is in progress. - # Corresponds to the JSON property `autoMatchingStatus` - # @return [Google::Apis::GamesV1::RoomAutoMatchStatus] - attr_accessor :auto_matching_status - - # This is a JSON template for room modification metadata. - # Corresponds to the JSON property `creationDetails` - # @return [Google::Apis::GamesV1::RoomModification] - attr_accessor :creation_details - - # This short description is generated by our servers and worded relative to the - # player requesting the room. It is intended to be displayed when the room is - # shown in a list (that is, an invitation to a room.) - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The ID of the participant that invited the user to the room. Not set if the - # user was not invited to the room. - # Corresponds to the JSON property `inviterId` - # @return [String] - attr_accessor :inviter_id - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#room. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # This is a JSON template for room modification metadata. - # Corresponds to the JSON property `lastUpdateDetails` - # @return [Google::Apis::GamesV1::RoomModification] - attr_accessor :last_update_details - - # The participants involved in the room, along with their statuses. Includes - # participants who have left or declined invitations. - # Corresponds to the JSON property `participants` - # @return [Array] - attr_accessor :participants - - # Globally unique ID for a room. - # Corresponds to the JSON property `roomId` - # @return [String] - attr_accessor :room_id - - # The version of the room status: an increasing counter, used by the client to - # ignore out-of-order updates to room status. - # Corresponds to the JSON property `roomStatusVersion` - # @return [Fixnum] - attr_accessor :room_status_version - - # The status of the room. - # Possible values are: - # - "ROOM_INVITING" - One or more players have been invited and not responded. - # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching. - # - "ROOM_CONNECTING" - Players have joined and are connecting to each other ( - # either before or after auto-matching). - # - "ROOM_ACTIVE" - All players have joined and connected to each other. - # - "ROOM_DELETED" - The room should no longer be shown on the client. Returned - # in sync calls when a player joins a room (as a tombstone), or for rooms where - # all joined participants have left. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - # The variant / mode of the application being played; can be any integer value, - # or left blank. - # Corresponds to the JSON property `variant` - # @return [Fixnum] - attr_accessor :variant - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @application_id = args[:application_id] if args.key?(:application_id) - @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria) - @auto_matching_status = args[:auto_matching_status] if args.key?(:auto_matching_status) - @creation_details = args[:creation_details] if args.key?(:creation_details) - @description = args[:description] if args.key?(:description) - @inviter_id = args[:inviter_id] if args.key?(:inviter_id) - @kind = args[:kind] if args.key?(:kind) - @last_update_details = args[:last_update_details] if args.key?(:last_update_details) - @participants = args[:participants] if args.key?(:participants) - @room_id = args[:room_id] if args.key?(:room_id) - @room_status_version = args[:room_status_version] if args.key?(:room_status_version) - @status = args[:status] if args.key?(:status) - @variant = args[:variant] if args.key?(:variant) - end - end - - # This is a JSON template for status of room automatching that is in progress. - class RoomAutoMatchStatus - include Google::Apis::Core::Hashable - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#roomAutoMatchStatus. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # An estimate for the amount of time (in seconds) that auto-matching is expected - # to take to complete. - # Corresponds to the JSON property `waitEstimateSeconds` - # @return [Fixnum] - attr_accessor :wait_estimate_seconds - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @wait_estimate_seconds = args[:wait_estimate_seconds] if args.key?(:wait_estimate_seconds) - end - end - - # This is a JSON template for a room auto-match criteria object. - class RoomAutoMatchingCriteria - include Google::Apis::Core::Hashable - - # A bitmask indicating when auto-matches are valid. When ANDed with other - # exclusive bitmasks, the result must be zero. Can be used to support exclusive - # roles within a game. - # Corresponds to the JSON property `exclusiveBitmask` - # @return [Fixnum] - attr_accessor :exclusive_bitmask - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#roomAutoMatchingCriteria. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The maximum number of players that should be added to the room by auto- - # matching. - # Corresponds to the JSON property `maxAutoMatchingPlayers` - # @return [Fixnum] - attr_accessor :max_auto_matching_players - - # The minimum number of players that should be added to the room by auto- - # matching. - # Corresponds to the JSON property `minAutoMatchingPlayers` - # @return [Fixnum] - attr_accessor :min_auto_matching_players - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @exclusive_bitmask = args[:exclusive_bitmask] if args.key?(:exclusive_bitmask) - @kind = args[:kind] if args.key?(:kind) - @max_auto_matching_players = args[:max_auto_matching_players] if args.key?(:max_auto_matching_players) - @min_auto_matching_players = args[:min_auto_matching_players] if args.key?(:min_auto_matching_players) - end - end - - # This is a JSON template for the client address when setting up a room. - class RoomClientAddress - include Google::Apis::Core::Hashable - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#roomClientAddress. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The XMPP address of the client on the Google Games XMPP network. - # Corresponds to the JSON property `xmppAddress` - # @return [String] - attr_accessor :xmpp_address - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @xmpp_address = args[:xmpp_address] if args.key?(:xmpp_address) - end - end - - # This is a JSON template for a room creation request. - class CreateRoomRequest - include Google::Apis::Core::Hashable - - # This is a JSON template for a room auto-match criteria object. - # Corresponds to the JSON property `autoMatchingCriteria` - # @return [Google::Apis::GamesV1::RoomAutoMatchingCriteria] - attr_accessor :auto_matching_criteria - - # The capabilities that this client supports for realtime communication. - # Corresponds to the JSON property `capabilities` - # @return [Array] - attr_accessor :capabilities - - # This is a JSON template for the client address when setting up a room. - # Corresponds to the JSON property `clientAddress` - # @return [Google::Apis::GamesV1::RoomClientAddress] - attr_accessor :client_address - - # The player IDs to invite to the room. - # Corresponds to the JSON property `invitedPlayerIds` - # @return [Array] - attr_accessor :invited_player_ids - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#roomCreateRequest. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # This is a JSON template for network diagnostics reported for a client. - # Corresponds to the JSON property `networkDiagnostics` - # @return [Google::Apis::GamesV1::NetworkDiagnostics] - attr_accessor :network_diagnostics - - # A randomly generated numeric ID. This number is used at the server to ensure - # that the request is handled correctly across retries. - # Corresponds to the JSON property `requestId` - # @return [Fixnum] - attr_accessor :request_id - - # The variant / mode of the application to be played. This can be any integer - # value, or left blank. You should use a small number of variants to keep the - # auto-matching pool as large as possible. - # Corresponds to the JSON property `variant` - # @return [Fixnum] - attr_accessor :variant - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria) - @capabilities = args[:capabilities] if args.key?(:capabilities) - @client_address = args[:client_address] if args.key?(:client_address) - @invited_player_ids = args[:invited_player_ids] if args.key?(:invited_player_ids) - @kind = args[:kind] if args.key?(:kind) - @network_diagnostics = args[:network_diagnostics] if args.key?(:network_diagnostics) - @request_id = args[:request_id] if args.key?(:request_id) - @variant = args[:variant] if args.key?(:variant) - end - end - - # This is a JSON template for a join room request. - class JoinRoomRequest - include Google::Apis::Core::Hashable - - # The capabilities that this client supports for realtime communication. - # Corresponds to the JSON property `capabilities` - # @return [Array] - attr_accessor :capabilities - - # This is a JSON template for the client address when setting up a room. - # Corresponds to the JSON property `clientAddress` - # @return [Google::Apis::GamesV1::RoomClientAddress] - attr_accessor :client_address - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#roomJoinRequest. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # This is a JSON template for network diagnostics reported for a client. - # Corresponds to the JSON property `networkDiagnostics` - # @return [Google::Apis::GamesV1::NetworkDiagnostics] - attr_accessor :network_diagnostics - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @capabilities = args[:capabilities] if args.key?(:capabilities) - @client_address = args[:client_address] if args.key?(:client_address) - @kind = args[:kind] if args.key?(:kind) - @network_diagnostics = args[:network_diagnostics] if args.key?(:network_diagnostics) - end - end - - # This is a JSON template for room leave diagnostics. - class RoomLeaveDiagnostics - include Google::Apis::Core::Hashable - - # Android network subtype. http://developer.android.com/reference/android/net/ - # NetworkInfo.html#getSubtype() - # Corresponds to the JSON property `androidNetworkSubtype` - # @return [Fixnum] - attr_accessor :android_network_subtype - - # Android network type. http://developer.android.com/reference/android/net/ - # NetworkInfo.html#getType() - # Corresponds to the JSON property `androidNetworkType` - # @return [Fixnum] - attr_accessor :android_network_type - - # iOS network type as defined in Reachability.h. - # Corresponds to the JSON property `iosNetworkType` - # @return [Fixnum] - attr_accessor :ios_network_type - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#roomLeaveDiagnostics. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The MCC+MNC code for the client's network connection. On Android: http:// - # developer.android.com/reference/android/telephony/TelephonyManager.html# - # getNetworkOperator() On iOS, see: https://developer.apple.com/library/ios/ - # documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html - # Corresponds to the JSON property `networkOperatorCode` - # @return [String] - attr_accessor :network_operator_code - - # The name of the carrier of the client's network connection. On Android: http:// - # developer.android.com/reference/android/telephony/TelephonyManager.html# - # getNetworkOperatorName() On iOS: https://developer.apple.com/library/ios/ - # documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html#/ - # /apple_ref/occ/instp/CTCarrier/carrierName - # Corresponds to the JSON property `networkOperatorName` - # @return [String] - attr_accessor :network_operator_name - - # Diagnostics about all peer sessions. - # Corresponds to the JSON property `peerSession` - # @return [Array] - attr_accessor :peer_session - - # Whether or not sockets were used. - # Corresponds to the JSON property `socketsUsed` - # @return [Boolean] - attr_accessor :sockets_used - alias_method :sockets_used?, :sockets_used - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @android_network_subtype = args[:android_network_subtype] if args.key?(:android_network_subtype) - @android_network_type = args[:android_network_type] if args.key?(:android_network_type) - @ios_network_type = args[:ios_network_type] if args.key?(:ios_network_type) - @kind = args[:kind] if args.key?(:kind) - @network_operator_code = args[:network_operator_code] if args.key?(:network_operator_code) - @network_operator_name = args[:network_operator_name] if args.key?(:network_operator_name) - @peer_session = args[:peer_session] if args.key?(:peer_session) - @sockets_used = args[:sockets_used] if args.key?(:sockets_used) - end - end - - # This is a JSON template for a leave room request. - class LeaveRoomRequest - include Google::Apis::Core::Hashable - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#roomLeaveRequest. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # This is a JSON template for room leave diagnostics. - # Corresponds to the JSON property `leaveDiagnostics` - # @return [Google::Apis::GamesV1::RoomLeaveDiagnostics] - attr_accessor :leave_diagnostics - - # Reason for leaving the match. - # Possible values are: - # - "PLAYER_LEFT" - The player chose to leave the room.. - # - "GAME_LEFT" - The game chose to remove the player from the room. - # - "REALTIME_ABANDONED" - The player switched to another application and - # abandoned the room. - # - "REALTIME_PEER_CONNECTION_FAILURE" - The client was unable to establish a - # connection to other peer(s). - # - "REALTIME_SERVER_CONNECTION_FAILURE" - The client was unable to communicate - # with the server. - # - "REALTIME_SERVER_ERROR" - The client received an error response when it - # tried to communicate with the server. - # - "REALTIME_TIMEOUT" - The client timed out while waiting for a room. - # - "REALTIME_CLIENT_DISCONNECTING" - The client disconnects without first - # calling Leave. - # - "REALTIME_SIGN_OUT" - The user signed out of G+ while in the room. - # - "REALTIME_GAME_CRASHED" - The game crashed. - # - "REALTIME_ROOM_SERVICE_CRASHED" - RoomAndroidService crashed. - # - "REALTIME_DIFFERENT_CLIENT_ROOM_OPERATION" - Another client is trying to - # enter a room. - # - "REALTIME_SAME_CLIENT_ROOM_OPERATION" - The same client is trying to enter a - # new room. - # Corresponds to the JSON property `reason` - # @return [String] - attr_accessor :reason - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @leave_diagnostics = args[:leave_diagnostics] if args.key?(:leave_diagnostics) - @reason = args[:reason] if args.key?(:reason) - end - end - - # This is a JSON template for a list of rooms. - class RoomList - include Google::Apis::Core::Hashable - - # The rooms. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#roomList. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The pagination token for the next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # This is a JSON template for room modification metadata. - class RoomModification - include Google::Apis::Core::Hashable - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#roomModification. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The timestamp at which they modified the room, in milliseconds since the epoch - # in UTC. - # Corresponds to the JSON property `modifiedTimestampMillis` - # @return [Fixnum] - attr_accessor :modified_timestamp_millis - - # The ID of the participant that modified the room. - # Corresponds to the JSON property `participantId` - # @return [String] - attr_accessor :participant_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @modified_timestamp_millis = args[:modified_timestamp_millis] if args.key?(:modified_timestamp_millis) - @participant_id = args[:participant_id] if args.key?(:participant_id) - end - end - - # This is a JSON template for an update on the status of a peer in a room. - class RoomP2PStatus - include Google::Apis::Core::Hashable - - # The amount of time in milliseconds it took to establish connections with this - # peer. - # Corresponds to the JSON property `connectionSetupLatencyMillis` - # @return [Fixnum] - attr_accessor :connection_setup_latency_millis - - # The error code in event of a failure. - # Possible values are: - # - "P2P_FAILED" - The client failed to establish a P2P connection with the peer. - # - # - "PRESENCE_FAILED" - The client failed to register to receive P2P connections. - # - # - "RELAY_SERVER_FAILED" - The client received an error when trying to use the - # relay server to establish a P2P connection with the peer. - # Corresponds to the JSON property `error` - # @return [String] - attr_accessor :error - - # More detailed diagnostic message returned in event of a failure. - # Corresponds to the JSON property `error_reason` - # @return [String] - attr_accessor :error_reason - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#roomP2PStatus. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The ID of the participant. - # Corresponds to the JSON property `participantId` - # @return [String] - attr_accessor :participant_id - - # The status of the peer in the room. - # Possible values are: - # - "CONNECTION_ESTABLISHED" - The client established a P2P connection with the - # peer. - # - "CONNECTION_FAILED" - The client failed to establish directed presence with - # the peer. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - # The amount of time in milliseconds it took to send packets back and forth on - # the unreliable channel with this peer. - # Corresponds to the JSON property `unreliableRoundtripLatencyMillis` - # @return [Fixnum] - attr_accessor :unreliable_roundtrip_latency_millis - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @connection_setup_latency_millis = args[:connection_setup_latency_millis] if args.key?(:connection_setup_latency_millis) - @error = args[:error] if args.key?(:error) - @error_reason = args[:error_reason] if args.key?(:error_reason) - @kind = args[:kind] if args.key?(:kind) - @participant_id = args[:participant_id] if args.key?(:participant_id) - @status = args[:status] if args.key?(:status) - @unreliable_roundtrip_latency_millis = args[:unreliable_roundtrip_latency_millis] if args.key?(:unreliable_roundtrip_latency_millis) - end - end - - # This is a JSON template for an update on the status of peers in a room. - class RoomP2PStatuses - include Google::Apis::Core::Hashable - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#roomP2PStatuses. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The updates for the peers. - # Corresponds to the JSON property `updates` - # @return [Array] - attr_accessor :updates - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @updates = args[:updates] if args.key?(:updates) - end - end - - # This is a JSON template for a participant in a room. - class RoomParticipant - include Google::Apis::Core::Hashable - - # True if this participant was auto-matched with the requesting player. - # Corresponds to the JSON property `autoMatched` - # @return [Boolean] - attr_accessor :auto_matched - alias_method :auto_matched?, :auto_matched - - # This is a JSON template for an anonymous player - # Corresponds to the JSON property `autoMatchedPlayer` - # @return [Google::Apis::GamesV1::AnonymousPlayer] - attr_accessor :auto_matched_player - - # The capabilities which can be used when communicating with this participant. - # Corresponds to the JSON property `capabilities` - # @return [Array] - attr_accessor :capabilities - - # This is a JSON template for the client address when setting up a room. - # Corresponds to the JSON property `clientAddress` - # @return [Google::Apis::GamesV1::RoomClientAddress] - attr_accessor :client_address - - # True if this participant is in the fully connected set of peers in the room. - # Corresponds to the JSON property `connected` - # @return [Boolean] - attr_accessor :connected - alias_method :connected?, :connected - - # An identifier for the participant in the scope of the room. Cannot be used to - # identify a player across rooms or in other contexts. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#roomParticipant. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The reason the participant left the room; populated if the participant status - # is PARTICIPANT_LEFT. - # Possible values are: - # - "PLAYER_LEFT" - The player explicitly chose to leave the room. - # - "GAME_LEFT" - The game chose to remove the player from the room. - # - "ABANDONED" - The player switched to another application and abandoned the - # room. - # - "PEER_CONNECTION_FAILURE" - The client was unable to establish or maintain a - # connection to other peer(s) in the room. - # - "SERVER_ERROR" - The client received an error response when it tried to - # communicate with the server. - # - "TIMEOUT" - The client timed out while waiting for players to join and - # connect. - # - "PRESENCE_FAILURE" - The client's XMPP connection ended abruptly. - # Corresponds to the JSON property `leaveReason` - # @return [String] - attr_accessor :leave_reason - - # This is a JSON template for a Player resource. - # Corresponds to the JSON property `player` - # @return [Google::Apis::GamesV1::Player] - attr_accessor :player - - # The status of the participant with respect to the room. - # Possible values are: - # - "PARTICIPANT_INVITED" - The participant has been invited to join the room, - # but has not yet responded. - # - "PARTICIPANT_JOINED" - The participant has joined the room (either after - # creating it or accepting an invitation.) - # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the - # room. - # - "PARTICIPANT_LEFT" - The participant joined the room and then left it. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @auto_matched = args[:auto_matched] if args.key?(:auto_matched) - @auto_matched_player = args[:auto_matched_player] if args.key?(:auto_matched_player) - @capabilities = args[:capabilities] if args.key?(:capabilities) - @client_address = args[:client_address] if args.key?(:client_address) - @connected = args[:connected] if args.key?(:connected) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @leave_reason = args[:leave_reason] if args.key?(:leave_reason) - @player = args[:player] if args.key?(:player) - @status = args[:status] if args.key?(:status) - end - end - - # This is a JSON template for the status of a room that the player has joined. - class RoomStatus - include Google::Apis::Core::Hashable - - # This is a JSON template for status of room automatching that is in progress. - # Corresponds to the JSON property `autoMatchingStatus` - # @return [Google::Apis::GamesV1::RoomAutoMatchStatus] - attr_accessor :auto_matching_status - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#roomStatus. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The participants involved in the room, along with their statuses. Includes - # participants who have left or declined invitations. - # Corresponds to the JSON property `participants` - # @return [Array] - attr_accessor :participants - - # Globally unique ID for a room. - # Corresponds to the JSON property `roomId` - # @return [String] - attr_accessor :room_id - - # The status of the room. - # Possible values are: - # - "ROOM_INVITING" - One or more players have been invited and not responded. - # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching. - # - "ROOM_CONNECTING" - Players have joined are connecting to each other (either - # before or after auto-matching). - # - "ROOM_ACTIVE" - All players have joined and connected to each other. - # - "ROOM_DELETED" - All joined players have left. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - # The version of the status for the room: an increasing counter, used by the - # client to ignore out-of-order updates to room status. - # Corresponds to the JSON property `statusVersion` - # @return [Fixnum] - attr_accessor :status_version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @auto_matching_status = args[:auto_matching_status] if args.key?(:auto_matching_status) - @kind = args[:kind] if args.key?(:kind) - @participants = args[:participants] if args.key?(:participants) - @room_id = args[:room_id] if args.key?(:room_id) - @status = args[:status] if args.key?(:status) - @status_version = args[:status_version] if args.key?(:status_version) - end - end - - # This is a JSON template for a request to submit a score to leaderboards. + # A request to submit a score to leaderboards. class ScoreSubmission include Google::Apis::Core::Hashable # Uniquely identifies the type of this resource. Value is always the fixed - # string games#scoreSubmission. + # string `games#scoreSubmission`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -3594,14 +2343,14 @@ module Google # @return [Fixnum] attr_accessor :score - # Additional information about this score. Values will contain no more than 64 - # URI-safe characters as defined by section 2.3 of RFC 3986. + # Additional information about this score. Values will contain no more than + # 64 URI-safe characters as defined by section 2.3 of RFC 3986. # Corresponds to the JSON property `scoreTag` # @return [String] attr_accessor :score_tag - # Signature Values will contain URI-safe characters as defined by section 2.3 of - # RFC 3986. + # Signature Values will contain URI-safe characters as defined by section 2.3 + # of RFC 3986. # Corresponds to the JSON property `signature` # @return [String] attr_accessor :signature @@ -3620,11 +2369,11 @@ module Google end end - # This is a JSON template for an snapshot object. + # An snapshot object. class Snapshot include Google::Apis::Core::Hashable - # This is a JSON template for an image of a snapshot. + # An image of a snapshot. # Corresponds to the JSON property `coverImage` # @return [Google::Apis::GamesV1::SnapshotImage] attr_accessor :cover_image @@ -3634,8 +2383,9 @@ module Google # @return [String] attr_accessor :description - # The ID of the file underlying this snapshot in the Drive API. Only present if - # the snapshot is a view on a Drive file and the file is owned by the caller. + # The ID of the file underlying this snapshot in the Drive API. Only present + # if the snapshot is a view on a Drive file and the file is owned by the + # caller. # Corresponds to the JSON property `driveId` # @return [String] attr_accessor :drive_id @@ -3651,7 +2401,7 @@ module Google attr_accessor :id # Uniquely identifies the type of this resource. Value is always the fixed - # string games#snapshot. + # string `games#snapshot`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -3674,8 +2424,6 @@ module Google attr_accessor :title # The type of this snapshot. - # Possible values are: - # - "SAVE_GAME" - A snapshot representing a save game. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -3705,7 +2453,7 @@ module Google end end - # This is a JSON template for an image of a snapshot. + # An image of a snapshot. class SnapshotImage include Google::Apis::Core::Hashable @@ -3715,7 +2463,7 @@ module Google attr_accessor :height # Uniquely identifies the type of this resource. Value is always the fixed - # string games#snapshotImage. + # string `games#snapshotImage`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -3725,8 +2473,8 @@ module Google # @return [String] attr_accessor :mime_type - # The URL of the image. This URL may be invalidated at any time and should not - # be cached. + # The URL of the image. This URL may be invalidated at any time and should + # not be cached. # Corresponds to the JSON property `url` # @return [String] attr_accessor :url @@ -3750,7 +2498,7 @@ module Google end end - # This is a JSON template for a list of snapshot objects. + # A third party list snapshots response. class ListSnapshotResponse include Google::Apis::Core::Hashable @@ -3760,13 +2508,13 @@ module Google attr_accessor :items # Uniquely identifies the type of this resource. Value is always the fixed - # string games#snapshotListResponse. + # string `games#snapshotListResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # Token corresponding to the next page of results. If there are no more results, - # the token is omitted. + # Token corresponding to the next page of results. If there are no more + # results, the token is omitted. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -3783,34 +2531,83 @@ module Google end end - # This is a JSON template for an turn-based auto-match criteria object. - class TurnBasedAutoMatchingCriteria + # A third party stats resource. + class StatsResponse include Google::Apis::Core::Hashable - # A bitmask indicating when auto-matches are valid. When ANDed with other - # exclusive bitmasks, the result must be zero. Can be used to support exclusive - # roles within a game. - # Corresponds to the JSON property `exclusiveBitmask` + # Average session length in minutes of the player. E.g., 1, 30, 60, ... . Not + # populated if there is not enough information. + # Corresponds to the JSON property `avg_session_length_minutes` + # @return [Float] + attr_accessor :avg_session_length_minutes + + # The probability of the player not returning to play the game in the next + # day. E.g., 0, 0.1, 0.5, ..., 1.0. Not populated if there is not enough + # information. + # Corresponds to the JSON property `churn_probability` + # @return [Float] + attr_accessor :churn_probability + + # Number of days since the player last played this game. E.g., 0, 1, 5, 10, + # ... . Not populated if there is not enough information. + # Corresponds to the JSON property `days_since_last_played` # @return [Fixnum] - attr_accessor :exclusive_bitmask + attr_accessor :days_since_last_played + + # The probability of the player going to spend beyond a threshold amount of + # money. E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough + # information. + # Corresponds to the JSON property `high_spender_probability` + # @return [Float] + attr_accessor :high_spender_probability # Uniquely identifies the type of this resource. Value is always the fixed - # string games#turnBasedAutoMatchingCriteria. + # string `games#statsResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # The maximum number of players that should be added to the match by auto- - # matching. - # Corresponds to the JSON property `maxAutoMatchingPlayers` + # Number of in-app purchases made by the player in this game. E.g., 0, 1, 5, + # 10, ... . Not populated if there is not enough information. + # Corresponds to the JSON property `num_purchases` # @return [Fixnum] - attr_accessor :max_auto_matching_players + attr_accessor :num_purchases - # The minimum number of players that should be added to the match by auto- - # matching. - # Corresponds to the JSON property `minAutoMatchingPlayers` + # The approximate number of sessions of the player within the last 28 days, + # where a session begins when the player is connected to Play Games Services + # and ends when they are disconnected. E.g., 0, 1, 5, 10, ... . Not populated + # if there is not enough information. + # Corresponds to the JSON property `num_sessions` # @return [Fixnum] - attr_accessor :min_auto_matching_players + attr_accessor :num_sessions + + # The approximation of the sessions percentile of the player within the last + # 30 days, where a session begins when the player is connected to Play Games + # Services and ends when they are disconnected. E.g., 0, 0.25, 0.5, 0.75. Not + # populated if there is not enough information. + # Corresponds to the JSON property `num_sessions_percentile` + # @return [Float] + attr_accessor :num_sessions_percentile + + # The approximate spend percentile of the player in this game. E.g., 0, 0.25, + # 0.5, 0.75. Not populated if there is not enough information. + # Corresponds to the JSON property `spend_percentile` + # @return [Float] + attr_accessor :spend_percentile + + # The probability of the player going to spend the game in the next seven + # days. E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough + # information. + # Corresponds to the JSON property `spend_probability` + # @return [Float] + attr_accessor :spend_probability + + # The predicted amount of money that the player going to spend in the next 28 + # days. E.g., 1, 30, 60, ... . Not populated if there is not enough + # information. + # Corresponds to the JSON property `total_spend_next_28_days` + # @return [Float] + attr_accessor :total_spend_next_28_days def initialize(**args) update!(**args) @@ -3818,572 +2615,17 @@ module Google # Update properties of this object def update!(**args) - @exclusive_bitmask = args[:exclusive_bitmask] if args.key?(:exclusive_bitmask) + @avg_session_length_minutes = args[:avg_session_length_minutes] if args.key?(:avg_session_length_minutes) + @churn_probability = args[:churn_probability] if args.key?(:churn_probability) + @days_since_last_played = args[:days_since_last_played] if args.key?(:days_since_last_played) + @high_spender_probability = args[:high_spender_probability] if args.key?(:high_spender_probability) @kind = args[:kind] if args.key?(:kind) - @max_auto_matching_players = args[:max_auto_matching_players] if args.key?(:max_auto_matching_players) - @min_auto_matching_players = args[:min_auto_matching_players] if args.key?(:min_auto_matching_players) - end - end - - # This is a JSON template for a turn-based match resource object. - class TurnBasedMatch - include Google::Apis::Core::Hashable - - # The ID of the application being played. - # Corresponds to the JSON property `applicationId` - # @return [String] - attr_accessor :application_id - - # This is a JSON template for an turn-based auto-match criteria object. - # Corresponds to the JSON property `autoMatchingCriteria` - # @return [Google::Apis::GamesV1::TurnBasedAutoMatchingCriteria] - attr_accessor :auto_matching_criteria - - # This is a JSON template for turn-based match modification metadata. - # Corresponds to the JSON property `creationDetails` - # @return [Google::Apis::GamesV1::TurnBasedMatchModification] - attr_accessor :creation_details - - # This is a JSON template for a turn-based match data object. - # Corresponds to the JSON property `data` - # @return [Google::Apis::GamesV1::TurnBasedMatchData] - attr_accessor :data - - # This short description is generated by our servers based on turn state and is - # localized and worded relative to the player requesting the match. It is - # intended to be displayed when the match is shown in a list. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The ID of the participant that invited the user to the match. Not set if the - # user was not invited to the match. - # Corresponds to the JSON property `inviterId` - # @return [String] - attr_accessor :inviter_id - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#turnBasedMatch. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # This is a JSON template for turn-based match modification metadata. - # Corresponds to the JSON property `lastUpdateDetails` - # @return [Google::Apis::GamesV1::TurnBasedMatchModification] - attr_accessor :last_update_details - - # Globally unique ID for a turn-based match. - # Corresponds to the JSON property `matchId` - # @return [String] - attr_accessor :match_id - - # The number of the match in a chain of rematches. Will be set to 1 for the - # first match and incremented by 1 for each rematch. - # Corresponds to the JSON property `matchNumber` - # @return [Fixnum] - attr_accessor :match_number - - # The version of this match: an increasing counter, used to avoid out-of-date - # updates to the match. - # Corresponds to the JSON property `matchVersion` - # @return [Fixnum] - attr_accessor :match_version - - # The participants involved in the match, along with their statuses. Includes - # participants who have left or declined invitations. - # Corresponds to the JSON property `participants` - # @return [Array] - attr_accessor :participants - - # The ID of the participant that is taking a turn. - # Corresponds to the JSON property `pendingParticipantId` - # @return [String] - attr_accessor :pending_participant_id - - # This is a JSON template for a turn-based match data object. - # Corresponds to the JSON property `previousMatchData` - # @return [Google::Apis::GamesV1::TurnBasedMatchData] - attr_accessor :previous_match_data - - # The ID of a rematch of this match. Only set for completed matches that have - # been rematched. - # Corresponds to the JSON property `rematchId` - # @return [String] - attr_accessor :rematch_id - - # The results reported for this match. - # Corresponds to the JSON property `results` - # @return [Array] - attr_accessor :results - - # The status of the match. - # Possible values are: - # - "MATCH_AUTO_MATCHING" - One or more slots need to be filled by auto-matching; - # the match cannot be established until they are filled. - # - "MATCH_ACTIVE" - The match has started. - # - "MATCH_COMPLETE" - The match has finished. - # - "MATCH_CANCELED" - The match was canceled. - # - "MATCH_EXPIRED" - The match expired due to inactivity. - # - "MATCH_DELETED" - The match should no longer be shown on the client. - # Returned only for tombstones for matches when sync is called. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - # The status of the current user in the match. Derived from the match type, - # match status, the user's participant status, and the pending participant for - # the match. - # Possible values are: - # - "USER_INVITED" - The user has been invited to join the match and has not - # responded yet. - # - "USER_AWAITING_TURN" - The user is waiting for their turn. - # - "USER_TURN" - The user has an action to take in the match. - # - "USER_MATCH_COMPLETED" - The match has ended (it is completed, canceled, or - # expired.) - # Corresponds to the JSON property `userMatchStatus` - # @return [String] - attr_accessor :user_match_status - - # The variant / mode of the application being played; can be any integer value, - # or left blank. - # Corresponds to the JSON property `variant` - # @return [Fixnum] - attr_accessor :variant - - # The ID of another participant in the match that can be used when describing - # the participants the user is playing with. - # Corresponds to the JSON property `withParticipantId` - # @return [String] - attr_accessor :with_participant_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @application_id = args[:application_id] if args.key?(:application_id) - @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria) - @creation_details = args[:creation_details] if args.key?(:creation_details) - @data = args[:data] if args.key?(:data) - @description = args[:description] if args.key?(:description) - @inviter_id = args[:inviter_id] if args.key?(:inviter_id) - @kind = args[:kind] if args.key?(:kind) - @last_update_details = args[:last_update_details] if args.key?(:last_update_details) - @match_id = args[:match_id] if args.key?(:match_id) - @match_number = args[:match_number] if args.key?(:match_number) - @match_version = args[:match_version] if args.key?(:match_version) - @participants = args[:participants] if args.key?(:participants) - @pending_participant_id = args[:pending_participant_id] if args.key?(:pending_participant_id) - @previous_match_data = args[:previous_match_data] if args.key?(:previous_match_data) - @rematch_id = args[:rematch_id] if args.key?(:rematch_id) - @results = args[:results] if args.key?(:results) - @status = args[:status] if args.key?(:status) - @user_match_status = args[:user_match_status] if args.key?(:user_match_status) - @variant = args[:variant] if args.key?(:variant) - @with_participant_id = args[:with_participant_id] if args.key?(:with_participant_id) - end - end - - # This is a JSON template for a turn-based match creation request. - class CreateTurnBasedMatchRequest - include Google::Apis::Core::Hashable - - # This is a JSON template for an turn-based auto-match criteria object. - # Corresponds to the JSON property `autoMatchingCriteria` - # @return [Google::Apis::GamesV1::TurnBasedAutoMatchingCriteria] - attr_accessor :auto_matching_criteria - - # The player ids to invite to the match. - # Corresponds to the JSON property `invitedPlayerIds` - # @return [Array] - attr_accessor :invited_player_ids - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#turnBasedMatchCreateRequest. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # A randomly generated numeric ID. This number is used at the server to ensure - # that the request is handled correctly across retries. - # Corresponds to the JSON property `requestId` - # @return [Fixnum] - attr_accessor :request_id - - # The variant / mode of the application to be played. This can be any integer - # value, or left blank. You should use a small number of variants to keep the - # auto-matching pool as large as possible. - # Corresponds to the JSON property `variant` - # @return [Fixnum] - attr_accessor :variant - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria) - @invited_player_ids = args[:invited_player_ids] if args.key?(:invited_player_ids) - @kind = args[:kind] if args.key?(:kind) - @request_id = args[:request_id] if args.key?(:request_id) - @variant = args[:variant] if args.key?(:variant) - end - end - - # This is a JSON template for a turn-based match data object. - class TurnBasedMatchData - include Google::Apis::Core::Hashable - - # The byte representation of the data (limited to 128 kB), as a Base64-encoded - # string with the URL_SAFE encoding option. - # Corresponds to the JSON property `data` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :data - - # True if this match has data available but it wasn't returned in a list - # response; fetching the match individually will retrieve this data. - # Corresponds to the JSON property `dataAvailable` - # @return [Boolean] - attr_accessor :data_available - alias_method :data_available?, :data_available - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#turnBasedMatchData. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @data = args[:data] if args.key?(:data) - @data_available = args[:data_available] if args.key?(:data_available) - @kind = args[:kind] if args.key?(:kind) - end - end - - # This is a JSON template for sending a turn-based match data object. - class TurnBasedMatchDataRequest - include Google::Apis::Core::Hashable - - # The byte representation of the data (limited to 128 kB), as a Base64-encoded - # string with the URL_SAFE encoding option. - # Corresponds to the JSON property `data` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :data - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#turnBasedMatchDataRequest. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @data = args[:data] if args.key?(:data) - @kind = args[:kind] if args.key?(:kind) - end - end - - # This is a JSON template for a list of turn-based matches. - class TurnBasedMatchList - include Google::Apis::Core::Hashable - - # The matches. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#turnBasedMatchList. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The pagination token for the next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # This is a JSON template for turn-based match modification metadata. - class TurnBasedMatchModification - include Google::Apis::Core::Hashable - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#turnBasedMatchModification. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The timestamp at which they modified the match, in milliseconds since the - # epoch in UTC. - # Corresponds to the JSON property `modifiedTimestampMillis` - # @return [Fixnum] - attr_accessor :modified_timestamp_millis - - # The ID of the participant that modified the match. - # Corresponds to the JSON property `participantId` - # @return [String] - attr_accessor :participant_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @modified_timestamp_millis = args[:modified_timestamp_millis] if args.key?(:modified_timestamp_millis) - @participant_id = args[:participant_id] if args.key?(:participant_id) - end - end - - # This is a JSON template for a participant in a turn-based match. - class TurnBasedMatchParticipant - include Google::Apis::Core::Hashable - - # True if this participant was auto-matched with the requesting player. - # Corresponds to the JSON property `autoMatched` - # @return [Boolean] - attr_accessor :auto_matched - alias_method :auto_matched?, :auto_matched - - # This is a JSON template for an anonymous player - # Corresponds to the JSON property `autoMatchedPlayer` - # @return [Google::Apis::GamesV1::AnonymousPlayer] - attr_accessor :auto_matched_player - - # An identifier for the participant in the scope of the match. Cannot be used to - # identify a player across matches or in other contexts. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#turnBasedMatchParticipant. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # This is a JSON template for a Player resource. - # Corresponds to the JSON property `player` - # @return [Google::Apis::GamesV1::Player] - attr_accessor :player - - # The status of the participant with respect to the match. - # Possible values are: - # - "PARTICIPANT_NOT_INVITED_YET" - The participant is slated to be invited to - # the match, but the invitation has not been sent; the invite will be sent when - # it becomes their turn. - # - "PARTICIPANT_INVITED" - The participant has been invited to join the match, - # but has not yet responded. - # - "PARTICIPANT_JOINED" - The participant has joined the match (either after - # creating it or accepting an invitation.) - # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the - # match. - # - "PARTICIPANT_LEFT" - The participant joined the match and then left it. - # - "PARTICIPANT_FINISHED" - The participant finished playing in the match. - # - "PARTICIPANT_UNRESPONSIVE" - The participant did not take their turn in the - # allotted time. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @auto_matched = args[:auto_matched] if args.key?(:auto_matched) - @auto_matched_player = args[:auto_matched_player] if args.key?(:auto_matched_player) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @player = args[:player] if args.key?(:player) - @status = args[:status] if args.key?(:status) - end - end - - # This is a JSON template for a rematch response. - class TurnBasedMatchRematch - include Google::Apis::Core::Hashable - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#turnBasedMatchRematch. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # This is a JSON template for a turn-based match resource object. - # Corresponds to the JSON property `previousMatch` - # @return [Google::Apis::GamesV1::TurnBasedMatch] - attr_accessor :previous_match - - # This is a JSON template for a turn-based match resource object. - # Corresponds to the JSON property `rematch` - # @return [Google::Apis::GamesV1::TurnBasedMatch] - attr_accessor :rematch - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @previous_match = args[:previous_match] if args.key?(:previous_match) - @rematch = args[:rematch] if args.key?(:rematch) - end - end - - # This is a JSON template for a turn-based match results object. - class TurnBasedMatchResults - include Google::Apis::Core::Hashable - - # This is a JSON template for sending a turn-based match data object. - # Corresponds to the JSON property `data` - # @return [Google::Apis::GamesV1::TurnBasedMatchDataRequest] - attr_accessor :data - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#turnBasedMatchResults. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The version of the match being updated. - # Corresponds to the JSON property `matchVersion` - # @return [Fixnum] - attr_accessor :match_version - - # The match results for the participants in the match. - # Corresponds to the JSON property `results` - # @return [Array] - attr_accessor :results - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @data = args[:data] if args.key?(:data) - @kind = args[:kind] if args.key?(:kind) - @match_version = args[:match_version] if args.key?(:match_version) - @results = args[:results] if args.key?(:results) - end - end - - # This is a JSON template for a list of turn-based matches returned from a sync. - class TurnBasedMatchSync - include Google::Apis::Core::Hashable - - # The matches. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#turnBasedMatchSync. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # True if there were more matches available to fetch at the time the response - # was generated (which were not returned due to page size limits.) - # Corresponds to the JSON property `moreAvailable` - # @return [Boolean] - attr_accessor :more_available - alias_method :more_available?, :more_available - - # The pagination token for the next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @more_available = args[:more_available] if args.key?(:more_available) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # This is a JSON template for the object representing a turn. - class TurnBasedMatchTurn - include Google::Apis::Core::Hashable - - # This is a JSON template for sending a turn-based match data object. - # Corresponds to the JSON property `data` - # @return [Google::Apis::GamesV1::TurnBasedMatchDataRequest] - attr_accessor :data - - # Uniquely identifies the type of this resource. Value is always the fixed - # string games#turnBasedMatchTurn. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The version of this match: an increasing counter, used to avoid out-of-date - # updates to the match. - # Corresponds to the JSON property `matchVersion` - # @return [Fixnum] - attr_accessor :match_version - - # The ID of the participant who should take their turn next. May be set to the - # current player's participant ID to update match state without changing the - # turn. If not set, the match will wait for other player(s) to join via - # automatching; this is only valid if automatch criteria is set on the match - # with remaining slots for automatched players. - # Corresponds to the JSON property `pendingParticipantId` - # @return [String] - attr_accessor :pending_participant_id - - # The match results for the participants in the match. - # Corresponds to the JSON property `results` - # @return [Array] - attr_accessor :results - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @data = args[:data] if args.key?(:data) - @kind = args[:kind] if args.key?(:kind) - @match_version = args[:match_version] if args.key?(:match_version) - @pending_participant_id = args[:pending_participant_id] if args.key?(:pending_participant_id) - @results = args[:results] if args.key?(:results) + @num_purchases = args[:num_purchases] if args.key?(:num_purchases) + @num_sessions = args[:num_sessions] if args.key?(:num_sessions) + @num_sessions_percentile = args[:num_sessions_percentile] if args.key?(:num_sessions_percentile) + @spend_percentile = args[:spend_percentile] if args.key?(:spend_percentile) + @spend_probability = args[:spend_probability] if args.key?(:spend_probability) + @total_spend_next_28_days = args[:total_spend_next_28_days] if args.key?(:total_spend_next_28_days) end end end diff --git a/generated/google/apis/games_v1/representations.rb b/generated/google/apis/games_v1/representations.rb index 8c47c37d8..75ecd3888 100644 --- a/generated/google/apis/games_v1/representations.rb +++ b/generated/google/apis/games_v1/representations.rb @@ -82,18 +82,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class AggregateStats - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AnonymousPlayer - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Application class Representation < Google::Apis::Core::JsonRepresentation; end @@ -262,36 +250,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class NetworkDiagnostics - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ParticipantResult - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PeerChannelDiagnostics - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PeerSessionDiagnostics - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Played - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Player class Representation < Google::Apis::Core::JsonRepresentation; end @@ -388,114 +346,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class PushToken - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PushTokenId - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Ios - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - class CheckRevisionResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Room - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class RoomAutoMatchStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class RoomAutoMatchingCriteria - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class RoomClientAddress - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CreateRoomRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class JoinRoomRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class RoomLeaveDiagnostics - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LeaveRoomRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class RoomList - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class RoomModification - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class RoomP2PStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class RoomP2PStatuses - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class RoomParticipant - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class RoomStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ScoreSubmission class Representation < Google::Apis::Core::JsonRepresentation; end @@ -520,73 +376,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class TurnBasedAutoMatchingCriteria - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TurnBasedMatch - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CreateTurnBasedMatchRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TurnBasedMatchData - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TurnBasedMatchDataRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TurnBasedMatchList - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TurnBasedMatchModification - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TurnBasedMatchParticipant - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TurnBasedMatchRematch - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TurnBasedMatchResults - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TurnBasedMatchSync - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TurnBasedMatchTurn + class StatsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -698,26 +488,6 @@ module Google end end - class AggregateStats - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :count, :numeric_string => true, as: 'count' - property :kind, as: 'kind' - property :max, :numeric_string => true, as: 'max' - property :min, :numeric_string => true, as: 'min' - property :sum, :numeric_string => true, as: 'sum' - end - end - - class AnonymousPlayer - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :avatar_image_url, as: 'avatarImageUrl' - property :display_name, as: 'displayName' - property :kind, as: 'kind' - end - end - class Application # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1033,68 +803,6 @@ module Google end end - class NetworkDiagnostics - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :android_network_subtype, as: 'androidNetworkSubtype' - property :android_network_type, as: 'androidNetworkType' - property :ios_network_type, as: 'iosNetworkType' - property :kind, as: 'kind' - property :network_operator_code, as: 'networkOperatorCode' - property :network_operator_name, as: 'networkOperatorName' - property :registration_latency_millis, as: 'registrationLatencyMillis' - end - end - - class ParticipantResult - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :participant_id, as: 'participantId' - property :placing, as: 'placing' - property :result, as: 'result' - end - end - - class PeerChannelDiagnostics - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bytes_received, as: 'bytesReceived', class: Google::Apis::GamesV1::AggregateStats, decorator: Google::Apis::GamesV1::AggregateStats::Representation - - property :bytes_sent, as: 'bytesSent', class: Google::Apis::GamesV1::AggregateStats, decorator: Google::Apis::GamesV1::AggregateStats::Representation - - property :kind, as: 'kind' - property :num_messages_lost, as: 'numMessagesLost' - property :num_messages_received, as: 'numMessagesReceived' - property :num_messages_sent, as: 'numMessagesSent' - property :num_send_failures, as: 'numSendFailures' - property :roundtrip_latency_millis, as: 'roundtripLatencyMillis', class: Google::Apis::GamesV1::AggregateStats, decorator: Google::Apis::GamesV1::AggregateStats::Representation - - end - end - - class PeerSessionDiagnostics - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :connected_timestamp_millis, :numeric_string => true, as: 'connectedTimestampMillis' - property :kind, as: 'kind' - property :participant_id, as: 'participantId' - property :reliable_channel, as: 'reliableChannel', class: Google::Apis::GamesV1::PeerChannelDiagnostics, decorator: Google::Apis::GamesV1::PeerChannelDiagnostics::Representation - - property :unreliable_channel, as: 'unreliableChannel', class: Google::Apis::GamesV1::PeerChannelDiagnostics, decorator: Google::Apis::GamesV1::PeerChannelDiagnostics::Representation - - end - end - - class Played - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :auto_matched, as: 'autoMatched' - property :kind, as: 'kind' - property :time_millis, :numeric_string => true, as: 'timeMillis' - end - end - class Player # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1106,8 +814,6 @@ module Google property :friend_status, as: 'friendStatus' property :kind, as: 'kind' - property :last_played_with, as: 'lastPlayedWith', class: Google::Apis::GamesV1::Played, decorator: Google::Apis::GamesV1::Played::Representation - property :name, as: 'name', class: Google::Apis::GamesV1::Player::Name, decorator: Google::Apis::GamesV1::Player::Name::Representation property :original_player_id, as: 'originalPlayerId' @@ -1283,34 +989,6 @@ module Google end end - class PushToken - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :client_revision, as: 'clientRevision' - property :id, as: 'id', class: Google::Apis::GamesV1::PushTokenId, decorator: Google::Apis::GamesV1::PushTokenId::Representation - - property :kind, as: 'kind' - property :language, as: 'language' - end - end - - class PushTokenId - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :ios, as: 'ios', class: Google::Apis::GamesV1::PushTokenId::Ios, decorator: Google::Apis::GamesV1::PushTokenId::Ios::Representation - - property :kind, as: 'kind' - end - - class Ios - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :apns_device_token, :base64 => true, as: 'apns_device_token' - property :apns_environment, as: 'apns_environment' - end - end - end - class CheckRevisionResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1320,184 +998,6 @@ module Google end end - class Room - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :application_id, as: 'applicationId' - property :auto_matching_criteria, as: 'autoMatchingCriteria', class: Google::Apis::GamesV1::RoomAutoMatchingCriteria, decorator: Google::Apis::GamesV1::RoomAutoMatchingCriteria::Representation - - property :auto_matching_status, as: 'autoMatchingStatus', class: Google::Apis::GamesV1::RoomAutoMatchStatus, decorator: Google::Apis::GamesV1::RoomAutoMatchStatus::Representation - - property :creation_details, as: 'creationDetails', class: Google::Apis::GamesV1::RoomModification, decorator: Google::Apis::GamesV1::RoomModification::Representation - - property :description, as: 'description' - property :inviter_id, as: 'inviterId' - property :kind, as: 'kind' - property :last_update_details, as: 'lastUpdateDetails', class: Google::Apis::GamesV1::RoomModification, decorator: Google::Apis::GamesV1::RoomModification::Representation - - collection :participants, as: 'participants', class: Google::Apis::GamesV1::RoomParticipant, decorator: Google::Apis::GamesV1::RoomParticipant::Representation - - property :room_id, as: 'roomId' - property :room_status_version, as: 'roomStatusVersion' - property :status, as: 'status' - property :variant, as: 'variant' - end - end - - class RoomAutoMatchStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :wait_estimate_seconds, as: 'waitEstimateSeconds' - end - end - - class RoomAutoMatchingCriteria - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :exclusive_bitmask, :numeric_string => true, as: 'exclusiveBitmask' - property :kind, as: 'kind' - property :max_auto_matching_players, as: 'maxAutoMatchingPlayers' - property :min_auto_matching_players, as: 'minAutoMatchingPlayers' - end - end - - class RoomClientAddress - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :xmpp_address, as: 'xmppAddress' - end - end - - class CreateRoomRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :auto_matching_criteria, as: 'autoMatchingCriteria', class: Google::Apis::GamesV1::RoomAutoMatchingCriteria, decorator: Google::Apis::GamesV1::RoomAutoMatchingCriteria::Representation - - collection :capabilities, as: 'capabilities' - property :client_address, as: 'clientAddress', class: Google::Apis::GamesV1::RoomClientAddress, decorator: Google::Apis::GamesV1::RoomClientAddress::Representation - - collection :invited_player_ids, as: 'invitedPlayerIds' - property :kind, as: 'kind' - property :network_diagnostics, as: 'networkDiagnostics', class: Google::Apis::GamesV1::NetworkDiagnostics, decorator: Google::Apis::GamesV1::NetworkDiagnostics::Representation - - property :request_id, :numeric_string => true, as: 'requestId' - property :variant, as: 'variant' - end - end - - class JoinRoomRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :capabilities, as: 'capabilities' - property :client_address, as: 'clientAddress', class: Google::Apis::GamesV1::RoomClientAddress, decorator: Google::Apis::GamesV1::RoomClientAddress::Representation - - property :kind, as: 'kind' - property :network_diagnostics, as: 'networkDiagnostics', class: Google::Apis::GamesV1::NetworkDiagnostics, decorator: Google::Apis::GamesV1::NetworkDiagnostics::Representation - - end - end - - class RoomLeaveDiagnostics - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :android_network_subtype, as: 'androidNetworkSubtype' - property :android_network_type, as: 'androidNetworkType' - property :ios_network_type, as: 'iosNetworkType' - property :kind, as: 'kind' - property :network_operator_code, as: 'networkOperatorCode' - property :network_operator_name, as: 'networkOperatorName' - collection :peer_session, as: 'peerSession', class: Google::Apis::GamesV1::PeerSessionDiagnostics, decorator: Google::Apis::GamesV1::PeerSessionDiagnostics::Representation - - property :sockets_used, as: 'socketsUsed' - end - end - - class LeaveRoomRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :leave_diagnostics, as: 'leaveDiagnostics', class: Google::Apis::GamesV1::RoomLeaveDiagnostics, decorator: Google::Apis::GamesV1::RoomLeaveDiagnostics::Representation - - property :reason, as: 'reason' - end - end - - class RoomList - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::GamesV1::Room, decorator: Google::Apis::GamesV1::Room::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - - class RoomModification - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :modified_timestamp_millis, :numeric_string => true, as: 'modifiedTimestampMillis' - property :participant_id, as: 'participantId' - end - end - - class RoomP2PStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :connection_setup_latency_millis, as: 'connectionSetupLatencyMillis' - property :error, as: 'error' - property :error_reason, as: 'error_reason' - property :kind, as: 'kind' - property :participant_id, as: 'participantId' - property :status, as: 'status' - property :unreliable_roundtrip_latency_millis, as: 'unreliableRoundtripLatencyMillis' - end - end - - class RoomP2PStatuses - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - collection :updates, as: 'updates', class: Google::Apis::GamesV1::RoomP2PStatus, decorator: Google::Apis::GamesV1::RoomP2PStatus::Representation - - end - end - - class RoomParticipant - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :auto_matched, as: 'autoMatched' - property :auto_matched_player, as: 'autoMatchedPlayer', class: Google::Apis::GamesV1::AnonymousPlayer, decorator: Google::Apis::GamesV1::AnonymousPlayer::Representation - - collection :capabilities, as: 'capabilities' - property :client_address, as: 'clientAddress', class: Google::Apis::GamesV1::RoomClientAddress, decorator: Google::Apis::GamesV1::RoomClientAddress::Representation - - property :connected, as: 'connected' - property :id, as: 'id' - property :kind, as: 'kind' - property :leave_reason, as: 'leaveReason' - property :player, as: 'player', class: Google::Apis::GamesV1::Player, decorator: Google::Apis::GamesV1::Player::Representation - - property :status, as: 'status' - end - end - - class RoomStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :auto_matching_status, as: 'autoMatchingStatus', class: Google::Apis::GamesV1::RoomAutoMatchStatus, decorator: Google::Apis::GamesV1::RoomAutoMatchStatus::Representation - - property :kind, as: 'kind' - collection :participants, as: 'participants', class: Google::Apis::GamesV1::RoomParticipant, decorator: Google::Apis::GamesV1::RoomParticipant::Representation - - property :room_id, as: 'roomId' - property :status, as: 'status' - property :status_version, as: 'statusVersion' - end - end - class ScoreSubmission # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1548,155 +1048,20 @@ module Google end end - class TurnBasedAutoMatchingCriteria + class StatsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :exclusive_bitmask, :numeric_string => true, as: 'exclusiveBitmask' + 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 :max_auto_matching_players, as: 'maxAutoMatchingPlayers' - property :min_auto_matching_players, as: 'minAutoMatchingPlayers' - end - end - - class TurnBasedMatch - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :application_id, as: 'applicationId' - property :auto_matching_criteria, as: 'autoMatchingCriteria', class: Google::Apis::GamesV1::TurnBasedAutoMatchingCriteria, decorator: Google::Apis::GamesV1::TurnBasedAutoMatchingCriteria::Representation - - property :creation_details, as: 'creationDetails', class: Google::Apis::GamesV1::TurnBasedMatchModification, decorator: Google::Apis::GamesV1::TurnBasedMatchModification::Representation - - property :data, as: 'data', class: Google::Apis::GamesV1::TurnBasedMatchData, decorator: Google::Apis::GamesV1::TurnBasedMatchData::Representation - - property :description, as: 'description' - property :inviter_id, as: 'inviterId' - property :kind, as: 'kind' - property :last_update_details, as: 'lastUpdateDetails', class: Google::Apis::GamesV1::TurnBasedMatchModification, decorator: Google::Apis::GamesV1::TurnBasedMatchModification::Representation - - property :match_id, as: 'matchId' - property :match_number, as: 'matchNumber' - property :match_version, as: 'matchVersion' - collection :participants, as: 'participants', class: Google::Apis::GamesV1::TurnBasedMatchParticipant, decorator: Google::Apis::GamesV1::TurnBasedMatchParticipant::Representation - - property :pending_participant_id, as: 'pendingParticipantId' - property :previous_match_data, as: 'previousMatchData', class: Google::Apis::GamesV1::TurnBasedMatchData, decorator: Google::Apis::GamesV1::TurnBasedMatchData::Representation - - property :rematch_id, as: 'rematchId' - collection :results, as: 'results', class: Google::Apis::GamesV1::ParticipantResult, decorator: Google::Apis::GamesV1::ParticipantResult::Representation - - property :status, as: 'status' - property :user_match_status, as: 'userMatchStatus' - property :variant, as: 'variant' - property :with_participant_id, as: 'withParticipantId' - end - end - - class CreateTurnBasedMatchRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :auto_matching_criteria, as: 'autoMatchingCriteria', class: Google::Apis::GamesV1::TurnBasedAutoMatchingCriteria, decorator: Google::Apis::GamesV1::TurnBasedAutoMatchingCriteria::Representation - - collection :invited_player_ids, as: 'invitedPlayerIds' - property :kind, as: 'kind' - property :request_id, :numeric_string => true, as: 'requestId' - property :variant, as: 'variant' - end - end - - class TurnBasedMatchData - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :data, :base64 => true, as: 'data' - property :data_available, as: 'dataAvailable' - property :kind, as: 'kind' - end - end - - class TurnBasedMatchDataRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :data, :base64 => true, as: 'data' - property :kind, as: 'kind' - end - end - - class TurnBasedMatchList - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::GamesV1::TurnBasedMatch, decorator: Google::Apis::GamesV1::TurnBasedMatch::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - - class TurnBasedMatchModification - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :modified_timestamp_millis, :numeric_string => true, as: 'modifiedTimestampMillis' - property :participant_id, as: 'participantId' - end - end - - class TurnBasedMatchParticipant - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :auto_matched, as: 'autoMatched' - property :auto_matched_player, as: 'autoMatchedPlayer', class: Google::Apis::GamesV1::AnonymousPlayer, decorator: Google::Apis::GamesV1::AnonymousPlayer::Representation - - property :id, as: 'id' - property :kind, as: 'kind' - property :player, as: 'player', class: Google::Apis::GamesV1::Player, decorator: Google::Apis::GamesV1::Player::Representation - - property :status, as: 'status' - end - end - - class TurnBasedMatchRematch - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :previous_match, as: 'previousMatch', class: Google::Apis::GamesV1::TurnBasedMatch, decorator: Google::Apis::GamesV1::TurnBasedMatch::Representation - - property :rematch, as: 'rematch', class: Google::Apis::GamesV1::TurnBasedMatch, decorator: Google::Apis::GamesV1::TurnBasedMatch::Representation - - end - end - - class TurnBasedMatchResults - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :data, as: 'data', class: Google::Apis::GamesV1::TurnBasedMatchDataRequest, decorator: Google::Apis::GamesV1::TurnBasedMatchDataRequest::Representation - - property :kind, as: 'kind' - property :match_version, as: 'matchVersion' - collection :results, as: 'results', class: Google::Apis::GamesV1::ParticipantResult, decorator: Google::Apis::GamesV1::ParticipantResult::Representation - - end - end - - class TurnBasedMatchSync - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::GamesV1::TurnBasedMatch, decorator: Google::Apis::GamesV1::TurnBasedMatch::Representation - - property :kind, as: 'kind' - property :more_available, as: 'moreAvailable' - property :next_page_token, as: 'nextPageToken' - end - end - - class TurnBasedMatchTurn - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :data, as: 'data', class: Google::Apis::GamesV1::TurnBasedMatchDataRequest, decorator: Google::Apis::GamesV1::TurnBasedMatchDataRequest::Representation - - property :kind, as: 'kind' - property :match_version, as: 'matchVersion' - property :pending_participant_id, as: 'pendingParticipantId' - collection :results, as: 'results', class: Google::Apis::GamesV1::ParticipantResult, decorator: Google::Apis::GamesV1::ParticipantResult::Representation - + 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 diff --git a/generated/google/apis/games_v1/service.rb b/generated/google/apis/games_v1/service.rb index 5835fbace..d61c75cd1 100644 --- a/generated/google/apis/games_v1/service.rb +++ b/generated/google/apis/games_v1/service.rb @@ -20,9 +20,11 @@ require 'google/apis/errors' module Google module Apis module GamesV1 - # Google Play Game Services API + # Google Play Game Services # - # The API for Google Play Game Services. + # The Google Play games service allows developers to enhance games with social + # leaderboards, + # achievements, game state, sign-in with Google, and more. # # @example # require 'google/apis/games_v1' @@ -30,7 +32,7 @@ module Google # Games = Google::Apis::GamesV1 # Alias the module # service = Games::GamesService.new # - # @see https://developers.google.com/games/services/ + # @see https://developers.google.com/games/ class GamesService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access, @@ -38,16 +40,12 @@ module Google attr_accessor :key # @return [String] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. attr_accessor :quota_user - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - def initialize - super('https://www.googleapis.com/', 'games/v1/') + super('https://www.googleapis.com/', '') @batch_path = 'batch/games/v1' end @@ -57,16 +55,14 @@ module Google # @param [Fixnum] max_results # The maximum number of achievement resources to return in the response, used # for paging. For any response, the actual number of achievement resources - # returned may be less than the specified maxResults. + # returned may be less than the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -79,8 +75,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_achievement_definitions(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'achievements', options) + def list_achievement_definitions(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/achievements', options) command.response_representation = Google::Apis::GamesV1::ListAchievementDefinitionsResponse::Representation command.response_class = Google::Apis::GamesV1::ListAchievementDefinitionsResponse command.query['language'] = language unless language.nil? @@ -88,7 +84,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -99,16 +94,14 @@ module Google # @param [Fixnum] steps_to_increment # The number of steps to increment. # @param [Fixnum] request_id - # A randomly generated numeric ID for each request specified by the caller. This - # number is used at the server to ensure that the request is handled correctly - # across retries. + # A randomly generated numeric ID for each request specified by the caller. + # This number is used at the server to ensure that the request is handled + # correctly across retries. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -121,8 +114,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def increment_achievement(achievement_id, steps_to_increment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'achievements/{achievementId}/increment', options) + def increment_achievement(achievement_id, steps_to_increment, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'games/v1/achievements/{achievementId}/increment', options) command.response_representation = Google::Apis::GamesV1::AchievementIncrementResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementIncrementResponse command.params['achievementId'] = achievement_id unless achievement_id.nil? @@ -130,33 +123,30 @@ module Google command.query['stepsToIncrement'] = steps_to_increment unless steps_to_increment.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Lists the progress for all your application's achievements for the currently - # authenticated player. + # Lists the progress for all your application's achievements for the + # currently authenticated player. # @param [String] player_id - # A player ID. A value of me may be used in place of the authenticated player's - # ID. + # A player ID. A value of `me` may be used in place of the + # authenticated player's ID. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results # The maximum number of achievement resources to return in the response, used # for paging. For any response, the actual number of achievement resources - # returned may be less than the specified maxResults. + # returned may be less than the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] state - # Tells the server to return only achievements with the specified state. If this - # parameter isn't specified, all achievements are returned. + # Tells the server to return only achievements with the specified state. If + # this parameter isn't specified, all achievements are returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -169,8 +159,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_achievements(player_id, language: nil, max_results: nil, page_token: nil, state: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'players/{playerId}/achievements', options) + def list_achievements(player_id, language: nil, max_results: nil, page_token: nil, state: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/players/{playerId}/achievements', options) command.response_representation = Google::Apis::GamesV1::ListPlayerAchievementResponse::Representation command.response_class = Google::Apis::GamesV1::ListPlayerAchievementResponse command.params['playerId'] = player_id unless player_id.nil? @@ -180,21 +170,18 @@ module Google command.query['state'] = state unless state.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Sets the state of the achievement with the given ID to REVEALED for the - # currently authenticated player. + # Sets the state of the achievement with the given ID to + # `REVEALED` for the currently authenticated player. # @param [String] achievement_id # The ID of the achievement used by this method. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -207,21 +194,20 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def reveal_achievement(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'achievements/{achievementId}/reveal', options) + def reveal_achievement(achievement_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'games/v1/achievements/{achievementId}/reveal', options) command.response_representation = Google::Apis::GamesV1::AchievementRevealResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementRevealResponse command.params['achievementId'] = achievement_id unless achievement_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Sets the steps for the currently authenticated player towards unlocking an - # achievement. If the steps parameter is less than the current number of steps - # that the player already gained for the achievement, the achievement is not - # modified. + # achievement. If the steps parameter is less than the current number of + # steps that the player already gained for the achievement, the achievement + # is not modified. # @param [String] achievement_id # The ID of the achievement used by this method. # @param [Fixnum] steps @@ -229,10 +215,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -245,15 +229,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_achievement_steps_at_least(achievement_id, steps, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'achievements/{achievementId}/setStepsAtLeast', options) + def set_achievement_steps_at_least(achievement_id, steps, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'games/v1/achievements/{achievementId}/setStepsAtLeast', options) command.response_representation = Google::Apis::GamesV1::AchievementSetStepsAtLeastResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementSetStepsAtLeastResponse command.params['achievementId'] = achievement_id unless achievement_id.nil? command.query['steps'] = steps unless steps.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -263,10 +246,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -279,14 +260,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def unlock_achievement(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'achievements/{achievementId}/unlock', options) + def unlock_achievement(achievement_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'games/v1/achievements/{achievementId}/unlock', options) command.response_representation = Google::Apis::GamesV1::AchievementUnlockResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementUnlockResponse command.params['achievementId'] = achievement_id unless achievement_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -295,10 +275,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -311,21 +289,21 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_multiple_achievements(achievement_update_multiple_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'achievements/updateMultiple', options) + def update_multiple_achievements(achievement_update_multiple_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'games/v1/achievements/updateMultiple', options) command.request_representation = Google::Apis::GamesV1::AchievementUpdateMultipleRequest::Representation command.request_object = achievement_update_multiple_request_object command.response_representation = Google::Apis::GamesV1::AchievementUpdateMultipleResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementUpdateMultipleResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Retrieves the metadata of the application with the given ID. If the requested - # application is not available for the specified platformType, the returned - # response will not include any instance data. + # Retrieves the metadata of the application with the given ID. If the + # requested application is not available for the specified + # `platformType`, the returned response will not include any + # instance data. # @param [String] application_id # The application ID from the Google Play developer console. # @param [String] language @@ -335,10 +313,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -351,8 +327,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_application(application_id, language: nil, platform_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'applications/{applicationId}', options) + def get_application(application_id, language: nil, platform_type: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/applications/{applicationId}', options) command.response_representation = Google::Apis::GamesV1::Application::Representation command.response_class = Google::Apis::GamesV1::Application command.params['applicationId'] = application_id unless application_id.nil? @@ -360,18 +336,16 @@ module Google command.query['platformType'] = platform_type unless platform_type.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Indicate that the the currently authenticated user is playing your application. + # Indicate that the currently authenticated user is playing your + # application. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -384,25 +358,22 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def played_application(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'applications/played', options) + def played_application(fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'games/v1/applications/played', options) command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Verifies the auth token provided with this request is for the application with - # the specified ID, and returns the ID of the player it was granted for. + # Verifies the auth token provided with this request is for the application + # with the specified ID, and returns the ID of the player it was granted for. # @param [String] application_id # The application ID from the Google Play developer console. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -415,34 +386,31 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def verify_application(application_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'applications/{applicationId}/verify', options) + def verify_application(application_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/applications/{applicationId}/verify', options) command.response_representation = Google::Apis::GamesV1::ApplicationVerifyResponse::Representation command.response_class = Google::Apis::GamesV1::ApplicationVerifyResponse command.params['applicationId'] = application_id unless application_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Returns a list showing the current progress on events in this application for - # the currently authenticated user. + # Returns a list showing the current progress on events in this application + # for the currently authenticated user. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results - # The maximum number of events to return in the response, used for paging. For - # any response, the actual number of events to return may be less than the - # specified maxResults. + # The maximum number of events to return in the response, used for paging. + # For any response, the actual number of events to return may be less than + # the specified maxResults. # @param [String] page_token # The token returned by the previous request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -455,8 +423,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_event_by_player(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'events', options) + def list_event_by_player(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/events', options) command.response_representation = Google::Apis::GamesV1::ListPlayerEventResponse::Representation command.response_class = Google::Apis::GamesV1::ListPlayerEventResponse command.query['language'] = language unless language.nil? @@ -464,7 +432,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -473,17 +440,15 @@ module Google # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results # The maximum number of event definitions to return in the response, used for - # paging. For any response, the actual number of event definitions to return may - # be less than the specified maxResults. + # paging. For any response, the actual number of event definitions to return + # may be less than the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -496,8 +461,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_event_definitions(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'eventDefinitions', options) + def list_event_definitions(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/eventDefinitions', options) command.response_representation = Google::Apis::GamesV1::ListEventDefinitionResponse::Representation command.response_class = Google::Apis::GamesV1::ListEventDefinitionResponse command.query['language'] = language unless language.nil? @@ -505,22 +470,19 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Records a batch of changes to the number of times events have occurred for the - # currently authenticated user of this application. + # Records a batch of changes to the number of times events have occurred for + # the currently authenticated user of this application. # @param [Google::Apis::GamesV1::EventRecordRequest] event_record_request_object # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -533,8 +495,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def record_event(event_record_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'events', options) + def record_event(event_record_request_object = nil, language: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'games/v1/events', options) command.request_representation = Google::Apis::GamesV1::EventRecordRequest::Representation command.request_object = event_record_request_object command.response_representation = Google::Apis::GamesV1::UpdateEventResponse::Representation @@ -542,7 +504,6 @@ module Google command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -554,10 +515,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -570,15 +529,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_leaderboard(leaderboard_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'leaderboards/{leaderboardId}', options) + def get_leaderboard(leaderboard_id, language: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/leaderboards/{leaderboardId}', options) command.response_representation = Google::Apis::GamesV1::Leaderboard::Representation command.response_class = Google::Apis::GamesV1::Leaderboard command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -586,18 +544,16 @@ module Google # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results - # The maximum number of leaderboards to return in the response. For any response, - # the actual number of leaderboards returned may be less than the specified - # maxResults. + # The maximum number of leaderboards to return in the response. For any + # response, the actual number of leaderboards returned may be less than the + # specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -610,8 +566,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_leaderboards(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'leaderboards', options) + def list_leaderboards(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/leaderboards', options) command.response_representation = Google::Apis::GamesV1::ListLeaderboardResponse::Representation command.response_class = Google::Apis::GamesV1::ListLeaderboardResponse command.query['language'] = language unless language.nil? @@ -619,7 +575,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -627,10 +582,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -643,38 +596,35 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_metagame_config(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'metagameConfig', options) + def get_metagame_config(fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/metagameConfig', options) command.response_representation = Google::Apis::GamesV1::MetagameConfig::Representation command.response_class = Google::Apis::GamesV1::MetagameConfig command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # List play data aggregated per category for the player corresponding to - # playerId. + # `playerId`. # @param [String] player_id - # A player ID. A value of me may be used in place of the authenticated player's - # ID. + # A player ID. A value of `me` may be used in place of the + # authenticated player's ID. # @param [String] collection # The collection of categories for which data will be returned. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results - # The maximum number of category resources to return in the response, used for - # paging. For any response, the actual number of category resources returned may - # be less than the specified maxResults. + # The maximum number of category resources to return in the response, used + # for paging. For any response, the actual number of category resources + # returned may be less than the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -687,8 +637,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_metagame_categories_by_player(player_id, collection, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'players/{playerId}/categories/{collection}', options) + def list_metagame_categories_by_player(player_id, collection, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/players/{playerId}/categories/{collection}', options) command.response_representation = Google::Apis::GamesV1::ListCategoryResponse::Representation command.response_class = Google::Apis::GamesV1::ListCategoryResponse command.params['playerId'] = player_id unless player_id.nil? @@ -698,24 +648,21 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Retrieves the Player resource with the given ID. To retrieve the player for - # the currently authenticated user, set playerId to me. + # Retrieves the Player resource with the given ID. To retrieve the player + # for the currently authenticated user, set `playerId` to `me`. # @param [String] player_id - # A player ID. A value of me may be used in place of the authenticated player's - # ID. + # A player ID. A value of `me` may be used in place of the + # authenticated player's ID. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -728,15 +675,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_player(player_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'players/{playerId}', options) + def get_player(player_id, language: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/players/{playerId}', options) command.response_representation = Google::Apis::GamesV1::Player::Representation command.response_class = Google::Apis::GamesV1::Player command.params['playerId'] = player_id unless player_id.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -747,17 +693,15 @@ module Google # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results # The maximum number of player resources to return in the response, used for - # paging. For any response, the actual number of player resources returned may - # be less than the specified maxResults. + # paging. For any response, the actual number of player resources returned + # may be less than the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -770,8 +714,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_players(collection, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'players/me/players/{collection}', options) + def list_players(collection, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/players/me/players/{collection}', options) command.response_representation = Google::Apis::GamesV1::ListPlayerResponse::Representation command.response_class = Google::Apis::GamesV1::ListPlayerResponse command.params['collection'] = collection unless collection.nil? @@ -780,88 +724,21 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Removes a push token for the current user and application. Removing a non- - # existent push token will report success. - # @param [Google::Apis::GamesV1::PushTokenId] push_token_id_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def remove_pushtoken(push_token_id_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'pushtokens/remove', options) - command.request_representation = Google::Apis::GamesV1::PushTokenId::Representation - command.request_object = push_token_id_object - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Registers a push token for the current user and application. - # @param [Google::Apis::GamesV1::PushToken] push_token_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_pushtoken(push_token_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'pushtokens', options) - command.request_representation = Google::Apis::GamesV1::PushToken::Representation - command.request_object = push_token_object - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Checks whether the games client is out of date. # @param [String] client_revision # The revision of the client SDK used by your application. Format: - # [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of PLATFORM_TYPE are: - # - # - "ANDROID" - Client is running the Android SDK. - # - "IOS" - Client is running the iOS SDK. - # - "WEB_APP" - Client is running as a Web App. + # `[PLATFORM_TYPE]:[VERSION_NUMBER]`. Possible values of `PLATFORM_TYPE` are: + # * `ANDROID` - Client is running the Android SDK. + # * `IOS` - Client is running the iOS SDK. + # * `WEB_APP` - Client is running as a Web App. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -874,330 +751,27 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def check_revision(client_revision, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'revisions/check', options) + def check_revision(client_revision, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/revisions/check', options) command.response_representation = Google::Apis::GamesV1::CheckRevisionResponse::Representation command.response_class = Google::Apis::GamesV1::CheckRevisionResponse command.query['clientRevision'] = client_revision unless client_revision.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Create a room. For internal use by the Games SDK only. Calling this method - # directly is unsupported. - # @param [Google::Apis::GamesV1::CreateRoomRequest] create_room_request_object - # @param [String] language - # The preferred language to use for strings returned by this method. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GamesV1::Room] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GamesV1::Room] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_room(create_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'rooms/create', options) - command.request_representation = Google::Apis::GamesV1::CreateRoomRequest::Representation - command.request_object = create_room_request_object - command.response_representation = Google::Apis::GamesV1::Room::Representation - command.response_class = Google::Apis::GamesV1::Room - command.query['language'] = language unless language.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Decline an invitation to join a room. For internal use by the Games SDK only. - # Calling this method directly is unsupported. - # @param [String] room_id - # The ID of the room. - # @param [String] language - # The preferred language to use for strings returned by this method. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GamesV1::Room] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GamesV1::Room] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def decline_room(room_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'rooms/{roomId}/decline', options) - command.response_representation = Google::Apis::GamesV1::Room::Representation - command.response_class = Google::Apis::GamesV1::Room - command.params['roomId'] = room_id unless room_id.nil? - command.query['language'] = language unless language.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Dismiss an invitation to join a room. For internal use by the Games SDK only. - # Calling this method directly is unsupported. - # @param [String] room_id - # The ID of the room. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def dismiss_room(room_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'rooms/{roomId}/dismiss', options) - command.params['roomId'] = room_id unless room_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Get the data for a room. - # @param [String] room_id - # The ID of the room. - # @param [String] language - # The preferred language to use for strings returned by this method. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GamesV1::Room] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GamesV1::Room] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_room(room_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'rooms/{roomId}', options) - command.response_representation = Google::Apis::GamesV1::Room::Representation - command.response_class = Google::Apis::GamesV1::Room - command.params['roomId'] = room_id unless room_id.nil? - command.query['language'] = language unless language.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Join a room. For internal use by the Games SDK only. Calling this method - # directly is unsupported. - # @param [String] room_id - # The ID of the room. - # @param [Google::Apis::GamesV1::JoinRoomRequest] join_room_request_object - # @param [String] language - # The preferred language to use for strings returned by this method. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GamesV1::Room] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GamesV1::Room] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def join_room(room_id, join_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'rooms/{roomId}/join', options) - command.request_representation = Google::Apis::GamesV1::JoinRoomRequest::Representation - command.request_object = join_room_request_object - command.response_representation = Google::Apis::GamesV1::Room::Representation - command.response_class = Google::Apis::GamesV1::Room - command.params['roomId'] = room_id unless room_id.nil? - command.query['language'] = language unless language.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Leave a room. For internal use by the Games SDK only. Calling this method - # directly is unsupported. - # @param [String] room_id - # The ID of the room. - # @param [Google::Apis::GamesV1::LeaveRoomRequest] leave_room_request_object - # @param [String] language - # The preferred language to use for strings returned by this method. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GamesV1::Room] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GamesV1::Room] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def leave_room(room_id, leave_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'rooms/{roomId}/leave', options) - command.request_representation = Google::Apis::GamesV1::LeaveRoomRequest::Representation - command.request_object = leave_room_request_object - command.response_representation = Google::Apis::GamesV1::Room::Representation - command.response_class = Google::Apis::GamesV1::Room - command.params['roomId'] = room_id unless room_id.nil? - command.query['language'] = language unless language.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Returns invitations to join rooms. - # @param [String] language - # The preferred language to use for strings returned by this method. - # @param [Fixnum] max_results - # The maximum number of rooms to return in the response, used for paging. For - # any response, the actual number of rooms to return may be less than the - # specified maxResults. - # @param [String] page_token - # The token returned by the previous request. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GamesV1::RoomList] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GamesV1::RoomList] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_rooms(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'rooms', options) - command.response_representation = Google::Apis::GamesV1::RoomList::Representation - command.response_class = Google::Apis::GamesV1::RoomList - command.query['language'] = language unless language.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Updates sent by a client reporting the status of peers in a room. For internal - # use by the Games SDK only. Calling this method directly is unsupported. - # @param [String] room_id - # The ID of the room. - # @param [Google::Apis::GamesV1::RoomP2PStatuses] room_p2_p_statuses_object - # @param [String] language - # The preferred language to use for strings returned by this method. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GamesV1::RoomStatus] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GamesV1::RoomStatus] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def report_room_status(room_id, room_p2_p_statuses_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'rooms/{roomId}/reportstatus', options) - command.request_representation = Google::Apis::GamesV1::RoomP2PStatuses::Representation - command.request_object = room_p2_p_statuses_object - command.response_representation = Google::Apis::GamesV1::RoomStatus::Representation - command.response_class = Google::Apis::GamesV1::RoomStatus - command.params['roomId'] = room_id unless room_id.nil? - command.query['language'] = language unless language.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Get high scores, and optionally ranks, in leaderboards for the currently - # authenticated player. For a specific time span, leaderboardId can be set to - # ALL to retrieve data for all leaderboards in a given time span. - # NOTE: You cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same - # request; only one parameter may be set to 'ALL'. + # authenticated player. For a specific time span, `leaderboardId` + # can be set to `ALL` to retrieve data for all leaderboards in a + # given time span. `NOTE: You cannot ask for 'ALL' leaderboards and + # 'ALL' timeSpans in the same request; only one parameter may be set to + # 'ALL'. # @param [String] player_id - # A player ID. A value of me may be used in place of the authenticated player's - # ID. + # A player ID. A value of `me` may be used in place of the + # authenticated player's ID. # @param [String] leaderboard_id - # The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all + # The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all # leaderboards for this application. # @param [String] time_span # The time span for the scores and ranks you're requesting. @@ -1207,18 +781,16 @@ module Google # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results - # The maximum number of leaderboard scores to return in the response. For any - # response, the actual number of leaderboard scores returned may be less than - # the specified maxResults. + # The maximum number of leaderboard scores to return in the response. For + # any response, the actual number of leaderboard scores returned may be less + # than the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1231,8 +803,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_score(player_id, leaderboard_id, time_span, include_rank_type: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}', options) + def get_score(player_id, leaderboard_id, time_span, include_rank_type: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}', options) command.response_representation = Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse::Representation command.response_class = Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse command.params['playerId'] = player_id unless player_id.nil? @@ -1244,7 +816,6 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1258,18 +829,16 @@ module Google # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results - # The maximum number of leaderboard scores to return in the response. For any - # response, the actual number of leaderboard scores returned may be less than - # the specified maxResults. + # The maximum number of leaderboard scores to return in the response. For + # any response, the actual number of leaderboard scores returned may be less + # than the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1282,8 +851,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_scores(leaderboard_id, collection, time_span, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'leaderboards/{leaderboardId}/scores/{collection}', options) + def list_scores(leaderboard_id, collection, time_span, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/leaderboards/{leaderboardId}/scores/{collection}', options) command.response_representation = Google::Apis::GamesV1::LeaderboardScores::Representation command.response_class = Google::Apis::GamesV1::LeaderboardScores command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? @@ -1294,7 +863,6 @@ module Google command.query['timeSpan'] = time_span unless time_span.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1308,26 +876,24 @@ module Google # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results - # The maximum number of leaderboard scores to return in the response. For any - # response, the actual number of leaderboard scores returned may be less than - # the specified maxResults. + # The maximum number of leaderboard scores to return in the response. For + # any response, the actual number of leaderboard scores returned may be less + # than the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [Fixnum] results_above - # The preferred number of scores to return above the player's score. More scores - # may be returned if the player is at the bottom of the leaderboard; fewer may - # be returned if the player is at the top. Must be less than or equal to - # maxResults. + # The preferred number of scores to return above the player's score. More + # scores may be returned if the player is at the bottom of the leaderboard; + # fewer may be returned if the player is at the top. Must be less than or + # equal to maxResults. # @param [Boolean] return_top_if_absent # True if the top scores should be returned when the player is not in the # leaderboard. Defaults to true. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1340,8 +906,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_score_window(leaderboard_id, collection, time_span, language: nil, max_results: nil, page_token: nil, results_above: nil, return_top_if_absent: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'leaderboards/{leaderboardId}/window/{collection}', options) + def list_score_window(leaderboard_id, collection, time_span, language: nil, max_results: nil, page_token: nil, results_above: nil, return_top_if_absent: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/leaderboards/{leaderboardId}/window/{collection}', options) command.response_representation = Google::Apis::GamesV1::LeaderboardScores::Representation command.response_class = Google::Apis::GamesV1::LeaderboardScores command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? @@ -1354,7 +920,6 @@ module Google command.query['timeSpan'] = time_span unless time_span.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1363,23 +928,22 @@ module Google # The ID of the leaderboard. # @param [Fixnum] score # The score you're submitting. The submitted score is ignored if it is worse - # than a previously submitted score, where worse depends on the leaderboard sort - # order. The meaning of the score value depends on the leaderboard format type. - # For fixed-point, the score represents the raw value. For time, the score - # represents elapsed time in milliseconds. For currency, the score represents a - # value in micro units. + # than a previously submitted score, where worse depends on the leaderboard + # sort order. The meaning of the score value depends on the leaderboard + # format type. For fixed-point, the score represents the raw value. For + # time, the score represents elapsed time in milliseconds. For currency, the + # score represents a value in micro units. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] score_tag - # Additional information about the score you're submitting. Values must contain - # no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986. + # Additional information about the score you're submitting. Values must + # contain no more than 64 URI-safe characters as defined by section 2.3 of + # RFC 3986. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1392,8 +956,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def submit_score(leaderboard_id, score, language: nil, score_tag: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'leaderboards/{leaderboardId}/scores', options) + def submit_score(leaderboard_id, score, language: nil, score_tag: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'games/v1/leaderboards/{leaderboardId}/scores', options) command.response_representation = Google::Apis::GamesV1::PlayerScoreResponse::Representation command.response_class = Google::Apis::GamesV1::PlayerScoreResponse command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? @@ -1402,7 +966,6 @@ module Google command.query['scoreTag'] = score_tag unless score_tag.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1413,10 +976,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1429,8 +990,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def submit_score_multiple(player_score_submission_list_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'leaderboards/scores', options) + def submit_score_multiple(player_score_submission_list_object = nil, language: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'games/v1/leaderboards/scores', options) command.request_representation = Google::Apis::GamesV1::PlayerScoreSubmissionList::Representation command.request_object = player_score_submission_list_object command.response_representation = Google::Apis::GamesV1::ListPlayerScoreResponse::Representation @@ -1438,7 +999,6 @@ module Google command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1450,10 +1010,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1466,38 +1024,35 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_snapshot(snapshot_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'snapshots/{snapshotId}', options) + def get_snapshot(snapshot_id, language: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/snapshots/{snapshotId}', options) command.response_representation = Google::Apis::GamesV1::Snapshot::Representation command.response_class = Google::Apis::GamesV1::Snapshot command.params['snapshotId'] = snapshot_id unless snapshot_id.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end # Retrieves a list of snapshots created by your application for the player # corresponding to the player ID. # @param [String] player_id - # A player ID. A value of me may be used in place of the authenticated player's - # ID. + # A player ID. A value of `me` may be used in place of the authenticated + # player's ID. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results - # The maximum number of snapshot resources to return in the response, used for - # paging. For any response, the actual number of snapshot resources returned may - # be less than the specified maxResults. + # The maximum number of snapshot resources to return in the response, used + # for paging. For any response, the actual number of snapshot resources + # returned may be less than the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1510,8 +1065,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_snapshots(player_id, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'players/{playerId}/snapshots', options) + def list_snapshots(player_id, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/players/{playerId}/snapshots', options) command.response_representation = Google::Apis::GamesV1::ListSnapshotResponse::Representation command.response_class = Google::Apis::GamesV1::ListSnapshotResponse command.params['playerId'] = player_id unless player_id.nil? @@ -1520,530 +1075,34 @@ module Google command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Cancel a turn-based match. - # @param [String] match_id - # The ID of the match. + # Returns engagement and spend statistics in this application for the + # currently authenticated user. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method + # @yieldparam result [Google::Apis::GamesV1::StatsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [void] + # @return [Google::Apis::GamesV1::StatsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancel_turn_based_match(match_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'turnbasedmatches/{matchId}/cancel', options) - command.params['matchId'] = match_id unless match_id.nil? + def get_stat(fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'games/v1/stats', options) + command.response_representation = Google::Apis::GamesV1::StatsResponse::Representation + command.response_class = Google::Apis::GamesV1::StatsResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Create a turn-based match. - # @param [Google::Apis::GamesV1::CreateTurnBasedMatchRequest] create_turn_based_match_request_object - # @param [String] language - # The preferred language to use for strings returned by this method. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatch] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GamesV1::TurnBasedMatch] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_turn_based_match(create_turn_based_match_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'turnbasedmatches/create', options) - command.request_representation = Google::Apis::GamesV1::CreateTurnBasedMatchRequest::Representation - command.request_object = create_turn_based_match_request_object - command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation - command.response_class = Google::Apis::GamesV1::TurnBasedMatch - command.query['language'] = language unless language.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Decline an invitation to play a turn-based match. - # @param [String] match_id - # The ID of the match. - # @param [String] language - # The preferred language to use for strings returned by this method. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatch] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GamesV1::TurnBasedMatch] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def decline_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'turnbasedmatches/{matchId}/decline', options) - command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation - command.response_class = Google::Apis::GamesV1::TurnBasedMatch - command.params['matchId'] = match_id unless match_id.nil? - command.query['language'] = language unless language.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Dismiss a turn-based match from the match list. The match will no longer show - # up in the list and will not generate notifications. - # @param [String] match_id - # The ID of the match. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def dismiss_turn_based_match(match_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'turnbasedmatches/{matchId}/dismiss', options) - command.params['matchId'] = match_id unless match_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Finish a turn-based match. Each player should make this call once, after all - # results are in. Only the player whose turn it is may make the first call to - # Finish, and can pass in the final match state. - # @param [String] match_id - # The ID of the match. - # @param [Google::Apis::GamesV1::TurnBasedMatchResults] turn_based_match_results_object - # @param [String] language - # The preferred language to use for strings returned by this method. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatch] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GamesV1::TurnBasedMatch] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def finish_turn_based_match(match_id, turn_based_match_results_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'turnbasedmatches/{matchId}/finish', options) - command.request_representation = Google::Apis::GamesV1::TurnBasedMatchResults::Representation - command.request_object = turn_based_match_results_object - command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation - command.response_class = Google::Apis::GamesV1::TurnBasedMatch - command.params['matchId'] = match_id unless match_id.nil? - command.query['language'] = language unless language.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Get the data for a turn-based match. - # @param [String] match_id - # The ID of the match. - # @param [Boolean] include_match_data - # Get match data along with metadata. - # @param [String] language - # The preferred language to use for strings returned by this method. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatch] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GamesV1::TurnBasedMatch] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_turn_based_match(match_id, include_match_data: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'turnbasedmatches/{matchId}', options) - command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation - command.response_class = Google::Apis::GamesV1::TurnBasedMatch - command.params['matchId'] = match_id unless match_id.nil? - command.query['includeMatchData'] = include_match_data unless include_match_data.nil? - command.query['language'] = language unless language.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Join a turn-based match. - # @param [String] match_id - # The ID of the match. - # @param [String] language - # The preferred language to use for strings returned by this method. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatch] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GamesV1::TurnBasedMatch] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def join_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'turnbasedmatches/{matchId}/join', options) - command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation - command.response_class = Google::Apis::GamesV1::TurnBasedMatch - command.params['matchId'] = match_id unless match_id.nil? - command.query['language'] = language unless language.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Leave a turn-based match when it is not the current player's turn, without - # canceling the match. - # @param [String] match_id - # The ID of the match. - # @param [String] language - # The preferred language to use for strings returned by this method. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatch] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GamesV1::TurnBasedMatch] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def leave_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'turnbasedmatches/{matchId}/leave', options) - command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation - command.response_class = Google::Apis::GamesV1::TurnBasedMatch - command.params['matchId'] = match_id unless match_id.nil? - command.query['language'] = language unless language.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Leave a turn-based match during the current player's turn, without canceling - # the match. - # @param [String] match_id - # The ID of the match. - # @param [Fixnum] match_version - # The version of the match being updated. - # @param [String] language - # The preferred language to use for strings returned by this method. - # @param [String] pending_participant_id - # The ID of another participant who should take their turn next. If not set, the - # match will wait for other player(s) to join via automatching; this is only - # valid if automatch criteria is set on the match with remaining slots for - # automatched players. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatch] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GamesV1::TurnBasedMatch] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def leave_turn(match_id, match_version, language: nil, pending_participant_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'turnbasedmatches/{matchId}/leaveTurn', options) - command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation - command.response_class = Google::Apis::GamesV1::TurnBasedMatch - command.params['matchId'] = match_id unless match_id.nil? - command.query['language'] = language unless language.nil? - command.query['matchVersion'] = match_version unless match_version.nil? - command.query['pendingParticipantId'] = pending_participant_id unless pending_participant_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Returns turn-based matches the player is or was involved in. - # @param [Boolean] include_match_data - # True if match data should be returned in the response. Note that not all data - # will necessarily be returned if include_match_data is true; the server may - # decide to only return data for some of the matches to limit download size for - # the client. The remainder of the data for these matches will be retrievable on - # request. - # @param [String] language - # The preferred language to use for strings returned by this method. - # @param [Fixnum] max_completed_matches - # The maximum number of completed or canceled matches to return in the response. - # If not set, all matches returned could be completed or canceled. - # @param [Fixnum] max_results - # The maximum number of matches to return in the response, used for paging. For - # any response, the actual number of matches to return may be less than the - # specified maxResults. - # @param [String] page_token - # The token returned by the previous request. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatchList] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GamesV1::TurnBasedMatchList] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_turn_based_matches(include_match_data: nil, language: nil, max_completed_matches: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'turnbasedmatches', options) - command.response_representation = Google::Apis::GamesV1::TurnBasedMatchList::Representation - command.response_class = Google::Apis::GamesV1::TurnBasedMatchList - command.query['includeMatchData'] = include_match_data unless include_match_data.nil? - command.query['language'] = language unless language.nil? - command.query['maxCompletedMatches'] = max_completed_matches unless max_completed_matches.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Create a rematch of a match that was previously completed, with the same - # participants. This can be called by only one player on a match still in their - # list; the player must have called Finish first. Returns the newly created - # match; it will be the caller's turn. - # @param [String] match_id - # The ID of the match. - # @param [String] language - # The preferred language to use for strings returned by this method. - # @param [Fixnum] request_id - # A randomly generated numeric ID for each request specified by the caller. This - # number is used at the server to ensure that the request is handled correctly - # across retries. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatchRematch] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GamesV1::TurnBasedMatchRematch] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def rematch_turn_based_match(match_id, language: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'turnbasedmatches/{matchId}/rematch', options) - command.response_representation = Google::Apis::GamesV1::TurnBasedMatchRematch::Representation - command.response_class = Google::Apis::GamesV1::TurnBasedMatchRematch - command.params['matchId'] = match_id unless match_id.nil? - command.query['language'] = language unless language.nil? - command.query['requestId'] = request_id unless request_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Returns turn-based matches the player is or was involved in that changed since - # the last sync call, with the least recent changes coming first. Matches that - # should be removed from the local cache will have a status of MATCH_DELETED. - # @param [Boolean] include_match_data - # True if match data should be returned in the response. Note that not all data - # will necessarily be returned if include_match_data is true; the server may - # decide to only return data for some of the matches to limit download size for - # the client. The remainder of the data for these matches will be retrievable on - # request. - # @param [String] language - # The preferred language to use for strings returned by this method. - # @param [Fixnum] max_completed_matches - # The maximum number of completed or canceled matches to return in the response. - # If not set, all matches returned could be completed or canceled. - # @param [Fixnum] max_results - # The maximum number of matches to return in the response, used for paging. For - # any response, the actual number of matches to return may be less than the - # specified maxResults. - # @param [String] page_token - # The token returned by the previous request. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatchSync] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GamesV1::TurnBasedMatchSync] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def sync_turn_based_match(include_match_data: nil, language: nil, max_completed_matches: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'turnbasedmatches/sync', options) - command.response_representation = Google::Apis::GamesV1::TurnBasedMatchSync::Representation - command.response_class = Google::Apis::GamesV1::TurnBasedMatchSync - command.query['includeMatchData'] = include_match_data unless include_match_data.nil? - command.query['language'] = language unless language.nil? - command.query['maxCompletedMatches'] = max_completed_matches unless max_completed_matches.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Commit the results of a player turn. - # @param [String] match_id - # The ID of the match. - # @param [Google::Apis::GamesV1::TurnBasedMatchTurn] turn_based_match_turn_object - # @param [String] language - # The preferred language to use for strings returned by this method. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatch] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::GamesV1::TurnBasedMatch] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def take_turn(match_id, turn_based_match_turn_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'turnbasedmatches/{matchId}/turn', options) - command.request_representation = Google::Apis::GamesV1::TurnBasedMatchTurn::Representation - command.request_object = turn_based_match_turn_object - command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation - command.response_class = Google::Apis::GamesV1::TurnBasedMatch - command.params['matchId'] = match_id unless match_id.nil? - command.query['language'] = language unless language.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -2052,7 +1111,6 @@ module Google def apply_command_defaults(command) command.query['key'] = key unless key.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? end end end diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb index 73f8c3f0e..92627e8c8 100644 --- a/generated/google/apis/ml_v1.rb +++ b/generated/google/apis/ml_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/ml/ module MlV1 VERSION = 'V1' - REVISION = '20200629' + REVISION = '20200630' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/ml_v1/classes.rb b/generated/google/apis/ml_v1/classes.rb index e2f231850..33d34c409 100644 --- a/generated/google/apis/ml_v1/classes.rb +++ b/generated/google/apis/ml_v1/classes.rb @@ -3101,7 +3101,7 @@ module Google # ` # "audit_configs": [ # ` - # "service": "allServices", + # "service": "allServices" # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -3110,18 +3110,18 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE" + # "log_type": "DATA_WRITE", # `, # ` - # "log_type": "ADMIN_READ" + # "log_type": "ADMIN_READ", # ` # ] # `, # ` - # "service": "sampleservice.googleapis.com", + # "service": "sampleservice.googleapis.com" # "audit_log_configs": [ # ` - # "log_type": "DATA_READ" + # "log_type": "DATA_READ", # `, # ` # "log_type": "DATA_WRITE", @@ -3173,7 +3173,7 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE" + # "log_type": "DATA_WRITE", # ` # ] # ` diff --git a/generated/google/apis/run_v1.rb b/generated/google/apis/run_v1.rb index 358cffe7f..19730ecb1 100644 --- a/generated/google/apis/run_v1.rb +++ b/generated/google/apis/run_v1.rb @@ -18,7 +18,7 @@ require 'google/apis/run_v1/representations.rb' module Google module Apis - # Cloud Run Admin API + # Cloud Run API # # Deploy and manage user provided container images that scale automatically # based on HTTP traffic. diff --git a/generated/google/apis/run_v1/classes.rb b/generated/google/apis/run_v1/classes.rb index c8cb74612..e09ea0606 100644 --- a/generated/google/apis/run_v1/classes.rb +++ b/generated/google/apis/run_v1/classes.rb @@ -2449,12 +2449,7 @@ module Google # @return [String] attr_accessor :service_account_name - # TimeoutSeconds holds the max duration the instance is allowed for - # responding to a request. - # Cloud Run fully managed: defaults to 300 seconds (5 minutes). Maximum - # allowed value is 900 seconds (15 minutes). - # Cloud Run for Anthos: defaults to 300 seconds (5 minutes). Maximum allowed - # value is configurable by the cluster operator. + # # Corresponds to the JSON property `timeoutSeconds` # @return [Fixnum] attr_accessor :timeout_seconds diff --git a/generated/google/apis/run_v1/service.rb b/generated/google/apis/run_v1/service.rb index 89c764618..9db33cbc0 100644 --- a/generated/google/apis/run_v1/service.rb +++ b/generated/google/apis/run_v1/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module RunV1 - # Cloud Run Admin API + # Cloud Run API # # Deploy and manage user provided container images that scale automatically # based on HTTP traffic. diff --git a/generated/google/apis/run_v1alpha1.rb b/generated/google/apis/run_v1alpha1.rb index 9c70989c2..1b1dcd1c7 100644 --- a/generated/google/apis/run_v1alpha1.rb +++ b/generated/google/apis/run_v1alpha1.rb @@ -18,7 +18,7 @@ require 'google/apis/run_v1alpha1/representations.rb' module Google module Apis - # Cloud Run Admin API + # Cloud Run API # # Deploy and manage user provided container images that scale automatically # based on HTTP traffic. diff --git a/generated/google/apis/run_v1alpha1/service.rb b/generated/google/apis/run_v1alpha1/service.rb index 25918fc7e..be813bddb 100644 --- a/generated/google/apis/run_v1alpha1/service.rb +++ b/generated/google/apis/run_v1alpha1/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module RunV1alpha1 - # Cloud Run Admin API + # Cloud Run API # # Deploy and manage user provided container images that scale automatically # based on HTTP traffic. diff --git a/generated/google/apis/run_v1beta1.rb b/generated/google/apis/run_v1beta1.rb index 6ff7e18e8..d74a66099 100644 --- a/generated/google/apis/run_v1beta1.rb +++ b/generated/google/apis/run_v1beta1.rb @@ -18,7 +18,7 @@ require 'google/apis/run_v1beta1/representations.rb' module Google module Apis - # Cloud Run Admin API + # Cloud Run API # # Deploy and manage user provided container images that scale automatically # based on HTTP traffic. diff --git a/generated/google/apis/run_v1beta1/service.rb b/generated/google/apis/run_v1beta1/service.rb index 62df9bd77..805fbb938 100644 --- a/generated/google/apis/run_v1beta1/service.rb +++ b/generated/google/apis/run_v1beta1/service.rb @@ -20,7 +20,7 @@ require 'google/apis/errors' module Google module Apis module RunV1beta1 - # Cloud Run Admin API + # Cloud Run API # # Deploy and manage user provided container images that scale automatically # based on HTTP traffic.