google-apis-mybusinessverifications_v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google/apis/mybusinessverifications_v1/classes.rb +785 -0
- data/lib/google/apis/mybusinessverifications_v1/gem_version.rb +28 -0
- data/lib/google/apis/mybusinessverifications_v1/representations.rb +364 -0
- data/lib/google/apis/mybusinessverifications_v1/service.rb +264 -0
- data/lib/google/apis/mybusinessverifications_v1.rb +34 -0
- data/lib/google-apis-mybusinessverifications_v1.rb +15 -0
- metadata +82 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Apis
|
17
|
+
module MybusinessverificationsV1
|
18
|
+
# Version of the google-apis-mybusinessverifications_v1 gem
|
19
|
+
GEM_VERSION = "0.1.0"
|
20
|
+
|
21
|
+
# Version of the code generator used to generate this client
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
|
+
|
24
|
+
# Revision of the discovery document this client was generated from
|
25
|
+
REVISION = "20210822"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,364 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module MybusinessverificationsV1
|
24
|
+
|
25
|
+
class AddressVerificationData
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class CompleteVerificationRequest
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class CompleteVerificationResponse
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class ComplyWithGuidelines
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class EmailVerificationData
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class FetchVerificationOptionsRequest
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class FetchVerificationOptionsResponse
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
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
|
+
class ListVerificationsResponse
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class Location
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class PostalAddress
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class ResolveOwnershipConflict
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class ServiceBusinessContext
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class Verification
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class VerificationOption
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class VerificationToken
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class Verify
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class VerifyLocationRequest
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class VerifyLocationResponse
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class VoiceOfMerchantState
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class WaitForVoiceOfMerchant
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
157
|
+
class AddressVerificationData
|
158
|
+
# @private
|
159
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
160
|
+
property :address, as: 'address', class: Google::Apis::MybusinessverificationsV1::PostalAddress, decorator: Google::Apis::MybusinessverificationsV1::PostalAddress::Representation
|
161
|
+
|
162
|
+
property :business, as: 'business'
|
163
|
+
property :expected_delivery_days_region, as: 'expectedDeliveryDaysRegion'
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
class CompleteVerificationRequest
|
168
|
+
# @private
|
169
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
170
|
+
property :pin, as: 'pin'
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
class CompleteVerificationResponse
|
175
|
+
# @private
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
177
|
+
property :verification, as: 'verification', class: Google::Apis::MybusinessverificationsV1::Verification, decorator: Google::Apis::MybusinessverificationsV1::Verification::Representation
|
178
|
+
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
class ComplyWithGuidelines
|
183
|
+
# @private
|
184
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
class EmailVerificationData
|
189
|
+
# @private
|
190
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
191
|
+
property :domain, as: 'domain'
|
192
|
+
property :is_user_name_editable, as: 'isUserNameEditable'
|
193
|
+
property :user, as: 'user'
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
class FetchVerificationOptionsRequest
|
198
|
+
# @private
|
199
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
200
|
+
property :context, as: 'context', class: Google::Apis::MybusinessverificationsV1::ServiceBusinessContext, decorator: Google::Apis::MybusinessverificationsV1::ServiceBusinessContext::Representation
|
201
|
+
|
202
|
+
property :language_code, as: 'languageCode'
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
class FetchVerificationOptionsResponse
|
207
|
+
# @private
|
208
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
209
|
+
collection :options, as: 'options', class: Google::Apis::MybusinessverificationsV1::VerificationOption, decorator: Google::Apis::MybusinessverificationsV1::VerificationOption::Representation
|
210
|
+
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
class GenerateVerificationTokenRequest
|
215
|
+
# @private
|
216
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
217
|
+
property :location, as: 'location', class: Google::Apis::MybusinessverificationsV1::Location, decorator: Google::Apis::MybusinessverificationsV1::Location::Representation
|
218
|
+
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
class GenerateVerificationTokenResponse
|
223
|
+
# @private
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
225
|
+
property :token, as: 'token', class: Google::Apis::MybusinessverificationsV1::VerificationToken, decorator: Google::Apis::MybusinessverificationsV1::VerificationToken::Representation
|
226
|
+
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
class ListVerificationsResponse
|
231
|
+
# @private
|
232
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
233
|
+
property :next_page_token, as: 'nextPageToken'
|
234
|
+
collection :verifications, as: 'verifications', class: Google::Apis::MybusinessverificationsV1::Verification, decorator: Google::Apis::MybusinessverificationsV1::Verification::Representation
|
235
|
+
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
class Location
|
240
|
+
# @private
|
241
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
242
|
+
property :address, as: 'address', class: Google::Apis::MybusinessverificationsV1::PostalAddress, decorator: Google::Apis::MybusinessverificationsV1::PostalAddress::Representation
|
243
|
+
|
244
|
+
property :name, as: 'name'
|
245
|
+
property :primary_category_id, as: 'primaryCategoryId'
|
246
|
+
property :primary_phone, as: 'primaryPhone'
|
247
|
+
property :website_uri, as: 'websiteUri'
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
class PostalAddress
|
252
|
+
# @private
|
253
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
254
|
+
collection :address_lines, as: 'addressLines'
|
255
|
+
property :administrative_area, as: 'administrativeArea'
|
256
|
+
property :language_code, as: 'languageCode'
|
257
|
+
property :locality, as: 'locality'
|
258
|
+
property :organization, as: 'organization'
|
259
|
+
property :postal_code, as: 'postalCode'
|
260
|
+
collection :recipients, as: 'recipients'
|
261
|
+
property :region_code, as: 'regionCode'
|
262
|
+
property :revision, as: 'revision'
|
263
|
+
property :sorting_code, as: 'sortingCode'
|
264
|
+
property :sublocality, as: 'sublocality'
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
class ResolveOwnershipConflict
|
269
|
+
# @private
|
270
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
274
|
+
class ServiceBusinessContext
|
275
|
+
# @private
|
276
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
277
|
+
property :address, as: 'address', class: Google::Apis::MybusinessverificationsV1::PostalAddress, decorator: Google::Apis::MybusinessverificationsV1::PostalAddress::Representation
|
278
|
+
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
class Verification
|
283
|
+
# @private
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
285
|
+
property :create_time, as: 'createTime'
|
286
|
+
property :method_prop, as: 'method'
|
287
|
+
property :name, as: 'name'
|
288
|
+
property :state, as: 'state'
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
class VerificationOption
|
293
|
+
# @private
|
294
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
295
|
+
property :address_data, as: 'addressData', class: Google::Apis::MybusinessverificationsV1::AddressVerificationData, decorator: Google::Apis::MybusinessverificationsV1::AddressVerificationData::Representation
|
296
|
+
|
297
|
+
property :email_data, as: 'emailData', class: Google::Apis::MybusinessverificationsV1::EmailVerificationData, decorator: Google::Apis::MybusinessverificationsV1::EmailVerificationData::Representation
|
298
|
+
|
299
|
+
property :phone_number, as: 'phoneNumber'
|
300
|
+
property :verification_method, as: 'verificationMethod'
|
301
|
+
end
|
302
|
+
end
|
303
|
+
|
304
|
+
class VerificationToken
|
305
|
+
# @private
|
306
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
307
|
+
property :token_string, as: 'tokenString'
|
308
|
+
end
|
309
|
+
end
|
310
|
+
|
311
|
+
class Verify
|
312
|
+
# @private
|
313
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
314
|
+
property :has_pending_verification, as: 'hasPendingVerification'
|
315
|
+
end
|
316
|
+
end
|
317
|
+
|
318
|
+
class VerifyLocationRequest
|
319
|
+
# @private
|
320
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
321
|
+
property :context, as: 'context', class: Google::Apis::MybusinessverificationsV1::ServiceBusinessContext, decorator: Google::Apis::MybusinessverificationsV1::ServiceBusinessContext::Representation
|
322
|
+
|
323
|
+
property :email_address, as: 'emailAddress'
|
324
|
+
property :language_code, as: 'languageCode'
|
325
|
+
property :mailer_contact, as: 'mailerContact'
|
326
|
+
property :method_prop, as: 'method'
|
327
|
+
property :phone_number, as: 'phoneNumber'
|
328
|
+
property :token, as: 'token', class: Google::Apis::MybusinessverificationsV1::VerificationToken, decorator: Google::Apis::MybusinessverificationsV1::VerificationToken::Representation
|
329
|
+
|
330
|
+
end
|
331
|
+
end
|
332
|
+
|
333
|
+
class VerifyLocationResponse
|
334
|
+
# @private
|
335
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
336
|
+
property :verification, as: 'verification', class: Google::Apis::MybusinessverificationsV1::Verification, decorator: Google::Apis::MybusinessverificationsV1::Verification::Representation
|
337
|
+
|
338
|
+
end
|
339
|
+
end
|
340
|
+
|
341
|
+
class VoiceOfMerchantState
|
342
|
+
# @private
|
343
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
344
|
+
property :comply_with_guidelines, as: 'complyWithGuidelines', class: Google::Apis::MybusinessverificationsV1::ComplyWithGuidelines, decorator: Google::Apis::MybusinessverificationsV1::ComplyWithGuidelines::Representation
|
345
|
+
|
346
|
+
property :has_business_authority, as: 'hasBusinessAuthority'
|
347
|
+
property :has_voice_of_merchant, as: 'hasVoiceOfMerchant'
|
348
|
+
property :resolve_ownership_conflict, as: 'resolveOwnershipConflict', class: Google::Apis::MybusinessverificationsV1::ResolveOwnershipConflict, decorator: Google::Apis::MybusinessverificationsV1::ResolveOwnershipConflict::Representation
|
349
|
+
|
350
|
+
property :verify, as: 'verify', class: Google::Apis::MybusinessverificationsV1::Verify, decorator: Google::Apis::MybusinessverificationsV1::Verify::Representation
|
351
|
+
|
352
|
+
property :wait_for_voice_of_merchant, as: 'waitForVoiceOfMerchant', class: Google::Apis::MybusinessverificationsV1::WaitForVoiceOfMerchant, decorator: Google::Apis::MybusinessverificationsV1::WaitForVoiceOfMerchant::Representation
|
353
|
+
|
354
|
+
end
|
355
|
+
end
|
356
|
+
|
357
|
+
class WaitForVoiceOfMerchant
|
358
|
+
# @private
|
359
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
360
|
+
end
|
361
|
+
end
|
362
|
+
end
|
363
|
+
end
|
364
|
+
end
|
@@ -0,0 +1,264 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module MybusinessverificationsV1
|
23
|
+
# My Business Verifications API
|
24
|
+
#
|
25
|
+
# The My Business Verifications API provides an interface for taking
|
26
|
+
# verifications related actions for locations.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/mybusinessverifications_v1'
|
30
|
+
#
|
31
|
+
# Mybusinessverifications = Google::Apis::MybusinessverificationsV1 # Alias the module
|
32
|
+
# service = Mybusinessverifications::MyBusinessVerificationsService.new
|
33
|
+
#
|
34
|
+
# @see https://developers.google.com/my-business/
|
35
|
+
class MyBusinessVerificationsService < Google::Apis::Core::BaseService
|
36
|
+
# @return [String]
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
+
attr_accessor :key
|
40
|
+
|
41
|
+
# @return [String]
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
def initialize
|
47
|
+
super('https://mybusinessverifications.googleapis.com/', '',
|
48
|
+
client_name: 'google-apis-mybusinessverifications_v1',
|
49
|
+
client_version: Google::Apis::MybusinessverificationsV1::GEM_VERSION)
|
50
|
+
@batch_path = 'batch'
|
51
|
+
end
|
52
|
+
|
53
|
+
# Reports all eligible verification options for a location in a specific
|
54
|
+
# language.
|
55
|
+
# @param [String] location
|
56
|
+
# Required. The location to verify.
|
57
|
+
# @param [Google::Apis::MybusinessverificationsV1::FetchVerificationOptionsRequest] fetch_verification_options_request_object
|
58
|
+
# @param [String] fields
|
59
|
+
# Selector specifying which fields to include in a partial response.
|
60
|
+
# @param [String] quota_user
|
61
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
62
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
63
|
+
# @param [Google::Apis::RequestOptions] options
|
64
|
+
# Request-specific options
|
65
|
+
#
|
66
|
+
# @yield [result, err] Result & error if block supplied
|
67
|
+
# @yieldparam result [Google::Apis::MybusinessverificationsV1::FetchVerificationOptionsResponse] parsed result object
|
68
|
+
# @yieldparam err [StandardError] error object if request failed
|
69
|
+
#
|
70
|
+
# @return [Google::Apis::MybusinessverificationsV1::FetchVerificationOptionsResponse]
|
71
|
+
#
|
72
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
73
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
74
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
75
|
+
def fetch_location_verification_options(location, fetch_verification_options_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
76
|
+
command = make_simple_command(:post, 'v1/{+location}:fetchVerificationOptions', options)
|
77
|
+
command.request_representation = Google::Apis::MybusinessverificationsV1::FetchVerificationOptionsRequest::Representation
|
78
|
+
command.request_object = fetch_verification_options_request_object
|
79
|
+
command.response_representation = Google::Apis::MybusinessverificationsV1::FetchVerificationOptionsResponse::Representation
|
80
|
+
command.response_class = Google::Apis::MybusinessverificationsV1::FetchVerificationOptionsResponse
|
81
|
+
command.params['location'] = location unless location.nil?
|
82
|
+
command.query['fields'] = fields unless fields.nil?
|
83
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
84
|
+
execute_or_queue_command(command, &block)
|
85
|
+
end
|
86
|
+
|
87
|
+
# Gets the VoiceOfMerchant state.
|
88
|
+
# @param [String] name
|
89
|
+
# Required. Resource name of the location.
|
90
|
+
# @param [String] fields
|
91
|
+
# Selector specifying which fields to include in a partial response.
|
92
|
+
# @param [String] quota_user
|
93
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
94
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
95
|
+
# @param [Google::Apis::RequestOptions] options
|
96
|
+
# Request-specific options
|
97
|
+
#
|
98
|
+
# @yield [result, err] Result & error if block supplied
|
99
|
+
# @yieldparam result [Google::Apis::MybusinessverificationsV1::VoiceOfMerchantState] parsed result object
|
100
|
+
# @yieldparam err [StandardError] error object if request failed
|
101
|
+
#
|
102
|
+
# @return [Google::Apis::MybusinessverificationsV1::VoiceOfMerchantState]
|
103
|
+
#
|
104
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
105
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
106
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
107
|
+
def get_location_voice_of_merchant_state(name, fields: nil, quota_user: nil, options: nil, &block)
|
108
|
+
command = make_simple_command(:get, 'v1/{+name}/VoiceOfMerchantState', options)
|
109
|
+
command.response_representation = Google::Apis::MybusinessverificationsV1::VoiceOfMerchantState::Representation
|
110
|
+
command.response_class = Google::Apis::MybusinessverificationsV1::VoiceOfMerchantState
|
111
|
+
command.params['name'] = name unless name.nil?
|
112
|
+
command.query['fields'] = fields unless fields.nil?
|
113
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
114
|
+
execute_or_queue_command(command, &block)
|
115
|
+
end
|
116
|
+
|
117
|
+
# Starts the verification process for a location.
|
118
|
+
# @param [String] name
|
119
|
+
# Required. Resource name of the location to verify.
|
120
|
+
# @param [Google::Apis::MybusinessverificationsV1::VerifyLocationRequest] verify_location_request_object
|
121
|
+
# @param [String] fields
|
122
|
+
# Selector specifying which fields to include in a partial response.
|
123
|
+
# @param [String] quota_user
|
124
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
125
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
126
|
+
# @param [Google::Apis::RequestOptions] options
|
127
|
+
# Request-specific options
|
128
|
+
#
|
129
|
+
# @yield [result, err] Result & error if block supplied
|
130
|
+
# @yieldparam result [Google::Apis::MybusinessverificationsV1::VerifyLocationResponse] parsed result object
|
131
|
+
# @yieldparam err [StandardError] error object if request failed
|
132
|
+
#
|
133
|
+
# @return [Google::Apis::MybusinessverificationsV1::VerifyLocationResponse]
|
134
|
+
#
|
135
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
136
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
137
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
138
|
+
def verify_location(name, verify_location_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
139
|
+
command = make_simple_command(:post, 'v1/{+name}:verify', options)
|
140
|
+
command.request_representation = Google::Apis::MybusinessverificationsV1::VerifyLocationRequest::Representation
|
141
|
+
command.request_object = verify_location_request_object
|
142
|
+
command.response_representation = Google::Apis::MybusinessverificationsV1::VerifyLocationResponse::Representation
|
143
|
+
command.response_class = Google::Apis::MybusinessverificationsV1::VerifyLocationResponse
|
144
|
+
command.params['name'] = name unless name.nil?
|
145
|
+
command.query['fields'] = fields unless fields.nil?
|
146
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
147
|
+
execute_or_queue_command(command, &block)
|
148
|
+
end
|
149
|
+
|
150
|
+
# Completes a `PENDING` verification. It is only necessary for non `AUTO`
|
151
|
+
# verification methods. `AUTO` verification request is instantly `VERIFIED` upon
|
152
|
+
# creation.
|
153
|
+
# @param [String] name
|
154
|
+
# Required. Resource name of the verification to complete.
|
155
|
+
# @param [Google::Apis::MybusinessverificationsV1::CompleteVerificationRequest] complete_verification_request_object
|
156
|
+
# @param [String] fields
|
157
|
+
# Selector specifying which fields to include in a partial response.
|
158
|
+
# @param [String] quota_user
|
159
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
160
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
161
|
+
# @param [Google::Apis::RequestOptions] options
|
162
|
+
# Request-specific options
|
163
|
+
#
|
164
|
+
# @yield [result, err] Result & error if block supplied
|
165
|
+
# @yieldparam result [Google::Apis::MybusinessverificationsV1::CompleteVerificationResponse] parsed result object
|
166
|
+
# @yieldparam err [StandardError] error object if request failed
|
167
|
+
#
|
168
|
+
# @return [Google::Apis::MybusinessverificationsV1::CompleteVerificationResponse]
|
169
|
+
#
|
170
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
171
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
172
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
173
|
+
def complete_verification(name, complete_verification_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
174
|
+
command = make_simple_command(:post, 'v1/{+name}:complete', options)
|
175
|
+
command.request_representation = Google::Apis::MybusinessverificationsV1::CompleteVerificationRequest::Representation
|
176
|
+
command.request_object = complete_verification_request_object
|
177
|
+
command.response_representation = Google::Apis::MybusinessverificationsV1::CompleteVerificationResponse::Representation
|
178
|
+
command.response_class = Google::Apis::MybusinessverificationsV1::CompleteVerificationResponse
|
179
|
+
command.params['name'] = name unless name.nil?
|
180
|
+
command.query['fields'] = fields unless fields.nil?
|
181
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
182
|
+
execute_or_queue_command(command, &block)
|
183
|
+
end
|
184
|
+
|
185
|
+
# List verifications of a location, ordered by create time.
|
186
|
+
# @param [String] parent
|
187
|
+
# Required. Resource name of the location that verification requests belong to.
|
188
|
+
# @param [Fixnum] page_size
|
189
|
+
# How many verification to include per page. Minimum is 1, and the default and
|
190
|
+
# maximum page size is 100.
|
191
|
+
# @param [String] page_token
|
192
|
+
# If specified, returns the next page of verifications.
|
193
|
+
# @param [String] fields
|
194
|
+
# Selector specifying which fields to include in a partial response.
|
195
|
+
# @param [String] quota_user
|
196
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
197
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
198
|
+
# @param [Google::Apis::RequestOptions] options
|
199
|
+
# Request-specific options
|
200
|
+
#
|
201
|
+
# @yield [result, err] Result & error if block supplied
|
202
|
+
# @yieldparam result [Google::Apis::MybusinessverificationsV1::ListVerificationsResponse] parsed result object
|
203
|
+
# @yieldparam err [StandardError] error object if request failed
|
204
|
+
#
|
205
|
+
# @return [Google::Apis::MybusinessverificationsV1::ListVerificationsResponse]
|
206
|
+
#
|
207
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
208
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
209
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
210
|
+
def list_location_verifications(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
211
|
+
command = make_simple_command(:get, 'v1/{+parent}/verifications', options)
|
212
|
+
command.response_representation = Google::Apis::MybusinessverificationsV1::ListVerificationsResponse::Representation
|
213
|
+
command.response_class = Google::Apis::MybusinessverificationsV1::ListVerificationsResponse
|
214
|
+
command.params['parent'] = parent unless parent.nil?
|
215
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
216
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
217
|
+
command.query['fields'] = fields unless fields.nil?
|
218
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
219
|
+
execute_or_queue_command(command, &block)
|
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
|
+
|
255
|
+
protected
|
256
|
+
|
257
|
+
def apply_command_defaults(command)
|
258
|
+
command.query['key'] = key unless key.nil?
|
259
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
260
|
+
end
|
261
|
+
end
|
262
|
+
end
|
263
|
+
end
|
264
|
+
end
|