Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of playintegrity v1 client #20655

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -275721,7 +275721,10 @@
"/playintegrity:v1/DecodeIntegrityTokenRequest/integrityToken": integrity_token
"/playintegrity:v1/DecodeIntegrityTokenResponse": decode_integrity_token_response
"/playintegrity:v1/DecodeIntegrityTokenResponse/tokenPayloadExternal": token_payload_external
"/playintegrity:v1/DeviceAttributes": device_attributes
"/playintegrity:v1/DeviceAttributes/sdkVersion": sdk_version
"/playintegrity:v1/DeviceIntegrity": device_integrity
"/playintegrity:v1/DeviceIntegrity/deviceAttributes": device_attributes
"/playintegrity:v1/DeviceIntegrity/deviceRecall": device_recall
"/playintegrity:v1/DeviceIntegrity/deviceRecognitionVerdict": device_recognition_verdict
"/playintegrity:v1/DeviceIntegrity/deviceRecognitionVerdict/device_recognition_verdict": device_recognition_verdict
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-playintegrity_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-playintegrity_v1

### v0.30.0 (2024-11-24)

* Regenerated from discovery document revision 20241119

### v0.29.0 (2024-08-18)

* Regenerated from discovery document revision 20240813
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,39 @@ def update!(**args)
end
end

# Contains information about the device for which the integrity token was
# generated, e.g. Android SDK version.
class DeviceAttributes
include Google::Apis::Core::Hashable

# Android SDK version of the device, as defined in the public Android
# documentation: https://developer.android.com/reference/android/os/Build.
# VERSION_CODES. It won't be set if a necessary requirement was missed. For
# example DeviceIntegrity did not meet the minimum bar.
# Corresponds to the JSON property `sdkVersion`
# @return [Fixnum]
attr_accessor :sdk_version

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

# Update properties of this object
def update!(**args)
@sdk_version = args[:sdk_version] if args.key?(:sdk_version)
end
end

# Contains the device attestation information.
class DeviceIntegrity
include Google::Apis::Core::Hashable

# Contains information about the device for which the integrity token was
# generated, e.g. Android SDK version.
# Corresponds to the JSON property `deviceAttributes`
# @return [Google::Apis::PlayintegrityV1::DeviceAttributes]
attr_accessor :device_attributes

# Contains the recall bits per device set by the developer.
# Corresponds to the JSON property `deviceRecall`
# @return [Google::Apis::PlayintegrityV1::DeviceRecall]
Expand All @@ -212,6 +241,7 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@device_attributes = args[:device_attributes] if args.key?(:device_attributes)
@device_recall = args[:device_recall] if args.key?(:device_recall)
@device_recognition_verdict = args[:device_recognition_verdict] if args.key?(:device_recognition_verdict)
@recent_device_activity = args[:recent_device_activity] if args.key?(:recent_device_activity)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module PlayintegrityV1
# Version of the google-apis-playintegrity_v1 gem
GEM_VERSION = "0.29.0"
GEM_VERSION = "0.30.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.15.1"

# Revision of the discovery document this client was generated from
REVISION = "20240813"
REVISION = "20241119"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class DeviceAttributes
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class DeviceIntegrity
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -174,9 +180,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class DeviceAttributes
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :sdk_version, as: 'sdkVersion'
end
end

class DeviceIntegrity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_attributes, as: 'deviceAttributes', class: Google::Apis::PlayintegrityV1::DeviceAttributes, decorator: Google::Apis::PlayintegrityV1::DeviceAttributes::Representation

property :device_recall, as: 'deviceRecall', class: Google::Apis::PlayintegrityV1::DeviceRecall, decorator: Google::Apis::PlayintegrityV1::DeviceRecall::Representation

collection :device_recognition_verdict, as: 'deviceRecognitionVerdict'
Expand Down
Loading