google-api-client 0.10.3 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (385) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +12 -18
  3. data/CHANGELOG.md +22 -2
  4. data/Gemfile +5 -7
  5. data/MIGRATING.md +33 -0
  6. data/README.md +10 -2
  7. data/Rakefile +1 -0
  8. data/bin/generate-api +7 -1
  9. data/dl.rb +0 -0
  10. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
  11. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
  12. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
  16. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
  17. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
  18. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
  19. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
  20. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
  21. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
  22. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
  23. data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
  24. data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
  25. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
  26. data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
  27. data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
  28. data/generated/google/apis/admin_directory_v1/service.rb +1 -0
  29. data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
  30. data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
  31. data/generated/google/apis/admin_reports_v1/service.rb +1 -0
  32. data/generated/google/apis/adsense_v1_4.rb +1 -1
  33. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  34. data/generated/google/apis/adsense_v1_4/representations.rb +2 -2
  35. data/generated/google/apis/adsense_v1_4/service.rb +1 -0
  36. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  37. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
  38. data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
  40. data/generated/google/apis/analytics_v3/classes.rb +10 -10
  41. data/generated/google/apis/analytics_v3/representations.rb +10 -10
  42. data/generated/google/apis/analytics_v3/service.rb +1 -0
  43. data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
  44. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  45. data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
  46. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  47. data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
  48. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
  49. data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
  52. data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
  53. data/generated/google/apis/appengine_v1/classes.rb +2 -2
  54. data/generated/google/apis/appengine_v1/representations.rb +2 -2
  55. data/generated/google/apis/appengine_v1/service.rb +1 -0
  56. data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
  57. data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
  58. data/generated/google/apis/appsactivity_v1/service.rb +1 -0
  59. data/generated/google/apis/appsmarket_v2.rb +35 -0
  60. data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
  61. data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
  62. data/generated/google/apis/appsmarket_v2/service.rb +187 -0
  63. data/generated/google/apis/appstate_v1.rb +1 -1
  64. data/generated/google/apis/appstate_v1/service.rb +1 -0
  65. data/generated/google/apis/bigquery_v2/classes.rb +39 -39
  66. data/generated/google/apis/bigquery_v2/representations.rb +38 -38
  67. data/generated/google/apis/bigquery_v2/service.rb +3 -2
  68. data/generated/google/apis/blogger_v3/classes.rb +2 -2
  69. data/generated/google/apis/blogger_v3/representations.rb +2 -2
  70. data/generated/google/apis/blogger_v3/service.rb +1 -0
  71. data/generated/google/apis/books_v1/classes.rb +5 -5
  72. data/generated/google/apis/books_v1/representations.rb +4 -4
  73. data/generated/google/apis/books_v1/service.rb +1 -0
  74. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  75. data/generated/google/apis/calendar_v3/representations.rb +1 -1
  76. data/generated/google/apis/calendar_v3/service.rb +1 -0
  77. data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
  78. data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
  79. data/generated/google/apis/civicinfo_v2/service.rb +2 -1
  80. data/generated/google/apis/classroom_v1/service.rb +1 -0
  81. data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
  82. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  83. data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
  84. data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
  85. data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
  86. data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
  87. data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
  88. data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
  89. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  90. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
  91. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
  92. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
  93. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
  94. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
  95. data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
  96. data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
  97. data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
  98. data/generated/google/apis/cloudkms_v1/service.rb +168 -167
  99. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
  100. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
  101. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
  102. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  103. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
  104. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
  105. data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
  106. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
  107. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
  108. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
  109. data/generated/google/apis/cloudtrace_v1.rb +3 -3
  110. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  111. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  112. data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
  113. data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
  114. data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
  115. data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
  116. data/generated/google/apis/compute_beta/classes.rb +52 -52
  117. data/generated/google/apis/compute_beta/representations.rb +52 -52
  118. data/generated/google/apis/compute_beta/service.rb +2 -1
  119. data/generated/google/apis/compute_v1/classes.rb +48 -48
  120. data/generated/google/apis/compute_v1/representations.rb +48 -48
  121. data/generated/google/apis/compute_v1/service.rb +2 -1
  122. data/generated/google/apis/container_v1/service.rb +1 -0
  123. data/generated/google/apis/content_v2.rb +1 -1
  124. data/generated/google/apis/content_v2/classes.rb +38 -660
  125. data/generated/google/apis/content_v2/representations.rb +37 -303
  126. data/generated/google/apis/content_v2/service.rb +63 -279
  127. data/generated/google/apis/customsearch_v1/classes.rb +2 -2
  128. data/generated/google/apis/customsearch_v1/representations.rb +2 -2
  129. data/generated/google/apis/customsearch_v1/service.rb +1 -0
  130. data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
  131. data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
  132. data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
  133. data/generated/google/apis/dataproc_v1/classes.rb +395 -395
  134. data/generated/google/apis/dataproc_v1/representations.rb +91 -91
  135. data/generated/google/apis/dataproc_v1/service.rb +356 -355
  136. data/generated/google/apis/datastore_v1/classes.rb +506 -506
  137. data/generated/google/apis/datastore_v1/representations.rb +147 -147
  138. data/generated/google/apis/datastore_v1/service.rb +46 -45
  139. data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
  140. data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
  141. data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
  142. data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
  143. data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
  144. data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
  145. data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
  146. data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
  147. data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
  148. data/generated/google/apis/discovery_v1/service.rb +1 -0
  149. data/generated/google/apis/dns_v1/classes.rb +2 -2
  150. data/generated/google/apis/dns_v1/representations.rb +2 -2
  151. data/generated/google/apis/dns_v1/service.rb +1 -0
  152. data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
  153. data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
  154. data/generated/google/apis/dns_v2beta1/service.rb +1 -0
  155. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
  156. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
  157. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
  158. data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
  159. data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
  160. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
  161. data/generated/google/apis/drive_v2/classes.rb +17 -17
  162. data/generated/google/apis/drive_v2/representations.rb +17 -17
  163. data/generated/google/apis/drive_v2/service.rb +5 -4
  164. data/generated/google/apis/drive_v3/classes.rb +13 -13
  165. data/generated/google/apis/drive_v3/representations.rb +12 -12
  166. data/generated/google/apis/drive_v3/service.rb +1 -0
  167. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  168. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
  169. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
  170. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
  171. data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
  172. data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
  173. data/generated/google/apis/firebaserules_v1/service.rb +1 -0
  174. data/generated/google/apis/fitness_v1/classes.rb +18 -18
  175. data/generated/google/apis/fitness_v1/representations.rb +18 -18
  176. data/generated/google/apis/fitness_v1/service.rb +6 -5
  177. data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
  178. data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
  179. data/generated/google/apis/fusiontables_v2/service.rb +1 -0
  180. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  181. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  182. data/generated/google/apis/games_configuration_v1configuration/representations.rb +2 -2
  183. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
  184. data/generated/google/apis/games_management_v1management.rb +1 -1
  185. data/generated/google/apis/games_management_v1management/classes.rb +6 -6
  186. data/generated/google/apis/games_management_v1management/representations.rb +6 -6
  187. data/generated/google/apis/games_management_v1management/service.rb +1 -0
  188. data/generated/google/apis/games_v1.rb +1 -1
  189. data/generated/google/apis/games_v1/classes.rb +47 -47
  190. data/generated/google/apis/games_v1/representations.rb +47 -47
  191. data/generated/google/apis/games_v1/service.rb +58 -57
  192. data/generated/google/apis/genomics_v1.rb +6 -6
  193. data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
  194. data/generated/google/apis/genomics_v1/representations.rb +487 -487
  195. data/generated/google/apis/genomics_v1/service.rb +1188 -1187
  196. data/generated/google/apis/gmail_v1/classes.rb +11 -11
  197. data/generated/google/apis/gmail_v1/representations.rb +11 -11
  198. data/generated/google/apis/gmail_v1/service.rb +2 -1
  199. data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
  200. data/generated/google/apis/groupssettings_v1/service.rb +1 -0
  201. data/generated/google/apis/iam_v1/classes.rb +437 -437
  202. data/generated/google/apis/iam_v1/representations.rb +95 -95
  203. data/generated/google/apis/iam_v1/service.rb +87 -86
  204. data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
  205. data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
  206. data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
  207. data/generated/google/apis/kgsearch_v1/service.rb +9 -8
  208. data/generated/google/apis/language_v1.rb +1 -1
  209. data/generated/google/apis/language_v1/classes.rb +245 -245
  210. data/generated/google/apis/language_v1/representations.rb +65 -65
  211. data/generated/google/apis/language_v1/service.rb +1 -0
  212. data/generated/google/apis/language_v1beta1.rb +1 -1
  213. data/generated/google/apis/language_v1beta1/classes.rb +277 -277
  214. data/generated/google/apis/language_v1beta1/representations.rb +83 -83
  215. data/generated/google/apis/language_v1beta1/service.rb +31 -30
  216. data/generated/google/apis/licensing_v1/service.rb +1 -0
  217. data/generated/google/apis/logging_v2/classes.rb +408 -408
  218. data/generated/google/apis/logging_v2/representations.rb +93 -93
  219. data/generated/google/apis/logging_v2/service.rb +408 -407
  220. data/generated/google/apis/logging_v2beta1.rb +3 -3
  221. data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
  222. data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
  223. data/generated/google/apis/logging_v2beta1/service.rb +89 -88
  224. data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
  225. data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
  226. data/generated/google/apis/manufacturers_v1/service.rb +1 -0
  227. data/generated/google/apis/mirror_v1/service.rb +1 -0
  228. data/generated/google/apis/ml_v1/classes.rb +1185 -1185
  229. data/generated/google/apis/ml_v1/representations.rb +171 -171
  230. data/generated/google/apis/ml_v1/service.rb +282 -281
  231. data/generated/google/apis/monitoring_v3.rb +3 -3
  232. data/generated/google/apis/monitoring_v3/classes.rb +334 -334
  233. data/generated/google/apis/monitoring_v3/representations.rb +86 -86
  234. data/generated/google/apis/monitoring_v3/service.rb +344 -343
  235. data/generated/google/apis/mybusiness_v3/service.rb +1 -0
  236. data/generated/google/apis/oauth2_v2/service.rb +1 -0
  237. data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
  238. data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
  239. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
  240. data/generated/google/apis/partners_v2/classes.rb +1466 -1466
  241. data/generated/google/apis/partners_v2/representations.rb +371 -371
  242. data/generated/google/apis/partners_v2/service.rb +530 -529
  243. data/generated/google/apis/people_v1.rb +4 -4
  244. data/generated/google/apis/people_v1/classes.rb +1009 -1009
  245. data/generated/google/apis/people_v1/representations.rb +249 -249
  246. data/generated/google/apis/people_v1/service.rb +13 -12
  247. data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
  248. data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
  249. data/generated/google/apis/plus_domains_v1/service.rb +1 -0
  250. data/generated/google/apis/plus_v1/service.rb +1 -0
  251. data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
  252. data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
  253. data/generated/google/apis/prediction_v1_6/service.rb +1 -0
  254. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
  255. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
  256. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
  257. data/generated/google/apis/pubsub_v1/classes.rb +99 -99
  258. data/generated/google/apis/pubsub_v1/representations.rb +25 -25
  259. data/generated/google/apis/pubsub_v1/service.rb +236 -235
  260. data/generated/google/apis/qpx_express_v1/service.rb +1 -0
  261. data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
  262. data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
  263. data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
  264. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
  265. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
  266. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
  267. data/generated/google/apis/reseller_v1/classes.rb +5 -5
  268. data/generated/google/apis/reseller_v1/representations.rb +5 -5
  269. data/generated/google/apis/reseller_v1/service.rb +1 -0
  270. data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
  271. data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
  272. data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
  273. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  274. data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
  275. data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
  276. data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
  277. data/generated/google/apis/script_v1.rb +18 -18
  278. data/generated/google/apis/script_v1/classes.rb +84 -84
  279. data/generated/google/apis/script_v1/representations.rb +18 -18
  280. data/generated/google/apis/script_v1/service.rb +11 -10
  281. data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
  282. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  283. data/generated/google/apis/searchconsole_v1/service.rb +11 -10
  284. data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
  285. data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
  286. data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
  287. data/generated/google/apis/servicemanagement_v1.rb +3 -3
  288. data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
  289. data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
  290. data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
  291. data/generated/google/apis/serviceuser_v1.rb +3 -3
  292. data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
  293. data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
  294. data/generated/google/apis/serviceuser_v1/service.rb +47 -46
  295. data/generated/google/apis/sheets_v4.rb +1 -1
  296. data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
  297. data/generated/google/apis/sheets_v4/representations.rb +859 -859
  298. data/generated/google/apis/sheets_v4/service.rb +180 -179
  299. data/generated/google/apis/site_verification_v1/service.rb +1 -0
  300. data/generated/google/apis/slides_v1.rb +1 -1
  301. data/generated/google/apis/slides_v1/classes.rb +2856 -2856
  302. data/generated/google/apis/slides_v1/representations.rb +683 -683
  303. data/generated/google/apis/slides_v1/service.rb +27 -26
  304. data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
  305. data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
  306. data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
  307. data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
  308. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  309. data/generated/google/apis/spanner_v1/service.rb +374 -373
  310. data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
  311. data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
  312. data/generated/google/apis/speech_v1beta1/service.rb +27 -26
  313. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
  314. data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
  315. data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
  316. data/generated/google/apis/storage_v1.rb +1 -1
  317. data/generated/google/apis/storage_v1/classes.rb +11 -11
  318. data/generated/google/apis/storage_v1/representations.rb +11 -11
  319. data/generated/google/apis/storage_v1/service.rb +65 -64
  320. data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
  321. data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
  322. data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
  323. data/generated/google/apis/surveys_v2/classes.rb +4 -4
  324. data/generated/google/apis/surveys_v2/representations.rb +4 -4
  325. data/generated/google/apis/surveys_v2/service.rb +1 -0
  326. data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
  327. data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
  328. data/generated/google/apis/tagmanager_v1/service.rb +1 -0
  329. data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
  330. data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
  331. data/generated/google/apis/tagmanager_v2/service.rb +1 -0
  332. data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
  333. data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
  334. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
  335. data/generated/google/apis/tasks_v1/service.rb +3 -2
  336. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  337. data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
  338. data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
  339. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
  340. data/generated/google/apis/tracing_v1/classes.rb +421 -421
  341. data/generated/google/apis/tracing_v1/representations.rb +86 -86
  342. data/generated/google/apis/tracing_v1/service.rb +60 -59
  343. data/generated/google/apis/translate_v2/service.rb +1 -0
  344. data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
  345. data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
  346. data/generated/google/apis/urlshortener_v1/service.rb +1 -0
  347. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  348. data/generated/google/apis/vision_v1/representations.rb +184 -184
  349. data/generated/google/apis/vision_v1/service.rb +11 -10
  350. data/generated/google/apis/webfonts_v1/service.rb +1 -0
  351. data/generated/google/apis/webmasters_v3/classes.rb +5 -5
  352. data/generated/google/apis/webmasters_v3/representations.rb +5 -5
  353. data/generated/google/apis/webmasters_v3/service.rb +1 -0
  354. data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
  355. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
  356. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
  357. data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
  358. data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
  359. data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
  360. data/generated/google/apis/youtube_v3/classes.rb +31 -31
  361. data/generated/google/apis/youtube_v3/representations.rb +31 -31
  362. data/generated/google/apis/youtube_v3/service.rb +2 -1
  363. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  364. data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
  365. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  366. data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
  367. data/google-api-client.gemspec +4 -6
  368. data/lib/google/apis/core/api_command.rb +8 -3
  369. data/lib/google/apis/core/base_service.rb +47 -18
  370. data/lib/google/apis/core/batch.rb +13 -18
  371. data/lib/google/apis/core/composite_io.rb +97 -0
  372. data/lib/google/apis/core/download.rb +24 -20
  373. data/lib/google/apis/core/http_command.rb +49 -38
  374. data/lib/google/apis/core/json_representation.rb +5 -1
  375. data/lib/google/apis/core/multipart.rb +43 -95
  376. data/lib/google/apis/core/upload.rb +59 -84
  377. data/lib/google/apis/generator/model.rb +2 -0
  378. data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
  379. data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
  380. data/lib/google/apis/options.rb +24 -12
  381. data/lib/google/apis/version.rb +1 -1
  382. data/samples/web/Gemfile +0 -1
  383. metadata +39 -37
  384. data/lib/google/apis/core/http_client_adapter.rb +0 -82
  385. data/third_party/hurley_patches.rb +0 -103
