google-api-client 0.9.28 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -4
  3. data/CHANGELOG.md +10 -0
  4. data/api_names.yaml +36512 -36326
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +41 -41
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +13 -13
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +110 -110
  9. data/generated/google/apis/adsense_v1_4.rb +1 -1
  10. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  11. data/generated/google/apis/analyticsreporting_v4.rb +3 -3
  12. data/generated/google/apis/analyticsreporting_v4/classes.rb +845 -845
  13. data/generated/google/apis/analyticsreporting_v4/representations.rb +184 -184
  14. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  15. data/generated/google/apis/androidenterprise_v1/classes.rb +5 -5
  16. data/generated/google/apis/androidenterprise_v1/service.rb +3 -1
  17. data/generated/google/apis/appstate_v1.rb +1 -1
  18. data/generated/google/apis/calendar_v3.rb +1 -1
  19. data/generated/google/apis/classroom_v1.rb +22 -25
  20. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  21. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  22. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  23. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1/classes.rb +322 -322
  25. data/generated/google/apis/cloudbuild_v1/representations.rb +88 -88
  26. data/generated/google/apis/cloudbuild_v1/service.rb +57 -57
  27. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  28. data/generated/google/apis/clouddebugger_v2/classes.rb +311 -311
  29. data/generated/google/apis/clouddebugger_v2/representations.rb +92 -92
  30. data/generated/google/apis/clouddebugger_v2/service.rb +41 -41
  31. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  32. data/generated/google/apis/cloudkms_v1beta1/classes.rb +611 -611
  33. data/generated/google/apis/cloudkms_v1beta1/representations.rb +124 -124
  34. data/generated/google/apis/cloudkms_v1beta1/service.rb +254 -248
  35. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  36. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +116 -116
  37. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +28 -28
  38. data/generated/google/apis/cloudresourcemanager_v1/service.rb +257 -257
  39. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  40. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +394 -394
  41. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
  42. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +269 -269
  43. data/generated/google/apis/cloudtrace_v1.rb +8 -8
  44. data/generated/google/apis/cloudtrace_v1/classes.rb +90 -84
  45. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  46. data/generated/google/apis/cloudtrace_v1/service.rb +40 -35
  47. data/generated/google/apis/compute_beta.rb +1 -1
  48. data/generated/google/apis/compute_beta/classes.rb +406 -31
  49. data/generated/google/apis/compute_beta/representations.rb +154 -0
  50. data/generated/google/apis/compute_beta/service.rb +262 -9
  51. data/generated/google/apis/compute_v1.rb +1 -1
  52. data/generated/google/apis/compute_v1/classes.rb +17 -20
  53. data/generated/google/apis/content_v2.rb +1 -1
  54. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  55. data/generated/google/apis/dataflow_v1b3/classes.rb +3226 -2847
  56. data/generated/google/apis/dataflow_v1b3/representations.rb +825 -677
  57. data/generated/google/apis/dataflow_v1b3/service.rb +175 -175
  58. data/generated/google/apis/dataproc_v1.rb +2 -2
  59. data/generated/google/apis/dataproc_v1/classes.rb +1213 -1136
  60. data/generated/google/apis/dataproc_v1/representations.rb +262 -244
  61. data/generated/google/apis/dataproc_v1/service.rb +298 -243
  62. data/generated/google/apis/datastore_v1.rb +4 -4
  63. data/generated/google/apis/datastore_v1/classes.rb +728 -728
  64. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  65. data/generated/google/apis/datastore_v1/service.rb +68 -68
  66. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  67. data/generated/google/apis/drive_v2.rb +1 -1
  68. data/generated/google/apis/drive_v3.rb +1 -1
  69. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  70. data/generated/google/apis/games_management_v1management.rb +1 -1
  71. data/generated/google/apis/games_v1.rb +1 -1
  72. data/generated/google/apis/genomics_v1.rb +7 -7
  73. data/generated/google/apis/genomics_v1/classes.rb +932 -932
  74. data/generated/google/apis/genomics_v1/representations.rb +205 -205
  75. data/generated/google/apis/genomics_v1/service.rb +1228 -1228
  76. data/generated/google/apis/gmail_v1.rb +1 -1
  77. data/generated/google/apis/iam_v1/classes.rb +440 -440
  78. data/generated/google/apis/iam_v1/representations.rb +94 -94
  79. data/generated/google/apis/iam_v1/service.rb +60 -60
  80. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  81. data/generated/google/apis/identitytoolkit_v3/classes.rb +21 -1
  82. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  83. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  84. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  85. data/generated/google/apis/kgsearch_v1/service.rb +21 -21
  86. data/generated/google/apis/language_v1beta1.rb +1 -1
  87. data/generated/google/apis/language_v1beta1/classes.rb +232 -232
  88. data/generated/google/apis/language_v1beta1/representations.rb +75 -75
  89. data/generated/google/apis/logging_v2beta1.rb +1 -1
  90. data/generated/google/apis/logging_v2beta1/classes.rb +345 -337
  91. data/generated/google/apis/logging_v2beta1/representations.rb +55 -55
  92. data/generated/google/apis/logging_v2beta1/service.rb +331 -306
  93. data/generated/google/apis/monitoring_v3.rb +1 -1
  94. data/generated/google/apis/monitoring_v3/classes.rb +253 -253
  95. data/generated/google/apis/monitoring_v3/representations.rb +58 -58
  96. data/generated/google/apis/monitoring_v3/service.rb +135 -135
  97. data/generated/google/apis/people_v1.rb +15 -16
  98. data/generated/google/apis/people_v1/classes.rb +985 -855
  99. data/generated/google/apis/people_v1/representations.rb +227 -220
  100. data/generated/google/apis/people_v1/service.rb +58 -52
  101. data/generated/google/apis/plus_domains_v1.rb +1 -1
  102. data/generated/google/apis/plus_v1.rb +1 -1
  103. data/generated/google/apis/pubsub_v1.rb +1 -1
  104. data/generated/google/apis/pubsub_v1/classes.rb +257 -257
  105. data/generated/google/apis/pubsub_v1/representations.rb +83 -83
  106. data/generated/google/apis/pubsub_v1/service.rb +390 -390
  107. data/generated/google/apis/script_v1.rb +17 -17
  108. data/generated/google/apis/script_v1/classes.rb +149 -141
  109. data/generated/google/apis/script_v1/representations.rb +26 -27
  110. data/generated/google/apis/script_v1/service.rb +9 -8
  111. data/generated/google/apis/sheets_v4.rb +1 -1
  112. data/generated/google/apis/sheets_v4/classes.rb +4223 -4188
  113. data/generated/google/apis/sheets_v4/representations.rb +850 -834
  114. data/generated/google/apis/sheets_v4/service.rb +192 -192
  115. data/generated/google/apis/slides_v1.rb +1 -1
  116. data/generated/google/apis/slides_v1/classes.rb +927 -800
  117. data/generated/google/apis/slides_v1/representations.rb +253 -211
  118. data/generated/google/apis/speech_v1beta1.rb +1 -1
  119. data/generated/google/apis/speech_v1beta1/classes.rb +94 -107
  120. data/generated/google/apis/speech_v1beta1/representations.rb +24 -36
  121. data/generated/google/apis/speech_v1beta1/service.rb +51 -54
  122. data/generated/google/apis/storage_v1.rb +1 -1
  123. data/generated/google/apis/vision_v1.rb +1 -1
  124. data/generated/google/apis/vision_v1/classes.rb +888 -885
  125. data/generated/google/apis/vision_v1/representations.rb +139 -139
  126. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  127. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -1
  128. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  129. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  130. data/generated/google/apis/youtubereporting_v1/classes.rb +80 -80
  131. data/generated/google/apis/youtubereporting_v1/representations.rb +23 -23
  132. data/generated/google/apis/youtubereporting_v1/service.rb +51 -51
  133. data/google-api-client.gemspec +2 -2
  134. data/lib/google/apis/core/api_command.rb +1 -1
  135. data/lib/google/apis/core/json_representation.rb +2 -2
  136. data/lib/google/apis/version.rb +1 -1
  137. data/samples/cli/lib/samples/you_tube.rb +4 -1
  138. metadata +36 -30
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
27
27
  module Adexchangebuyer2V2beta1
