google-api-client 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +395 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
  11. data/generated/google/apis/admin_reports_v1.rb +3 -3
  12. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analytics_v3/service.rb +39 -0
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  19. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  20. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
  22. data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
  23. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  24. data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
  25. data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
  26. data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +32 -37
  30. data/generated/google/apis/bigquery_v2/service.rb +10 -2
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/calendar_v3/classes.rb +205 -0
  33. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  34. data/generated/google/apis/classroom_v1.rb +22 -25
  35. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  38. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
  40. data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
  41. data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
  42. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  43. data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
  44. data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
  45. data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
  46. data/generated/google/apis/cloudkms_v1.rb +1 -1
  47. data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
  48. data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
  49. data/generated/google/apis/cloudkms_v1/service.rb +228 -228
  50. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
  59. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  60. data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
  61. data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
  62. data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
  63. data/generated/google/apis/compute_beta.rb +1 -1
  64. data/generated/google/apis/compute_beta/classes.rb +116 -0
  65. data/generated/google/apis/compute_beta/representations.rb +48 -0
  66. data/generated/google/apis/compute_beta/service.rb +46 -1
  67. data/generated/google/apis/compute_v1.rb +1 -1
  68. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
  71. data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
  74. data/generated/google/apis/dataproc_v1/representations.rb +255 -253
  75. data/generated/google/apis/dataproc_v1/service.rb +100 -100
  76. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  77. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/dns_v2beta1.rb +1 -1
  80. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2/classes.rb +3 -1
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +3 -1
  85. data/generated/google/apis/fusiontables_v2.rb +1 -1
  86. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  87. data/generated/google/apis/games_management_v1management.rb +1 -1
  88. data/generated/google/apis/games_v1.rb +1 -1
  89. data/generated/google/apis/genomics_v1.rb +7 -7
  90. data/generated/google/apis/genomics_v1/classes.rb +959 -959
  91. data/generated/google/apis/genomics_v1/representations.rb +238 -238
  92. data/generated/google/apis/genomics_v1/service.rb +996 -996
  93. data/generated/google/apis/iam_v1.rb +1 -1
  94. data/generated/google/apis/iam_v1/classes.rb +440 -440
  95. data/generated/google/apis/iam_v1/representations.rb +94 -94
  96. data/generated/google/apis/iam_v1/service.rb +170 -173
  97. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  98. data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
  99. data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
  100. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  101. data/generated/google/apis/language_v1beta1.rb +1 -1
  102. data/generated/google/apis/language_v1beta1/classes.rb +427 -427
  103. data/generated/google/apis/language_v1beta1/representations.rb +113 -113
  104. data/generated/google/apis/language_v1beta1/service.rb +25 -24
  105. data/generated/google/apis/licensing_v1.rb +2 -2
  106. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  107. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  108. data/generated/google/apis/licensing_v1/service.rb +1 -1
  109. data/generated/google/apis/logging_v2beta1.rb +1 -1
  110. data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
  111. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  112. data/generated/google/apis/logging_v2beta1/service.rb +261 -261
  113. data/generated/google/apis/manufacturers_v1.rb +1 -1
  114. data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
  115. data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
  116. data/generated/google/apis/manufacturers_v1/service.rb +11 -11
  117. data/generated/google/apis/mirror_v1.rb +1 -1
  118. data/generated/google/apis/monitoring_v3.rb +7 -7
  119. data/generated/google/apis/monitoring_v3/classes.rb +668 -670
  120. data/generated/google/apis/monitoring_v3/representations.rb +140 -140
  121. data/generated/google/apis/monitoring_v3/service.rb +208 -208
  122. data/generated/google/apis/partners_v2.rb +1 -1
  123. data/generated/google/apis/partners_v2/classes.rb +505 -505
  124. data/generated/google/apis/partners_v2/representations.rb +118 -118
  125. data/generated/google/apis/partners_v2/service.rb +275 -275
  126. data/generated/google/apis/people_v1.rb +1 -1
  127. data/generated/google/apis/people_v1/classes.rb +1037 -1031
  128. data/generated/google/apis/people_v1/representations.rb +247 -246
  129. data/generated/google/apis/people_v1/service.rb +20 -20
  130. data/generated/google/apis/plus_domains_v1.rb +1 -1
  131. data/generated/google/apis/plus_v1.rb +1 -1
  132. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  133. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
  134. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
  135. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
  136. data/generated/google/apis/pubsub_v1.rb +4 -4
  137. data/generated/google/apis/pubsub_v1/classes.rb +131 -132
  138. data/generated/google/apis/pubsub_v1/representations.rb +35 -35
  139. data/generated/google/apis/pubsub_v1/service.rb +399 -408
  140. data/generated/google/apis/reseller_v1.rb +1 -1
  141. data/generated/google/apis/reseller_v1/classes.rb +9 -0
  142. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  143. data/generated/google/apis/script_v1.rb +9 -9
  144. data/generated/google/apis/script_v1/classes.rb +110 -110
  145. data/generated/google/apis/script_v1/representations.rb +26 -26
  146. data/generated/google/apis/sheets_v4.rb +4 -4
  147. data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
  148. data/generated/google/apis/sheets_v4/representations.rb +856 -856
  149. data/generated/google/apis/sheets_v4/service.rb +106 -106
  150. data/generated/google/apis/slides_v1.rb +4 -4
  151. data/generated/google/apis/slides_v1/classes.rb +2923 -2841
  152. data/generated/google/apis/slides_v1/representations.rb +722 -691
  153. data/generated/google/apis/slides_v1/service.rb +58 -15
  154. data/generated/google/apis/speech_v1beta1.rb +1 -1
  155. data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
  156. data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
  157. data/generated/google/apis/speech_v1beta1/service.rb +70 -70
  158. data/generated/google/apis/storage_v1.rb +1 -1
  159. data/generated/google/apis/storage_v1/classes.rb +151 -0
  160. data/generated/google/apis/storage_v1/representations.rb +45 -0
  161. data/generated/google/apis/storage_v1/service.rb +248 -0
  162. data/generated/google/apis/vision_v1.rb +1 -1
  163. data/generated/google/apis/vision_v1/classes.rb +1227 -1221
  164. data/generated/google/apis/vision_v1/representations.rb +217 -215
  165. data/generated/google/apis/webmasters_v3.rb +1 -1
  166. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  167. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  168. data/generated/google/apis/youtube_partner_v1/classes.rb +78 -0
  169. data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
  170. data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
  171. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  172. data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
  173. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  174. data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
  175. data/lib/google/apis/version.rb +1 -1
  176. metadata +2 -2
@@ -22,12 +22,6 @@ module Google
22
22
  module Apis
23
23
  module Adexchangebuyer2V2beta1
24
24
 
25
- class Empty
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
25
  class WatchCreativeRequest
32
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
27
 
@@ -40,13 +34,13 @@ module Google
40
34
  include Google::Apis::Core::JsonObjectSupport
41
35
  end
42
36
 