@@ -33,25 +33,26 @@ module Google
33
33
  #
34
34
  # @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
35
35
  class AdExchangeBuyerIIService < Google::Apis::Core::BaseService
36
- # @return [String]
37
- # Available to use for quota purposes for server-side applications. Can be any
38
- # arbitrary string assigned to a user, but should not exceed 40 characters.
39
- attr_accessor :quota_user
40
-
41
36
  # @return [String]
42
37
  # API key. Your API key identifies your project and provides you with API access,
43
38
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
44
39
  attr_accessor :key
45
40
 
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
46
  def initialize
47
47
  super('https://adexchangebuyer.googleapis.com/', '')
48
+ @batch_path = 'batch'
48
49
  end
49
50
 
50
- # Gets a creative.
51
- # @param [String] account_id
52
- # The account the creative belongs to.
53
- # @param [String] creative_id
54
- # The ID of the creative to retrieve.
51
+ # Gets a client buyer with a given client account ID.
52
+ # @param [Fixnum] account_id
53
+ # Numerical account ID of the client's sponsor buyer. (required)
54
+ # @param [Fixnum] client_account_id
55
+ # Numerical account ID of the client buyer to retrieve. (required)
55
56
  # @param [String] quota_user
56
57
  # Available to use for quota purposes for server-side applications. Can be any
