google-api-client 0.9.25 → 0.9.26

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 (79) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +279 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +110 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +25 -25
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +145 -145
  8. data/generated/google/apis/adsense_v1_4.rb +1 -1
  9. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  10. data/generated/google/apis/calendar_v3.rb +1 -1
  11. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  12. data/generated/google/apis/cloudbuild_v1/classes.rb +419 -419
  13. data/generated/google/apis/cloudbuild_v1/representations.rb +73 -73
  14. data/generated/google/apis/cloudbuild_v1/service.rb +86 -86
  15. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  16. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  17. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  18. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  19. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  20. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +478 -478
  21. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +96 -96
  22. data/generated/google/apis/cloudresourcemanager_v1/service.rb +271 -271
  23. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  24. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +353 -353
  25. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +81 -81
  26. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +299 -299
  27. data/generated/google/apis/container_v1.rb +1 -1
  28. data/generated/google/apis/container_v1/classes.rb +287 -16
  29. data/generated/google/apis/container_v1/representations.rb +113 -2
  30. data/generated/google/apis/container_v1/service.rb +130 -0
  31. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  32. data/generated/google/apis/drive_v2.rb +1 -1
  33. data/generated/google/apis/drive_v3.rb +1 -1
  34. data/generated/google/apis/genomics_v1.rb +8 -8
  35. data/generated/google/apis/genomics_v1/classes.rb +2259 -2257
  36. data/generated/google/apis/genomics_v1/representations.rb +461 -526
  37. data/generated/google/apis/genomics_v1/service.rb +1203 -1105
  38. data/generated/google/apis/gmail_v1.rb +1 -1
  39. data/generated/google/apis/logging_v2beta1.rb +1 -1
  40. data/generated/google/apis/logging_v2beta1/classes.rb +852 -852
  41. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  42. data/generated/google/apis/logging_v2beta1/service.rb +230 -230
  43. data/generated/google/apis/manufacturers_v1.rb +34 -0
  44. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  45. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  46. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  47. data/generated/google/apis/monitoring_v3.rb +7 -7
  48. data/generated/google/apis/monitoring_v3/classes.rb +744 -744
  49. data/generated/google/apis/monitoring_v3/representations.rb +164 -164
  50. data/generated/google/apis/monitoring_v3/service.rb +335 -335
  51. data/generated/google/apis/plus_domains_v1.rb +1 -1
  52. data/generated/google/apis/plus_v1.rb +1 -1
  53. data/generated/google/apis/pubsub_v1.rb +3 -3
  54. data/generated/google/apis/pubsub_v1/classes.rb +325 -325
  55. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  56. data/generated/google/apis/pubsub_v1/service.rb +256 -256
  57. data/generated/google/apis/sheets_v4.rb +3 -3
  58. data/generated/google/apis/sheets_v4/classes.rb +4283 -4283
  59. data/generated/google/apis/sheets_v4/representations.rb +833 -833
  60. data/generated/google/apis/sheets_v4/service.rb +184 -184
  61. data/generated/google/apis/speech_v1beta1.rb +1 -1
  62. data/generated/google/apis/speech_v1beta1/classes.rb +213 -211
  63. data/generated/google/apis/speech_v1beta1/representations.rb +49 -49
  64. data/generated/google/apis/speech_v1beta1/service.rb +71 -71
  65. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  66. data/generated/google/apis/sqladmin_v1beta4/classes.rb +20 -0
  67. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
  68. data/generated/google/apis/vision_v1.rb +1 -1
  69. data/generated/google/apis/vision_v1/classes.rb +861 -859
  70. data/generated/google/apis/vision_v1/representations.rb +140 -140
  71. data/generated/google/apis/vision_v1/service.rb +4 -4
  72. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  73. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  74. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  75. data/generated/google/apis/youtubereporting_v1/classes.rb +139 -139
  76. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  77. data/generated/google/apis/youtubereporting_v1/service.rb +152 -152
  78. data/lib/google/apis/version.rb +1 -1
  79. metadata +9 -1
@@ -22,25 +22,25 @@ module Google
22
22
  module Apis
23
23
  module Adexchangebuyer2V2beta1
24
24
 
