google-api-client 0.10.0 → 0.10.1

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 (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +37747 -36512
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  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/analyticsreporting_v4.rb +4 -4
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
  21. data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  26. data/generated/google/apis/appsactivity_v1.rb +3 -3
  27. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +34 -8
  31. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/calendar_v3/classes.rb +3 -5
  34. data/generated/google/apis/classroom_v1.rb +25 -22
  35. data/generated/google/apis/classroom_v1/classes.rb +910 -1001
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1064 -1272
  38. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  39. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  40. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  41. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  42. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
  44. data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
  45. data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
  46. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  47. data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
  48. data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
  49. data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
  50. data/generated/google/apis/cloudkms_v1.rb +35 -0
  51. data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
  52. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  53. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  54. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
  56. data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
  57. data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
  58. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
  61. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
  62. data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
  63. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  64. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
  66. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
  67. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  68. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
  69. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  70. data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
  71. data/generated/google/apis/compute_beta.rb +1 -1
  72. data/generated/google/apis/compute_beta/classes.rb +813 -82
  73. data/generated/google/apis/compute_beta/representations.rb +305 -0
  74. data/generated/google/apis/compute_beta/service.rb +971 -180
  75. data/generated/google/apis/compute_v1.rb +1 -1
  76. data/generated/google/apis/compute_v1/classes.rb +147 -21
  77. data/generated/google/apis/compute_v1/representations.rb +38 -0
  78. data/generated/google/apis/compute_v1/service.rb +347 -65
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/classes.rb +2 -1
  81. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
  84. data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
  87. data/generated/google/apis/dataproc_v1/representations.rb +220 -204
  88. data/generated/google/apis/dataproc_v1/service.rb +299 -299
  89. data/generated/google/apis/datastore_v1.rb +4 -4
  90. data/generated/google/apis/datastore_v1/classes.rb +688 -688
  91. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  92. data/generated/google/apis/datastore_v1/service.rb +68 -68
  93. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  94. data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v2beta1.rb +1 -1
  97. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +487 -15
  102. data/generated/google/apis/drive_v2/representations.rb +120 -0
  103. data/generated/google/apis/drive_v2/service.rb +355 -38
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +416 -14
  106. data/generated/google/apis/drive_v3/representations.rb +99 -0
  107. data/generated/google/apis/drive_v3/service.rb +315 -28
  108. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1.rb +7 -7
  112. data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
  113. data/generated/google/apis/genomics_v1/representations.rb +239 -239
  114. data/generated/google/apis/genomics_v1/service.rb +599 -599
  115. data/generated/google/apis/gmail_v1.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +18 -1
  117. data/generated/google/apis/groupssettings_v1.rb +1 -1
  118. data/generated/google/apis/iam_v1.rb +1 -1
  119. data/generated/google/apis/iam_v1/classes.rb +440 -440
  120. data/generated/google/apis/iam_v1/representations.rb +96 -96
  121. data/generated/google/apis/iam_v1/service.rb +150 -150
  122. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  123. data/generated/google/apis/language_v1beta1.rb +1 -1
  124. data/generated/google/apis/language_v1beta1/classes.rb +235 -235
  125. data/generated/google/apis/language_v1beta1/representations.rb +73 -73
  126. data/generated/google/apis/language_v1beta1/service.rb +49 -49
  127. data/generated/google/apis/licensing_v1.rb +1 -1
  128. data/generated/google/apis/logging_v2beta1.rb +1 -1
  129. data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
  130. data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
  131. data/generated/google/apis/logging_v2beta1/service.rb +315 -316
  132. data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
  133. data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
  134. data/generated/google/apis/manufacturers_v1/service.rb +32 -32
  135. data/generated/google/apis/monitoring_v3.rb +4 -4
  136. data/generated/google/apis/monitoring_v3/classes.rb +229 -229
  137. data/generated/google/apis/monitoring_v3/representations.rb +45 -45
  138. data/generated/google/apis/monitoring_v3/service.rb +141 -141
  139. data/generated/google/apis/partners_v2.rb +3 -3
  140. data/generated/google/apis/partners_v2/classes.rb +1837 -483
  141. data/generated/google/apis/partners_v2/representations.rb +614 -157
  142. data/generated/google/apis/partners_v2/service.rb +881 -150
  143. data/generated/google/apis/people_v1.rb +1 -1
  144. data/generated/google/apis/people_v1/classes.rb +517 -465
  145. data/generated/google/apis/people_v1/representations.rb +138 -107
  146. data/generated/google/apis/people_v1/service.rb +56 -49
  147. data/generated/google/apis/plus_domains_v1.rb +1 -1
  148. data/generated/google/apis/plus_v1.rb +1 -1
  149. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  150. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
  151. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
  152. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
  153. data/generated/google/apis/pubsub_v1.rb +4 -4
  154. data/generated/google/apis/pubsub_v1/classes.rb +203 -203
  155. data/generated/google/apis/pubsub_v1/representations.rb +65 -65
  156. data/generated/google/apis/pubsub_v1/service.rb +226 -217
  157. data/generated/google/apis/reseller_v1.rb +1 -1
  158. data/generated/google/apis/reseller_v1/classes.rb +213 -61
  159. data/generated/google/apis/reseller_v1/representations.rb +27 -0
  160. data/generated/google/apis/reseller_v1/service.rb +240 -47
  161. data/generated/google/apis/script_v1.rb +14 -14
  162. data/generated/google/apis/script_v1/classes.rb +95 -95
  163. data/generated/google/apis/script_v1/representations.rb +25 -25
  164. data/generated/google/apis/sheets_v4.rb +1 -1
  165. data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
  166. data/generated/google/apis/sheets_v4/representations.rb +853 -837
  167. data/generated/google/apis/sheets_v4/service.rb +32 -32
  168. data/generated/google/apis/slides_v1.rb +1 -1
  169. data/generated/google/apis/slides_v1/classes.rb +804 -748
  170. data/generated/google/apis/slides_v1/representations.rb +204 -187
  171. data/generated/google/apis/slides_v1/service.rb +16 -16
  172. data/generated/google/apis/speech_v1beta1.rb +1 -1
  173. data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
  174. data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
  175. data/generated/google/apis/speech_v1beta1/service.rb +66 -66
  176. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  177. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
  178. data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
  179. data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
  180. data/generated/google/apis/storage_v1.rb +1 -1
  181. data/generated/google/apis/storage_v1/service.rb +10 -7
  182. data/generated/google/apis/vision_v1.rb +1 -1
  183. data/generated/google/apis/vision_v1/classes.rb +1393 -865
  184. data/generated/google/apis/vision_v1/representations.rb +367 -102
  185. data/generated/google/apis/vision_v1/service.rb +4 -4
  186. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  189. data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
  190. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  191. data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
  192. data/lib/google/apis/version.rb +1 -1
  193. metadata +34 -30
@@ -47,40 +47,6 @@ module Google
47
47
  super('https://adexchangebuyer.googleapis.com/', '')
48
48
  end
49
49
 
50
- # Creates a new client buyer.
51
- # @param [String] account_id
52
- # Unique numerical account ID for the buyer of which the client buyer
53
- # is a customer; the sponsor buyer to create a client for. (required)
54
- # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
55
- # @param [String] quota_user
56
- # Available to use for quota purposes for server-side applications. Can be any
57
- # 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
- # @param [Google::Apis::RequestOptions] options
61
- # Request-specific options
62
- #
63
- # @yield [result, err] Result & error if block supplied
64
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
65
- # @yieldparam err [StandardError] error object if request failed
66
- #
67
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
68
- #
69
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
- # @raise [Google::Apis::AuthorizationError] Authorization is required
72
- def create_account_client(account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
73
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients', options)
74
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
75
- command.request_object = client_object
76
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
77
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
78
- command.params['accountId'] = account_id unless account_id.nil?
79
- command.query['quotaUser'] = quota_user unless quota_user.nil?
80
- command.query['fields'] = fields unless fields.nil?
81
- execute_or_queue_command(command, &block)
82
- end
83
-
84
50
  # Gets a client buyer with a given client account ID.
85
51
  # @param [String] account_id
86
52
  # Numerical account ID of the client's sponsor buyer. (required)
@@ -192,6 +158,168 @@ module Google
192
158
  execute_or_queue_command(command, &block)
193
159
  end
194
160
 
161
+ # Creates a new client buyer.
162
+ # @param [String] account_id
163
+ # Unique numerical account ID for the buyer of which the client buyer
164
+ # is a customer; the sponsor buyer to create a client for. (required)
165
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
166
+ # @param [String] quota_user
167
+ # Available to use for quota purposes for server-side applications. Can be any
168
+ # 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
+ # @param [Google::Apis::RequestOptions] options
172
+ # Request-specific options
173
+ #
174
+ # @yield [result, err] Result & error if block supplied
175
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
176
+ # @yieldparam err [StandardError] error object if request failed
177
+ #
178
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
179
+ #
180
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
181
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
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)
184
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients', options)
185
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
186
+ command.request_object = client_object
187
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
188
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
189
+ command.params['accountId'] = account_id unless account_id.nil?
190
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
191
+ 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
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
241
+ command.query['fields'] = fields unless fields.nil?
242
+ execute_or_queue_command(command, &block)
243
+ end
244
+
245
+ # Retrieves an existing client user.
246
+ # @param [String] account_id
247
+ # Numerical account ID of the client's sponsor buyer. (required)
248
+ # @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.
256
+ # @param [String] fields
257
+ # 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
+ # @param [String] quota_user
293
+ # Available to use for quota purposes for server-side applications. Can be any
294
+ # 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
+ # @param [Google::Apis::RequestOptions] options
298
+ # Request-specific options
299
+ #
300
+ # @yield [result, err] Result & error if block supplied
301
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
302
+ # @yieldparam err [StandardError] error object if request failed
303
+ #
304
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
305
+ #
306
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
307
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
308
+ # @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
315
+ command.params['accountId'] = account_id unless account_id.nil?
316
+ 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
+ command.query['fields'] = fields unless fields.nil?
320
+ execute_or_queue_command(command, &block)
321
+ end
322
+
195
323
  # Retrieves an existing client user invitation.
196
324
  # @param [String] account_id
197
325
  # Numerical account ID of the client's sponsor buyer. (required)
@@ -240,6 +368,9 @@ module Google
240
368
  # numerical account identifier or the `-` character
241
369
  # to list all the invitations for all the clients
242
370
  # 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.
243
374
  # @param [String] page_token
244
375
  # A token identifying a page of results the server should return.
245
376
  # Typically, this is the value of
@@ -247,9 +378,6 @@ module Google
247
378
  # returned from the previous call to the
248
379
  # clients.invitations.list
249
380
  # method.
250
- # @param [Fixnum] page_size
251
- # Requested page size. Server may return fewer clients than requested.
252
- # If unspecified, server will pick an appropriate default.
253
381
  # @param [String] quota_user
254
382
  # Available to use for quota purposes for server-side applications. Can be any
255
383
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -267,14 +395,14 @@ module Google
267
395
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
268
396
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
269
397
  # @raise [Google::Apis::AuthorizationError] Authorization is required
270
- def list_account_client_invitations(account_id, client_account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
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)
271
399
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
272
400
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation
273
401
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse
274
402
  command.params['accountId'] = account_id unless account_id.nil?
275
403
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
276
- command.query['pageToken'] = page_token unless page_token.nil?
277
404
  command.query['pageSize'] = page_size unless page_size.nil?
405
+ command.query['pageToken'] = page_token unless page_token.nil?
278
406
  command.query['quotaUser'] = quota_user unless quota_user.nil?
279
407
  command.query['fields'] = fields unless fields.nil?
280
408
  execute_or_queue_command(command, &block)
@@ -318,26 +446,289 @@ module Google
318
446
  execute_or_queue_command(command, &block)
319
447
  end
320
448
 
321
- # Lists all the known client users for a specified
322
- # sponsor buyer account ID.
449
+ # Lists creatives.
323
450
  # @param [String] account_id
324
- # Numerical account ID of the sponsor buyer of the client to list users for.
325
- # (required)
326
- # @param [String] client_account_id
327
- # The account ID of the client buyer to list users for. (required)
328
- # You must specify either a string representation of a
329
- # numerical account identifier or the `-` character
330
- # to list all the client users for all the clients
331
- # of a given sponsor buyer.
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'
332
474
  # @param [String] page_token
333
475
  # A token identifying a page of results the server should return.
334
476
  # Typically, this is the value of
335
- # ListClientUsersResponse.nextPageToken
336
- # returned from the previous call to the
337
- # accounts.clients.users.list method.
477
+ # ListCreativesResponse.next_page_token
478
+ # returned from the previous call to 'ListCreatives' method.
479
+ # @param [String] quota_user
480
+ # Available to use for quota purposes for server-side applications. Can be any
481
+ # 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
+ # @param [Google::Apis::RequestOptions] options
485
+ # Request-specific options
486
+ #
487
+ # @yield [result, err] Result & error if block supplied
488
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse] parsed result object
489
+ # @yieldparam err [StandardError] error object if request failed
490
+ #
491
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse]
492
+ #
493
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
494
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
495
+ # @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
500
+ 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?
503
+ command.query['pageToken'] = page_token unless page_token.nil?
504
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
505
+ command.query['fields'] = fields unless fields.nil?
506
+ execute_or_queue_command(command, &block)
507
+ end
508
+
509
+ # Creates a creative.
510
+ # @param [String] account_id
511
+ # The account that this creative belongs to.
512
+ # Can be used to filter the response of the
513
+ # creatives.list
514
+ # method.
515
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
516
+ # @param [String] duplicate_id_mode
517
+ # Indicates if multiple creatives can share an ID or not. Default is
518
+ # NO_DUPLICATES (one ID per creative).
519
+ # @param [String] quota_user
520
+ # Available to use for quota purposes for server-side applications. Can be any
521
+ # 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
+ # @param [Google::Apis::RequestOptions] options
525
+ # Request-specific options
526
+ #
527
+ # @yield [result, err] Result & error if block supplied
528
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
529
+ # @yieldparam err [StandardError] error object if request failed
530
+ #
531
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
532
+ #
533
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
534
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
535
+ # @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)
537
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives', options)
538
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
539
+ command.request_object = creative_object
540
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
541
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
542
+ command.params['accountId'] = account_id unless account_id.nil?
543
+ command.query['duplicateIdMode'] = duplicate_id_mode unless duplicate_id_mode.nil?
544
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
545
+ command.query['fields'] = fields unless fields.nil?
546
+ execute_or_queue_command(command, &block)
547
+ end
548
+
549
+ # Stops watching a creative. Will stop push notifications being sent to the
550
+ # topics when the creative changes status.
551
+ # @param [String] account_id
552
+ # The account of the creative to stop notifications for.
553
+ # @param [String] creative_id
554
+ # The creative ID of the creative to stop notifications for.
555
+ # Specify "-" to specify stopping account level notifications.
556
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest] stop_watching_creative_request_object
557
+ # @param [String] quota_user
558
+ # Available to use for quota purposes for server-side applications. Can be any
559
+ # 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
+ # @param [Google::Apis::RequestOptions] options
563
+ # Request-specific options
564
+ #
565
+ # @yield [result, err] Result & error if block supplied
566
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
567
+ # @yieldparam err [StandardError] error object if request failed
568
+ #
569
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
570
+ #
571
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
572
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
573
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
574
+ def stop_watching_creative(account_id, creative_id, stop_watching_creative_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
575
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching', options)
576
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest::Representation
577
+ command.request_object = stop_watching_creative_request_object
578
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
579
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
580
+ command.params['accountId'] = account_id unless account_id.nil?
581
+ command.params['creativeId'] = creative_id unless creative_id.nil?
582
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
583
+ command.query['fields'] = fields unless fields.nil?
584
+ execute_or_queue_command(command, &block)
585
+ end
586
+
587
+ # Gets a creative.
588
+ # @param [String] account_id
589
+ # The account the creative belongs to.
590
+ # @param [String] creative_id
591
+ # The ID of the creative to retrieve.
592
+ # @param [String] quota_user
593
+ # Available to use for quota purposes for server-side applications. Can be any
594
+ # 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
+ # @param [Google::Apis::RequestOptions] options
598
+ # Request-specific options
599
+ #
600
+ # @yield [result, err] Result & error if block supplied
601
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
602
+ # @yieldparam err [StandardError] error object if request failed
603
+ #
604
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
605
+ #
606
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
607
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
608
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
609
+ def get_account_creative(account_id, creative_id, quota_user: nil, fields: nil, options: nil, &block)
610
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
611
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
612
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
613
+ command.params['accountId'] = account_id unless account_id.nil?
614
+ command.params['creativeId'] = creative_id unless creative_id.nil?
615
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
616
+ command.query['fields'] = fields unless fields.nil?
617
+ execute_or_queue_command(command, &block)
618
+ end
619
+
620
+ # Watches a creative. Will result in push notifications being sent to the
621
+ # topic when the creative changes status.
622
+ # @param [String] account_id
623
+ # The account of the creative to watch.
624
+ # @param [String] creative_id
625
+ # The creative ID to watch for status changes.
626
+ # Specify "-" to watch all creatives under the above account.
627
+ # If both creative-level and account-level notifications are
628
+ # sent, only a single notification will be sent to the
629
+ # creative-level notification topic.
630
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest] watch_creative_request_object
631
+ # @param [String] quota_user
632
+ # Available to use for quota purposes for server-side applications. Can be any
633
+ # 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
+ # @param [Google::Apis::RequestOptions] options
637
+ # Request-specific options
638
+ #
639
+ # @yield [result, err] Result & error if block supplied
640
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
641
+ # @yieldparam err [StandardError] error object if request failed
642
+ #
643
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
644
+ #
645
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
646
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
647
+ # @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)
649
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:watch', options)
650
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest::Representation
651
+ command.request_object = watch_creative_request_object
652
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
653
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
654
+ command.params['accountId'] = account_id unless account_id.nil?
655
+ command.params['creativeId'] = creative_id unless creative_id.nil?
656
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
657
+ command.query['fields'] = fields unless fields.nil?
658
+ execute_or_queue_command(command, &block)
659
+ end
660
+
661
+ # Updates a creative.
662
+ # @param [String] account_id
663
+ # The account that this creative belongs to.
664
+ # Can be used to filter the response of the
665
+ # creatives.list
666
+ # method.
667
+ # @param [String] creative_id
668
+ # The buyer-defined creative ID of this creative.
669
+ # Can be used to filter the response of the
670
+ # creatives.list
671
+ # method.
672
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
673
+ # @param [String] quota_user
674
+ # Available to use for quota purposes for server-side applications. Can be any
675
+ # 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
+ # @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::Creative] parsed result object
683
+ # @yieldparam err [StandardError] error object if request failed
684
+ #
685
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
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 update_account_creative(account_id, creative_id, creative_object = nil, quota_user: nil, fields: nil, options: nil, &block)
691
+ command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
692
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
693
+ command.request_object = creative_object
694
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
695
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
696
+ command.params['accountId'] = account_id unless account_id.nil?
697
+ command.params['creativeId'] = creative_id unless creative_id.nil?
698
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
699
+ command.query['fields'] = fields unless fields.nil?
700
+ execute_or_queue_command(command, &block)
701
+ end
702
+
703
+ # List all creative-deal associations.
704
+ # @param [String] account_id
705
+ # The account to list the associations from.
706
+ # Specify "-" to list all creatives the current user has access to.
707
+ # @param [String] creative_id
708
+ # The creative ID to list the associations from.
709
+ # Specify "-" to list all creatives under the above account.
710
+ # @param [String] page_token
711
+ # A token identifying a page of results the server should return.
712
+ # Typically, this is the value of
713
+ # ListDealAssociationsResponse.next_page_token
714
+ # returned from the previous call to 'ListDealAssociations' method.
338
715
  # @param [Fixnum] page_size