57
58
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -61,36 +62,37 @@ module Google
61
62
  # Request-specific options
62
63
  #
63
64
  # @yield [result, err] Result & error if block supplied
64
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
65
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
65
66
  # @yieldparam err [StandardError] error object if request failed
66
67
  #
67
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
68
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
68
69
  #
69
70
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
71
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
72
  # @raise [Google::Apis::AuthorizationError] Authorization is required
72
- def get_account_creative(account_id, creative_id, quota_user: nil, fields: nil, options: nil, &block)
73
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
74
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
75
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
73
+ def get_account_client(account_id, client_account_id, quota_user: nil, fields: nil, options: nil, &block)
74
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
75
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
76
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
76
77
  command.params['accountId'] = account_id unless account_id.nil?
77
- command.params['creativeId'] = creative_id unless creative_id.nil?
78
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
78
79
  command.query['quotaUser'] = quota_user unless quota_user.nil?
79
80
  command.query['fields'] = fields unless fields.nil?
80
81
  execute_or_queue_command(command, &block)
81
82
  end
82
83
 
83
- # Watches a creative. Will result in push notifications being sent to the
84
- # topic when the creative changes status.
85
- # @param [String] account_id
86
- # The account of the creative to watch.
87
- # @param [String] creative_id
88
- # The creative ID to watch for status changes.
89
- # Specify "-" to watch all creatives under the above account.
90
- # If both creative-level and account-level notifications are
91
- # sent, only a single notification will be sent to the
92
- # creative-level notification topic.
93
- # @param [Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest] watch_creative_request_object
84
+ # Lists all the clients for the current sponsor buyer.
85
+ # @param [Fixnum] account_id
86
+ # Unique numerical account ID of the sponsor buyer to list the clients for.
87
+ # @param [String] page_token
88
+ # A token identifying a page of results the server should return.
89
+ # Typically, this is the value of
90
+ # ListClientsResponse.nextPageToken
91
+ # returned from the previous call to the
92
+ # accounts.clients.list method.
93
+ # @param [Fixnum] page_size
94
+ # Requested page size. The server may return fewer clients than requested.
95
+ # If unspecified, the server will pick an appropriate default.
94
96
  # @param [String] quota_user
95
97
  # Available to use for quota purposes for server-side applications. Can be any
96
98
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -100,39 +102,33 @@ module Google
100
102
  # Request-specific options
101
103
  #
102
104
  # @yield [result, err] Result & error if block supplied
103
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
105
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse] parsed result object
104
106
  # @yieldparam err [StandardError] error object if request failed
105
107
  #
106
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
108
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse]
107
109
  #
108
110
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
109
111
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
110
112
  # @raise [Google::Apis::AuthorizationError] Authorization is required