25
- class ClientUser
25
+ class ClientUserInvitation
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class ClientUserInvitation
31
+ class ListClientsResponse
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class ListClientUserInvitationsResponse
37
+ class ListClientUsersResponse
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class ListClientUsersResponse
43
+ class ListClientUserInvitationsResponse
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
@@ -52,69 +52,69 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class ListClientsResponse
55
+ class ClientUser
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class ClientUser
61
+ class ClientUserInvitation
62
62
  # @private
63
63
  class Representation < Google::Apis::Core::JsonRepresentation
64
+ property :invitation_id, as: 'invitationId'
64
65
  property :email, as: 'email'
65
66
  property :client_account_id, as: 'clientAccountId'
66
- property :status, as: 'status'
67
- property :user_id, as: 'userId'
68
67
  end
69
68
  end
70
69
 
71
- class ClientUserInvitation
70
+ class ListClientsResponse
72
71
  # @private
73
72
  class Representation < Google::Apis::Core::JsonRepresentation
74
- property :email, as: 'email'
75
- property :client_account_id, as: 'clientAccountId'
76
- property :invitation_id, as: 'invitationId'
73
+ collection :clients, as: 'clients', class: Google::Apis::Adexchangebuyer2V2beta1::Client, decorator: Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
74
+
75
+ property :next_page_token, as: 'nextPageToken'
77
76
  end
78
77
  end
79
78
 
80
- class ListClientUserInvitationsResponse
79
+ class ListClientUsersResponse
81
80
  # @private
82
81
  class Representation < Google::Apis::Core::JsonRepresentation
83
82
  property :next_page_token, as: 'nextPageToken'
84
- collection :invitations, as: 'invitations', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
83
+ collection :users, as: 'users', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUser, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
85
84
 
86
85
  end
87
86
  end
88
87
 
89
- class ListClientUsersResponse
88
+ class ListClientUserInvitationsResponse
90
89
  # @private
91
90
  class Representation < Google::Apis::Core::JsonRepresentation
92
- collection :users, as: 'users', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUser, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
93
-
94
91
  property :next_page_token, as: 'nextPageToken'
92
+ collection :invitations, as: 'invitations', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
93
+
95
94
  end
96
95
  end
97
96
 
98
97
  class Client
99
98
  # @private
100
99
  class Representation < Google::Apis::Core::JsonRepresentation
101
- property :visible_to_seller, as: 'visibleToSeller'
100
+ property :client_account_id, as: 'clientAccountId'
101
+ property :entity_name, as: 'entityName'
102
102
  property :status, as: 'status'
103
103
  property :entity_type, as: 'entityType'
104
- property :role, as: 'role'
105
104
  property :client_name, as: 'clientName'
106
- property :client_account_id, as: 'clientAccountId'
105
+ property :role, as: 'role'
106
+ property :visible_to_seller, as: 'visibleToSeller'
107
107
  property :entity_id, as: 'entityId'
108
- property :entity_name, as: 'entityName'
109
108
  end
110
109
  end
111
110
 
112
- class ListClientsResponse
111
+ class ClientUser
113
112
  # @private
114
113
  class Representation < Google::Apis::Core::JsonRepresentation
115
- property :next_page_token, as: 'nextPageToken'
116
- collection :clients, as: 'clients', class: Google::Apis::Adexchangebuyer2V2beta1::Client, decorator: Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
117
-
114
+ property :client_account_id, as: 'clientAccountId'
115
+ property :status, as: 'status'
116
+ property :user_id, as: 'userId'
117
+ property :email, as: 'email'
118
118
  end
119
119
  end
120
120
  end
@@ -47,53 +47,16 @@ module Google
47
47
  super('https://adexchangebuyer.googleapis.com/', '')
48
48
  end
49
49
 