28
28
  VERSION = 'V2beta1'
29
- REVISION = '20170130'
29
+ REVISION = '20170210'
30
30
 
31
31
  # Manage your Ad Exchange buyer account configuration
32
32
  AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
@@ -125,6 +125,11 @@ module Google
125
125
  class ClientUser
126
126
  include Google::Apis::Core::Hashable
127
127
 
128
+ # The status of the client user.
129
+ # Corresponds to the JSON property `status`
130
+ # @return [String]
131
+ attr_accessor :status
132
+
128
133
  # The unique numerical ID of the client user
129
134
  # that has accepted an invitation.
130
135
  # The value of this field is ignored in an update operation.
@@ -146,21 +151,16 @@ module Google
146
151
  # @return [String]
147
152
  attr_accessor :client_account_id
148
153
 
149
- # The status of the client user.
150
- # Corresponds to the JSON property `status`
151
- # @return [String]
152
- attr_accessor :status
153
-
154
154
  def initialize(**args)
155
155
  update!(**args)
156
156
  end
157
157
 
158
158
  # Update properties of this object
159
159
  def update!(**args)
160
+ @status = args[:status] if args.key?(:status)
160
161
  @user_id = args[:user_id] if args.key?(:user_id)
161
162
  @email = args[:email] if args.key?(:email)
