google-api-client 0.10.3 → 0.11.0

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 (385) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +12 -18
  3. data/CHANGELOG.md +22 -2
  4. data/Gemfile +5 -7
  5. data/MIGRATING.md +33 -0
  6. data/README.md +10 -2
  7. data/Rakefile +1 -0
  8. data/bin/generate-api +7 -1
  9. data/dl.rb +0 -0
  10. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
  11. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
  12. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
  16. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
  17. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
  18. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
  19. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
  20. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
  21. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
  22. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
  23. data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
  24. data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
  25. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
  26. data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
  27. data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
  28. data/generated/google/apis/admin_directory_v1/service.rb +1 -0
  29. data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
  30. data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
  31. data/generated/google/apis/admin_reports_v1/service.rb +1 -0
  32. data/generated/google/apis/adsense_v1_4.rb +1 -1
  33. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  34. data/generated/google/apis/adsense_v1_4/representations.rb +2 -2
  35. data/generated/google/apis/adsense_v1_4/service.rb +1 -0
  36. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  37. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
  38. data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
  40. data/generated/google/apis/analytics_v3/classes.rb +10 -10
  41. data/generated/google/apis/analytics_v3/representations.rb +10 -10
  42. data/generated/google/apis/analytics_v3/service.rb +1 -0
  43. data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
  44. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  45. data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
  46. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  47. data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
  48. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
  49. data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
  52. data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
  53. data/generated/google/apis/appengine_v1/classes.rb +2 -2
  54. data/generated/google/apis/appengine_v1/representations.rb +2 -2
  55. data/generated/google/apis/appengine_v1/service.rb +1 -0
  56. data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
  57. data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
  58. data/generated/google/apis/appsactivity_v1/service.rb +1 -0
  59. data/generated/google/apis/appsmarket_v2.rb +35 -0
  60. data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
  61. data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
  62. data/generated/google/apis/appsmarket_v2/service.rb +187 -0
  63. data/generated/google/apis/appstate_v1.rb +1 -1
  64. data/generated/google/apis/appstate_v1/service.rb +1 -0
  65. data/generated/google/apis/bigquery_v2/classes.rb +39 -39
  66. data/generated/google/apis/bigquery_v2/representations.rb +38 -38
  67. data/generated/google/apis/bigquery_v2/service.rb +3 -2
  68. data/generated/google/apis/blogger_v3/classes.rb +2 -2
  69. data/generated/google/apis/blogger_v3/representations.rb +2 -2
  70. data/generated/google/apis/blogger_v3/service.rb +1 -0
  71. data/generated/google/apis/books_v1/classes.rb +5 -5
  72. data/generated/google/apis/books_v1/representations.rb +4 -4
  73. data/generated/google/apis/books_v1/service.rb +1 -0
  74. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  75. data/generated/google/apis/calendar_v3/representations.rb +1 -1
  76. data/generated/google/apis/calendar_v3/service.rb +1 -0
  77. data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
  78. data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
  79. data/generated/google/apis/civicinfo_v2/service.rb +2 -1
  80. data/generated/google/apis/classroom_v1/service.rb +1 -0
  81. data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
  82. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  83. data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
  84. data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
  85. data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
  86. data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
  87. data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
  88. data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
  89. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  90. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
  91. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
  92. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
  93. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
  94. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
  95. data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
  96. data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
  97. data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
  98. data/generated/google/apis/cloudkms_v1/service.rb +168 -167
  99. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
  100. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
  101. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
  102. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  103. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
  104. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
  105. data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
  106. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
  107. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
  108. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
  109. data/generated/google/apis/cloudtrace_v1.rb +3 -3
  110. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  111. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  112. data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
  113. data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
  114. data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
  115. data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
  116. data/generated/google/apis/compute_beta/classes.rb +52 -52
  117. data/generated/google/apis/compute_beta/representations.rb +52 -52
  118. data/generated/google/apis/compute_beta/service.rb +2 -1
  119. data/generated/google/apis/compute_v1/classes.rb +48 -48
  120. data/generated/google/apis/compute_v1/representations.rb +48 -48
  121. data/generated/google/apis/compute_v1/service.rb +2 -1
  122. data/generated/google/apis/container_v1/service.rb +1 -0
  123. data/generated/google/apis/content_v2.rb +1 -1
  124. data/generated/google/apis/content_v2/classes.rb +38 -660
  125. data/generated/google/apis/content_v2/representations.rb +37 -303
  126. data/generated/google/apis/content_v2/service.rb +63 -279
  127. data/generated/google/apis/customsearch_v1/classes.rb +2 -2
  128. data/generated/google/apis/customsearch_v1/representations.rb +2 -2
  129. data/generated/google/apis/customsearch_v1/service.rb +1 -0
  130. data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
  131. data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
  132. data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
  133. data/generated/google/apis/dataproc_v1/classes.rb +395 -395
  134. data/generated/google/apis/dataproc_v1/representations.rb +91 -91
  135. data/generated/google/apis/dataproc_v1/service.rb +356 -355
  136. data/generated/google/apis/datastore_v1/classes.rb +506 -506
  137. data/generated/google/apis/datastore_v1/representations.rb +147 -147
  138. data/generated/google/apis/datastore_v1/service.rb +46 -45
  139. data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
  140. data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
  141. data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
  142. data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
  143. data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
  144. data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
  145. data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
  146. data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
  147. data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
  148. data/generated/google/apis/discovery_v1/service.rb +1 -0
  149. data/generated/google/apis/dns_v1/classes.rb +2 -2
  150. data/generated/google/apis/dns_v1/representations.rb +2 -2
  151. data/generated/google/apis/dns_v1/service.rb +1 -0
  152. data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
  153. data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
  154. data/generated/google/apis/dns_v2beta1/service.rb +1 -0
  155. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
  156. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
  157. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
  158. data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
  159. data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
  160. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
  161. data/generated/google/apis/drive_v2/classes.rb +17 -17
  162. data/generated/google/apis/drive_v2/representations.rb +17 -17
  163. data/generated/google/apis/drive_v2/service.rb +5 -4
  164. data/generated/google/apis/drive_v3/classes.rb +13 -13
  165. data/generated/google/apis/drive_v3/representations.rb +12 -12
  166. data/generated/google/apis/drive_v3/service.rb +1 -0
  167. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  168. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
  169. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
  170. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
  171. data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
  172. data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
  173. data/generated/google/apis/firebaserules_v1/service.rb +1 -0
  174. data/generated/google/apis/fitness_v1/classes.rb +18 -18
  175. data/generated/google/apis/fitness_v1/representations.rb +18 -18
  176. data/generated/google/apis/fitness_v1/service.rb +6 -5
  177. data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
  178. data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
  179. data/generated/google/apis/fusiontables_v2/service.rb +1 -0
  180. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  181. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  182. data/generated/google/apis/games_configuration_v1configuration/representations.rb +2 -2
  183. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
  184. data/generated/google/apis/games_management_v1management.rb +1 -1
  185. data/generated/google/apis/games_management_v1management/classes.rb +6 -6
  186. data/generated/google/apis/games_management_v1management/representations.rb +6 -6
  187. data/generated/google/apis/games_management_v1management/service.rb +1 -0
  188. data/generated/google/apis/games_v1.rb +1 -1
  189. data/generated/google/apis/games_v1/classes.rb +47 -47
  190. data/generated/google/apis/games_v1/representations.rb +47 -47
  191. data/generated/google/apis/games_v1/service.rb +58 -57
  192. data/generated/google/apis/genomics_v1.rb +6 -6
  193. data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
  194. data/generated/google/apis/genomics_v1/representations.rb +487 -487
  195. data/generated/google/apis/genomics_v1/service.rb +1188 -1187
  196. data/generated/google/apis/gmail_v1/classes.rb +11 -11
  197. data/generated/google/apis/gmail_v1/representations.rb +11 -11
  198. data/generated/google/apis/gmail_v1/service.rb +2 -1
  199. data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
  200. data/generated/google/apis/groupssettings_v1/service.rb +1 -0
  201. data/generated/google/apis/iam_v1/classes.rb +437 -437
  202. data/generated/google/apis/iam_v1/representations.rb +95 -95
  203. data/generated/google/apis/iam_v1/service.rb +87 -86
  204. data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
  205. data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
  206. data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
  207. data/generated/google/apis/kgsearch_v1/service.rb +9 -8
  208. data/generated/google/apis/language_v1.rb +1 -1
  209. data/generated/google/apis/language_v1/classes.rb +245 -245
  210. data/generated/google/apis/language_v1/representations.rb +65 -65
  211. data/generated/google/apis/language_v1/service.rb +1 -0
  212. data/generated/google/apis/language_v1beta1.rb +1 -1
  213. data/generated/google/apis/language_v1beta1/classes.rb +277 -277
  214. data/generated/google/apis/language_v1beta1/representations.rb +83 -83
  215. data/generated/google/apis/language_v1beta1/service.rb +31 -30
  216. data/generated/google/apis/licensing_v1/service.rb +1 -0
  217. data/generated/google/apis/logging_v2/classes.rb +408 -408
  218. data/generated/google/apis/logging_v2/representations.rb +93 -93
  219. data/generated/google/apis/logging_v2/service.rb +408 -407
  220. data/generated/google/apis/logging_v2beta1.rb +3 -3
  221. data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
  222. data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
  223. data/generated/google/apis/logging_v2beta1/service.rb +89 -88
  224. data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
  225. data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
  226. data/generated/google/apis/manufacturers_v1/service.rb +1 -0
  227. data/generated/google/apis/mirror_v1/service.rb +1 -0
  228. data/generated/google/apis/ml_v1/classes.rb +1185 -1185
  229. data/generated/google/apis/ml_v1/representations.rb +171 -171
  230. data/generated/google/apis/ml_v1/service.rb +282 -281
  231. data/generated/google/apis/monitoring_v3.rb +3 -3
  232. data/generated/google/apis/monitoring_v3/classes.rb +334 -334
  233. data/generated/google/apis/monitoring_v3/representations.rb +86 -86
  234. data/generated/google/apis/monitoring_v3/service.rb +344 -343
  235. data/generated/google/apis/mybusiness_v3/service.rb +1 -0
  236. data/generated/google/apis/oauth2_v2/service.rb +1 -0
  237. data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
  238. data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
  239. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
  240. data/generated/google/apis/partners_v2/classes.rb +1466 -1466
  241. data/generated/google/apis/partners_v2/representations.rb +371 -371
  242. data/generated/google/apis/partners_v2/service.rb +530 -529
  243. data/generated/google/apis/people_v1.rb +4 -4
  244. data/generated/google/apis/people_v1/classes.rb +1009 -1009
  245. data/generated/google/apis/people_v1/representations.rb +249 -249
  246. data/generated/google/apis/people_v1/service.rb +13 -12
  247. data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
  248. data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
  249. data/generated/google/apis/plus_domains_v1/service.rb +1 -0
  250. data/generated/google/apis/plus_v1/service.rb +1 -0
  251. data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
  252. data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
  253. data/generated/google/apis/prediction_v1_6/service.rb +1 -0
  254. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
  255. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
  256. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
  257. data/generated/google/apis/pubsub_v1/classes.rb +99 -99
  258. data/generated/google/apis/pubsub_v1/representations.rb +25 -25
  259. data/generated/google/apis/pubsub_v1/service.rb +236 -235
  260. data/generated/google/apis/qpx_express_v1/service.rb +1 -0
  261. data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
  262. data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
  263. data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
  264. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
  265. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
  266. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
  267. data/generated/google/apis/reseller_v1/classes.rb +5 -5
  268. data/generated/google/apis/reseller_v1/representations.rb +5 -5
  269. data/generated/google/apis/reseller_v1/service.rb +1 -0
  270. data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
  271. data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
  272. data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
  273. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  274. data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
  275. data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
  276. data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
  277. data/generated/google/apis/script_v1.rb +18 -18
  278. data/generated/google/apis/script_v1/classes.rb +84 -84
  279. data/generated/google/apis/script_v1/representations.rb +18 -18
  280. data/generated/google/apis/script_v1/service.rb +11 -10
  281. data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
  282. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  283. data/generated/google/apis/searchconsole_v1/service.rb +11 -10
  284. data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
  285. data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
  286. data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
  287. data/generated/google/apis/servicemanagement_v1.rb +3 -3
  288. data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
  289. data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
  290. data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
  291. data/generated/google/apis/serviceuser_v1.rb +3 -3
  292. data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
  293. data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
  294. data/generated/google/apis/serviceuser_v1/service.rb +47 -46
  295. data/generated/google/apis/sheets_v4.rb +1 -1
  296. data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
  297. data/generated/google/apis/sheets_v4/representations.rb +859 -859
  298. data/generated/google/apis/sheets_v4/service.rb +180 -179
  299. data/generated/google/apis/site_verification_v1/service.rb +1 -0
  300. data/generated/google/apis/slides_v1.rb +1 -1
  301. data/generated/google/apis/slides_v1/classes.rb +2856 -2856
  302. data/generated/google/apis/slides_v1/representations.rb +683 -683
  303. data/generated/google/apis/slides_v1/service.rb +27 -26
  304. data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
  305. data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
  306. data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
  307. data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
  308. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  309. data/generated/google/apis/spanner_v1/service.rb +374 -373
  310. data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
  311. data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
  312. data/generated/google/apis/speech_v1beta1/service.rb +27 -26
  313. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
  314. data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
  315. data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
  316. data/generated/google/apis/storage_v1.rb +1 -1
  317. data/generated/google/apis/storage_v1/classes.rb +11 -11
  318. data/generated/google/apis/storage_v1/representations.rb +11 -11
  319. data/generated/google/apis/storage_v1/service.rb +65 -64
  320. data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
  321. data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
  322. data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
  323. data/generated/google/apis/surveys_v2/classes.rb +4 -4
  324. data/generated/google/apis/surveys_v2/representations.rb +4 -4
  325. data/generated/google/apis/surveys_v2/service.rb +1 -0
  326. data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
  327. data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
  328. data/generated/google/apis/tagmanager_v1/service.rb +1 -0
  329. data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
  330. data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
  331. data/generated/google/apis/tagmanager_v2/service.rb +1 -0
  332. data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
  333. data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
  334. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
  335. data/generated/google/apis/tasks_v1/service.rb +3 -2
  336. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  337. data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
  338. data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
  339. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
  340. data/generated/google/apis/tracing_v1/classes.rb +421 -421
  341. data/generated/google/apis/tracing_v1/representations.rb +86 -86
  342. data/generated/google/apis/tracing_v1/service.rb +60 -59
  343. data/generated/google/apis/translate_v2/service.rb +1 -0
  344. data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
  345. data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
  346. data/generated/google/apis/urlshortener_v1/service.rb +1 -0
  347. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  348. data/generated/google/apis/vision_v1/representations.rb +184 -184
  349. data/generated/google/apis/vision_v1/service.rb +11 -10
  350. data/generated/google/apis/webfonts_v1/service.rb +1 -0
  351. data/generated/google/apis/webmasters_v3/classes.rb +5 -5
  352. data/generated/google/apis/webmasters_v3/representations.rb +5 -5
  353. data/generated/google/apis/webmasters_v3/service.rb +1 -0
  354. data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
  355. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
  356. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
  357. data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
  358. data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
  359. data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
  360. data/generated/google/apis/youtube_v3/classes.rb +31 -31
  361. data/generated/google/apis/youtube_v3/representations.rb +31 -31
  362. data/generated/google/apis/youtube_v3/service.rb +2 -1
  363. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  364. data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
  365. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  366. data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
  367. data/google-api-client.gemspec +4 -6
  368. data/lib/google/apis/core/api_command.rb +8 -3
  369. data/lib/google/apis/core/base_service.rb +47 -18
  370. data/lib/google/apis/core/batch.rb +13 -18
  371. data/lib/google/apis/core/composite_io.rb +97 -0
  372. data/lib/google/apis/core/download.rb +24 -20
  373. data/lib/google/apis/core/http_command.rb +49 -38
  374. data/lib/google/apis/core/json_representation.rb +5 -1
  375. data/lib/google/apis/core/multipart.rb +43 -95
  376. data/lib/google/apis/core/upload.rb +59 -84
  377. data/lib/google/apis/generator/model.rb +2 -0
  378. data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
  379. data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
  380. data/lib/google/apis/options.rb +24 -12
  381. data/lib/google/apis/version.rb +1 -1
  382. data/samples/web/Gemfile +0 -1
  383. metadata +39 -37
  384. data/lib/google/apis/core/http_client_adapter.rb +0 -82
  385. data/third_party/hurley_patches.rb +0 -103
@@ -45,6 +45,7 @@ module Google
45
45
 
46
46
  def initialize
47
47
  super('https://mybusiness.googleapis.com/', '')
48
+ @batch_path = 'batch'
48
49
  end
49
50
 
50
51
  # Lists all of the accounts for the authenticated user. This includes all
@@ -50,6 +50,7 @@ module Google
50
50
 
51
51
  def initialize
52
52
  super('https://www.googleapis.com/', '')
53
+ @batch_path = 'batch'
53
54
  end
54
55
 
55
56
  #
@@ -476,28 +476,28 @@ module Google
476
476
 
477
477
  # Number of uncompressed response bytes for CSS resources on the page.
478
478
  # Corresponds to the JSON property `cssResponseBytes`
479
- # @return [String]
479
+ # @return [Fixnum]
480
480
  attr_accessor :css_response_bytes
481
481
 
482
482
  # Number of response bytes for flash resources on the page.
483
483
  # Corresponds to the JSON property `flashResponseBytes`
484
- # @return [String]
484
+ # @return [Fixnum]
485
485
  attr_accessor :flash_response_bytes
486
486
 
487
487
  # Number of uncompressed response bytes for the main HTML document and all
488
488
  # iframes on the page.
489
489
  # Corresponds to the JSON property `htmlResponseBytes`
490
- # @return [String]
490
+ # @return [Fixnum]
491
491
  attr_accessor :html_response_bytes
492
492
 
493
493
  # Number of response bytes for image resources on the page.
494
494
  # Corresponds to the JSON property `imageResponseBytes`
495
- # @return [String]
495
+ # @return [Fixnum]
496
496
  attr_accessor :image_response_bytes
497
497
 
498
498
  # Number of uncompressed response bytes for JS resources on the page.
499
499
  # Corresponds to the JSON property `javascriptResponseBytes`
500
- # @return [String]
500
+ # @return [Fixnum]
501
501
  attr_accessor :javascript_response_bytes
502
502
 
503
503
  # Number of CSS resources referenced by the page.
@@ -527,18 +527,18 @@ module Google
527
527
 
528
528
  # Number of response bytes for other resources on the page.
529
529
  # Corresponds to the JSON property `otherResponseBytes`
530
- # @return [String]
530
+ # @return [Fixnum]
531
531
  attr_accessor :other_response_bytes
532
532
 
533
533
  # Number of uncompressed response bytes for text resources not covered by other
534
534
  # statistics (i.e non-HTML, non-script, non-CSS resources) on the page.
535
535
  # Corresponds to the JSON property `textResponseBytes`
536
- # @return [String]
536
+ # @return [Fixnum]
537
537
  attr_accessor :text_response_bytes
538
538
 
539
539
  # Total size of all request bytes sent by the page.
540
540
  # Corresponds to the JSON property `totalRequestBytes`
541
- # @return [String]
541
+ # @return [Fixnum]
542
542
  attr_accessor :total_request_bytes
543
543
 
544
544
  def initialize(**args)
@@ -236,19 +236,19 @@ module Google
236
236
  class PageStats
237
237
  # @private
238
238
  class Representation < Google::Apis::Core::JsonRepresentation
239
- property :css_response_bytes, as: 'cssResponseBytes'
240
- property :flash_response_bytes, as: 'flashResponseBytes'
241
- property :html_response_bytes, as: 'htmlResponseBytes'
242
- property :image_response_bytes, as: 'imageResponseBytes'
243
- property :javascript_response_bytes, as: 'javascriptResponseBytes'
239
+ property :css_response_bytes, :numeric_string => true, as: 'cssResponseBytes'
240
+ property :flash_response_bytes, :numeric_string => true, as: 'flashResponseBytes'
241
+ property :html_response_bytes, :numeric_string => true, as: 'htmlResponseBytes'
242
+ property :image_response_bytes, :numeric_string => true, as: 'imageResponseBytes'
243
+ property :javascript_response_bytes, :numeric_string => true, as: 'javascriptResponseBytes'
244
244
  property :number_css_resources, as: 'numberCssResources'
245
245
  property :number_hosts, as: 'numberHosts'
246
246
  property :number_js_resources, as: 'numberJsResources'
247
247
  property :number_resources, as: 'numberResources'
248
248
  property :number_static_resources, as: 'numberStaticResources'
249
- property :other_response_bytes, as: 'otherResponseBytes'
250
- property :text_response_bytes, as: 'textResponseBytes'
251
- property :total_request_bytes, as: 'totalRequestBytes'
249
+ property :other_response_bytes, :numeric_string => true, as: 'otherResponseBytes'
250
+ property :text_response_bytes, :numeric_string => true, as: 'textResponseBytes'
251
+ property :total_request_bytes, :numeric_string => true, as: 'totalRequestBytes'
252
252
  end
253
253
  end
254
254
 
@@ -51,6 +51,7 @@ module Google
51
51
 
52
52
  def initialize
53
53
  super('https://www.googleapis.com/', 'pagespeedonline/v2/')
54
+ @batch_path = 'batch'
54
55
  end
55
56
 
56
57
  # Runs PageSpeed analysis on the page at the specified URL, and returns
@@ -22,36 +22,55 @@ module Google
22
22
  module Apis
23
23
  module PartnersV2
24
24
 
25
- # A user's information on a specific certification.
26
- class Certification
25
+ # An object representing a latitude/longitude pair. This is expressed as a pair
26
+ # of doubles representing degrees latitude and degrees longitude. Unless
27
+ # specified otherwise, this must conform to the
28
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
29
+ # standard</a>. Values must be within normalized ranges.
30
+ # Example of normalization code in Python:
31
+ # def NormalizeLongitude(longitude):
32
+ # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
33
+ # q, r = divmod(longitude, 360.0)
34
+ # if r > 180.0 or (r == 180.0 and q <= -1.0):
35
+ # return r - 360.0
36
+ # return r
37
+ # def NormalizeLatLng(latitude, longitude):
38
+ # """Wraps decimal degrees latitude and longitude to
39
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
40
+ # r = latitude % 360.0
41
+ # if r <= 90.0:
42
+ # return r, NormalizeLongitude(longitude)
43
+ # elif r >= 270.0:
44
+ # return r - 360, NormalizeLongitude(longitude)
45
+ # else:
46
+ # return 180 - r, NormalizeLongitude(longitude + 180.0)
47
+ # assert 180.0 == NormalizeLongitude(180.0)
48
+ # assert -180.0 == NormalizeLongitude(-180.0)
49
+ # assert -179.0 == NormalizeLongitude(181.0)
50
+ # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
51
+ # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
52
+ # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
53
+ # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
54
+ # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
55
+ # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
56
+ # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
57
+ # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
58
+ # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
59
+ # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
60
+ # The code in logs/storage/validator/logs_validator_traits.cc treats this type
61
+ # as if it were annotated as ST_LOCATION.
62
+ class LatLng
27
63
  include Google::Apis::Core::Hashable