111
- def watch_creative(account_id, creative_id, watch_creative_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
112
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:watch', options)
113
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest::Representation
114
- command.request_object = watch_creative_request_object
115
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
116
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
113
+ def list_account_clients(account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
114
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients', options)
115
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse::Representation
116
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse
117
117
  command.params['accountId'] = account_id unless account_id.nil?
118
- command.params['creativeId'] = creative_id unless creative_id.nil?
118
+ command.query['pageToken'] = page_token unless page_token.nil?
119
+ command.query['pageSize'] = page_size unless page_size.nil?
119
120
  command.query['quotaUser'] = quota_user unless quota_user.nil?
120
121
  command.query['fields'] = fields unless fields.nil?
121
122
  execute_or_queue_command(command, &block)
122
123
  end
123
124
 
124
- # Updates a creative.
125
- # @param [String] account_id
126
- # The account that this creative belongs to.
127
- # Can be used to filter the response of the
128
- # creatives.list
129
- # method.
130
- # @param [String] creative_id
131
- # The buyer-defined creative ID of this creative.
132
- # Can be used to filter the response of the
133
- # creatives.list
134
- # method.
135
- # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
125
+ # Updates an existing client buyer.
126
+ # @param [Fixnum] account_id
127
+ # Unique numerical account ID for the buyer of which the client buyer
128
+ # is a customer; the sponsor buyer to update a client for. (required)
129
+ # @param [Fixnum] client_account_id
130
+ # Unique numerical account ID of the client to update. (required)
131
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
136
132
  # @param [String] quota_user
137
133
  # Available to use for quota purposes for server-side applications. Can be any
138
134
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -142,57 +138,32 @@ module Google
142
138
  # Request-specific options
143
139
  #
144
140
  # @yield [result, err] Result & error if block supplied
145
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
141
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
146
142
  # @yieldparam err [StandardError] error object if request failed
147
143
  #
148
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
144
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
149
145
  #
150
146
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
151
147
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
152
148
  # @raise [Google::Apis::AuthorizationError] Authorization is required
153
- def update_account_creative(account_id, creative_id, creative_object = nil, quota_user: nil, fields: nil, options: nil, &block)
154
- command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
155
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
156
- command.request_object = creative_object
157
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
158
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
149
+ def update_account_client(account_id, client_account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
150
+ command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
151
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
152
+ command.request_object = client_object
153
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
154
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
159
155
  command.params['accountId'] = account_id unless account_id.nil?
160
- command.params['creativeId'] = creative_id unless creative_id.nil?
156
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
161
157
  command.query['quotaUser'] = quota_user unless quota_user.nil?
162
158
  command.query['fields'] = fields unless fields.nil?
163
159
  execute_or_queue_command(command, &block)
164
160
  end
165
161
 
166
- # Lists creatives.
167
- # @param [String] account_id
168
- # The account to list the creatives from.
169
- # Specify "-" to list all creatives the current user has access to.
170
- # @param [String] page_token
171
- # A token identifying a page of results the server should return.
172
- # Typically, this is the value of
173
- # ListCreativesResponse.next_page_token
174
- # returned from the previous call to 'ListCreatives' method.
175
- # @param [Fixnum] page_size
176
- # Requested page size. The server may return fewer creatives than requested
177
- # (due to timeout constraint) even if more are available via another call.
178
- # If unspecified, server will pick an appropriate default.
179
- # Acceptable values are 1 to 1000, inclusive.
180
- # @param [String] query
181
- # An optional query string to filter creatives. If no filter is specified,
182
- # all active creatives will be returned.
183
- # Supported queries are:
184
- # <ul>
185
- # <li>accountId=<i>account_id_string</i>
186
- # <li>creativeId=<i>creative_id_string</i>
187
- # <li>dealsStatus: `approved, conditionally_approved, disapproved,
188
- # not_checked`
189
- # <li>openAuctionStatus: `approved, conditionally_approved, disapproved,
190
- # not_checked`
191
- # <li>attribute: `a numeric attribute from the list of attributes`
192
- # <li>disapprovalReason: `a reason from DisapprovalReason
193
- # </ul>
194
- # Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:
195
- # unacceptable_content) OR attribute:47'
162
+ # Creates a new client buyer.
163
+ # @param [Fixnum] account_id
164
+ # Unique numerical account ID for the buyer of which the client buyer
165
+ # is a customer; the sponsor buyer to create a client for. (required)
166
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
196
167
  # @param [String] quota_user
197
168
  # Available to use for quota purposes for server-side applications. Can be any
198
169
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -202,37 +173,34 @@ module Google
202
173
  # Request-specific options
203
174
  #
204
175
  # @yield [result, err] Result & error if block supplied
205
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse] parsed result object
176
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
206
177
  # @yieldparam err [StandardError] error object if request failed
207
178
  #
208
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse]
179
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
209
180
  #
210
181
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
211
182
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
212
183
  # @raise [Google::Apis::AuthorizationError] Authorization is required
213
- def list_account_creatives(account_id, page_token: nil, page_size: nil, query: nil, quota_user: nil, fields: nil, options: nil, &block)
214
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives', options)
215
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse::Representation
216
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse
184
+ def create_account_client(account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
185
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients', options)
186
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
187
+ command.request_object = client_object
188
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
189
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
217
190
  command.params['accountId'] = account_id unless account_id.nil?
218
- command.query['pageToken'] = page_token unless page_token.nil?
219
- command.query['pageSize'] = page_size unless page_size.nil?
220
- command.query['query'] = query unless query.nil?
221
191
  command.query['quotaUser'] = quota_user unless quota_user.nil?
222
192
  command.query['fields'] = fields unless fields.nil?
223
193
  execute_or_queue_command(command, &block)
224
194
  end
225
195
 
226
- # Creates a creative.
227
- # @param [String] account_id
228
- # The account that this creative belongs to.
229
- # Can be used to filter the response of the
230
- # creatives.list
231
- # method.
232
- # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
233
- # @param [String] duplicate_id_mode
234
- # Indicates if multiple creatives can share an ID or not. Default is
235
- # NO_DUPLICATES (one ID per creative).
196
+ # Retrieves an existing client user invitation.
197
+ # @param [Fixnum] account_id
198
+ # Numerical account ID of the client's sponsor buyer. (required)
199
+ # @param [Fixnum] client_account_id
200
+ # Numerical account ID of the client buyer that the user invitation
201
+ # to be retrieved is associated with. (required)
202
+ # @param [Fixnum] invitation_id
203
+ # Numerical identifier of the user invitation to retrieve. (required)
236
204
  # @param [String] quota_user
237
205
  # Available to use for quota purposes for server-side applications. Can be any
238
206
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -242,35 +210,47 @@ module Google
242
210
  # Request-specific options
243
211
  #
244
212
  # @yield [result, err] Result & error if block supplied
245
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
213
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
246
214
  # @yieldparam err [StandardError] error object if request failed
247
215
  #
248
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
216
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
249
217
  #
250
218
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
251
219
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
252
220
  # @raise [Google::Apis::AuthorizationError] Authorization is required
253
- def create_account_creative(account_id, creative_object = nil, duplicate_id_mode: nil, quota_user: nil, fields: nil, options: nil, &block)
254
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives', options)
255
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
256
- command.request_object = creative_object
257
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
258
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
221
+ def get_account_client_invitation(account_id, client_account_id, invitation_id, quota_user: nil, fields: nil, options: nil, &block)
222
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', options)
223
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
224
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
259
225
  command.params['accountId'] = account_id unless account_id.nil?
260
- command.query['duplicateIdMode'] = duplicate_id_mode unless duplicate_id_mode.nil?
226
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
227
+ command.params['invitationId'] = invitation_id unless invitation_id.nil?
261
228
  command.query['quotaUser'] = quota_user unless quota_user.nil?
262
229
  command.query['fields'] = fields unless fields.nil?
263
230
  execute_or_queue_command(command, &block)
264
231
  end
265
232
 
266
- # Stops watching a creative. Will stop push notifications being sent to the
267
- # topics when the creative changes status.
268
- # @param [String] account_id
269
- # The account of the creative to stop notifications for.
270
- # @param [String] creative_id
271
- # The creative ID of the creative to stop notifications for.
272
- # Specify "-" to specify stopping account level notifications.
273
- # @param [Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest] stop_watching_creative_request_object
233
+ # Lists all the client users invitations for a client
234
+ # with a given account ID.
235
+ # @param [Fixnum] account_id
236
+ # Numerical account ID of the client's sponsor buyer. (required)
237
+ # @param [String] client_account_id
238
+ # Numerical account ID of the client buyer to list invitations for.
239
+ # (required)
240
+ # You must either specify a string representation of a
241
+ # numerical account identifier or the `-` character
242
+ # to list all the invitations for all the clients
243
+ # of a given sponsor buyer.
244
+ # @param [String] page_token
245
+ # A token identifying a page of results the server should return.
246
+ # Typically, this is the value of
247
+ # ListClientUserInvitationsResponse.nextPageToken
248
+ # returned from the previous call to the
249
+ # clients.invitations.list
250
+ # method.
251
+ # @param [Fixnum] page_size
252
+ # Requested page size. Server may return fewer clients than requested.
253
+ # If unspecified, server will pick an appropriate default.
274
254
  # @param [String] quota_user
275
255
  # Available to use for quota purposes for server-side applications. Can be any
276
256
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -280,33 +260,35 @@ module Google
280
260
  # Request-specific options
281
261
  #
282
262
  # @yield [result, err] Result & error if block supplied
283
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
263
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse] parsed result object
284
264
  # @yieldparam err [StandardError] error object if request failed
285
265
  #
286
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
266
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse]
287
267
  #
288
268
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
289
269
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
290
270
  # @raise [Google::Apis::AuthorizationError] Authorization is required