339
- # Requested page size. The server may return fewer clients than requested.
340
- # If unspecified, the server will pick an appropriate default.
716
+ # Requested page size. Server may return fewer associations than requested.
717
+ # If unspecified, server will pick an appropriate default.
718
+ # @param [String] query
719
+ # An optional query string to filter deal associations. If no filter is
720
+ # specified, all associations will be returned.
721
+ # Supported queries are:
722
+ # <ul>
723
+ # <li>accountId=<i>account_id_string</i>
724
+ # <li>creativeId=<i>creative_id_string</i>
725
+ # <li>dealsId=<i>deals_id_string</i>
726
+ # <li>dealsStatus:`approved, conditionally_approved, disapproved,
727
+ # not_checked`
728
+ # <li>openAuctionStatus:`approved, conditionally_approved, disapproved,
729
+ # not_checked`
730
+ # </ul>
731
+ # Example: 'dealsId=12345 AND dealsStatus:disapproved'
341
732
  # @param [String] quota_user
342
733
  # Available to use for quota purposes for server-side applications. Can be any
343
734
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -347,35 +738,34 @@ module Google
347
738
  # Request-specific options
348
739
  #
349
740
  # @yield [result, err] Result & error if block supplied
350
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object
741
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse] parsed result object
351
742
  # @yieldparam err [StandardError] error object if request failed