162
163
  @client_account_id = args[:client_account_id] if args.key?(:client_account_id)
163
- @status = args[:status] if args.key?(:status)
164
164
  end
165
165
  end
166
166
 
@@ -170,6 +170,12 @@ module Google
170
170
  class ClientUserInvitation
171
171
  include Google::Apis::Core::Hashable
172
172
 
173
+ # The unique numerical ID of the invitation that is sent to the user.
174
+ # The value of this field is ignored in create operations.
175
+ # Corresponds to the JSON property `invitationId`
176
+ # @return [String]
177
+ attr_accessor :invitation_id
178
+
173
179
  # The email address to which the invitation is sent. Email
174
180
  # addresses should be unique among all client users under each sponsor
175
181
  # buyer.
@@ -184,42 +190,37 @@ module Google
184
190
  # @return [String]
185
191
  attr_accessor :client_account_id
186
192
 
187
- # The unique numerical ID of the invitation that is sent to the user.
188
- # The value of this field is ignored in create operations.
189
- # Corresponds to the JSON property `invitationId`
190
- # @return [String]
191
- attr_accessor :invitation_id
192
-
193
193
  def initialize(**args)
194
194
  update!(**args)
195
195
  end
196
196
 
197
197
  # Update properties of this object
198
198
  def update!(**args)
199
+ @invitation_id = args[:invitation_id] if args.key?(:invitation_id)
199
200
  @email = args[:email] if args.key?(:email)
200
201
  @client_account_id = args[:client_account_id] if args.key?(:client_account_id)
201
- @invitation_id = args[:invitation_id] if args.key?(:invitation_id)
202
202
  end
203
203
  end
204
204
 
205
205
  #
206
- class ListClientsResponse
206
+ class ListClientUsersResponse
207
207
  include Google::Apis::Core::Hashable
208
208
 
209
209
  # A token to retrieve the next page of results.
210
210
  # Pass this value in the
211
- # ListClientsRequest.pageToken
211
+ # ListClientUsersRequest.pageToken
212
212
  # field in the subsequent call to the
213
- # accounts.clients.list method
214
- # to retrieve the next page of results.
213
+ # clients.invitations.list
214
+ # method to retrieve the next
215
+ # page of results.
215
216
  # Corresponds to the JSON property `nextPageToken`
216
217
  # @return [String]
217
218
  attr_accessor :next_page_token
218
219
 
219
- # The returned list of clients.
220
- # Corresponds to the JSON property `clients`
221
- # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Client>]
222
- attr_accessor :clients
220
+ # The returned list of client users.
221
+ # Corresponds to the JSON property `users`
222
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ClientUser>]
223
+ attr_accessor :users
223
224
 