43
- class NativeContent
37
+ class ListClientsResponse
44
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
39
 
46
40
  include Google::Apis::Core::JsonObjectSupport
47
41
  end
48
42
 
49
- class ListClientsResponse
43
+ class NativeContent
50
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
45
 
52
46
  include Google::Apis::Core::JsonObjectSupport
@@ -58,13 +52,13 @@ module Google
58
52
  include Google::Apis::Core::JsonObjectSupport
59
53
  end
60
54
 
61
- class ListCreativesResponse
55
+ class HtmlContent
62
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
57
 
64
58
  include Google::Apis::Core::JsonObjectSupport
65
59
  end
66
60
 
67
- class HtmlContent
61
+ class ListCreativesResponse
68
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
63
 
70
64
  include Google::Apis::Core::JsonObjectSupport
@@ -172,25 +166,25 @@ module Google
172
166
  include Google::Apis::Core::JsonObjectSupport
173
167
  end
174
168
 
175
- class AddDealAssociationRequest
169
+ class ListDealAssociationsResponse
176
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
171
 
178
172
  include Google::Apis::Core::JsonObjectSupport
179
173
  end
180
174
 
181
- class ListDealAssociationsResponse
175
+ class AddDealAssociationRequest
182
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
177
 
184
178
  include Google::Apis::Core::JsonObjectSupport
185
179
  end
186
180
 
187
- class Disapproval
181
+ class StopWatchingCreativeRequest
188
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
183
 
190
184
  include Google::Apis::Core::JsonObjectSupport
191
185
  end
192
186
 
193
- class StopWatchingCreativeRequest
187
+ class Disapproval
194
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
189
 
196
190
  include Google::Apis::Core::JsonObjectSupport
@@ -209,9 +203,9 @@ module Google
209
203
  end
210
204
 
211
205
  class Empty
212
- # @private
213
- class Representation < Google::Apis::Core::JsonRepresentation
214
- end
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
215
209
  end
216
210
 
217
211
  class WatchCreativeRequest
@@ -228,6 +222,15 @@ module Google
228
222
  end
229
223
  end
230
224
 
225
+ class ListClientsResponse
226
+ # @private
227
+ class Representation < Google::Apis::Core::JsonRepresentation
228
+ collection :clients, as: 'clients', class: Google::Apis::Adexchangebuyer2V2beta1::Client, decorator: Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
229
+
230
+ property :next_page_token, as: 'nextPageToken'
231
+ end
232
+ end
233
+
231
234
  class NativeContent
232
235
  # @private
233
236
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -250,19 +253,19 @@ module Google
250
253
  end
251
254
  end
252
255
 
253
- class ListClientsResponse
256
+ class SecurityContext
254
257
  # @private
255
258
  class Representation < Google::Apis::Core::JsonRepresentation
256
- collection :clients, as: 'clients', class: Google::Apis::Adexchangebuyer2V2beta1::Client, decorator: Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
257
-
258
- property :next_page_token, as: 'nextPageToken'
259
+ collection :securities, as: 'securities'
259
260
  end
260
261
  end
261
262
 
262
- class SecurityContext
263
+ class HtmlContent
263
264
  # @private
264
265
  class Representation < Google::Apis::Core::JsonRepresentation
265
- collection :securities, as: 'securities'
266
+ property :width, as: 'width'
267
+ property :snippet, as: 'snippet'
268
+ property :height, as: 'height'
266
269
  end
267
270
  end
268
271
 
@@ -275,15 +278,6 @@ module Google
275
278
  end
276
279
  end
277
280
 
278
- class HtmlContent
279
- # @private
280
- class Representation < Google::Apis::Core::JsonRepresentation
281
- property :height, as: 'height'
282
- property :width, as: 'width'
283
- property :snippet, as: 'snippet'
284
- end
285
- end
286
-
287
281
  class ServingContext
288
282
  # @private
289
283
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -328,9 +322,9 @@ module Google
328
322
  class ClientUserInvitation
329
323
  # @private
330
324
  class Representation < Google::Apis::Core::JsonRepresentation
325
+ property :email, as: 'email'
331
326
  property :client_account_id, as: 'clientAccountId'
332
327
  property :invitation_id, as: 'invitationId'
333
- property :email, as: 'email'
334
328
  end
335
329
  end
336
330
 
@@ -386,29 +380,42 @@ module Google
386
380
  class CreativeDealAssociation
387
381
  # @private
388
382
  class Representation < Google::Apis::Core::JsonRepresentation
389
- property :account_id, as: 'accountId'
390
383
  property :creative_id, as: 'creativeId'
391
384
  property :deals_id, as: 'dealsId'
385
+ property :account_id, as: 'accountId'
392
386
  end
393
387
  end
394
388
 
395
389
  class FilteringStats
396
390
  # @private
397
391
  class Representation < Google::Apis::Core::JsonRepresentation
398
- collection :reasons, as: 'reasons', class: Google::Apis::Adexchangebuyer2V2beta1::Reason, decorator: Google::Apis::Adexchangebuyer2V2beta1::Reason::Representation
399
-
400
392
  property :date, as: 'date', class: Google::Apis::Adexchangebuyer2V2beta1::Date, decorator: Google::Apis::Adexchangebuyer2V2beta1::Date::Representation
401
393
 
394
+ collection :reasons, as: 'reasons', class: Google::Apis::Adexchangebuyer2V2beta1::Reason, decorator: Google::Apis::Adexchangebuyer2V2beta1::Reason::Representation
395
+
402
396
  end
403
397
  end
404
398
 
405
399
  class Creative
406
400
  # @private
407
401
  class Representation < Google::Apis::Core::JsonRepresentation
408
- property :video, as: 'video', class: Google::Apis::Adexchangebuyer2V2beta1::VideoContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::VideoContent::Representation
402
+ property :open_auction_status, as: 'openAuctionStatus'
403
+ property :advertiser_name, as: 'advertiserName'
404
+ collection :detected_advertiser_ids, as: 'detectedAdvertiserIds'
405
+ collection :detected_domains, as: 'detectedDomains'
406
+ property :filtering_stats, as: 'filteringStats', class: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats::Representation
407
+
408
+ collection :attributes, as: 'attributes'
409
+ property :api_update_time, as: 'apiUpdateTime'
410
+ collection :detected_languages, as: 'detectedLanguages'
411
+ property :creative_id, as: 'creativeId'
412
+ property :account_id, as: 'accountId'
413
+ property :native, as: 'native', class: Google::Apis::Adexchangebuyer2V2beta1::NativeContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::NativeContent::Representation
409
414
 
410
415
  collection :serving_restrictions, as: 'servingRestrictions', class: Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction::Representation
411
416
 
417
+ property :video, as: 'video', class: Google::Apis::Adexchangebuyer2V2beta1::VideoContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::VideoContent::Representation
418
+
412
419
  property :agency_id, as: 'agencyId'
413
420
  collection :click_through_urls, as: 'clickThroughUrls'
414
421
  property :ad_choices_destination_url, as: 'adChoicesDestinationUrl'
