google-api-client 0.10.3 → 0.11.0

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