352
743
  #
353
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse]
744
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse]
354
745
  #
355
746
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
356
747
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
357
748
  # @raise [Google::Apis::AuthorizationError] Authorization is required
358
- def list_account_client_users(account_id, client_account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
359
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options)
360
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation
361
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse
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)
750
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations', options)
751
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse::Representation
752
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse
362
753
  command.params['accountId'] = account_id unless account_id.nil?
363
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
754
+ command.params['creativeId'] = creative_id unless creative_id.nil?
364
755
  command.query['pageToken'] = page_token unless page_token.nil?
365
756
  command.query['pageSize'] = page_size unless page_size.nil?
757
+ command.query['query'] = query unless query.nil?
366
758
  command.query['quotaUser'] = quota_user unless quota_user.nil?
367
759
  command.query['fields'] = fields unless fields.nil?
368
760
  execute_or_queue_command(command, &block)
369
761
  end
370
762
 
371
- # Retrieves an existing client user.
763
+ # Associate an existing deal with a creative.
372
764
  # @param [String] account_id
373
- # Numerical account ID of the client's sponsor buyer. (required)
374
- # @param [String] client_account_id
375
- # Numerical account ID of the client buyer
376
- # that the user to be retrieved is associated with. (required)
377
- # @param [String] user_id
378
- # Numerical identifier of the user to retrieve. (required)
765
+ # The account the creative belongs to.
766
+ # @param [String] creative_id
767
+ # The ID of the creative associated with the deal.
768
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest] add_deal_association_request_object
379
769
  # @param [String] quota_user