224
225
  def initialize(**args)
225
226
  update!(**args)
@@ -228,17 +229,22 @@ module Google
228
229
  # Update properties of this object
229
230
  def update!(**args)
230
231
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
231
- @clients = args[:clients] if args.key?(:clients)
232
+ @users = args[:users] if args.key?(:users)
232
233
  end
233
234
  end
234
235
 
235
236
  #
236
- class ListClientUsersResponse
237
+ class ListClientUserInvitationsResponse
237
238
  include Google::Apis::Core::Hashable
238
239
 
240
+ # The returned list of client users.
241
+ # Corresponds to the JSON property `invitations`
242
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation>]
243
+ attr_accessor :invitations
244
+
239
245
  # A token to retrieve the next page of results.
240
246
  # Pass this value in the
241
- # ListClientUsersRequest.pageToken
247
+ # ListClientUserInvitationsRequest.pageToken
242
248
  # field in the subsequent call to the
243
249
  # clients.invitations.list
244
250
  # method to retrieve the next
@@ -247,50 +253,44 @@ module Google
247
253
  # @return [String]
248
254
  attr_accessor :next_page_token
249
255
 
250
- # The returned list of client users.
251
- # Corresponds to the JSON property `users`
252
- # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ClientUser>]
253
- attr_accessor :users
254
-
255
256
  def initialize(**args)
256
257
  update!(**args)
257
258
  end
258
259
 
259
260
  # Update properties of this object
260
261
  def update!(**args)
262
+ @invitations = args[:invitations] if args.key?(:invitations)
261
263
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
262
- @users = args[:users] if args.key?(:users)
263
264
  end
264
265
  end
265
266
 
266
267
  #
267
- class ListClientUserInvitationsResponse
268
+ class ListClientsResponse
268
269
  include Google::Apis::Core::Hashable
269
270
 
271
+ # The returned list of clients.
272
+ # Corresponds to the JSON property `clients`
273
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Client>]
274
+ attr_accessor :clients
275
+
270
276
  # A token to retrieve the next page of results.
271
277
  # Pass this value in the
272
- # ListClientUserInvitationsRequest.pageToken
278
+ # ListClientsRequest.pageToken
273
279
  # field in the subsequent call to the
274
- # clients.invitations.list
275
- # method to retrieve the next
276
- # page of results.
280
+ # accounts.clients.list method
281
+ # to retrieve the next page of results.
277
282
  # Corresponds to the JSON property `nextPageToken`
278
283
  # @return [String]
279
284
  attr_accessor :next_page_token
280
285
 
281
- # The returned list of client users.
282
- # Corresponds to the JSON property `invitations`
283
- # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation>]
284
- attr_accessor :invitations
285
-
286
286
  def initialize(**args)
287
287
  update!(**args)
288
288
  end
289
289
 
290
290
  # Update properties of this object
291
291
  def update!(**args)
292
+ @clients = args[:clients] if args.key?(:clients)
292
293
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
293
- @invitations = args[:invitations] if args.key?(:invitations)
294
294
  end
295
295
  end
296
296
  end
@@ -40,19 +40,19 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class ListClientsResponse
43
+ class ListClientUsersResponse
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class ListClientUsersResponse
49
+ class ListClientUserInvitationsResponse
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class ListClientUserInvitationsResponse
55
+ class ListClientsResponse
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
@@ -75,46 +75,46 @@ module Google
75
75
  class ClientUser
76
76
  # @private
77
77
  class Representation < Google::Apis::Core::JsonRepresentation
78
+ property :status, as: 'status'
78
79
  property :user_id, as: 'userId'
79
80
  property :email, as: 'email'
80
81
  property :client_account_id, as: 'clientAccountId'
81
- property :status, as: 'status'
82
82
  end
83
83
  end
84
84
 
85
85
  class ClientUserInvitation
86
86
  # @private
87
87
  class Representation < Google::Apis::Core::JsonRepresentation
88
+ property :invitation_id, as: 'invitationId'
88
89
  property :email, as: 'email'