291
- def stop_watching_creative(account_id, creative_id, stop_watching_creative_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
292
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching', options)
293
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest::Representation
294
- command.request_object = stop_watching_creative_request_object
295
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
296
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
271
+ def list_account_client_invitations(account_id, client_account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
272
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
273
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation
274
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse
297
275
  command.params['accountId'] = account_id unless account_id.nil?
298
- command.params['creativeId'] = creative_id unless creative_id.nil?
276
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
277
+ command.query['pageToken'] = page_token unless page_token.nil?
278
+ command.query['pageSize'] = page_size unless page_size.nil?
299
279
  command.query['quotaUser'] = quota_user unless quota_user.nil?
300
280
  command.query['fields'] = fields unless fields.nil?
301
281
  execute_or_queue_command(command, &block)
302
282
  end
303
283
 
304
- # Associate an existing deal with a creative.
305
- # @param [String] account_id
306
- # The account the creative belongs to.
307
- # @param [String] creative_id
308
- # The ID of the creative associated with the deal.
309
- # @param [Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest] add_deal_association_request_object
284
+ # Creates and sends out an email invitation to access
285
+ # an Ad Exchange client buyer account.
286
+ # @param [Fixnum] account_id
287
+ # Numerical account ID of the client's sponsor buyer. (required)
288
+ # @param [Fixnum] client_account_id
289
+ # Numerical account ID of the client buyer that the user
290
+ # should be associated with. (required)
291
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_object
310
292
  # @param [String] quota_user
311
293
  # Available to use for quota purposes for server-side applications. Can be any
312
294
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -316,33 +298,47 @@ module Google
316
298
  # Request-specific options
317
299
  #
318
300
  # @yield [result, err] Result & error if block supplied
319
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
301
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
320
302
  # @yieldparam err [StandardError] error object if request failed
321
303
  #
322
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
304
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
323
305
  #
324
306
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
325
307
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
326
308
  # @raise [Google::Apis::AuthorizationError] Authorization is required
327
- def add_deal_association(account_id, creative_id, add_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
328
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add', options)
329
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest::Representation
330
- command.request_object = add_deal_association_request_object
331
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
332
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
309
+ def create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, quota_user: nil, fields: nil, options: nil, &block)
310
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
311
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
312
+ command.request_object = client_user_invitation_object
313
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
314
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
333
315
  command.params['accountId'] = account_id unless account_id.nil?
334
- command.params['creativeId'] = creative_id unless creative_id.nil?
316
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
335
317
  command.query['quotaUser'] = quota_user unless quota_user.nil?
336
318
  command.query['fields'] = fields unless fields.nil?
337
319
  execute_or_queue_command(command, &block)
338
320
  end
339
321
 
340
- # Remove the association between a deal and a creative.
341
- # @param [String] account_id
342
- # The account the creative belongs to.
343
- # @param [String] creative_id
344
- # The ID of the creative associated with the deal.
345
- # @param [Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest] remove_deal_association_request_object
322
+ # Lists all the known client users for a specified
323
+ # sponsor buyer account ID.
324
+ # @param [Fixnum] account_id
325
+ # Numerical account ID of the sponsor buyer of the client to list users for.
326
+ # (required)
327
+ # @param [String] client_account_id
328
+ # The account ID of the client buyer to list users for. (required)
329
+ # You must specify either a string representation of a
330
+ # numerical account identifier or the `-` character
331
+ # to list all the client users for all the clients
332
+ # of a given sponsor buyer.
333
+ # @param [String] page_token
334
+ # A token identifying a page of results the server should return.
335
+ # Typically, this is the value of
336
+ # ListClientUsersResponse.nextPageToken
337
+ # returned from the previous call to the
338
+ # accounts.clients.users.list method.
339
+ # @param [Fixnum] page_size
340
+ # Requested page size. The server may return fewer clients than requested.
341
+ # If unspecified, the server will pick an appropriate default.
346
342
  # @param [String] quota_user
347
343
  # Available to use for quota purposes for server-side applications. Can be any
348
344
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -352,56 +348,35 @@ module Google
352
348
  # Request-specific options
353
349
  #
354
350
  # @yield [result, err] Result & error if block supplied
355
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
351
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object
356
352
  # @yieldparam err [StandardError] error object if request failed
357
353
  #
358
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
354
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse]
359
355
  #
360
356
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
361
357
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
362
358
  # @raise [Google::Apis::AuthorizationError] Authorization is required
363
- def remove_deal_association(account_id, creative_id, remove_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
364
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove', options)
365
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest::Representation
366
- command.request_object = remove_deal_association_request_object
367
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
368
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
359
+ def list_account_client_users(account_id, client_account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
360
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options)
361
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation
362
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse
369
363
  command.params['accountId'] = account_id unless account_id.nil?
370
- command.params['creativeId'] = creative_id unless creative_id.nil?
364
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
365
+ command.query['pageToken'] = page_token unless page_token.nil?
366
+ command.query['pageSize'] = page_size unless page_size.nil?
371
367
  command.query['quotaUser'] = quota_user unless quota_user.nil?
372
368
  command.query['fields'] = fields unless fields.nil?
373
369
  execute_or_queue_command(command, &block)
374
370
  end
375
371
 
376
- # List all creative-deal associations.
377
- # @param [String] account_id
378
- # The account to list the associations from.
379
- # Specify "-" to list all creatives the current user has access to.
380
- # @param [String] creative_id
381
- # The creative ID to list the associations from.
382
- # Specify "-" to list all creatives under the above account.
383
- # @param [String] page_token
384
- # A token identifying a page of results the server should return.
385
- # Typically, this is the value of
386
- # ListDealAssociationsResponse.next_page_token
387
- # returned from the previous call to 'ListDealAssociations' method.
388
- # @param [Fixnum] page_size
389
- # Requested page size. Server may return fewer associations than requested.
390
- # If unspecified, server will pick an appropriate default.
391
- # @param [String] query
392
- # An optional query string to filter deal associations. If no filter is
393
- # specified, all associations will be returned.
394
- # Supported queries are:
395
- # <ul>
396
- # <li>accountId=<i>account_id_string</i>
397
- # <li>creativeId=<i>creative_id_string</i>
398
- # <li>dealsId=<i>deals_id_string</i>
399
- # <li>dealsStatus:`approved, conditionally_approved, disapproved,
400
- # not_checked`
401
- # <li>openAuctionStatus:`approved, conditionally_approved, disapproved,
402
- # not_checked`
403
- # </ul>
404
- # Example: 'dealsId=12345 AND dealsStatus:disapproved'
372
+ # Retrieves an existing client user.
373
+ # @param [Fixnum] account_id
374
+ # Numerical account ID of the client's sponsor buyer. (required)
375
+ # @param [Fixnum] client_account_id
376
+ # Numerical account ID of the client buyer
377
+ # that the user to be retrieved is associated with. (required)
378
+ # @param [Fixnum] user_id
379
+ # Numerical identifier of the user to retrieve. (required)
405
380
  # @param [String] quota_user
406
381
  # Available to use for quota purposes for server-side applications. Can be any
407
382
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -411,33 +386,36 @@ module Google
411
386
  # Request-specific options
412
387
  #
413
388
  # @yield [result, err] Result & error if block supplied
414
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse] parsed result object
389
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
415
390
  # @yieldparam err [StandardError] error object if request failed
416
391
  #
417
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse]
392
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
418
393
  #
419
394
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
420
395
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
421
396
  # @raise [Google::Apis::AuthorizationError] Authorization is required
422
- def list_account_creative_deal_associations(account_id, creative_id, page_token: nil, page_size: nil, query: nil, quota_user: nil, fields: nil, options: nil, &block)
423
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations', options)
424
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse::Representation
425
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse
397
+ def get_account_client_user(account_id, client_account_id, user_id, quota_user: nil, fields: nil, options: nil, &block)
398
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
399
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
400
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
426
401
  command.params['accountId'] = account_id unless account_id.nil?
427
- command.params['creativeId'] = creative_id unless creative_id.nil?
428
- command.query['pageToken'] = page_token unless page_token.nil?
429
- command.query['pageSize'] = page_size unless page_size.nil?
430
- command.query['query'] = query unless query.nil?
402
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
403
+ command.params['userId'] = user_id unless user_id.nil?
431
404
  command.query['quotaUser'] = quota_user unless quota_user.nil?
