google-api-client 0.13.2 → 0.13.3

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