28
64
 
29
- # The date the user last achieved certification.
30
- # Corresponds to the JSON property `lastAchieved`
31
- # @return [String]
32
- attr_accessor :last_achieved
33
-
34
- # Whether this certification has been achieved.
35
- # Corresponds to the JSON property `achieved`
36
- # @return [Boolean]
37
- attr_accessor :achieved
38
- alias_method :achieved?, :achieved
39
-
40
- # Date this certification is due to expire.
41
- # Corresponds to the JSON property `expiration`
42
- # @return [String]
43
- attr_accessor :expiration
44
-
45
- # Whether this certification is in the state of warning.
46
- # Corresponds to the JSON property `warning`
47
- # @return [Boolean]
48
- attr_accessor :warning
49
- alias_method :warning?, :warning
65
+ # The latitude in degrees. It must be in the range [-90.0, +90.0].
66
+ # Corresponds to the JSON property `latitude`
67
+ # @return [Float]
68
+ attr_accessor :latitude
50
69
 
51
- # The type of certification, the area of expertise.
52
- # Corresponds to the JSON property `certificationType`
53
- # @return [String]
54
- attr_accessor :certification_type
70
+ # The longitude in degrees. It must be in the range [-180.0, +180.0].
71
+ # Corresponds to the JSON property `longitude`
72
+ # @return [Float]
73
+ attr_accessor :longitude
55
74
 
56
75
  def initialize(**args)
57
76
  update!(**args)
@@ -59,78 +78,68 @@ module Google
59
78
 
60
79
  # Update properties of this object
61
80
  def update!(**args)
62
- @last_achieved = args[:last_achieved] if args.key?(:last_achieved)
63
- @achieved = args[:achieved] if args.key?(:achieved)
64
- @expiration = args[:expiration] if args.key?(:expiration)
65
- @warning = args[:warning] if args.key?(:warning)
66
- @certification_type = args[:certification_type] if args.key?(:certification_type)
81
+ @latitude = args[:latitude] if args.key?(:latitude)
82
+ @longitude = args[:longitude] if args.key?(:longitude)
67
83
  end
68
84
  end
69
85
 
70
- # A resource representing a user of the Partners platform.
71
- class User
86
+ # Represents an amount of money with its currency type.
87
+ class Money
72
88
  include Google::Apis::Core::Hashable
73
89
 
74
- # The list of exams the user ever taken. For each type of exam, only one
75
- # entry is listed.
76
- # Corresponds to the JSON property `examStatus`
77
- # @return [Array<Google::Apis::PartnersV2::ExamStatus>]
78
- attr_accessor :exam_status
90
+ # The whole units of the amount.
91
+ # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
92
+ # Corresponds to the JSON property `units`
93
+ # @return [Fixnum]
94
+ attr_accessor :units
79
95
 
80
- # The ID of the user.
81
- # Corresponds to the JSON property `id`
96
+ # The 3-letter currency code defined in ISO 4217.
97
+ # Corresponds to the JSON property `currencyCode`
82
98
  # @return [String]
83
- attr_accessor :id
84
-
85
- # Basic information from a public profile.
86
- # Corresponds to the JSON property `publicProfile`
87
- # @return [Google::Apis::PartnersV2::PublicProfile]
88
- attr_accessor :public_profile
99
+ attr_accessor :currency_code
89
100
 
90
- # The list of achieved certifications. These are calculated based on exam
91
- # results and other requirements.
92
- # @OutputOnly
93
- # Corresponds to the JSON property `certificationStatus`
94
- # @return [Array<Google::Apis::PartnersV2::Certification>]
95
- attr_accessor :certification_status
101
+ # Number of nano (10^-9) units of the amount.
102
+ # The value must be between -999,999,999 and +999,999,999 inclusive.
103
+ # If `units` is positive, `nanos` must be positive or zero.
104
+ # If `units` is zero, `nanos` can be positive, zero, or negative.
105
+ # If `units` is negative, `nanos` must be negative or zero.
106
+ # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
107
+ # Corresponds to the JSON property `nanos`
108
+ # @return [Fixnum]
109
+ attr_accessor :nanos
96
110
 
97
- # The email address used by the user used for company verification.
98
- # @OutputOnly
99
- # Corresponds to the JSON property `companyVerificationEmail`
100
- # @return [String]
101
- attr_accessor :company_verification_email
111
+ def initialize(**args)
112
+ update!(**args)
113
+ end
102
114
 
103
- # A CompanyRelation resource representing information about a user's
104
- # affiliation and standing with a company in Partners.
105
- # Corresponds to the JSON property `company`
106
- # @return [Google::Apis::PartnersV2::CompanyRelation]
107
- attr_accessor :company
115
+ # Update properties of this object
116
+ def update!(**args)
117
+ @units = args[:units] if args.key?(:units)
118
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
119
+ @nanos = args[:nanos] if args.key?(:nanos)
120
+ end
121
+ end
108
122
 
109
- # The profile information of a Partners user.
110
- # Corresponds to the JSON property `profile`
111
- # @return [Google::Apis::PartnersV2::UserProfile]
112
- attr_accessor :profile
123
+ # Analytics aggregated data for a `Company` for a given date range.
124
+ class AnalyticsSummary
125
+ include Google::Apis::Core::Hashable
113
126
 
114
- # The most recent time the user interacted with the Partners site.
115
- # @OutputOnly
116
- # Corresponds to the JSON property `lastAccessTime`
117
- # @return [String]
118
- attr_accessor :last_access_time
127
+ # Aggregated number of times users saw the `Company`
128
+ # in Google Partners Search results for given date range.
129
+ # Corresponds to the JSON property `searchViewsCount`
130
+ # @return [Fixnum]
131
+ attr_accessor :search_views_count
119
132
 
120
- # The list of emails the user has access to/can select as primary.
121
- # @OutputOnly
122
- # Corresponds to the JSON property `primaryEmails`
123
- # @return [Array<String>]
124
- attr_accessor :primary_emails
133
+ # Aggregated number of times users contacted the `Company`
134
+ # for given date range.
135
+ # Corresponds to the JSON property `contactsCount`
136
+ # @return [Fixnum]
137
+ attr_accessor :contacts_count
125
138
 
126
- # This is the list of AdWords Manager Accounts the user has edit access to.
127
- # If the user has edit access to multiple accounts, the user can choose the
128
- # preferred account and we use this when a personal account is needed. Can
129
- # be empty meaning the user has access to no accounts.
130
- # @OutputOnly
131
- # Corresponds to the JSON property `availableAdwordsManagerAccounts`
132
- # @return [Array<Google::Apis::PartnersV2::AdWordsManagerAccountInfo>]
133
- attr_accessor :available_adwords_manager_accounts
139
+ # Aggregated number of profile views for the `Company` for given date range.
140
+ # Corresponds to the JSON property `profileViewsCount`
141
+ # @return [Fixnum]
142
+ attr_accessor :profile_views_count
134
143
 
135
144
  def initialize(**args)
136
145
  update!(**args)
@@ -138,49 +147,36 @@ module Google
138
147
 
139
148
  # Update properties of this object
140
149
  def update!(**args)
141
- @exam_status = args[:exam_status] if args.key?(:exam_status)
142
- @id = args[:id] if args.key?(:id)
143
- @public_profile = args[:public_profile] if args.key?(:public_profile)
144
- @certification_status = args[:certification_status] if args.key?(:certification_status)
145
- @company_verification_email = args[:company_verification_email] if args.key?(:company_verification_email)
146
- @company = args[:company] if args.key?(:company)
147
- @profile = args[:profile] if args.key?(:profile)
148
- @last_access_time = args[:last_access_time] if args.key?(:last_access_time)
149
- @primary_emails = args[:primary_emails] if args.key?(:primary_emails)
150
- @available_adwords_manager_accounts = args[:available_adwords_manager_accounts] if args.key?(:available_adwords_manager_accounts)
150
+ @search_views_count = args[:search_views_count] if args.key?(:search_views_count)
151
+ @contacts_count = args[:contacts_count] if args.key?(:contacts_count)
152
+ @profile_views_count = args[:profile_views_count] if args.key?(:profile_views_count)
151
153
  end
152
154
  end
153
155
 
154
- # Response message for
155
- # ListAnalytics.
156
- class ListAnalyticsResponse
156
+ # Request message for
157
+ # LogClientMessage.
158
+ class LogMessageRequest
157
159
  include Google::Apis::Core::Hashable
158
160
 
159
- # A token to retrieve next page of results.
160
- # Pass this value in the `ListAnalyticsRequest.page_token` field in the
161
- # subsequent call to
162
- # ListAnalytics to retrieve the
163
- # next page of results.
164
- # Corresponds to the JSON property `nextPageToken`
161
+ # Message level of client message.
162
+ # Corresponds to the JSON property `level`
165
163
  # @return [String]
166
- attr_accessor :next_page_token
164
+ attr_accessor :level
167
165
 
168
- # Common data that is in each API response.
169
- # Corresponds to the JSON property `responseMetadata`
170
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
171
- attr_accessor :response_metadata
166
+ # Details about the client message.
167
+ # Corresponds to the JSON property `details`
168
+ # @return [String]
169
+ attr_accessor :details
172
170
 
173
- # Analytics aggregated data for a `Company` for a given date range.
174
- # Corresponds to the JSON property `analyticsSummary`
175
- # @return [Google::Apis::PartnersV2::AnalyticsSummary]
176
- attr_accessor :analytics_summary
171
+ # Map of client info, such as URL, browser navigator, browser platform, etc.
172
+ # Corresponds to the JSON property `clientInfo`
173
+ # @return [Hash<String,String>]
174
+ attr_accessor :client_info
177
175
 
178
- # The list of analytics.
179
- # Sorted in ascending order of
180
- # Analytics.event_date.
181
- # Corresponds to the JSON property `analytics`
182
- # @return [Array<Google::Apis::PartnersV2::Analytics>]
183
- attr_accessor :analytics
176
+ # Common data that is in each API request.
177
+ # Corresponds to the JSON property `requestMetadata`
178
+ # @return [Google::Apis::PartnersV2::RequestMetadata]
179
+ attr_accessor :request_metadata
184
180
 
185
181
  def initialize(**args)
186
182
  update!(**args)
@@ -188,40 +184,31 @@ module Google
188
184
 
189
185
  # Update properties of this object
190
186
  def update!(**args)
191
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
192
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
193
- @analytics_summary = args[:analytics_summary] if args.key?(:analytics_summary)
194
- @analytics = args[:analytics] if args.key?(:analytics)
187
+ @level = args[:level] if args.key?(:level)
188
+ @details = args[:details] if args.key?(:details)
189
+ @client_info = args[:client_info] if args.key?(:client_info)
190
+ @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
195
191
  end
196
192
  end
197
193
 
198
- # Response message for ListLeads.
199
- class ListLeadsResponse
194
+ # Debug information about this request.
195
+ class DebugInfo
200
196
  include Google::Apis::Core::Hashable
201
197
 
202
- # A token to retrieve next page of results.
203
- # Pass this value in the `ListLeadsRequest.page_token` field in the
204
- # subsequent call to
205
- # ListLeads to retrieve the
206
- # next page of results.
207
- # Corresponds to the JSON property `nextPageToken`
198
+ # Info about the server that serviced this request.
199
+ # Corresponds to the JSON property `serverInfo`
208
200
  # @return [String]
209
- attr_accessor :next_page_token
201
+ attr_accessor :server_info
210
202
 
211
- # Common data that is in each API response.
212
- # Corresponds to the JSON property `responseMetadata`
213
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
214
- attr_accessor :response_metadata
215
-
216
- # The total count of leads for the given company.
217
- # Corresponds to the JSON property `totalSize`
218
- # @return [Fixnum]
219
- attr_accessor :total_size
203
+ # Server-side debug stack trace.
204
+ # Corresponds to the JSON property `serverTraceInfo`
205
+ # @return [String]
206
+ attr_accessor :server_trace_info
220
207
 
221
- # The list of leads.
222
- # Corresponds to the JSON property `leads`
223
- # @return [Array<Google::Apis::PartnersV2::Lead>]
224
- attr_accessor :leads
208
+ # URL of the service that handled this request.
209
+ # Corresponds to the JSON property `serviceUrl`
210
+ # @return [String]
211
+ attr_accessor :service_url
225
212
 
226
213
  def initialize(**args)
227
214
  update!(**args)
@@ -229,132 +216,94 @@ module Google
229
216
 
230
217
  # Update properties of this object
231
218
  def update!(**args)
232
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
233
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
234
- @total_size = args[:total_size] if args.key?(:total_size)
235
- @leads = args[:leads] if args.key?(:leads)
219
+ @server_info = args[:server_info] if args.key?(:server_info)
220
+ @server_trace_info = args[:server_trace_info] if args.key?(:server_trace_info)
221
+ @service_url = args[:service_url] if args.key?(:service_url)
236
222
  end
237
223
  end
238
224
 
239
- # A company resource in the Google Partners API. Once certified, it qualifies
240
- # for being searched by advertisers.
241
- class Company
225
+ # A lead resource that represents an advertiser contact for a `Company`. These
226
+ # are usually generated via Google Partner Search (the advertiser portal).
227
+ class Lead
242
228
  include Google::Apis::Core::Hashable
243
229
 
230
+ # Whether or not the lead signed up for marketing emails
231
+ # Corresponds to the JSON property `marketingOptIn`
232
+ # @return [Boolean]
233
+ attr_accessor :marketing_opt_in
234
+ alias_method :marketing_opt_in?, :marketing_opt_in
235
+
236
+ # Type of lead.
237
+ # Corresponds to the JSON property `type`
238
+ # @return [String]
239
+ attr_accessor :type
240
+
244
241
  # Represents an amount of money with its currency type.
245
- # Corresponds to the JSON property `convertedMinMonthlyBudget`
242
+ # Corresponds to the JSON property `minMonthlyBudget`
246
243
  # @return [Google::Apis::PartnersV2::Money]
247
- attr_accessor :converted_min_monthly_budget
244
+ attr_accessor :min_monthly_budget
248
245
 
249
- # Industries the company can help with.
250
- # Corresponds to the JSON property `industries`
251
- # @return [Array<String>]
252
- attr_accessor :industries
246
+ # First name of lead source.
247
+ # Corresponds to the JSON property `givenName`
248
+ # @return [String]
249
+ attr_accessor :given_name
253
250
 
254
- # URL of the company's website.
251
+ # Language code of the lead's language preference, as defined by
252
+ # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
253
+ # (IETF BCP 47, "Tags for Identifying Languages").
254
+ # Corresponds to the JSON property `languageCode`
255
+ # @return [String]
256
+ attr_accessor :language_code
257
+
258
+ # Website URL of lead source.
255
259
  # Corresponds to the JSON property `websiteUrl`
256
260
  # @return [String]
257
261
  attr_accessor :website_url
258
262
 
259
- # URL of the company's additional websites used to verify the dynamic badges.
260
- # These are stored as full URLs as entered by the user, but only the TLD will
261
- # be used for the actual verification.
262
- # Corresponds to the JSON property `additionalWebsites`
263
+ # List of reasons for using Google Partner Search and creating a lead.
264
+ # Corresponds to the JSON property `gpsMotivations`
263
265
  # @return [Array<String>]
264
- attr_accessor :additional_websites
266
+ attr_accessor :gps_motivations
265
267
 
266
- # The Primary AdWords Manager Account id.
267
- # Corresponds to the JSON property `primaryAdwordsManagerAccountId`
268
+ # The lead's state in relation to the company.
269
+ # Corresponds to the JSON property `state`
268
270
  # @return [String]
269
- attr_accessor :primary_adwords_manager_account_id
271
+ attr_accessor :state
270
272
 
271
- # The name of the company.
272
- # Corresponds to the JSON property `name`
273
+ # Email address of lead source.
274
+ # Corresponds to the JSON property `email`
273
275
  # @return [String]
274
- attr_accessor :name
275
-
276
- # The list of localized info for the company.
277
- # Corresponds to the JSON property `localizedInfos`
278
- # @return [Array<Google::Apis::PartnersV2::LocalizedCompanyInfo>]
279
- attr_accessor :localized_infos
276
+ attr_accessor :email
280
277
 
281
- # The list of Google Partners certification statuses for the company.
282
- # Corresponds to the JSON property `certificationStatuses`
283
- # @return [Array<Google::Apis::PartnersV2::CertificationStatus>]
284
- attr_accessor :certification_statuses
278
+ # Last name of lead source.
279
+ # Corresponds to the JSON property `familyName`
280
+ # @return [String]
281
+ attr_accessor :family_name
285
282
 
286
- # The ID of the company.
283
+ # ID of the lead.
287
284
  # Corresponds to the JSON property `id`
288
285
  # @return [String]
289
286
  attr_accessor :id
290
287
 
291
- # Represents an amount of money with its currency type.
292
- # Corresponds to the JSON property `originalMinMonthlyBudget`
293
- # @return [Google::Apis::PartnersV2::Money]
294
- attr_accessor :original_min_monthly_budget
295
-
296
- # Basic information from a public profile.
297
- # Corresponds to the JSON property `publicProfile`
298
- # @return [Google::Apis::PartnersV2::PublicProfile]
299
- attr_accessor :public_profile
300
-
301
- # A location with address and geographic coordinates. May optionally contain a
302
- # detailed (multi-field) version of the address.
303
- # Corresponds to the JSON property `primaryLocation`
304
- # @return [Google::Apis::PartnersV2::Location]
305
- attr_accessor :primary_location
306
-
307
- # Services the company can help with.
308
- # Corresponds to the JSON property `services`
309
- # @return [Array<String>]
310
- attr_accessor :services
311
-
312
- # Information related to the ranking of the company within the list of
313
- # companies.
314
- # Corresponds to the JSON property `ranks`
315
- # @return [Array<Google::Apis::PartnersV2::Rank>]
316
- attr_accessor :ranks
317
-
318
- # The list of Google Partners specialization statuses for the company.
319
- # Corresponds to the JSON property `specializationStatus`
320
- # @return [Array<Google::Apis::PartnersV2::SpecializationStatus>]
321
- attr_accessor :specialization_status
322
-
323
- # Partner badge tier
324
- # Corresponds to the JSON property `badgeTier`
288
+ # Comments lead source gave.
289
+ # Corresponds to the JSON property `comments`
325
290
  # @return [String]
326
- attr_accessor :badge_tier
327
-
328
- # Company type labels listed on the company's profile.
329
- # Corresponds to the JSON property `companyTypes`
330
- # @return [Array<String>]
331
- attr_accessor :company_types
291
+ attr_accessor :comments
332
292
 
333
- # Email domains that allow users with a matching email address to get
334
- # auto-approved for associating with this company.
335
- # Corresponds to the JSON property `autoApprovalEmailDomains`
336
- # @return [Array<String>]
337
- attr_accessor :auto_approval_email_domains
293
+ # The AdWords Customer ID of the lead.
294
+ # Corresponds to the JSON property `adwordsCustomerId`
295
+ # @return [Fixnum]
296
+ attr_accessor :adwords_customer_id
338
297
 
339
- # The primary language code of the company, as defined by
340
- # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
341
- # (IETF BCP 47, "Tags for Identifying Languages").
342
- # Corresponds to the JSON property `primaryLanguageCode`
298
+ # Phone number of lead source.
299
+ # Corresponds to the JSON property `phoneNumber`
343
300
  # @return [String]
344
- attr_accessor :primary_language_code
301
+ attr_accessor :phone_number
345
302
 
346
- # The public viewability status of the company's profile.
347
- # Corresponds to the JSON property `profileStatus`
303
+ # Timestamp of when this lead was created.
304
+ # Corresponds to the JSON property `createTime`
348
305
  # @return [String]
349
- attr_accessor :profile_status
350
-
351
- # The list of all company locations.
352
- # If set, must include the
353
- # primary_location
354
- # in the list.
355
- # Corresponds to the JSON property `locations`
356
- # @return [Array<Google::Apis::PartnersV2::Location>]
357
- attr_accessor :locations
306
+ attr_accessor :create_time
358
307
 
359
308
  def initialize(**args)
360
309
  update!(**args)
@@ -362,45 +311,33 @@ module Google
362
311
 
363
312
  # Update properties of this object
364
313
  def update!(**args)
365
- @converted_min_monthly_budget = args[:converted_min_monthly_budget] if args.key?(:converted_min_monthly_budget)
366
- @industries = args[:industries] if args.key?(:industries)
314
+ @marketing_opt_in = args[:marketing_opt_in] if args.key?(:marketing_opt_in)
315
+ @type = args[:type] if args.key?(:type)
316
+ @min_monthly_budget = args[:min_monthly_budget] if args.key?(:min_monthly_budget)
317
+ @given_name = args[:given_name] if args.key?(:given_name)
318
+ @language_code = args[:language_code] if args.key?(:language_code)
367
319
  @website_url = args[:website_url] if args.key?(:website_url)
368
- @additional_websites = args[:additional_websites] if args.key?(:additional_websites)
369
- @primary_adwords_manager_account_id = args[:primary_adwords_manager_account_id] if args.key?(:primary_adwords_manager_account_id)
370
- @name = args[:name] if args.key?(:name)
371
- @localized_infos = args[:localized_infos] if args.key?(:localized_infos)
372
- @certification_statuses = args[:certification_statuses] if args.key?(:certification_statuses)
320
+ @gps_motivations = args[:gps_motivations] if args.key?(:gps_motivations)
321
+ @state = args[:state] if args.key?(:state)
322
+ @email = args[:email] if args.key?(:email)
323
+ @family_name = args[:family_name] if args.key?(:family_name)
373
324
  @id = args[:id] if args.key?(:id)