50
- # Updates an existing 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 update a client for. (required)
54
- # @param [String] client_account_id
55
- # Unique numerical account ID of the client to update. (required)
56
- # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
57
- # @param [String] quota_user
58
- # Available to use for quota purposes for server-side applications. Can be any
59
- # arbitrary string assigned to a user, but should not exceed 40 characters.
60
- # @param [String] fields
61
- # Selector specifying which fields to include in a partial response.
62
- # @param [Google::Apis::RequestOptions] options
63
- # Request-specific options
64
- #
65
- # @yield [result, err] Result & error if block supplied
66
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
67
- # @yieldparam err [StandardError] error object if request failed
68
- #
69
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
70
- #
71
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
- # @raise [Google::Apis::AuthorizationError] Authorization is required
74
- def update_account_client(account_id, client_account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
75
- command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
76
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
77
- command.request_object = client_object
78
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
79
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
80
- command.params['accountId'] = account_id unless account_id.nil?
81
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
82
- command.query['quotaUser'] = quota_user unless quota_user.nil?
83
- command.query['fields'] = fields unless fields.nil?
84
- execute_or_queue_command(command, &block)
85
- end
86
-
87
50
  # Gets a client buyer with a given client account ID.
88
51
  # @param [String] account_id
89
52
  # Numerical account ID of the client's sponsor buyer. (required)
90
53
  # @param [String] client_account_id
91
54
  # Numerical account ID of the client buyer to retrieve. (required)
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
92
57
  # @param [String] quota_user
93
58
  # Available to use for quota purposes for server-side applications. Can be any
94
59
  # arbitrary string assigned to a user, but should not exceed 40 characters.
95
- # @param [String] fields
96
- # Selector specifying which fields to include in a partial response.
97
60
  # @param [Google::Apis::RequestOptions] options
98
61
  # Request-specific options
99
62
  #
@@ -106,48 +69,14 @@ module Google
106
69
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
107
70
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
108
71
  # @raise [Google::Apis::AuthorizationError] Authorization is required
109
- def get_account_client(account_id, client_account_id, quota_user: nil, fields: nil, options: nil, &block)
72
+ def get_account_client(account_id, client_account_id, fields: nil, quota_user: nil, options: nil, &block)
110
73
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
111
74
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
112
75
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
113
76
  command.params['accountId'] = account_id unless account_id.nil?
114
77
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
115
- command.query['quotaUser'] = quota_user unless quota_user.nil?
116
78
  command.query['fields'] = fields unless fields.nil?
117
- execute_or_queue_command(command, &block)
118
- end
119
-
120
- # Creates a new client buyer.
121
- # @param [String] account_id
122
- # Unique numerical account ID for the buyer of which the client buyer
123
- # is a customer; the sponsor buyer to create a client for. (required)
124
- # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
125
- # @param [String] quota_user
126
- # Available to use for quota purposes for server-side applications. Can be any
127
- # arbitrary string assigned to a user, but should not exceed 40 characters.
128
- # @param [String] fields
129
- # Selector specifying which fields to include in a partial response.
130
- # @param [Google::Apis::RequestOptions] options
131
- # Request-specific options
132
- #
133
- # @yield [result, err] Result & error if block supplied
134
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
135
- # @yieldparam err [StandardError] error object if request failed
136
- #
137
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
138
- #
139
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
140
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
141
- # @raise [Google::Apis::AuthorizationError] Authorization is required
142
- def create_account_client(account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
143
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients', options)
144
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
145
- command.request_object = client_object
146
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
147
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
148
- command.params['accountId'] = account_id unless account_id.nil?
149
79
  command.query['quotaUser'] = quota_user unless quota_user.nil?
150
- command.query['fields'] = fields unless fields.nil?
151
80
  execute_or_queue_command(command, &block)
152
81
  end
153
82
 
@@ -163,11 +92,11 @@ module Google
163
92
  # ListClientsResponse.nextPageToken
164
93
  # returned from the previous call to the
165
94
  # accounts.clients.list method.
95
+ # @param [String] fields
96
+ # Selector specifying which fields to include in a partial response.
166
97
  # @param [String] quota_user
167
98
  # Available to use for quota purposes for server-side applications. Can be any
168
99
  # 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
100
  # @param [Google::Apis::RequestOptions] options
172
101
  # Request-specific options
173
102
  #
@@ -180,93 +109,86 @@ module Google
180
109
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
181
110
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
182
111
  # @raise [Google::Apis::AuthorizationError] Authorization is required
183
- def list_account_clients(account_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
112
+ def list_account_clients(account_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
184
113
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients', options)
185
114
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse::Representation
186
115
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse
187
116
  command.params['accountId'] = account_id unless account_id.nil?
188
117
  command.query['pageSize'] = page_size unless page_size.nil?
189
118
  command.query['pageToken'] = page_token unless page_token.nil?
190
- command.query['quotaUser'] = quota_user unless quota_user.nil?
191
119
  command.query['fields'] = fields unless fields.nil?
120
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
192
121
  execute_or_queue_command(command, &block)
193
122
  end
194
123
 
195
- # Updates an existing client user.
196
- # Only the user status can be changed on update.
124
+ # Updates an existing client buyer.
197
125
  # @param [String] account_id
198
- # Numerical account ID of the client's sponsor buyer. (required)
126
+ # Unique numerical account ID for the buyer of which the client buyer
127
+ # is a customer; the sponsor buyer to update a client for. (required)
199
128
  # @param [String] client_account_id
200
- # Numerical account ID of the client buyer that the user to be retrieved
201
- # is associated with. (required)
202
- # @param [String] user_id
203
- # Numerical identifier of the user to retrieve. (required)
204
- # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_object
129
+ # Unique numerical account ID of the client to update. (required)
130
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
131
+ # @param [String] fields
132
+ # Selector specifying which fields to include in a partial response.
205
133
  # @param [String] quota_user
206
134
  # Available to use for quota purposes for server-side applications. Can be any
207
135
  # arbitrary string assigned to a user, but should not exceed 40 characters.
208
- # @param [String] fields
209
- # Selector specifying which fields to include in a partial response.
210
136
  # @param [Google::Apis::RequestOptions] options
211
137
  # Request-specific options
212
138
  #
213
139
  # @yield [result, err] Result & error if block supplied
214
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
140
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
215
141
  # @yieldparam err [StandardError] error object if request failed
216
142
  #
217
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
143
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
218
144
  #
219
145
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
220
146
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
221
147
  # @raise [Google::Apis::AuthorizationError] Authorization is required
222
- def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, quota_user: nil, fields: nil, options: nil, &block)
223
- command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
224
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
225
- command.request_object = client_user_object
226
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
227
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
148
+ def update_account_client(account_id, client_account_id, client_object = nil, fields: nil, quota_user: nil, options: nil, &block)
149
+ command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
150
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
151
+ command.request_object = client_object
152
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
153
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
228
154
  command.params['accountId'] = account_id unless account_id.nil?
229
155
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
230
- command.params['userId'] = user_id unless user_id.nil?
231
- command.query['quotaUser'] = quota_user unless quota_user.nil?
232
156
  command.query['fields'] = fields unless fields.nil?
157
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
233
158
  execute_or_queue_command(command, &block)
234
159
  end
235
160
 
236
- # Retrieves an existing client user.
161
+ # Creates a new client buyer.
237
162
  # @param [String] account_id
238
- # Numerical account ID of the client's sponsor buyer. (required)
239
- # @param [String] client_account_id
240
- # Numerical account ID of the client buyer
241
- # that the user to be retrieved is associated with. (required)
242
- # @param [String] user_id
243
- # Numerical identifier of the user to retrieve. (required)
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.
244
168
  # @param [String] quota_user
245
169
  # Available to use for quota purposes for server-side applications. Can be any
246
170
  # arbitrary string assigned to a user, but should not exceed 40 characters.
247
- # @param [String] fields
248
- # Selector specifying which fields to include in a partial response.
249
171
  # @param [Google::Apis::RequestOptions] options
250
172
  # Request-specific options
251
173
  #
252
174
  # @yield [result, err] Result & error if block supplied
253
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
175
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
254
176
  # @yieldparam err [StandardError] error object if request failed
255
177
  #
256
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
178
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
257
179
  #
258
180
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
259
181
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
260
182
  # @raise [Google::Apis::AuthorizationError] Authorization is required
261
- def get_account_client_user(account_id, client_account_id, user_id, quota_user: nil, fields: nil, options: nil, &block)
262
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
263
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
264
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
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
265
189
  command.params['accountId'] = account_id unless account_id.nil?
266
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
267
- command.params['userId'] = user_id unless user_id.nil?
268
- command.query['quotaUser'] = quota_user unless quota_user.nil?
269
190
  command.query['fields'] = fields unless fields.nil?
191
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
270
192
  execute_or_queue_command(command, &block)
271
193
  end
272
194
 
@@ -281,20 +203,20 @@ module Google
281
203
  # numerical account identifier or the `-` character
282
204
  # to list all the client users for all the clients
283
205
  # of a given sponsor buyer.
284
- # @param [Fixnum] page_size
285
- # Requested page size. The server may return fewer clients than requested.
286
- # If unspecified, the server will pick an appropriate default.
287
206
  # @param [String] page_token
288
207
  # A token identifying a page of results the server should return.
289
208
  # Typically, this is the value of
290
209
  # ListClientUsersResponse.nextPageToken
291
210
  # returned from the previous call to the
292
211
  # accounts.clients.users.list method.
212
+ # @param [Fixnum] page_size
213
+ # Requested page size. The server may return fewer clients than requested.
214
+ # If unspecified, the server will pick an appropriate default.
215
+ # @param [String] fields
216
+ # Selector specifying which fields to include in a partial response.
293
217
  # @param [String] quota_user
294
218
  # Available to use for quota purposes for server-side applications. Can be any
295
219
  # arbitrary string assigned to a user, but should not exceed 40 characters.
296
- # @param [String] fields
297
- # Selector specifying which fields to include in a partial response.
298
220
  # @param [Google::Apis::RequestOptions] options
299
221
  # Request-specific options
300
222
  #
@@ -307,54 +229,94 @@ module Google
307
229
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
308
230
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
309
231
  # @raise [Google::Apis::AuthorizationError] Authorization is required
310
- def list_account_client_users(account_id, client_account_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
232
+ def list_account_client_users(account_id, client_account_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
311
233
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options)
312
234
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation
313
235
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse
314
236
  command.params['accountId'] = account_id unless account_id.nil?
315
237
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
316
- command.query['pageSize'] = page_size unless page_size.nil?
317
238
  command.query['pageToken'] = page_token unless page_token.nil?
318
- command.query['quotaUser'] = quota_user unless quota_user.nil?
239
+ command.query['pageSize'] = page_size unless page_size.nil?
319
240
  command.query['fields'] = fields unless fields.nil?
241
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
320
242
  execute_or_queue_command(command, &block)
321
243
  end
322
244
 
323
- # Creates and sends out an email invitation to access
324
- # an Ad Exchange client buyer account.
245
+ # Retrieves an existing client user.
325
246
  # @param [String] account_id
326
247
  # Numerical account ID of the client's sponsor buyer. (required)
327
248
  # @param [String] client_account_id
328
- # Numerical account ID of the client buyer that the user
329
- # should be associated with. (required)
330
- # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_object
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] fields
254
+ # Selector specifying which fields to include in a partial response.
331
255
  # @param [String] quota_user
332
256
  # Available to use for quota purposes for server-side applications. Can be any
333
257
  # arbitrary string assigned to a user, but should not exceed 40 characters.
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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil?
278
+ command.query['quotaUser'] = quota_user unless quota_user.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
334
292
  # @param [String] fields
335
293
  # Selector specifying which fields to include in a partial response.
294
+ # @param [String] quota_user
295
+ # Available to use for quota purposes for server-side applications. Can be any
296
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
336
297
  # @param [Google::Apis::RequestOptions] options
337
298
  # Request-specific options
338
299
  #
339
300
  # @yield [result, err] Result & error if block supplied
340
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
301
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
341
302
  # @yieldparam err [StandardError] error object if request failed
342
303
  #
343
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
304
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
344
305
  #
345
306
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
346
307
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
347
308
  # @raise [Google::Apis::AuthorizationError] Authorization is required
348
- def create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, quota_user: nil, fields: nil, options: nil, &block)
349
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
350
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
351
- command.request_object = client_user_invitation_object
352
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
353
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
309
+ def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, fields: nil, quota_user: 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
354
315
  command.params['accountId'] = account_id unless account_id.nil?
355
316
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
356
- command.query['quotaUser'] = quota_user unless quota_user.nil?
317
+ command.params['userId'] = user_id unless user_id.nil?
357
318
  command.query['fields'] = fields unless fields.nil?
319
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
358
320
  execute_or_queue_command(command, &block)
359
321
  end
360
322
 
@@ -366,11 +328,11 @@ module Google
366
328
  # to be retrieved is associated with. (required)
367
329
  # @param [String] invitation_id
368
330
  # Numerical identifier of the user invitation to retrieve. (required)
331
+ # @param [String] fields
332
+ # Selector specifying which fields to include in a partial response.
369
333
  # @param [String] quota_user
370
334
  # Available to use for quota purposes for server-side applications. Can be any
371
335
  # arbitrary string assigned to a user, but should not exceed 40 characters.
372
- # @param [String] fields
373
- # Selector specifying which fields to include in a partial response.
374
336
  # @param [Google::Apis::RequestOptions] options
375
337
  # Request-specific options
376
338
  #
@@ -383,15 +345,15 @@ module Google
383
345
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
384
346
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
385
347
  # @raise [Google::Apis::AuthorizationError] Authorization is required
386
- def get_account_client_invitation(account_id, client_account_id, invitation_id, quota_user: nil, fields: nil, options: nil, &block)
348
+ def get_account_client_invitation(account_id, client_account_id, invitation_id, fields: nil, quota_user: nil, options: nil, &block)
387
349
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', options)
388
350
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
389
351
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
390
352
  command.params['accountId'] = account_id unless account_id.nil?
391
353
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
392
354
  command.params['invitationId'] = invitation_id unless invitation_id.nil?
393
- command.query['quotaUser'] = quota_user unless quota_user.nil?
394
355
  command.query['fields'] = fields unless fields.nil?
356
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
395
357
  execute_or_queue_command(command, &block)
396
358
  end
397
359
 
@@ -416,11 +378,11 @@ module Google
416
378
  # returned from the previous call to the
417
379
  # clients.invitations.list
418
380
  # method.
381
+ # @param [String] fields
382
+ # Selector specifying which fields to include in a partial response.
419
383
  # @param [String] quota_user
420
384
  # Available to use for quota purposes for server-side applications. Can be any
421
385
  # arbitrary string assigned to a user, but should not exceed 40 characters.
422
- # @param [String] fields
423
- # Selector specifying which fields to include in a partial response.
424
386
  # @param [Google::Apis::RequestOptions] options
425
387
  # Request-specific options
426
388
  #
@@ -433,7 +395,7 @@ module Google
433
395
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
434
396
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
435
397
  # @raise [Google::Apis::AuthorizationError] Authorization is required
436
- def list_account_client_invitations(account_id, client_account_id, page_size: nil, page_token: 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, fields: nil, quota_user: nil, options: nil, &block)
437
399
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
438
400
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation
439
401
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse
@@ -441,8 +403,46 @@ module Google
441
403
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
442
404
  command.query['pageSize'] = page_size unless page_size.nil?
443
405
  command.query['pageToken'] = page_token unless page_token.nil?
406
+ command.query['fields'] = fields unless fields.nil?
444
407
  command.query['quotaUser'] = quota_user unless quota_user.nil?
408
+ execute_or_queue_command(command, &block)
409
+ end
410
+
411
+ # Creates and sends out an email invitation to access
412
+ # an Ad Exchange client buyer account.
413
+ # @param [String] account_id
414
+ # Numerical account ID of the client's sponsor buyer. (required)
415
+ # @param [String] client_account_id
416
+ # Numerical account ID of the client buyer that the user
417
+ # should be associated with. (required)
418
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_object
419
+ # @param [String] fields
420
+ # Selector specifying which fields to include in a partial response.
421
+ # @param [String] quota_user
422
+ # Available to use for quota purposes for server-side applications. Can be any
423
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
424
+ # @param [Google::Apis::RequestOptions] options
425
+ # Request-specific options
426
+ #
427
+ # @yield [result, err] Result & error if block supplied
428
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
429
+ # @yieldparam err [StandardError] error object if request failed
430
+ #
431
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
432
+ #
433
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
434
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
435
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
436
+ def create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
437
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
438
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
439
+ command.request_object = client_user_invitation_object
440
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
441
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
442
+ command.params['accountId'] = account_id unless account_id.nil?
443
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
445
444
  command.query['fields'] = fields unless fields.nil?
445
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
446
446
  execute_or_queue_command(command, &block)
447
447
  end
448
448