@@ -423,19 +430,6 @@ module Google
423
430
 
424
431
  property :deals_status, as: 'dealsStatus'
425
432
  collection :detected_product_categories, as: 'detectedProductCategories'
426
- property :open_auction_status, as: 'openAuctionStatus'
427
- property :advertiser_name, as: 'advertiserName'
428
- collection :detected_domains, as: 'detectedDomains'
429
- collection :detected_advertiser_ids, as: 'detectedAdvertiserIds'
430
- property :filtering_stats, as: 'filteringStats', class: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats::Representation
431
-
432
- collection :attributes, as: 'attributes'
433
- property :api_update_time, as: 'apiUpdateTime'
434
- collection :detected_languages, as: 'detectedLanguages'
435
- property :creative_id, as: 'creativeId'
436
- property :account_id, as: 'accountId'
437
- property :native, as: 'native', class: Google::Apis::Adexchangebuyer2V2beta1::NativeContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::NativeContent::Representation
438
-
439
433
  end
440
434
  end
441
435
 
@@ -450,66 +444,66 @@ module Google
450
444
  class Client
451
445
  # @private
452
446
  class Representation < Google::Apis::Core::JsonRepresentation
447
+ property :entity_name, as: 'entityName'
448
+ property :status, as: 'status'
449
+ property :entity_type, as: 'entityType'
453
450
  property :client_name, as: 'clientName'
454
451
  property :role, as: 'role'
455
452
  property :visible_to_seller, as: 'visibleToSeller'
456
453
  property :entity_id, as: 'entityId'
457
454
  property :client_account_id, as: 'clientAccountId'
458
- property :entity_name, as: 'entityName'
459
- property :status, as: 'status'
460
- property :entity_type, as: 'entityType'
461
455
  end
462
456
  end
463
457
 
464
458
  class Correction
465
459
  # @private
466
460
  class Representation < Google::Apis::Core::JsonRepresentation
461
+ collection :details, as: 'details'
467
462
  property :type, as: 'type'
468
463
  collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation
469
464
 
470
- collection :details, as: 'details'
471
465
  end
472
466
  end
473
467
 
474
- class AddDealAssociationRequest
468
+ class ListDealAssociationsResponse
475
469
  # @private
476
470
  class Representation < Google::Apis::Core::JsonRepresentation
477
- property :association, as: 'association', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
471
+ property :next_page_token, as: 'nextPageToken'
472
+ collection :associations, as: 'associations', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
478
473
 
479
474
  end
480
475
  end
481
476
 
482
- class ListDealAssociationsResponse
477
+ class AddDealAssociationRequest
483
478
  # @private
484
479
  class Representation < Google::Apis::Core::JsonRepresentation
485
- property :next_page_token, as: 'nextPageToken'
486
- collection :associations, as: 'associations', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
480
+ property :association, as: 'association', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
487
481
 
488
482
  end
489
483
  end
490
484
 
491
- class Disapproval
485
+ class StopWatchingCreativeRequest
492
486
  # @private
493
487
  class Representation < Google::Apis::Core::JsonRepresentation
494
- collection :details, as: 'details'
495
- property :reason, as: 'reason'
496
488
  end
497
489
  end
498
490
 
499
- class StopWatchingCreativeRequest
491
+ class Disapproval
500
492
  # @private
501
493
  class Representation < Google::Apis::Core::JsonRepresentation
494
+ collection :details, as: 'details'
495
+ property :reason, as: 'reason'
502
496
  end
503
497
  end
504
498
 
505
499
  class ServingRestriction
506
500
  # @private
507
501
  class Representation < Google::Apis::Core::JsonRepresentation
508
- collection :disapproval_reasons, as: 'disapprovalReasons', class: Google::Apis::Adexchangebuyer2V2beta1::Disapproval, decorator: Google::Apis::Adexchangebuyer2V2beta1::Disapproval::Representation
509
-
510
502
  collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation
511
503
 
512
504
  property :status, as: 'status'
505
+ collection :disapproval_reasons, as: 'disapprovalReasons', class: Google::Apis::Adexchangebuyer2V2beta1::Disapproval, decorator: Google::Apis::Adexchangebuyer2V2beta1::Disapproval::Representation
506
+
513
507
  end
514
508
  end
515
509
 
@@ -521,6 +515,12 @@ module Google
521
515
  property :month, as: 'month'
522
516
  end
523
517
  end
518
+
519
+ class Empty
520
+ # @private
521
+ class Representation < Google::Apis::Core::JsonRepresentation
522
+ end
523
+ end
524
524
  end
525
525
  end
526
526
  end
@@ -33,16 +33,16 @@ 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
48
  end
@@ -52,11 +52,11 @@ module Google
52
52
  # Numerical account ID of the client's sponsor buyer. (required)
53
53
  # @param [String] client_account_id
54
54
  # Numerical account ID of the client buyer to retrieve. (required)
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
55
57
  # @param [String] quota_user
56
58
  # Available to use for quota purposes for server-side applications. Can be any
57
59
  # arbitrary string assigned to a user, but should not exceed 40 characters.
58
- # @param [String] fields
59
- # Selector specifying which fields to include in a partial response.
60
60
  # @param [Google::Apis::RequestOptions] options
61
61
  # Request-specific options
62
62
  #
@@ -69,14 +69,14 @@ module Google
69
69
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
70
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
71
  # @raise [Google::Apis::AuthorizationError] Authorization is required
72
- def get_account_client(account_id, client_account_id, quota_user: nil, fields: nil, options: nil, &block)
72
+ def get_account_client(account_id, client_account_id, fields: nil, quota_user: nil, options: nil, &block)
73
73
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
74
74
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
75
75
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
76
76
  command.params['accountId'] = account_id unless account_id.nil?
77
77
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
78
- command.query['quotaUser'] = quota_user unless quota_user.nil?
79
78
  command.query['fields'] = fields unless fields.nil?
79
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
80
80
  execute_or_queue_command(command, &block)
81
81
  end
82
82
 
@@ -92,11 +92,11 @@ module Google
92
92
  # @param [Fixnum] page_size
93
93
  # Requested page size. The server may return fewer clients than requested.
94
94
  # If unspecified, the server will pick an appropriate default.
95
+ # @param [String] fields
96
+ # Selector specifying which fields to include in a partial response.
95
97
  # @param [String] quota_user
96
98
  # Available to use for quota purposes for server-side applications. Can be any
97
99
  # arbitrary string assigned to a user, but should not exceed 40 characters.
98
- # @param [String] fields
99
- # Selector specifying which fields to include in a partial response.
100
100
  # @param [Google::Apis::RequestOptions] options
101
101
  # Request-specific options
102
102
  #
@@ -109,15 +109,15 @@ module Google
109
109
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
110
110
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
111
111
  # @raise [Google::Apis::AuthorizationError] Authorization is required
