google-apis-mybusinessverifications_v1 0.13.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0cb5e5f0753c5befa5ea0a68ed034e98e7868c0de8eadff5b9b168b9661b4d35
4
- data.tar.gz: 71e3fc6b5d284c6d062ca80a06ce75f8a3cd622010028f6de557202b5e34a745
3
+ metadata.gz: 6a36a09fe19800bb1e995180dd2a86fa8e74c1130121f44445ad37c3f034f942
4
+ data.tar.gz: 4b8ec3cc814e4d5f4ad43f9058e28e323b63f1f017e70afbdfc92d886b33a893
5
5
  SHA512:
6
- metadata.gz: 78cd2c16f70394f3a9b225f93ea7fd3fc1cf46ee6553b42ba03e6d06e2a4e78e6157b74ae3b7dc1c984f40a3404cb3314c554243f4ea84c32daaec4e7c075c83
7
- data.tar.gz: 47eb7e27aa4148b50781d20c3aae7d6af8b03c5a0d2898cbf82a2d601c37cfc9321d0a04383bb951e6f182efbe631a73e7d33503c799f1c9e11e6c1415149f7a
6
+ metadata.gz: c75f9b52c6bfb3fa998f429e107094f04a8082171649ac14be52a3181b665eaab09b5a4e0776f75920105c17d87fba9ec408ac3402e0c12bb728f9d9899e833b
7
+ data.tar.gz: 5d2aa2ef99809053e2083a88c152470878da26aeaa2e60f25113de5566f6a4803e11da689a5bd95d0bf214305f7d27aa6e70a6f5b792dad1ac64a68fa1ac70c9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-mybusinessverifications_v1
2
2
 
3
+ ### v0.14.0 (2023-09-17)
4
+
5
+ * Regenerated from discovery document revision 20230914
6
+
3
7
  ### v0.13.0 (2023-02-19)
4
8
 
5
9
  * Regenerated from discovery document revision 20230206
@@ -197,48 +197,6 @@ module Google
197
197
  end
198
198
  end
199
199
 
200
- # Request message for Verifications.GenerateVerificationToken.
201
- class GenerateVerificationTokenRequest
202
- include Google::Apis::Core::Hashable
203
-
204
- # A subset of location info. See the [help center article] (https://support.
205
- # google.com/business/answer/3038177) for a detailed description of these fields,
206
- # or the [category endpoint](/my-business/reference/rest/v4/categories) for a
207
- # list of valid business categories.
208
- # Corresponds to the JSON property `location`
209
- # @return [Google::Apis::MybusinessverificationsV1::Location]
210
- attr_accessor :location
211
-
212
- def initialize(**args)
213
- update!(**args)
214
- end
215
-
216
- # Update properties of this object
217
- def update!(**args)
218
- @location = args[:location] if args.key?(:location)
219
- end
220
- end
221
-
222
- # Response message for Verifications.GenerateVerificationToken.
223
- class GenerateVerificationTokenResponse
224
- include Google::Apis::Core::Hashable
225
-
226
- # Token generated by a vetted [partner](https://support.google.com/business/
227
- # answer/7674102).
228
- # Corresponds to the JSON property `token`
229
- # @return [Google::Apis::MybusinessverificationsV1::VerificationToken]
230
- attr_accessor :token
231
-
232
- def initialize(**args)
233
- update!(**args)
234
- end
235
-
236
- # Update properties of this object
237
- def update!(**args)
238
- @token = args[:token] if args.key?(:token)
239
- end
240
- end
241
-
242
200
  # Response message for Verifications.ListVerifications.
243
201
  class ListVerificationsResponse
244
202
  include Google::Apis::Core::Hashable
@@ -267,75 +225,6 @@ module Google
267
225
  end
268
226
  end
269
227
 