374
- @original_min_monthly_budget = args[:original_min_monthly_budget] if args.key?(:original_min_monthly_budget)
375
- @public_profile = args[:public_profile] if args.key?(:public_profile)
376
- @primary_location = args[:primary_location] if args.key?(:primary_location)
377
- @services = args[:services] if args.key?(:services)
378
- @ranks = args[:ranks] if args.key?(:ranks)
379
- @specialization_status = args[:specialization_status] if args.key?(:specialization_status)
380
- @badge_tier = args[:badge_tier] if args.key?(:badge_tier)
381
- @company_types = args[:company_types] if args.key?(:company_types)
382
- @auto_approval_email_domains = args[:auto_approval_email_domains] if args.key?(:auto_approval_email_domains)
383
- @primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code)
384
- @profile_status = args[:profile_status] if args.key?(:profile_status)
385
- @locations = args[:locations] if args.key?(:locations)
325
+ @comments = args[:comments] if args.key?(:comments)
326
+ @adwords_customer_id = args[:adwords_customer_id] if args.key?(:adwords_customer_id)
327
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
328
+ @create_time = args[:create_time] if args.key?(:create_time)
386
329
  end
387
330
  end
388
331
 
389
- # Response message for CreateLead.
390
- class CreateLeadResponse
332
+ # Response message for
333
+ # ListUserStates.
334
+ class ListUserStatesResponse
391
335
  include Google::Apis::Core::Hashable
392
336
 
393
- # A lead resource that represents an advertiser contact for a `Company`. These
394
- # are usually generated via Google Partner Search (the advertiser portal).
395
- # Corresponds to the JSON property `lead`
396
- # @return [Google::Apis::PartnersV2::Lead]
397
- attr_accessor :lead
398
-
399
- # The outcome of <a href="https://www.google.com/recaptcha/">reCaptcha</a>
400
- # validation.
401
- # Corresponds to the JSON property `recaptchaStatus`
402
- # @return [String]
403
- attr_accessor :recaptcha_status
337
+ # User's states.
338
+ # Corresponds to the JSON property `userStates`
339
+ # @return [Array<String>]
340
+ attr_accessor :user_states
404
341
 
405
342
  # Common data that is in each API response.
406
343
  # Corresponds to the JSON property `responseMetadata`
@@ -413,131 +350,95 @@ module Google
413
350
 
414
351
  # Update properties of this object
415
352
  def update!(**args)
416
- @lead = args[:lead] if args.key?(:lead)
417
- @recaptcha_status = args[:recaptcha_status] if args.key?(:recaptcha_status)
353
+ @user_states = args[:user_states] if args.key?(:user_states)
418
354
  @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
419
355
  end
420
356
  end
421
357
 
422
- # Response message for GetCompany.
423
- class GetCompanyResponse
358
+ # A CompanyRelation resource representing information about a user's
359
+ # affiliation and standing with a company in Partners.
360
+ class CompanyRelation
424
361
  include Google::Apis::Core::Hashable
425
362
 
426
- # A company resource in the Google Partners API. Once certified, it qualifies
427
- # for being searched by advertisers.
428
- # Corresponds to the JSON property `company`
429
- # @return [Google::Apis::PartnersV2::Company]
430
- attr_accessor :company
363
+ # The timestamp when the user was approved.
364
+ # @OutputOnly
365
+ # Corresponds to the JSON property `resolvedTimestamp`
366
+ # @return [String]
367
+ attr_accessor :resolved_timestamp
431
368
 
432
- # Common data that is in each API response.
433
- # Corresponds to the JSON property `responseMetadata`
434
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
435
- attr_accessor :response_metadata
369
+ # Indicates if the user is an admin for this company.
370
+ # Corresponds to the JSON property `companyAdmin`
371
+ # @return [Boolean]
372
+ attr_accessor :company_admin
373
+ alias_method :company_admin?, :company_admin
436
374
 
437
- def initialize(**args)
438
- update!(**args)
439
- end
375
+ # The primary address for this company.
376
+ # Corresponds to the JSON property `address`
377
+ # @return [String]
378
+ attr_accessor :address
440
379
 
441
- # Update properties of this object
442
- def update!(**args)
443
- @company = args[:company] if args.key?(:company)
444
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
445
- end
446
- end
380
+ # The flag that indicates if the company is pending verification.
381
+ # Corresponds to the JSON property `isPending`
382
+ # @return [Boolean]
383
+ attr_accessor :is_pending
384
+ alias_method :is_pending?, :is_pending
447
385
 
448
- # A location with address and geographic coordinates. May optionally contain a
449
- # detailed (multi-field) version of the address.
450
- class Location
451
- include Google::Apis::Core::Hashable
386
+ # The timestamp of when affiliation was requested.
387
+ # @OutputOnly
388
+ # Corresponds to the JSON property `creationTime`
389
+ # @return [String]
390
+ attr_accessor :creation_time
452
391
 
453
- # Language code of the address. Should be in BCP 47 format.
454
- # Corresponds to the JSON property `languageCode`
392
+ # The state of relationship, in terms of approvals.
393
+ # Corresponds to the JSON property `state`
455
394
  # @return [String]
456
- attr_accessor :language_code
395
+ attr_accessor :state
457
396
 
458
- # Use of this code is very country-specific, but will refer to a secondary
459
- # classification code for sorting mail.
460
- # Corresponds to the JSON property `sortingCode`
397
+ # The name (in the company's primary language) for the company.
398
+ # Corresponds to the JSON property `name`
461
399
  # @return [String]
462
- attr_accessor :sorting_code
400
+ attr_accessor :name
463
401
 
464
- # The following address lines represent the most specific part of any
465
- # address.
466
- # Corresponds to the JSON property `addressLine`
467
- # @return [Array<String>]
468
- attr_accessor :address_line
402
+ # The AdWords manager account # associated this company.
403
+ # Corresponds to the JSON property `managerAccount`
404
+ # @return [Fixnum]
405
+ attr_accessor :manager_account
469
406
 
470
- # Top-level administrative subdivision of this country.
471
- # Corresponds to the JSON property `administrativeArea`
472
- # @return [String]
473
- attr_accessor :administrative_area
407
+ # The segment the company is classified as.
408
+ # Corresponds to the JSON property `segment`
409
+ # @return [Array<String>]
410
+ attr_accessor :segment
474
411
 
475
- # Generally refers to the city/town portion of an address.
476
- # Corresponds to the JSON property `locality`
412
+ # Whether the company is a Partner.
413
+ # Corresponds to the JSON property `badgeTier`
477
414
  # @return [String]
478
- attr_accessor :locality
415
+ attr_accessor :badge_tier
479
416
 
480
- # An object representing a latitude/longitude pair. This is expressed as a pair
481
- # of doubles representing degrees latitude and degrees longitude. Unless
482
- # specified otherwise, this must conform to the
483
- # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
484
- # standard</a>. Values must be within normalized ranges.
485
- # Example of normalization code in Python:
486
- # def NormalizeLongitude(longitude):
487
- # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
488
- # q, r = divmod(longitude, 360.0)
489
- # if r > 180.0 or (r == 180.0 and q <= -1.0):
490
- # return r - 360.0
491
- # return r
492
- # def NormalizeLatLng(latitude, longitude):
493
- # """Wraps decimal degrees latitude and longitude to
494
- # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
495
- # r = latitude % 360.0
496
- # if r <= 90.0:
497
- # return r, NormalizeLongitude(longitude)
498
- # elif r >= 270.0:
499
- # return r - 360, NormalizeLongitude(longitude)
500
- # else:
501
- # return 180 - r, NormalizeLongitude(longitude + 180.0)
502
- # assert 180.0 == NormalizeLongitude(180.0)
503
- # assert -180.0 == NormalizeLongitude(-180.0)
504
- # assert -179.0 == NormalizeLongitude(181.0)
505
- # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
506
- # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
507
- # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
508
- # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
509
- # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
510
- # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
511
- # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
512
- # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
513
- # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
514
- # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
515
- # The code in logs/storage/validator/logs_validator_traits.cc treats this type
516
- # as if it were annotated as ST_LOCATION.
517
- # Corresponds to the JSON property `latLng`
518
- # @return [Google::Apis::PartnersV2::LatLng]
519
- attr_accessor :lat_lng
417
+ # The list of Google Partners specialization statuses for the company.
418
+ # Corresponds to the JSON property `specializationStatus`
419
+ # @return [Array<Google::Apis::PartnersV2::SpecializationStatus>]
420
+ attr_accessor :specialization_status
520
421
 
521
- # Dependent locality or sublocality. Used for UK dependent localities, or
522
- # neighborhoods or boroughs in other locations.
523
- # Corresponds to the JSON property `dependentLocality`
422
+ # The phone number for the company's primary address.
423
+ # Corresponds to the JSON property `phoneNumber`
524
424
  # @return [String]
525
- attr_accessor :dependent_locality
425
+ attr_accessor :phone_number
526
426
 
527
- # CLDR (Common Locale Data Repository) region code .
528
- # Corresponds to the JSON property `regionCode`
427
+ # The website URL for this company.
428
+ # Corresponds to the JSON property `website`
529
429
  # @return [String]
530
- attr_accessor :region_code
430
+ attr_accessor :website
531
431
 
532
- # The single string version of the address.
533
- # Corresponds to the JSON property `address`
432
+ # The ID of the company. There may be no id if this is a
433
+ # pending company.5
434
+ # Corresponds to the JSON property `companyId`
534
435
  # @return [String]
535
- attr_accessor :address
436
+ attr_accessor :company_id
536
437
 
537
- # Values are frequently alphanumeric.
538
- # Corresponds to the JSON property `postalCode`
438
+ # A URL to a profile photo, e.g. a G+ profile photo.
439
+ # Corresponds to the JSON property `logoUrl`
539
440
  # @return [String]
540
- attr_accessor :postal_code
441
+ attr_accessor :logo_url
541
442
 
542
443
  def initialize(**args)
543
444
  update!(**args)
@@ -545,37 +446,50 @@ module Google
545
446
 
546
447
  # Update properties of this object
547
448
  def update!(**args)
548
- @language_code = args[:language_code] if args.key?(:language_code)
549
- @sorting_code = args[:sorting_code] if args.key?(:sorting_code)
550
- @address_line = args[:address_line] if args.key?(:address_line)
551
- @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
552
- @locality = args[:locality] if args.key?(:locality)
553
- @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
554
- @dependent_locality = args[:dependent_locality] if args.key?(:dependent_locality)
555
- @region_code = args[:region_code] if args.key?(:region_code)
449
+ @resolved_timestamp = args[:resolved_timestamp] if args.key?(:resolved_timestamp)
450
+ @company_admin = args[:company_admin] if args.key?(:company_admin)
556
451
  @address = args[:address] if args.key?(:address)
557
- @postal_code = args[:postal_code] if args.key?(:postal_code)
452
+ @is_pending = args[:is_pending] if args.key?(:is_pending)
453
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
454
+ @state = args[:state] if args.key?(:state)
455
+ @name = args[:name] if args.key?(:name)
456
+ @manager_account = args[:manager_account] if args.key?(:manager_account)
457
+ @segment = args[:segment] if args.key?(:segment)
458
+ @badge_tier = args[:badge_tier] if args.key?(:badge_tier)
459
+ @specialization_status = args[:specialization_status] if args.key?(:specialization_status)
460
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
461
+ @website = args[:website] if args.key?(:website)
462
+ @company_id = args[:company_id] if args.key?(:company_id)
463
+ @logo_url = args[:logo_url] if args.key?(:logo_url)
558
464
  end
559
465
  end
560
466
 
561
- # A token that allows a user to take an exam.
562
- class ExamToken
467
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
468
+ # time zone are either specified elsewhere or are not significant. The date
469
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
470
+ # represent a year and month where the day is not significant, e.g. credit card
471
+ # expiration date. The year may be 0 to represent a month and day independent
472
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
473
+ # and `google.protobuf.Timestamp`.
474
+ class Date
563
475
  include Google::Apis::Core::Hashable
564
476
 
565
- # The token, only present if the user has access to the exam.
566
- # Corresponds to the JSON property `token`
567
- # @return [String]
568
- attr_accessor :token
477
+ # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
478
+ # a year.
479
+ # Corresponds to the JSON property `year`
480
+ # @return [Fixnum]
481
+ attr_accessor :year
569
482
 
570
- # The type of the exam the token belongs to.
571
- # Corresponds to the JSON property `examType`
572
- # @return [String]
573
- attr_accessor :exam_type
483
+ # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
484
+ # if specifying a year/month where the day is not significant.
485
+ # Corresponds to the JSON property `day`
486
+ # @return [Fixnum]
487
+ attr_accessor :day
574
488
 
575
- # The id of the exam the token is for.
576
- # Corresponds to the JSON property `examId`
577
- # @return [String]
578
- attr_accessor :exam_id
489
+ # Month of year. Must be from 1 to 12.
490
+ # Corresponds to the JSON property `month`
491
+ # @return [Fixnum]
492
+ attr_accessor :month
579
493
 
580
494
  def initialize(**args)
581
495
  update!(**args)
@@ -583,25 +497,48 @@ module Google
583
497
 
584
498
  # Update properties of this object
585
499
  def update!(**args)
586
- @token = args[:token] if args.key?(:token)
587
- @exam_type = args[:exam_type] if args.key?(:exam_type)
588
- @exam_id = args[:exam_id] if args.key?(:exam_id)
500
+ @year = args[:year] if args.key?(:year)
501
+ @day = args[:day] if args.key?(:day)
502
+ @month = args[:month] if args.key?(:month)
589
503
  end
590
504
  end
591
505
 
592
- # Status for a Google Partners certification exam.
593
- class CertificationExamStatus
506
+ # A generic empty message that you can re-use to avoid defining duplicated
507
+ # empty messages in your APIs. A typical example is to use it as the request
508
+ # or the response type of an API method. For instance:
509
+ # service Foo `
510
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
511
+ # `
512
+ # The JSON representation for `Empty` is empty JSON object ````.
513
+ class Empty
594
514
  include Google::Apis::Core::Hashable
595
515
 
596
- # The number of people who have passed the certification exam.
597
- # Corresponds to the JSON property `numberUsersPass`
598
- # @return [Fixnum]
599
- attr_accessor :number_users_pass
516
+ def initialize(**args)
517
+ update!(**args)
518
+ end
600
519
 
601
- # The type of certification exam.
602
- # Corresponds to the JSON property `type`
520
+ # Update properties of this object
521
+ def update!(**args)
522
+ end
523
+ end
524
+
525
+ # Source of traffic for the current request.
526
+ class TrafficSource
527
+ include Google::Apis::Core::Hashable
528
+
529
+ # Identifier to indicate where the traffic comes from.
530
+ # An identifier has multiple letters created by a team which redirected the
531
+ # traffic to us.
532
+ # Corresponds to the JSON property `trafficSourceId`
603
533
  # @return [String]
604
- attr_accessor :type
534
+ attr_accessor :traffic_source_id
535
+
536
+ # Second level identifier to indicate where the traffic comes from.
537
+ # An identifier has multiple letters created by a team which redirected the
538
+ # traffic to us.
539
+ # Corresponds to the JSON property `trafficSubId`
540
+ # @return [String]
541
+ attr_accessor :traffic_sub_id
605
542
 
606
543
  def initialize(**args)
607
544
  update!(**args)
@@ -609,46 +546,40 @@ module Google
609
546
 
610
547
  # Update properties of this object
611
548
  def update!(**args)
612
- @number_users_pass = args[:number_users_pass] if args.key?(:number_users_pass)
613
- @type = args[:type] if args.key?(:type)
549
+ @traffic_source_id = args[:traffic_source_id] if args.key?(:traffic_source_id)
550
+ @traffic_sub_id = args[:traffic_sub_id] if args.key?(:traffic_sub_id)
614
551
  end
615
552
  end
616
553
 
617
- # A set of opt-ins for a user.
618
- class OptIns
554
+ # Common data that is in each API request.
555
+ class RequestMetadata
619
556
  include Google::Apis::Core::Hashable
620
557
 
621
- # An opt-in about receiving email from Partners marketing teams. Includes
622
- # member-only events and special promotional offers for Google products.
623
- # Corresponds to the JSON property `marketComm`
624
- # @return [Boolean]
625
- attr_accessor :market_comm
626
- alias_method :market_comm?, :market_comm
558
+ # Experiment IDs the current request belongs to.
559
+ # Corresponds to the JSON property `experimentIds`
560
+ # @return [Array<String>]
561
+ attr_accessor :experiment_ids
627
562
 
628
- # An opt-in about receiving email regarding new features and products.
629
- # Corresponds to the JSON property `specialOffers`
630
- # @return [Boolean]
631
- attr_accessor :special_offers
632
- alias_method :special_offers?, :special_offers
563
+ # Source of traffic for the current request.
564
+ # Corresponds to the JSON property `trafficSource`
565
+ # @return [Google::Apis::PartnersV2::TrafficSource]
566
+ attr_accessor :traffic_source
633
567
 
634
- # An opt-in about receiving email with customized AdWords campaign management
635
- # tips.
636
- # Corresponds to the JSON property `performanceSuggestions`
637
- # @return [Boolean]
638
- attr_accessor :performance_suggestions
639
- alias_method :performance_suggestions?, :performance_suggestions
568
+ # Locale to use for the current request.
569
+ # Corresponds to the JSON property `locale`
570
+ # @return [String]
571
+ attr_accessor :locale
640
572
 
641
- # An opt-in to receive special promotional gifts and material in the mail.
642
- # Corresponds to the JSON property `physicalMail`
643
- # @return [Boolean]
644
- attr_accessor :physical_mail
645
- alias_method :physical_mail?, :physical_mail
573
+ # Values to use instead of the user's respective defaults. These are only
574
+ # honored by whitelisted products.
575
+ # Corresponds to the JSON property `userOverrides`
576
+ # @return [Google::Apis::PartnersV2::UserOverrides]
577
+ attr_accessor :user_overrides
646
578
 
647
- # An opt-in to allow recieivng phone calls about their Partners account.
648
- # Corresponds to the JSON property `phoneContact`
649
- # @return [Boolean]
650
- attr_accessor :phone_contact
651
- alias_method :phone_contact?, :phone_contact
579
+ # Google Partners session ID.
580
+ # Corresponds to the JSON property `partnersSessionId`
581
+ # @return [String]
582
+ attr_accessor :partners_session_id
652
583
 
653
584
  def initialize(**args)
654
585
  update!(**args)
@@ -656,27 +587,33 @@ module Google
656
587
 
657
588
  # Update properties of this object
658
589
  def update!(**args)
659
- @market_comm = args[:market_comm] if args.key?(:market_comm)
660
- @special_offers = args[:special_offers] if args.key?(:special_offers)
661
- @performance_suggestions = args[:performance_suggestions] if args.key?(:performance_suggestions)
662
- @physical_mail = args[:physical_mail] if args.key?(:physical_mail)
663
- @phone_contact = args[:phone_contact] if args.key?(:phone_contact)
590
+ @experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids)
591
+ @traffic_source = args[:traffic_source] if args.key?(:traffic_source)
592
+ @locale = args[:locale] if args.key?(:locale)
593
+ @user_overrides = args[:user_overrides] if args.key?(:user_overrides)
594
+ @partners_session_id = args[:partners_session_id] if args.key?(:partners_session_id)
664
595
  end
665
596
  end
666
597
 
667
- # Information related to ranking of results.
668
- class Rank
598
+ # Request message for CreateLead.
599
+ class CreateLeadRequest
669
600
  include Google::Apis::Core::Hashable
670
601
 
671
- # The type of rank.
672
- # Corresponds to the JSON property `type`
673
- # @return [String]
674
- attr_accessor :type
602
+ # Common data that is in each API request.
603
+ # Corresponds to the JSON property `requestMetadata`
604
+ # @return [Google::Apis::PartnersV2::RequestMetadata]
605
+ attr_accessor :request_metadata
675
606
 
676
- # The numerical value of the rank.
677
- # Corresponds to the JSON property `value`
678
- # @return [Float]
679
- attr_accessor :value
607
+ # A lead resource that represents an advertiser contact for a `Company`. These
608
+ # are usually generated via Google Partner Search (the advertiser portal).
609
+ # Corresponds to the JSON property `lead`
610
+ # @return [Google::Apis::PartnersV2::Lead]
611
+ attr_accessor :lead
612
+
613
+ # <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info.
614
+ # Corresponds to the JSON property `recaptchaChallenge`
615
+ # @return [Google::Apis::PartnersV2::RecaptchaChallenge]
616
+ attr_accessor :recaptcha_challenge
680
617
 
681
618
  def initialize(**args)
682
619
  update!(**args)
@@ -684,88 +621,72 @@ module Google
684
621
 
685
622
  # Update properties of this object
686
623
  def update!(**args)
687
- @type = args[:type] if args.key?(:type)
688
- @value = args[:value] if args.key?(:value)
624
+ @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
625
+ @lead = args[:lead] if args.key?(:lead)
626
+ @recaptcha_challenge = args[:recaptcha_challenge] if args.key?(:recaptcha_challenge)
689
627
  end
690
628
  end
691
629
 
692
- # The profile information of a Partners user.
693
- class UserProfile
630
+ # Key value data pair for an event.
631
+ class EventData
694
632
  include Google::Apis::Core::Hashable
695
633
 
696
- # The user's family name.
697
- # Corresponds to the JSON property `familyName`
634
+ # Data type.
635
+ # Corresponds to the JSON property `key`
698
636
  # @return [String]
699
- attr_accessor :family_name
637
+ attr_accessor :key
700
638
 
701
- # The list of languages this user understands.
702
- # Corresponds to the JSON property `languages`
639
+ # Data values.
640
+ # Corresponds to the JSON property `values`
703
641
  # @return [Array<String>]
704
- attr_accessor :languages
642
+ attr_accessor :values
705
643
 
706
- # A set of opt-ins for a user.
707
- # Corresponds to the JSON property `emailOptIns`
708
- # @return [Google::Apis::PartnersV2::OptIns]
709
- attr_accessor :email_opt_ins
644
+ def initialize(**args)
645
+ update!(**args)
646
+ end
710
647
 
711
- # A list of ids representing which markets the user was interested in.
712
- # Corresponds to the JSON property `markets`
713
- # @return [Array<String>]
714
- attr_accessor :markets
648
+ # Update properties of this object
649
+ def update!(**args)
650
+ @key = args[:key] if args.key?(:key)
651
+ @values = args[:values] if args.key?(:values)
652
+ end
653
+ end
715
654
 
716
- # If the user has edit access to multiple accounts, the user can choose the
717
- # preferred account and it is used when a personal account is needed. Can
718
- # be empty.
719
- # Corresponds to the JSON property `adwordsManagerAccount`
720
- # @return [String]
721
- attr_accessor :adwords_manager_account
655
+ # A user's information on a specific exam.
656
+ class ExamStatus
657
+ include Google::Apis::Core::Hashable
722
658
 