112
- def list_account_clients(account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
112
+ def list_account_clients(account_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
113
113
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients', options)
114
114
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse::Representation
115
115
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse
116
116
  command.params['accountId'] = account_id unless account_id.nil?
117
117
  command.query['pageToken'] = page_token unless page_token.nil?
118
118
  command.query['pageSize'] = page_size unless page_size.nil?
119
- command.query['quotaUser'] = quota_user unless quota_user.nil?
120
119
  command.query['fields'] = fields unless fields.nil?
120
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
121
121
  execute_or_queue_command(command, &block)
122
122
  end
123
123
 
@@ -128,11 +128,11 @@ module Google
128
128
  # @param [String] client_account_id
129
129
  # Unique numerical account ID of the client to update. (required)
130
130
  # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
131
+ # @param [String] fields
132
+ # Selector specifying which fields to include in a partial response.
131
133
  # @param [String] quota_user
132
134
  # Available to use for quota purposes for server-side applications. Can be any
133
135
  # arbitrary string assigned to a user, but should not exceed 40 characters.
134
- # @param [String] fields
135
- # Selector specifying which fields to include in a partial response.
136
136
  # @param [Google::Apis::RequestOptions] options
137
137
  # Request-specific options
138
138
  #
@@ -145,7 +145,7 @@ module Google
145
145
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
146
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
147
  # @raise [Google::Apis::AuthorizationError] Authorization is required
148
- def update_account_client(account_id, client_account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
148
+ def update_account_client(account_id, client_account_id, client_object = nil, fields: nil, quota_user: nil, options: nil, &block)
149
149
  command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
150
150
  command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
151
151
  command.request_object = client_object
@@ -153,8 +153,8 @@ module Google
153
153
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
154
154
  command.params['accountId'] = account_id unless account_id.nil?
155
155
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
156
- command.query['quotaUser'] = quota_user unless quota_user.nil?
157
156
  command.query['fields'] = fields unless fields.nil?
157
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
158
158
  execute_or_queue_command(command, &block)
159
159
  end
160
160
 
@@ -163,11 +163,11 @@ module Google
163
163
  # Unique numerical account ID for the buyer of which the client buyer
164
164
  # is a customer; the sponsor buyer to create a client for. (required)
165
165
  # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
166
+ # @param [String] fields
167
+ # Selector specifying which fields to include in a partial response.
166
168
  # @param [String] quota_user
167
169
  # Available to use for quota purposes for server-side applications. Can be any
168
170
  # arbitrary string assigned to a user, but should not exceed 40 characters.
169
- # @param [String] fields
170
- # Selector specifying which fields to include in a partial response.
171
171
  # @param [Google::Apis::RequestOptions] options
172
172
  # Request-specific options
173
173
  #
@@ -180,143 +180,53 @@ module Google
180
180
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
181
181
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
182
182
  # @raise [Google::Apis::AuthorizationError] Authorization is required
183
- def create_account_client(account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
183
+ def create_account_client(account_id, client_object = nil, fields: nil, quota_user: nil, options: nil, &block)
184
184
  command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients', options)
185
185
  command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
186
186
  command.request_object = client_object
187
187
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
188
188
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
189
189
  command.params['accountId'] = account_id unless account_id.nil?
190
- command.query['quotaUser'] = quota_user unless quota_user.nil?
191
190
  command.query['fields'] = fields unless fields.nil?
192
- execute_or_queue_command(command, &block)
193
- end
194
-
195
- # Lists all the known client users for a specified
196
- # sponsor buyer account ID.
197
- # @param [String] account_id
198
- # Numerical account ID of the sponsor buyer of the client to list users for.
199
- # (required)
200
- # @param [String] client_account_id
201
- # The account ID of the client buyer to list users for. (required)
202
- # You must specify either a string representation of a
203
- # numerical account identifier or the `-` character
204
- # to list all the client users for all the clients
205
- # of a given sponsor buyer.
206
- # @param [Fixnum] page_size
207
- # Requested page size. The server may return fewer clients than requested.
208
- # If unspecified, the server will pick an appropriate default.
209
- # @param [String] page_token
210
- # A token identifying a page of results the server should return.
211
- # Typically, this is the value of
212
- # ListClientUsersResponse.nextPageToken
213
- # returned from the previous call to the
214
- # accounts.clients.users.list method.
215
- # @param [String] quota_user
216
- # Available to use for quota purposes for server-side applications. Can be any
217
- # arbitrary string assigned to a user, but should not exceed 40 characters.
218
- # @param [String] fields
219
- # Selector specifying which fields to include in a partial response.
220
- # @param [Google::Apis::RequestOptions] options
221
- # Request-specific options
222
- #
223
- # @yield [result, err] Result & error if block supplied
224
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object
225
- # @yieldparam err [StandardError] error object if request failed
226
- #
227
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse]
228
- #
229
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
230
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
231
- # @raise [Google::Apis::AuthorizationError] Authorization is required
232
- def list_account_client_users(account_id, client_account_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
233
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options)
234
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation
235
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse
236
- command.params['accountId'] = account_id unless account_id.nil?
237
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
238
- command.query['pageSize'] = page_size unless page_size.nil?
239
- command.query['pageToken'] = page_token unless page_token.nil?
240
191
  command.query['quotaUser'] = quota_user unless quota_user.nil?
241
- command.query['fields'] = fields unless fields.nil?
242
192
  execute_or_queue_command(command, &block)
243
193
  end
244
194
 
245
- # Retrieves an existing client user.
195
+ # Creates and sends out an email invitation to access
196
+ # an Ad Exchange client buyer account.
246
197
  # @param [String] account_id
247
198
  # Numerical account ID of the client's sponsor buyer. (required)
248
199
  # @param [String] client_account_id
249
- # Numerical account ID of the client buyer
250
- # that the user to be retrieved is associated with. (required)
251
- # @param [String] user_id
252
- # Numerical identifier of the user to retrieve. (required)
253
- # @param [String] quota_user
254
- # Available to use for quota purposes for server-side applications. Can be any
255
- # arbitrary string assigned to a user, but should not exceed 40 characters.
200
+ # Numerical account ID of the client buyer that the user
201
+ # should be associated with. (required)
202
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_object
256
203
  # @param [String] fields
257
204
  # Selector specifying which fields to include in a partial response.
258
- # @param [Google::Apis::RequestOptions] options
259
- # Request-specific options
260
- #
261
- # @yield [result, err] Result & error if block supplied
262
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
263
- # @yieldparam err [StandardError] error object if request failed
264
- #
265
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
266
- #
267
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
268
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
269
- # @raise [Google::Apis::AuthorizationError] Authorization is required
270
- def get_account_client_user(account_id, client_account_id, user_id, quota_user: nil, fields: nil, options: nil, &block)
271
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
272
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
273
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
274
- command.params['accountId'] = account_id unless account_id.nil?
275
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
276
- command.params['userId'] = user_id unless user_id.nil?
277
- command.query['quotaUser'] = quota_user unless quota_user.nil?
278
- command.query['fields'] = fields unless fields.nil?
279
- execute_or_queue_command(command, &block)
280
- end
281
-
282
- # Updates an existing client user.
283
- # Only the user status can be changed on update.
284
- # @param [String] account_id
285
- # Numerical account ID of the client's sponsor buyer. (required)
286
- # @param [String] client_account_id
287
- # Numerical account ID of the client buyer that the user to be retrieved
288
- # is associated with. (required)
289
- # @param [String] user_id
290
- # Numerical identifier of the user to retrieve. (required)
291
- # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_object
292
205
  # @param [String] quota_user
293
206
  # Available to use for quota purposes for server-side applications. Can be any
294
207
  # arbitrary string assigned to a user, but should not exceed 40 characters.
295
- # @param [String] fields
296
- # Selector specifying which fields to include in a partial response.
297
208
  # @param [Google::Apis::RequestOptions] options
298
209
  # Request-specific options
299
210
  #
300
211
  # @yield [result, err] Result & error if block supplied
301
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
212
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
302
213
  # @yieldparam err [StandardError] error object if request failed
303
214
  #
304
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
215
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
305
216
  #
306
217
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
307
218
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
308
219
  # @raise [Google::Apis::AuthorizationError] Authorization is required
309
- def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, quota_user: nil, fields: nil, options: nil, &block)
310
- command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
311
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
312
- command.request_object = client_user_object
313
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
314
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
220
+ def create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
221
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
222
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
223
+ command.request_object = client_user_invitation_object
224
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
225
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
315
226
  command.params['accountId'] = account_id unless account_id.nil?
316
227
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
317
- command.params['userId'] = user_id unless user_id.nil?
318
- command.query['quotaUser'] = quota_user unless quota_user.nil?
319
228
  command.query['fields'] = fields unless fields.nil?
229
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
320
230
  execute_or_queue_command(command, &block)
321
231
  end
322
232
 
@@ -328,11 +238,11 @@ module Google
328
238
  # to be retrieved is associated with. (required)
329
239
  # @param [String] invitation_id
330
240
  # Numerical identifier of the user invitation to retrieve. (required)
241
+ # @param [String] fields
242
+ # Selector specifying which fields to include in a partial response.
331
243
  # @param [String] quota_user
332
244
  # Available to use for quota purposes for server-side applications. Can be any
333
245
  # arbitrary string assigned to a user, but should not exceed 40 characters.
334
- # @param [String] fields
335
- # Selector specifying which fields to include in a partial response.
336
246
  # @param [Google::Apis::RequestOptions] options
337
247
  # Request-specific options
338
248
  #
@@ -345,15 +255,15 @@ module Google
345
255
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
346
256
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
347
257
  # @raise [Google::Apis::AuthorizationError] Authorization is required
348
- def get_account_client_invitation(account_id, client_account_id, invitation_id, quota_user: nil, fields: nil, options: nil, &block)
258
+ def get_account_client_invitation(account_id, client_account_id, invitation_id, fields: nil, quota_user: nil, options: nil, &block)
349
259
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', options)
350
260
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
351
261
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
352
262
  command.params['accountId'] = account_id unless account_id.nil?
353
263
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
354
264
  command.params['invitationId'] = invitation_id unless invitation_id.nil?
355
- command.query['quotaUser'] = quota_user unless quota_user.nil?
356
265
  command.query['fields'] = fields unless fields.nil?
266
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
357
267
  execute_or_queue_command(command, &block)
358
268
  end
359
269
 
@@ -368,9 +278,6 @@ module Google
368
278
  # numerical account identifier or the `-` character
369
279
  # to list all the invitations for all the clients
370
280
  # of a given sponsor buyer.
371
- # @param [Fixnum] page_size
372
- # Requested page size. Server may return fewer clients than requested.
373
- # If unspecified, server will pick an appropriate default.
374
281
  # @param [String] page_token
375
282
  # A token identifying a page of results the server should return.
376
283
  # Typically, this is the value of
@@ -378,11 +285,14 @@ module Google
378
285
  # returned from the previous call to the
379
286
  # clients.invitations.list
380
287
  # method.
288
+ # @param [Fixnum] page_size
289
+ # Requested page size. Server may return fewer clients than requested.
290
+ # If unspecified, server will pick an appropriate default.
291
+ # @param [String] fields
292
+ # Selector specifying which fields to include in a partial response.
381
293
  # @param [String] quota_user
382
294
  # Available to use for quota purposes for server-side applications. Can be any
383
295
  # arbitrary string assigned to a user, but should not exceed 40 characters.
384
- # @param [String] fields
385
- # Selector specifying which fields to include in a partial response.
386
296
  # @param [Google::Apis::RequestOptions] options
387
297
  # Request-specific options
388
298
  #
@@ -395,114 +305,144 @@ module Google
395
305
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
396
306
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
397
307
  # @raise [Google::Apis::AuthorizationError] Authorization is required
398
- def list_account_client_invitations(account_id, client_account_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
308
+ def list_account_client_invitations(account_id, client_account_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
399
309
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
400
310
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation
401
311
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse
402
312
  command.params['accountId'] = account_id unless account_id.nil?
403
313
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
404
- command.query['pageSize'] = page_size unless page_size.nil?
405
314
  command.query['pageToken'] = page_token unless page_token.nil?
406
- command.query['quotaUser'] = quota_user unless quota_user.nil?
315
+ command.query['pageSize'] = page_size unless page_size.nil?
407
316
  command.query['fields'] = fields unless fields.nil?
317
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
408
318
  execute_or_queue_command(command, &block)
409
319
  end
410
320
 
411
- # Creates and sends out an email invitation to access
412
- # an Ad Exchange client buyer account.
321
+ # Updates an existing client user.
322
+ # Only the user status can be changed on update.
413
323
  # @param [String] account_id
414
324
  # Numerical account ID of the client's sponsor buyer. (required)
415
325
  # @param [String] client_account_id
416
- # Numerical account ID of the client buyer that the user
417
- # should be associated with. (required)
418
- # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_object
326
+ # Numerical account ID of the client buyer that the user to be retrieved
327
+ # is associated with. (required)
328
+ # @param [String] user_id
329
+ # Numerical identifier of the user to retrieve. (required)
330
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_object
331
+ # @param [String] fields
332
+ # Selector specifying which fields to include in a partial response.
419
333
  # @param [String] quota_user
420
334
  # Available to use for quota purposes for server-side applications. Can be any
421
335
  # arbitrary string assigned to a user, but should not exceed 40 characters.
422
- # @param [String] fields
423
- # Selector specifying which fields to include in a partial response.
424
336
  # @param [Google::Apis::RequestOptions] options
425
337
  # Request-specific options
426
338
  #
427
339
  # @yield [result, err] Result & error if block supplied
428
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
340
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
429
341
  # @yieldparam err [StandardError] error object if request failed
430
342
  #
431
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
343
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
432
344
  #
433
345
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
434
346
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
435
347
  # @raise [Google::Apis::AuthorizationError] Authorization is required
436
- def create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, quota_user: nil, fields: nil, options: nil, &block)
437
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
438
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
439
- command.request_object = client_user_invitation_object
440
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
441
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
348
+ def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, fields: nil, quota_user: nil, options: nil, &block)
349
+ command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
350
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
351
+ command.request_object = client_user_object
352
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
353
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
442
354
  command.params['accountId'] = account_id unless account_id.nil?
443
355
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
444
- command.query['quotaUser'] = quota_user unless quota_user.nil?
356
+ command.params['userId'] = user_id unless user_id.nil?
445
357
  command.query['fields'] = fields unless fields.nil?
358
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
446
359
  execute_or_queue_command(command, &block)
447
360
  end
448
361
 
449
- # Lists creatives.
362
+ # Lists all the known client users for a specified
363
+ # sponsor buyer account ID.
450
364
  # @param [String] account_id
451
- # The account to list the creatives from.
452
- # Specify "-" to list all creatives the current user has access to.
453
- # @param [Fixnum] page_size
454
- # Requested page size. The server may return fewer creatives than requested
455
- # (due to timeout constraint) even if more are available via another call.
456
- # If unspecified, server will pick an appropriate default.
457
- # Acceptable values are 1 to 1000, inclusive.
458
- # @param [String] query
459
- # An optional query string to filter creatives. If no filter is specified,
460
- # all active creatives will be returned.
461
- # Supported queries are:
462
- # <ul>
463
- # <li>accountId=<i>account_id_string</i>
464
- # <li>creativeId=<i>creative_id_string</i>
465
- # <li>dealsStatus: `approved, conditionally_approved, disapproved,
466
- # not_checked`
467
- # <li>openAuctionStatus: `approved, conditionally_approved, disapproved,
468
- # not_checked`
469
- # <li>attribute: `a numeric attribute from the list of attributes`
470
- # <li>disapprovalReason: `a reason from DisapprovalReason
471
- # </ul>
472
- # Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:
473
- # unacceptable_content) OR attribute:47'
365
+ # Numerical account ID of the sponsor buyer of the client to list users for.
366
+ # (required)
367
+ # @param [String] client_account_id
368
+ # The account ID of the client buyer to list users for. (required)
369
+ # You must specify either a string representation of a
370
+ # numerical account identifier or the `-` character
371
+ # to list all the client users for all the clients
372
+ # of a given sponsor buyer.
474
373
  # @param [String] page_token
475
374
  # A token identifying a page of results the server should return.
476
375
  # Typically, this is the value of
477
- # ListCreativesResponse.next_page_token
478
- # returned from the previous call to 'ListCreatives' method.
376
+ # ListClientUsersResponse.nextPageToken
377
+ # returned from the previous call to the
378
+ # accounts.clients.users.list method.
379
+ # @param [Fixnum] page_size
380
+ # Requested page size. The server may return fewer clients than requested.
381
+ # If unspecified, the server will pick an appropriate default.
382
+ # @param [String] fields
383
+ # Selector specifying which fields to include in a partial response.
479
384
  # @param [String] quota_user
480
385
  # Available to use for quota purposes for server-side applications. Can be any
481
386
  # arbitrary string assigned to a user, but should not exceed 40 characters.
482
- # @param [String] fields
483
- # Selector specifying which fields to include in a partial response.
484
387
  # @param [Google::Apis::RequestOptions] options
485
388
  # Request-specific options
486
389
  #
487
390
  # @yield [result, err] Result & error if block supplied
488
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse] parsed result object
391
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object
489
392
  # @yieldparam err [StandardError] error object if request failed
490
393
  #
491
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse]
394
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse]
492
395
  #