432
405
  command.query['fields'] = fields unless fields.nil?
433
406
  execute_or_queue_command(command, &block)
434
407
  end
435
408
 
436
- # Gets a client buyer with a given client account ID.
437
- # @param [String] account_id
409
+ # Updates an existing client user.
410
+ # Only the user status can be changed on update.
411
+ # @param [Fixnum] account_id
438
412
  # Numerical account ID of the client's sponsor buyer. (required)
439
- # @param [String] client_account_id
440
- # Numerical account ID of the client buyer to retrieve. (required)
413
+ # @param [Fixnum] client_account_id
414
+ # Numerical account ID of the client buyer that the user to be retrieved
415
+ # is associated with. (required)
416
+ # @param [Fixnum] user_id
417
+ # Numerical identifier of the user to retrieve. (required)
418
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_object
441
419
  # @param [String] quota_user
442
420
  # Available to use for quota purposes for server-side applications. Can be any
443
421
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -447,37 +425,58 @@ module Google
447
425
  # Request-specific options
448
426
  #
449
427
  # @yield [result, err] Result & error if block supplied
450
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
428
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
451
429
  # @yieldparam err [StandardError] error object if request failed
452
430
  #
453
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
431
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
454
432
  #
455
433
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
456
434
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
457
435
  # @raise [Google::Apis::AuthorizationError] Authorization is required
458
- def get_account_client(account_id, client_account_id, quota_user: nil, fields: nil, options: nil, &block)
459
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
460
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
461
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
436
+ def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, quota_user: nil, fields: nil, options: nil, &block)
437
+ command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
438
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
439
+ command.request_object = client_user_object
440
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
441
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
462
442
  command.params['accountId'] = account_id unless account_id.nil?
463
443
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
444
+ command.params['userId'] = user_id unless user_id.nil?
464
445
  command.query['quotaUser'] = quota_user unless quota_user.nil?
465
446
  command.query['fields'] = fields unless fields.nil?
466
447
  execute_or_queue_command(command, &block)
467
448
  end
468
449
 
469
- # Lists all the clients for the current sponsor buyer.
450
+ # Lists creatives.
470
451
  # @param [String] account_id
471
- # Unique numerical account ID of the sponsor buyer to list the clients for.
452
+ # The account to list the creatives from.
453
+ # Specify "-" to list all creatives the current user has access to.
472
454
  # @param [String] page_token
473
455
  # A token identifying a page of results the server should return.
474
456
  # Typically, this is the value of
475
- # ListClientsResponse.nextPageToken
476
- # returned from the previous call to the
477
- # accounts.clients.list method.
457
+ # ListCreativesResponse.next_page_token
458
+ # returned from the previous call to 'ListCreatives' method.
478
459
  # @param [Fixnum] page_size
479
- # Requested page size. The server may return fewer clients than requested.
480
- # If unspecified, the server will pick an appropriate default.
460
+ # Requested page size. The server may return fewer creatives than requested
461
+ # (due to timeout constraint) even if more are available via another call.
462
+ # If unspecified, server will pick an appropriate default.
463
+ # Acceptable values are 1 to 1000, inclusive.
464
+ # @param [String] query
465
+ # An optional query string to filter creatives. If no filter is specified,
466
+ # all active creatives will be returned.
467
+ # Supported queries are:
468
+ # <ul>
469
+ # <li>accountId=<i>account_id_string</i>
470
+ # <li>creativeId=<i>creative_id_string</i>
471
+ # <li>dealsStatus: `approved, conditionally_approved, disapproved,
472
+ # not_checked`
473
+ # <li>openAuctionStatus: `approved, conditionally_approved, disapproved,
474
+ # not_checked`
475
+ # <li>attribute: `a numeric attribute from the list of attributes`
476
+ # <li>disapprovalReason: `a reason from DisapprovalReason
477
+ # </ul>
478
+ # Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:
479
+ # unacceptable_content) OR attribute:47'
481
480
  # @param [String] quota_user
482
481
  # Available to use for quota purposes for server-side applications. Can be any
483
482
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -487,33 +486,37 @@ module Google
487
486
  # Request-specific options
488
487
  #
489
488
  # @yield [result, err] Result & error if block supplied
490
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse] parsed result object
489
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse] parsed result object
491
490
  # @yieldparam err [StandardError] error object if request failed
492
491
  #
493
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse]
492
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse]
494
493
  #
495
494
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
496
495
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
497
496
  # @raise [Google::Apis::AuthorizationError] Authorization is required
