google-api-client 0.23.7 → 0.23.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +32 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  5. data/generated/google/apis/androidpublisher_v2/classes.rb +1 -0
  6. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  7. data/generated/google/apis/androidpublisher_v3/classes.rb +1 -0
  8. data/generated/google/apis/appengine_v1.rb +1 -1
  9. data/generated/google/apis/appengine_v1/classes.rb +5 -3
  10. data/generated/google/apis/appengine_v1beta.rb +1 -1
  11. data/generated/google/apis/appengine_v1beta/classes.rb +31 -3
  12. data/generated/google/apis/appengine_v1beta/representations.rb +15 -0
  13. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  14. data/generated/google/apis/appengine_v1beta4/classes.rb +5 -3
  15. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  16. data/generated/google/apis/appengine_v1beta5/classes.rb +5 -3
  17. data/generated/google/apis/bigquery_v2.rb +1 -1
  18. data/generated/google/apis/bigquery_v2/classes.rb +27 -22
  19. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  20. data/generated/google/apis/cloudkms_v1.rb +1 -1
  21. data/generated/google/apis/{mybusiness_v3.rb → cloudtasks_v2beta3.rb} +12 -10
  22. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +1405 -0
  23. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +421 -0
  24. data/generated/google/apis/cloudtasks_v2beta3/service.rb +855 -0
  25. data/generated/google/apis/compute_alpha/classes.rb +178 -135
  26. data/generated/google/apis/compute_alpha/representations.rb +82 -52
  27. data/generated/google/apis/compute_alpha/service.rb +57 -4
  28. data/generated/google/apis/compute_beta/classes.rb +125 -125
  29. data/generated/google/apis/compute_beta/representations.rb +51 -51
  30. data/generated/google/apis/compute_beta/service.rb +4 -4
  31. data/generated/google/apis/content_v2.rb +1 -1
  32. data/generated/google/apis/content_v2/classes.rb +152 -0
  33. data/generated/google/apis/content_v2/representations.rb +77 -0
  34. data/generated/google/apis/content_v2/service.rb +40 -0
  35. data/generated/google/apis/content_v2sandbox.rb +1 -1
  36. data/generated/google/apis/content_v2sandbox/classes.rb +39 -0
  37. data/generated/google/apis/content_v2sandbox/representations.rb +26 -0
  38. data/generated/google/apis/content_v2sandbox/service.rb +40 -0
  39. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  40. data/generated/google/apis/dataproc_v1.rb +1 -1
  41. data/generated/google/apis/dataproc_v1/classes.rb +299 -0
  42. data/generated/google/apis/dataproc_v1/representations.rb +115 -0
  43. data/generated/google/apis/dataproc_v1/service.rb +540 -0
  44. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  45. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  46. data/generated/google/apis/dialogflow_v2beta1/classes.rb +0 -3
  47. data/generated/google/apis/dialogflow_v2beta1/service.rb +226 -0
  48. data/generated/google/apis/dlp_v2.rb +1 -1
  49. data/generated/google/apis/dlp_v2/service.rb +54 -6
  50. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  51. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +85 -0
  52. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +32 -0
  53. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +30 -0
  54. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  55. data/generated/google/apis/iamcredentials_v1/classes.rb +97 -0
  56. data/generated/google/apis/iamcredentials_v1/representations.rb +28 -0
  57. data/generated/google/apis/iamcredentials_v1/service.rb +37 -0
  58. data/generated/google/apis/language_v1beta2.rb +1 -1
  59. data/generated/google/apis/language_v1beta2/classes.rb +8 -0
  60. data/generated/google/apis/redis_v1beta1.rb +1 -1
  61. data/generated/google/apis/redis_v1beta1/classes.rb +9 -0
  62. data/generated/google/apis/redis_v1beta1/representations.rb +1 -0
  63. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  64. data/generated/google/apis/servicecontrol_v1/classes.rb +12 -0
  65. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
  66. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  67. data/generated/google/apis/servicemanagement_v1/classes.rb +1 -1
  68. data/generated/google/apis/servicemanagement_v1/service.rb +4 -0
  69. data/generated/google/apis/serviceuser_v1.rb +1 -1
  70. data/generated/google/apis/serviceuser_v1/classes.rb +1 -1
  71. data/generated/google/apis/spanner_v1.rb +1 -1
  72. data/generated/google/apis/spanner_v1/classes.rb +56 -1
  73. data/generated/google/apis/spanner_v1/representations.rb +18 -0
  74. data/generated/google/apis/spanner_v1/service.rb +9 -3
  75. data/generated/google/apis/speech_v1.rb +1 -1
  76. data/generated/google/apis/speech_v1/classes.rb +11 -8
  77. data/generated/google/apis/storage_v1.rb +1 -1
  78. data/generated/google/apis/storage_v1/classes.rb +11 -1
  79. data/generated/google/apis/storage_v1/representations.rb +1 -0
  80. data/generated/google/apis/storage_v1/service.rb +1 -2
  81. data/generated/google/apis/testing_v1.rb +1 -1
  82. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  83. data/generated/google/apis/toolresults_v1beta3/classes.rb +14 -14
  84. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  85. data/lib/google/apis/version.rb +1 -1
  86. metadata +6 -6
  87. data/generated/google/apis/mybusiness_v3/classes.rb +0 -1864
  88. data/generated/google/apis/mybusiness_v3/representations.rb +0 -741
  89. data/generated/google/apis/mybusiness_v3/service.rb +0 -961
@@ -15,7 +15,7 @@
15
15
  module Google
16
16
  module Apis
17
17
  # Client library version
18
- VERSION = '0.23.7'.freeze
18
+ VERSION = '0.23.8'.freeze
19
19
 
20
20
  # Current operating system
21
21
  # @private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.7
4
+ version: 0.23.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Bazyl
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-08-28 00:00:00.000000000 Z
14
+ date: 2018-09-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: representable
@@ -433,6 +433,10 @@ files:
433
433
  - generated/google/apis/cloudtasks_v2beta2/classes.rb
434
434
  - generated/google/apis/cloudtasks_v2beta2/representations.rb
435
435
  - generated/google/apis/cloudtasks_v2beta2/service.rb
436
+ - generated/google/apis/cloudtasks_v2beta3.rb
437
+ - generated/google/apis/cloudtasks_v2beta3/classes.rb
438
+ - generated/google/apis/cloudtasks_v2beta3/representations.rb
439
+ - generated/google/apis/cloudtasks_v2beta3/service.rb
436
440
  - generated/google/apis/cloudtrace_v1.rb
437
441
  - generated/google/apis/cloudtrace_v1/classes.rb
438
442
  - generated/google/apis/cloudtrace_v1/representations.rb
@@ -721,10 +725,6 @@ files:
721
725
  - generated/google/apis/monitoring_v3/classes.rb
722
726
  - generated/google/apis/monitoring_v3/representations.rb
723
727
  - generated/google/apis/monitoring_v3/service.rb
724
- - generated/google/apis/mybusiness_v3.rb
725
- - generated/google/apis/mybusiness_v3/classes.rb
726
- - generated/google/apis/mybusiness_v3/representations.rb
727
- - generated/google/apis/mybusiness_v3/service.rb
728
728
  - generated/google/apis/oauth2_v1.rb
729
729
  - generated/google/apis/oauth2_v1/classes.rb
730
730
  - generated/google/apis/oauth2_v1/representations.rb
