Skip to content

Commit f4806f6

Browse files
feat: Automated regeneration of walletobjects v1 client (googleapis#21836)
Auto-created at 2025-02-26 20:53:33 +0000 using the toys pull request generator.
1 parent a1e0126 commit f4806f6

File tree

6 files changed

+122
-3
lines changed

6 files changed

+122
-3
lines changed

api_names_out.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356274,6 +356274,9 @@
356274356274
"/walletobjects:v1/SecurityAnimation": security_animation
356275356275
"/walletobjects:v1/SecurityAnimation/animationType": animation_type
356276356276
"/walletobjects:v1/SetPassUpdateNoticeRequest": set_pass_update_notice_request
356277+
"/walletobjects:v1/SetPassUpdateNoticeRequest/externalPassId": external_pass_id
356278+
"/walletobjects:v1/SetPassUpdateNoticeRequest/updateUri": update_uri
356279+
"/walletobjects:v1/SetPassUpdateNoticeRequest/updatedPassJwtSignature": updated_pass_jwt_signature
356277356280
"/walletobjects:v1/SetPassUpdateNoticeResponse": set_pass_update_notice_response
356278356281
"/walletobjects:v1/SignUpInfo": sign_up_info
356279356282
"/walletobjects:v1/SignUpInfo/classId": class_id

generated/google-apis-walletobjects_v1/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-walletobjects_v1
22

3+
### v0.20.0 (2025-02-26)
4+
5+
* Regenerated from discovery document revision 20250204
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.19.0 (2024-12-08)
49

510
* Regenerated from discovery document revision 20241203

generated/google-apis-walletobjects_v1/lib/google/apis/walletobjects_v1/classes.rb

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7472,6 +7472,58 @@ def update!(**args)
74727472
end
74737473
end
74747474

7475+
# Request to send a private pass update notice information to Google, so that
7476+
# devices can then fetch the notice prompting the user to update a pass.
7477+
class SetPassUpdateNoticeRequest
7478+
include Google::Apis::Core::Hashable
7479+
7480+
# Required. A fully qualified identifier of the pass that the issuer wants to
7481+
# notify the pass holder(s) about. Formatted as .
7482+
# Corresponds to the JSON property `externalPassId`
7483+
# @return [String]
7484+
attr_accessor :external_pass_id
7485+
7486+
# Required. The issuer endpoint URI the pass holder needs to follow in order to
7487+
# receive an updated pass JWT. It can not contain any sensitive information. The
7488+
# endpoint needs to authenticate the user before giving the user the updated JWT.
7489+
# Example update URI https://someissuer.com/update/passId=someExternalPassId
7490+
# Corresponds to the JSON property `updateUri`
7491+
# @return [String]
7492+
attr_accessor :update_uri
7493+
7494+
# Required. The JWT signature of the updated pass that the issuer wants to
7495+
# notify Google about. Only devices that report a different JWT signature than
7496+
# this JWT signature will receive the update notification.
7497+
# Corresponds to the JSON property `updatedPassJwtSignature`
7498+
# @return [String]
7499+
attr_accessor :updated_pass_jwt_signature
7500+
7501+
def initialize(**args)
7502+
update!(**args)
7503+
end
7504+
7505+
# Update properties of this object
7506+
def update!(**args)
7507+
@external_pass_id = args[:external_pass_id] if args.key?(:external_pass_id)
7508+
@update_uri = args[:update_uri] if args.key?(:update_uri)
7509+
@updated_pass_jwt_signature = args[:updated_pass_jwt_signature] if args.key?(:updated_pass_jwt_signature)
7510+
end
7511+
end
7512+
7513+
# A response to a request to notify Google of an awaiting update to a private
7514+
# pass.
7515+
class SetPassUpdateNoticeResponse
7516+
include Google::Apis::Core::Hashable
7517+
7518+
def initialize(**args)
7519+
update!(**args)
7520+
end
7521+
7522+
# Update properties of this object
7523+
def update!(**args)
7524+
end
7525+
end
7526+
74757527
#
74767528
class SignUpInfo
74777529
include Google::Apis::Core::Hashable

generated/google-apis-walletobjects_v1/lib/google/apis/walletobjects_v1/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module WalletobjectsV1
1818
# Version of the google-apis-walletobjects_v1 gem
19-
GEM_VERSION = "0.19.0"
19+
GEM_VERSION = "0.20.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.1"
22+
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20241203"
25+
REVISION = "20250204"
2626
end
2727
end
2828
end

generated/google-apis-walletobjects_v1/lib/google/apis/walletobjects_v1/representations.rb

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
778778
include Google::Apis::Core::JsonObjectSupport
779779
end
780780

781+
class SetPassUpdateNoticeRequest
782+
class Representation < Google::Apis::Core::JsonRepresentation; end
783+
784+
include Google::Apis::Core::JsonObjectSupport
785+
end
786+
787+
class SetPassUpdateNoticeResponse
788+
class Representation < Google::Apis::Core::JsonRepresentation; end
789+
790+
include Google::Apis::Core::JsonObjectSupport
791+
end
792+
781793
class SignUpInfo
782794
class Representation < Google::Apis::Core::JsonRepresentation; end
783795

@@ -2844,6 +2856,21 @@ class Representation < Google::Apis::Core::JsonRepresentation
28442856
end
28452857
end
28462858

2859+
class SetPassUpdateNoticeRequest
2860+
# @private
2861+
class Representation < Google::Apis::Core::JsonRepresentation
2862+
property :external_pass_id, as: 'externalPassId'
2863+
property :update_uri, as: 'updateUri'
2864+
property :updated_pass_jwt_signature, as: 'updatedPassJwtSignature'
2865+
end
2866+
end
2867+
2868+
class SetPassUpdateNoticeResponse
2869+
# @private
2870+
class Representation < Google::Apis::Core::JsonRepresentation
2871+
end
2872+
end
2873+
28472874
class SignUpInfo
28482875
# @private
28492876
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-walletobjects_v1/lib/google/apis/walletobjects_v1/service.rb

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3471,6 +3471,38 @@ def update_transitobject(resource_id, transit_object_object = nil, fields: nil,
34713471
command.query['quotaUser'] = quota_user unless quota_user.nil?
34723472
execute_or_queue_command(command, &block)
34733473
end
3474+
3475+
# Provide Google with information about awaiting private pass update. This will
3476+
# allow Google to provide the update notification to the device that currently
3477+
# holds this pass.
3478+
# @param [Google::Apis::WalletobjectsV1::SetPassUpdateNoticeRequest] set_pass_update_notice_request_object
3479+
# @param [String] fields
3480+
# Selector specifying which fields to include in a partial response.
3481+
# @param [String] quota_user
3482+
# Available to use for quota purposes for server-side applications. Can be any
3483+
# arbitrary string assigned to a user, but should not exceed 40 characters.
3484+
# @param [Google::Apis::RequestOptions] options
3485+
# Request-specific options
3486+
#
3487+
# @yield [result, err] Result & error if block supplied
3488+
# @yieldparam result [Google::Apis::WalletobjectsV1::SetPassUpdateNoticeResponse] parsed result object
3489+
# @yieldparam err [StandardError] error object if request failed
3490+
#
3491+
# @return [Google::Apis::WalletobjectsV1::SetPassUpdateNoticeResponse]
3492+
#
3493+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3494+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3495+
# @raise [Google::Apis::AuthorizationError] Authorization is required
3496+
def set_private_content_pass_update_notice(set_pass_update_notice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3497+
command = make_simple_command(:post, 'walletobjects/v1/privateContent/setPassUpdateNotice', options)
3498+
command.request_representation = Google::Apis::WalletobjectsV1::SetPassUpdateNoticeRequest::Representation
3499+
command.request_object = set_pass_update_notice_request_object
3500+
command.response_representation = Google::Apis::WalletobjectsV1::SetPassUpdateNoticeResponse::Representation
3501+
command.response_class = Google::Apis::WalletobjectsV1::SetPassUpdateNoticeResponse
3502+
command.query['fields'] = fields unless fields.nil?
3503+
command.query['quotaUser'] = quota_user unless quota_user.nil?
3504+
execute_or_queue_command(command, &block)
3505+
end
34743506

34753507
protected
34763508

0 commit comments

Comments
 (0)