380
770
  # Available to use for quota purposes for server-side applications. Can be any
381
771
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -385,36 +775,33 @@ module Google
385
775
  # Request-specific options
386
776
  #
387
777
  # @yield [result, err] Result & error if block supplied
388
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
778
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
389
779
  # @yieldparam err [StandardError] error object if request failed
390
780
  #
391
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
781
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
392
782
  #
393
783
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
394
784
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
395
785
  # @raise [Google::Apis::AuthorizationError] Authorization is required
396
- def get_account_client_user(account_id, client_account_id, user_id, quota_user: nil, fields: nil, options: nil, &block)
397
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
398
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
399
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
786
+ def add_deal_association(account_id, creative_id, add_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
787
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add', options)
788
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest::Representation
789
+ command.request_object = add_deal_association_request_object
790
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
791
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
400
792
  command.params['accountId'] = account_id unless account_id.nil?
401
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
402
- command.params['userId'] = user_id unless user_id.nil?
793
+ command.params['creativeId'] = creative_id unless creative_id.nil?
403
794
  command.query['quotaUser'] = quota_user unless quota_user.nil?
404
795
  command.query['fields'] = fields unless fields.nil?
405
796
  execute_or_queue_command(command, &block)
406
797
  end
407
798
 
408
- # Updates an existing client user.
409
- # Only the user status can be changed on update.
799
+ # Remove the association between a deal and a creative.
410
800
  # @param [String] account_id
411
- # Numerical account ID of the client's sponsor buyer. (required)
412
- # @param [String] client_account_id
413
- # Numerical account ID of the client buyer that the user to be retrieved
414
- # is associated with. (required)
415
- # @param [String] user_id
416
- # Numerical identifier of the user to retrieve. (required)
417
- # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_object
801
+ # The account the creative belongs to.
802
+ # @param [String] creative_id
803
+ # The ID of the creative associated with the deal.
804
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest] remove_deal_association_request_object
418
805
  # @param [String] quota_user
419
806
  # Available to use for quota purposes for server-side applications. Can be any
420
807
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -424,23 +811,22 @@ module Google
424
811
  # Request-specific options
425
812
  #
426
813
  # @yield [result, err] Result & error if block supplied
427
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
814
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
428
815
  # @yieldparam err [StandardError] error object if request failed
429
816
  #
430
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
817
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
431
818
  #
432
819
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
433
820
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
434
821
  # @raise [Google::Apis::AuthorizationError] Authorization is required
435
- def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, quota_user: nil, fields: nil, options: nil, &block)
436
- command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
437
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
438
- command.request_object = client_user_object
439
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
440
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
822
+ def remove_deal_association(account_id, creative_id, remove_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
823
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove', options)
824
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest::Representation
825
+ command.request_object = remove_deal_association_request_object
826
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
827
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
441
828
  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?
829
+ command.params['creativeId'] = creative_id unless creative_id.nil?
444
830
  command.query['quotaUser'] = quota_user unless quota_user.nil?
445
831
  command.query['fields'] = fields unless fields.nil?
446
832
  execute_or_queue_command(command, &block)