270
- # A subset of location info. See the [help center article] (https://support.
271
- # google.com/business/answer/3038177) for a detailed description of these fields,
272
- # or the [category endpoint](/my-business/reference/rest/v4/categories) for a
273
- # list of valid business categories.
274
- class Location
275
- include Google::Apis::Core::Hashable
276
-
277
- # Represents a postal address, e.g. for postal delivery or payments addresses.
278
- # Given a postal address, a postal service can deliver items to a premise, P.O.
279
- # Box or similar. It is not intended to model geographical locations (roads,
280
- # towns, mountains). In typical usage an address would be created via user input
281
- # or from importing existing data, depending on the type of process. Advice on
282
- # address input / editing: - Use an internationalization-ready address widget
283
- # such as https://github.com/google/libaddressinput) - Users should not be
284
- # presented with UI elements for input or editing of fields outside countries
285
- # where that field is used. For more guidance on how to use this schema, please
286
- # see: https://support.google.com/business/answer/6397478
287
- # Corresponds to the JSON property `address`
288
- # @return [Google::Apis::MybusinessverificationsV1::PostalAddress]
289
- attr_accessor :address
290
-
291
- # Required. Location name should reflect your business's real-world name, as
292
- # used consistently on your storefront, website, and stationery, and as known to
293
- # customers. Any additional information, when relevant, can be included in other
294
- # fields of the resource (for example, `Address`, `Categories`). Don't add
295
- # unnecessary information to your name (for example, prefer "Google" over "
296
- # Google Inc. - Mountain View Corporate Headquarters"). Don't include marketing
297
- # taglines, store codes, special characters, hours or closed/open status, phone
298
- # numbers, website URLs, service/product information, location/address or
299
- # directions, or containment information (for example, "Chase ATM in Duane Reade"
300
- # ).
301
- # Corresponds to the JSON property `name`
302
- # @return [String]
303
- attr_accessor :name
304
-
305
- # Required. Id of the category that best describes the core business this
306
- # location engages in. e.g. gcid:bakery.
307
- # Corresponds to the JSON property `primaryCategoryId`
308
- # @return [String]
309
- attr_accessor :primary_category_id
310
-
311
- # Optional. A phone number that connects to your individual business location as
312
- # directly as possible. Use a local phone number instead of a central, call
313
- # center helpline number whenever possible.
314
- # Corresponds to the JSON property `primaryPhone`
315
- # @return [String]
316
- attr_accessor :primary_phone
317
-
318
- # Optional. A URL for this business. If possible, use a URL that represents this
319
- # individual business location instead of a generic website/URL that represents
320
- # all locations, or the brand.
321
- # Corresponds to the JSON property `websiteUri`
322
- # @return [String]
323
- attr_accessor :website_uri
324
-
325
- def initialize(**args)
326
- update!(**args)
327
- end
328
-
329
- # Update properties of this object
330
- def update!(**args)
331
- @address = args[:address] if args.key?(:address)
332
- @name = args[:name] if args.key?(:name)
333
- @primary_category_id = args[:primary_category_id] if args.key?(:primary_category_id)
334
- @primary_phone = args[:primary_phone] if args.key?(:primary_phone)
335
- @website_uri = args[:website_uri] if args.key?(:website_uri)
336
- end
337
- end
338
-
339
228
  # Represents a postal address, e.g. for postal delivery or payments addresses.
340
229
  # Given a postal address, a postal service can deliver items to a premise, P.O.
341
230
  # Box or similar. It is not intended to model geographical locations (roads,
@@ -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.13.0"
19
+ GEM_VERSION = "0.14.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230206"
25
+ REVISION = "20230914"
26
26
  end
27
27
  end
28
28
  end
@@ -64,30 +64,12 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class GenerateVerificationTokenRequest
68
- class Representation < Google::Apis::Core::JsonRepresentation; end
69
-
70
- include Google::Apis::Core::JsonObjectSupport
71
- end
72
-
73
- class GenerateVerificationTokenResponse
74
- class Representation < Google::Apis::Core::JsonRepresentation; end
75
-
76
- include Google::Apis::Core::JsonObjectSupport
77
- end
78
-
79
67
  class ListVerificationsResponse
80
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
69
 
82
70
  include Google::Apis::Core::JsonObjectSupport
83
71
  end
84
72
 
85
- class Location
86
- class Representation < Google::Apis::Core::JsonRepresentation; end
87
-
88
- include Google::Apis::Core::JsonObjectSupport
89
- end
90
-
91
73
  class PostalAddress