89
90
  property :client_account_id, as: 'clientAccountId'
90
- property :invitation_id, as: 'invitationId'
91
91
  end
92
92
  end
93
93
 
94
- class ListClientsResponse
94
+ class ListClientUsersResponse
95
95
  # @private
96
96
  class Representation < Google::Apis::Core::JsonRepresentation
97
97
  property :next_page_token, as: 'nextPageToken'
98
- collection :clients, as: 'clients', class: Google::Apis::Adexchangebuyer2V2beta1::Client, decorator: Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
98
+ collection :users, as: 'users', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUser, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
99
99
 
100
100
  end
101
101
  end
102
102
 
103
- class ListClientUsersResponse
103
+ class ListClientUserInvitationsResponse
104
104
  # @private
105
105
  class Representation < Google::Apis::Core::JsonRepresentation
106
- property :next_page_token, as: 'nextPageToken'
107
- collection :users, as: 'users', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUser, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
106
+ collection :invitations, as: 'invitations', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
108
107
 
108
+ property :next_page_token, as: 'nextPageToken'
109
109
  end
110
110
  end
111
111
 
112
- class ListClientUserInvitationsResponse
112
+ class ListClientsResponse
113
113
  # @private
114
114
  class Representation < Google::Apis::Core::JsonRepresentation
115
- property :next_page_token, as: 'nextPageToken'
116
- collection :invitations, as: 'invitations', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
115
+ collection :clients, as: 'clients', class: Google::Apis::Adexchangebuyer2V2beta1::Client, decorator: Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
117
116
 
117
+ property :next_page_token, as: 'nextPageToken'
118
118
  end
119
119
  end
120
120
  end
@@ -33,30 +33,64 @@ 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
- # API key. Your API key identifies your project and provides you with API access,
38
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
- attr_accessor :key
40
-
41
36
  # @return [String]
42
37
  # Available to use for quota purposes for server-side applications. Can be any
43
38
  # arbitrary string assigned to a user, but should not exceed 40 characters.
44
39
  attr_accessor :quota_user
45
40
 
41
+ # @return [String]
42
+ # API key. Your API key identifies your project and provides you with API access,
43
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
44
+ attr_accessor :key
45
+
46
46
  def initialize
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
+
50
84
  # Gets a client buyer with a given client account ID.
51
85
  # @param [String] account_id
52
86
  # Numerical account ID of the client's sponsor buyer. (required)
53
87
  # @param [String] client_account_id
54
88
  # 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.
57
89
  # @param [String] quota_user
58
90
  # Available to use for quota purposes for server-side applications. Can be any
59
91
  # arbitrary string assigned to a user, but should not exceed 40 characters.
92
+ # @param [String] fields
93
+ # Selector specifying which fields to include in a partial response.
60
94
  # @param [Google::Apis::RequestOptions] options
61
95
  # Request-specific options
62
96
  #
@@ -69,14 +103,14 @@ module Google
69
103
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
104
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
105
  # @raise [Google::Apis::AuthorizationError] Authorization is required
72
- def get_account_client(account_id, client_account_id, fields: nil, quota_user: nil, options: nil, &block)
106
+ def get_account_client(account_id, client_account_id, quota_user: nil, fields: nil, options: nil, &block)
73
107
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
74
108
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
75
109
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
76
110
  command.params['accountId'] = account_id unless account_id.nil?
77
111
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
78
- command.query['fields'] = fields unless fields.nil?
79
112
  command.query['quotaUser'] = quota_user unless quota_user.nil?
113
+ command.query['fields'] = fields unless fields.nil?
80
114
  execute_or_queue_command(command, &block)
81
115
  end
82
116
 
@@ -92,11 +126,11 @@ module Google
92
126
  # @param [Fixnum] page_size
93
127
  # Requested page size. The server may return fewer clients than requested.
94
128
  # If unspecified, the server will pick an appropriate default.
95
- # @param [String] fields
96
- # Selector specifying which fields to include in a partial response.
97
129
  # @param [String] quota_user
98
130
  # Available to use for quota purposes for server-side applications. Can be any