498
- def list_account_clients(account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
499
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients', options)
500
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse::Representation
501
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse
497
+ def list_account_creatives(account_id, page_token: nil, page_size: nil, query: nil, quota_user: nil, fields: nil, options: nil, &block)
498
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives', options)
499
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse::Representation
500
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse
502
501
  command.params['accountId'] = account_id unless account_id.nil?
503
502
  command.query['pageToken'] = page_token unless page_token.nil?
504
503
  command.query['pageSize'] = page_size unless page_size.nil?
504
+ command.query['query'] = query unless query.nil?
505
505
  command.query['quotaUser'] = quota_user unless quota_user.nil?
506
506
  command.query['fields'] = fields unless fields.nil?
507
507
  execute_or_queue_command(command, &block)
508
508
  end
509
509
 
510
- # Updates an existing client buyer.
510
+ # Creates a creative.
511
511
  # @param [String] account_id
512
- # Unique numerical account ID for the buyer of which the client buyer
513
- # is a customer; the sponsor buyer to update a client for. (required)
514
- # @param [String] client_account_id
515
- # Unique numerical account ID of the client to update. (required)
516
- # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
512
+ # The account that this creative belongs to.
513
+ # Can be used to filter the response of the
514
+ # creatives.list
515
+ # method.
516
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
517
+ # @param [String] duplicate_id_mode
518
+ # Indicates if multiple creatives can share an ID or not. Default is
519
+ # NO_DUPLICATES (one ID per creative).
517
520
  # @param [String] quota_user
518
521
  # Available to use for quota purposes for server-side applications. Can be any
519
522
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -523,32 +526,35 @@ module Google
523
526
  # Request-specific options
524
527
  #
525
528
  # @yield [result, err] Result & error if block supplied
526
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
529
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
527
530
  # @yieldparam err [StandardError] error object if request failed
528
531
  #
529
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
532
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
530
533
  #
531
534
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
532
535
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
533
536
  # @raise [Google::Apis::AuthorizationError] Authorization is required
534
- def update_account_client(account_id, client_account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
535
- command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
536
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
537
- command.request_object = client_object
538
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
539
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
537
+ def create_account_creative(account_id, creative_object = nil, duplicate_id_mode: nil, quota_user: nil, fields: nil, options: nil, &block)
538
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives', options)
539
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
540
+ command.request_object = creative_object
541
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
542
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
540
543
  command.params['accountId'] = account_id unless account_id.nil?
541
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
544
+ command.query['duplicateIdMode'] = duplicate_id_mode unless duplicate_id_mode.nil?
542
545
  command.query['quotaUser'] = quota_user unless quota_user.nil?
543
546
  command.query['fields'] = fields unless fields.nil?
544
547
  execute_or_queue_command(command, &block)
545
548
  end
546
549
 
547
- # Creates a new client buyer.
550
+ # Stops watching a creative. Will stop push notifications being sent to the
551
+ # topics when the creative changes status.
548
552
  # @param [String] account_id
549
- # Unique numerical account ID for the buyer of which the client buyer
550
- # is a customer; the sponsor buyer to create a client for. (required)
551
- # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
553
+ # The account of the creative to stop notifications for.
554
+ # @param [String] creative_id
555
+ # The creative ID of the creative to stop notifications for.
556
+ # Specify "-" to specify stopping account level notifications.
557
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest] stop_watching_creative_request_object
552
558
  # @param [String] quota_user
553
559
  # Available to use for quota purposes for server-side applications. Can be any
554
560
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -558,46 +564,32 @@ module Google
558
564
  # Request-specific options
559
565
  #
560
566
  # @yield [result, err] Result & error if block supplied
561
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
567
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
562
568
  # @yieldparam err [StandardError] error object if request failed
563
569
  #
564
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
570
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
565
571
  #
566
572
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
567
573
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
568
574
  # @raise [Google::Apis::AuthorizationError] Authorization is required
569
- def create_account_client(account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
570
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients', options)
571
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
572
- command.request_object = client_object
573
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
574
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
575
+ def stop_watching_creative(account_id, creative_id, stop_watching_creative_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
576
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching', options)
577
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest::Representation
578
+ command.request_object = stop_watching_creative_request_object
579
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
580
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
575
581
  command.params['accountId'] = account_id unless account_id.nil?
582
+ command.params['creativeId'] = creative_id unless creative_id.nil?
576
583
  command.query['quotaUser'] = quota_user unless quota_user.nil?
577
584
  command.query['fields'] = fields unless fields.nil?
578
585
  execute_or_queue_command(command, &block)
579
586
  end
580
587
 
581
- # Lists all the known client users for a specified
582
- # sponsor buyer account ID.
588
+ # Gets a creative.
583
589
  # @param [String] account_id
584
- # Numerical account ID of the sponsor buyer of the client to list users for.
585
- # (required)
586
- # @param [String] client_account_id
587
- # The account ID of the client buyer to list users for. (required)
588
- # You must specify either a string representation of a
589
- # numerical account identifier or the `-` character
590
- # to list all the client users for all the clients
591
- # of a given sponsor buyer.
592
- # @param [String] page_token
593
- # A token identifying a page of results the server should return.
594
- # Typically, this is the value of
595
- # ListClientUsersResponse.nextPageToken
596
- # returned from the previous call to the
597
- # accounts.clients.users.list method.
598
- # @param [Fixnum] page_size
599
- # Requested page size. The server may return fewer clients than requested.
600
- # If unspecified, the server will pick an appropriate default.
590
+ # The account the creative belongs to.
591
+ # @param [String] creative_id
592
+ # The ID of the creative to retrieve.
601
593
  # @param [String] quota_user
602
594
  # Available to use for quota purposes for server-side applications. Can be any
603
595
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -607,35 +599,36 @@ module Google
607
599
  # Request-specific options
608
600
  #
609
601
  # @yield [result, err] Result & error if block supplied
610
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object
602
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
611
603
  # @yieldparam err [StandardError] error object if request failed
612
604
  #
613
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse]
605
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
614
606
  #
615
607
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
616
608
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
617
609
  # @raise [Google::Apis::AuthorizationError] Authorization is required
618
- def list_account_client_users(account_id, client_account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
619
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options)
620
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation
621
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse
610
+ def get_account_creative(account_id, creative_id, quota_user: nil, fields: nil, options: nil, &block)
611
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
612
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
613
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
622
614
  command.params['accountId'] = account_id unless account_id.nil?
623
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
624
- command.query['pageToken'] = page_token unless page_token.nil?
625
- command.query['pageSize'] = page_size unless page_size.nil?
615
+ command.params['creativeId'] = creative_id unless creative_id.nil?
626
616
  command.query['quotaUser'] = quota_user unless quota_user.nil?
627
617
  command.query['fields'] = fields unless fields.nil?
628
618
  execute_or_queue_command(command, &block)
629
619
  end
630
620
 
631
- # Retrieves an existing client user.
621
+ # Watches a creative. Will result in push notifications being sent to the
622
+ # topic when the creative changes status.
632
623
  # @param [String] account_id
633
- # Numerical account ID of the client's sponsor buyer. (required)
634
- # @param [String] client_account_id
635
- # Numerical account ID of the client buyer
636
- # that the user to be retrieved is associated with. (required)
637
- # @param [String] user_id
638
- # Numerical identifier of the user to retrieve. (required)
624
+ # The account of the creative to watch.
625
+ # @param [String] creative_id
626
+ # The creative ID to watch for status changes.
627
+ # Specify "-" to watch all creatives under the above account.
628
+ # If both creative-level and account-level notifications are
629
+ # sent, only a single notification will be sent to the
630
+ # creative-level notification topic.
631
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest] watch_creative_request_object
639
632
  # @param [String] quota_user
640
633
  # Available to use for quota purposes for server-side applications. Can be any
641
634
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -645,36 +638,39 @@ module Google
645
638
  # Request-specific options
646
639
  #
647
640
  # @yield [result, err] Result & error if block supplied
648
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
641
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
649
642
  # @yieldparam err [StandardError] error object if request failed
650
643
  #
651
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
644
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
652
645
  #
653
646
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
654
647
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
655
648
  # @raise [Google::Apis::AuthorizationError] Authorization is required
656
- def get_account_client_user(account_id, client_account_id, user_id, quota_user: nil, fields: nil, options: nil, &block)
657
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
658
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
659
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
649
+ def watch_creative(account_id, creative_id, watch_creative_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
650
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:watch', options)
651
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest::Representation
652
+ command.request_object = watch_creative_request_object
653
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
654
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
660
655
  command.params['accountId'] = account_id unless account_id.nil?
661
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
662
- command.params['userId'] = user_id unless user_id.nil?
656
+ command.params['creativeId'] = creative_id unless creative_id.nil?
663
657
  command.query['quotaUser'] = quota_user unless quota_user.nil?
664
658
  command.query['fields'] = fields unless fields.nil?
665
659
  execute_or_queue_command(command, &block)
666
660
  end
667
661
 
668
- # Updates an existing client user.
669
- # Only the user status can be changed on update.
662
+ # Updates a creative.
670
663
  # @param [String] account_id
671
- # Numerical account ID of the client's sponsor buyer. (required)
672
- # @param [String] client_account_id
673
- # Numerical account ID of the client buyer that the user to be retrieved
674
- # is associated with. (required)
675
- # @param [String] user_id
676
- # Numerical identifier of the user to retrieve. (required)
677
- # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_object
664
+ # The account that this creative belongs to.
665
+ # Can be used to filter the response of the
666
+ # creatives.list
667
+ # method.
668
+ # @param [String] creative_id
669
+ # The buyer-defined creative ID of this creative.
670
+ # Can be used to filter the response of the
671
+ # creatives.list
672
+ # method.
673
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
678
674
  # @param [String] quota_user
679
675
  # Available to use for quota purposes for server-side applications. Can be any
680
676
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -684,36 +680,56 @@ module Google
684
680
  # Request-specific options
685
681
  #
686
682
  # @yield [result, err] Result & error if block supplied
687
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
683
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
688
684
  # @yieldparam err [StandardError] error object if request failed
689
685
  #
690
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
686
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
691
687
  #
692
688
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
693
689
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
694
690
  # @raise [Google::Apis::AuthorizationError] Authorization is required
695
- def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, quota_user: nil, fields: nil, options: nil, &block)
696
- command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
697
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
698
- command.request_object = client_user_object
699
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
700
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
691
+ def update_account_creative(account_id, creative_id, creative_object = nil, quota_user: nil, fields: nil, options: nil, &block)
692
+ command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
693
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
694
+ command.request_object = creative_object
695
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
696
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
701
697
  command.params['accountId'] = account_id unless account_id.nil?
702
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
703
- command.params['userId'] = user_id unless user_id.nil?
698
+ command.params['creativeId'] = creative_id unless creative_id.nil?
704
699
  command.query['quotaUser'] = quota_user unless quota_user.nil?
705
700
  command.query['fields'] = fields unless fields.nil?
706
701
  execute_or_queue_command(command, &block)
707
702
  end
708
703
 
709
- # Creates and sends out an email invitation to access
710
- # an Ad Exchange client buyer account.
704
+ # List all creative-deal associations.
711
705
  # @param [String] account_id
712
- # Numerical account ID of the client's sponsor buyer. (required)
713
- # @param [String] client_account_id
714
- # Numerical account ID of the client buyer that the user
715
- # should be associated with. (required)
716
- # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_object
706
+ # The account to list the associations from.
707
+ # Specify "-" to list all creatives the current user has access to.
708
+ # @param [String] creative_id
709
+ # The creative ID to list the associations from.
710
+ # Specify "-" to list all creatives under the above account.
711
+ # @param [Fixnum] page_size
712
+ # Requested page size. Server may return fewer associations than requested.
713
+ # If unspecified, server will pick an appropriate default.
714
+ # @param [String] query
715
+ # An optional query string to filter deal associations. If no filter is
716
+ # specified, all associations will be returned.
717
+ # Supported queries are:
718
+ # <ul>
719
+ # <li>accountId=<i>account_id_string</i>
720
+ # <li>creativeId=<i>creative_id_string</i>
721
+ # <li>dealsId=<i>deals_id_string</i>
722
+ # <li>dealsStatus:`approved, conditionally_approved, disapproved,
723
+ # not_checked`
724
+ # <li>openAuctionStatus:`approved, conditionally_approved, disapproved,
725
+ # not_checked`
726
+ # </ul>
727
+ # Example: 'dealsId=12345 AND dealsStatus:disapproved'
728
+ # @param [String] page_token
729
+ # A token identifying a page of results the server should return.
730
+ # Typically, this is the value of
731
+ # ListDealAssociationsResponse.next_page_token
732
+ # returned from the previous call to 'ListDealAssociations' method.
717
733
  # @param [String] quota_user
718
734
  # Available to use for quota purposes for server-side applications. Can be any
719
735
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -723,35 +739,34 @@ module Google
723
739
  # Request-specific options
724
740
  #
725
741
  # @yield [result, err] Result & error if block supplied
726
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
742
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse] parsed result object
727
743
  # @yieldparam err [StandardError] error object if request failed
