google-apis-mybusinessverifications_v1 0.13.0 → 0.15.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: 8fe3dfd28f4401f8ff88ae1f49cbb366415148870b9dc1ab30fa50476c1347d7
4
+ data.tar.gz: b51e26a023d0960dda430b3176df33d0c2d8201f8d246a89fdb4bee4949d2d9c
5
5
  SHA512:
6
- metadata.gz: 78cd2c16f70394f3a9b225f93ea7fd3fc1cf46ee6553b42ba03e6d06e2a4e78e6157b74ae3b7dc1c984f40a3404cb3314c554243f4ea84c32daaec4e7c075c83
7
- data.tar.gz: 47eb7e27aa4148b50781d20c3aae7d6af8b03c5a0d2898cbf82a2d601c37cfc9321d0a04383bb951e6f182efbe631a73e7d33503c799f1c9e11e6c1415149f7a
6
+ metadata.gz: 2a14f59455fafcc310564ab5e1bd8b4e8c20b6a54292f03553662fe761d152f6c682dad91b94d4bf3f48f6b2c4bef05ddb4e189759f198313eaed06c0ff7908e
7
+ data.tar.gz: c58099999fecb410ecf41b1b3c3e655647db66592bd49c16c14f4cdf5f0a2a19e22cbb335e73cf2103e059735ef9c979c613fd3d3bb10616c0a240f2aa89a872
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-mybusinessverifications_v1
2
2
 
3
+ ### v0.15.0 (2024-01-22)
4
+
5
+ * Regenerated using generator version 0.13.0
6
+
7
+ ### v0.14.0 (2023-09-17)
8
+
9
+ * Regenerated from discovery document revision 20230914
10
+
3
11
  ### v0.13.0 (2023-02-19)
4
12
 
5
13
  * 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.15.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.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
@@ -33,6 +33,8 @@ module Google
33
33
  #
34
34
  # @see https://developers.google.com/my-business/
35
35
  class MyBusinessVerificationsService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://mybusinessverifications.$UNIVERSE_DOMAIN$/"
37
+
36
38
  # @return [String]
37
39
  # API key. Your API key identifies your project and provides you with API access,
38
40
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -44,7 +46,7 @@ module Google
44
46
  attr_accessor :quota_user
45
47
 
46
48
  def initialize
47
- super('https://mybusinessverifications.googleapis.com/', '',
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
48
50
  client_name: 'google-apis-mybusinessverifications_v1',
49
51
  client_version: Google::Apis::MybusinessverificationsV1::GEM_VERSION)
50
52
  @batch_path = 'batch'
@@ -218,39 +220,6 @@ module Google
218
220
  command.query['quotaUser'] = quota_user unless quota_user.nil?
219
221
  execute_or_queue_command(command, &block)
220
222
  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
223
 
255
224
  protected
256
225
 
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.15.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: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.15.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.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for My Business Verifications API V1