99
131
  # arbitrary string assigned to a user, but should not exceed 40 characters.
132
+ # @param [String] fields
133
+ # Selector specifying which fields to include in a partial response.
100
134
  # @param [Google::Apis::RequestOptions] options
101
135
  # Request-specific options
102
136
  #
@@ -109,15 +143,15 @@ module Google
109
143
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
110
144
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
111
145
  # @raise [Google::Apis::AuthorizationError] Authorization is required
112
- def list_account_clients(account_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
146
+ def list_account_clients(account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
113
147
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients', options)
114
148
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse::Representation
115
149
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse
116
150
  command.params['accountId'] = account_id unless account_id.nil?
117
151
  command.query['pageToken'] = page_token unless page_token.nil?
118
152
  command.query['pageSize'] = page_size unless page_size.nil?
119
- command.query['fields'] = fields unless fields.nil?
120
153
  command.query['quotaUser'] = quota_user unless quota_user.nil?
154
+ command.query['fields'] = fields unless fields.nil?
121
155
  execute_or_queue_command(command, &block)
122
156
  end
123
157
 
@@ -128,11 +162,11 @@ module Google
128
162
  # @param [String] client_account_id
129
163
  # Unique numerical account ID of the client to update. (required)
130
164
  # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
131
- # @param [String] fields
132
- # Selector specifying which fields to include in a partial response.
133
165
  # @param [String] quota_user
134
166
  # Available to use for quota purposes for server-side applications. Can be any
135
167
  # arbitrary string assigned to a user, but should not exceed 40 characters.
168
+ # @param [String] fields
169
+ # Selector specifying which fields to include in a partial response.
136
170
  # @param [Google::Apis::RequestOptions] options
137
171
  # Request-specific options
138
172
  #
@@ -145,7 +179,7 @@ module Google
145
179
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
180
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
181
  # @raise [Google::Apis::AuthorizationError] Authorization is required
148
- def update_account_client(account_id, client_account_id, client_object = nil, fields: nil, quota_user: nil, options: nil, &block)
182
+ def update_account_client(account_id, client_account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
149
183
  command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
150
184
  command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
151
185
  command.request_object = client_object
@@ -153,42 +187,8 @@ module Google
153
187
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
154
188
  command.params['accountId'] = account_id unless account_id.nil?
155
189
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
156
- command.query['fields'] = fields unless fields.nil?
157
190
  command.query['quotaUser'] = quota_user unless quota_user.nil?
158
- execute_or_queue_command(command, &block)
159
- end
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] fields
167
- # Selector specifying which fields to include in a partial response.
168
- # @param [String] quota_user
169
- # Available to use for quota purposes for server-side applications. Can be any
170
- # arbitrary string assigned to a user, but should not exceed 40 characters.
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, fields: nil, quota_user: 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
191
  command.query['fields'] = fields unless fields.nil?
191
- command.query['quotaUser'] = quota_user unless quota_user.nil?
192
192
  execute_or_queue_command(command, &block)
193
193
  end
194
194
 
@@ -200,11 +200,11 @@ module Google
200
200
  # to be retrieved is associated with. (required)
201
201
  # @param [String] invitation_id
202
202
  # Numerical identifier of the user invitation to retrieve. (required)
203
- # @param [String] fields
204
- # Selector specifying which fields to include in a partial response.
205
203
  # @param [String] quota_user
206
204
  # Available to use for quota purposes for server-side applications. Can be any
207
205
  # arbitrary string assigned to a user, but should not exceed 40 characters.
206
+ # @param [String] fields
207
+ # Selector specifying which fields to include in a partial response.
208
208
  # @param [Google::Apis::RequestOptions] options
209
209
  # Request-specific options
210
210
  #
@@ -217,15 +217,15 @@ module Google
217
217
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
218
218
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
219
219
  # @raise [Google::Apis::AuthorizationError] Authorization is required
220
- def get_account_client_invitation(account_id, client_account_id, invitation_id, fields: nil, quota_user: nil, options: nil, &block)
220
+ def get_account_client_invitation(account_id, client_account_id, invitation_id, quota_user: nil, fields: nil, options: nil, &block)
221
221
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', options)
222
222
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
223
223
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
224
224
  command.params['accountId'] = account_id unless account_id.nil?
225
225
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
226
226
  command.params['invitationId'] = invitation_id unless invitation_id.nil?
227
- command.query['fields'] = fields unless fields.nil?
228
227
  command.query['quotaUser'] = quota_user unless quota_user.nil?
228
+ command.query['fields'] = fields unless fields.nil?
229
229
  execute_or_queue_command(command, &block)
230
230
  end
231
231
 
@@ -250,11 +250,11 @@ module Google
250
250
  # @param [Fixnum] page_size
251
251
  # Requested page size. Server may return fewer clients than requested.
252
252
  # If unspecified, server will pick an appropriate default.
253
- # @param [String] fields
254
- # Selector specifying which fields to include in a partial response.
255
253
  # @param [String] quota_user
256
254
  # Available to use for quota purposes for server-side applications. Can be any
257
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
258
  # @param [Google::Apis::RequestOptions] options
259
259
  # Request-specific options
260
260
  #
@@ -267,7 +267,7 @@ module Google
267
267
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
268
268
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
269
269
  # @raise [Google::Apis::AuthorizationError] Authorization is required
270
- def list_account_client_invitations(account_id, client_account_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
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)
271
271
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
272
272
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation
273
273
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse
@@ -275,8 +275,8 @@ module Google
275
275
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
276
276
  command.query['pageToken'] = page_token unless page_token.nil?
277
277
  command.query['pageSize'] = page_size unless page_size.nil?
278
- command.query['fields'] = fields unless fields.nil?
279
278
  command.query['quotaUser'] = quota_user unless quota_user.nil?
279
+ command.query['fields'] = fields unless fields.nil?
280
280
  execute_or_queue_command(command, &block)
281
281
  end
282
282
 
@@ -288,11 +288,11 @@ module Google
288
288
  # Numerical account ID of the client buyer that the user
289
289
  # should be associated with. (required)
290
290
  # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_object
291
- # @param [String] fields
292
- # Selector specifying which fields to include in a partial response.
293
291
  # @param [String] quota_user
294
292
  # Available to use for quota purposes for server-side applications. Can be any
295
293
  # arbitrary string assigned to a user, but should not exceed 40 characters.
294
+ # @param [String] fields
295
+ # Selector specifying which fields to include in a partial response.
296
296
  # @param [Google::Apis::RequestOptions] options
297
297
  # Request-specific options
298
298
  #
@@ -305,7 +305,7 @@ module Google
305
305
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
306
306
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
307
307
  # @raise [Google::Apis::AuthorizationError] Authorization is required
308
- def create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
308
+ def create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, quota_user: nil, fields: nil, options: nil, &block)
309
309
  command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
310
310
  command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
311
311
  command.request_object = client_user_invitation_object
@@ -313,49 +313,8 @@ module Google
313
313
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
314
314
  command.params['accountId'] = account_id unless account_id.nil?
315
315
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
316
- command.query['fields'] = fields unless fields.nil?
317
316
  command.query['quotaUser'] = quota_user unless quota_user.nil?
318
- execute_or_queue_command(command, &block)
319
- end
320
-
321
- # Updates an existing client user.
322
- # Only the user status can be changed on update.
323
- # @param [String] account_id
324
- # Numerical account ID of the client's sponsor buyer. (required)
325
- # @param [String] client_account_id
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.
333
- # @param [String] quota_user
334
- # Available to use for quota purposes for server-side applications. Can be any
335
- # arbitrary string assigned to a user, but should not exceed 40 characters.
336
- # @param [Google::Apis::RequestOptions] options
337
- # Request-specific options
338
- #
339
- # @yield [result, err] Result & error if block supplied
340
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
341
- # @yieldparam err [StandardError] error object if request failed
342
- #
343
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
344
- #
345
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
346
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
347
- # @raise [Google::Apis::AuthorizationError] Authorization is required
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
354
- command.params['accountId'] = account_id unless account_id.nil?
355
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
356
- command.params['userId'] = user_id unless user_id.nil?
357
317
  command.query['fields'] = fields unless fields.nil?
358
- command.query['quotaUser'] = quota_user unless quota_user.nil?
359
318
  execute_or_queue_command(command, &block)
360
319
  end
361
320
 
@@ -379,11 +338,11 @@ module Google
379
338
  # @param [Fixnum] page_size
380
339
  # Requested page size. The server may return fewer clients than requested.
381
340
  # If unspecified, the server will pick an appropriate default.
382
- # @param [String] fields
383
- # Selector specifying which fields to include in a partial response.
384
341
  # @param [String] quota_user
385
342
  # Available to use for quota purposes for server-side applications. Can be any
386
343
  # arbitrary string assigned to a user, but should not exceed 40 characters.
344
+ # @param [String] fields
345
+ # Selector specifying which fields to include in a partial response.
387
346
  # @param [Google::Apis::RequestOptions] options
388
347
  # Request-specific options
389
348
  #
@@ -396,7 +355,7 @@ module Google
396
355
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
397
356
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
398
357
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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)
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)
400
359
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options)
401
360
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation
402
361
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse
@@ -404,8 +363,8 @@ module Google
404
363
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
405
364
  command.query['pageToken'] = page_token unless page_token.nil?
