google-api-client 0.9.8 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +15 -8
  3. data/CHANGELOG.md +84 -0
  4. data/Gemfile +10 -2
  5. data/README.md +10 -2
  6. data/api_names.yaml +37172 -135
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
  13. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  15. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  16. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  17. data/generated/google/apis/admin_directory_v1.rb +1 -1
  18. data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
  19. data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
  20. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  21. data/generated/google/apis/admin_reports_v1.rb +5 -5
  22. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  23. data/generated/google/apis/adsense_v1_4.rb +1 -1
  24. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  26. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  27. data/generated/google/apis/analytics_v3.rb +1 -1
  28. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  29. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  30. data/generated/google/apis/analytics_v3/service.rb +256 -0
  31. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  32. data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
  33. data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
  34. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  35. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
  38. data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
  41. data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
  42. data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
  43. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  44. data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
  45. data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
  46. data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
  47. data/generated/google/apis/appsactivity_v1.rb +3 -3
  48. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  49. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  50. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  51. data/generated/google/apis/appstate_v1.rb +1 -1
  52. data/generated/google/apis/bigquery_v2.rb +1 -1
  53. data/generated/google/apis/bigquery_v2/classes.rb +360 -38
  54. data/generated/google/apis/bigquery_v2/representations.rb +106 -0
  55. data/generated/google/apis/bigquery_v2/service.rb +18 -4
  56. data/generated/google/apis/books_v1.rb +2 -2
  57. data/generated/google/apis/books_v1/classes.rb +83 -0
  58. data/generated/google/apis/books_v1/representations.rb +35 -0
  59. data/generated/google/apis/books_v1/service.rb +7 -3
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +208 -5
  62. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  63. data/generated/google/apis/civicinfo_v2.rb +3 -2
  64. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  65. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  67. data/generated/google/apis/classroom_v1.rb +22 -25
  68. data/generated/google/apis/classroom_v1/classes.rb +998 -761
  69. data/generated/google/apis/classroom_v1/representations.rb +263 -198
  70. data/generated/google/apis/classroom_v1/service.rb +1349 -672
  71. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  74. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  75. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  76. data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
  77. data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
  78. data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
  79. data/generated/google/apis/clouddebugger_v2.rb +5 -8
  80. data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
  81. data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
  82. data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
  83. data/generated/google/apis/cloudkms_v1.rb +35 -0
  84. data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
  85. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  86. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  87. data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
  88. data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
  89. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  90. data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
  91. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  92. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  93. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
  94. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
  95. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
  96. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  97. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
  98. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
  99. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
  100. data/generated/google/apis/cloudtrace_v1.rb +9 -9
  101. data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
  102. data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
  103. data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
  104. data/generated/google/apis/compute_beta.rb +1 -1
  105. data/generated/google/apis/compute_beta/classes.rb +7007 -3648
  106. data/generated/google/apis/compute_beta/representations.rb +1459 -120
  107. data/generated/google/apis/compute_beta/service.rb +7943 -3726
  108. data/generated/google/apis/compute_v1.rb +1 -1
  109. data/generated/google/apis/compute_v1/classes.rb +2567 -370
  110. data/generated/google/apis/compute_v1/representations.rb +855 -0
  111. data/generated/google/apis/compute_v1/service.rb +6388 -2908
  112. data/generated/google/apis/container_v1.rb +1 -1
  113. data/generated/google/apis/container_v1/classes.rb +287 -16
  114. data/generated/google/apis/container_v1/representations.rb +113 -2
  115. data/generated/google/apis/container_v1/service.rb +130 -0
  116. data/generated/google/apis/content_v2.rb +1 -1
  117. data/generated/google/apis/content_v2/classes.rb +778 -10
  118. data/generated/google/apis/content_v2/representations.rb +339 -0
  119. data/generated/google/apis/content_v2/service.rb +364 -49
  120. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  121. data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
  122. data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
  123. data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
  124. data/generated/google/apis/dataproc_v1.rb +1 -1
  125. data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
  126. data/generated/google/apis/dataproc_v1/representations.rb +299 -225
  127. data/generated/google/apis/dataproc_v1/service.rb +277 -192
  128. data/generated/google/apis/datastore_v1.rb +38 -0
  129. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  130. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  131. data/generated/google/apis/datastore_v1/service.rb +259 -0
  132. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  133. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  134. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  135. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  136. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  137. data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
  138. data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
  139. data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
  140. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  141. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  142. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  143. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  144. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  145. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  146. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  147. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  148. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  149. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  150. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  151. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  152. data/generated/google/apis/dns_v1.rb +1 -1
  153. data/generated/google/apis/dns_v1/classes.rb +1 -1
  154. data/generated/google/apis/dns_v2beta1.rb +43 -0
  155. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  156. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  157. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  158. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  159. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  160. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  161. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  162. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  163. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  164. data/generated/google/apis/drive_v2.rb +1 -1
  165. data/generated/google/apis/drive_v2/classes.rb +595 -37
  166. data/generated/google/apis/drive_v2/representations.rb +140 -0
  167. data/generated/google/apis/drive_v2/service.rb +406 -40
  168. data/generated/google/apis/drive_v3.rb +1 -1
  169. data/generated/google/apis/drive_v3/classes.rb +507 -40
  170. data/generated/google/apis/drive_v3/representations.rb +105 -0
  171. data/generated/google/apis/drive_v3/service.rb +326 -29
  172. data/generated/google/apis/fitness_v1.rb +38 -2
  173. data/generated/google/apis/fitness_v1/classes.rb +65 -7
  174. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  175. data/generated/google/apis/fitness_v1/service.rb +17 -18
  176. data/generated/google/apis/fusiontables_v2.rb +1 -1
  177. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  178. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  179. data/generated/google/apis/games_management_v1management.rb +1 -1
  180. data/generated/google/apis/games_v1.rb +1 -1
  181. data/generated/google/apis/genomics_v1.rb +10 -12
  182. data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
  183. data/generated/google/apis/genomics_v1/representations.rb +468 -496
  184. data/generated/google/apis/genomics_v1/service.rb +978 -882
  185. data/generated/google/apis/gmail_v1.rb +11 -2
  186. data/generated/google/apis/gmail_v1/classes.rb +655 -5
  187. data/generated/google/apis/gmail_v1/representations.rb +261 -0
  188. data/generated/google/apis/gmail_v1/service.rb +1211 -48
  189. data/generated/google/apis/groupssettings_v1.rb +2 -2
  190. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  191. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  192. data/generated/google/apis/iam_v1.rb +2 -2
  193. data/generated/google/apis/iam_v1/classes.rb +446 -368
  194. data/generated/google/apis/iam_v1/representations.rb +109 -91
  195. data/generated/google/apis/iam_v1/service.rb +249 -162
  196. data/generated/google/apis/identitytoolkit_v3.rb +7 -1
  197. data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
  198. data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
  199. data/generated/google/apis/kgsearch_v1.rb +2 -3
  200. data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
  201. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  202. data/generated/google/apis/kgsearch_v1/service.rb +26 -24
  203. data/generated/google/apis/language_v1beta1.rb +36 -0
  204. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  205. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  206. data/generated/google/apis/language_v1beta1/service.rb +185 -0
  207. data/generated/google/apis/licensing_v1.rb +3 -3
  208. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  209. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  210. data/generated/google/apis/licensing_v1/service.rb +1 -1
  211. data/generated/google/apis/logging_v2beta1.rb +6 -6
  212. data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
  213. data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
  214. data/generated/google/apis/logging_v2beta1/service.rb +427 -155
  215. data/generated/google/apis/manufacturers_v1.rb +34 -0
  216. data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
  217. data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
  218. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  219. data/generated/google/apis/mirror_v1.rb +2 -2
  220. data/generated/google/apis/mirror_v1/service.rb +1 -1
  221. data/generated/google/apis/monitoring_v3.rb +45 -0
  222. data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
  223. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  224. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  225. data/generated/google/apis/oauth2_v2.rb +1 -1
  226. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  227. data/generated/google/apis/partners_v2.rb +3 -3
  228. data/generated/google/apis/partners_v2/classes.rb +1831 -477
  229. data/generated/google/apis/partners_v2/representations.rb +571 -114
  230. data/generated/google/apis/partners_v2/service.rb +898 -167
  231. data/generated/google/apis/people_v1.rb +15 -16
  232. data/generated/google/apis/people_v1/classes.rb +1047 -859
  233. data/generated/google/apis/people_v1/representations.rb +252 -213
  234. data/generated/google/apis/people_v1/service.rb +75 -62
  235. data/generated/google/apis/plus_domains_v1.rb +1 -1
  236. data/generated/google/apis/plus_v1.rb +1 -1
  237. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  238. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
  239. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
  240. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
  241. data/generated/google/apis/pubsub_v1.rb +1 -1
  242. data/generated/google/apis/pubsub_v1/classes.rb +363 -310
  243. data/generated/google/apis/pubsub_v1/representations.rb +76 -76
  244. data/generated/google/apis/pubsub_v1/service.rb +464 -335
  245. data/generated/google/apis/qpx_express_v1.rb +1 -1
  246. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  247. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  248. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  249. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  250. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  251. data/generated/google/apis/reseller_v1.rb +1 -1
  252. data/generated/google/apis/reseller_v1/classes.rb +222 -61
  253. data/generated/google/apis/reseller_v1/representations.rb +28 -0
  254. data/generated/google/apis/reseller_v1/service.rb +240 -47
  255. data/generated/google/apis/script_v1.rb +19 -19
  256. data/generated/google/apis/script_v1/classes.rb +151 -137
  257. data/generated/google/apis/script_v1/representations.rb +26 -26
  258. data/generated/google/apis/script_v1/service.rb +9 -8
  259. data/generated/google/apis/sheets_v4.rb +7 -7
  260. data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
  261. data/generated/google/apis/sheets_v4/representations.rb +988 -737
  262. data/generated/google/apis/sheets_v4/service.rb +266 -99
  263. data/generated/google/apis/site_verification_v1.rb +1 -1
  264. data/generated/google/apis/slides_v1.rb +49 -0
  265. data/generated/google/apis/slides_v1/classes.rb +4480 -0
  266. data/generated/google/apis/slides_v1/representations.rb +1926 -0
  267. data/generated/google/apis/slides_v1/service.rb +245 -0
  268. data/generated/google/apis/speech_v1beta1.rb +34 -0
  269. data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
  270. data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
  271. data/generated/google/apis/speech_v1beta1/service.rb +270 -0
  272. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  273. data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
  274. data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
  275. data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
  276. data/generated/google/apis/storage_v1.rb +1 -1
  277. data/generated/google/apis/storage_v1/classes.rb +205 -21
  278. data/generated/google/apis/storage_v1/representations.rb +51 -1
  279. data/generated/google/apis/storage_v1/service.rb +263 -9
  280. data/generated/google/apis/tagmanager_v1.rb +5 -5
  281. data/generated/google/apis/translate_v2.rb +2 -2
  282. data/generated/google/apis/translate_v2/service.rb +1 -1
  283. data/generated/google/apis/vision_v1.rb +1 -1
  284. data/generated/google/apis/vision_v1/classes.rb +1275 -731
  285. data/generated/google/apis/vision_v1/representations.rb +378 -111
  286. data/generated/google/apis/vision_v1/service.rb +4 -4
  287. data/generated/google/apis/webmasters_v3.rb +1 -1
  288. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  289. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  290. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  291. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
  292. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  293. data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
  294. data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
  295. data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
  296. data/generated/google/apis/youtube_v3.rb +1 -1
  297. data/generated/google/apis/youtube_v3/classes.rb +430 -22
  298. data/generated/google/apis/youtube_v3/representations.rb +171 -4
  299. data/generated/google/apis/youtube_v3/service.rb +100 -9
  300. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  301. data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
  302. data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
  303. data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
  304. data/google-api-client.gemspec +4 -3
  305. data/lib/google/apis/core/api_command.rb +16 -6
  306. data/lib/google/apis/core/base_service.rb +17 -9
  307. data/lib/google/apis/core/download.rb +7 -2
  308. data/lib/google/apis/core/http_command.rb +5 -1
  309. data/lib/google/apis/core/json_representation.rb +2 -2
  310. data/lib/google/apis/core/upload.rb +7 -1
  311. data/lib/google/apis/errors.rb +6 -2
  312. data/lib/google/apis/generator/annotator.rb +6 -0
  313. data/lib/google/apis/version.rb +1 -1
  314. data/samples/cli/lib/samples/bigquery.rb +101 -0
  315. data/samples/cli/lib/samples/calendar.rb +1 -1
  316. data/samples/cli/lib/samples/gmail.rb +74 -0
  317. data/samples/cli/lib/samples/sheets.rb +61 -0
  318. data/samples/cli/lib/samples/you_tube.rb +4 -1
  319. data/sync.rb +71 -0
  320. metadata +86 -18