728
744
  #
729
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
745
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse]
730
746
  #
731
747
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
732
748
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
733
749
  # @raise [Google::Apis::AuthorizationError] Authorization is required
734
- def create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, quota_user: nil, fields: nil, options: nil, &block)
735
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
736
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
737
- command.request_object = client_user_invitation_object
738
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
739
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
750
+ def list_account_creative_deal_associations(account_id, creative_id, page_size: nil, query: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
751
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations', options)
752
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse::Representation
753
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse
740
754
  command.params['accountId'] = account_id unless account_id.nil?
741
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
755
+ command.params['creativeId'] = creative_id unless creative_id.nil?
756
+ command.query['pageSize'] = page_size unless page_size.nil?
757
+ command.query['query'] = query unless query.nil?
758
+ command.query['pageToken'] = page_token unless page_token.nil?
742
759
  command.query['quotaUser'] = quota_user unless quota_user.nil?
743
760
  command.query['fields'] = fields unless fields.nil?
744
761
  execute_or_queue_command(command, &block)
745
762
  end
746
763
 
747
- # Retrieves an existing client user invitation.
764
+ # Associate an existing deal with a creative.
748
765
  # @param [String] account_id
749
- # Numerical account ID of the client's sponsor buyer. (required)
750
- # @param [String] client_account_id
751
- # Numerical account ID of the client buyer that the user invitation
752
- # to be retrieved is associated with. (required)
753
- # @param [String] invitation_id
754
- # Numerical identifier of the user invitation to retrieve. (required)
766
+ # The account the creative belongs to.
767
+ # @param [String] creative_id
768
+ # The ID of the creative associated with the deal.
769
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest] add_deal_association_request_object
755
770
  # @param [String] quota_user
756
771
  # Available to use for quota purposes for server-side applications. Can be any
757
772
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -761,47 +776,33 @@ module Google
761
776
  # Request-specific options
762
777
  #
763
778
  # @yield [result, err] Result & error if block supplied
764
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
779
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
765
780
  # @yieldparam err [StandardError] error object if request failed
766
781
  #
767
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
782
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
768
783
  #
769
784
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
770
785
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
771
786
  # @raise [Google::Apis::AuthorizationError] Authorization is required
772
- def get_account_client_invitation(account_id, client_account_id, invitation_id, quota_user: nil, fields: nil, options: nil, &block)
773
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', options)
774
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
775
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
787
+ def add_deal_association(account_id, creative_id, add_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
788
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add', options)
789
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest::Representation
790
+ command.request_object = add_deal_association_request_object
791
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
792
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
776
793
  command.params['accountId'] = account_id unless account_id.nil?
777
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
778
- command.params['invitationId'] = invitation_id unless invitation_id.nil?
794
+ command.params['creativeId'] = creative_id unless creative_id.nil?
779
795
  command.query['quotaUser'] = quota_user unless quota_user.nil?
780
796
  command.query['fields'] = fields unless fields.nil?
781
797
  execute_or_queue_command(command, &block)
782
798
  end
783
799
 
784
- # Lists all the client users invitations for a client
785
- # with a given account ID.
800
+ # Remove the association between a deal and a creative.
786
801
  # @param [String] account_id
787
- # Numerical account ID of the client's sponsor buyer. (required)
788
- # @param [String] client_account_id
789
- # Numerical account ID of the client buyer to list invitations for.
790
- # (required)
791
- # You must either specify a string representation of a
792
- # numerical account identifier or the `-` character
793
- # to list all the invitations for all the clients
794
- # of a given sponsor buyer.
795
- # @param [String] page_token
796
- # A token identifying a page of results the server should return.
797
- # Typically, this is the value of
798
- # ListClientUserInvitationsResponse.nextPageToken
799
- # returned from the previous call to the
800
- # clients.invitations.list
801
- # method.
802
- # @param [Fixnum] page_size
803
- # Requested page size. Server may return fewer clients than requested.
804
- # If unspecified, server will pick an appropriate default.
802
+ # The account the creative belongs to.
803
+ # @param [String] creative_id
804
+ # The ID of the creative associated with the deal.
805
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest] remove_deal_association_request_object
805
806
  # @param [String] quota_user
806
807
  # Available to use for quota purposes for server-side applications. Can be any
807
808
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -811,22 +812,22 @@ module Google
811
812
  # Request-specific options
812
813
  #
813
814
  # @yield [result, err] Result & error if block supplied
814
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse] parsed result object
815
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
815
816
  # @yieldparam err [StandardError] error object if request failed
816
817
  #
817
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse]
818
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
818
819
  #
819
820
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
820
821
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
821
822
  # @raise [Google::Apis::AuthorizationError] Authorization is required
822
- def list_account_client_invitations(account_id, client_account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
823
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
824
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation
825
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse
823
+ def remove_deal_association(account_id, creative_id, remove_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
824
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove', options)
825
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest::Representation
826
+ command.request_object = remove_deal_association_request_object
827
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
828
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
826
829
  command.params['accountId'] = account_id unless account_id.nil?
827
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
828
- command.query['pageToken'] = page_token unless page_token.nil?
829
- command.query['pageSize'] = page_size unless page_size.nil?
830
+ command.params['creativeId'] = creative_id unless creative_id.nil?
830
831
  command.query['quotaUser'] = quota_user unless quota_user.nil?
831
832
  command.query['fields'] = fields unless fields.nil?
832
833
  execute_or_queue_command(command, &block)
@@ -835,8 +836,8 @@ module Google
835
836
  protected
836
837
 
837
838
  def apply_command_defaults(command)
838
- command.query['quotaUser'] = quota_user unless quota_user.nil?
839
839
  command.query['key'] = key unless key.nil?
840
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
840
841
  end
841
842
  end
842
843
  end