92
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
75
 
@@ -212,22 +194,6 @@ module Google
212
194
  end
213
195
  end
214
196
 
215
- class GenerateVerificationTokenRequest
216
- # @private
217
- class Representation < Google::Apis::Core::JsonRepresentation
218
- property :location, as: 'location', class: Google::Apis::MybusinessverificationsV1::Location, decorator: Google::Apis::MybusinessverificationsV1::Location::Representation
219
-
220
- end
221
- end
222
-
223
- class GenerateVerificationTokenResponse
224
- # @private
225
- class Representation < Google::Apis::Core::JsonRepresentation
226
- property :token, as: 'token', class: Google::Apis::MybusinessverificationsV1::VerificationToken, decorator: Google::Apis::MybusinessverificationsV1::VerificationToken::Representation
227
-
228
- end
229
- end
230
-
231
197
  class ListVerificationsResponse
232
198
  # @private
233
199
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -237,18 +203,6 @@ module Google
237
203
  end
238
204
  end
239
205
 
240
- class Location
241
- # @private
242
- class Representation < Google::Apis::Core::JsonRepresentation
243
- property :address, as: 'address', class: Google::Apis::MybusinessverificationsV1::PostalAddress, decorator: Google::Apis::MybusinessverificationsV1::PostalAddress::Representation
244
-
245
- property :name, as: 'name'
246
- property :primary_category_id, as: 'primaryCategoryId'
247
- property :primary_phone, as: 'primaryPhone'
248
- property :website_uri, as: 'websiteUri'
249
- end
250
- end
251
-
252
206
  class PostalAddress
253
207
  # @private
254
208
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -218,39 +218,6 @@ module Google
218
218
  command.query['quotaUser'] = quota_user unless quota_user.nil?
219
219
  execute_or_queue_command(command, &block)
220
220
  end
221
-
222
- # Generates a token for the provided location data as a vetted [partner](https://
223
- # support.google.com/business/answer/7674102). Throws PERMISSION_DENIED if the
224
- # caller is not a vetted partner account. Throws FAILED_PRECONDITION if the
225
- # caller's VettedStatus is INVALID.
226
- # @param [Google::Apis::MybusinessverificationsV1::GenerateVerificationTokenRequest] generate_verification_token_request_object
227
- # @param [String] fields
228
- # Selector specifying which fields to include in a partial response.
229
- # @param [String] quota_user
230
- # Available to use for quota purposes for server-side applications. Can be any
231
- # arbitrary string assigned to a user, but should not exceed 40 characters.
232
- # @param [Google::Apis::RequestOptions] options
233
- # Request-specific options
234
- #
235
- # @yield [result, err] Result & error if block supplied
236
- # @yieldparam result [Google::Apis::MybusinessverificationsV1::GenerateVerificationTokenResponse] parsed result object
237
- # @yieldparam err [StandardError] error object if request failed
238
- #
239
- # @return [Google::Apis::MybusinessverificationsV1::GenerateVerificationTokenResponse]
240
- #
241
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
242
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
243
- # @raise [Google::Apis::AuthorizationError] Authorization is required
244
- def generate_verification_token(generate_verification_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
245
- command = make_simple_command(:post, 'v1/verificationTokens:generate', options)
246
- command.request_representation = Google::Apis::MybusinessverificationsV1::GenerateVerificationTokenRequest::Representation
247
- command.request_object = generate_verification_token_request_object
248
- command.response_representation = Google::Apis::MybusinessverificationsV1::GenerateVerificationTokenResponse::Representation
249
- command.response_class = Google::Apis::MybusinessverificationsV1::GenerateVerificationTokenResponse
250
- command.query['fields'] = fields unless fields.nil?
251
- command.query['quotaUser'] = quota_user unless quota_user.nil?
252
- execute_or_queue_command(command, &block)
253
- end
254
221
 
255
222
  protected
256
223
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-mybusinessverifications_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-19 00:00:00.000000000 Z
11
+ date: 2023-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-mybusinessverifications_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-mybusinessverifications_v1/v0.13.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-mybusinessverifications_v1/v0.14.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-mybusinessverifications_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for My Business Verifications API V1