@@ -22,8 +22,8 @@ module Google
22
22
  module PartnersV2
23
23
  # Google Partners API
24
24
  #
25
- # Lets advertisers search certified companies and create contact leads with them,
26
- # and also audits the usage of clients.
25
+ # Searches certified companies and creates contact leads with them, and also
26
+ # audits the usage of clients.
27
27
  #
28
28
  # @example
29
29
  # require 'google/apis/partners_v2'
@@ -47,159 +47,760 @@ module Google
47
47
  super('https://partners.googleapis.com/', '')
48
48
  end
49
49
 
50
- # Logs a user event.
51
- # @param [Google::Apis::PartnersV2::LogUserEventRequest] log_user_event_request_object
50
+ # Lists advertiser leads for a user's associated company.
51
+ # Should only be called within the context of an authorized logged in user.
52
+ # @param [String] order_by
53
+ # How to order Leads. Currently, only `create_time`
54
+ # and `create_time desc` are supported
55
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
56
+ # Second level identifier to indicate where the traffic comes from.
57
+ # An identifier has multiple letters created by a team which redirected the
58
+ # traffic to us.
59
+ # @param [String] request_metadata_user_overrides_user_id
60
+ # Logged-in user ID to impersonate instead of the user's ID.
61
+ # @param [String] request_metadata_partners_session_id
62
+ # Google Partners session ID.
63
+ # @param [String] page_token
64
+ # A token identifying a page of results that the server returns.
65
+ # Typically, this is the value of `ListLeadsResponse.next_page_token`
66
+ # returned from the previous call to
67
+ # ListLeads.
68
+ # @param [Fixnum] page_size
69
+ # Requested page size. Server may return fewer leads than requested.
70
+ # If unspecified, server picks an appropriate default.
71
+ # @param [String] request_metadata_traffic_source_traffic_source_id
72
+ # Identifier to indicate where the traffic comes from.
73
+ # An identifier has multiple letters created by a team which redirected the
74
+ # traffic to us.
75
+ # @param [String] request_metadata_locale
76
+ # Locale to use for the current request.
77
+ # @param [String] request_metadata_user_overrides_ip_address
78
+ # IP address to use instead of the user's geo-located IP address.
79
+ # @param [Array<String>, String] request_metadata_experiment_ids
80
+ # Experiment IDs the current request belongs to.
81
+ # @param [String] quota_user
82
+ # Available to use for quota purposes for server-side applications. Can be any
83
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
52
84
  # @param [String] fields
53
85
  # Selector specifying which fields to include in a partial response.
86
+ # @param [Google::Apis::RequestOptions] options
87
+ # Request-specific options
88
+ #
89
+ # @yield [result, err] Result & error if block supplied
90
+ # @yieldparam result [Google::Apis::PartnersV2::ListLeadsResponse] parsed result object
91
+ # @yieldparam err [StandardError] error object if request failed
92
+ #
93
+ # @return [Google::Apis::PartnersV2::ListLeadsResponse]
94
+ #
95
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
96
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
97
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
98
+ def list_leads(order_by: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, page_token: nil, page_size: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, quota_user: nil, fields: nil, options: nil, &block)
99
+ command = make_simple_command(:get, 'v2/leads', options)
100
+ command.response_representation = Google::Apis::PartnersV2::ListLeadsResponse::Representation
101
+ command.response_class = Google::Apis::PartnersV2::ListLeadsResponse
102
+ command.query['orderBy'] = order_by unless order_by.nil?
103
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
104
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
105
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
106
+ command.query['pageToken'] = page_token unless page_token.nil?
107
+ command.query['pageSize'] = page_size unless page_size.nil?
108
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
109
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
110
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
111
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
113
+ command.query['fields'] = fields unless fields.nil?
114
+ execute_or_queue_command(command, &block)
115
+ end
116
+
117
+ # Lists the Offers available for the current user
118
+ # @param [String] request_metadata_user_overrides_user_id
119
+ # Logged-in user ID to impersonate instead of the user's ID.
120
+ # @param [String] request_metadata_partners_session_id
121
+ # Google Partners session ID.
122
+ # @param [String] request_metadata_traffic_source_traffic_source_id
123
+ # Identifier to indicate where the traffic comes from.
124
+ # An identifier has multiple letters created by a team which redirected the
125
+ # traffic to us.
126
+ # @param [String] request_metadata_locale
127
+ # Locale to use for the current request.
128
+ # @param [String] request_metadata_user_overrides_ip_address
129
+ # IP address to use instead of the user's geo-located IP address.
130
+ # @param [Array<String>, String] request_metadata_experiment_ids
131
+ # Experiment IDs the current request belongs to.
132
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
133
+ # Second level identifier to indicate where the traffic comes from.
134
+ # An identifier has multiple letters created by a team which redirected the
135
+ # traffic to us.
54
136
  # @param [String] quota_user
55
137
  # Available to use for quota purposes for server-side applications. Can be any
56
138
  # arbitrary string assigned to a user, but should not exceed 40 characters.
139
+ # @param [String] fields
140
+ # Selector specifying which fields to include in a partial response.
57
141
  # @param [Google::Apis::RequestOptions] options
58
142
  # Request-specific options
59
143
  #
60
144
  # @yield [result, err] Result & error if block supplied
61
- # @yieldparam result [Google::Apis::PartnersV2::LogUserEventResponse] parsed result object
145
+ # @yieldparam result [Google::Apis::PartnersV2::ListOffersResponse] parsed result object
62
146
  # @yieldparam err [StandardError] error object if request failed
63
147
  #
