Skip to content

Commit c6d466e

Browse files
feat: Automated regeneration of mybusinessverifications v1 client (googleapis#23779)
Auto-created at 2025-07-27 10:09:30 +0000 using the toys pull request generator.
1 parent 69cc2d3 commit c6d466e

File tree

6 files changed

+191
-2
lines changed

6 files changed

+191
-2
lines changed

api_names_out.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288717,6 +288717,12 @@
288717288717
"/mybusinessverifications:v1/FetchVerificationOptionsResponse": fetch_verification_options_response
288718288718
"/mybusinessverifications:v1/FetchVerificationOptionsResponse/options": options
288719288719
"/mybusinessverifications:v1/FetchVerificationOptionsResponse/options/option": option
288720+
"/mybusinessverifications:v1/GenerateInstantVerificationTokenRequest": generate_instant_verification_token_request
288721+
"/mybusinessverifications:v1/GenerateInstantVerificationTokenRequest/locationData": location_data
288722+
"/mybusinessverifications:v1/GenerateInstantVerificationTokenRequest/locationId": location_id
288723+
"/mybusinessverifications:v1/GenerateInstantVerificationTokenResponse": generate_instant_verification_token_response
288724+
"/mybusinessverifications:v1/GenerateInstantVerificationTokenResponse/instantVerificationToken": instant_verification_token
288725+
"/mybusinessverifications:v1/GenerateInstantVerificationTokenResponse/result": result
288720288726
"/mybusinessverifications:v1/GenerateVerificationTokenRequest": generate_verification_token_request
288721288727
"/mybusinessverifications:v1/GenerateVerificationTokenRequest/location": location
288722288728
"/mybusinessverifications:v1/GenerateVerificationTokenResponse": generate_verification_token_response
@@ -288731,6 +288737,9 @@
288731288737
"/mybusinessverifications:v1/Location/primaryCategoryId": primary_category_id
288732288738
"/mybusinessverifications:v1/Location/primaryPhone": primary_phone
288733288739
"/mybusinessverifications:v1/Location/websiteUri": website_uri
288740+
"/mybusinessverifications:v1/LocationData": location_data
288741+
"/mybusinessverifications:v1/LocationData/address": address
288742+
"/mybusinessverifications:v1/LocationData/name": name
288734288743
"/mybusinessverifications:v1/PostalAddress": postal_address
288735288744
"/mybusinessverifications:v1/PostalAddress/addressLines": address_lines
288736288745
"/mybusinessverifications:v1/PostalAddress/addressLines/address_line": address_line

generated/google-apis-mybusinessverifications_v1/CHANGELOG.md

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

3+
### v0.22.0 (2025-07-27)
4+
5+
* Regenerated from discovery document revision 20250721
6+
37
### v0.21.0 (2025-06-22)
48

59
* Regenerated from discovery document revision 20250615

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

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,63 @@ def update!(**args)
198198
end
199199
end
200200

201+
# Request message for Verifications.GenerateInstantVerificationToken.
202+
class GenerateInstantVerificationTokenRequest
203+
include Google::Apis::Core::Hashable
204+
205+
# The address and other details of the location to generate an instant
206+
# verification token for.
207+
# Corresponds to the JSON property `locationData`
208+
# @return [Google::Apis::MybusinessverificationsV1::LocationData]
209+
attr_accessor :location_data
210+
211+
# The location identifier associated with an unverified listing. This is the
212+
# location id generated at the time that the listing was originally created. It
213+
# is the final portion of a location resource name as generated by the Google My
214+
# Business API. Note: the caller must be an owner or manager of this listing in
215+
# order to generate a verification token. See the [location resource](/my-
216+
# business/reference/rest/v4/accounts.locations) documentation for more
217+
# information.
218+
# Corresponds to the JSON property `locationId`
219+
# @return [String]
220+
attr_accessor :location_id
221+
222+
def initialize(**args)
223+
update!(**args)
224+
end
225+
226+
# Update properties of this object
227+
def update!(**args)
228+
@location_data = args[:location_data] if args.key?(:location_data)
229+
@location_id = args[:location_id] if args.key?(:location_id)
230+
end
231+
end
232+
233+
# Response message for Verifications.GenerateInstantVerificationToken.
234+
class GenerateInstantVerificationTokenResponse
235+
include Google::Apis::Core::Hashable
236+
237+
# The generated instant verification token.
238+
# Corresponds to the JSON property `instantVerificationToken`
239+
# @return [String]
240+
attr_accessor :instant_verification_token
241+
242+
# Output only. The result of the instant verification token generation.
243+
# Corresponds to the JSON property `result`
244+
# @return [String]
245+
attr_accessor :result
246+
247+
def initialize(**args)
248+
update!(**args)
249+
end
250+
251+
# Update properties of this object
252+
def update!(**args)
253+
@instant_verification_token = args[:instant_verification_token] if args.key?(:instant_verification_token)
254+
@result = args[:result] if args.key?(:result)
255+
end
256+
end
257+
201258
# Response message for Verifications.ListVerifications.
202259
class ListVerificationsResponse
203260
include Google::Apis::Core::Hashable
@@ -226,6 +283,51 @@ def update!(**args)
226283
end
227284
end
228285

286+
# The address and other details of the location to generate an instant
287+
# verification token for.
288+
class LocationData
289+
include Google::Apis::Core::Hashable
290+
291+
# Represents a postal address, such as for postal delivery or payments addresses.
292+
# With a postal address, a postal service can deliver items to a premise, P.O.
293+
# box, or similar. A postal address is not intended to model geographical
294+
# locations like roads, towns, or mountains. In typical usage, an address would
295+
# be created by user input or from importing existing data, depending on the
296+
# type of process. Advice on address input or editing: - Use an
297+
# internationalization-ready address widget such as https://github.com/google/
298+
# libaddressinput. - Users should not be presented with UI elements for input or
299+
# editing of fields outside countries where that field is used. For more
300+
# guidance on how to use this schema, see: https://support.google.com/business/
301+
# answer/6397478.
302+
# Corresponds to the JSON property `address`
303+
# @return [Google::Apis::MybusinessverificationsV1::PostalAddress]
304+
attr_accessor :address
305+
306+
# Immutable. Name should reflect your business's real-world name, as used
307+
# consistently on your storefront, website, and stationery, and as known to
308+
# customers. Any additional information, when relevant, can be included in other
309+
# fields of the resource (for example, `Address`, `Categories`). Don't add
310+
# unnecessary information to your name (for example, prefer "Google" over "
311+
# Google Inc. - Mountain View Corporate Headquarters"). Don't include marketing
312+
# taglines, store codes, special characters, hours or closed/open status, phone
313+
# numbers, website URLs, service/product information, location/address or
314+
# directions, or containment information (for example, "Chase ATM in Duane Reade"
315+
# ).
316+
# Corresponds to the JSON property `name`
317+
# @return [String]
318+
attr_accessor :name
319+
320+
def initialize(**args)
321+
update!(**args)
322+
end
323+
324+
# Update properties of this object
325+
def update!(**args)
326+
@address = args[:address] if args.key?(:address)
327+
@name = args[:name] if args.key?(:name)
328+
end
329+
end
330+
229331
# Represents a postal address, such as for postal delivery or payments addresses.
230332
# With a postal address, a postal service can deliver items to a premise, P.O.
231333
# box, or similar. A postal address is not intended to model geographical

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module MybusinessverificationsV1
1818
# Version of the google-apis-mybusinessverifications_v1 gem
19-
GEM_VERSION = "0.21.0"
19+
GEM_VERSION = "0.22.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

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

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

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,30 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
6464
include Google::Apis::Core::JsonObjectSupport
6565
end
6666

67+
class GenerateInstantVerificationTokenRequest
68+
class Representation < Google::Apis::Core::JsonRepresentation; end
69+
70+
include Google::Apis::Core::JsonObjectSupport
71+
end
72+
73+
class GenerateInstantVerificationTokenResponse
74+
class Representation < Google::Apis::Core::JsonRepresentation; end
75+
76+
include Google::Apis::Core::JsonObjectSupport
77+
end
78+
6779
class ListVerificationsResponse
6880
class Representation < Google::Apis::Core::JsonRepresentation; end
6981

7082
include Google::Apis::Core::JsonObjectSupport
7183
end
7284

85+
class LocationData
86+
class Representation < Google::Apis::Core::JsonRepresentation; end
87+
88+
include Google::Apis::Core::JsonObjectSupport
89+
end
90+
7391
class PostalAddress
7492
class Representation < Google::Apis::Core::JsonRepresentation; end
7593

@@ -194,6 +212,23 @@ class Representation < Google::Apis::Core::JsonRepresentation
194212
end
195213
end
196214

215+
class GenerateInstantVerificationTokenRequest
216+
# @private
217+
class Representation < Google::Apis::Core::JsonRepresentation
218+
property :location_data, as: 'locationData', class: Google::Apis::MybusinessverificationsV1::LocationData, decorator: Google::Apis::MybusinessverificationsV1::LocationData::Representation
219+
220+
property :location_id, as: 'locationId'
221+
end
222+
end
223+
224+
class GenerateInstantVerificationTokenResponse
225+
# @private
226+
class Representation < Google::Apis::Core::JsonRepresentation
227+
property :instant_verification_token, as: 'instantVerificationToken'
228+
property :result, as: 'result'
229+
end
230+
end
231+
197232
class ListVerificationsResponse
198233
# @private
199234
class Representation < Google::Apis::Core::JsonRepresentation
@@ -203,6 +238,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
203238
end
204239
end
205240

241+
class LocationData
242+
# @private
243+
class Representation < Google::Apis::Core::JsonRepresentation
244+
property :address, as: 'address', class: Google::Apis::MybusinessverificationsV1::PostalAddress, decorator: Google::Apis::MybusinessverificationsV1::PostalAddress::Representation
245+
246+
property :name, as: 'name'
247+
end
248+
end
249+
206250
class PostalAddress
207251
# @private
208252
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,36 @@ def list_location_verifications(parent, page_size: nil, page_token: nil, fields:
220220
command.query['quotaUser'] = quota_user unless quota_user.nil?
221221
execute_or_queue_command(command, &block)
222222
end
223+
224+
# Generate a token for the provided location data to verify the location.
225+
# @param [Google::Apis::MybusinessverificationsV1::GenerateInstantVerificationTokenRequest] generate_instant_verification_token_request_object
226+
# @param [String] fields
227+
# Selector specifying which fields to include in a partial response.
228+
# @param [String] quota_user
229+
# Available to use for quota purposes for server-side applications. Can be any
230+
# arbitrary string assigned to a user, but should not exceed 40 characters.
231+
# @param [Google::Apis::RequestOptions] options
232+
# Request-specific options
233+
#
234+
# @yield [result, err] Result & error if block supplied
235+
# @yieldparam result [Google::Apis::MybusinessverificationsV1::GenerateInstantVerificationTokenResponse] parsed result object
236+
# @yieldparam err [StandardError] error object if request failed
237+
#
238+
# @return [Google::Apis::MybusinessverificationsV1::GenerateInstantVerificationTokenResponse]
239+
#
240+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
241+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
242+
# @raise [Google::Apis::AuthorizationError] Authorization is required
243+
def generate_verification_token(generate_instant_verification_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
244+
command = make_simple_command(:post, 'v1/verificationTokens:generate', options)
245+
command.request_representation = Google::Apis::MybusinessverificationsV1::GenerateInstantVerificationTokenRequest::Representation
246+
command.request_object = generate_instant_verification_token_request_object
247+
command.response_representation = Google::Apis::MybusinessverificationsV1::GenerateInstantVerificationTokenResponse::Representation
248+
command.response_class = Google::Apis::MybusinessverificationsV1::GenerateInstantVerificationTokenResponse
249+
command.query['fields'] = fields unless fields.nil?
250+
command.query['quotaUser'] = quota_user unless quota_user.nil?
251+
execute_or_queue_command(command, &block)
252+
end
223253

224254
protected
225255

0 commit comments

Comments
 (0)