723
- # The user's phone number.
724
- # Corresponds to the JSON property `phoneNumber`
659
+ # The date the user last taken this exam.
660
+ # Corresponds to the JSON property `taken`
725
661
  # @return [String]
726
- attr_accessor :phone_number
662
+ attr_accessor :taken
727
663
 
728
- # The user's primary country, an ISO 2-character code.
729
- # Corresponds to the JSON property `primaryCountryCode`
730
- # @return [String]
731
- attr_accessor :primary_country_code
664
+ # Whether this exam has been passed and not expired.
665
+ # Corresponds to the JSON property `passed`
666
+ # @return [Boolean]
667
+ attr_accessor :passed
668
+ alias_method :passed?, :passed
732
669
 
733
- # The email address the user has selected on the Partners site as primary.
734
- # Corresponds to the JSON property `emailAddress`
670
+ # Date this exam is due to expire.
671
+ # Corresponds to the JSON property `expiration`
735
672
  # @return [String]
736
- attr_accessor :email_address
673
+ attr_accessor :expiration
737
674
 
738
- # Whether the user's public profile is visible to anyone with the URL.
739
- # Corresponds to the JSON property `profilePublic`
675
+ # Whether this exam is in the state of warning.
676
+ # Corresponds to the JSON property `warning`
740
677
  # @return [Boolean]
741
- attr_accessor :profile_public
742
- alias_method :profile_public?, :profile_public
743
-
744
- # A list of ids representing which channels the user selected they were in.
745
- # Corresponds to the JSON property `channels`
746
- # @return [Array<String>]
747
- attr_accessor :channels
748
-
749
- # A list of ids represnting which job categories the user selected.
750
- # Corresponds to the JSON property `jobFunctions`
751
- # @return [Array<String>]
752
- attr_accessor :job_functions
678
+ attr_accessor :warning
679
+ alias_method :warning?, :warning
753
680
 
754
- # The user's given name.
755
- # Corresponds to the JSON property `givenName`
681
+ # The date the user last passed this exam.
682
+ # Corresponds to the JSON property `lastPassed`
756
683
  # @return [String]
757
- attr_accessor :given_name
758
-
759
- # A location with address and geographic coordinates. May optionally contain a
760
- # detailed (multi-field) version of the address.
761
- # Corresponds to the JSON property `address`
762
- # @return [Google::Apis::PartnersV2::Location]
763
- attr_accessor :address
684
+ attr_accessor :last_passed
764
685
 
765
- # A list of ids representing which industries the user selected.
766
- # Corresponds to the JSON property `industries`
767
- # @return [Array<String>]
768
- attr_accessor :industries
686
+ # The type of the exam.
687
+ # Corresponds to the JSON property `examType`
688
+ # @return [String]
689
+ attr_accessor :exam_type
769
690
 
770
691
  def initialize(**args)
771
692
  update!(**args)
@@ -773,26 +694,17 @@ module Google
773
694
 
774
695
  # Update properties of this object
775
696
  def update!(**args)
776
- @family_name = args[:family_name] if args.key?(:family_name)
777
- @languages = args[:languages] if args.key?(:languages)
778
- @email_opt_ins = args[:email_opt_ins] if args.key?(:email_opt_ins)
779
- @markets = args[:markets] if args.key?(:markets)
780
- @adwords_manager_account = args[:adwords_manager_account] if args.key?(:adwords_manager_account)
781
- @phone_number = args[:phone_number] if args.key?(:phone_number)
782
- @primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code)
783
- @email_address = args[:email_address] if args.key?(:email_address)
784
- @profile_public = args[:profile_public] if args.key?(:profile_public)
785
- @channels = args[:channels] if args.key?(:channels)
786
- @job_functions = args[:job_functions] if args.key?(:job_functions)
787
- @given_name = args[:given_name] if args.key?(:given_name)
788
- @address = args[:address] if args.key?(:address)
789
- @industries = args[:industries] if args.key?(:industries)
697
+ @taken = args[:taken] if args.key?(:taken)
698
+ @passed = args[:passed] if args.key?(:passed)
699
+ @expiration = args[:expiration] if args.key?(:expiration)
700
+ @warning = args[:warning] if args.key?(:warning)
701
+ @last_passed = args[:last_passed] if args.key?(:last_passed)
702
+ @exam_type = args[:exam_type] if args.key?(:exam_type)
790
703
  end
791
704
  end
792
705
 
793
- # Response message for
794
- # GetPartnersStatus.
795
- class GetPartnersStatusResponse
706
+ # Response for ListOffer.
707
+ class ListOffersResponse
796
708
  include Google::Apis::Core::Hashable
797
709
 
798
710
  # Common data that is in each API response.
@@ -800,6 +712,16 @@ module Google
800
712
  # @return [Google::Apis::PartnersV2::ResponseMetadata]
801
713
  attr_accessor :response_metadata
802
714
 
715
+ # Reason why no Offers are available.
716
+ # Corresponds to the JSON property `noOfferReason`
717
+ # @return [String]
718
+ attr_accessor :no_offer_reason
719
+
720
+ # Available Offers to be distributed.
721
+ # Corresponds to the JSON property `availableOffers`
722
+ # @return [Array<Google::Apis::PartnersV2::AvailableOffer>]
723
+ attr_accessor :available_offers
724
+
803
725
  def initialize(**args)
804
726
  update!(**args)
805
727
  end
@@ -807,108 +729,71 @@ module Google
807
729
  # Update properties of this object
808
730
  def update!(**args)
809
731
  @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
732
+ @no_offer_reason = args[:no_offer_reason] if args.key?(:no_offer_reason)
733
+ @available_offers = args[:available_offers] if args.key?(:available_offers)
810
734
  end
811
735
  end
812
736
 
813
- # Historical information about a Google Partners Offer.
814
- class HistoricalOffer
737
+ # Offer info by country.
738
+ class CountryOfferInfo
815
739
  include Google::Apis::Core::Hashable
816
740
 
817
- # Name of the client.
818
- # Corresponds to the JSON property `clientName`
819
- # @return [String]
820
- attr_accessor :client_name
821
-
822
- # Time last action was taken.
823
- # Corresponds to the JSON property `lastModifiedTime`
741
+ # Country code for which offer codes may be requested.
742
+ # Corresponds to the JSON property `offerCountryCode`
824
743
  # @return [String]
825
- attr_accessor :last_modified_time
744
+ attr_accessor :offer_country_code
826
745
 
827
- # Client's AdWords page URL.
828
- # Corresponds to the JSON property `adwordsUrl`
746
+ # (localized) Spend X amount for that country's offer.
747
+ # Corresponds to the JSON property `spendXAmount`
829
748
  # @return [String]
830
- attr_accessor :adwords_url
749
+ attr_accessor :spend_x_amount
831
750
 
832
- # Type of offer.
751
+ # Type of offer country is eligible for.
833
752
  # Corresponds to the JSON property `offerType`
834
753
  # @return [String]
835
754
  attr_accessor :offer_type
836
755
 
837
- # Name (First + Last) of the partners user to whom the incentive is allocated.
838
- # Corresponds to the JSON property `senderName`
756
+ # (localized) Get Y amount for that country's offer.
757
+ # Corresponds to the JSON property `getYAmount`
839
758
  # @return [String]
840
- attr_accessor :sender_name
759
+ attr_accessor :get_y_amount
841
760
 
842
- # Country Code for the offer country.
843
- # Corresponds to the JSON property `offerCountryCode`
844
- # @return [String]
845
- attr_accessor :offer_country_code
846
-
847
- # Time this offer expires.
848
- # Corresponds to the JSON property `expirationTime`
849
- # @return [String]
850
- attr_accessor :expiration_time
851
-
852
- # Offer code.
853
- # Corresponds to the JSON property `offerCode`
854
- # @return [String]
855
- attr_accessor :offer_code
856
-
857
- # Time offer was first created.
858
- # Corresponds to the JSON property `creationTime`
859
- # @return [String]
860
- attr_accessor :creation_time
861
-
862
- # Status of the offer.
863
- # Corresponds to the JSON property `status`
864
- # @return [String]
865
- attr_accessor :status
866
-
867
- # Email address for client.
868
- # Corresponds to the JSON property `clientEmail`
869
- # @return [String]
870
- attr_accessor :client_email
871
-
872
- # ID of client.
873
- # Corresponds to the JSON property `clientId`
874
- # @return [String]
875
- attr_accessor :client_id
876
-
877
- def initialize(**args)
878
- update!(**args)
879
- end
761
+ def initialize(**args)
762
+ update!(**args)
763
+ end
880
764
 
881
765
  # Update properties of this object
882
766
  def update!(**args)
883
- @client_name = args[:client_name] if args.key?(:client_name)
884
- @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
885
- @adwords_url = args[:adwords_url] if args.key?(:adwords_url)
886
- @offer_type = args[:offer_type] if args.key?(:offer_type)
887
- @sender_name = args[:sender_name] if args.key?(:sender_name)
888
767
  @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code)
889
- @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
890
- @offer_code = args[:offer_code] if args.key?(:offer_code)
891
- @creation_time = args[:creation_time] if args.key?(:creation_time)
892
- @status = args[:status] if args.key?(:status)
893
- @client_email = args[:client_email] if args.key?(:client_email)
894
- @client_id = args[:client_id] if args.key?(:client_id)
768
+ @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount)
769
+ @offer_type = args[:offer_type] if args.key?(:offer_type)
770
+ @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount)
895
771
  end
896
772
  end
897
773
 
898
- # Values to use instead of the user's respective defaults. These are only
899
- # honored by whitelisted products.
900
- class UserOverrides
774
+ # Response message for
775
+ # ListCompanies.
776
+ class ListCompaniesResponse
901
777
  include Google::Apis::Core::Hashable
902
778
 
903
- # IP address to use instead of the user's geo-located IP address.
904
- # Corresponds to the JSON property `ipAddress`
905
- # @return [String]
906
- attr_accessor :ip_address
779
+ # Common data that is in each API response.
780
+ # Corresponds to the JSON property `responseMetadata`
781
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
782
+ attr_accessor :response_metadata
907
783
 
908
- # Logged-in user ID to impersonate instead of the user's ID.
909
- # Corresponds to the JSON property `userId`
784
+ # The list of companies.
785
+ # Corresponds to the JSON property `companies`
786
+ # @return [Array<Google::Apis::PartnersV2::Company>]
787
+ attr_accessor :companies
788
+
789
+ # A token to retrieve next page of results.
790
+ # Pass this value in the `ListCompaniesRequest.page_token` field in the
791
+ # subsequent call to
792
+ # ListCompanies to retrieve the
793
+ # next page of results.
794
+ # Corresponds to the JSON property `nextPageToken`
910
795
  # @return [String]
911
- attr_accessor :user_id
796
+ attr_accessor :next_page_token
912
797
 
913
798
  def initialize(**args)
914
799
  update!(**args)
@@ -916,51 +801,60 @@ module Google
916
801
 
917
802
  # Update properties of this object
918
803
  def update!(**args)
919
- @ip_address = args[:ip_address] if args.key?(:ip_address)
920
- @user_id = args[:user_id] if args.key?(:user_id)
804
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
805
+ @companies = args[:companies] if args.key?(:companies)
806
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
921
807
  end
922
808
  end
923
809
 
924
- # Request message for
925
- # LogUserEvent.
926
- class LogUserEventRequest
810
+ # Customers qualified for an offer.
811
+ class OfferCustomer
927
812
  include Google::Apis::Core::Hashable
928
813
 
929
- # The URL where the event occurred.
930
- # Corresponds to the JSON property `url`
814
+ # Formatted Get Y amount with currency code.
815
+ # Corresponds to the JSON property `getYAmount`
931
816
  # @return [String]
932
- attr_accessor :url
817
+ attr_accessor :get_y_amount
933
818
 
934
- # Common data that is in each API request.
935
- # Corresponds to the JSON property `requestMetadata`
936
- # @return [Google::Apis::PartnersV2::RequestMetadata]
937
- attr_accessor :request_metadata
819
+ # Name of the customer.
820
+ # Corresponds to the JSON property `name`
821
+ # @return [String]
822
+ attr_accessor :name
938
823
 
939
- # The scope of the event.
940
- # Corresponds to the JSON property `eventScope`
824
+ # Formatted Spend X amount with currency code.
825
+ # Corresponds to the JSON property `spendXAmount`
941
826
  # @return [String]
942
- attr_accessor :event_scope
827
+ attr_accessor :spend_x_amount
943
828
 
944
- # List of event data for the event.
945
- # Corresponds to the JSON property `eventDatas`
946
- # @return [Array<Google::Apis::PartnersV2::EventData>]
947
- attr_accessor :event_datas
829
+ # URL to the customer's AdWords page.
830
+ # Corresponds to the JSON property `adwordsUrl`
831
+ # @return [String]
832
+ attr_accessor :adwords_url
948
833
 
949
- # The category the action belongs to.
950
- # Corresponds to the JSON property `eventCategory`
834
+ # Type of the offer
835
+ # Corresponds to the JSON property `offerType`
951
836
  # @return [String]
952
- attr_accessor :event_category
837
+ attr_accessor :offer_type
953
838
 
954
- # A lead resource that represents an advertiser contact for a `Company`. These
955
- # are usually generated via Google Partner Search (the advertiser portal).
956
- # Corresponds to the JSON property `lead`
957
- # @return [Google::Apis::PartnersV2::Lead]
958
- attr_accessor :lead
839
+ # Country code of the customer.
840
+ # Corresponds to the JSON property `countryCode`
841
+ # @return [String]
842
+ attr_accessor :country_code
959
843
 
960
- # The action that occurred.
961
- # Corresponds to the JSON property `eventAction`
844
+ # External CID for the customer.
845
+ # Corresponds to the JSON property `externalCid`
846
+ # @return [Fixnum]
847
+ attr_accessor :external_cid
848
+
849
+ # Days the customer is still eligible.
850
+ # Corresponds to the JSON property `eligibilityDaysLeft`
851
+ # @return [Fixnum]
852
+ attr_accessor :eligibility_days_left
853
+
854
+ # Time the customer was created.
855
+ # Corresponds to the JSON property `creationTime`
962
856
  # @return [String]
963
- attr_accessor :event_action
857
+ attr_accessor :creation_time
964
858
 
965
859
  def initialize(**args)
966
860
  update!(**args)
@@ -968,30 +862,42 @@ module Google
968
862
 
969
863
  # Update properties of this object
970
864
  def update!(**args)
971
- @url = args[:url] if args.key?(:url)
972
- @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
973
- @event_scope = args[:event_scope] if args.key?(:event_scope)
974
- @event_datas = args[:event_datas] if args.key?(:event_datas)
975
- @event_category = args[:event_category] if args.key?(:event_category)
976
- @lead = args[:lead] if args.key?(:lead)
977
- @event_action = args[:event_action] if args.key?(:event_action)
865
+ @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount)
866
+ @name = args[:name] if args.key?(:name)
867
+ @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount)
868
+ @adwords_url = args[:adwords_url] if args.key?(:adwords_url)
869
+ @offer_type = args[:offer_type] if args.key?(:offer_type)
870
+ @country_code = args[:country_code] if args.key?(:country_code)
871
+ @external_cid = args[:external_cid] if args.key?(:external_cid)
872
+ @eligibility_days_left = args[:eligibility_days_left] if args.key?(:eligibility_days_left)
873
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
978
874
  end
979
875
  end
980
876
 
981
- # Details of the analytics events for a `Company` within a single day.
982
- class AnalyticsDataPoint
877
+ # Google Partners certification status.
878
+ class CertificationStatus
983
879
  include Google::Apis::Core::Hashable
984
880
 
985
- # Number of times the type of event occurred.
986
- # Meaning depends on context (e.g. profile views, contacts, etc.).
987
- # Corresponds to the JSON property `eventCount`
881
+ # List of certification exam statuses.
882
+ # Corresponds to the JSON property `examStatuses`
883
+ # @return [Array<Google::Apis::PartnersV2::CertificationExamStatus>]
884
+ attr_accessor :exam_statuses
885
+
886
+ # The type of the certification.
887
+ # Corresponds to the JSON property `type`
888
+ # @return [String]
889
+ attr_accessor :type
890
+
891
+ # Number of people who are certified,
892
+ # Corresponds to the JSON property `userCount`
988
893
  # @return [Fixnum]
989
- attr_accessor :event_count
894
+ attr_accessor :user_count
990
895
 
991
- # Location information of where these events occurred.
992
- # Corresponds to the JSON property `eventLocations`
993
- # @return [Array<Google::Apis::PartnersV2::LatLng>]
994
- attr_accessor :event_locations
896
+ # Whether certification is passing.
897
+ # Corresponds to the JSON property `isCertified`
898
+ # @return [Boolean]
899
+ attr_accessor :is_certified
900
+ alias_method :is_certified?, :is_certified
995
901
 
996
902
  def initialize(**args)
997
903
  update!(**args)
@@ -999,40 +905,38 @@ module Google
999
905
 
1000
906
  # Update properties of this object
1001
907
  def update!(**args)
1002
- @event_count = args[:event_count] if args.key?(:event_count)
1003
- @event_locations = args[:event_locations] if args.key?(:event_locations)
908
+ @exam_statuses = args[:exam_statuses] if args.key?(:exam_statuses)
909
+ @type = args[:type] if args.key?(:type)
910
+ @user_count = args[:user_count] if args.key?(:user_count)
911
+ @is_certified = args[:is_certified] if args.key?(:is_certified)
1004
912
  end
1005
913
  end
1006
914
 
1007
- # Analytics data for a `Company` within a single day.
1008
- class Analytics
915
+ # The localized company information.
916
+ class LocalizedCompanyInfo
1009
917
  include Google::Apis::Core::Hashable
1010
918
 
1011
- # Represents a whole calendar date, e.g. date of birth. The time of day and
1012
- # time zone are either specified elsewhere or are not significant. The date
1013
- # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
1014
- # represent a year and month where the day is not significant, e.g. credit card
1015
- # expiration date. The year may be 0 to represent a month and day independent
1016
- # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
1017
- # and `google.protobuf.Timestamp`.
1018
- # Corresponds to the JSON property `eventDate`
1019
- # @return [Google::Apis::PartnersV2::Date]
1020
- attr_accessor :event_date
919
+ # List of country codes for the localized company info.
920
+ # Corresponds to the JSON property `countryCodes`
921
+ # @return [Array<String>]
922
+ attr_accessor :country_codes
1021
923
 
1022
- # Details of the analytics events for a `Company` within a single day.
1023
- # Corresponds to the JSON property `profileViews`
1024
- # @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
1025
- attr_accessor :profile_views
924
+ # Localized brief description that the company uses to advertise themselves.
925
+ # Corresponds to the JSON property `overview`
926
+ # @return [String]
927
+ attr_accessor :overview
1026
928
 
1027
- # Details of the analytics events for a `Company` within a single day.
1028
- # Corresponds to the JSON property `searchViews`
1029
- # @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
1030
- attr_accessor :search_views
929
+ # Localized display name.
930
+ # Corresponds to the JSON property `displayName`
931
+ # @return [String]
932
+ attr_accessor :display_name
1031
933
 
1032
- # Details of the analytics events for a `Company` within a single day.
1033
- # Corresponds to the JSON property `contacts`
1034
- # @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
1035
- attr_accessor :contacts
934
+ # Language code of the localized company info, as defined by
935
+ # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
936
+ # (IETF BCP 47, "Tags for Identifying Languages").
937
+ # Corresponds to the JSON property `languageCode`
938
+ # @return [String]
939
+ attr_accessor :language_code
1036
940
 
1037
941
  def initialize(**args)
1038
942
  update!(**args)
@@ -1040,41 +944,22 @@ module Google
1040
944
 
1041
945
  # Update properties of this object
1042
946
  def update!(**args)
1043
- @event_date = args[:event_date] if args.key?(:event_date)
1044
- @profile_views = args[:profile_views] if args.key?(:profile_views)
1045
- @search_views = args[:search_views] if args.key?(:search_views)
1046
- @contacts = args[:contacts] if args.key?(:contacts)
947
+ @country_codes = args[:country_codes] if args.key?(:country_codes)
948
+ @overview = args[:overview] if args.key?(:overview)
949
+ @display_name = args[:display_name] if args.key?(:display_name)
950
+ @language_code = args[:language_code] if args.key?(:language_code)
1047
951
  end
1048
952
  end
1049
953
 
1050
- # Basic information from a public profile.
1051
- class PublicProfile
954
+ # Response message for
955
+ # LogUserEvent.
956
+ class LogUserEventResponse
1052
957
  include Google::Apis::Core::Hashable
1053
958
 
1054
- # The display name of the public profile.
1055
- # Corresponds to the JSON property `displayName`
1056
- # @return [String]
1057
- attr_accessor :display_name
1058
-
1059
- # The URL to the main display image of the public profile. Being deprecated.
1060
- # Corresponds to the JSON property `displayImageUrl`
1061
- # @return [String]
1062
- attr_accessor :display_image_url
1063
-
1064
- # The ID which can be used to retrieve more details about the public profile.
1065
- # Corresponds to the JSON property `id`
1066
- # @return [String]
1067
- attr_accessor :id
1068
-
1069
- # The URL of the public profile.
1070
- # Corresponds to the JSON property `url`
1071
- # @return [String]
1072
- attr_accessor :url
1073
-
1074
- # The URL to the main profile image of the public profile.
1075
- # Corresponds to the JSON property `profileImage`
1076
- # @return [String]
1077
- attr_accessor :profile_image
959
+ # Common data that is in each API response.
960
+ # Corresponds to the JSON property `responseMetadata`
961
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
962
+ attr_accessor :response_metadata
1078
963
 
1079
964
  def initialize(**args)
1080
965
  update!(**args)
@@ -1082,28 +967,45 @@ module Google
1082
967
 
1083
968
  # Update properties of this object
1084
969
  def update!(**args)
1085
- @display_name = args[:display_name] if args.key?(:display_name)
1086
- @display_image_url = args[:display_image_url] if args.key?(:display_image_url)
1087
- @id = args[:id] if args.key?(:id)
1088
- @url = args[:url] if args.key?(:url)
1089
- @profile_image = args[:profile_image] if args.key?(:profile_image)
970
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1090
971
  end
1091
972
  end
1092
973
 
1093
- # Information about a particular AdWords Manager Account.
1094
- # Read more at https://support.google.com/adwords/answer/6139186
1095
- class AdWordsManagerAccountInfo
974
+ # Response for ListOfferHistory.
975
+ class ListOffersHistoryResponse
1096
976
  include Google::Apis::Core::Hashable
1097
977
 
1098
- # The AdWords Manager Account id.
1099
- # Corresponds to the JSON property `id`
1100
- # @return [String]
1101
- attr_accessor :id
978
+ # True if the user has the option to show entire company history.
979
+ # Corresponds to the JSON property `canShowEntireCompany`
980
+ # @return [Boolean]
981
+ attr_accessor :can_show_entire_company
982
+ alias_method :can_show_entire_company?, :can_show_entire_company
1102
983
 
1103
- # Name of the customer this account represents.
1104
- # Corresponds to the JSON property `customerName`
984
+ # Number of results across all pages.
985
+ # Corresponds to the JSON property `totalResults`
986
+ # @return [Fixnum]
987
+ attr_accessor :total_results
988
+
989
+ # True if this response is showing entire company history.
990
+ # Corresponds to the JSON property `showingEntireCompany`
991
+ # @return [Boolean]
992
+ attr_accessor :showing_entire_company
993
+ alias_method :showing_entire_company?, :showing_entire_company
994
+
995
+ # Historical offers meeting request.
996
+ # Corresponds to the JSON property `offers`
997
+ # @return [Array<Google::Apis::PartnersV2::HistoricalOffer>]
998
+ attr_accessor :offers
999
+
1000
+ # Supply this token in a ListOffersHistoryRequest to retrieve the next page.
1001
+ # Corresponds to the JSON property `nextPageToken`
1105
1002
  # @return [String]
1106
- attr_accessor :customer_name
1003
+ attr_accessor :next_page_token
1004
+
1005
+ # Common data that is in each API response.
1006
+ # Corresponds to the JSON property `responseMetadata`
1007
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
1008
+ attr_accessor :response_metadata
1107
1009
 
1108
1010
  def initialize(**args)
1109
1011
  update!(**args)
@@ -1111,19 +1013,24 @@ module Google
1111
1013
 
1112
1014
  # Update properties of this object
1113
1015
  def update!(**args)
1114
- @id = args[:id] if args.key?(:id)
1115
- @customer_name = args[:customer_name] if args.key?(:customer_name)
1016
+ @can_show_entire_company = args[:can_show_entire_company] if args.key?(:can_show_entire_company)
1017
+ @total_results = args[:total_results] if args.key?(:total_results)
1018
+ @showing_entire_company = args[:showing_entire_company] if args.key?(:showing_entire_company)
1019
+ @offers = args[:offers] if args.key?(:offers)
1020
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1021
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1116
1022
  end
1117
1023
  end
1118
1024
 
1119
- # Common data that is in each API response.
1120
- class ResponseMetadata
1025
+ # Response message for
1026
+ # LogClientMessage.
1027
+ class LogMessageResponse
1121
1028
  include Google::Apis::Core::Hashable
1122
1029
 
1123
- # Debug information about this request.
1124
- # Corresponds to the JSON property `debugInfo`
1125
- # @return [Google::Apis::PartnersV2::DebugInfo]
1126
- attr_accessor :debug_info
1030
+ # Common data that is in each API response.
1031
+ # Corresponds to the JSON property `responseMetadata`
1032
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
1033
+ attr_accessor :response_metadata
1127
1034
 
1128
1035
  def initialize(**args)
1129
1036
  update!(**args)
@@ -1131,23 +1038,23 @@ module Google
1131
1038
 
1132
1039
  # Update properties of this object
1133
1040
  def update!(**args)
1134
- @debug_info = args[:debug_info] if args.key?(:debug_info)
1041
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1135
1042
  end
1136
1043
  end
1137
1044
 
1138
- # <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info.
1139
- class RecaptchaChallenge
1045
+ # Agency specialization status
1046
+ class SpecializationStatus
1140
1047
  include Google::Apis::Core::Hashable
1141
1048
 
1142
- # The ID of the reCaptcha challenge.
1143
- # Corresponds to the JSON property `id`
1049
+ # The specialization this status is for.
1050
+ # Corresponds to the JSON property `badgeSpecialization`
1144
1051
  # @return [String]
1145
- attr_accessor :id
1052
+ attr_accessor :badge_specialization
1146
1053
 
1147
- # The response to the reCaptcha challenge.
1148
- # Corresponds to the JSON property `response`
1054
+ # State of agency specialization.
1055
+ # Corresponds to the JSON property `badgeSpecializationState`
1149
1056
  # @return [String]
1150
- attr_accessor :response
1057
+ attr_accessor :badge_specialization_state
1151
1058
 
1152
1059
  def initialize(**args)
1153
1060
  update!(**args)
@@ -1155,76 +1062,41 @@ module Google
1155
1062
 
1156
1063
  # Update properties of this object
1157
1064
  def update!(**args)
1158
- @id = args[:id] if args.key?(:id)
1159
- @response = args[:response] if args.key?(:response)
1065
+ @badge_specialization = args[:badge_specialization] if args.key?(:badge_specialization)
1066
+ @badge_specialization_state = args[:badge_specialization_state] if args.key?(:badge_specialization_state)
1160
1067
  end
1161
1068
  end
1162
1069
 
1163
- # Available Offers to be distributed.
1164
- class AvailableOffer
1070
+ # A user's information on a specific certification.
1071
+ class Certification
1165
1072
  include Google::Apis::Core::Hashable
1166
1073
 
1167
- # Type of offer.
1168
- # Corresponds to the JSON property `offerType`
1169
- # @return [String]
1170
- attr_accessor :offer_type
1171
-
1172
- # The maximum age of an account [in days] to be eligible.
1173
- # Corresponds to the JSON property `maxAccountAge`
1174
- # @return [Fixnum]
1175
- attr_accessor :max_account_age
1176
-
1177
- # Customers who qualify for this offer.
1178
- # Corresponds to the JSON property `qualifiedCustomer`
1179
- # @return [Array<Google::Apis::PartnersV2::OfferCustomer>]
1180
- attr_accessor :qualified_customer
1181
-
1182
- # Terms of the offer.
1183
- # Corresponds to the JSON property `terms`
1074
+ # The date the user last achieved certification.
1075
+ # Corresponds to the JSON property `lastAchieved`
1184
1076
  # @return [String]
1185
- attr_accessor :terms
1077
+ attr_accessor :last_achieved
1186
1078
 
1187
- # Should special text be shown on the offers page.
1188
- # Corresponds to the JSON property `showSpecialOfferCopy`
1079
+ # Whether this certification has been achieved.
1080
+ # Corresponds to the JSON property `achieved`
1189
1081
  # @return [Boolean]
1190
- attr_accessor :show_special_offer_copy
1191
- alias_method :show_special_offer_copy?, :show_special_offer_copy
1192
-
1193
- # The number of codes for this offer that are available for distribution.
1194
- # Corresponds to the JSON property `available`
1195
- # @return [Fixnum]
1196
- attr_accessor :available
1197
-
1198
- # Description of the offer.
1199
- # Corresponds to the JSON property `description`
1200
- # @return [String]
1201
- attr_accessor :description
1202
-
1203
- # Level of this offer.
1204
- # Corresponds to the JSON property `offerLevel`
1205
- # @return [String]
1206
- attr_accessor :offer_level
1082
+ attr_accessor :achieved
1083
+ alias_method :achieved?, :achieved
1207
1084
 
1208
- # Name of the offer.
1209
- # Corresponds to the JSON property `name`
1085
+ # Date this certification is due to expire.
1086
+ # Corresponds to the JSON property `expiration`
1210
1087
  # @return [String]
1211
- attr_accessor :name
1088
+ attr_accessor :expiration
1212
1089
 
1213
- # Whether or not the list of qualified customers is definitely complete.
1214
- # Corresponds to the JSON property `qualifiedCustomersComplete`
1090
+ # Whether this certification is in the state of warning.
1091
+ # Corresponds to the JSON property `warning`
1215
1092
  # @return [Boolean]
1216
- attr_accessor :qualified_customers_complete
1217
- alias_method :qualified_customers_complete?, :qualified_customers_complete
1093
+ attr_accessor :warning
1094
+ alias_method :warning?, :warning
1218
1095
 
1219
- # ID of this offer.
1220
- # Corresponds to the JSON property `id`
1096
+ # The type of certification, the area of expertise.
1097
+ # Corresponds to the JSON property `certificationType`
1221
1098
  # @return [String]
1222
- attr_accessor :id
1223
-
1224
- # Offer info by country.
1225
- # Corresponds to the JSON property `countryOfferInfos`
1226
- # @return [Array<Google::Apis::PartnersV2::CountryOfferInfo>]
1227
- attr_accessor :country_offer_infos
1099
+ attr_accessor :certification_type
1228
1100
 
1229
1101
  def initialize(**args)
1230
1102
  update!(**args)
@@ -1232,106 +1104,78 @@ module Google
1232
1104
 
1233
1105
  # Update properties of this object
1234
1106
  def update!(**args)
1235
- @offer_type = args[:offer_type] if args.key?(:offer_type)
1236
- @max_account_age = args[:max_account_age] if args.key?(:max_account_age)
1237
- @qualified_customer = args[:qualified_customer] if args.key?(:qualified_customer)
1238
- @terms = args[:terms] if args.key?(:terms)
1239
- @show_special_offer_copy = args[:show_special_offer_copy] if args.key?(:show_special_offer_copy)
1240
- @available = args[:available] if args.key?(:available)
1241
- @description = args[:description] if args.key?(:description)
1242
- @offer_level = args[:offer_level] if args.key?(:offer_level)
1243
- @name = args[:name] if args.key?(:name)
1244
- @qualified_customers_complete = args[:qualified_customers_complete] if args.key?(:qualified_customers_complete)
1245
- @id = args[:id] if args.key?(:id)
1246
- @country_offer_infos = args[:country_offer_infos] if args.key?(:country_offer_infos)
1107
+ @last_achieved = args[:last_achieved] if args.key?(:last_achieved)
1108
+ @achieved = args[:achieved] if args.key?(:achieved)
1109
+ @expiration = args[:expiration] if args.key?(:expiration)
1110
+ @warning = args[:warning] if args.key?(:warning)
1111
+ @certification_type = args[:certification_type] if args.key?(:certification_type)
1247
1112
  end
1248
1113
  end
1249
1114
 
1250
- # An object representing a latitude/longitude pair. This is expressed as a pair
1251
- # of doubles representing degrees latitude and degrees longitude. Unless
1252
- # specified otherwise, this must conform to the
1253
- # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
1254
- # standard</a>. Values must be within normalized ranges.
1255
- # Example of normalization code in Python:
1256
- # def NormalizeLongitude(longitude):
1257
- # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
1258
- # q, r = divmod(longitude, 360.0)
1259
- # if r > 180.0 or (r == 180.0 and q <= -1.0):
1260
- # return r - 360.0
1261
- # return r
1262
- # def NormalizeLatLng(latitude, longitude):
1263
- # """Wraps decimal degrees latitude and longitude to
1264
- # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
1265
- # r = latitude % 360.0
1266
- # if r <= 90.0:
1267
- # return r, NormalizeLongitude(longitude)
1268
- # elif r >= 270.0:
1269
- # return r - 360, NormalizeLongitude(longitude)
1270
- # else:
1271
- # return 180 - r, NormalizeLongitude(longitude + 180.0)
1272
- # assert 180.0 == NormalizeLongitude(180.0)
1273
- # assert -180.0 == NormalizeLongitude(-180.0)
1274
- # assert -179.0 == NormalizeLongitude(181.0)
1275
- # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
1276
- # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
1277
- # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
1278
- # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
1279
- # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
1280
- # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
1281
- # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
1282
- # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
1283
- # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
1284
- # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
1285
- # The code in logs/storage/validator/logs_validator_traits.cc treats this type
1286
- # as if it were annotated as ST_LOCATION.
1287
- class LatLng
1115
+ # A resource representing a user of the Partners platform.
1116
+ class User
1288
1117
  include Google::Apis::Core::Hashable
1289
1118
 
1290
- # The latitude in degrees. It must be in the range [-90.0, +90.0].
1291
- # Corresponds to the JSON property `latitude`
1292
- # @return [Float]
1293
- attr_accessor :latitude
1294
-
1295
- # The longitude in degrees. It must be in the range [-180.0, +180.0].
1296
- # Corresponds to the JSON property `longitude`
1297
- # @return [Float]
1298
- attr_accessor :longitude
1119
+ # This is the list of AdWords Manager Accounts the user has edit access to.
1120
+ # If the user has edit access to multiple accounts, the user can choose the
1121
+ # preferred account and we use this when a personal account is needed. Can
1122
+ # be empty meaning the user has access to no accounts.
1123
+ # @OutputOnly
1124
+ # Corresponds to the JSON property `availableAdwordsManagerAccounts`
1125
+ # @return [Array<Google::Apis::PartnersV2::AdWordsManagerAccountInfo>]
1126
+ attr_accessor :available_adwords_manager_accounts
1299
1127
 
1300
- def initialize(**args)
1301
- update!(**args)
1302
- end
1128
+ # The list of emails the user has access to/can select as primary.
1129
+ # @OutputOnly
1130
+ # Corresponds to the JSON property `primaryEmails`
1131
+ # @return [Array<String>]
1132
+ attr_accessor :primary_emails
1303
1133
 
1304
- # Update properties of this object
1305
- def update!(**args)
1306
- @latitude = args[:latitude] if args.key?(:latitude)
1307
- @longitude = args[:longitude] if args.key?(:longitude)
1308
- end
1309
- end
1134
+ # The list of exams the user ever taken. For each type of exam, only one
1135
+ # entry is listed.
1136
+ # Corresponds to the JSON property `examStatus`
1137
+ # @return [Array<Google::Apis::PartnersV2::ExamStatus>]
1138
+ attr_accessor :exam_status
1310
1139
 
1311
- # Represents an amount of money with its currency type.
1312
- class Money
1313
- include Google::Apis::Core::Hashable
1140
+ # The ID of the user.
1141
+ # Corresponds to the JSON property `id`
1142
+ # @return [String]
1143
+ attr_accessor :id
1314
1144
 
1315
- # Number of nano (10^-9) units of the amount.
1316
- # The value must be between -999,999,999 and +999,999,999 inclusive.
1317
- # If `units` is positive, `nanos` must be positive or zero.
1318
- # If `units` is zero, `nanos` can be positive, zero, or negative.
1319
- # If `units` is negative, `nanos` must be negative or zero.
1320
- # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1321
- # Corresponds to the JSON property `nanos`
1322
- # @return [Fixnum]
1323
- attr_accessor :nanos
1145
+ # Basic information from a public profile.
1146
+ # Corresponds to the JSON property `publicProfile`
1147
+ # @return [Google::Apis::PartnersV2::PublicProfile]
1148
+ attr_accessor :public_profile
1324
1149
 
1325
- # The whole units of the amount.
1326
- # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
1327
- # Corresponds to the JSON property `units`
1150
+ # The email address used by the user used for company verification.
1151
+ # @OutputOnly
1152
+ # Corresponds to the JSON property `companyVerificationEmail`
1328
1153
  # @return [String]
1329
- attr_accessor :units
1154
+ attr_accessor :company_verification_email
1330
1155
 
1331
- # The 3-letter currency code defined in ISO 4217.
1332
- # Corresponds to the JSON property `currencyCode`
1156
+ # The list of achieved certifications. These are calculated based on exam
1157
+ # results and other requirements.
1158
+ # @OutputOnly
1159
+ # Corresponds to the JSON property `certificationStatus`
1160
+ # @return [Array<Google::Apis::PartnersV2::Certification>]
1161
+ attr_accessor :certification_status
1162
+
1163
+ # A CompanyRelation resource representing information about a user's
1164
+ # affiliation and standing with a company in Partners.
1165
+ # Corresponds to the JSON property `company`
1166
+ # @return [Google::Apis::PartnersV2::CompanyRelation]
1167
+ attr_accessor :company
1168
+
1169
+ # The profile information of a Partners user.
1170
+ # Corresponds to the JSON property `profile`
1171
+ # @return [Google::Apis::PartnersV2::UserProfile]
1172
+ attr_accessor :profile
1173
+
1174
+ # The most recent time the user interacted with the Partners site.
1175
+ # @OutputOnly
1176
+ # Corresponds to the JSON property `lastAccessTime`
1333
1177
  # @return [String]
1334
- attr_accessor :currency_code
1178
+ attr_accessor :last_access_time
1335
1179
 
1336
1180
  def initialize(**args)
1337
1181
  update!(**args)
@@ -1339,32 +1183,49 @@ module Google
1339
1183
 
1340
1184
  # Update properties of this object
1341
1185
  def update!(**args)
1342
- @nanos = args[:nanos] if args.key?(:nanos)
1343
- @units = args[:units] if args.key?(:units)
1344
- @currency_code = args[:currency_code] if args.key?(:currency_code)
1186
+ @available_adwords_manager_accounts = args[:available_adwords_manager_accounts] if args.key?(:available_adwords_manager_accounts)
1187
+ @primary_emails = args[:primary_emails] if args.key?(:primary_emails)
1188
+ @exam_status = args[:exam_status] if args.key?(:exam_status)
1189
+ @id = args[:id] if args.key?(:id)
1190
+ @public_profile = args[:public_profile] if args.key?(:public_profile)
1191
+ @company_verification_email = args[:company_verification_email] if args.key?(:company_verification_email)
1192
+ @certification_status = args[:certification_status] if args.key?(:certification_status)
1193
+ @company = args[:company] if args.key?(:company)
1194
+ @profile = args[:profile] if args.key?(:profile)
1195
+ @last_access_time = args[:last_access_time] if args.key?(:last_access_time)
1345
1196
  end
1346
1197
  end
1347
1198
 
1348
- # Analytics aggregated data for a `Company` for a given date range.
1349
- class AnalyticsSummary
1199
+ # Response message for
1200
+ # ListAnalytics.
1201
+ class ListAnalyticsResponse
1350
1202
  include Google::Apis::Core::Hashable
1351
1203
 
1352
- # Aggregated number of times users contacted the `Company`
1353
- # for given date range.
1354
- # Corresponds to the JSON property `contactsCount`
1355
- # @return [Fixnum]
1356
- attr_accessor :contacts_count
1204
+ # A token to retrieve next page of results.
1205
+ # Pass this value in the `ListAnalyticsRequest.page_token` field in the
1206
+ # subsequent call to
1207
+ # ListAnalytics to retrieve the
1208
+ # next page of results.
1209
+ # Corresponds to the JSON property `nextPageToken`
1210
+ # @return [String]
1211
+ attr_accessor :next_page_token
1357
1212
 
1358
- # Aggregated number of profile views for the `Company` for given date range.
1359
- # Corresponds to the JSON property `profileViewsCount`
1360
- # @return [Fixnum]
1361
- attr_accessor :profile_views_count
1213
+ # Common data that is in each API response.
1214
+ # Corresponds to the JSON property `responseMetadata`
1215
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
1216
+ attr_accessor :response_metadata
1217
+
1218
+ # Analytics aggregated data for a `Company` for a given date range.
1219
+ # Corresponds to the JSON property `analyticsSummary`
1220
+ # @return [Google::Apis::PartnersV2::AnalyticsSummary]
1221
+ attr_accessor :analytics_summary
1362
1222
 
1363
- # Aggregated number of times users saw the `Company`
1364
- # in Google Partners Search results for given date range.
1365
- # Corresponds to the JSON property `searchViewsCount`
1366
- # @return [Fixnum]
1367
- attr_accessor :search_views_count
1223
+ # The list of analytics.
1224
+ # Sorted in ascending order of
1225
+ # Analytics.event_date.
1226
+ # Corresponds to the JSON property `analytics`
1227
+ # @return [Array<Google::Apis::PartnersV2::Analytics>]
1228
+ attr_accessor :analytics
1368
1229
 
1369
1230
  def initialize(**args)
1370
1231
  update!(**args)
@@ -1372,36 +1233,40 @@ module Google
1372
1233
 
1373
1234
  # Update properties of this object
1374
1235
  def update!(**args)
1375
- @contacts_count = args[:contacts_count] if args.key?(:contacts_count)
1376
- @profile_views_count = args[:profile_views_count] if args.key?(:profile_views_count)
1377
- @search_views_count = args[:search_views_count] if args.key?(:search_views_count)
1236
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1237
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1238
+ @analytics_summary = args[:analytics_summary] if args.key?(:analytics_summary)
1239
+ @analytics = args[:analytics] if args.key?(:analytics)
1378
1240
  end
1379
1241
  end
1380
1242
 
1381
- # Request message for
1382
- # LogClientMessage.
1383
- class LogMessageRequest
1243
+ # Response message for ListLeads.
1244
+ class ListLeadsResponse
1384
1245
  include Google::Apis::Core::Hashable
1385
1246
 
1386
- # Map of client info, such as URL, browser navigator, browser platform, etc.
1387
- # Corresponds to the JSON property `clientInfo`
1388
- # @return [Hash<String,String>]
1389
- attr_accessor :client_info
1247
+ # Common data that is in each API response.
1248
+ # Corresponds to the JSON property `responseMetadata`
1249
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
1250
+ attr_accessor :response_metadata
1390
1251
 
1391
- # Common data that is in each API request.
1392
- # Corresponds to the JSON property `requestMetadata`
1393
- # @return [Google::Apis::PartnersV2::RequestMetadata]
1394
- attr_accessor :request_metadata
1252
+ # The total count of leads for the given company.
1253
+ # Corresponds to the JSON property `totalSize`
1254
+ # @return [Fixnum]
1255
+ attr_accessor :total_size
1395
1256
 
1396
- # Message level of client message.
1397
- # Corresponds to the JSON property `level`
1398
- # @return [String]
1399
- attr_accessor :level
1257
+ # The list of leads.
1258
+ # Corresponds to the JSON property `leads`
1259
+ # @return [Array<Google::Apis::PartnersV2::Lead>]
1260
+ attr_accessor :leads
1400
1261
 
1401
- # Details about the client message.
1402
- # Corresponds to the JSON property `details`
1262
+ # A token to retrieve next page of results.
1263
+ # Pass this value in the `ListLeadsRequest.page_token` field in the
1264
+ # subsequent call to
1265
+ # ListLeads to retrieve the
1266
+ # next page of results.
1267
+ # Corresponds to the JSON property `nextPageToken`
1403
1268
  # @return [String]
1404
- attr_accessor :details
1269
+ attr_accessor :next_page_token
1405
1270
 
1406
1271
  def initialize(**args)
1407
1272
  update!(**args)
@@ -1409,95 +1274,132 @@ module Google
1409
1274
 
1410
1275
  # Update properties of this object
1411
1276
  def update!(**args)
1412
- @client_info = args[:client_info] if args.key?(:client_info)
1413
- @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
1414
- @level = args[:level] if args.key?(:level)
1415
- @details = args[:details] if args.key?(:details)
1277
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1278
+ @total_size = args[:total_size] if args.key?(:total_size)
1279
+ @leads = args[:leads] if args.key?(:leads)
1280
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1416
1281
  end
1417
1282
  end
1418
1283
 
1419
- # A lead resource that represents an advertiser contact for a `Company`. These
1420
- # are usually generated via Google Partner Search (the advertiser portal).
1421
- class Lead
1284
+ # A company resource in the Google Partners API. Once certified, it qualifies
1285
+ # for being searched by advertisers.
1286
+ class Company
1422
1287
  include Google::Apis::Core::Hashable
1423
1288
 
1424
- # Timestamp of when this lead was created.
1425
- # Corresponds to the JSON property `createTime`
1426
- # @return [String]
1427
- attr_accessor :create_time
1428
-
1429
- # Whether or not the lead signed up for marketing emails
1430
- # Corresponds to the JSON property `marketingOptIn`
1431
- # @return [Boolean]
1432
- attr_accessor :marketing_opt_in
1433
- alias_method :marketing_opt_in?, :marketing_opt_in
1434
-
1435
- # Type of lead.
1436
- # Corresponds to the JSON property `type`
1437
- # @return [String]
1438
- attr_accessor :type
1289
+ # The list of all company locations.
1290
+ # If set, must include the
1291
+ # primary_location
1292
+ # in the list.
1293
+ # Corresponds to the JSON property `locations`
1294
+ # @return [Array<Google::Apis::PartnersV2::Location>]
1295
+ attr_accessor :locations
1439
1296
 
1440
1297
  # Represents an amount of money with its currency type.
1441
- # Corresponds to the JSON property `minMonthlyBudget`
1298
+ # Corresponds to the JSON property `convertedMinMonthlyBudget`
1442
1299
  # @return [Google::Apis::PartnersV2::Money]
1443
- attr_accessor :min_monthly_budget
1444
-
1445
- # First name of lead source.
1446
- # Corresponds to the JSON property `givenName`
1447
- # @return [String]
1448
- attr_accessor :given_name
1300
+ attr_accessor :converted_min_monthly_budget
1449
1301
 
1450
- # Language code of the lead's language preference, as defined by
1451
- # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
1452
- # (IETF BCP 47, "Tags for Identifying Languages").
1453
- # Corresponds to the JSON property `languageCode`
1454
- # @return [String]
1455
- attr_accessor :language_code
1302
+ # Industries the company can help with.
1303
+ # Corresponds to the JSON property `industries`
1304
+ # @return [Array<String>]
1305
+ attr_accessor :industries
1456
1306
 
1457
- # Website URL of lead source.
1307
+ # URL of the company's website.
1458
1308
  # Corresponds to the JSON property `websiteUrl`
1459
1309
  # @return [String]
1460
1310
  attr_accessor :website_url
1461
1311
 
1462
- # The lead's state in relation to the company.
1463
- # Corresponds to the JSON property `state`
1464
- # @return [String]
1465
- attr_accessor :state
1466
-
1467
- # List of reasons for using Google Partner Search and creating a lead.
1468
- # Corresponds to the JSON property `gpsMotivations`
1312
+ # URL of the company's additional websites used to verify the dynamic badges.
1313
+ # These are stored as full URLs as entered by the user, but only the TLD will
1314
+ # be used for the actual verification.
1315
+ # Corresponds to the JSON property `additionalWebsites`
1469
1316
  # @return [Array<String>]
1470
- attr_accessor :gps_motivations
1317
+ attr_accessor :additional_websites
1471
1318
 
1472
- # Email address of lead source.
1473
- # Corresponds to the JSON property `email`
1474
- # @return [String]
1475
- attr_accessor :email
1319
+ # The Primary AdWords Manager Account id.
1320
+ # Corresponds to the JSON property `primaryAdwordsManagerAccountId`
1321
+ # @return [Fixnum]
1322
+ attr_accessor :primary_adwords_manager_account_id
1476
1323
 
1477
- # Last name of lead source.
1478
- # Corresponds to the JSON property `familyName`
1324
+ # The name of the company.
1325
+ # Corresponds to the JSON property `name`
1479
1326
  # @return [String]
1480
- attr_accessor :family_name
1327
+ attr_accessor :name
1481
1328
 
1482
- # ID of the lead.
1329
+ # The list of localized info for the company.
1330
+ # Corresponds to the JSON property `localizedInfos`
1331
+ # @return [Array<Google::Apis::PartnersV2::LocalizedCompanyInfo>]
1332
+ attr_accessor :localized_infos
1333
+
1334
+ # The ID of the company.
1483
1335
  # Corresponds to the JSON property `id`
1484
1336
  # @return [String]
1485
1337
  attr_accessor :id
1486
1338
 
1487
- # Comments lead source gave.
1488
- # Corresponds to the JSON property `comments`
1339
+ # The list of Google Partners certification statuses for the company.
1340
+ # Corresponds to the JSON property `certificationStatuses`
1341
+ # @return [Array<Google::Apis::PartnersV2::CertificationStatus>]
1342
+ attr_accessor :certification_statuses
1343
+
1344
+ # Basic information from a public profile.
1345
+ # Corresponds to the JSON property `publicProfile`
1346
+ # @return [Google::Apis::PartnersV2::PublicProfile]
1347
+ attr_accessor :public_profile
1348
+
1349
+ # A location with address and geographic coordinates. May optionally contain a
1350
+ # detailed (multi-field) version of the address.
1351
+ # Corresponds to the JSON property `primaryLocation`
1352
+ # @return [Google::Apis::PartnersV2::Location]
1353
+ attr_accessor :primary_location
1354
+
1355
+ # Services the company can help with.
1356
+ # Corresponds to the JSON property `services`
1357
+ # @return [Array<String>]
1358
+ attr_accessor :services
1359
+
1360
+ # Represents an amount of money with its currency type.
1361
+ # Corresponds to the JSON property `originalMinMonthlyBudget`
1362
+ # @return [Google::Apis::PartnersV2::Money]
1363
+ attr_accessor :original_min_monthly_budget
1364
+
1365
+ # Information related to the ranking of the company within the list of
1366
+ # companies.
1367
+ # Corresponds to the JSON property `ranks`
1368
+ # @return [Array<Google::Apis::PartnersV2::Rank>]
1369
+ attr_accessor :ranks
1370
+
1371
+ # Partner badge tier
1372
+ # Corresponds to the JSON property `badgeTier`
1489
1373
  # @return [String]
1490
- attr_accessor :comments
1374
+ attr_accessor :badge_tier
1491
1375
 
1492
- # Phone number of lead source.
1493
- # Corresponds to the JSON property `phoneNumber`
1376
+ # The list of Google Partners specialization statuses for the company.
1377
+ # Corresponds to the JSON property `specializationStatus`
1378
+ # @return [Array<Google::Apis::PartnersV2::SpecializationStatus>]
1379
+ attr_accessor :specialization_status
1380
+
1381
+ # Company type labels listed on the company's profile.
1382
+ # Corresponds to the JSON property `companyTypes`
1383
+ # @return [Array<String>]
1384
+ attr_accessor :company_types
1385
+
1386
+ # Email domains that allow users with a matching email address to get
1387
+ # auto-approved for associating with this company.
1388
+ # Corresponds to the JSON property `autoApprovalEmailDomains`
1389
+ # @return [Array<String>]
1390
+ attr_accessor :auto_approval_email_domains
1391
+
1392
+ # The primary language code of the company, as defined by
1393
+ # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
1394
+ # (IETF BCP 47, "Tags for Identifying Languages").
1395
+ # Corresponds to the JSON property `primaryLanguageCode`
1494
1396
  # @return [String]
1495
- attr_accessor :phone_number
1397
+ attr_accessor :primary_language_code
1496
1398
 
1497
- # The AdWords Customer ID of the lead.
1498
- # Corresponds to the JSON property `adwordsCustomerId`
1399
+ # The public viewability status of the company's profile.
1400
+ # Corresponds to the JSON property `profileStatus`
1499
1401
  # @return [String]
1500
- attr_accessor :adwords_customer_id
1402
+ attr_accessor :profile_status
1501
1403
 
1502
1404
  def initialize(**args)
1503
1405
  update!(**args)
@@ -1505,42 +1407,50 @@ module Google
1505
1407
 
1506
1408
  # Update properties of this object
1507
1409
  def update!(**args)
1508
- @create_time = args[:create_time] if args.key?(:create_time)
1509
- @marketing_opt_in = args[:marketing_opt_in] if args.key?(:marketing_opt_in)
1510
- @type = args[:type] if args.key?(:type)
1511
- @min_monthly_budget = args[:min_monthly_budget] if args.key?(:min_monthly_budget)
1512
- @given_name = args[:given_name] if args.key?(:given_name)
1513
- @language_code = args[:language_code] if args.key?(:language_code)
1410
+ @locations = args[:locations] if args.key?(:locations)
1411
+ @converted_min_monthly_budget = args[:converted_min_monthly_budget] if args.key?(:converted_min_monthly_budget)
1412
+ @industries = args[:industries] if args.key?(:industries)
1514
1413
  @website_url = args[:website_url] if args.key?(:website_url)
1515
- @state = args[:state] if args.key?(:state)
1516
- @gps_motivations = args[:gps_motivations] if args.key?(:gps_motivations)
1517
- @email = args[:email] if args.key?(:email)
1518
- @family_name = args[:family_name] if args.key?(:family_name)
1414
+ @additional_websites = args[:additional_websites] if args.key?(:additional_websites)
1415
+ @primary_adwords_manager_account_id = args[:primary_adwords_manager_account_id] if args.key?(:primary_adwords_manager_account_id)
1416
+ @name = args[:name] if args.key?(:name)
1417
+ @localized_infos = args[:localized_infos] if args.key?(:localized_infos)
1519
1418
  @id = args[:id] if args.key?(:id)
1520
- @comments = args[:comments] if args.key?(:comments)
1521
- @phone_number = args[:phone_number] if args.key?(:phone_number)
1522
- @adwords_customer_id = args[:adwords_customer_id] if args.key?(:adwords_customer_id)
1419
+ @certification_statuses = args[:certification_statuses] if args.key?(:certification_statuses)
1420
+ @public_profile = args[:public_profile] if args.key?(:public_profile)
1421
+ @primary_location = args[:primary_location] if args.key?(:primary_location)
1422
+ @services = args[:services] if args.key?(:services)
1423
+ @original_min_monthly_budget = args[:original_min_monthly_budget] if args.key?(:original_min_monthly_budget)
1424
+ @ranks = args[:ranks] if args.key?(:ranks)
1425
+ @badge_tier = args[:badge_tier] if args.key?(:badge_tier)
1426
+ @specialization_status = args[:specialization_status] if args.key?(:specialization_status)
1427
+ @company_types = args[:company_types] if args.key?(:company_types)
1428
+ @auto_approval_email_domains = args[:auto_approval_email_domains] if args.key?(:auto_approval_email_domains)
1429
+ @primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code)
1430
+ @profile_status = args[:profile_status] if args.key?(:profile_status)
1523
1431
  end
1524
1432
  end
1525
1433
 
1526
- # Debug information about this request.
1527
- class DebugInfo
1434
+ # Response message for CreateLead.
1435
+ class CreateLeadResponse
1528
1436
  include Google::Apis::Core::Hashable
1529
1437
 
1530
- # Info about the server that serviced this request.
1531
- # Corresponds to the JSON property `serverInfo`
1532
- # @return [String]
1533
- attr_accessor :server_info
1438
+ # A lead resource that represents an advertiser contact for a `Company`. These
1439
+ # are usually generated via Google Partner Search (the advertiser portal).
1440
+ # Corresponds to the JSON property `lead`
1441
+ # @return [Google::Apis::PartnersV2::Lead]
1442
+ attr_accessor :lead
1534
1443
 
1535
- # Server-side debug stack trace.
1536
- # Corresponds to the JSON property `serverTraceInfo`
1444
+ # The outcome of <a href="https://www.google.com/recaptcha/">reCaptcha</a>
1445
+ # validation.
1446
+ # Corresponds to the JSON property `recaptchaStatus`
1537
1447
  # @return [String]
1538
- attr_accessor :server_trace_info
1448
+ attr_accessor :recaptcha_status
1539
1449
 
1540
- # URL of the service that handled this request.
1541
- # Corresponds to the JSON property `serviceUrl`
1542
- # @return [String]
1543
- attr_accessor :service_url
1450
+ # Common data that is in each API response.
1451
+ # Corresponds to the JSON property `responseMetadata`
1452
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
1453
+ attr_accessor :response_metadata
1544
1454
 
1545
1455
  def initialize(**args)
1546
1456
  update!(**args)
@@ -1548,21 +1458,21 @@ module Google
1548
1458
 
1549
1459
  # Update properties of this object
1550
1460
  def update!(**args)
1551
- @server_info = args[:server_info] if args.key?(:server_info)
1552
- @server_trace_info = args[:server_trace_info] if args.key?(:server_trace_info)
1553
- @service_url = args[:service_url] if args.key?(:service_url)
1461
+ @lead = args[:lead] if args.key?(:lead)
1462
+ @recaptcha_status = args[:recaptcha_status] if args.key?(:recaptcha_status)
1463
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1554
1464
  end
1555
1465
  end
1556
1466
 
1557
- # Response message for
1558
- # ListUserStates.
1559
- class ListUserStatesResponse
1467
+ # Response message for GetCompany.
1468
+ class GetCompanyResponse
1560
1469
  include Google::Apis::Core::Hashable
1561
1470
 
1562
- # User's states.
1563
- # Corresponds to the JSON property `userStates`
1564
- # @return [Array<String>]
1565
- attr_accessor :user_states
1471
+ # A company resource in the Google Partners API. Once certified, it qualifies
1472
+ # for being searched by advertisers.
1473
+ # Corresponds to the JSON property `company`
1474
+ # @return [Google::Apis::PartnersV2::Company]
1475
+ attr_accessor :company
1566
1476
 
1567
1477
  # Common data that is in each API response.
1568
1478
  # Corresponds to the JSON property `responseMetadata`
@@ -1575,95 +1485,104 @@ module Google
1575
1485
 
1576
1486
  # Update properties of this object
1577
1487
  def update!(**args)
1578
- @user_states = args[:user_states] if args.key?(:user_states)
1488
+ @company = args[:company] if args.key?(:company)
1579
1489
  @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1580
1490
  end
1581
1491
  end
1582
1492
 
1583
- # A CompanyRelation resource representing information about a user's
1584
- # affiliation and standing with a company in Partners.
1585
- class CompanyRelation
1493
+ # A location with address and geographic coordinates. May optionally contain a
1494
+ # detailed (multi-field) version of the address.
1495
+ class Location
1586
1496
  include Google::Apis::Core::Hashable
1587
1497
 
1588
- # The state of relationship, in terms of approvals.
1589
- # Corresponds to the JSON property `state`
1590
- # @return [String]
1591
- attr_accessor :state
1592
-
1593
- # The name (in the company's primary language) for the company.
1594
- # Corresponds to the JSON property `name`
1595
- # @return [String]
1596
- attr_accessor :name
1597
-
1598
- # The AdWords manager account # associated this company.
1599
- # Corresponds to the JSON property `managerAccount`
1600
- # @return [String]
1601
- attr_accessor :manager_account
1602
-
1603
- # The segment the company is classified as.
1604
- # Corresponds to the JSON property `segment`
1498
+ # The following address lines represent the most specific part of any
1499
+ # address.
1500
+ # Corresponds to the JSON property `addressLine`
1605
1501
  # @return [Array<String>]
1606
- attr_accessor :segment
1607
-
1608
- # The list of Google Partners specialization statuses for the company.
1609
- # Corresponds to the JSON property `specializationStatus`
1610
- # @return [Array<Google::Apis::PartnersV2::SpecializationStatus>]
1611
- attr_accessor :specialization_status
1502
+ attr_accessor :address_line
1612
1503
 
1613
- # Whether the company is a Partner.
1614
- # Corresponds to the JSON property `badgeTier`
1504
+ # Generally refers to the city/town portion of an address.
1505
+ # Corresponds to the JSON property `locality`
1615
1506
  # @return [String]
1616
- attr_accessor :badge_tier
1507
+ attr_accessor :locality
1617
1508
 
1618
- # The website URL for this company.
1619
- # Corresponds to the JSON property `website`
1509
+ # Top-level administrative subdivision of this country.
1510
+ # Corresponds to the JSON property `administrativeArea`
1620
1511
  # @return [String]
1621
- attr_accessor :website
1512
+ attr_accessor :administrative_area
1622
1513
 
1623
- # The phone number for the company's primary address.
1624
- # Corresponds to the JSON property `phoneNumber`
1625
- # @return [String]
1626
- attr_accessor :phone_number
1514
+ # An object representing a latitude/longitude pair. This is expressed as a pair
1515
+ # of doubles representing degrees latitude and degrees longitude. Unless
1516
+ # specified otherwise, this must conform to the
1517
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
1518
+ # standard</a>. Values must be within normalized ranges.
1519
+ # Example of normalization code in Python:
1520
+ # def NormalizeLongitude(longitude):
1521
+ # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
1522
+ # q, r = divmod(longitude, 360.0)
1523
+ # if r > 180.0 or (r == 180.0 and q <= -1.0):
1524
+ # return r - 360.0
1525
+ # return r
1526
+ # def NormalizeLatLng(latitude, longitude):
1527
+ # """Wraps decimal degrees latitude and longitude to
1528
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
1529
+ # r = latitude % 360.0
1530
+ # if r <= 90.0:
1531
+ # return r, NormalizeLongitude(longitude)
1532
+ # elif r >= 270.0:
1533
+ # return r - 360, NormalizeLongitude(longitude)
1534
+ # else:
1535
+ # return 180 - r, NormalizeLongitude(longitude + 180.0)
1536
+ # assert 180.0 == NormalizeLongitude(180.0)
1537
+ # assert -180.0 == NormalizeLongitude(-180.0)
1538
+ # assert -179.0 == NormalizeLongitude(181.0)
1539
+ # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
1540
+ # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
1541
+ # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
1542
+ # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
1543
+ # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
1544
+ # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
1545
+ # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
1546
+ # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
1547
+ # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
1548
+ # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
1549
+ # The code in logs/storage/validator/logs_validator_traits.cc treats this type
1550
+ # as if it were annotated as ST_LOCATION.
1551
+ # Corresponds to the JSON property `latLng`
1552
+ # @return [Google::Apis::PartnersV2::LatLng]
1553
+ attr_accessor :lat_lng
1627
1554
 
1628
- # The ID of the company. There may be no id if this is a
1629
- # pending company.5
1630
- # Corresponds to the JSON property `companyId`
1555
+ # The single string version of the address.
1556
+ # Corresponds to the JSON property `address`
1631
1557
  # @return [String]
1632
- attr_accessor :company_id
1558
+ attr_accessor :address
1633
1559
 
1634
- # A URL to a profile photo, e.g. a G+ profile photo.
1635
- # Corresponds to the JSON property `logoUrl`
1560
+ # CLDR (Common Locale Data Repository) region code .
1561
+ # Corresponds to the JSON property `regionCode`
1636
1562
  # @return [String]
1637
- attr_accessor :logo_url
1563
+ attr_accessor :region_code
1638
1564
 
1639
- # The timestamp when the user was approved.
1640
- # @OutputOnly
1641
- # Corresponds to the JSON property `resolvedTimestamp`
1565
+ # Dependent locality or sublocality. Used for UK dependent localities, or
1566
+ # neighborhoods or boroughs in other locations.
1567
+ # Corresponds to the JSON property `dependentLocality`
1642
1568
  # @return [String]
1643
- attr_accessor :resolved_timestamp
1644
-
1645
- # Indicates if the user is an admin for this company.
1646
- # Corresponds to the JSON property `companyAdmin`
1647
- # @return [Boolean]
1648
- attr_accessor :company_admin
1649
- alias_method :company_admin?, :company_admin
1569
+ attr_accessor :dependent_locality
1650
1570
 
1651
- # The primary address for this company.
1652
- # Corresponds to the JSON property `address`
1571
+ # Values are frequently alphanumeric.
1572
+ # Corresponds to the JSON property `postalCode`
1653
1573
  # @return [String]
1654
- attr_accessor :address
1574
+ attr_accessor :postal_code
1655
1575
 
1656
- # The flag that indicates if the company is pending verification.
1657
- # Corresponds to the JSON property `isPending`
1658
- # @return [Boolean]
1659
- attr_accessor :is_pending
1660
- alias_method :is_pending?, :is_pending
1576
+ # Use of this code is very country-specific, but will refer to a secondary
1577
+ # classification code for sorting mail.
1578
+ # Corresponds to the JSON property `sortingCode`
1579
+ # @return [String]
1580
+ attr_accessor :sorting_code
1661
1581
 
1662
- # The timestamp of when affiliation was requested.
1663
- # @OutputOnly
1664
- # Corresponds to the JSON property `creationTime`
1582
+ # Language code of the address. Should be in BCP 47 format.
1583
+ # Corresponds to the JSON property `languageCode`
1665
1584
  # @return [String]
1666
- attr_accessor :creation_time
1585
+ attr_accessor :language_code
1667
1586
 
1668
1587
  def initialize(**args)
1669
1588
  update!(**args)
@@ -1671,99 +1590,62 @@ module Google
1671
1590
 
1672
1591
  # Update properties of this object
1673
1592
  def update!(**args)
1674
- @state = args[:state] if args.key?(:state)
1675
- @name = args[:name] if args.key?(:name)
1676
- @manager_account = args[:manager_account] if args.key?(:manager_account)
1677
- @segment = args[:segment] if args.key?(:segment)
1678
- @specialization_status = args[:specialization_status] if args.key?(:specialization_status)
1679
- @badge_tier = args[:badge_tier] if args.key?(:badge_tier)
1680
- @website = args[:website] if args.key?(:website)
1681
- @phone_number = args[:phone_number] if args.key?(:phone_number)
1682
- @company_id = args[:company_id] if args.key?(:company_id)
1683
- @logo_url = args[:logo_url] if args.key?(:logo_url)
1684
- @resolved_timestamp = args[:resolved_timestamp] if args.key?(:resolved_timestamp)
1685
- @company_admin = args[:company_admin] if args.key?(:company_admin)
1593
+ @address_line = args[:address_line] if args.key?(:address_line)
1594
+ @locality = args[:locality] if args.key?(:locality)
1595
+ @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
1596
+ @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
1686
1597
  @address = args[:address] if args.key?(:address)
1687
- @is_pending = args[:is_pending] if args.key?(:is_pending)
1688
- @creation_time = args[:creation_time] if args.key?(:creation_time)
1689
- end
1690
- end
1691
-
1692
- # Represents a whole calendar date, e.g. date of birth. The time of day and
1693
- # time zone are either specified elsewhere or are not significant. The date
1694
- # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
1695
- # represent a year and month where the day is not significant, e.g. credit card
1696
- # expiration date. The year may be 0 to represent a month and day independent
1697
- # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
1698
- # and `google.protobuf.Timestamp`.
1699
- class Date
1700
- include Google::Apis::Core::Hashable
1701
-
1702
- # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
1703
- # a year.
1704
- # Corresponds to the JSON property `year`
1705
- # @return [Fixnum]
1706
- attr_accessor :year
1707
-
1708
- # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
1709
- # if specifying a year/month where the day is not significant.
1710
- # Corresponds to the JSON property `day`
1711
- # @return [Fixnum]
1712
- attr_accessor :day
1713
-
1714
- # Month of year. Must be from 1 to 12.
1715
- # Corresponds to the JSON property `month`
1716
- # @return [Fixnum]
1717
- attr_accessor :month
1718
-
1719
- def initialize(**args)
1720
- update!(**args)
1721
- end
1722
-
1723
- # Update properties of this object
1724
- def update!(**args)
1725
- @year = args[:year] if args.key?(:year)
1726
- @day = args[:day] if args.key?(:day)
1727
- @month = args[:month] if args.key?(:month)
1598
+ @region_code = args[:region_code] if args.key?(:region_code)
1599
+ @dependent_locality = args[:dependent_locality] if args.key?(:dependent_locality)
1600
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
1601
+ @sorting_code = args[:sorting_code] if args.key?(:sorting_code)
1602
+ @language_code = args[:language_code] if args.key?(:language_code)
1728
1603
  end
1729
1604
  end
1730
-
1731
- # A generic empty message that you can re-use to avoid defining duplicated
1732
- # empty messages in your APIs. A typical example is to use it as the request
1733
- # or the response type of an API method. For instance:
1734
- # service Foo `
1735
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1736
- # `
1737
- # The JSON representation for `Empty` is empty JSON object ````.
1738
- class Empty
1605
+
1606
+ # Status for a Google Partners certification exam.
1607
+ class CertificationExamStatus
1739
1608
  include Google::Apis::Core::Hashable
1740
1609
 
1610
+ # The number of people who have passed the certification exam.
1611
+ # Corresponds to the JSON property `numberUsersPass`
1612
+ # @return [Fixnum]
1613
+ attr_accessor :number_users_pass
1614
+
1615
+ # The type of certification exam.
1616
+ # Corresponds to the JSON property `type`
1617
+ # @return [String]
1618
+ attr_accessor :type
1619
+
1741
1620
  def initialize(**args)
1742
1621
  update!(**args)
1743
1622
  end
1744
1623
 
1745
1624
  # Update properties of this object
1746
1625
  def update!(**args)
1626
+ @number_users_pass = args[:number_users_pass] if args.key?(:number_users_pass)
1627
+ @type = args[:type] if args.key?(:type)
1747
1628
  end
1748
1629
  end
1749
1630
 
1750
- # Source of traffic for the current request.
1751
- class TrafficSource
1631
+ # A token that allows a user to take an exam.
1632
+ class ExamToken
1752
1633
  include Google::Apis::Core::Hashable
1753
1634
 
1754
- # Identifier to indicate where the traffic comes from.
1755
- # An identifier has multiple letters created by a team which redirected the
1756
- # traffic to us.
1757
- # Corresponds to the JSON property `trafficSourceId`
1635
+ # The id of the exam the token is for.
1636
+ # Corresponds to the JSON property `examId`
1637
+ # @return [Fixnum]
1638
+ attr_accessor :exam_id
1639
+
1640
+ # The token, only present if the user has access to the exam.
1641
+ # Corresponds to the JSON property `token`
1758
1642
  # @return [String]
1759
- attr_accessor :traffic_source_id
1643
+ attr_accessor :token
1760
1644
 
1761
- # Second level identifier to indicate where the traffic comes from.
1762
- # An identifier has multiple letters created by a team which redirected the
1763
- # traffic to us.
1764
- # Corresponds to the JSON property `trafficSubId`
1645
+ # The type of the exam the token belongs to.
1646
+ # Corresponds to the JSON property `examType`
1765
1647
  # @return [String]
1766
- attr_accessor :traffic_sub_id
1648
+ attr_accessor :exam_type
1767
1649
 
1768
1650
  def initialize(**args)
1769
1651
  update!(**args)
@@ -1771,40 +1653,47 @@ module Google
1771
1653
 
1772
1654
  # Update properties of this object
1773
1655
  def update!(**args)
1774
- @traffic_source_id = args[:traffic_source_id] if args.key?(:traffic_source_id)
1775
- @traffic_sub_id = args[:traffic_sub_id] if args.key?(:traffic_sub_id)
1656
+ @exam_id = args[:exam_id] if args.key?(:exam_id)
1657
+ @token = args[:token] if args.key?(:token)
1658
+ @exam_type = args[:exam_type] if args.key?(:exam_type)
1776
1659
  end
1777
1660
  end
1778
1661
 
1779
- # Common data that is in each API request.
1780
- class RequestMetadata
1662
+ # A set of opt-ins for a user.
1663
+ class OptIns
1781
1664
  include Google::Apis::Core::Hashable
1782
1665
 
1783
- # Locale to use for the current request.
1784
- # Corresponds to the JSON property `locale`
1785
- # @return [String]
1786
- attr_accessor :locale
1666
+ # An opt-in to receive special promotional gifts and material in the mail.
1667
+ # Corresponds to the JSON property `physicalMail`
1668
+ # @return [Boolean]
1669
+ attr_accessor :physical_mail
1670
+ alias_method :physical_mail?, :physical_mail
1787
1671
 
1788
- # Values to use instead of the user's respective defaults. These are only
1789
- # honored by whitelisted products.
1790
- # Corresponds to the JSON property `userOverrides`
1791
- # @return [Google::Apis::PartnersV2::UserOverrides]
1792
- attr_accessor :user_overrides
1672
+ # An opt-in to allow recieivng phone calls about their Partners account.
1673
+ # Corresponds to the JSON property `phoneContact`
1674
+ # @return [Boolean]
1675
+ attr_accessor :phone_contact
1676
+ alias_method :phone_contact?, :phone_contact
1793
1677
 
1794
- # Google Partners session ID.
1795
- # Corresponds to the JSON property `partnersSessionId`
1796
- # @return [String]
1797
- attr_accessor :partners_session_id
1678
+ # An opt-in about receiving email from Partners marketing teams. Includes
1679
+ # member-only events and special promotional offers for Google products.
1680
+ # Corresponds to the JSON property `marketComm`
1681
+ # @return [Boolean]
1682
+ attr_accessor :market_comm
1683
+ alias_method :market_comm?, :market_comm
1798
1684
 
1799
- # Experiment IDs the current request belongs to.
1800
- # Corresponds to the JSON property `experimentIds`
1801
- # @return [Array<String>]
1802
- attr_accessor :experiment_ids
1685
+ # An opt-in about receiving email regarding new features and products.
1686
+ # Corresponds to the JSON property `specialOffers`
1687
+ # @return [Boolean]
1688
+ attr_accessor :special_offers
1689
+ alias_method :special_offers?, :special_offers
1803
1690
 
1804
- # Source of traffic for the current request.
1805
- # Corresponds to the JSON property `trafficSource`
1806
- # @return [Google::Apis::PartnersV2::TrafficSource]
1807
- attr_accessor :traffic_source
1691
+ # An opt-in about receiving email with customized AdWords campaign management
1692
+ # tips.
1693
+ # Corresponds to the JSON property `performanceSuggestions`
1694
+ # @return [Boolean]
1695
+ attr_accessor :performance_suggestions
1696
+ alias_method :performance_suggestions?, :performance_suggestions
1808
1697
 
1809
1698
  def initialize(**args)
1810
1699
  update!(**args)
@@ -1812,33 +1701,27 @@ module Google
1812
1701
 
1813
1702
  # Update properties of this object
1814
1703
  def update!(**args)
1815
- @locale = args[:locale] if args.key?(:locale)
1816
- @user_overrides = args[:user_overrides] if args.key?(:user_overrides)
1817
- @partners_session_id = args[:partners_session_id] if args.key?(:partners_session_id)
1818
- @experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids)
1819
- @traffic_source = args[:traffic_source] if args.key?(:traffic_source)
1704
+ @physical_mail = args[:physical_mail] if args.key?(:physical_mail)
1705
+ @phone_contact = args[:phone_contact] if args.key?(:phone_contact)
1706
+ @market_comm = args[:market_comm] if args.key?(:market_comm)
1707
+ @special_offers = args[:special_offers] if args.key?(:special_offers)
1708
+ @performance_suggestions = args[:performance_suggestions] if args.key?(:performance_suggestions)
1820
1709
  end
1821
1710
  end
1822
1711
 
1823
- # Request message for CreateLead.
1824
- class CreateLeadRequest
1712
+ # Information related to ranking of results.
1713
+ class Rank
1825
1714
  include Google::Apis::Core::Hashable
1826
1715
 
1827
- # A lead resource that represents an advertiser contact for a `Company`. These
1828
- # are usually generated via Google Partner Search (the advertiser portal).
1829
- # Corresponds to the JSON property `lead`
1830
- # @return [Google::Apis::PartnersV2::Lead]
1831
- attr_accessor :lead
1832
-
1833
- # <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info.
1834
- # Corresponds to the JSON property `recaptchaChallenge`
1835
- # @return [Google::Apis::PartnersV2::RecaptchaChallenge]
1836
- attr_accessor :recaptcha_challenge
1716
+ # The numerical value of the rank.
1717
+ # Corresponds to the JSON property `value`
1718
+ # @return [Float]
1719
+ attr_accessor :value
1837
1720
 
1838
- # Common data that is in each API request.
1839
- # Corresponds to the JSON property `requestMetadata`
1840
- # @return [Google::Apis::PartnersV2::RequestMetadata]
1841
- attr_accessor :request_metadata
1721
+ # The type of rank.
1722
+ # Corresponds to the JSON property `type`
1723
+ # @return [String]
1724
+ attr_accessor :type
1842
1725
 
1843
1726
  def initialize(**args)
1844
1727
  update!(**args)
@@ -1846,72 +1729,88 @@ module Google
1846
1729
 
1847
1730
  # Update properties of this object
1848
1731
  def update!(**args)
1849
- @lead = args[:lead] if args.key?(:lead)
1850
- @recaptcha_challenge = args[:recaptcha_challenge] if args.key?(:recaptcha_challenge)
1851
- @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
1732
+ @value = args[:value] if args.key?(:value)
1733
+ @type = args[:type] if args.key?(:type)
1852
1734
  end
1853
1735
  end
1854
1736
 
1855
- # Key value data pair for an event.
1856
- class EventData
1737
+ # The profile information of a Partners user.
1738
+ class UserProfile
1857
1739
  include Google::Apis::Core::Hashable
1858
1740
 
1859
- # Data values.
1860
- # Corresponds to the JSON property `values`
1741
+ # A location with address and geographic coordinates. May optionally contain a
1742
+ # detailed (multi-field) version of the address.
1743
+ # Corresponds to the JSON property `address`
1744
+ # @return [Google::Apis::PartnersV2::Location]
1745
+ attr_accessor :address
1746
+
1747
+ # A list of ids representing which industries the user selected.
1748
+ # Corresponds to the JSON property `industries`
1861
1749
  # @return [Array<String>]
1862
- attr_accessor :values
1750
+ attr_accessor :industries
1863
1751
 
1864
- # Data type.
1865
- # Corresponds to the JSON property `key`
1866
- # @return [String]
1867
- attr_accessor :key
1752
+ # The list of languages this user understands.
1753
+ # Corresponds to the JSON property `languages`
1754
+ # @return [Array<String>]
1755
+ attr_accessor :languages
1868
1756
 
1869
- def initialize(**args)
1870
- update!(**args)
1871
- end
1757
+ # The user's family name.
1758
+ # Corresponds to the JSON property `familyName`
1759
+ # @return [String]
1760
+ attr_accessor :family_name
1872
1761
 
1873
- # Update properties of this object
1874
- def update!(**args)
1875
- @values = args[:values] if args.key?(:values)
1876
- @key = args[:key] if args.key?(:key)
1877
- end
1878
- end
1762
+ # A set of opt-ins for a user.
1763
+ # Corresponds to the JSON property `emailOptIns`
1764
+ # @return [Google::Apis::PartnersV2::OptIns]
1765
+ attr_accessor :email_opt_ins
1879
1766
 
1880
- # A user's information on a specific exam.
1881
- class ExamStatus
1882
- include Google::Apis::Core::Hashable
1767
+ # A list of ids representing which markets the user was interested in.
1768
+ # Corresponds to the JSON property `markets`
1769
+ # @return [Array<String>]
1770
+ attr_accessor :markets
1883
1771
 
1884
- # Whether this exam is in the state of warning.
1885
- # Corresponds to the JSON property `warning`
1886
- # @return [Boolean]
1887
- attr_accessor :warning
1888
- alias_method :warning?, :warning
1772
+ # If the user has edit access to multiple accounts, the user can choose the
1773
+ # preferred account and it is used when a personal account is needed. Can
1774
+ # be empty.
1775
+ # Corresponds to the JSON property `adwordsManagerAccount`
1776
+ # @return [Fixnum]
1777
+ attr_accessor :adwords_manager_account
1889
1778
 
1890
- # Date this exam is due to expire.
1891
- # Corresponds to the JSON property `expiration`
1779
+ # The user's phone number.
1780
+ # Corresponds to the JSON property `phoneNumber`
1892
1781
  # @return [String]
1893
- attr_accessor :expiration
1782
+ attr_accessor :phone_number
1894
1783
 
1895
- # The date the user last passed this exam.
1896
- # Corresponds to the JSON property `lastPassed`
1784
+ # The user's primary country, an ISO 2-character code.
1785
+ # Corresponds to the JSON property `primaryCountryCode`
1897
1786
  # @return [String]
1898
- attr_accessor :last_passed
1787
+ attr_accessor :primary_country_code
1899
1788
 
1900
- # The type of the exam.
1901
- # Corresponds to the JSON property `examType`
1789
+ # The email address the user has selected on the Partners site as primary.
1790
+ # Corresponds to the JSON property `emailAddress`
1902
1791
  # @return [String]
1903
- attr_accessor :exam_type
1792
+ attr_accessor :email_address
1904
1793
 
1905
- # Whether this exam has been passed and not expired.
1906
- # Corresponds to the JSON property `passed`
1794
+ # Whether the user's public profile is visible to anyone with the URL.
1795
+ # Corresponds to the JSON property `profilePublic`
1907
1796
  # @return [Boolean]
1908
- attr_accessor :passed
1909
- alias_method :passed?, :passed
1797
+ attr_accessor :profile_public
1798
+ alias_method :profile_public?, :profile_public
1910
1799
 
1911
- # The date the user last taken this exam.
1912
- # Corresponds to the JSON property `taken`
1800
+ # A list of ids representing which channels the user selected they were in.
1801
+ # Corresponds to the JSON property `channels`
1802
+ # @return [Array<String>]
1803
+ attr_accessor :channels
1804
+
1805
+ # A list of ids represnting which job categories the user selected.
1806
+ # Corresponds to the JSON property `jobFunctions`
1807
+ # @return [Array<String>]
1808
+ attr_accessor :job_functions
1809
+
1810
+ # The user's given name.
1811
+ # Corresponds to the JSON property `givenName`
1913
1812
  # @return [String]
1914
- attr_accessor :taken
1813
+ attr_accessor :given_name
1915
1814
 
1916
1815
  def initialize(**args)
1917
1816
  update!(**args)
@@ -1919,17 +1818,26 @@ module Google
1919
1818
 
1920
1819
  # Update properties of this object
1921
1820
  def update!(**args)
1922
- @warning = args[:warning] if args.key?(:warning)
1923
- @expiration = args[:expiration] if args.key?(:expiration)
1924
- @last_passed = args[:last_passed] if args.key?(:last_passed)
1925
- @exam_type = args[:exam_type] if args.key?(:exam_type)
1926
- @passed = args[:passed] if args.key?(:passed)
1927
- @taken = args[:taken] if args.key?(:taken)
1821
+ @address = args[:address] if args.key?(:address)
1822
+ @industries = args[:industries] if args.key?(:industries)
1823
+ @languages = args[:languages] if args.key?(:languages)
1824
+ @family_name = args[:family_name] if args.key?(:family_name)
1825
+ @email_opt_ins = args[:email_opt_ins] if args.key?(:email_opt_ins)
1826
+ @markets = args[:markets] if args.key?(:markets)
1827
+ @adwords_manager_account = args[:adwords_manager_account] if args.key?(:adwords_manager_account)
1828
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
1829
+ @primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code)
1830
+ @email_address = args[:email_address] if args.key?(:email_address)
1831
+ @profile_public = args[:profile_public] if args.key?(:profile_public)
1832
+ @channels = args[:channels] if args.key?(:channels)
1833
+ @job_functions = args[:job_functions] if args.key?(:job_functions)
1834
+ @given_name = args[:given_name] if args.key?(:given_name)
1928
1835
  end
1929
1836
  end
1930
1837
 
1931
- # Response for ListOffer.
1932
- class ListOffersResponse
1838
+ # Response message for
1839
+ # GetPartnersStatus.
1840
+ class GetPartnersStatusResponse
1933
1841
  include Google::Apis::Core::Hashable
1934
1842
 
1935
1843
  # Common data that is in each API response.
@@ -1937,16 +1845,6 @@ module Google
1937
1845
  # @return [Google::Apis::PartnersV2::ResponseMetadata]
1938
1846
  attr_accessor :response_metadata
1939
1847
 
1940
- # Reason why no Offers are available.
1941
- # Corresponds to the JSON property `noOfferReason`
1942
- # @return [String]
1943
- attr_accessor :no_offer_reason
1944
-
1945
- # Available Offers to be distributed.
1946
- # Corresponds to the JSON property `availableOffers`
1947
- # @return [Array<Google::Apis::PartnersV2::AvailableOffer>]
1948
- attr_accessor :available_offers
1949
-
1950
1848
  def initialize(**args)
1951
1849
  update!(**args)
1952
1850
  end
@@ -1954,31 +1852,69 @@ module Google
1954
1852
  # Update properties of this object
1955
1853
  def update!(**args)
1956
1854
  @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1957
- @no_offer_reason = args[:no_offer_reason] if args.key?(:no_offer_reason)
1958
- @available_offers = args[:available_offers] if args.key?(:available_offers)
1959
1855
  end
1960
1856
  end
1961
1857
 
1962
- # Offer info by country.
1963
- class CountryOfferInfo
1858
+ # Historical information about a Google Partners Offer.
1859
+ class HistoricalOffer
1964
1860
  include Google::Apis::Core::Hashable
1965
1861
 
1966
- # (localized) Get Y amount for that country's offer.
1967
- # Corresponds to the JSON property `getYAmount`
1862
+ # Name (First + Last) of the partners user to whom the incentive is allocated.
1863
+ # Corresponds to the JSON property `senderName`
1968
1864
  # @return [String]
1969
- attr_accessor :get_y_amount
1865
+ attr_accessor :sender_name
1970
1866
 
1971
- # Country code for which offer codes may be requested.
1867
+ # Country Code for the offer country.
1972
1868
  # Corresponds to the JSON property `offerCountryCode`
1973
1869
  # @return [String]
1974
1870
  attr_accessor :offer_country_code
1975
1871
 
1976
- # (localized) Spend X amount for that country's offer.
1977
- # Corresponds to the JSON property `spendXAmount`
1872
+ # Time this offer expires.
1873
+ # Corresponds to the JSON property `expirationTime`
1978
1874
  # @return [String]
1979
- attr_accessor :spend_x_amount
1875
+ attr_accessor :expiration_time
1980
1876
 
1981
- # Type of offer country is eligible for.
1877
+ # Offer code.
1878
+ # Corresponds to the JSON property `offerCode`
1879
+ # @return [String]
1880
+ attr_accessor :offer_code
1881
+
1882
+ # Time offer was first created.
1883
+ # Corresponds to the JSON property `creationTime`
1884
+ # @return [String]
1885
+ attr_accessor :creation_time
1886
+
1887
+ # Email address for client.
1888
+ # Corresponds to the JSON property `clientEmail`
1889
+ # @return [String]
1890
+ attr_accessor :client_email
1891
+
1892
+ # Status of the offer.
1893
+ # Corresponds to the JSON property `status`
1894
+ # @return [String]
1895
+ attr_accessor :status
1896
+
1897
+ # ID of client.
1898
+ # Corresponds to the JSON property `clientId`
1899
+ # @return [Fixnum]
1900
+ attr_accessor :client_id
1901
+
1902
+ # Name of the client.
1903
+ # Corresponds to the JSON property `clientName`
1904
+ # @return [String]
1905
+ attr_accessor :client_name
1906
+
1907
+ # Time last action was taken.
1908
+ # Corresponds to the JSON property `lastModifiedTime`
1909
+ # @return [String]
1910
+ attr_accessor :last_modified_time
1911
+
1912
+ # Client's AdWords page URL.
1913
+ # Corresponds to the JSON property `adwordsUrl`
1914
+ # @return [String]
1915
+ attr_accessor :adwords_url
1916
+
1917
+ # Type of offer.
1982
1918
  # Corresponds to the JSON property `offerType`
1983
1919
  # @return [String]
1984
1920
  attr_accessor :offer_type
@@ -1989,36 +1925,35 @@ module Google
1989
1925
 
1990
1926
  # Update properties of this object
1991
1927
  def update!(**args)
1992
- @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount)
1928
+ @sender_name = args[:sender_name] if args.key?(:sender_name)
1993
1929
  @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code)
1994
- @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount)
1930
+ @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
1931
+ @offer_code = args[:offer_code] if args.key?(:offer_code)
1932
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
1933
+ @client_email = args[:client_email] if args.key?(:client_email)
1934
+ @status = args[:status] if args.key?(:status)
1935
+ @client_id = args[:client_id] if args.key?(:client_id)
1936
+ @client_name = args[:client_name] if args.key?(:client_name)
1937
+ @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
1938
+ @adwords_url = args[:adwords_url] if args.key?(:adwords_url)
1995
1939
  @offer_type = args[:offer_type] if args.key?(:offer_type)
1996
1940
  end
1997
1941
  end
1998
1942
 
1999
- # Response message for
2000
- # ListCompanies.
2001
- class ListCompaniesResponse
1943
+ # Values to use instead of the user's respective defaults. These are only
1944
+ # honored by whitelisted products.
1945
+ class UserOverrides
2002
1946
  include Google::Apis::Core::Hashable
2003
1947
 
2004
- # A token to retrieve next page of results.
2005
- # Pass this value in the `ListCompaniesRequest.page_token` field in the
2006
- # subsequent call to
2007
- # ListCompanies to retrieve the
2008
- # next page of results.
2009
- # Corresponds to the JSON property `nextPageToken`
1948
+ # Logged-in user ID to impersonate instead of the user's ID.
1949
+ # Corresponds to the JSON property `userId`
2010
1950
  # @return [String]
2011
- attr_accessor :next_page_token
2012
-
2013
- # Common data that is in each API response.
2014
- # Corresponds to the JSON property `responseMetadata`
2015
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
2016
- attr_accessor :response_metadata
1951
+ attr_accessor :user_id
2017
1952
 
2018
- # The list of companies.
2019
- # Corresponds to the JSON property `companies`
2020
- # @return [Array<Google::Apis::PartnersV2::Company>]
2021
- attr_accessor :companies
1953
+ # IP address to use instead of the user's geo-located IP address.
1954
+ # Corresponds to the JSON property `ipAddress`
1955
+ # @return [String]
1956
+ attr_accessor :ip_address
2022
1957
 
2023
1958
  def initialize(**args)
2024
1959
  update!(**args)
@@ -2026,60 +1961,123 @@ module Google
2026
1961
 
2027
1962
  # Update properties of this object
2028
1963
  def update!(**args)
2029
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2030
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
2031
- @companies = args[:companies] if args.key?(:companies)
1964
+ @user_id = args[:user_id] if args.key?(:user_id)
1965
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
2032
1966
  end
2033
1967
  end
2034
1968
 
2035
- # Customers qualified for an offer.
2036
- class OfferCustomer
1969
+ # Request message for
1970
+ # LogUserEvent.
1971
+ class LogUserEventRequest
2037
1972
  include Google::Apis::Core::Hashable
2038
1973
 
2039
- # Formatted Spend X amount with currency code.
2040
- # Corresponds to the JSON property `spendXAmount`
1974
+ # The category the action belongs to.
1975
+ # Corresponds to the JSON property `eventCategory`
2041
1976
  # @return [String]
2042
- attr_accessor :spend_x_amount
1977
+ attr_accessor :event_category
2043
1978
 
2044
- # URL to the customer's AdWords page.
2045
- # Corresponds to the JSON property `adwordsUrl`
2046
- # @return [String]
2047
- attr_accessor :adwords_url
1979
+ # A lead resource that represents an advertiser contact for a `Company`. These
1980
+ # are usually generated via Google Partner Search (the advertiser portal).
1981
+ # Corresponds to the JSON property `lead`
1982
+ # @return [Google::Apis::PartnersV2::Lead]
1983
+ attr_accessor :lead
2048
1984
 
2049
- # Country code of the customer.
2050
- # Corresponds to the JSON property `countryCode`
1985
+ # The action that occurred.
1986
+ # Corresponds to the JSON property `eventAction`
2051
1987
  # @return [String]
2052
- attr_accessor :country_code
1988
+ attr_accessor :event_action
2053
1989
 
2054
- # External CID for the customer.
2055
- # Corresponds to the JSON property `externalCid`
1990
+ # The URL where the event occurred.
1991
+ # Corresponds to the JSON property `url`
2056
1992
  # @return [String]
2057
- attr_accessor :external_cid
1993
+ attr_accessor :url
2058
1994
 
2059
- # Time the customer was created.
2060
- # Corresponds to the JSON property `creationTime`
1995
+ # Common data that is in each API request.
1996
+ # Corresponds to the JSON property `requestMetadata`
1997
+ # @return [Google::Apis::PartnersV2::RequestMetadata]
1998
+ attr_accessor :request_metadata
1999
+
2000
+ # List of event data for the event.
2001
+ # Corresponds to the JSON property `eventDatas`
2002
+ # @return [Array<Google::Apis::PartnersV2::EventData>]
2003
+ attr_accessor :event_datas
2004
+
2005
+ # The scope of the event.
2006
+ # Corresponds to the JSON property `eventScope`
2061
2007
  # @return [String]
2062
- attr_accessor :creation_time
2008
+ attr_accessor :event_scope
2063
2009
 
2064
- # Days the customer is still eligible.
2065
- # Corresponds to the JSON property `eligibilityDaysLeft`
2010
+ def initialize(**args)
2011
+ update!(**args)
2012
+ end
2013
+
2014
+ # Update properties of this object
2015
+ def update!(**args)
2016
+ @event_category = args[:event_category] if args.key?(:event_category)
2017
+ @lead = args[:lead] if args.key?(:lead)
2018
+ @event_action = args[:event_action] if args.key?(:event_action)
2019
+ @url = args[:url] if args.key?(:url)
2020
+ @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
2021
+ @event_datas = args[:event_datas] if args.key?(:event_datas)
2022
+ @event_scope = args[:event_scope] if args.key?(:event_scope)
2023
+ end
2024
+ end
2025
+
2026
+ # Details of the analytics events for a `Company` within a single day.
2027
+ class AnalyticsDataPoint
2028
+ include Google::Apis::Core::Hashable
2029
+
2030
+ # Number of times the type of event occurred.
2031
+ # Meaning depends on context (e.g. profile views, contacts, etc.).
2032
+ # Corresponds to the JSON property `eventCount`
2066
2033
  # @return [Fixnum]
2067
- attr_accessor :eligibility_days_left
2034
+ attr_accessor :event_count
2068
2035
 
2069
- # Type of the offer
2070
- # Corresponds to the JSON property `offerType`
2071
- # @return [String]
2072
- attr_accessor :offer_type
2036
+ # Location information of where these events occurred.
2037
+ # Corresponds to the JSON property `eventLocations`
2038
+ # @return [Array<Google::Apis::PartnersV2::LatLng>]
2039
+ attr_accessor :event_locations
2073
2040
 
2074
- # Formatted Get Y amount with currency code.
2075
- # Corresponds to the JSON property `getYAmount`
2076
- # @return [String]
2077
- attr_accessor :get_y_amount
2041
+ def initialize(**args)
2042
+ update!(**args)
2043
+ end
2078
2044
 
2079
- # Name of the customer.
2080
- # Corresponds to the JSON property `name`
2081
- # @return [String]
2082
- attr_accessor :name
2045
+ # Update properties of this object
2046
+ def update!(**args)
2047
+ @event_count = args[:event_count] if args.key?(:event_count)
2048
+ @event_locations = args[:event_locations] if args.key?(:event_locations)
2049
+ end
2050
+ end
2051
+
2052
+ # Analytics data for a `Company` within a single day.
2053
+ class Analytics
2054
+ include Google::Apis::Core::Hashable
2055
+
2056
+ # Details of the analytics events for a `Company` within a single day.
2057
+ # Corresponds to the JSON property `contacts`
2058
+ # @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
2059
+ attr_accessor :contacts
2060
+
2061
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
2062
+ # time zone are either specified elsewhere or are not significant. The date
2063
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
2064
+ # represent a year and month where the day is not significant, e.g. credit card
2065
+ # expiration date. The year may be 0 to represent a month and day independent
2066
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
2067
+ # and `google.protobuf.Timestamp`.
2068
+ # Corresponds to the JSON property `eventDate`
2069
+ # @return [Google::Apis::PartnersV2::Date]
2070
+ attr_accessor :event_date
2071
+
2072
+ # Details of the analytics events for a `Company` within a single day.
2073
+ # Corresponds to the JSON property `profileViews`
2074
+ # @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
2075
+ attr_accessor :profile_views
2076
+
2077
+ # Details of the analytics events for a `Company` within a single day.
2078
+ # Corresponds to the JSON property `searchViews`
2079
+ # @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
2080
+ attr_accessor :search_views
2083
2081
 
2084
2082
  def initialize(**args)
2085
2083
  update!(**args)
@@ -2087,42 +2085,41 @@ module Google
2087
2085
 
2088
2086
  # Update properties of this object
2089
2087
  def update!(**args)
2090
- @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount)
2091
- @adwords_url = args[:adwords_url] if args.key?(:adwords_url)
2092
- @country_code = args[:country_code] if args.key?(:country_code)
2093
- @external_cid = args[:external_cid] if args.key?(:external_cid)
2094
- @creation_time = args[:creation_time] if args.key?(:creation_time)
2095
- @eligibility_days_left = args[:eligibility_days_left] if args.key?(:eligibility_days_left)
2096
- @offer_type = args[:offer_type] if args.key?(:offer_type)
2097
- @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount)
2098
- @name = args[:name] if args.key?(:name)
2088
+ @contacts = args[:contacts] if args.key?(:contacts)
2089
+ @event_date = args[:event_date] if args.key?(:event_date)
2090
+ @profile_views = args[:profile_views] if args.key?(:profile_views)
2091
+ @search_views = args[:search_views] if args.key?(:search_views)
2099
2092
  end
2100
2093
  end
2101
2094
 
2102
- # Google Partners certification status.
2103
- class CertificationStatus
2095
+ # Basic information from a public profile.
2096
+ class PublicProfile
2104
2097
  include Google::Apis::Core::Hashable
2105
2098
 
2106
- # The type of the certification.
2107
- # Corresponds to the JSON property `type`
2099
+ # The ID which can be used to retrieve more details about the public profile.
2100
+ # Corresponds to the JSON property `id`
2108
2101
  # @return [String]
2109
- attr_accessor :type
2102
+ attr_accessor :id
2110
2103
 
2111
- # Number of people who are certified,
2112
- # Corresponds to the JSON property `userCount`
2113
- # @return [Fixnum]
2114
- attr_accessor :user_count
2104
+ # The URL of the public profile.
2105
+ # Corresponds to the JSON property `url`
2106
+ # @return [String]
2107
+ attr_accessor :url
2115
2108
 
2116
- # Whether certification is passing.
2117
- # Corresponds to the JSON property `isCertified`
2118
- # @return [Boolean]
2119
- attr_accessor :is_certified
2120
- alias_method :is_certified?, :is_certified
2109
+ # The URL to the main profile image of the public profile.
2110
+ # Corresponds to the JSON property `profileImage`
2111
+ # @return [String]
2112
+ attr_accessor :profile_image
2121
2113
 
2122
- # List of certification exam statuses.
2123
- # Corresponds to the JSON property `examStatuses`
2124
- # @return [Array<Google::Apis::PartnersV2::CertificationExamStatus>]
2125
- attr_accessor :exam_statuses
2114
+ # The display name of the public profile.
2115
+ # Corresponds to the JSON property `displayName`
2116
+ # @return [String]
2117
+ attr_accessor :display_name
2118
+
2119
+ # The URL to the main display image of the public profile. Being deprecated.
2120
+ # Corresponds to the JSON property `displayImageUrl`
2121
+ # @return [String]
2122
+ attr_accessor :display_image_url
2126
2123
 
2127
2124
  def initialize(**args)
2128
2125
  update!(**args)
@@ -2130,38 +2127,28 @@ module Google
2130
2127
 
2131
2128
  # Update properties of this object
2132
2129
  def update!(**args)
2133
- @type = args[:type] if args.key?(:type)
2134
- @user_count = args[:user_count] if args.key?(:user_count)
2135
- @is_certified = args[:is_certified] if args.key?(:is_certified)
2136
- @exam_statuses = args[:exam_statuses] if args.key?(:exam_statuses)
2130
+ @id = args[:id] if args.key?(:id)
2131
+ @url = args[:url] if args.key?(:url)
2132
+ @profile_image = args[:profile_image] if args.key?(:profile_image)
2133
+ @display_name = args[:display_name] if args.key?(:display_name)
2134
+ @display_image_url = args[:display_image_url] if args.key?(:display_image_url)
2137
2135
  end
2138
2136
  end
2139
2137
 
2140
- # The localized company information.
2141
- class LocalizedCompanyInfo
2138
+ # Information about a particular AdWords Manager Account.
2139
+ # Read more at https://support.google.com/adwords/answer/6139186
2140
+ class AdWordsManagerAccountInfo
2142
2141
  include Google::Apis::Core::Hashable
2143
2142
 
2144
- # Localized display name.
2145
- # Corresponds to the JSON property `displayName`
2146
- # @return [String]
2147
- attr_accessor :display_name
2148
-
2149
- # Language code of the localized company info, as defined by
2150
- # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
2151
- # (IETF BCP 47, "Tags for Identifying Languages").
2152
- # Corresponds to the JSON property `languageCode`
2153
- # @return [String]
2154
- attr_accessor :language_code
2155
-
2156
- # List of country codes for the localized company info.
2157
- # Corresponds to the JSON property `countryCodes`
2158
- # @return [Array<String>]
2159
- attr_accessor :country_codes
2143
+ # The AdWords Manager Account id.
2144
+ # Corresponds to the JSON property `id`
2145
+ # @return [Fixnum]
2146
+ attr_accessor :id
2160
2147
 
2161
- # Localized brief description that the company uses to advertise themselves.
2162
- # Corresponds to the JSON property `overview`
2148
+ # Name of the customer this account represents.
2149
+ # Corresponds to the JSON property `customerName`
2163
2150
  # @return [String]
2164
- attr_accessor :overview
2151
+ attr_accessor :customer_name
2165
2152
 
2166
2153
  def initialize(**args)
2167
2154
  update!(**args)
@@ -2169,22 +2156,19 @@ module Google
2169
2156
 
2170
2157
  # Update properties of this object
2171
2158
  def update!(**args)
2172
- @display_name = args[:display_name] if args.key?(:display_name)
2173
- @language_code = args[:language_code] if args.key?(:language_code)
2174
- @country_codes = args[:country_codes] if args.key?(:country_codes)
2175
- @overview = args[:overview] if args.key?(:overview)
2159
+ @id = args[:id] if args.key?(:id)
2160
+ @customer_name = args[:customer_name] if args.key?(:customer_name)
2176
2161
  end
2177
2162
  end
2178
2163
 
2179
- # Response message for
2180
- # LogUserEvent.
2181
- class LogUserEventResponse
2164
+ # Common data that is in each API response.
2165
+ class ResponseMetadata
2182
2166
  include Google::Apis::Core::Hashable
2183
2167
 
2184
- # Common data that is in each API response.
2185
- # Corresponds to the JSON property `responseMetadata`
2186
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
2187
- attr_accessor :response_metadata
2168
+ # Debug information about this request.
2169
+ # Corresponds to the JSON property `debugInfo`
2170
+ # @return [Google::Apis::PartnersV2::DebugInfo]
2171
+ attr_accessor :debug_info
2188
2172
 
2189
2173
  def initialize(**args)
2190
2174
  update!(**args)
@@ -2192,45 +2176,23 @@ module Google
2192
2176
 
2193
2177
  # Update properties of this object
2194
2178
  def update!(**args)
2195
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
2179
+ @debug_info = args[:debug_info] if args.key?(:debug_info)
2196
2180
  end
2197
2181
  end
2198
2182
 
2199
- # Response for ListOfferHistory.
2200
- class ListOffersHistoryResponse
2183
+ # <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info.
2184
+ class RecaptchaChallenge
2201
2185
  include Google::Apis::Core::Hashable
2202
2186
 
2203
- # True if the user has the option to show entire company history.
2204
- # Corresponds to the JSON property `canShowEntireCompany`
2205
- # @return [Boolean]
2206
- attr_accessor :can_show_entire_company
2207
- alias_method :can_show_entire_company?, :can_show_entire_company
2208
-
2209
- # Number of results across all pages.
2210
- # Corresponds to the JSON property `totalResults`
2211
- # @return [Fixnum]
2212
- attr_accessor :total_results
2213
-
2214
- # True if this response is showing entire company history.
2215
- # Corresponds to the JSON property `showingEntireCompany`
2216
- # @return [Boolean]
2217
- attr_accessor :showing_entire_company
2218
- alias_method :showing_entire_company?, :showing_entire_company
2219
-
2220
- # Historical offers meeting request.
2221
- # Corresponds to the JSON property `offers`
2222
- # @return [Array<Google::Apis::PartnersV2::HistoricalOffer>]
2223
- attr_accessor :offers
2224
-
2225
- # Supply this token in a ListOffersHistoryRequest to retrieve the next page.
2226
- # Corresponds to the JSON property `nextPageToken`
2187
+ # The ID of the reCaptcha challenge.
2188
+ # Corresponds to the JSON property `id`
2227
2189
  # @return [String]
2228
- attr_accessor :next_page_token
2190
+ attr_accessor :id
2229
2191
 
2230
- # Common data that is in each API response.
2231
- # Corresponds to the JSON property `responseMetadata`
2232
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
2233
- attr_accessor :response_metadata
2192
+ # The response to the reCaptcha challenge.
2193
+ # Corresponds to the JSON property `response`
2194
+ # @return [String]
2195
+ attr_accessor :response
2234
2196
 
2235
2197
  def initialize(**args)
2236
2198
  update!(**args)
@@ -2238,48 +2200,76 @@ module Google
2238
2200
 
2239
2201
  # Update properties of this object
2240
2202
  def update!(**args)
2241
- @can_show_entire_company = args[:can_show_entire_company] if args.key?(:can_show_entire_company)
2242
- @total_results = args[:total_results] if args.key?(:total_results)
2243
- @showing_entire_company = args[:showing_entire_company] if args.key?(:showing_entire_company)
2244
- @offers = args[:offers] if args.key?(:offers)
2245
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2246
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
2203
+ @id = args[:id] if args.key?(:id)
2204
+ @response = args[:response] if args.key?(:response)
2247
2205
  end
2248
2206
  end
2249
2207
 
2250
- # Response message for
2251
- # LogClientMessage.
2252
- class LogMessageResponse
2208
+ # Available Offers to be distributed.
2209
+ class AvailableOffer
2253
2210
  include Google::Apis::Core::Hashable
2254
2211
 
2255
- # Common data that is in each API response.
2256
- # Corresponds to the JSON property `responseMetadata`
2257
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
2258
- attr_accessor :response_metadata
2212
+ # Level of this offer.
2213
+ # Corresponds to the JSON property `offerLevel`
2214
+ # @return [String]
2215
+ attr_accessor :offer_level
2259
2216
 
2260
- def initialize(**args)
2261
- update!(**args)
2262
- end
2217
+ # Name of the offer.
2218
+ # Corresponds to the JSON property `name`
2219
+ # @return [String]
2220
+ attr_accessor :name
2263
2221
 
2264
- # Update properties of this object
2265
- def update!(**args)
2266
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
2267
- end
2268
- end
2222
+ # ID of this offer.
2223
+ # Corresponds to the JSON property `id`
2224
+ # @return [Fixnum]
2225
+ attr_accessor :id
2269
2226
 
2270
- # Agency specialization status
2271
- class SpecializationStatus
2272
- include Google::Apis::Core::Hashable
2227
+ # Whether or not the list of qualified customers is definitely complete.
2228
+ # Corresponds to the JSON property `qualifiedCustomersComplete`
2229
+ # @return [Boolean]
2230
+ attr_accessor :qualified_customers_complete
2231
+ alias_method :qualified_customers_complete?, :qualified_customers_complete
2273
2232
 
2274
- # The specialization this status is for.
2275
- # Corresponds to the JSON property `badgeSpecialization`
2233
+ # Offer info by country.
2234
+ # Corresponds to the JSON property `countryOfferInfos`
2235
+ # @return [Array<Google::Apis::PartnersV2::CountryOfferInfo>]
2236
+ attr_accessor :country_offer_infos
2237
+
2238
+ # Type of offer.
2239
+ # Corresponds to the JSON property `offerType`
2276
2240
  # @return [String]
2277
- attr_accessor :badge_specialization
2241
+ attr_accessor :offer_type
2278
2242
 
2279
- # State of agency specialization.
2280
- # Corresponds to the JSON property `badgeSpecializationState`
2243
+ # The maximum age of an account [in days] to be eligible.
2244
+ # Corresponds to the JSON property `maxAccountAge`
2245
+ # @return [Fixnum]
2246
+ attr_accessor :max_account_age
2247
+
2248
+ # Customers who qualify for this offer.
2249
+ # Corresponds to the JSON property `qualifiedCustomer`
2250
+ # @return [Array<Google::Apis::PartnersV2::OfferCustomer>]
2251
+ attr_accessor :qualified_customer
2252
+
2253
+ # Terms of the offer.
2254
+ # Corresponds to the JSON property `terms`
2281
2255
  # @return [String]
2282
- attr_accessor :badge_specialization_state
2256
+ attr_accessor :terms
2257
+
2258
+ # Should special text be shown on the offers page.
2259
+ # Corresponds to the JSON property `showSpecialOfferCopy`
2260
+ # @return [Boolean]
2261
+ attr_accessor :show_special_offer_copy
2262
+ alias_method :show_special_offer_copy?, :show_special_offer_copy
2263
+
2264
+ # The number of codes for this offer that are available for distribution.
2265
+ # Corresponds to the JSON property `available`
2266
+ # @return [Fixnum]
2267
+ attr_accessor :available
2268
+
2269
+ # Description of the offer.
2270
+ # Corresponds to the JSON property `description`
2271
+ # @return [String]
2272
+ attr_accessor :description
2283
2273
 
2284
2274
  def initialize(**args)
2285
2275
  update!(**args)
@@ -2287,8 +2277,18 @@ module Google
2287
2277
 
2288
2278
  # Update properties of this object
2289
2279
  def update!(**args)
2290
- @badge_specialization = args[:badge_specialization] if args.key?(:badge_specialization)
2291
- @badge_specialization_state = args[:badge_specialization_state] if args.key?(:badge_specialization_state)
2280
+ @offer_level = args[:offer_level] if args.key?(:offer_level)
2281
+ @name = args[:name] if args.key?(:name)
2282
+ @id = args[:id] if args.key?(:id)
2283
+ @qualified_customers_complete = args[:qualified_customers_complete] if args.key?(:qualified_customers_complete)
2284
+ @country_offer_infos = args[:country_offer_infos] if args.key?(:country_offer_infos)
2285
+ @offer_type = args[:offer_type] if args.key?(:offer_type)
2286
+ @max_account_age = args[:max_account_age] if args.key?(:max_account_age)
2287
+ @qualified_customer = args[:qualified_customer] if args.key?(:qualified_customer)
2288
+ @terms = args[:terms] if args.key?(:terms)
2289
+ @show_special_offer_copy = args[:show_special_offer_copy] if args.key?(:show_special_offer_copy)
2290
+ @available = args[:available] if args.key?(:available)
2291
+ @description = args[:description] if args.key?(:description)
2292
2292
  end
2293
2293
  end
2294
2294
  end