64
- # @return [Google::Apis::PartnersV2::LogUserEventResponse]
148
+ # @return [Google::Apis::PartnersV2::ListOffersResponse]
65
149
  #
66
150
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
67
151
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
68
152
  # @raise [Google::Apis::AuthorizationError] Authorization is required
69
- def log_user_event(log_user_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
70
- command = make_simple_command(:post, 'v2/userEvents:log', options)
71
- command.request_representation = Google::Apis::PartnersV2::LogUserEventRequest::Representation
72
- command.request_object = log_user_event_request_object
73
- command.response_representation = Google::Apis::PartnersV2::LogUserEventResponse::Representation
74
- command.response_class = Google::Apis::PartnersV2::LogUserEventResponse
153
+ def list_offers(request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block)
154
+ command = make_simple_command(:get, 'v2/offers', options)
155
+ command.response_representation = Google::Apis::PartnersV2::ListOffersResponse::Representation
156
+ command.response_class = Google::Apis::PartnersV2::ListOffersResponse
157
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
158
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
159
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
160
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
161
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
162
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
163
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
164
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
75
165
  command.query['fields'] = fields unless fields.nil?
166
+ execute_or_queue_command(command, &block)
167
+ end
168
+
169
+ # Lists the Historical Offers for the current user (or user's entire company)
170
+ # @param [String] order_by
171
+ # Comma-separated list of fields to order by, e.g.: "foo,bar,baz".
172
+ # Use "foo desc" to sort descending.
173
+ # List of valid field names is: name, offer_code, expiration_time, status,
174
+ # last_modified_time, sender_name, creation_time, country_code,
175
+ # offer_type.
176
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
177
+ # Second level identifier to indicate where the traffic comes from.
178
+ # An identifier has multiple letters created by a team which redirected the
179
+ # traffic to us.
180
+ # @param [String] request_metadata_user_overrides_user_id
181
+ # Logged-in user ID to impersonate instead of the user's ID.
182
+ # @param [String] request_metadata_partners_session_id
183
+ # Google Partners session ID.
184
+ # @param [String] page_token
185
+ # Token to retrieve a specific page.
186
+ # @param [Fixnum] page_size
187
+ # Maximum number of rows to return per page.
188
+ # @param [String] request_metadata_traffic_source_traffic_source_id
189
+ # Identifier to indicate where the traffic comes from.
190
+ # An identifier has multiple letters created by a team which redirected the
191
+ # traffic to us.
192
+ # @param [String] request_metadata_locale
193
+ # Locale to use for the current request.
194
+ # @param [String] request_metadata_user_overrides_ip_address
195
+ # IP address to use instead of the user's geo-located IP address.
196
+ # @param [Boolean] entire_company
197
+ # if true, show history for the entire company. Requires user to be admin.
198
+ # @param [Array<String>, String] request_metadata_experiment_ids
199
+ # Experiment IDs the current request belongs to.
200
+ # @param [String] quota_user
201
+ # Available to use for quota purposes for server-side applications. Can be any
202
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
203
+ # @param [String] fields
204
+ # Selector specifying which fields to include in a partial response.
205
+ # @param [Google::Apis::RequestOptions] options
206
+ # Request-specific options
207
+ #
208
+ # @yield [result, err] Result & error if block supplied
209
+ # @yieldparam result [Google::Apis::PartnersV2::ListOffersHistoryResponse] parsed result object
210
+ # @yieldparam err [StandardError] error object if request failed
211
+ #
212
+ # @return [Google::Apis::PartnersV2::ListOffersHistoryResponse]
213
+ #
214
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
215
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
216
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
217
+ def list_offer_histories(order_by: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, page_token: nil, page_size: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, entire_company: nil, request_metadata_experiment_ids: nil, quota_user: nil, fields: nil, options: nil, &block)
218
+ command = make_simple_command(:get, 'v2/offers/history', options)
219
+ command.response_representation = Google::Apis::PartnersV2::ListOffersHistoryResponse::Representation
220
+ command.response_class = Google::Apis::PartnersV2::ListOffersHistoryResponse
221
+ command.query['orderBy'] = order_by unless order_by.nil?
222
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
223
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
224
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
225
+ command.query['pageToken'] = page_token unless page_token.nil?
226
+ command.query['pageSize'] = page_size unless page_size.nil?
227
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
228
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
229
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
230
+ command.query['entireCompany'] = entire_company unless entire_company.nil?
231
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
76
232
  command.query['quotaUser'] = quota_user unless quota_user.nil?
233
+ command.query['fields'] = fields unless fields.nil?
77
234
  execute_or_queue_command(command, &block)
78
235
  end
79
236
 
80
- # Logs a generic message from the client, such as `Failed to render component`, `
81
- # Profile page is running slow`, `More than 500 users have accessed this result.`
82
- # , etc.
83
- # @param [Google::Apis::PartnersV2::LogMessageRequest] log_message_request_object
237
+ # Lists states for current user.
238
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
239
+ # Second level identifier to indicate where the traffic comes from.
240
+ # An identifier has multiple letters created by a team which redirected the
241
+ # traffic to us.
242
+ # @param [String] request_metadata_user_overrides_user_id
243
+ # Logged-in user ID to impersonate instead of the user's ID.
244
+ # @param [String] request_metadata_partners_session_id
245
+ # Google Partners session ID.
246
+ # @param [String] request_metadata_traffic_source_traffic_source_id
247
+ # Identifier to indicate where the traffic comes from.
248
+ # An identifier has multiple letters created by a team which redirected the
249
+ # traffic to us.
250
+ # @param [String] request_metadata_locale
251
+ # Locale to use for the current request.
252
+ # @param [String] request_metadata_user_overrides_ip_address
253
+ # IP address to use instead of the user's geo-located IP address.
254
+ # @param [Array<String>, String] request_metadata_experiment_ids
255
+ # Experiment IDs the current request belongs to.
256
+ # @param [String] quota_user
257
+ # Available to use for quota purposes for server-side applications. Can be any
258
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
84
259
  # @param [String] fields
85
260
  # Selector specifying which fields to include in a partial response.
261
+ # @param [Google::Apis::RequestOptions] options
262
+ # Request-specific options
263
+ #
264
+ # @yield [result, err] Result & error if block supplied
265
+ # @yieldparam result [Google::Apis::PartnersV2::ListUserStatesResponse] parsed result object
266
+ # @yieldparam err [StandardError] error object if request failed
267
+ #
268
+ # @return [Google::Apis::PartnersV2::ListUserStatesResponse]
269
+ #
270
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
271
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
272
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
273
+ def list_user_states(request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, quota_user: nil, fields: nil, options: nil, &block)
274
+ command = make_simple_command(:get, 'v2/userStates', options)
275
+ command.response_representation = Google::Apis::PartnersV2::ListUserStatesResponse::Representation
276
+ command.response_class = Google::Apis::PartnersV2::ListUserStatesResponse
277
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
278
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
279
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
280
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
281
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
282
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
283
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
284
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
285
+ command.query['fields'] = fields unless fields.nil?
286
+ execute_or_queue_command(command, &block)
287
+ end
288
+
289
+ # Lists analytics data for a user's associated company.
290
+ # Should only be called within the context of an authorized logged in user.
291
+ # @param [String] request_metadata_partners_session_id
292
+ # Google Partners session ID.
293
+ # @param [String] request_metadata_user_overrides_user_id
294
+ # Logged-in user ID to impersonate instead of the user's ID.
295
+ # @param [String] page_token
296
+ # A token identifying a page of results that the server returns.
297
+ # Typically, this is the value of `ListAnalyticsResponse.next_page_token`
298
+ # returned from the previous call to
299
+ # ListAnalytics.
300
+ # Will be a date string in `YYYY-MM-DD` format representing the end date
301
+ # of the date range of results to return.
302
+ # If unspecified or set to "", default value is the current date.
303
+ # @param [Fixnum] page_size
304
+ # Requested page size. Server may return fewer analytics than requested.
305
+ # If unspecified or set to 0, default value is 30.
306
+ # Specifies the number of days in the date range when querying analytics.
307
+ # The `page_token` represents the end date of the date range
308
+ # and the start date is calculated using the `page_size` as the number
309
+ # of days BEFORE the end date.
310
+ # Must be a non-negative integer.
311
+ # @param [String] request_metadata_traffic_source_traffic_source_id
312
+ # Identifier to indicate where the traffic comes from.
313
+ # An identifier has multiple letters created by a team which redirected the
314
+ # traffic to us.
315
+ # @param [String] request_metadata_locale
316
+ # Locale to use for the current request.
317
+ # @param [String] request_metadata_user_overrides_ip_address
318
+ # IP address to use instead of the user's geo-located IP address.
319
+ # @param [Array<String>, String] request_metadata_experiment_ids
320
+ # Experiment IDs the current request belongs to.
321
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
322
+ # Second level identifier to indicate where the traffic comes from.
323
+ # An identifier has multiple letters created by a team which redirected the
324
+ # traffic to us.
86
325
  # @param [String] quota_user
87
326
  # Available to use for quota purposes for server-side applications. Can be any
88
327
  # arbitrary string assigned to a user, but should not exceed 40 characters.
328
+ # @param [String] fields
329
+ # Selector specifying which fields to include in a partial response.
89
330
  # @param [Google::Apis::RequestOptions] options
90
331
  # Request-specific options
91
332
  #
92
333
  # @yield [result, err] Result & error if block supplied
93
- # @yieldparam result [Google::Apis::PartnersV2::LogMessageResponse] parsed result object
334
+ # @yieldparam result [Google::Apis::PartnersV2::ListAnalyticsResponse] parsed result object
94
335
  # @yieldparam err [StandardError] error object if request failed
95
336
  #
96
- # @return [Google::Apis::PartnersV2::LogMessageResponse]
337
+ # @return [Google::Apis::PartnersV2::ListAnalyticsResponse]
97
338
  #
98
339
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
99
340
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
100
341
  # @raise [Google::Apis::AuthorizationError] Authorization is required
101
- def log_client_message_message(log_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
102
- command = make_simple_command(:post, 'v2/clientMessages:log', options)
103
- command.request_representation = Google::Apis::PartnersV2::LogMessageRequest::Representation
104
- command.request_object = log_message_request_object
105
- command.response_representation = Google::Apis::PartnersV2::LogMessageResponse::Representation
106
- command.response_class = Google::Apis::PartnersV2::LogMessageResponse
342
+ def list_analytics(request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, page_token: nil, page_size: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block)
343
+ command = make_simple_command(:get, 'v2/analytics', options)
344
+ command.response_representation = Google::Apis::PartnersV2::ListAnalyticsResponse::Representation
345
+ command.response_class = Google::Apis::PartnersV2::ListAnalyticsResponse
346
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
347
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
348
+ command.query['pageToken'] = page_token unless page_token.nil?
349
+ command.query['pageSize'] = page_size unless page_size.nil?
350
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
351
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
352
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
353
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
354
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
355
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
356
+ command.query['fields'] = fields unless fields.nil?
357
+ execute_or_queue_command(command, &block)
358
+ end
359
+
360
+ # Gets Partners Status of the logged in user's agency.
361
+ # Should only be called if the logged in user is the admin of the agency.
362
+ # @param [String] request_metadata_user_overrides_ip_address
363
+ # IP address to use instead of the user's geo-located IP address.
364
+ # @param [Array<String>, String] request_metadata_experiment_ids
365
+ # Experiment IDs the current request belongs to.
366
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
367
+ # Second level identifier to indicate where the traffic comes from.
368
+ # An identifier has multiple letters created by a team which redirected the
369
+ # traffic to us.
370
+ # @param [String] request_metadata_user_overrides_user_id
371
+ # Logged-in user ID to impersonate instead of the user's ID.
372
+ # @param [String] request_metadata_partners_session_id
373
+ # Google Partners session ID.
374
+ # @param [String] request_metadata_traffic_source_traffic_source_id
375
+ # Identifier to indicate where the traffic comes from.
376
+ # An identifier has multiple letters created by a team which redirected the
377
+ # traffic to us.
378
+ # @param [String] request_metadata_locale
379
+ # Locale to use for the current request.
380
+ # @param [String] quota_user
381
+ # Available to use for quota purposes for server-side applications. Can be any
382
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
383
+ # @param [String] fields
384
+ # Selector specifying which fields to include in a partial response.
385
+ # @param [Google::Apis::RequestOptions] options
386
+ # Request-specific options
387
+ #
388
+ # @yield [result, err] Result & error if block supplied
389
+ # @yieldparam result [Google::Apis::PartnersV2::GetPartnersStatusResponse] parsed result object
390
+ # @yieldparam err [StandardError] error object if request failed
391
+ #
392
+ # @return [Google::Apis::PartnersV2::GetPartnersStatusResponse]
393
+ #
394
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
395
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
396
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
397
+ def get_partnersstatus(request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, quota_user: nil, fields: nil, options: nil, &block)
398
+ command = make_simple_command(:get, 'v2/partnersstatus', options)
399
+ command.response_representation = Google::Apis::PartnersV2::GetPartnersStatusResponse::Representation
400
+ command.response_class = Google::Apis::PartnersV2::GetPartnersStatusResponse
401
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
402
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
403
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
404
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
405
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
406
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
407
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
408
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
409
+ command.query['fields'] = fields unless fields.nil?
410
+ execute_or_queue_command(command, &block)
411
+ end
412
+
413
+ # Updates the specified lead.
414
+ # @param [Google::Apis::PartnersV2::Lead] lead_object
415
+ # @param [String] request_metadata_traffic_source_traffic_source_id
416
+ # Identifier to indicate where the traffic comes from.
417
+ # An identifier has multiple letters created by a team which redirected the
418
+ # traffic to us.
419
+ # @param [String] request_metadata_locale
420
+ # Locale to use for the current request.
421
+ # @param [String] request_metadata_user_overrides_ip_address
422
+ # IP address to use instead of the user's geo-located IP address.
423
+ # @param [String] update_mask
424
+ # Standard field mask for the set of fields to be updated.
425
+ # Required with at least 1 value in FieldMask's paths.
426
+ # Only `state` and `adwords_customer_id` are currently supported.
427
+ # @param [Array<String>, String] request_metadata_experiment_ids
428
+ # Experiment IDs the current request belongs to.
429
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
430
+ # Second level identifier to indicate where the traffic comes from.
431
+ # An identifier has multiple letters created by a team which redirected the
432
+ # traffic to us.
433
+ # @param [String] request_metadata_user_overrides_user_id
434
+ # Logged-in user ID to impersonate instead of the user's ID.
435
+ # @param [String] request_metadata_partners_session_id
436
+ # Google Partners session ID.
437
+ # @param [String] quota_user
438
+ # Available to use for quota purposes for server-side applications. Can be any
439
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
440
+ # @param [String] fields
441
+ # Selector specifying which fields to include in a partial response.
442
+ # @param [Google::Apis::RequestOptions] options
443
+ # Request-specific options
444
+ #
445
+ # @yield [result, err] Result & error if block supplied
446
+ # @yieldparam result [Google::Apis::PartnersV2::Lead] parsed result object
447
+ # @yieldparam err [StandardError] error object if request failed
448
+ #
449
+ # @return [Google::Apis::PartnersV2::Lead]
450
+ #
451
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
452
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
453
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
454
+ def update_leads(lead_object = nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, update_mask: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, quota_user: nil, fields: nil, options: nil, &block)
455
+ command = make_simple_command(:patch, 'v2/leads', options)
456
+ command.request_representation = Google::Apis::PartnersV2::Lead::Representation
457
+ command.request_object = lead_object
458
+ command.response_representation = Google::Apis::PartnersV2::Lead::Representation
459
+ command.response_class = Google::Apis::PartnersV2::Lead
460
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
461
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
462
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
463
+ command.query['updateMask'] = update_mask unless update_mask.nil?
464
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
465
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
466
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
467
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
468
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
469
+ command.query['fields'] = fields unless fields.nil?
470
+ execute_or_queue_command(command, &block)
471
+ end
472
+
473
+ # Update company.
474
+ # Should only be called within the context of an authorized logged in user.
475
+ # @param [Google::Apis::PartnersV2::Company] company_object
476
+ # @param [String] request_metadata_traffic_source_traffic_source_id
477
+ # Identifier to indicate where the traffic comes from.
478
+ # An identifier has multiple letters created by a team which redirected the
479
+ # traffic to us.
480
+ # @param [String] request_metadata_locale
481
+ # Locale to use for the current request.
482
+ # @param [String] request_metadata_user_overrides_ip_address
483
+ # IP address to use instead of the user's geo-located IP address.
484
+ # @param [String] update_mask
485
+ # Standard field mask for the set of fields to be updated.
486
+ # Required with at least 1 value in FieldMask's paths.
487
+ # @param [Array<String>, String] request_metadata_experiment_ids
488
+ # Experiment IDs the current request belongs to.
489
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
490
+ # Second level identifier to indicate where the traffic comes from.
491
+ # An identifier has multiple letters created by a team which redirected the
492
+ # traffic to us.
493
+ # @param [String] request_metadata_partners_session_id
494
+ # Google Partners session ID.
495
+ # @param [String] request_metadata_user_overrides_user_id
496
+ # Logged-in user ID to impersonate instead of the user's ID.
497
+ # @param [String] quota_user
498
+ # Available to use for quota purposes for server-side applications. Can be any
499
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
500
+ # @param [String] fields
501
+ # Selector specifying which fields to include in a partial response.
502
+ # @param [Google::Apis::RequestOptions] options
503
+ # Request-specific options
504
+ #
505
+ # @yield [result, err] Result & error if block supplied
506
+ # @yieldparam result [Google::Apis::PartnersV2::Company] parsed result object
507
+ # @yieldparam err [StandardError] error object if request failed
508
+ #
509
+ # @return [Google::Apis::PartnersV2::Company]
510
+ #
511
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
512
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
513
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
514
+ def update_companies(company_object = nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, update_mask: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, quota_user: nil, fields: nil, options: nil, &block)
515
+ command = make_simple_command(:patch, 'v2/companies', options)
516
+ command.request_representation = Google::Apis::PartnersV2::Company::Representation
517
+ command.request_object = company_object
518
+ command.response_representation = Google::Apis::PartnersV2::Company::Representation
519
+ command.response_class = Google::Apis::PartnersV2::Company
520
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
521
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
522
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
523
+ command.query['updateMask'] = update_mask unless update_mask.nil?
524
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
525
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
526
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
527
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
528
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
529
+ command.query['fields'] = fields unless fields.nil?
530
+ execute_or_queue_command(command, &block)
531
+ end
532
+
533
+ # Creates a user's company relation. Affiliates the user to a company.
534
+ # @param [String] user_id
535
+ # The ID of the user. Can be set to <code>me</code> to mean
536
+ # the currently authenticated user.
537
+ # @param [Google::Apis::PartnersV2::CompanyRelation] company_relation_object
538
+ # @param [String] request_metadata_user_overrides_ip_address
539
+ # IP address to use instead of the user's geo-located IP address.
540
+ # @param [Array<String>, String] request_metadata_experiment_ids
541
+ # Experiment IDs the current request belongs to.
542
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
543
+ # Second level identifier to indicate where the traffic comes from.
544
+ # An identifier has multiple letters created by a team which redirected the
545
+ # traffic to us.
546
+ # @param [String] request_metadata_user_overrides_user_id
547
+ # Logged-in user ID to impersonate instead of the user's ID.
548
+ # @param [String] request_metadata_partners_session_id
549
+ # Google Partners session ID.
550
+ # @param [String] request_metadata_traffic_source_traffic_source_id
551
+ # Identifier to indicate where the traffic comes from.
552
+ # An identifier has multiple letters created by a team which redirected the
553
+ # traffic to us.
554
+ # @param [String] request_metadata_locale
555
+ # Locale to use for the current request.
556
+ # @param [String] quota_user
557
+ # Available to use for quota purposes for server-side applications. Can be any
558
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
559
+ # @param [String] fields
560
+ # Selector specifying which fields to include in a partial response.
561
+ # @param [Google::Apis::RequestOptions] options
562
+ # Request-specific options
563
+ #
564
+ # @yield [result, err] Result & error if block supplied
565
+ # @yieldparam result [Google::Apis::PartnersV2::CompanyRelation] parsed result object
566
+ # @yieldparam err [StandardError] error object if request failed
567
+ #
568
+ # @return [Google::Apis::PartnersV2::CompanyRelation]
569
+ #
570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
573
+ def create_user_company_relation(user_id, company_relation_object = nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, quota_user: nil, fields: nil, options: nil, &block)
574
+ command = make_simple_command(:put, 'v2/users/{userId}/companyRelation', options)
575
+ command.request_representation = Google::Apis::PartnersV2::CompanyRelation::Representation
576
+ command.request_object = company_relation_object
577
+ command.response_representation = Google::Apis::PartnersV2::CompanyRelation::Representation
578
+ command.response_class = Google::Apis::PartnersV2::CompanyRelation
579
+ command.params['userId'] = user_id unless user_id.nil?
580
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
581
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
582
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
583
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
584
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
585
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
586
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
587
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
107
588
  command.query['fields'] = fields unless fields.nil?
589
+ execute_or_queue_command(command, &block)
590
+ end
591
+
592
+ # Deletes a user's company relation. Unaffiliaites the user from a company.
593
+ # @param [String] user_id
594
+ # The ID of the user. Can be set to <code>me</code> to mean
595
+ # the currently authenticated user.
596
+ # @param [String] request_metadata_user_overrides_user_id
597
+ # Logged-in user ID to impersonate instead of the user's ID.
598
+ # @param [String] request_metadata_partners_session_id
599
+ # Google Partners session ID.
600
+ # @param [String] request_metadata_traffic_source_traffic_source_id
601
+ # Identifier to indicate where the traffic comes from.
602
+ # An identifier has multiple letters created by a team which redirected the
603
+ # traffic to us.
604
+ # @param [String] request_metadata_locale
605
+ # Locale to use for the current request.
606
+ # @param [String] request_metadata_user_overrides_ip_address
607
+ # IP address to use instead of the user's geo-located IP address.
608
+ # @param [Array<String>, String] request_metadata_experiment_ids
609
+ # Experiment IDs the current request belongs to.
610
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
611
+ # Second level identifier to indicate where the traffic comes from.
612
+ # An identifier has multiple letters created by a team which redirected the
613
+ # traffic to us.
614
+ # @param [String] quota_user
615
+ # Available to use for quota purposes for server-side applications. Can be any
616
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
617
+ # @param [String] fields
618
+ # Selector specifying which fields to include in a partial response.
619
+ # @param [Google::Apis::RequestOptions] options
620
+ # Request-specific options
621
+ #
622
+ # @yield [result, err] Result & error if block supplied
623
+ # @yieldparam result [Google::Apis::PartnersV2::Empty] parsed result object
624
+ # @yieldparam err [StandardError] error object if request failed
625
+ #
626
+ # @return [Google::Apis::PartnersV2::Empty]
627
+ #
628
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
629
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
630
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
631
+ def delete_user_company_relation(user_id, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block)
632
+ command = make_simple_command(:delete, 'v2/users/{userId}/companyRelation', options)
633
+ command.response_representation = Google::Apis::PartnersV2::Empty::Representation
634
+ command.response_class = Google::Apis::PartnersV2::Empty
635
+ command.params['userId'] = user_id unless user_id.nil?
636
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
637
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
638
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
639
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
640
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
641
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
642
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
108
643
  command.query['quotaUser'] = quota_user unless quota_user.nil?
644
+ command.query['fields'] = fields unless fields.nil?
645
+ execute_or_queue_command(command, &block)
646
+ end
647
+
648
+ # Gets a user.
649
+ # @param [String] user_id
650
+ # Identifier of the user. Can be set to <code>me</code> to mean the currently
651
+ # authenticated user.
652
+ # @param [String] user_view
653
+ # Specifies what parts of the user information to return.
654
+ # @param [String] request_metadata_traffic_source_traffic_source_id
655
+ # Identifier to indicate where the traffic comes from.
656
+ # An identifier has multiple letters created by a team which redirected the
657
+ # traffic to us.
658
+ # @param [String] request_metadata_locale
659
+ # Locale to use for the current request.
660
+ # @param [String] request_metadata_user_overrides_ip_address
661
+ # IP address to use instead of the user's geo-located IP address.
662
+ # @param [Array<String>, String] request_metadata_experiment_ids
663
+ # Experiment IDs the current request belongs to.
664
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
665
+ # Second level identifier to indicate where the traffic comes from.
666
+ # An identifier has multiple letters created by a team which redirected the
667
+ # traffic to us.
668
+ # @param [String] request_metadata_user_overrides_user_id
669
+ # Logged-in user ID to impersonate instead of the user's ID.
670
+ # @param [String] request_metadata_partners_session_id
671
+ # Google Partners session ID.
672
+ # @param [String] quota_user
673
+ # Available to use for quota purposes for server-side applications. Can be any
674
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
675
+ # @param [String] fields
676
+ # Selector specifying which fields to include in a partial response.
677
+ # @param [Google::Apis::RequestOptions] options
678
+ # Request-specific options
679
+ #
680
+ # @yield [result, err] Result & error if block supplied
681
+ # @yieldparam result [Google::Apis::PartnersV2::User] parsed result object
682
+ # @yieldparam err [StandardError] error object if request failed
683
+ #
684
+ # @return [Google::Apis::PartnersV2::User]
685
+ #
686
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
687
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
688
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
689
+ def get_user(user_id, user_view: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, quota_user: nil, fields: nil, options: nil, &block)
690
+ command = make_simple_command(:get, 'v2/users/{userId}', options)
691
+ command.response_representation = Google::Apis::PartnersV2::User::Representation
692
+ command.response_class = Google::Apis::PartnersV2::User
693
+ command.params['userId'] = user_id unless user_id.nil?
694
+ command.query['userView'] = user_view unless user_view.nil?
695
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
696
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
697
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
698
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
699
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
700
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
701
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
702
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
703
+ command.query['fields'] = fields unless fields.nil?
109
704
  execute_or_queue_command(command, &block)
110
705
  end
111
706
 
112
- # Lists states for current user.
113
- # @param [String] request_metadata_user_overrides_ip_address
114
- # IP address to use instead of the user's geo-located IP address.
707
+ # Updates a user's profile. A user can only update their own profile and
708
+ # should only be called within the context of a logged in user.
709
+ # @param [Google::Apis::PartnersV2::UserProfile] user_profile_object
710
+ # @param [String] request_metadata_partners_session_id
711
+ # Google Partners session ID.
115
712
  # @param [String] request_metadata_user_overrides_user_id
116
713
  # Logged-in user ID to impersonate instead of the user's ID.
714
+ # @param [String] request_metadata_traffic_source_traffic_source_id
715
+ # Identifier to indicate where the traffic comes from.
716
+ # An identifier has multiple letters created by a team which redirected the
717
+ # traffic to us.
117
718
  # @param [String] request_metadata_locale
118
719
  # Locale to use for the current request.
119
- # @param [String] request_metadata_partners_session_id
120
- # Google Partners session ID.
720
+ # @param [String] request_metadata_user_overrides_ip_address
721
+ # IP address to use instead of the user's geo-located IP address.
121
722
  # @param [Array<String>, String] request_metadata_experiment_ids
122
723
  # Experiment IDs the current request belongs to.
123
- # @param [String] request_metadata_traffic_source_traffic_source_id
124
- # Identifier to indicate where the traffic comes from. An identifier has
125
- # multiple letters created by a team which redirected the traffic to us.
126
724
  # @param [String] request_metadata_traffic_source_traffic_sub_id
127
- # Second level identifier to indicate where the traffic comes from. An
128
- # identifier has multiple letters created by a team which redirected the traffic
129
- # to us.
130
- # @param [String] fields
131
- # Selector specifying which fields to include in a partial response.
725
+ # Second level identifier to indicate where the traffic comes from.
726
+ # An identifier has multiple letters created by a team which redirected the
727
+ # traffic to us.
132
728
  # @param [String] quota_user
133
729
  # Available to use for quota purposes for server-side applications. Can be any
134
730
  # arbitrary string assigned to a user, but should not exceed 40 characters.
731
+ # @param [String] fields
732
+ # Selector specifying which fields to include in a partial response.
135
733
  # @param [Google::Apis::RequestOptions] options
136
734
  # Request-specific options
137
735
  #
138
736
  # @yield [result, err] Result & error if block supplied
139
- # @yieldparam result [Google::Apis::PartnersV2::ListUserStatesResponse] parsed result object
737
+ # @yieldparam result [Google::Apis::PartnersV2::UserProfile] parsed result object
140
738
  # @yieldparam err [StandardError] error object if request failed
141
739
  #
142
- # @return [Google::Apis::PartnersV2::ListUserStatesResponse]
740
+ # @return [Google::Apis::PartnersV2::UserProfile]
143
741
  #
144
742
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
145
743
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
146
744
  # @raise [Google::Apis::AuthorizationError] Authorization is required
147
- def list_user_states(request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, fields: nil, quota_user: nil, options: nil, &block)
148
- command = make_simple_command(:get, 'v2/userStates', options)
149
- command.response_representation = Google::Apis::PartnersV2::ListUserStatesResponse::Representation
150
- command.response_class = Google::Apis::PartnersV2::ListUserStatesResponse
151
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
745
+ def update_user_profile(user_profile_object = nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block)
746
+ command = make_simple_command(:patch, 'v2/users/profile', options)
747
+ command.request_representation = Google::Apis::PartnersV2::UserProfile::Representation
748
+ command.request_object = user_profile_object
749
+ command.response_representation = Google::Apis::PartnersV2::UserProfile::Representation
750
+ command.response_class = Google::Apis::PartnersV2::UserProfile
751
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
152
752
  command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
753
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
153
754
  command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
154
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
755
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
155
756
  command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
156
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
157
757
  command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
158
- command.query['fields'] = fields unless fields.nil?
159
758
  command.query['quotaUser'] = quota_user unless quota_user.nil?
759
+ command.query['fields'] = fields unless fields.nil?
160
760
  execute_or_queue_command(command, &block)
161
761
  end
162
762
 
163
763
  # Gets a company.
164
764
  # @param [String] company_id
165
765
  # The ID of the company to retrieve.
766
+ # @param [String] request_metadata_traffic_source_traffic_source_id
767
+ # Identifier to indicate where the traffic comes from.
768
+ # An identifier has multiple letters created by a team which redirected the
769
+ # traffic to us.
166
770
  # @param [String] request_metadata_user_overrides_ip_address
167
771
  # IP address to use instead of the user's geo-located IP address.
168
- # @param [String] request_metadata_user_overrides_user_id
169
- # Logged-in user ID to impersonate instead of the user's ID.
170
- # @param [String] request_metadata_locale
171
- # Locale to use for the current request.
172
- # @param [String] request_metadata_partners_session_id
173
- # Google Partners session ID.
174
772
  # @param [Array<String>, String] request_metadata_experiment_ids
175
773
  # Experiment IDs the current request belongs to.
176
- # @param [String] request_metadata_traffic_source_traffic_source_id
177
- # Identifier to indicate where the traffic comes from. An identifier has
178
- # multiple letters created by a team which redirected the traffic to us.
179
- # @param [String] request_metadata_traffic_source_traffic_sub_id
180
- # Second level identifier to indicate where the traffic comes from. An
181
- # identifier has multiple letters created by a team which redirected the traffic
182
- # to us.
183
- # @param [String] view
184
- # The view of `Company` resource to be returned. This must not be `
185
- # COMPANY_VIEW_UNSPECIFIED`.
186
- # @param [String] order_by
187
- # How to order addresses within the returned company. Currently, only `address`
188
- # and `address desc` is supported which will sorted by closest to farthest in
189
- # distance from given address and farthest to closest distance from given
190
- # address respectively.
191
774
  # @param [String] currency_code
192
775
  # If the company's budget is in a different currency code than this one, then
193
776
  # the converted budget is converted to this currency code.
777
+ # @param [String] order_by
778
+ # How to order addresses within the returned company. Currently, only
779
+ # `address` and `address desc` is supported which will sorted by closest to
780
+ # farthest in distance from given address and farthest to closest distance
781
+ # from given address respectively.
782
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
783
+ # Second level identifier to indicate where the traffic comes from.
784
+ # An identifier has multiple letters created by a team which redirected the
785
+ # traffic to us.
786
+ # @param [String] request_metadata_user_overrides_user_id
787
+ # Logged-in user ID to impersonate instead of the user's ID.
788
+ # @param [String] request_metadata_partners_session_id
789
+ # Google Partners session ID.
790
+ # @param [String] view
791
+ # The view of `Company` resource to be returned. This must not be
792
+ # `COMPANY_VIEW_UNSPECIFIED`.
793
+ # @param [String] request_metadata_locale
794
+ # Locale to use for the current request.
194
795
  # @param [String] address
195
- # The address to use for sorting the company's addresses by proximity. If not
196
- # given, the geo-located address of the request is used. Used when order_by is
197
- # set.
198
- # @param [String] fields
199
- # Selector specifying which fields to include in a partial response.
796
+ # The address to use for sorting the company's addresses by proximity.
797
+ # If not given, the geo-located address of the request is used.
798
+ # Used when order_by is set.
200
799
  # @param [String] quota_user
201
800
  # Available to use for quota purposes for server-side applications. Can be any
202
801
  # arbitrary string assigned to a user, but should not exceed 40 characters.
802
+ # @param [String] fields
803
+ # Selector specifying which fields to include in a partial response.
203
804
  # @param [Google::Apis::RequestOptions] options
204
805
  # Request-specific options
205
806
  #
@@ -212,104 +813,116 @@ module Google
212
813
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
213
814
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
214
815
  # @raise [Google::Apis::AuthorizationError] Authorization is required
215
- def get_company(company_id, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, view: nil, order_by: nil, currency_code: nil, address: nil, fields: nil, quota_user: nil, options: nil, &block)
816
+ def get_company(company_id, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, currency_code: nil, order_by: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, view: nil, request_metadata_locale: nil, address: nil, quota_user: nil, fields: nil, options: nil, &block)
216
817
  command = make_simple_command(:get, 'v2/companies/{companyId}', options)
217
818
  command.response_representation = Google::Apis::PartnersV2::GetCompanyResponse::Representation
218
819
  command.response_class = Google::Apis::PartnersV2::GetCompanyResponse
219
820
  command.params['companyId'] = company_id unless company_id.nil?
821
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
220
822
  command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
221
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
222
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
223
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
224
823
  command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
225
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
824
+ command.query['currencyCode'] = currency_code unless currency_code.nil?
825
+ command.query['orderBy'] = order_by unless order_by.nil?
226
826
  command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
827
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
828
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
227
829
  command.query['view'] = view unless view.nil?
228
- command.query['orderBy'] = order_by unless order_by.nil?
229
- command.query['currencyCode'] = currency_code unless currency_code.nil?
830
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
230
831
  command.query['address'] = address unless address.nil?
231
- command.query['fields'] = fields unless fields.nil?
232
832
  command.query['quotaUser'] = quota_user unless quota_user.nil?
833
+ command.query['fields'] = fields unless fields.nil?
233
834
  execute_or_queue_command(command, &block)
234
835
  end
235
836
 
236
837
  # Lists companies.
838
+ # @param [Array<String>, String] industries
839
+ # List of industries the company can help with.
840
+ # @param [String] website_url
841
+ # Website URL that will help to find a better matched company.
842
+ # .
843
+ # @param [Array<String>, String] gps_motivations
844
+ # List of reasons for using Google Partner Search to get companies.
845
+ # @param [Array<String>, String] language_codes
846
+ # List of language codes that company can support. Only primary language
847
+ # subtags are accepted as defined by
848
+ # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
849
+ # (IETF BCP 47, "Tags for Identifying Languages").
850
+ # @param [Fixnum] page_size
851
+ # Requested page size. Server may return fewer companies than requested.
852
+ # If unspecified, server picks an appropriate default.
237
853
  # @param [String] request_metadata_user_overrides_ip_address
238
854
  # IP address to use instead of the user's geo-located IP address.
855
+ # @param [Array<String>, String] request_metadata_experiment_ids
856
+ # Experiment IDs the current request belongs to.
857
+ # @param [String] order_by
858
+ # How to order addresses within the returned companies. Currently, only
859
+ # `address` and `address desc` is supported which will sorted by closest to
860
+ # farthest in distance from given address and farthest to closest distance
861
+ # from given address respectively.
862
+ # @param [Array<String>, String] specializations
863
+ # List of specializations that the returned agencies should provide. If this
864
+ # is not empty, any returned agency must have at least one of these
865
+ # specializations, or one of the services in the "services" field.
866
+ # @param [String] max_monthly_budget_currency_code
867
+ # The 3-letter currency code defined in ISO 4217.
868
+ # @param [String] min_monthly_budget_currency_code
869
+ # The 3-letter currency code defined in ISO 4217.
239
870
  # @param [String] request_metadata_user_overrides_user_id
240
871
  # Logged-in user ID to impersonate instead of the user's ID.
872
+ # @param [String] view
873
+ # The view of the `Company` resource to be returned. This must not be
874
+ # `COMPANY_VIEW_UNSPECIFIED`.
875
+ # @param [String] address
876
+ # The address to use when searching for companies.
877
+ # If not given, the geo-located address of the request is used.
241
878
  # @param [String] request_metadata_locale
242
879
  # Locale to use for the current request.
243
- # @param [String] request_metadata_partners_session_id
244
- # Google Partners session ID.
245
- # @param [Array<String>, String] request_metadata_experiment_ids
246
- # Experiment IDs the current request belongs to.
880
+ # @param [String] min_monthly_budget_units
881
+ # The whole units of the amount.
882
+ # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
883
+ # @param [Fixnum] max_monthly_budget_nanos
884
+ # Number of nano (10^-9) units of the amount.
885
+ # The value must be between -999,999,999 and +999,999,999 inclusive.
886
+ # If `units` is positive, `nanos` must be positive or zero.
887
+ # If `units` is zero, `nanos` can be positive, zero, or negative.
888
+ # If `units` is negative, `nanos` must be negative or zero.
889
+ # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
890
+ # @param [Array<String>, String] services
891
+ # List of services that the returned agencies should provide. If this is
892
+ # not empty, any returned agency must have at least one of these services,
893
+ # or one of the specializations in the "specializations" field.
247
894
  # @param [String] request_metadata_traffic_source_traffic_source_id
248
- # Identifier to indicate where the traffic comes from. An identifier has
249
- # multiple letters created by a team which redirected the traffic to us.
895
+ # Identifier to indicate where the traffic comes from.
896
+ # An identifier has multiple letters created by a team which redirected the
897
+ # traffic to us.
898
+ # @param [String] max_monthly_budget_units
899
+ # The whole units of the amount.
900
+ # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
901
+ # @param [Fixnum] min_monthly_budget_nanos
902
+ # Number of nano (10^-9) units of the amount.
903
+ # The value must be between -999,999,999 and +999,999,999 inclusive.
904
+ # If `units` is positive, `nanos` must be positive or zero.
905
+ # If `units` is zero, `nanos` can be positive, zero, or negative.
906
+ # If `units` is negative, `nanos` must be negative or zero.
907
+ # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
250
908
  # @param [String] request_metadata_traffic_source_traffic_sub_id
251
- # Second level identifier to indicate where the traffic comes from. An
252
- # identifier has multiple letters created by a team which redirected the traffic
253
- # to us.
254
- # @param [Fixnum] page_size
255
- # Requested page size. Server may return fewer companies than requested. If
256
- # unspecified, server picks an appropriate default.
257
- # @param [String] page_token
258
- # A token identifying a page of results that the server returns. Typically, this
259
- # is the value of `ListCompaniesResponse.next_page_token` returned from the
260
- # previous call to ListCompanies.
909
+ # Second level identifier to indicate where the traffic comes from.
910
+ # An identifier has multiple letters created by a team which redirected the
911
+ # traffic to us.
912
+ # @param [String] request_metadata_partners_session_id
913
+ # Google Partners session ID.
261
914
  # @param [String] company_name
262
915
  # Company name to search for.
263
- # @param [String] view
264
- # The view of the `Company` resource to be returned. This must not be `
265
- # COMPANY_VIEW_UNSPECIFIED`.
266
- # @param [String] min_monthly_budget_currency_code
267
- # The 3-letter currency code defined in ISO 4217.
268
- # @param [String] min_monthly_budget_units
269
- # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
270
- # 1 unit is one US dollar.
271
- # @param [Fixnum] min_monthly_budget_nanos
272
- # Number of nano (10^-9) units of the amount. The value must be between -999,999,
273
- # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
274
- # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
275
- # negative. If `units` is negative, `nanos` must be negative or zero. For
276
- # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
277
- # @param [String] max_monthly_budget_currency_code
278
- # The 3-letter currency code defined in ISO 4217.
279
- # @param [String] max_monthly_budget_units
280
- # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
281
- # 1 unit is one US dollar.
282
- # @param [Fixnum] max_monthly_budget_nanos
283
- # Number of nano (10^-9) units of the amount. The value must be between -999,999,
284
- # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
285
- # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
286
- # negative. If `units` is negative, `nanos` must be negative or zero. For
287
- # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
288
- # @param [Array<String>, String] industries
289
- # List of industries the company can help with.
290
- # @param [Array<String>, String] services
291
- # List of services the company can help with.
292
- # @param [Array<String>, String] language_codes
293
- # List of language codes that company can support. Only primary language subtags
294
- # are accepted as defined by BCP 47 (IETF BCP 47, "Tags for Identifying
295
- # Languages").
296
- # @param [String] address
297
- # The address to use when searching for companies. If not given, the geo-located
298
- # address of the request is used.
299
- # @param [String] order_by
300
- # How to order addresses within the returned companies. Currently, only `address`
301
- # and `address desc` is supported which will sorted by closest to farthest in
302
- # distance from given address and farthest to closest distance from given
303
- # address respectively.
304
- # @param [Array<String>, String] gps_motivations
305
- # List of reasons for using Google Partner Search to get companies.
306
- # @param [String] website_url
307
- # Website URL that will help to find a better matched company. .
308
- # @param [String] fields
309
- # Selector specifying which fields to include in a partial response.
916
+ # @param [String] page_token
917
+ # A token identifying a page of results that the server returns.
918
+ # Typically, this is the value of `ListCompaniesResponse.next_page_token`
919
+ # returned from the previous call to
920
+ # ListCompanies.
310
921
  # @param [String] quota_user
311
922
  # Available to use for quota purposes for server-side applications. Can be any
312
923
  # arbitrary string assigned to a user, but should not exceed 40 characters.
924
+ # @param [String] fields
925
+ # Selector specifying which fields to include in a partial response.
313
926
  # @param [Google::Apis::RequestOptions] options
314
927
  # Request-specific options
315
928
  #
@@ -322,36 +935,37 @@ module Google
322
935
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
323
936
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
324
937
  # @raise [Google::Apis::AuthorizationError] Authorization is required
325
- def list_companies(request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, page_size: nil, page_token: nil, company_name: nil, view: nil, min_monthly_budget_currency_code: nil, min_monthly_budget_units: nil, min_monthly_budget_nanos: nil, max_monthly_budget_currency_code: nil, max_monthly_budget_units: nil, max_monthly_budget_nanos: nil, industries: nil, services: nil, language_codes: nil, address: nil, order_by: nil, gps_motivations: nil, website_url: nil, fields: nil, quota_user: nil, options: nil, &block)
938
+ def list_companies(industries: nil, website_url: nil, gps_motivations: nil, language_codes: nil, page_size: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, order_by: nil, specializations: nil, max_monthly_budget_currency_code: nil, min_monthly_budget_currency_code: nil, request_metadata_user_overrides_user_id: nil, view: nil, address: nil, request_metadata_locale: nil, min_monthly_budget_units: nil, max_monthly_budget_nanos: nil, services: nil, request_metadata_traffic_source_traffic_source_id: nil, max_monthly_budget_units: nil, min_monthly_budget_nanos: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_partners_session_id: nil, company_name: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
326
939
  command = make_simple_command(:get, 'v2/companies', options)
327
940
  command.response_representation = Google::Apis::PartnersV2::ListCompaniesResponse::Representation
328
941
  command.response_class = Google::Apis::PartnersV2::ListCompaniesResponse
942
+ command.query['industries'] = industries unless industries.nil?
943
+ command.query['websiteUrl'] = website_url unless website_url.nil?
944
+ command.query['gpsMotivations'] = gps_motivations unless gps_motivations.nil?
945
+ command.query['languageCodes'] = language_codes unless language_codes.nil?
946
+ command.query['pageSize'] = page_size unless page_size.nil?
329
947
  command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
330
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
331
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
332
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
333
948
  command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
334
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
335
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
336
- command.query['pageSize'] = page_size unless page_size.nil?
337
- command.query['pageToken'] = page_token unless page_token.nil?
338
- command.query['companyName'] = company_name unless company_name.nil?
339
- command.query['view'] = view unless view.nil?
949
+ command.query['orderBy'] = order_by unless order_by.nil?
950
+ command.query['specializations'] = specializations unless specializations.nil?
951
+ command.query['maxMonthlyBudget.currencyCode'] = max_monthly_budget_currency_code unless max_monthly_budget_currency_code.nil?
340
952
  command.query['minMonthlyBudget.currencyCode'] = min_monthly_budget_currency_code unless min_monthly_budget_currency_code.nil?
953
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
954
+ command.query['view'] = view unless view.nil?
955
+ command.query['address'] = address unless address.nil?
956
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
341
957
  command.query['minMonthlyBudget.units'] = min_monthly_budget_units unless min_monthly_budget_units.nil?
342
- command.query['minMonthlyBudget.nanos'] = min_monthly_budget_nanos unless min_monthly_budget_nanos.nil?
343
- command.query['maxMonthlyBudget.currencyCode'] = max_monthly_budget_currency_code unless max_monthly_budget_currency_code.nil?
344
- command.query['maxMonthlyBudget.units'] = max_monthly_budget_units unless max_monthly_budget_units.nil?
345
958
  command.query['maxMonthlyBudget.nanos'] = max_monthly_budget_nanos unless max_monthly_budget_nanos.nil?
346
- command.query['industries'] = industries unless industries.nil?
347
959
  command.query['services'] = services unless services.nil?
348
- command.query['languageCodes'] = language_codes unless language_codes.nil?
349
- command.query['address'] = address unless address.nil?
350
- command.query['orderBy'] = order_by unless order_by.nil?
351
- command.query['gpsMotivations'] = gps_motivations unless gps_motivations.nil?
352
- command.query['websiteUrl'] = website_url unless website_url.nil?
353
- command.query['fields'] = fields unless fields.nil?
960
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
961
+ command.query['maxMonthlyBudget.units'] = max_monthly_budget_units unless max_monthly_budget_units.nil?
962
+ command.query['minMonthlyBudget.nanos'] = min_monthly_budget_nanos unless min_monthly_budget_nanos.nil?
963
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
964
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
965
+ command.query['companyName'] = company_name unless company_name.nil?
966
+ command.query['pageToken'] = page_token unless page_token.nil?
354
967
  command.query['quotaUser'] = quota_user unless quota_user.nil?
968
+ command.query['fields'] = fields unless fields.nil?
355
969
  execute_or_queue_command(command, &block)
356
970
  end
357
971
 
@@ -359,11 +973,11 @@ module Google
359
973
  # @param [String] company_id
360
974
  # The ID of the company to contact.
361
975
  # @param [Google::Apis::PartnersV2::CreateLeadRequest] create_lead_request_object
362
- # @param [String] fields
363
- # Selector specifying which fields to include in a partial response.
364
976
  # @param [String] quota_user
365
977
  # Available to use for quota purposes for server-side applications. Can be any
366
978
  # arbitrary string assigned to a user, but should not exceed 40 characters.
979
+ # @param [String] fields
980
+ # Selector specifying which fields to include in a partial response.
367
981
  # @param [Google::Apis::RequestOptions] options
368
982
  # Request-specific options
369
983
  #
@@ -376,15 +990,132 @@ module Google
376
990
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
377
991
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
378
992
  # @raise [Google::Apis::AuthorizationError] Authorization is required
379
- def create_lead(company_id, create_lead_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
993
+ def create_lead(company_id, create_lead_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
380
994
  command = make_simple_command(:post, 'v2/companies/{companyId}/leads', options)
381
995
  command.request_representation = Google::Apis::PartnersV2::CreateLeadRequest::Representation
382
996
  command.request_object = create_lead_request_object
383
997
  command.response_representation = Google::Apis::PartnersV2::CreateLeadResponse::Representation
384
998
  command.response_class = Google::Apis::PartnersV2::CreateLeadResponse
385
999
  command.params['companyId'] = company_id unless company_id.nil?
1000
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1001
+ command.query['fields'] = fields unless fields.nil?
1002
+ execute_or_queue_command(command, &block)
1003
+ end
1004
+
1005
+ # Logs a user event.
1006
+ # @param [Google::Apis::PartnersV2::LogUserEventRequest] log_user_event_request_object
1007
+ # @param [String] quota_user
1008
+ # Available to use for quota purposes for server-side applications. Can be any
1009
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1010
+ # @param [String] fields
1011
+ # Selector specifying which fields to include in a partial response.
1012
+ # @param [Google::Apis::RequestOptions] options
1013
+ # Request-specific options
1014
+ #
1015
+ # @yield [result, err] Result & error if block supplied
1016
+ # @yieldparam result [Google::Apis::PartnersV2::LogUserEventResponse] parsed result object
1017
+ # @yieldparam err [StandardError] error object if request failed
1018
+ #
1019
+ # @return [Google::Apis::PartnersV2::LogUserEventResponse]
1020
+ #
1021
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1022
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1023
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1024
+ def log_user_event(log_user_event_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1025
+ command = make_simple_command(:post, 'v2/userEvents:log', options)
1026
+ command.request_representation = Google::Apis::PartnersV2::LogUserEventRequest::Representation
1027
+ command.request_object = log_user_event_request_object
1028
+ command.response_representation = Google::Apis::PartnersV2::LogUserEventResponse::Representation
1029
+ command.response_class = Google::Apis::PartnersV2::LogUserEventResponse
1030
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1031
+ command.query['fields'] = fields unless fields.nil?
1032
+ execute_or_queue_command(command, &block)
1033
+ end
1034
+
1035
+ # Logs a generic message from the client, such as
1036
+ # `Failed to render component`, `Profile page is running slow`,
1037
+ # `More than 500 users have accessed this result.`, etc.
1038
+ # @param [Google::Apis::PartnersV2::LogMessageRequest] log_message_request_object
1039
+ # @param [String] quota_user
1040
+ # Available to use for quota purposes for server-side applications. Can be any
1041
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1042
+ # @param [String] fields
1043
+ # Selector specifying which fields to include in a partial response.
1044
+ # @param [Google::Apis::RequestOptions] options
1045
+ # Request-specific options
1046
+ #
1047
+ # @yield [result, err] Result & error if block supplied
1048
+ # @yieldparam result [Google::Apis::PartnersV2::LogMessageResponse] parsed result object
1049
+ # @yieldparam err [StandardError] error object if request failed
1050
+ #
1051
+ # @return [Google::Apis::PartnersV2::LogMessageResponse]
1052
+ #
1053
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1054
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1055
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1056
+ def log_client_message_message(log_message_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1057
+ command = make_simple_command(:post, 'v2/clientMessages:log', options)
1058
+ command.request_representation = Google::Apis::PartnersV2::LogMessageRequest::Representation
1059
+ command.request_object = log_message_request_object
1060
+ command.response_representation = Google::Apis::PartnersV2::LogMessageResponse::Representation
1061
+ command.response_class = Google::Apis::PartnersV2::LogMessageResponse
1062
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
386
1063
  command.query['fields'] = fields unless fields.nil?
1064
+ execute_or_queue_command(command, &block)
1065
+ end
1066
+
1067
+ # Gets an Exam Token for a Partner's user to take an exam in the Exams System
1068
+ # @param [String] exam_type
1069
+ # The exam type we are requesting a token for.
1070
+ # @param [String] request_metadata_user_overrides_ip_address
1071
+ # IP address to use instead of the user's geo-located IP address.
1072
+ # @param [Array<String>, String] request_metadata_experiment_ids
1073
+ # Experiment IDs the current request belongs to.
1074
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
1075
+ # Second level identifier to indicate where the traffic comes from.
1076
+ # An identifier has multiple letters created by a team which redirected the
1077
+ # traffic to us.
1078
+ # @param [String] request_metadata_user_overrides_user_id
1079
+ # Logged-in user ID to impersonate instead of the user's ID.
1080
+ # @param [String] request_metadata_partners_session_id
1081
+ # Google Partners session ID.
1082
+ # @param [String] request_metadata_traffic_source_traffic_source_id
1083
+ # Identifier to indicate where the traffic comes from.
1084
+ # An identifier has multiple letters created by a team which redirected the
1085
+ # traffic to us.
1086
+ # @param [String] request_metadata_locale
1087
+ # Locale to use for the current request.
1088
+ # @param [String] quota_user
1089
+ # Available to use for quota purposes for server-side applications. Can be any
1090
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1091
+ # @param [String] fields
1092
+ # Selector specifying which fields to include in a partial response.
1093
+ # @param [Google::Apis::RequestOptions] options
1094
+ # Request-specific options
1095
+ #
1096
+ # @yield [result, err] Result & error if block supplied
1097
+ # @yieldparam result [Google::Apis::PartnersV2::ExamToken] parsed result object
1098
+ # @yieldparam err [StandardError] error object if request failed
1099
+ #
1100
+ # @return [Google::Apis::PartnersV2::ExamToken]
1101
+ #
1102
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1103
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1104
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1105
+ def get_exam_token(exam_type, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, quota_user: nil, fields: nil, options: nil, &block)
1106
+ command = make_simple_command(:get, 'v2/exams/{examType}/token', options)
1107
+ command.response_representation = Google::Apis::PartnersV2::ExamToken::Representation
1108
+ command.response_class = Google::Apis::PartnersV2::ExamToken
1109
+ command.params['examType'] = exam_type unless exam_type.nil?
1110
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
1111
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
1112
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
1113
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
1114
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
1115
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
1116
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
387
1117
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1118
+ command.query['fields'] = fields unless fields.nil?
388
1119
  execute_or_queue_command(command, &block)
389
1120
  end
390
1121