406
365
  command.query['pageSize'] = page_size unless page_size.nil?
407
- command.query['fields'] = fields unless fields.nil?
408
366
  command.query['quotaUser'] = quota_user unless quota_user.nil?
367
+ command.query['fields'] = fields unless fields.nil?
409
368
  execute_or_queue_command(command, &block)
410
369
  end
411
370
 
@@ -417,11 +376,11 @@ module Google
417
376
  # that the user to be retrieved is associated with. (required)
418
377
  # @param [String] user_id
419
378
  # Numerical identifier of the user to retrieve. (required)
420
- # @param [String] fields
421
- # Selector specifying which fields to include in a partial response.
422
379
  # @param [String] quota_user
423
380
  # Available to use for quota purposes for server-side applications. Can be any
424
381
  # arbitrary string assigned to a user, but should not exceed 40 characters.
382
+ # @param [String] fields
383
+ # Selector specifying which fields to include in a partial response.
425
384
  # @param [Google::Apis::RequestOptions] options
426
385
  # Request-specific options
427
386
  #
@@ -434,23 +393,64 @@ module Google
434
393
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
435
394
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
436
395
  # @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)
396
+ def get_account_client_user(account_id, client_account_id, user_id, quota_user: nil, fields: nil, options: nil, &block)
438
397
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
439
398
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
440
399
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
441
400
  command.params['accountId'] = account_id unless account_id.nil?