@@ -1,1864 +0,0 @@
1
- # Copyright 2015 Google Inc.
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 MybusinessV3
24
-
25
- # An account is a container for your business's locations. If you are the only
26
- # user who manages locations for your business, you can use your personal
27
- # Google Account. To share management of locations with multiple users,
28
- # [create a business account]
29
- # (https://support.google.com/business/answer/6085339).
30
- class Account
31
- include Google::Apis::Core::Hashable
32
-
33
- # The name of the account. Note: For an account with AccountType `PERSONAL`,
34
- # this is the first
35
- # and last name of the user account.
36
- # Corresponds to the JSON property `accountName`
37
- # @return [String]
38
- attr_accessor :account_name
39
-
40
- # The resource name, in the format `accounts/`account_id``.
41
- # Corresponds to the JSON property `name`
42
- # @return [String]
43
- attr_accessor :name
44
-
45
- # Specifies the AccountRole
46
- # the caller has for this account.
47
- # @OutputOnly
48
- # Corresponds to the JSON property `role`
49
- # @return [String]
50
- attr_accessor :role
51
-
52
- # Indicates status of the account, such as whether the account
53
- # has been verified by Google.
54
- # Corresponds to the JSON property `state`
55
- # @return [Google::Apis::MybusinessV3::AccountState]
56
- attr_accessor :state
57
-
58
- # Specifies the AccountType
59
- # of this account.
60
- # @OutputOnly
61
- # Corresponds to the JSON property `type`
62
- # @return [String]
63
- attr_accessor :type
64
-
65
- def initialize(**args)
66
- update!(**args)
67
- end
68
-
69
- # Update properties of this object
70
- def update!(**args)
71
- @account_name = args[:account_name] if args.key?(:account_name)
72
- @name = args[:name] if args.key?(:name)
73
- @role = args[:role] if args.key?(:role)
74
- @state = args[:state] if args.key?(:state)
75
- @type = args[:type] if args.key?(:type)
76
- end
77
- end
78
-
79
- # Indicates status of the account, such as whether the account
80
- # has been verified by Google.
81
- class AccountState
82
- include Google::Apis::Core::Hashable
83
-
84
- # If verified, future locations that are created are automatically
85
- # be connected to maps, and have Google+ pages created, without requiring
86
- # moderation.
87
- # Corresponds to the JSON property `status`
88
- # @return [String]
89
- attr_accessor :status
90
-
91
- def initialize(**args)
92
- update!(**args)
93
- end
94
-
95
- # Update properties of this object
96
- def update!(**args)
97
- @status = args[:status] if args.key?(:status)
98
- end
99
- end
100
-
101
- # Additional information that is surfaced in AdWords.
102
- class AdWordsLocationExtensions
103
- include Google::Apis::Core::Hashable
104
-
105
- # An alternate phone number to display on AdWords location extensions
106
- # instead of the location's primary phone number.
107
- # Corresponds to the JSON property `adPhone`
108
- # @return [String]
109
- attr_accessor :ad_phone
110
-
111
- def initialize(**args)
112
- update!(**args)
113
- end
114
-
115
- # Update properties of this object
116
- def update!(**args)
117
- @ad_phone = args[:ad_phone] if args.key?(:ad_phone)
118
- end
119
- end
120
-
121
- # Represents the physical location of the business.
122
- # Example addresses:
123
- # address_lines: "1600 Amphitheatre Parkway"
124
- # locality: Mountain View
125
- # administrative_area: CA
126
- # country: US
127
- # postal_code: 94043
128
- # address_lines: "A-205, Natasha Apartments", "2, Inner Ring Road"
129
- # sub_locality: Domlur
130
- # locality: Bangalore
131
- # administrative_area: Karnataka
132
- # country: IN
133
- # postal_code: 560071
134
- class Address
135
- include Google::Apis::Core::Hashable
136
-
137
- # The precise address information for the business below the sub-locality
138
- # level. For most countries, the first line should include a street number
139
- # and street name. Suite numbers, floors, building numbers, etc., may also be
140
- # included. Imprecise information like cross-streets and nearby landmarks
141
- # should only be included in regions where the official street address does
142
- # not accurately pinpoint the business's location. Maximum 80 characters.
143
- # Corresponds to the JSON property `addressLines`
144
- # @return [Array<String>]
145
- attr_accessor :address_lines
146
-
147
- # The state or province where the business is located. Using the common
148
- # abbreviation is generally preferred, such as CA for California or NSW
149
- # for New South Wales.
150
- # Not all countries require this field. Use the address editor in the
151
- # product to determine whether it is appropriate for an address in a
152
- # particular country.
153
- # Also known as:
154
- # "area" (Hong Kong), "county" (Ireland, Taiwan, United Kingdom),
155
- # "department" (Colombia, Nicaragua), "district" (Indonesia),
156
- # "do/si" (South Korea), "emirate" (United Arab Emirates), "island,"
157
- # "oblast" (Russia, Ukraine), "parish," "prefecture" (Japan).
158
- # Examples:
159
- # California (United States), Ontario (Canada), Uttar Pradesh (India).
160
- # Maximum 80 characters.
161
- # Corresponds to the JSON property `administrativeArea`
162
- # @return [String]
163
- attr_accessor :administrative_area
164
-
165
- # The ISO 3166-1 alpha-2 country code where the business is located. Once
166
- # a location is created, the country cannot be changed.
167
- # Corresponds to the JSON property `country`
168
- # @return [String]
169
- attr_accessor :country
170
-
171
- # The city or town where the business is located.
172
- # Also known as:
173
- # "district" (Hong Kong, Turkey), "post town" (United Kingdom).
174
- # Examples:
175
- # Chicago (United States), Berlin (Germany), London (United Kingdom).
176
- # Maximum 80 characters.
177
- # Corresponds to the JSON property `locality`
178
- # @return [String]
179
- attr_accessor :locality
180
-
181
- # The postal code of the business. If the postal code begins with zero, make
182
- # sure that your formatting does not remove the zero as the first digit.
183
- # Also known as: "zip code" (United States), "PIN code" (India).
184
- # Corresponds to the JSON property `postalCode`
185
- # @return [String]
186
- attr_accessor :postal_code
187
-
188
- # The suburb where the business is located. This is the division just smaller
189
- # than a locality (city). Previously referred to in Google My Business
190
- # Locations as "district". Maximum 80 characters.
191
- # Also known as: "district" (South Korea), "neighborhood" (Brazil, Mexico),
192
- # "village / township" (Malaysia).
193
- # Examples:
194
- # Manhattan (United States),
195
- # Centro (Mexico),
196
- # Songpa District (South Korea.)
197
- # Corresponds to the JSON property `subLocality`
198
- # @return [String]
199
- attr_accessor :sub_locality
200
-
201
- def initialize(**args)
202
- update!(**args)
203
- end
204
-
205
- # Update properties of this object
206
- def update!(**args)
207
- @address_lines = args[:address_lines] if args.key?(:address_lines)
208
- @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
209
- @country = args[:country] if args.key?(:country)
210
- @locality = args[:locality] if args.key?(:locality)
211
- @postal_code = args[:postal_code] if args.key?(:postal_code)
212
- @sub_locality = args[:sub_locality] if args.key?(:sub_locality)
213
- end
214
- end
215
-
216
- # An administrator of an Account, or a
217
- # Location.
218
- class Admin
219
- include Google::Apis::Core::Hashable
220
-
221
- # The name of the admin. When making the initial invitation, this is the
222
- # invitee's email address. On `GET` calls, the user's email address is
223
- # returned if the invitation is still pending. Otherwise, it contains
224
- # the user's first and last names.
225
- # Corresponds to the JSON property `adminName`
226
- # @return [String]
227
- attr_accessor :admin_name
228
-
229
- # The resource name. For account admins, this is in the form:
230
- # `accounts/`account_id`/admins/`admin_id``
231
- # For location admins, this is in the form:
232
- # `accounts/`account_id`/locations/`location_id`/admins/`admin_id``
233
- # Corresponds to the JSON property `name`
234
- # @return [String]
235
- attr_accessor :name
236
-
237
- # Indicates whether this admin has a pending invitation for the specified
238
- # resource.
239
- # @OutputOnly
240
- # Corresponds to the JSON property `pendingInvitation`
241
- # @return [Boolean]
242
- attr_accessor :pending_invitation
243
- alias_method :pending_invitation?, :pending_invitation
244
-
245
- # Specifies the AdminRole that this
246
- # admin uses with the specified Account
247
- # or Location resource.
248
- # Corresponds to the JSON property `role`
249
- # @return [String]
250
- attr_accessor :role
251
-
252
- def initialize(**args)
253
- update!(**args)
254
- end
255
-
256
- # Update properties of this object
257
- def update!(**args)
258
- @admin_name = args[:admin_name] if args.key?(:admin_name)
259
- @name = args[:name] if args.key?(:name)
260
- @pending_invitation = args[:pending_invitation] if args.key?(:pending_invitation)
261
- @role = args[:role] if args.key?(:role)
262
- end
263
- end
264
-
265
- # Request message for MyBusiness.AssociateLocationRequest to associate a
266
- # location to a place or indicate no match.
267
- class AssociateLocationRequest
268
- include Google::Apis::Core::Hashable
269
-
270
- # The association to establish. If not set, it indicates no match.
271
- # Corresponds to the JSON property `placeId`
272
- # @return [String]
273
- attr_accessor :place_id
274
-
275
- def initialize(**args)
276
- update!(**args)
277
- end
278
-
279
- # Update properties of this object
280
- def update!(**args)
281
- @place_id = args[:place_id] if args.key?(:place_id)
282
- end
283
- end
284
-
285
- # A location attribute. Attributes provide additional, information about a
286
- # location. The attributes that can be set on a location may vary based on
287
- # the properties of that location (e.g. category). Available attributes are
288
- # determined by Google and may be added and removed without API changes.
289
- class Attribute
290
- include Google::Apis::Core::Hashable
291
-
292
- # The id of the attribute. Attribute ids are provided by Google.
293
- # Corresponds to the JSON property `attributeId`
294
- # @return [String]
295
- attr_accessor :attribute_id
296
-
297
- # The type of value that this attribute contains. This should be used to
298
- # determine how to interpret the value.
299
- # @OutputOnly
300
- # Corresponds to the JSON property `valueType`
301
- # @return [String]
302
- attr_accessor :value_type
303
-
304
- # The values for this attribute. The type of the values supplied must match
305
- # that expected for that attribute, see AttributeValueType. This is a
306
- # repeated field where multiple attribute values may be provided. Current
307
- # attribute types only support one value, but future types may support
308
- # multiple values.
309
- # Corresponds to the JSON property `values`
310
- # @return [Array<Object>]
311
- attr_accessor :values
312
-
313
- def initialize(**args)
314
- update!(**args)
315
- end
316
-
317
- # Update properties of this object
318
- def update!(**args)
319
- @attribute_id = args[:attribute_id] if args.key?(:attribute_id)
320
- @value_type = args[:value_type] if args.key?(:value_type)
321
- @values = args[:values] if args.key?(:values)
322
- end
323
- end
324
-
325
- # Metadata for an attribute. Contains display information for the attribute,
326
- # including a localised name and a heading for grouping related attributes
327
- # together.
328
- class AttributeMetadata
329
- include Google::Apis::Core::Hashable
330
-
331
- # The id of the attribute.
332
- # Corresponds to the JSON property `attributeId`
333
- # @return [String]
334
- attr_accessor :attribute_id
335
-
336
- # The localised display name for the attribute, if available, otherwise
337
- # the English display name.
338
- # Corresponds to the JSON property `displayName`
339
- # @return [String]
340
- attr_accessor :display_name
341
-
342
- # The localised display name of the group that contains this attribute, if
343
- # available, otherwise the English group name. Related attributes are
344
- # collected into group and should be displayed together under the heading
345
- # given here.
346
- # Corresponds to the JSON property `groupDisplayName`
347
- # @return [String]
348
- attr_accessor :group_display_name
349
-
350
- # If true, the attribute supports multiple values. If false only a single
351
- # value should be provided.
352
- # Corresponds to the JSON property `isRepeatable`
353
- # @return [Boolean]
354
- attr_accessor :is_repeatable
355
- alias_method :is_repeatable?, :is_repeatable
356
-
357
- # For some types of attributes (e.g. enums) a list of supported values and
358
- # corresponding display names for those values is provided.
359
- # Corresponds to the JSON property `valueMetadata`
360
- # @return [Array<Google::Apis::MybusinessV3::AttributeValueMetadata>]
361
- attr_accessor :value_metadata
362
-
363
- # The value type for the attribute. Values set and retrieved should be
364
- # expected to be of this type.
365
- # Corresponds to the JSON property `valueType`
366
- # @return [String]
367
- attr_accessor :value_type
368
-
369
- def initialize(**args)
370
- update!(**args)
371
- end
372
-
373
- # Update properties of this object
374
- def update!(**args)
375
- @attribute_id = args[:attribute_id] if args.key?(:attribute_id)
376
- @display_name = args[:display_name] if args.key?(:display_name)
377
- @group_display_name = args[:group_display_name] if args.key?(:group_display_name)
378
- @is_repeatable = args[:is_repeatable] if args.key?(:is_repeatable)
379
- @value_metadata = args[:value_metadata] if args.key?(:value_metadata)
380
- @value_type = args[:value_type] if args.key?(:value_type)
381
- end
382
- end
383
-
384
- # Metadata for supported attribute values
385
- class AttributeValueMetadata
386
- include Google::Apis::Core::Hashable
387
-
388
- # The display name for this value, localised where available otherwise in
389
- # English.
390
- # Corresponds to the JSON property `displayName`
391
- # @return [String]
392
- attr_accessor :display_name
393
-
394
- # The attribute value
395
- # Corresponds to the JSON property `value`
396
- # @return [Object]
397
- attr_accessor :value
398
-
399
- def initialize(**args)
400
- update!(**args)
401
- end
402
-
403
- # Update properties of this object
404
- def update!(**args)
405
- @display_name = args[:display_name] if args.key?(:display_name)
406
- @value = args[:value] if args.key?(:value)
407
- end
408
- end
409
-
410
- #
411
- class BatchGetLocationsRequest
412
- include Google::Apis::Core::Hashable
413
-
414
- # A collection of locations to fetch, specified by their names.
415
- # Corresponds to the JSON property `locationNames`
416
- # @return [Array<String>]
417
- attr_accessor :location_names
418
-
419
- def initialize(**args)
420
- update!(**args)
421
- end
422
-
423
- # Update properties of this object
424
- def update!(**args)
425
- @location_names = args[:location_names] if args.key?(:location_names)
426
- end
427
- end
428
-
429
- #
430
- class BatchGetLocationsResponse
431
- include Google::Apis::Core::Hashable
432
-
433
- # A collection of locations.
434
- # Corresponds to the JSON property `locations`
435
- # @return [Array<Google::Apis::MybusinessV3::Location>]
436
- attr_accessor :locations
437
-
438
- def initialize(**args)
439
- update!(**args)
440
- end
441
-
442
- # Update properties of this object
443
- def update!(**args)
444
- @locations = args[:locations] if args.key?(:locations)
445
- end
446
- end
447
-
448
- # Represents the time periods that this location is open for business.
449
- # Holds a collection of TimePeriod
450
- # instances.
451
- class BusinessHours
452
- include Google::Apis::Core::Hashable
453
-
454
- # A collection of times that this location is open for business. Each period
455
- # represents a range of hours when the location is open during the week.
456
- # Corresponds to the JSON property `periods`
457
- # @return [Array<Google::Apis::MybusinessV3::TimePeriod>]
458
- attr_accessor :periods
459
-
460
- def initialize(**args)
461
- update!(**args)
462
- end
463
-
464
- # Update properties of this object
465
- def update!(**args)
466
- @periods = args[:periods] if args.key?(:periods)
467
- end
468
- end
469
-
470
- # A category describing what this business is (not what it does). For a list of
471
- # valid category IDs, and the mappings to their human readable names, see
472
- # the [category list](/my-business/content/categories).
473
- class Category
474
- include Google::Apis::Core::Hashable
475
-
476
- # A stable ID (provided by Google) for this category. While it is possible
477
- # to populate only the `name` field in a category, setting the `category_id`
478
- # field is
479
- # preferred.
480
- # If both fields are populated, the `category_id` takes precedence, and
481
- # the supplied `name` field is ignored, and populated based on the
482
- # value of this field.
483
- # Corresponds to the JSON property `categoryId`
484
- # @return [String]
485
- attr_accessor :category_id
486
-
487
- # The human-readable name of the category.
488
- # Corresponds to the JSON property `name`
489
- # @return [String]
490
- attr_accessor :name
491
-
492
- def initialize(**args)
493
- update!(**args)
494
- end
495
-
496
- # Update properties of this object
497
- def update!(**args)
498
- @category_id = args[:category_id] if args.key?(:category_id)
499
- @name = args[:name] if args.key?(:name)
500
- end
501
- end
502
-
503
- # Request message for MyBusiness.ClearLocationAssociationRequest to clear
504
- # the association between a location to its place ID.
505
- class ClearLocationAssociationRequest
506
- include Google::Apis::Core::Hashable
507
-
508
- def initialize(**args)
509
- update!(**args)
510
- end
511
-
512
- # Update properties of this object
513
- def update!(**args)
514
- end
515
- end
516
-
517
- # Represents a whole calendar date, e.g. date of birth. The time of day and
518
- # time zone are either specified elsewhere or are not significant. The date
519
- # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
520
- # represent a year and month where the day is not significant, e.g. credit card
521
- # expiration date. The year may be 0 to represent a month and day independent
522
- # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
523
- # and `google.protobuf.Timestamp`.
524
- class Date
525
- include Google::Apis::Core::Hashable
526
-
527
- # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
528
- # if specifying a year/month where the day is not significant.
529
- # Corresponds to the JSON property `day`
530
- # @return [Fixnum]
531
- attr_accessor :day
532
-
533
- # Month of year. Must be from 1 to 12.
534
- # Corresponds to the JSON property `month`
535
- # @return [Fixnum]
536
- attr_accessor :month
537
-
538
- # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
539
- # a year.
540
- # Corresponds to the JSON property `year`
541
- # @return [Fixnum]
542
- attr_accessor :year
543
-
544
- def initialize(**args)
545
- update!(**args)
546
- end
547
-
548
- # Update properties of this object
549
- def update!(**args)
550
- @day = args[:day] if args.key?(:day)
551
- @month = args[:month] if args.key?(:month)
552
- @year = args[:year] if args.key?(:year)
553
- end
554
- end
555
-
556
- # Information about the location that this location duplicates.
557
- class Duplicate
558
- include Google::Apis::Core::Hashable
559
-
560
- # The resource name of the location that this duplicates. Only populated
561
- # if the authenticated user has access rights to that location and that
562
- # location is not deleted.
563
- # Corresponds to the JSON property `locationName`
564
- # @return [String]
565
- attr_accessor :location_name
566
-
567
- # Indicates the ownership status between this location and the location
568
- # that it duplicates.
569
- # Corresponds to the JSON property `ownership`
570
- # @return [String]
571
- attr_accessor :ownership
572
-
573
- def initialize(**args)
574
- update!(**args)
575
- end
576
-
577
- # Update properties of this object
578
- def update!(**args)
579
- @location_name = args[:location_name] if args.key?(:location_name)
580
- @ownership = args[:ownership] if args.key?(:ownership)
581
- end
582
- end
583
-
584
- # A generic empty message that you can re-use to avoid defining duplicated
585
- # empty messages in your APIs. A typical example is to use it as the request
586
- # or the response type of an API method. For instance:
587
- # service Foo `
588
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
589
- # `
590
- # The JSON representation for `Empty` is empty JSON object ````.
591
- class Empty
592
- include Google::Apis::Core::Hashable
593
-
594
- def initialize(**args)
595
- update!(**args)
596
- end
597
-
598
- # Update properties of this object
599
- def update!(**args)
600
- end
601
- end
602
-
603
- # Request message for MyBusiness.FindMatchingLocations.
604
- class FindMatchingLocationsRequest
605
- include Google::Apis::Core::Hashable
606
-
607
- # The preferred language for the matching location.
608
- # Corresponds to the JSON property `languageCode`
609
- # @return [String]
610
- attr_accessor :language_code
611
-
612
- # Indicates the duration of acceptable cache-age. If omitted, will always
613
- # return the cached data (if available). If the cache is older than the
614
- # provided duration, or if a cached value is not available, results will be
615
- # re-calculated and re-cached.
616
- # Corresponds to the JSON property `maxCacheDuration`
617
- # @return [String]
618
- attr_accessor :max_cache_duration
619
-
620
- # The number of matches to return. The default value is 3, with a maximum
621
- # of 10. Note that latency may increase if more are requested. There is no
622
- # pagination. This field is only respected if the cache needs to be updated.
623
- # Corresponds to the JSON property `numResults`
624
- # @return [Fixnum]
625
- attr_accessor :num_results
626
-
627
- def initialize(**args)
628
- update!(**args)
629
- end
630
-
631
- # Update properties of this object
632
- def update!(**args)
633
- @language_code = args[:language_code] if args.key?(:language_code)
634
- @max_cache_duration = args[:max_cache_duration] if args.key?(:max_cache_duration)
635
- @num_results = args[:num_results] if args.key?(:num_results)
636
- end
637
- end
638
-
639
- # Response message for MyBusiness.FindMatchingLocations
640
- class FindMatchingLocationsResponse
641
- include Google::Apis::Core::Hashable
642
-
643
- # When the matching algorithm was last executed for this location.
644
- # Corresponds to the JSON property `matchTime`
645
- # @return [String]
646
- attr_accessor :match_time
647
-
648
- # A collection of locations that are potential matches to the specified
649
- # location, listed in order from best to least match. If there is an exact
650
- # match, it will be in the first position.
651
- # Corresponds to the JSON property `matchedLocations`
652
- # @return [Array<Google::Apis::MybusinessV3::MatchedLocation>]
653
- attr_accessor :matched_locations
654
-
655
- def initialize(**args)
656
- update!(**args)
657
- end
658
-
659
- # Update properties of this object
660
- def update!(**args)
661
- @match_time = args[:match_time] if args.key?(:match_time)
662
- @matched_locations = args[:matched_locations] if args.key?(:matched_locations)
663
- end
664
- end
665
-
666
- # Represents a location that was modified by Google.
667
- class GoogleUpdatedLocation
668
- include Google::Apis::Core::Hashable
669
-
670
- # The fields that Google updated.
671
- # Corresponds to the JSON property `diffMask`
672
- # @return [String]
673
- attr_accessor :diff_mask
674
-
675
- # A location.
676
- # See the [help center article]
677
- # (https://support.google.com/business/answer/3038177) for a detailed
678
- # description of these fields, or the [category
679
- # list](/my-business/content/categories] for a list of valid business
680
- # categories.
681
- # Corresponds to the JSON property `location`
682
- # @return [Google::Apis::MybusinessV3::Location]
683
- attr_accessor :location
684
-
685
- def initialize(**args)
686
- update!(**args)
687
- end
688
-
689
- # Update properties of this object
690
- def update!(**args)
691
- @diff_mask = args[:diff_mask] if args.key?(:diff_mask)
692
- @location = args[:location] if args.key?(:location)
693
- end
694
- end
695
-
696
- # An object representing a latitude/longitude pair. This is expressed as a pair
697
- # of doubles representing degrees latitude and degrees longitude. Unless
698
- # specified otherwise, this must conform to the
699
- # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
700
- # standard</a>. Values must be within normalized ranges.
701
- # Example of normalization code in Python:
702
- # def NormalizeLongitude(longitude):
703
- # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
704
- # q, r = divmod(longitude, 360.0)
705
- # if r > 180.0 or (r == 180.0 and q <= -1.0):
706
- # return r - 360.0
707
- # return r
708
- # def NormalizeLatLng(latitude, longitude):
709
- # """Wraps decimal degrees latitude and longitude to
710
- # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
711
- # r = latitude % 360.0
712
- # if r <= 90.0:
713
- # return r, NormalizeLongitude(longitude)
714
- # elif r >= 270.0:
715
- # return r - 360, NormalizeLongitude(longitude)
716
- # else:
717
- # return 180 - r, NormalizeLongitude(longitude + 180.0)
718
- # assert 180.0 == NormalizeLongitude(180.0)
719
- # assert -180.0 == NormalizeLongitude(-180.0)
720
- # assert -179.0 == NormalizeLongitude(181.0)
721
- # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
722
- # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
723
- # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
724
- # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
725
- # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
726
- # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
727
- # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
728
- # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
729
- # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
730
- # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
731
- class LatLng
732
- include Google::Apis::Core::Hashable
733
-
734
- # The latitude in degrees. It must be in the range [-90.0, +90.0].
735
- # Corresponds to the JSON property `latitude`
736
- # @return [Float]
737
- attr_accessor :latitude
738
-
739
- # The longitude in degrees. It must be in the range [-180.0, +180.0].
740
- # Corresponds to the JSON property `longitude`
741
- # @return [Float]
742
- attr_accessor :longitude
743
-
744
- def initialize(**args)
745
- update!(**args)
746
- end
747
-
748
- # Update properties of this object
749
- def update!(**args)
750
- @latitude = args[:latitude] if args.key?(:latitude)
751
- @longitude = args[:longitude] if args.key?(:longitude)
752
- end
753
- end
754
-
755
- #
756
- class ListAccountAdminsResponse
757
- include Google::Apis::Core::Hashable
758
-
759
- # A collection of Admin instances.
760
- # Corresponds to the JSON property `admins`
761
- # @return [Array<Google::Apis::MybusinessV3::Admin>]
762
- attr_accessor :admins
763
-
764
- def initialize(**args)
765
- update!(**args)
766
- end
767
-
768
- # Update properties of this object
769
- def update!(**args)
770
- @admins = args[:admins] if args.key?(:admins)
771
- end
772
- end
773
-
774
- #
775
- class ListAccountsResponse
776
- include Google::Apis::Core::Hashable
777
-
778
- # A collection of accounts to which the user has access.
779
- # Corresponds to the JSON property `accounts`
780
- # @return [Array<Google::Apis::MybusinessV3::Account>]
781
- attr_accessor :accounts
782
-
783
- # If the number of accounts exceeds the requested page size, this field is
784
- # populated with a token to fetch the next page of accounts on a
785
- # subsequent call to `accounts.list`. If there are no more accounts, this field
786
- # is not present in the response.
787
- # Corresponds to the JSON property `nextPageToken`
788
- # @return [String]
789
- attr_accessor :next_page_token
790
-
791
- def initialize(**args)
792
- update!(**args)
793
- end
794
-
795
- # Update properties of this object
796
- def update!(**args)
797
- @accounts = args[:accounts] if args.key?(:accounts)
798
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
799
- end
800
- end
801
-
802
- #
803
- class ListLocationAdminsResponse
804
- include Google::Apis::Core::Hashable
805
-
806
- # A collection of Admin instances.
807
- # Corresponds to the JSON property `admins`
808
- # @return [Array<Google::Apis::MybusinessV3::Admin>]
809
- attr_accessor :admins
810
-
811
- def initialize(**args)
812
- update!(**args)
813
- end
814
-
815
- # Update properties of this object
816
- def update!(**args)
817
- @admins = args[:admins] if args.key?(:admins)
818
- end
819
- end
820
-
821
- #
822
- class ListLocationAttributeMetadataResponse
823
- include Google::Apis::Core::Hashable
824
-
825
- # A collection of attribute metadata for the available attributes.
826
- # Corresponds to the JSON property `attributes`
827
- # @return [Array<Google::Apis::MybusinessV3::AttributeMetadata>]
828
- attr_accessor :attributes
829
-
830
- def initialize(**args)
831
- update!(**args)
832
- end
833
-
834
- # Update properties of this object
835
- def update!(**args)
836
- @attributes = args[:attributes] if args.key?(:attributes)
837
- end
838
- end
839
-
840
- #
841
- class ListLocationsResponse
842
- include Google::Apis::Core::Hashable
843
-
844
- # The locations
845
- # Corresponds to the JSON property `locations`
846
- # @return [Array<Google::Apis::MybusinessV3::Location>]
847
- attr_accessor :locations
848
-
849
- # If the number of locations exceeded the requested page size, this field
850
- # is populated with a token to fetch the next page of locations on a
851
- # subsequent call to ListLocations. If there are no more locations, this
852
- # field is not be present in the response.
853
- # Corresponds to the JSON property `nextPageToken`
854
- # @return [String]
855
- attr_accessor :next_page_token
856
-
857
- def initialize(**args)
858
- update!(**args)
859
- end
860
-
861
- # Update properties of this object
862
- def update!(**args)
863
- @locations = args[:locations] if args.key?(:locations)
864
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
865
- end
866
- end
867
-
868
- # Response message for MyBusiness.ListReviews.
869
- class ListReviewsResponse
870
- include Google::Apis::Core::Hashable
871
-
872
- # The average star rating of all reviews for this location
873
- # on a scale of 1 to 5.
874
- # Corresponds to the JSON property `averageRating`
875
- # @return [Float]
876
- attr_accessor :average_rating
877
-
878
- # If the number of reviews exceeded the requested page size, this field
879
- # is populated with a token to fetch the next page of reviews on a
880
- # subsequent call to ListReviews. If there are no more reviews, this
881
- # field is not be present in the response.
882
- # Corresponds to the JSON property `nextPageToken`
883
- # @return [String]
884
- attr_accessor :next_page_token
885
-
886
- # The reviews.
887
- # Corresponds to the JSON property `reviews`
888
- # @return [Array<Google::Apis::MybusinessV3::Review>]
889
- attr_accessor :reviews
890
-
891
- # The total number of reviews for this location.
892
- # Corresponds to the JSON property `totalReviewCount`
893
- # @return [Fixnum]
894
- attr_accessor :total_review_count
895
-
896
- def initialize(**args)
897
- update!(**args)
898
- end
899
-
900
- # Update properties of this object
901
- def update!(**args)
902
- @average_rating = args[:average_rating] if args.key?(:average_rating)
903
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
904
- @reviews = args[:reviews] if args.key?(:reviews)
905
- @total_review_count = args[:total_review_count] if args.key?(:total_review_count)
906
- end
907
- end
908
-
909
- # A location.
910
- # See the [help center article]
911
- # (https://support.google.com/business/answer/3038177) for a detailed
912
- # description of these fields, or the [category
913
- # list](/my-business/content/categories] for a list of valid business
914
- # categories.
915
- class Location
916
- include Google::Apis::Core::Hashable
917
-
918
- # Additional information that is surfaced in AdWords.
919
- # Corresponds to the JSON property `adWordsLocationExtensions`
920
- # @return [Google::Apis::MybusinessV3::AdWordsLocationExtensions]
921
- attr_accessor :ad_words_location_extensions
922
-
923
- # Additional categories to describe your business.
924
- # Categories help your customers find accurate, specific results for services
925
- # they're interested in. In order to keep your business information accurate
926
- # and live, make sure that you use as few categories as possible to describe
927
- # your overall core business.
928
- # Choose categories that are as specific as possible, but representative of
929
- # your main business.
930
- # Corresponds to the JSON property `additionalCategories`
931
- # @return [Array<Google::Apis::MybusinessV3::Category>]
932
- attr_accessor :additional_categories
933
-
934
- # Up to two phone numbers (mobile or landline, no fax) at which your business
935
- # can be called, in addition to your primary phone number.
936
- # Corresponds to the JSON property `additionalPhones`
937
- # @return [Array<String>]
938
- attr_accessor :additional_phones
939
-
940
- # Represents the physical location of the business.
941
- # Example addresses:
942
- # address_lines: "1600 Amphitheatre Parkway"
943
- # locality: Mountain View
944
- # administrative_area: CA
945
- # country: US
946
- # postal_code: 94043
947
- # address_lines: "A-205, Natasha Apartments", "2, Inner Ring Road"
948
- # sub_locality: Domlur
949
- # locality: Bangalore
950
- # administrative_area: Karnataka
951
- # country: IN
952
- # postal_code: 560071
953
- # Corresponds to the JSON property `address`
954
- # @return [Google::Apis::MybusinessV3::Address]
955
- attr_accessor :address
956
-
957
- # Attributes for this location.
958
- # Corresponds to the JSON property `attributes`
959
- # @return [Array<Google::Apis::MybusinessV3::Attribute>]
960
- attr_accessor :attributes
961
-
962
- # A collection of free-form strings to allow you to tag your business. These
963
- # labels are NOT user facing, and are only be seen by you.
964
- # Limited to 255 characters (per label).
965
- # Corresponds to the JSON property `labels`
966
- # @return [Array<String>]
967
- attr_accessor :labels
968
-
969
- # An object representing a latitude/longitude pair. This is expressed as a pair
970
- # of doubles representing degrees latitude and degrees longitude. Unless
971
- # specified otherwise, this must conform to the
972
- # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
973
- # standard</a>. Values must be within normalized ranges.
974
- # Example of normalization code in Python:
975
- # def NormalizeLongitude(longitude):
976
- # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
977
- # q, r = divmod(longitude, 360.0)
978
- # if r > 180.0 or (r == 180.0 and q <= -1.0):
979
- # return r - 360.0
980
- # return r
981
- # def NormalizeLatLng(latitude, longitude):
982
- # """Wraps decimal degrees latitude and longitude to
983
- # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
984
- # r = latitude % 360.0
985
- # if r <= 90.0:
986
- # return r, NormalizeLongitude(longitude)
987
- # elif r >= 270.0:
988
- # return r - 360, NormalizeLongitude(longitude)
989
- # else:
990
- # return 180 - r, NormalizeLongitude(longitude + 180.0)
991
- # assert 180.0 == NormalizeLongitude(180.0)
992
- # assert -180.0 == NormalizeLongitude(-180.0)
993
- # assert -179.0 == NormalizeLongitude(181.0)
994
- # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
995
- # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
996
- # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
997
- # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
998
- # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
999
- # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
1000
- # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
1001
- # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
1002
- # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
1003
- # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
1004
- # Corresponds to the JSON property `latlng`
1005
- # @return [Google::Apis::MybusinessV3::LatLng]
1006
- attr_accessor :latlng
1007
-
1008
- # Alternate / surrogate key references for a location.
1009
- # Corresponds to the JSON property `locationKey`
1010
- # @return [Google::Apis::MybusinessV3::LocationKey]
1011
- attr_accessor :location_key
1012
-
1013
- # Location name should reflect your business's real-world name, as used
1014
- # consistently on your storefront, website, and stationery, and as known to
1015
- # customers.
1016
- # Any additional information, when relevant, can be included in other
1017
- # fields of the resource (for example, `Address`, `Categories`).
1018
- # Do not add unnecessary information to your name (for example, prefer "Google"
1019
- # over
1020
- # "Google Inc. - Mountain View Corporate Headquarters").
1021
- # It is NOT permitted to include marketing taglines, store codes, special
1022
- # characters, hours or
1023
- # closed/open status, phone numbers, website URLs, service/product
1024
- # information, location/address or directions, or containment information
1025
- # (for example, "Chase ATM in Duane Reade").
1026
- # Corresponds to the JSON property `locationName`
1027
- # @return [String]
1028
- attr_accessor :location_name
1029
-
1030
- # Contains a set of booleans that reflect the state of a Location.
1031
- # Corresponds to the JSON property `locationState`
1032
- # @return [Google::Apis::MybusinessV3::LocationState]
1033
- attr_accessor :location_state
1034
-
1035
- # Additional non-user-editable information about the location.
1036
- # Corresponds to the JSON property `metadata`
1037
- # @return [Google::Apis::MybusinessV3::Metadata]
1038
- attr_accessor :metadata
1039
-
1040
- # Google identifier for this location in the form:
1041
- # `accounts/`account_id`/locations/`location_id``
1042
- # In the context of matches, this field will not be populated.
1043
- # Corresponds to the JSON property `name`
1044
- # @return [String]
1045
- attr_accessor :name
1046
-
1047
- # Indicates whether the location is currently open for business.
1048
- # All locations are open by default, unless updated to be closed.
1049
- # Corresponds to the JSON property `openInfo`
1050
- # @return [Google::Apis::MybusinessV3::OpenInfo]
1051
- attr_accessor :open_info
1052
-
1053
- # A collection of photos representing the business, categorized by photo type.
1054
- # The URL for each photo should point to a publicly accessible image.
1055
- # Photos should be supplied in either JPG or PNG format unless specified
1056
- # otherwise. If the photo was added by using Google My Business Locations or
1057
- # this API, the user-provided URL is used. If the photo was uploaded via the
1058
- # Google My Business Photos App, the photo uses a generated URL hosted by
1059
- # Google. Exceptions: `profile_photo_url` and `cover_photo_url` are always
1060
- # under a Google domain.
1061
- # With the exception of profile_photo_url and cover_photo_url, all photos
1062
- # must measure a minimum of 250px on the short edge, with a file size of at
1063
- # least 10240 bytes.
1064
- # Corresponds to the JSON property `photos`
1065
- # @return [Google::Apis::MybusinessV3::Photos]
1066
- attr_accessor :photos
1067
-
1068
- # A category describing what this business is (not what it does). For a list of
1069
- # valid category IDs, and the mappings to their human readable names, see
1070
- # the [category list](/my-business/content/categories).
1071
- # Corresponds to the JSON property `primaryCategory`
1072
- # @return [Google::Apis::MybusinessV3::Category]
1073
- attr_accessor :primary_category
1074
-
1075
- # A phone number that connects to your individual business location
1076
- # as directly as possible. Use a local phone number instead of a central,
1077
- # call center helpline number whenever possible.
1078
- # Corresponds to the JSON property `primaryPhone`
1079
- # @return [String]
1080
- attr_accessor :primary_phone
1081
-
1082
- # Represents the time periods that this location is open for business.
1083
- # Holds a collection of TimePeriod
1084
- # instances.
1085
- # Corresponds to the JSON property `regularHours`
1086
- # @return [Google::Apis::MybusinessV3::BusinessHours]
1087
- attr_accessor :regular_hours
1088
-
1089
- # Service area businesses provide their service at the customer's location (for
1090
- # example a locksmith or plumber).
1091
- # Corresponds to the JSON property `serviceArea`
1092
- # @return [Google::Apis::MybusinessV3::ServiceAreaBusiness]
1093
- attr_accessor :service_area
1094
-
1095
- # Represents a set of time periods when a location's operational hours differ
1096
- # from its normal business hours.
1097
- # Corresponds to the JSON property `specialHours`
1098
- # @return [Google::Apis::MybusinessV3::SpecialHours]
1099
- attr_accessor :special_hours
1100
-
1101
- # External identifier for this location, which must be unique inside a given
1102
- # account. This is a means of associating the location with your own records.
1103
- # Corresponds to the JSON property `storeCode`
1104
- # @return [String]
1105
- attr_accessor :store_code
1106
-
1107
- # A URL for this business. If possible, use a URL that represents this
1108
- # individual business location instead of a generic website/URL that represents
1109
- # all locations, or the brand.
1110
- # Corresponds to the JSON property `websiteUrl`
1111
- # @return [String]
1112
- attr_accessor :website_url
1113
-
1114
- def initialize(**args)
1115
- update!(**args)
1116
- end
1117
-
1118
- # Update properties of this object
1119
- def update!(**args)
1120
- @ad_words_location_extensions = args[:ad_words_location_extensions] if args.key?(:ad_words_location_extensions)
1121
- @additional_categories = args[:additional_categories] if args.key?(:additional_categories)
1122
- @additional_phones = args[:additional_phones] if args.key?(:additional_phones)
1123
- @address = args[:address] if args.key?(:address)
1124
- @attributes = args[:attributes] if args.key?(:attributes)
1125
- @labels = args[:labels] if args.key?(:labels)
1126
- @latlng = args[:latlng] if args.key?(:latlng)
1127
- @location_key = args[:location_key] if args.key?(:location_key)
1128
- @location_name = args[:location_name] if args.key?(:location_name)
1129
- @location_state = args[:location_state] if args.key?(:location_state)
1130
- @metadata = args[:metadata] if args.key?(:metadata)
1131
- @name = args[:name] if args.key?(:name)
1132
- @open_info = args[:open_info] if args.key?(:open_info)
1133
- @photos = args[:photos] if args.key?(:photos)
1134
- @primary_category = args[:primary_category] if args.key?(:primary_category)
1135
- @primary_phone = args[:primary_phone] if args.key?(:primary_phone)
1136
- @regular_hours = args[:regular_hours] if args.key?(:regular_hours)
1137
- @service_area = args[:service_area] if args.key?(:service_area)
1138
- @special_hours = args[:special_hours] if args.key?(:special_hours)
1139
- @store_code = args[:store_code] if args.key?(:store_code)
1140
- @website_url = args[:website_url] if args.key?(:website_url)
1141
- end
1142
- end
1143
-
1144
- # Alternate / surrogate key references for a location.
1145
- class LocationKey
1146
- include Google::Apis::Core::Hashable
1147
-
1148
- # A value of true indicates that an unset place ID is deliberate,
1149
- # which is different from no association being made yet.
1150
- # @OutputOnly
1151
- # Corresponds to the JSON property `explicitNoPlaceId`
1152
- # @return [Boolean]
1153
- attr_accessor :explicit_no_place_id
1154
- alias_method :explicit_no_place_id?, :explicit_no_place_id
1155
-
1156
- # If this location has been verified and is connected to/appears on Google
1157
- # Maps, this field is populated with the place ID for the location.
1158
- # This ID can be used in various Places APIs.
1159
- # If this location is unverified, this field may be populated if the location
1160
- # has been associated with a place that appears on Google Maps.
1161
- # This field can be set during Create calls, but not for Update.
1162
- # The additional explicit_no_place_id bool qualifies whether an unset
1163
- # place ID is deliberate or not.
1164
- # Corresponds to the JSON property `placeId`
1165
- # @return [String]
1166
- attr_accessor :place_id
1167
-
1168
- # If this location has a Google+ page associated with it, this is
1169
- # populated with the Google+ page ID for this location.
1170
- # @OutputOnly
1171
- # Corresponds to the JSON property `plusPageId`
1172
- # @return [String]
1173
- attr_accessor :plus_page_id
1174
-
1175
- def initialize(**args)
1176
- update!(**args)
1177
- end
1178
-
1179
- # Update properties of this object
1180
- def update!(**args)
1181
- @explicit_no_place_id = args[:explicit_no_place_id] if args.key?(:explicit_no_place_id)
1182
- @place_id = args[:place_id] if args.key?(:place_id)
1183
- @plus_page_id = args[:plus_page_id] if args.key?(:plus_page_id)
1184
- end
1185
- end
1186
-
1187
- # Contains a set of booleans that reflect the state of a Location.
1188
- class LocationState
1189
- include Google::Apis::Core::Hashable
1190
-
1191
- # Indicates whether the location can be deleted using the Google My Business
1192
- # UI.
1193
- # @OutputOnly
1194
- # Corresponds to the JSON property `canDelete`
1195
- # @return [Boolean]
1196
- attr_accessor :can_delete
1197
- alias_method :can_delete?, :can_delete
1198
-
1199
- # Indicates whether the location can be updated.
1200
- # @OutputOnly
1201
- # Corresponds to the JSON property `canUpdate`
1202
- # @return [Boolean]
1203
- attr_accessor :can_update
1204
- alias_method :can_update?, :can_update
1205
-
1206
- # Indicates whether the location is a duplicate of another location.
1207
- # See metadata.duplicate for more information.
1208
- # @OutputOnly
1209
- # Corresponds to the JSON property `isDuplicate`
1210
- # @return [Boolean]
1211
- attr_accessor :is_duplicate
1212
- alias_method :is_duplicate?, :is_duplicate
1213
-
1214
- # Indicates whether the place ID associated with this location has updates.
1215
- # @OutputOnly
1216
- # Corresponds to the JSON property `isGoogleUpdated`
1217
- # @return [Boolean]
1218
- attr_accessor :is_google_updated
1219
- alias_method :is_google_updated?, :is_google_updated
1220
-
1221
- # Indicates whether the location is suspended.
1222
- # Suspended locations are not visible to end users in Google products.
1223
- # If you believe this was a mistake, see the [help center article]
1224
- # (https://support.google.com/business/answer/4569145).
1225
- # @OutputOnly
1226
- # Corresponds to the JSON property `isSuspended`
1227
- # @return [Boolean]
1228
- attr_accessor :is_suspended
1229
- alias_method :is_suspended?, :is_suspended
1230
-
1231
- # Indicates whether the location is verified.
1232
- # @OutputOnly
1233
- # Corresponds to the JSON property `isVerified`
1234
- # @return [Boolean]
1235
- attr_accessor :is_verified
1236
- alias_method :is_verified?, :is_verified
1237
-
1238
- # Indicates whether the location requires reverification.
1239
- # @OutputOnly
1240
- # Corresponds to the JSON property `needsReverification`
1241
- # @return [Boolean]
1242
- attr_accessor :needs_reverification
1243
- alias_method :needs_reverification?, :needs_reverification
1244
-
1245
- def initialize(**args)
1246
- update!(**args)
1247
- end
1248
-
1249
- # Update properties of this object
1250
- def update!(**args)
1251
- @can_delete = args[:can_delete] if args.key?(:can_delete)
1252
- @can_update = args[:can_update] if args.key?(:can_update)
1253
- @is_duplicate = args[:is_duplicate] if args.key?(:is_duplicate)
1254
- @is_google_updated = args[:is_google_updated] if args.key?(:is_google_updated)
1255
- @is_suspended = args[:is_suspended] if args.key?(:is_suspended)
1256
- @is_verified = args[:is_verified] if args.key?(:is_verified)
1257
- @needs_reverification = args[:needs_reverification] if args.key?(:needs_reverification)
1258
- end
1259
- end
1260
-
1261
- # Represents a possible match to a location.
1262
- class MatchedLocation
1263
- include Google::Apis::Core::Hashable
1264
-
1265
- # Is this an exact match?
1266
- # Corresponds to the JSON property `isExactMatch`
1267
- # @return [Boolean]
1268
- attr_accessor :is_exact_match
1269
- alias_method :is_exact_match?, :is_exact_match
1270
-
1271
- # A location.
1272
- # See the [help center article]
1273
- # (https://support.google.com/business/answer/3038177) for a detailed
1274
- # description of these fields, or the [category
1275
- # list](/my-business/content/categories] for a list of valid business
1276
- # categories.
1277
- # Corresponds to the JSON property `location`
1278
- # @return [Google::Apis::MybusinessV3::Location]
1279
- attr_accessor :location
1280
-
1281
- def initialize(**args)
1282
- update!(**args)
1283
- end
1284
-
1285
- # Update properties of this object
1286
- def update!(**args)
1287
- @is_exact_match = args[:is_exact_match] if args.key?(:is_exact_match)
1288
- @location = args[:location] if args.key?(:location)
1289
- end
1290
- end
1291
-
1292
- # Additional non-user-editable information about the location.
1293
- class Metadata
1294
- include Google::Apis::Core::Hashable
1295
-
1296
- # Information about the location that this location duplicates.
1297
- # Corresponds to the JSON property `duplicate`
1298
- # @return [Google::Apis::MybusinessV3::Duplicate]
1299
- attr_accessor :duplicate
1300
-
1301
- def initialize(**args)
1302
- update!(**args)
1303
- end
1304
-
1305
- # Update properties of this object
1306
- def update!(**args)
1307
- @duplicate = args[:duplicate] if args.key?(:duplicate)
1308
- end
1309
- end
1310
-
1311
- # Indicates whether the location is currently open for business.
1312
- # All locations are open by default, unless updated to be closed.
1313
- class OpenInfo
1314
- include Google::Apis::Core::Hashable
1315
-
1316
- # Indicates the Location OpenForBusiness status.
1317
- # Corresponds to the JSON property `status`
1318
- # @return [String]
1319
- attr_accessor :status
1320
-
1321
- def initialize(**args)
1322
- update!(**args)
1323
- end
1324
-
1325
- # Update properties of this object
1326
- def update!(**args)
1327
- @status = args[:status] if args.key?(:status)
1328
- end
1329
- end
1330
-
1331
- # A collection of photos representing the business, categorized by photo type.
1332
- # The URL for each photo should point to a publicly accessible image.
1333
- # Photos should be supplied in either JPG or PNG format unless specified
1334
- # otherwise. If the photo was added by using Google My Business Locations or
1335
- # this API, the user-provided URL is used. If the photo was uploaded via the
1336
- # Google My Business Photos App, the photo uses a generated URL hosted by
1337
- # Google. Exceptions: `profile_photo_url` and `cover_photo_url` are always
1338
- # under a Google domain.
1339
- # With the exception of profile_photo_url and cover_photo_url, all photos
1340
- # must measure a minimum of 250px on the short edge, with a file size of at
1341
- # least 10240 bytes.
1342
- class Photos
1343
- include Google::Apis::Core::Hashable
1344
-
1345
- # Use the additional photos category for images that don't fit in any of the
1346
- # other categories.
1347
- # Corresponds to the JSON property `additionalPhotoUrls`
1348
- # @return [Array<String>]
1349
- attr_accessor :additional_photo_urls
1350
-
1351
- # Common area photos show customers the common areas of your business
1352
- # location.
1353
- # Corresponds to the JSON property `commonAreasPhotoUrls`
1354
- # @return [Array<String>]
1355
- attr_accessor :common_areas_photo_urls
1356
-
1357
- # The cover photo showcases the personality of your business.
1358
- # Cover photos must have a 16:9 aspect ratio, with a minimum size of 480px
1359
- # x 270px, and a maximum size of 2120px x 1192px.
1360
- # Corresponds to the JSON property `coverPhotoUrl`
1361
- # @return [String]
1362
- attr_accessor :cover_photo_url
1363
-
1364
- # Exterior photos help customers to recognize your business as they approach
1365
- # from different directions.
1366
- # Corresponds to the JSON property `exteriorPhotoUrls`
1367
- # @return [Array<String>]
1368
- attr_accessor :exterior_photo_urls
1369
-
1370
- # Food and drink photos display the food and drink items served by your
1371
- # business.
1372
- # Corresponds to the JSON property `foodAndDrinkPhotoUrls`
1373
- # @return [Array<String>]
1374
- attr_accessor :food_and_drink_photo_urls
1375
-
1376
- # Interior photos show customers what your business location looks like
1377
- # inside.
1378
- # Corresponds to the JSON property `interiorPhotoUrls`
1379
- # @return [Array<String>]
1380
- attr_accessor :interior_photo_urls
1381
-
1382
- # The logo photo helps customers to recognize your brand. Upon upload, logo
1383
- # images are fitted into a square (transparent vertical or horizontal lines
1384
- # are added on two sides of the image if the original image is not square).
1385
- # Corresponds to the JSON property `logoPhotoUrl`
1386
- # @return [String]
1387
- attr_accessor :logo_photo_url
1388
-
1389
- # Menu photos show customers what your food menu looks like.
1390
- # Corresponds to the JSON property `menuPhotoUrls`
1391
- # @return [Array<String>]
1392
- attr_accessor :menu_photo_urls
1393
-
1394
- # At work photos show you and your employees serving your customers.
1395
- # Corresponds to the JSON property `photosAtWorkUrls`
1396
- # @return [Array<String>]
1397
- attr_accessor :photos_at_work_urls
1398
-
1399
- # Indicate which photo should be shown first in Google Maps and Search.
1400
- # Corresponds to the JSON property `preferredPhoto`
1401
- # @return [String]
1402
- attr_accessor :preferred_photo
1403
-
1404
- # Product photos showcase the products sold by your business.
1405
- # Corresponds to the JSON property `productPhotoUrls`
1406
- # @return [Array<String>]
1407
- attr_accessor :product_photo_urls
1408
-
1409
- # The profile photo helps people recognize your business across Google.
1410
- # Profile photos must be square, with a minimum size of 250px and a maximum
1411
- # size of 500px. Allowed formats are JPG, PNG, and GIF.
1412
- # Corresponds to the JSON property `profilePhotoUrl`
1413
- # @return [String]
1414
- attr_accessor :profile_photo_url
1415
-
1416
- # Room photos show customers the inside of your guest rooms.
1417
- # Corresponds to the JSON property `roomsPhotoUrls`
1418
- # @return [Array<String>]
1419
- attr_accessor :rooms_photo_urls
1420
-
1421
- # Team photos show your management team and your employees.
1422
- # Corresponds to the JSON property `teamPhotoUrls`
1423
- # @return [Array<String>]
1424
- attr_accessor :team_photo_urls
1425
-
1426
- def initialize(**args)
1427
- update!(**args)
1428
- end
1429
-
1430
- # Update properties of this object
1431
- def update!(**args)
1432
- @additional_photo_urls = args[:additional_photo_urls] if args.key?(:additional_photo_urls)
1433
- @common_areas_photo_urls = args[:common_areas_photo_urls] if args.key?(:common_areas_photo_urls)
1434
- @cover_photo_url = args[:cover_photo_url] if args.key?(:cover_photo_url)
1435
- @exterior_photo_urls = args[:exterior_photo_urls] if args.key?(:exterior_photo_urls)
1436
- @food_and_drink_photo_urls = args[:food_and_drink_photo_urls] if args.key?(:food_and_drink_photo_urls)
1437
- @interior_photo_urls = args[:interior_photo_urls] if args.key?(:interior_photo_urls)
1438
- @logo_photo_url = args[:logo_photo_url] if args.key?(:logo_photo_url)
1439
- @menu_photo_urls = args[:menu_photo_urls] if args.key?(:menu_photo_urls)
1440
- @photos_at_work_urls = args[:photos_at_work_urls] if args.key?(:photos_at_work_urls)
1441
- @preferred_photo = args[:preferred_photo] if args.key?(:preferred_photo)
1442
- @product_photo_urls = args[:product_photo_urls] if args.key?(:product_photo_urls)
1443
- @profile_photo_url = args[:profile_photo_url] if args.key?(:profile_photo_url)
1444
- @rooms_photo_urls = args[:rooms_photo_urls] if args.key?(:rooms_photo_urls)
1445
- @team_photo_urls = args[:team_photo_urls] if args.key?(:team_photo_urls)
1446
- end
1447
- end
1448
-
1449
- # Defines an area that's represented by a place ID.
1450
- class PlaceInfo
1451
- include Google::Apis::Core::Hashable
1452
-
1453
- # The localized name of the place. For example, `Scottsdale, AZ`.
1454
- # Corresponds to the JSON property `name`
1455
- # @return [String]
1456
- attr_accessor :name
1457
-
1458
- # The ID of the place.
1459
- # Corresponds to the JSON property `placeId`
1460
- # @return [String]
1461
- attr_accessor :place_id
1462
-
1463
- def initialize(**args)
1464
- update!(**args)
1465
- end
1466
-
1467
- # Update properties of this object
1468
- def update!(**args)
1469
- @name = args[:name] if args.key?(:name)
1470
- @place_id = args[:place_id] if args.key?(:place_id)
1471
- end
1472
- end
1473
-
1474
- # Defines the union of areas represented by a set of places.
1475
- class Places
1476
- include Google::Apis::Core::Hashable
1477
-
1478
- # The areas represented by place IDs.
1479
- # Corresponds to the JSON property `placeInfos`
1480
- # @return [Array<Google::Apis::MybusinessV3::PlaceInfo>]
1481
- attr_accessor :place_infos
1482
-
1483
- def initialize(**args)
1484
- update!(**args)
1485
- end
1486
-
1487
- # Update properties of this object
1488
- def update!(**args)
1489
- @place_infos = args[:place_infos] if args.key?(:place_infos)
1490
- end
1491
- end
1492
-
1493
- # A radius around a particular point (latitude/longitude).
1494
- class PointRadius
1495
- include Google::Apis::Core::Hashable
1496
-
1497
- # An object representing a latitude/longitude pair. This is expressed as a pair
1498
- # of doubles representing degrees latitude and degrees longitude. Unless
1499
- # specified otherwise, this must conform to the
1500
- # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
1501
- # standard</a>. Values must be within normalized ranges.
1502
- # Example of normalization code in Python:
1503
- # def NormalizeLongitude(longitude):
1504
- # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
1505
- # q, r = divmod(longitude, 360.0)
1506
- # if r > 180.0 or (r == 180.0 and q <= -1.0):
1507
- # return r - 360.0
1508
- # return r
1509
- # def NormalizeLatLng(latitude, longitude):
1510
- # """Wraps decimal degrees latitude and longitude to
1511
- # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
1512
- # r = latitude % 360.0
1513
- # if r <= 90.0:
1514
- # return r, NormalizeLongitude(longitude)
1515
- # elif r >= 270.0:
1516
- # return r - 360, NormalizeLongitude(longitude)
1517
- # else:
1518
- # return 180 - r, NormalizeLongitude(longitude + 180.0)
1519
- # assert 180.0 == NormalizeLongitude(180.0)
1520
- # assert -180.0 == NormalizeLongitude(-180.0)
1521
- # assert -179.0 == NormalizeLongitude(181.0)
1522
- # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
1523
- # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
1524
- # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
1525
- # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
1526
- # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
1527
- # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
1528
- # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
1529
- # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
1530
- # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
1531
- # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
1532
- # Corresponds to the JSON property `latlng`
1533
- # @return [Google::Apis::MybusinessV3::LatLng]
1534
- attr_accessor :latlng
1535
-
1536
- # The distance in kilometers of the area around the point.
1537
- # Corresponds to the JSON property `radiusKm`
1538
- # @return [Float]
1539
- attr_accessor :radius_km
1540
-
1541
- def initialize(**args)
1542
- update!(**args)
1543
- end
1544
-
1545
- # Update properties of this object
1546
- def update!(**args)
1547
- @latlng = args[:latlng] if args.key?(:latlng)
1548
- @radius_km = args[:radius_km] if args.key?(:radius_km)
1549
- end
1550
- end
1551
-
1552
- # Represents a review for a location.
1553
- # @OutputOnly
1554
- class Review
1555
- include Google::Apis::Core::Hashable
1556
-
1557
- # The body of the review as plain text with markups.
1558
- # Corresponds to the JSON property `comment`
1559
- # @return [String]
1560
- attr_accessor :comment
1561
-
1562
- # The timestamp for when the review was written.
1563
- # Corresponds to the JSON property `createTime`
1564
- # @return [String]
1565
- attr_accessor :create_time
1566
-
1567
- # The encrypted unique identifier.
1568
- # Corresponds to the JSON property `reviewId`
1569
- # @return [String]
1570
- attr_accessor :review_id
1571
-
1572
- # Represents the location owner/manager's reply to a review
1573
- # Corresponds to the JSON property `reviewReply`
1574
- # @return [Google::Apis::MybusinessV3::ReviewReply]
1575
- attr_accessor :review_reply
1576
-
1577
- # Represents the author of reviews.
1578
- # Corresponds to the JSON property `reviewer`
1579
- # @return [Google::Apis::MybusinessV3::Reviewer]
1580
- attr_accessor :reviewer
1581
-
1582
- # Star rating of the review.
1583
- # Corresponds to the JSON property `starRating`
1584
- # @return [String]
1585
- attr_accessor :star_rating
1586
-
1587
- # The timestamp for when the review was last modified.
1588
- # Corresponds to the JSON property `updateTime`
1589
- # @return [String]
1590
- attr_accessor :update_time
1591
-
1592
- def initialize(**args)
1593
- update!(**args)
1594
- end
1595
-
1596
- # Update properties of this object
1597
- def update!(**args)
1598
- @comment = args[:comment] if args.key?(:comment)
1599
- @create_time = args[:create_time] if args.key?(:create_time)
1600
- @review_id = args[:review_id] if args.key?(:review_id)
1601
- @review_reply = args[:review_reply] if args.key?(:review_reply)
1602
- @reviewer = args[:reviewer] if args.key?(:reviewer)
1603
- @star_rating = args[:star_rating] if args.key?(:star_rating)
1604
- @update_time = args[:update_time] if args.key?(:update_time)
1605
- end
1606
- end
1607
-
1608
- # Represents the location owner/manager's reply to a review
1609
- class ReviewReply
1610
- include Google::Apis::Core::Hashable
1611
-
1612
- # The body of the review as plain text with markups.
1613
- # The maximum length is 4096 bytes.
1614
- # Corresponds to the JSON property `comment`
1615
- # @return [String]
1616
- attr_accessor :comment
1617
-
1618
- # The timestamp for when the review was last modified.
1619
- # @OutputOnly
1620
- # Corresponds to the JSON property `updateTime`
1621
- # @return [String]
1622
- attr_accessor :update_time
1623
-
1624
- def initialize(**args)
1625
- update!(**args)
1626
- end
1627
-
1628
- # Update properties of this object
1629
- def update!(**args)
1630
- @comment = args[:comment] if args.key?(:comment)
1631
- @update_time = args[:update_time] if args.key?(:update_time)
1632
- end
1633
- end
1634
-
1635
- # Represents the author of reviews.
1636
- class Reviewer
1637
- include Google::Apis::Core::Hashable
1638
-
1639
- # The name of the reviewer.
1640
- # Only populated with the reviewer's real name if is_anonymous is false.
1641
- # Corresponds to the JSON property `displayName`
1642
- # @return [String]
1643
- attr_accessor :display_name
1644
-
1645
- # Indicates whether the reviewer has opted to remain anonymous.
1646
- # Corresponds to the JSON property `isAnonymous`
1647
- # @return [Boolean]
1648
- attr_accessor :is_anonymous
1649
- alias_method :is_anonymous?, :is_anonymous
1650
-
1651
- def initialize(**args)
1652
- update!(**args)
1653
- end
1654
-
1655
- # Update properties of this object
1656
- def update!(**args)
1657
- @display_name = args[:display_name] if args.key?(:display_name)
1658
- @is_anonymous = args[:is_anonymous] if args.key?(:is_anonymous)
1659
- end
1660
- end
1661
-
1662
- # Service area businesses provide their service at the customer's location (for
1663
- # example a locksmith or plumber).
1664
- class ServiceAreaBusiness
1665
- include Google::Apis::Core::Hashable
1666
-
1667
- # Indicates the type of the service area
1668
- # business.
1669
- # Corresponds to the JSON property `businessType`
1670
- # @return [String]
1671
- attr_accessor :business_type
1672
-
1673
- # Defines the union of areas represented by a set of places.
1674
- # Corresponds to the JSON property `places`
1675
- # @return [Google::Apis::MybusinessV3::Places]
1676
- attr_accessor :places
1677
-
1678
- # A radius around a particular point (latitude/longitude).
1679
- # Corresponds to the JSON property `radius`
1680
- # @return [Google::Apis::MybusinessV3::PointRadius]
1681
- attr_accessor :radius
1682
-
1683
- def initialize(**args)
1684
- update!(**args)
1685
- end
1686
-
1687
- # Update properties of this object
1688
- def update!(**args)
1689
- @business_type = args[:business_type] if args.key?(:business_type)
1690
- @places = args[:places] if args.key?(:places)
1691
- @radius = args[:radius] if args.key?(:radius)
1692
- end
1693
- end
1694
-
1695
- # Represents a single time period when a location's operational hours differ
1696
- # from its normal business hours.
1697
- # A special hour period must represent a range of less than 24 hours.
1698
- # The `open_time` and `start_date` must predate the `close_time` and `end_date`.
1699
- # The `close_time` and `end_date` can extend to 11:59 a.m. on the day after
1700
- # the specified `start_date`.
1701
- # For example, the following inputs are valid:
1702
- # start_date=2015-11-23, open_time=08:00, close_time=18:00
1703
- # start_date=2015-11-23, end_date=2015-11-23, open_time=08:00, close_time=18:
1704
- # 00
1705
- # start_date=2015-11-23, end_date=2015-11-24, open_time=13:00, close_time=11:
1706
- # 59
1707
- # The following inputs are NOT valid:
1708
- # start_date=2015-11-23, open_time=13:00, close_time=11:59
1709
- # start_date=2015-11-23, end_date=2015-11-24, open_time=13:00, close_time=12:
1710
- # 00
1711
- # start_date=2015-11-23, end_date=2015-11-25, open_time=08:00, close_time=18:
1712
- # 00
1713
- class SpecialHourPeriod
1714
- include Google::Apis::Core::Hashable
1715
-
1716
- # The wall time on end_date when a location closes, expressed in
1717
- # 24hr ISO 8601 extended format. (hh:mm) Valid values are 00:00-24:00,
1718
- # where 24:00 represents midnight at the end of the specified day field.
1719
- # Must be specified if is_closed is false.
1720
- # Corresponds to the JSON property `closeTime`
1721
- # @return [String]
1722
- attr_accessor :close_time
1723
-
1724
- # Represents a whole calendar date, e.g. date of birth. The time of day and
1725
- # time zone are either specified elsewhere or are not significant. The date
1726
- # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
1727
- # represent a year and month where the day is not significant, e.g. credit card
1728
- # expiration date. The year may be 0 to represent a month and day independent
1729
- # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
1730
- # and `google.protobuf.Timestamp`.
1731
- # Corresponds to the JSON property `endDate`
1732
- # @return [Google::Apis::MybusinessV3::Date]
1733
- attr_accessor :end_date
1734
-
1735
- # If true, end_date, open_time, and close_time are ignored,
1736
- # and the date specified in start_date is treated as the location being
1737
- # closed for the entire day.
1738
- # Corresponds to the JSON property `isClosed`
1739
- # @return [Boolean]
1740
- attr_accessor :is_closed
1741
- alias_method :is_closed?, :is_closed
1742
-
1743
- # The wall time on `start_date` when a location opens, expressed in
1744
- # 24hr ISO 8601 extended format. (hh:mm) Valid values are 00:00-24:00,
1745
- # where 24:00 represents midnight at the end of the specified day field.
1746
- # Must be specified if `is_closed` is false.
1747
- # Corresponds to the JSON property `openTime`
1748
- # @return [String]
1749
- attr_accessor :open_time
1750
-
1751
- # Represents a whole calendar date, e.g. date of birth. The time of day and
1752
- # time zone are either specified elsewhere or are not significant. The date
1753
- # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
1754
- # represent a year and month where the day is not significant, e.g. credit card
1755
- # expiration date. The year may be 0 to represent a month and day independent
1756
- # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
1757
- # and `google.protobuf.Timestamp`.
1758
- # Corresponds to the JSON property `startDate`
1759
- # @return [Google::Apis::MybusinessV3::Date]
1760
- attr_accessor :start_date
1761
-
1762
- def initialize(**args)
1763
- update!(**args)
1764
- end
1765
-
1766
- # Update properties of this object
1767
- def update!(**args)
1768
- @close_time = args[:close_time] if args.key?(:close_time)
1769
- @end_date = args[:end_date] if args.key?(:end_date)
1770
- @is_closed = args[:is_closed] if args.key?(:is_closed)
1771
- @open_time = args[:open_time] if args.key?(:open_time)
1772
- @start_date = args[:start_date] if args.key?(:start_date)
1773
- end
1774
- end
1775
-
1776
- # Represents a set of time periods when a location's operational hours differ
1777
- # from its normal business hours.
1778
- class SpecialHours
1779
- include Google::Apis::Core::Hashable
1780
-
1781
- # A list of exceptions to the business's regular hours.
1782
- # Corresponds to the JSON property `specialHourPeriods`
1783
- # @return [Array<Google::Apis::MybusinessV3::SpecialHourPeriod>]
1784
- attr_accessor :special_hour_periods
1785
-
1786
- def initialize(**args)
1787
- update!(**args)
1788
- end
1789
-
1790
- # Update properties of this object
1791
- def update!(**args)
1792
- @special_hour_periods = args[:special_hour_periods] if args.key?(:special_hour_periods)
1793
- end
1794
- end
1795
-
1796
- # Represents a span of time that the business is open, starting on the
1797
- # specified open
1798
- # day/time and closing on the specified close day/time.
1799
- # The closing time must occur after the opening time, for example later in the
1800
- # same day, or on a subsequent day.
1801
- class TimePeriod
1802
- include Google::Apis::Core::Hashable
1803
-
1804
- # Indicates the day of the week this period ends
1805
- # on.
1806
- # Corresponds to the JSON property `closeDay`
1807
- # @return [String]
1808
- attr_accessor :close_day
1809
-
1810
- # Time in 24hr ISO 8601 extended format (hh:mm). Valid values are
1811
- # 00:00-24:00, where 24:00 represents midnight at the end of the specified day
1812
- # field.
1813
- # Corresponds to the JSON property `closeTime`
1814
- # @return [String]
1815
- attr_accessor :close_time
1816
-
1817
- # Indicates the day of the week this period starts
1818
- # on.
1819
- # Corresponds to the JSON property `openDay`
1820
- # @return [String]
1821
- attr_accessor :open_day
1822
-
1823
- # Time in 24hr ISO 8601 extended format (hh:mm). Valid values are 00:00-24:00,
1824
- # where 24:00 represents midnight at the end of the specified day field.
1825
- # Corresponds to the JSON property `openTime`
1826
- # @return [String]
1827
- attr_accessor :open_time
1828
-
1829
- def initialize(**args)
1830
- update!(**args)
1831
- end
1832
-
1833
- # Update properties of this object
1834
- def update!(**args)
1835
- @close_day = args[:close_day] if args.key?(:close_day)
1836
- @close_time = args[:close_time] if args.key?(:close_time)
1837
- @open_day = args[:open_day] if args.key?(:open_day)
1838
- @open_time = args[:open_time] if args.key?(:open_time)
1839
- end
1840
- end
1841
-
1842
- # Request message for MyBusiness.TransferLocation to transfer a location from
1843
- # its current account to another.
1844
- class TransferLocationRequest
1845
- include Google::Apis::Core::Hashable
1846
-
1847
- # Name of the account resource to transfer the location to (e.g.
1848
- # "accounts/8675309")
1849
- # Corresponds to the JSON property `toAccount`
1850
- # @return [String]
1851
- attr_accessor :to_account
1852
-
1853
- def initialize(**args)
1854
- update!(**args)
1855
- end
1856
-
1857
- # Update properties of this object
1858
- def update!(**args)
1859
- @to_account = args[:to_account] if args.key?(:to_account)
1860
- end
1861
- end
1862
- end
1863
- end
1864
- end