493
396
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
494
397
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
495
398
  # @raise [Google::Apis::AuthorizationError] Authorization is required
496
- def list_account_creatives(account_id, page_size: nil, query: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
497
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives', options)
498
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse::Representation
499
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse
399
+ def list_account_client_users(account_id, client_account_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
400
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options)
401
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation
402
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse
500
403
  command.params['accountId'] = account_id unless account_id.nil?
501
- command.query['pageSize'] = page_size unless page_size.nil?
502
- command.query['query'] = query unless query.nil?
404
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
503
405
  command.query['pageToken'] = page_token unless page_token.nil?
406
+ command.query['pageSize'] = page_size unless page_size.nil?
407
+ command.query['fields'] = fields unless fields.nil?
504
408
  command.query['quotaUser'] = quota_user unless quota_user.nil?
409
+ execute_or_queue_command(command, &block)
410
+ end
411
+
412
+ # Retrieves an existing client user.
413
+ # @param [String] account_id
414
+ # Numerical account ID of the client's sponsor buyer. (required)
415
+ # @param [String] client_account_id
416
+ # Numerical account ID of the client buyer
417
+ # that the user to be retrieved is associated with. (required)
418
+ # @param [String] user_id
419
+ # Numerical identifier of the user to retrieve. (required)
420
+ # @param [String] fields
421
+ # Selector specifying which fields to include in a partial response.
422
+ # @param [String] quota_user
423
+ # Available to use for quota purposes for server-side applications. Can be any
424
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
425
+ # @param [Google::Apis::RequestOptions] options
426
+ # Request-specific options
427
+ #
428
+ # @yield [result, err] Result & error if block supplied
429
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
430
+ # @yieldparam err [StandardError] error object if request failed
431
+ #
432
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
433
+ #
434
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
435
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
436
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
437
+ def get_account_client_user(account_id, client_account_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
438
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
439
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
440
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
441
+ command.params['accountId'] = account_id unless account_id.nil?
442
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
443
+ command.params['userId'] = user_id unless user_id.nil?
505
444
  command.query['fields'] = fields unless fields.nil?
445
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
506
446
  execute_or_queue_command(command, &block)
507
447
  end
508
448
 
@@ -516,11 +456,11 @@ module Google
516
456
  # @param [String] duplicate_id_mode
517
457
  # Indicates if multiple creatives can share an ID or not. Default is
518
458
  # NO_DUPLICATES (one ID per creative).
459
+ # @param [String] fields
460
+ # Selector specifying which fields to include in a partial response.
519
461
  # @param [String] quota_user
520
462
  # Available to use for quota purposes for server-side applications. Can be any
521
463
  # arbitrary string assigned to a user, but should not exceed 40 characters.
522
- # @param [String] fields
523
- # Selector specifying which fields to include in a partial response.
524
464
  # @param [Google::Apis::RequestOptions] options
525
465
  # Request-specific options
526
466
  #
@@ -533,7 +473,7 @@ module Google
533
473
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
534
474
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
535
475
  # @raise [Google::Apis::AuthorizationError] Authorization is required
536
- def create_account_creative(account_id, creative_object = nil, duplicate_id_mode: nil, quota_user: nil, fields: nil, options: nil, &block)
476
+ def create_account_creative(account_id, creative_object = nil, duplicate_id_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
537
477
  command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives', options)
538
478
  command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
539
479
  command.request_object = creative_object
@@ -541,8 +481,8 @@ module Google
541
481
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
542
482
  command.params['accountId'] = account_id unless account_id.nil?
543
483
  command.query['duplicateIdMode'] = duplicate_id_mode unless duplicate_id_mode.nil?
544
- command.query['quotaUser'] = quota_user unless quota_user.nil?
545
484
  command.query['fields'] = fields unless fields.nil?
485
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
546
486
  execute_or_queue_command(command, &block)
547
487
  end
548
488
 
@@ -554,11 +494,11 @@ module Google
554
494
  # The creative ID of the creative to stop notifications for.
555
495
  # Specify "-" to specify stopping account level notifications.
556
496
  # @param [Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest] stop_watching_creative_request_object
497
+ # @param [String] fields
498
+ # Selector specifying which fields to include in a partial response.
557
499
  # @param [String] quota_user
558
500
  # Available to use for quota purposes for server-side applications. Can be any
559
501
  # arbitrary string assigned to a user, but should not exceed 40 characters.
560
- # @param [String] fields
561
- # Selector specifying which fields to include in a partial response.
562
502
  # @param [Google::Apis::RequestOptions] options
563
503
  # Request-specific options
564
504
  #
@@ -571,7 +511,7 @@ module Google
571
511
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
572
512
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
573
513
  # @raise [Google::Apis::AuthorizationError] Authorization is required
574
- def stop_watching_creative(account_id, creative_id, stop_watching_creative_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
514
+ def stop_watching_creative(account_id, creative_id, stop_watching_creative_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
575
515
  command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching', options)
576
516
  command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest::Representation
577
517
  command.request_object = stop_watching_creative_request_object
@@ -579,8 +519,8 @@ module Google
579
519
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
580
520
  command.params['accountId'] = account_id unless account_id.nil?
581
521
  command.params['creativeId'] = creative_id unless creative_id.nil?
582
- command.query['quotaUser'] = quota_user unless quota_user.nil?
583
522
  command.query['fields'] = fields unless fields.nil?
523
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
584
524
  execute_or_queue_command(command, &block)
585
525
  end
586
526
 
@@ -589,11 +529,11 @@ module Google
589
529
  # The account the creative belongs to.
590
530
  # @param [String] creative_id
591
531
  # The ID of the creative to retrieve.
532
+ # @param [String] fields
533
+ # Selector specifying which fields to include in a partial response.
592
534
  # @param [String] quota_user
593
535
  # Available to use for quota purposes for server-side applications. Can be any
594
536
  # arbitrary string assigned to a user, but should not exceed 40 characters.
595
- # @param [String] fields
596
- # Selector specifying which fields to include in a partial response.
597
537
  # @param [Google::Apis::RequestOptions] options
598
538
  # Request-specific options
599
539
  #
@@ -606,14 +546,14 @@ module Google
606
546
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
607
547
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
608
548
  # @raise [Google::Apis::AuthorizationError] Authorization is required
609
- def get_account_creative(account_id, creative_id, quota_user: nil, fields: nil, options: nil, &block)
549
+ def get_account_creative(account_id, creative_id, fields: nil, quota_user: nil, options: nil, &block)
610
550
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
611
551
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
612
552
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
613
553
  command.params['accountId'] = account_id unless account_id.nil?
614
554
  command.params['creativeId'] = creative_id unless creative_id.nil?
615
- command.query['quotaUser'] = quota_user unless quota_user.nil?
616
555
  command.query['fields'] = fields unless fields.nil?
556
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
617
557
  execute_or_queue_command(command, &block)
618
558
  end
619
559
 
@@ -628,11 +568,11 @@ module Google
628
568
  # sent, only a single notification will be sent to the
629
569
  # creative-level notification topic.
630
570
  # @param [Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest] watch_creative_request_object
571
+ # @param [String] fields
572
+ # Selector specifying which fields to include in a partial response.
631
573
  # @param [String] quota_user
632
574
  # Available to use for quota purposes for server-side applications. Can be any
633
575
  # arbitrary string assigned to a user, but should not exceed 40 characters.
634
- # @param [String] fields
635
- # Selector specifying which fields to include in a partial response.
636
576
  # @param [Google::Apis::RequestOptions] options
637
577
  # Request-specific options
638
578
  #
@@ -645,7 +585,7 @@ module Google
645
585
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
646
586
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
647
587
  # @raise [Google::Apis::AuthorizationError] Authorization is required
648
- def watch_creative(account_id, creative_id, watch_creative_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
588
+ def watch_creative(account_id, creative_id, watch_creative_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
649
589
  command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:watch', options)
650
590
  command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest::Representation
651
591
  command.request_object = watch_creative_request_object
@@ -653,8 +593,8 @@ module Google
653
593
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
654
594
  command.params['accountId'] = account_id unless account_id.nil?
655
595
  command.params['creativeId'] = creative_id unless creative_id.nil?
656
- command.query['quotaUser'] = quota_user unless quota_user.nil?
657
596
  command.query['fields'] = fields unless fields.nil?
597
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
658
598
  execute_or_queue_command(command, &block)
659
599
  end
660
600
 
@@ -670,11 +610,11 @@ module Google
670
610
  # creatives.list
671
611
  # method.
672
612
  # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
613
+ # @param [String] fields
614
+ # Selector specifying which fields to include in a partial response.
673
615
  # @param [String] quota_user
674
616
  # Available to use for quota purposes for server-side applications. Can be any
675
617
  # arbitrary string assigned to a user, but should not exceed 40 characters.
676
- # @param [String] fields
677
- # Selector specifying which fields to include in a partial response.
678
618
  # @param [Google::Apis::RequestOptions] options
679
619
  # Request-specific options
680
620
  #
@@ -687,7 +627,7 @@ module Google
687
627
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
688
628
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
689
629
  # @raise [Google::Apis::AuthorizationError] Authorization is required
690
- def update_account_creative(account_id, creative_id, creative_object = nil, quota_user: nil, fields: nil, options: nil, &block)
630
+ def update_account_creative(account_id, creative_id, creative_object = nil, fields: nil, quota_user: nil, options: nil, &block)
691
631
  command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
692
632
  command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
693
633
  command.request_object = creative_object
@@ -695,8 +635,68 @@ module Google
695
635
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
696
636
  command.params['accountId'] = account_id unless account_id.nil?
697
637
  command.params['creativeId'] = creative_id unless creative_id.nil?
638
+ command.query['fields'] = fields unless fields.nil?
698
639
  command.query['quotaUser'] = quota_user unless quota_user.nil?
640
+ execute_or_queue_command(command, &block)
641
+ end
642
+
643
+ # Lists creatives.
644
+ # @param [String] account_id
645
+ # The account to list the creatives from.
646
+ # Specify "-" to list all creatives the current user has access to.
647
+ # @param [String] page_token
648
+ # A token identifying a page of results the server should return.
649
+ # Typically, this is the value of
650
+ # ListCreativesResponse.next_page_token
651
+ # returned from the previous call to 'ListCreatives' method.
652
+ # @param [Fixnum] page_size
653
+ # Requested page size. The server may return fewer creatives than requested
654
+ # (due to timeout constraint) even if more are available via another call.
655
+ # If unspecified, server will pick an appropriate default.
656
+ # Acceptable values are 1 to 1000, inclusive.
657
+ # @param [String] query
658
+ # An optional query string to filter creatives. If no filter is specified,
659
+ # all active creatives will be returned.
660
+ # Supported queries are:
661
+ # <ul>
662
+ # <li>accountId=<i>account_id_string</i>
663
+ # <li>creativeId=<i>creative_id_string</i>
664
+ # <li>dealsStatus: `approved, conditionally_approved, disapproved,
665
+ # not_checked`
666
+ # <li>openAuctionStatus: `approved, conditionally_approved, disapproved,
667
+ # not_checked`
668
+ # <li>attribute: `a numeric attribute from the list of attributes`
669
+ # <li>disapprovalReason: `a reason from DisapprovalReason
670
+ # </ul>
671
+ # Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:
672
+ # unacceptable_content) OR attribute:47'
673
+ # @param [String] fields
674
+ # Selector specifying which fields to include in a partial response.
675
+ # @param [String] quota_user
676
+ # Available to use for quota purposes for server-side applications. Can be any
677
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
678
+ # @param [Google::Apis::RequestOptions] options
679
+ # Request-specific options
680
+ #
681
+ # @yield [result, err] Result & error if block supplied
682
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse] parsed result object
683
+ # @yieldparam err [StandardError] error object if request failed
684
+ #
685
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse]
686
+ #
687
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
688
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
689
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
690
+ def list_account_creatives(account_id, page_token: nil, page_size: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
691
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives', options)
692
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse::Representation
693
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse
694
+ command.params['accountId'] = account_id unless account_id.nil?
695
+ command.query['pageToken'] = page_token unless page_token.nil?
696
+ command.query['pageSize'] = page_size unless page_size.nil?
697
+ command.query['query'] = query unless query.nil?
699
698
  command.query['fields'] = fields unless fields.nil?
699
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
700
700
  execute_or_queue_command(command, &block)
701
701
  end
702
702
 
@@ -729,11 +729,11 @@ module Google
729
729
  # not_checked`
730
730
  # </ul>
731
731
  # Example: 'dealsId=12345 AND dealsStatus:disapproved'
732
+ # @param [String] fields
733
+ # Selector specifying which fields to include in a partial response.
732
734
  # @param [String] quota_user
733
735
  # Available to use for quota purposes for server-side applications. Can be any
734
736
  # arbitrary string assigned to a user, but should not exceed 40 characters.
735
- # @param [String] fields
736
- # Selector specifying which fields to include in a partial response.
737
737
  # @param [Google::Apis::RequestOptions] options
738
738
  # Request-specific options
739
739
  #
@@ -746,7 +746,7 @@ module Google
746
746
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
747
747
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
748
748
  # @raise [Google::Apis::AuthorizationError] Authorization is required
749
- 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)
749
+ def list_account_creative_deal_associations(account_id, creative_id, page_token: nil, page_size: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
750
750
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations', options)
751
751
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse::Representation
752
752
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse
@@ -755,8 +755,8 @@ module Google
755
755
  command.query['pageToken'] = page_token unless page_token.nil?
756
756
  command.query['pageSize'] = page_size unless page_size.nil?
757
757
  command.query['query'] = query unless query.nil?
758
- command.query['quotaUser'] = quota_user unless quota_user.nil?
759
758
  command.query['fields'] = fields unless fields.nil?
759
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
760
760
  execute_or_queue_command(command, &block)
761
761
  end
762
762
 
@@ -766,11 +766,11 @@ module Google
766
766
  # @param [String] creative_id
767
767
  # The ID of the creative associated with the deal.
768
768
  # @param [Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest] add_deal_association_request_object
769
+ # @param [String] fields
770
+ # Selector specifying which fields to include in a partial response.
769
771
  # @param [String] quota_user
770
772
  # Available to use for quota purposes for server-side applications. Can be any
771
773
  # arbitrary string assigned to a user, but should not exceed 40 characters.
772
- # @param [String] fields
773
- # Selector specifying which fields to include in a partial response.
774
774
  # @param [Google::Apis::RequestOptions] options
775
775
  # Request-specific options
776
776
  #
@@ -783,7 +783,7 @@ module Google
783
783
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
784
784
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
785
785
  # @raise [Google::Apis::AuthorizationError] Authorization is required
786
- def add_deal_association(account_id, creative_id, add_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
786
+ def add_deal_association(account_id, creative_id, add_deal_association_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
787
787
  command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add', options)
788
788
  command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest::Representation
789
789
  command.request_object = add_deal_association_request_object
@@ -791,8 +791,8 @@ module Google
791
791
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
792
792
  command.params['accountId'] = account_id unless account_id.nil?
793
793
  command.params['creativeId'] = creative_id unless creative_id.nil?
794
- command.query['quotaUser'] = quota_user unless quota_user.nil?
795
794
  command.query['fields'] = fields unless fields.nil?
795
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
796
796
  execute_or_queue_command(command, &block)
797
797
  end
798
798
 
@@ -802,11 +802,11 @@ module Google
802
802
  # @param [String] creative_id
803
803
  # The ID of the creative associated with the deal.
804
804
  # @param [Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest] remove_deal_association_request_object
805
+ # @param [String] fields
806
+ # Selector specifying which fields to include in a partial response.
805
807
  # @param [String] quota_user
806
808
  # Available to use for quota purposes for server-side applications. Can be any
807
809
  # arbitrary string assigned to a user, but should not exceed 40 characters.
808
- # @param [String] fields
809
- # Selector specifying which fields to include in a partial response.
810
810
  # @param [Google::Apis::RequestOptions] options
811
811
  # Request-specific options
812
812
  #
@@ -819,7 +819,7 @@ module Google
819
819
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
820
820
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
821
821
  # @raise [Google::Apis::AuthorizationError] Authorization is required
822
- def remove_deal_association(account_id, creative_id, remove_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
822
+ def remove_deal_association(account_id, creative_id, remove_deal_association_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
823
823
  command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove', options)
824
824
  command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest::Representation
825
825
  command.request_object = remove_deal_association_request_object
@@ -827,16 +827,16 @@ module Google
827
827
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
828
828
  command.params['accountId'] = account_id unless account_id.nil?
829
829
  command.params['creativeId'] = creative_id unless creative_id.nil?
830
- command.query['quotaUser'] = quota_user unless quota_user.nil?
831
830
  command.query['fields'] = fields unless fields.nil?
831
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
832
832
  execute_or_queue_command(command, &block)
833
833
  end
834
834
 
835
835
  protected
836
836
 
837
837
  def apply_command_defaults(command)
838
- command.query['quotaUser'] = quota_user unless quota_user.nil?
839
838
  command.query['key'] = key unless key.nil?
839
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
840
840
  end
841
841
  end
842
842
  end