442
401
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
443
402
  command.params['userId'] = user_id unless user_id.nil?
403
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
444
404
  command.query['fields'] = fields unless fields.nil?
405
+ execute_or_queue_command(command, &block)
406
+ end
407
+
408
+ # Updates an existing client user.
409
+ # Only the user status can be changed on update.
410
+ # @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
418
+ # @param [String] quota_user
419
+ # Available to use for quota purposes for server-side applications. Can be any
420
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
421
+ # @param [String] fields
422
+ # Selector specifying which fields to include in a partial response.
423
+ # @param [Google::Apis::RequestOptions] options
424
+ # Request-specific options
425
+ #
426
+ # @yield [result, err] Result & error if block supplied
427
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
428
+ # @yieldparam err [StandardError] error object if request failed
429
+ #
430
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
431
+ #
432
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
433
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
434
+ # @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
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?
445
444
  command.query['quotaUser'] = quota_user unless quota_user.nil?
445
+ command.query['fields'] = fields unless fields.nil?
446
446
  execute_or_queue_command(command, &block)
447
447
  end
448
448
 
449
449
  protected
450
450
 
451
451
  def apply_command_defaults(command)
452
- command.query['key'] = key unless key.nil?
453
452
  command.query['quotaUser'] = quota_user unless quota_user.nil?
453
+ command.query['key'] = key unless key.nil?
454
454
  end
455
455
  end
456
456
  end