google-apis-mybusinessverifications_v1 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc052d19cc58a8b13bf8e2980011c65cd7ce2021dd40c8dc97238388ce821cf9
4
- data.tar.gz: 7a2592ed4e8256340a150e63d8bf092a5f5f613fed6058d6f4103dec2baee957
3
+ metadata.gz: 4f47ebfb6aad48da3fc77bfafbba376f4c30dac81c2cd4c14d3bcfc6a8e29971
4
+ data.tar.gz: 489a5fae203b86518867af4a116b1385127498a3ebbc89590be36e555e8f8766
5
5
  SHA512:
6
- metadata.gz: e6e68bdbc2edd03d207dc172d912c1c494656ede609075027ab02bb94168f7233895f23ae9ab34a39ce20df975018ad47d3ed6edc759a2489a9ba114cd9d91c0
7
- data.tar.gz: b9231742adf008bb02cfb999e7ba533ed77521357518d3438fd312e7ee5a87892eed2a7db62f3f95997860d0fd50f4406ca55bad76cb4a6fb6d8cc7bc9518c2c
6
+ metadata.gz: ad8a4446916aa2ec8b389b4a7a39078b5c46957b276747c943fb4b8734b0caf71fc628ce81a5ad94edfa424da338941085326b8e5878c1752abea7e166fe3c93
7
+ data.tar.gz: 076dbe6cbe2d48f1832c9f6d7ad8621e7b044d495e35a7f38637988badd60a58249634bac501165d16e16b0685d30f2e3deaf52de18997cf13111c92b87c059e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-mybusinessverifications_v1
2
2
 
3
+ ### v0.22.0 (2025-07-27)
4
+
5
+ * Regenerated from discovery document revision 20250721
6
+
3
7
  ### v0.21.0 (2025-06-22)
4
8
 
5
9
  * Regenerated from discovery document revision 20250615
@@ -198,6 +198,63 @@ module Google
198
198
  end
199
199
  end
200
200
 
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
+
201
258
  # Response message for Verifications.ListVerifications.
202
259
  class ListVerificationsResponse
203
260
  include Google::Apis::Core::Hashable
@@ -226,6 +283,51 @@ module Google
226
283
  end
227
284
  end
228
285
 
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
+
229
331
  # Represents a postal address, such as for postal delivery or payments addresses.
230
332
  # With a postal address, a postal service can deliver items to a premise, P.O.
231
333
  # box, or similar. A postal address is not intended to model geographical
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MybusinessverificationsV1
18
18
  # Version of the google-apis-mybusinessverifications_v1 gem
19
- GEM_VERSION = "0.21.0"
19
+ GEM_VERSION = "0.22.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250615"
25
+ REVISION = "20250721"
26
26
  end
27
27
  end
28
28
  end
@@ -64,12 +64,30 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
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
+
67
79
  class ListVerificationsResponse
68
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
81
 
70
82
  include Google::Apis::Core::JsonObjectSupport
71
83
  end
72
84
 
85
+ class LocationData
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
73
91
  class PostalAddress
74
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
93
 
@@ -194,6 +212,23 @@ module Google
194
212
  end
195
213
  end
196
214
 
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
+
197
232
  class ListVerificationsResponse
198
233
  # @private
199
234
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -203,6 +238,15 @@ module Google
203
238
  end
204
239
  end
205
240
 
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
+
206
250
  class PostalAddress
207
251
  # @private
208
252
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -220,6 +220,36 @@ module Google
220
220
  command.query['quotaUser'] = quota_user unless quota_user.nil?
221
221
  execute_or_queue_command(command, &block)
222
222
  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
223
253
 
224
254
  protected
225
255
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-mybusinessverifications_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-mybusinessverifications_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-mybusinessverifications_v1/v0.21.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-mybusinessverifications_v1/v0.22.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-mybusinessverifications_v1
62
62
  rdoc_options: []
63
63
  require_paths: