google-api-client 0.13.2 → 0.13.3

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