google-api-client 0.9.26 → 0.9.28

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 (123) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +36326 -36213
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +155 -155
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +32 -32
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +104 -104
  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/androidenterprise_v1.rb +1 -1
  12. data/generated/google/apis/appstate_v1.rb +1 -1
  13. data/generated/google/apis/calendar_v3.rb +1 -1
  14. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  15. data/generated/google/apis/cloudbuild_v1/classes.rb +260 -248
  16. data/generated/google/apis/cloudbuild_v1/representations.rb +47 -45
  17. data/generated/google/apis/cloudbuild_v1/service.rb +167 -167
  18. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  19. data/generated/google/apis/clouddebugger_v2/classes.rb +569 -569
  20. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  21. data/generated/google/apis/clouddebugger_v2/service.rb +145 -145
  22. data/generated/google/apis/cloudkms_v1beta1.rb +4 -3
  23. data/generated/google/apis/cloudkms_v1beta1/classes.rb +428 -428
  24. data/generated/google/apis/cloudkms_v1beta1/representations.rb +115 -115
  25. data/generated/google/apis/cloudkms_v1beta1/service.rb +161 -160
  26. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  27. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  28. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +583 -583
  29. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +100 -100
  30. data/generated/google/apis/cloudresourcemanager_v1/service.rb +116 -116
  31. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  32. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +195 -195
  33. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +58 -58
  34. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +316 -316
  35. data/generated/google/apis/content_v2.rb +1 -1
  36. data/generated/google/apis/content_v2/classes.rb +12 -0
  37. data/generated/google/apis/content_v2/representations.rb +2 -0
  38. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  39. data/generated/google/apis/dataflow_v1b3/classes.rb +2833 -2694
  40. data/generated/google/apis/dataflow_v1b3/representations.rb +666 -666
  41. data/generated/google/apis/dataflow_v1b3/service.rb +351 -349
  42. data/generated/google/apis/datastore_v1.rb +1 -1
  43. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  44. data/generated/google/apis/deploymentmanager_v2/classes.rb +21 -12
  45. data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
  46. data/generated/google/apis/deploymentmanager_v2/service.rb +5 -5
  47. data/generated/google/apis/dns_v1.rb +1 -1
  48. data/generated/google/apis/dns_v2beta1.rb +1 -1
  49. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  50. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  51. data/generated/google/apis/drive_v2.rb +1 -1
  52. data/generated/google/apis/drive_v2/classes.rb +26 -0
  53. data/generated/google/apis/drive_v2/representations.rb +14 -0
  54. data/generated/google/apis/drive_v2/service.rb +38 -2
  55. data/generated/google/apis/drive_v3.rb +1 -1
  56. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  57. data/generated/google/apis/games_management_v1management.rb +1 -1
  58. data/generated/google/apis/games_v1.rb +1 -1
  59. data/generated/google/apis/genomics_v1.rb +4 -4
  60. data/generated/google/apis/genomics_v1/classes.rb +2317 -2317
  61. data/generated/google/apis/genomics_v1/representations.rb +476 -476
  62. data/generated/google/apis/genomics_v1/service.rb +1038 -1038
  63. data/generated/google/apis/gmail_v1.rb +1 -1
  64. data/generated/google/apis/gmail_v1/classes.rb +82 -1
  65. data/generated/google/apis/gmail_v1/representations.rb +33 -0
  66. data/generated/google/apis/gmail_v1/service.rb +215 -5
  67. data/generated/google/apis/iam_v1.rb +1 -1
  68. data/generated/google/apis/iam_v1/classes.rb +446 -343
  69. data/generated/google/apis/iam_v1/representations.rb +112 -85
  70. data/generated/google/apis/iam_v1/service.rb +248 -192
  71. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  72. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  73. data/generated/google/apis/kgsearch_v1/service.rb +15 -15
  74. data/generated/google/apis/language_v1beta1.rb +1 -1
  75. data/generated/google/apis/language_v1beta1/classes.rb +396 -396
  76. data/generated/google/apis/language_v1beta1/representations.rb +97 -97
  77. data/generated/google/apis/language_v1beta1/service.rb +42 -42
  78. data/generated/google/apis/logging_v2beta1.rb +1 -1
  79. data/generated/google/apis/logging_v2beta1/classes.rb +855 -855
  80. data/generated/google/apis/logging_v2beta1/representations.rb +155 -155
  81. data/generated/google/apis/logging_v2beta1/service.rb +214 -214
  82. data/generated/google/apis/monitoring_v3.rb +4 -4
  83. data/generated/google/apis/monitoring_v3/classes.rb +551 -551
  84. data/generated/google/apis/monitoring_v3/representations.rb +123 -123
  85. data/generated/google/apis/monitoring_v3/service.rb +80 -80
  86. data/generated/google/apis/plus_domains_v1.rb +1 -1
  87. data/generated/google/apis/plus_v1.rb +1 -1
  88. data/generated/google/apis/pubsub_v1.rb +3 -3
  89. data/generated/google/apis/pubsub_v1/classes.rb +391 -391
  90. data/generated/google/apis/pubsub_v1/representations.rb +83 -83
  91. data/generated/google/apis/pubsub_v1/service.rb +257 -257
  92. data/generated/google/apis/sheets_v4.rb +1 -1
  93. data/generated/google/apis/sheets_v4/classes.rb +4334 -4334
  94. data/generated/google/apis/sheets_v4/representations.rb +861 -861
  95. data/generated/google/apis/sheets_v4/service.rb +191 -191
  96. data/generated/google/apis/slides_v1.rb +7 -7
  97. data/generated/google/apis/slides_v1/classes.rb +2726 -2555
  98. data/generated/google/apis/slides_v1/representations.rb +678 -607
  99. data/generated/google/apis/slides_v1/service.rb +16 -16
  100. data/generated/google/apis/speech_v1beta1.rb +1 -1
  101. data/generated/google/apis/speech_v1beta1/classes.rb +57 -59
  102. data/generated/google/apis/speech_v1beta1/representations.rb +9 -9
  103. data/generated/google/apis/speech_v1beta1/service.rb +63 -63
  104. data/generated/google/apis/storage_v1.rb +1 -1
  105. data/generated/google/apis/storage_v1/classes.rb +4 -3
  106. data/generated/google/apis/vision_v1/classes.rb +925 -925
  107. data/generated/google/apis/vision_v1/representations.rb +134 -134
  108. data/generated/google/apis/vision_v1/service.rb +4 -4
  109. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  110. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  111. data/generated/google/apis/youtube_v3.rb +1 -1
  112. data/generated/google/apis/youtube_v3/classes.rb +234 -1
  113. data/generated/google/apis/youtube_v3/representations.rb +83 -0
  114. data/generated/google/apis/youtube_v3/service.rb +55 -0
  115. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  116. data/generated/google/apis/youtubereporting_v1/classes.rb +105 -105
  117. data/generated/google/apis/youtubereporting_v1/representations.rb +31 -31
  118. data/generated/google/apis/youtubereporting_v1/service.rb +78 -78
  119. data/lib/google/apis/core/api_command.rb +11 -5
  120. data/lib/google/apis/core/base_service.rb +7 -5
  121. data/lib/google/apis/errors.rb +4 -0
  122. data/lib/google/apis/version.rb +1 -1
  123. metadata +28 -28
@@ -83,15 +83,15 @@ module Google
83
83
  # Lists all the clients for the current sponsor buyer.
84
84
  # @param [String] account_id
85
85
  # Unique numerical account ID of the sponsor buyer to list the clients for.
86
- # @param [Fixnum] page_size
87
- # Requested page size. The server may return fewer clients than requested.
88
- # If unspecified, the server will pick an appropriate default.
89
86
  # @param [String] page_token
90
87
  # A token identifying a page of results the server should return.
91
88
  # Typically, this is the value of
92
89
  # ListClientsResponse.nextPageToken
93
90
  # returned from the previous call to the
94
91
  # accounts.clients.list method.
92
+ # @param [Fixnum] page_size
93
+ # Requested page size. The server may return fewer clients than requested.
94
+ # If unspecified, the server will pick an appropriate default.
95
95
  # @param [String] fields
96
96
  # Selector specifying which fields to include in a partial response.
97
97
  # @param [String] quota_user
@@ -109,13 +109,13 @@ module Google
109
109
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
110
110
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
111
111
  # @raise [Google::Apis::AuthorizationError] Authorization is required
112
- def list_account_clients(account_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
112
+ def list_account_clients(account_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
113
113
  command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients', options)
114
114
  command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse::Representation
115
115
  command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse
116
116
  command.params['accountId'] = account_id unless account_id.nil?
117
- command.query['pageSize'] = page_size unless page_size.nil?
118
117
  command.query['pageToken'] = page_token unless page_token.nil?
118
+ command.query['pageSize'] = page_size unless page_size.nil?
119
119
  command.query['fields'] = fields unless fields.nil?
120
120
  command.query['quotaUser'] = quota_user unless quota_user.nil?
121
121
  execute_or_queue_command(command, &block)
@@ -192,26 +192,14 @@ module Google
192
192
  execute_or_queue_command(command, &block)
193
193
  end
194
194
 
195
- # Lists all the known client users for a specified
196
- # sponsor buyer account ID.
195
+ # Retrieves an existing client user invitation.
197
196
  # @param [String] account_id
198
- # Numerical account ID of the sponsor buyer of the client to list users for.
199
- # (required)
197
+ # Numerical account ID of the client's sponsor buyer. (required)
200
198
  # @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 [String] page_token
207
- # A token identifying a page of results the server should return.
208
- # Typically, this is the value of
209
- # ListClientUsersResponse.nextPageToken
210
- # returned from the previous call to the
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.
199
+ # Numerical account ID of the client buyer that the user invitation
200
+ # to be retrieved is associated with. (required)
201
+ # @param [String] invitation_id
202
+ # Numerical identifier of the user invitation to retrieve. (required)
215
203
  # @param [String] fields
216
204
  # Selector specifying which fields to include in a partial response.
217
205
  # @param [String] quota_user
@@ -221,35 +209,47 @@ module Google
221
209
  # Request-specific options
222
210
  #
223
211
  # @yield [result, err] Result & error if block supplied
224
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object
212
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
225
213
  # @yieldparam err [StandardError] error object if request failed
226
214
  #
227
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse]
215
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
228
216
  #
229
217
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
230
218
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
231
219
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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)
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
220
+ def get_account_client_invitation(account_id, client_account_id, invitation_id, fields: nil, quota_user: nil, options: nil, &block)
221
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', options)
222
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
223
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
236
224
  command.params['accountId'] = account_id unless account_id.nil?
237
225
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
238
- command.query['pageToken'] = page_token unless page_token.nil?
239
- command.query['pageSize'] = page_size unless page_size.nil?
226
+ command.params['invitationId'] = invitation_id unless invitation_id.nil?
240
227
  command.query['fields'] = fields unless fields.nil?
241
228
  command.query['quotaUser'] = quota_user unless quota_user.nil?
242
229
  execute_or_queue_command(command, &block)
243
230
  end
244
231
 
245
- # Retrieves an existing client user.
232
+ # Lists all the client users invitations for a client
233
+ # with a given account ID.
246
234
  # @param [String] account_id
247
235
  # Numerical account ID of the client's sponsor buyer. (required)
248
236
  # @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)
237
+ # Numerical account ID of the client buyer to list invitations for.
238
+ # (required)
239
+ # You must either specify a string representation of a
240
+ # numerical account identifier or the `-` character
241
+ # to list all the invitations for all the clients
242
+ # of a given sponsor buyer.
243
+ # @param [String] page_token
244
+ # A token identifying a page of results the server should return.
245
+ # Typically, this is the value of
246
+ # ListClientUserInvitationsResponse.nextPageToken
247
+ # returned from the previous call to the
248
+ # clients.invitations.list
249
+ # 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
253
  # @param [String] fields
254
254
  # Selector specifying which fields to include in a partial response.
255
255
  # @param [String] quota_user
@@ -259,36 +259,35 @@ module Google
259
259
  # Request-specific options
260
260
  #
261
261
  # @yield [result, err] Result & error if block supplied
262
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
262
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse] parsed result object
263
263
  # @yieldparam err [StandardError] error object if request failed
264
264
  #
265
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
265
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse]
266
266
  #
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 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
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)
271
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
272
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation
273
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse
274
274
  command.params['accountId'] = account_id unless account_id.nil?
275
275
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
276
- command.params['userId'] = user_id unless user_id.nil?
276
+ command.query['pageToken'] = page_token unless page_token.nil?
277
+ command.query['pageSize'] = page_size unless page_size.nil?
277
278
  command.query['fields'] = fields unless fields.nil?
278
279
  command.query['quotaUser'] = quota_user unless quota_user.nil?
279
280
  execute_or_queue_command(command, &block)
280
281
  end
281
282
 
282
- # Updates an existing client user.
283
- # Only the user status can be changed on update.
283
+ # Creates and sends out an email invitation to access
284
+ # an Ad Exchange client buyer account.
284
285
  # @param [String] account_id
285
286
  # Numerical account ID of the client's sponsor buyer. (required)
286
287
  # @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
288
+ # Numerical account ID of the client buyer that the user
289
+ # should be associated with. (required)
290
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_object
292
291
  # @param [String] fields
293
292
  # Selector specifying which fields to include in a partial response.
294
293
  # @param [String] quota_user
@@ -298,36 +297,37 @@ module Google
298
297
  # Request-specific options
299
298
  #
300
299
  # @yield [result, err] Result & error if block supplied
301
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
300
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
302
301
  # @yieldparam err [StandardError] error object if request failed
303
302
  #
304
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
303
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
305
304
  #
306
305
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
307
306
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
308
307
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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
308
+ def create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
309
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
310
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
311
+ command.request_object = client_user_invitation_object
312
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
313
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
315
314
  command.params['accountId'] = account_id unless account_id.nil?
316
315
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
317
- command.params['userId'] = user_id unless user_id.nil?
318
316
  command.query['fields'] = fields unless fields.nil?
319
317
  command.query['quotaUser'] = quota_user unless quota_user.nil?
320
318
  execute_or_queue_command(command, &block)
321
319
  end
322
320
 
323
- # Retrieves an existing client user invitation.
321
+ # Updates an existing client user.
322
+ # Only the user status can be changed on update.
324
323
  # @param [String] account_id
325
324
  # Numerical account ID of the client's sponsor buyer. (required)
326
325
  # @param [String] client_account_id
327
- # Numerical account ID of the client buyer that the user invitation
328
- # to be retrieved is associated with. (required)
329
- # @param [String] invitation_id
330
- # Numerical identifier of the user invitation to retrieve. (required)
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
331
  # @param [String] fields
332
332
  # Selector specifying which fields to include in a partial response.
333
333
  # @param [String] quota_user
@@ -337,47 +337,48 @@ module Google
337
337
  # Request-specific options
338
338
  #
339
339
  # @yield [result, err] Result & error if block supplied
340
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
340
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
341
341
  # @yieldparam err [StandardError] error object if request failed
342
342
  #
343
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
343
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
344
344
  #
345
345
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
346
346
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
347
347
  # @raise [Google::Apis::AuthorizationError] Authorization is required
348
- def get_account_client_invitation(account_id, client_account_id, invitation_id, fields: nil, quota_user: nil, options: nil, &block)
349
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', options)
350
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
351
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
348
+ def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, fields: nil, quota_user: nil, options: nil, &block)
349
+ command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
350
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
351
+ command.request_object = client_user_object
352
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
353
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
352
354
  command.params['accountId'] = account_id unless account_id.nil?
353
355
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
354
- command.params['invitationId'] = invitation_id unless invitation_id.nil?
356
+ command.params['userId'] = user_id unless user_id.nil?
355
357
  command.query['fields'] = fields unless fields.nil?
356
358
  command.query['quotaUser'] = quota_user unless quota_user.nil?
357
359
  execute_or_queue_command(command, &block)
358
360
  end
359
361
 
360
- # Lists all the client users invitations for a client
361
- # with a given account ID.
362
+ # Lists all the known client users for a specified
363
+ # sponsor buyer account ID.
362
364
  # @param [String] account_id
363
- # Numerical account ID of the client's sponsor buyer. (required)
364
- # @param [String] client_account_id
365
- # Numerical account ID of the client buyer to list invitations for.
365
+ # Numerical account ID of the sponsor buyer of the client to list users for.
366
366
  # (required)
367
- # You must either specify a string representation of a
367
+ # @param [String] client_account_id
368
+ # The account ID of the client buyer to list users for. (required)
369
+ # You must specify either a string representation of a
368
370
  # numerical account identifier or the `-` character
369
- # to list all the invitations for all the clients
371
+ # to list all the client users for all the clients
370
372
  # of a given sponsor buyer.
371
- # @param [Fixnum] page_size
372
- # Requested page size. Server may return fewer clients than requested.
373
- # If unspecified, server will pick an appropriate default.
374
373
  # @param [String] page_token
375
374
  # A token identifying a page of results the server should return.
376
375
  # Typically, this is the value of
377
- # ListClientUserInvitationsResponse.nextPageToken
376
+ # ListClientUsersResponse.nextPageToken
378
377
  # returned from the previous call to the
379
- # clients.invitations.list
380
- # method.
378
+ # accounts.clients.users.list method.
379
+ # @param [Fixnum] page_size
380
+ # Requested page size. The server may return fewer clients than requested.
381
+ # If unspecified, the server will pick an appropriate default.
381
382
  # @param [String] fields
382
383
  # Selector specifying which fields to include in a partial response.
383
384
  # @param [String] quota_user
@@ -387,35 +388,35 @@ module Google
387
388
  # Request-specific options
388
389
  #
389
390
  # @yield [result, err] Result & error if block supplied
390
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse] parsed result object
391
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object
391
392
  # @yieldparam err [StandardError] error object if request failed
392
393
  #
393
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse]
394
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse]
394
395
  #
395
396
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
396
397
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
397
398
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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)
399
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
400
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation
401
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse
399
+ def list_account_client_users(account_id, client_account_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
400
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options)
401
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation
402
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse
402
403
  command.params['accountId'] = account_id unless account_id.nil?
403
404
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
404
- command.query['pageSize'] = page_size unless page_size.nil?
405
405
  command.query['pageToken'] = page_token unless page_token.nil?
406
+ command.query['pageSize'] = page_size unless page_size.nil?
406
407
  command.query['fields'] = fields unless fields.nil?
407
408
  command.query['quotaUser'] = quota_user unless quota_user.nil?
408
409
  execute_or_queue_command(command, &block)
409
410
  end
410
411
 
411
- # Creates and sends out an email invitation to access
412
- # an Ad Exchange client buyer account.
412
+ # Retrieves an existing client user.
413
413
  # @param [String] account_id
414
414
  # Numerical account ID of the client's sponsor buyer. (required)
415
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
416
+ # Numerical account ID of the client buyer
417
+ # that the user to be retrieved is associated with. (required)
418
+ # @param [String] user_id
419
+ # Numerical identifier of the user to retrieve. (required)
419
420
  # @param [String] fields
420
421
  # Selector specifying which fields to include in a partial response.
421
422
  # @param [String] quota_user
@@ -425,22 +426,21 @@ module Google
425
426
  # Request-specific options
426
427
  #
427
428
  # @yield [result, err] Result & error if block supplied
428
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
429
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
429
430
  # @yieldparam err [StandardError] error object if request failed
430
431
  #
431
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
432
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
432
433
  #
433
434
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
434
435
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
435
436
  # @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
437
+ def get_account_client_user(account_id, client_account_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
438
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
439
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
440
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
442
441
  command.params['accountId'] = account_id unless account_id.nil?
443
442
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
443
+ command.params['userId'] = user_id unless user_id.nil?
444
444
  command.query['fields'] = fields unless fields.nil?
445
445
  command.query['quotaUser'] = quota_user unless quota_user.nil?
446
446
  execute_or_queue_command(command, &block)
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/adsense/management/
26
26
  module AdsenseV1_4
27
27
  VERSION = 'V1_4'
28
- REVISION = '20170125'
28
+ REVISION = '20170201'
29
29
 
30
30
  # View and manage your AdSense data
31
31
  AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/adsense/host/
27
27
  module AdsensehostV4_1
28
28
  VERSION = 'V4_1'
29
- REVISION = '20170125'
29
+ REVISION = '20170201'
30
30
 
31
31
  # View and manage your AdSense host data and associated accounts
32
32
  AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/android/work/play/emm-api
26
26
  module AndroidenterpriseV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170117'
28
+ REVISION = '20170125'
29
29
 
30
30
  # Manage corporate Android devices
31
31
  AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/games/services/web/api/states
26
26
  module AppstateV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170119'
28
+ REVISION = '20170126'
29
29
 
30
30
  # View and manage your data for this application
31
31
  AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/google-apps/calendar/firstapp
26
26
  module CalendarV3
27
27
  VERSION = 'V3'
28
- REVISION = '20170124'
28
+ REVISION = '20170129'
29
29
 
30
30
  # Manage your calendars
31
31
  AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/container-builder/docs/
26
26
  module CloudbuildV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170126'
28
+ REVISION = '20170202'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,6 +22,78 @@ module Google
22
22
  module Apis
23
23
  module CloudbuildV1
24
24
 
25
+ # The `Status` type defines a logical error model that is suitable for different
26
+ # programming environments, including REST APIs and RPC APIs. It is used by
27
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
28
+ # - Simple to use and understand for most users
29
+ # - Flexible enough to meet unexpected needs
30
+ # # Overview
31
+ # The `Status` message contains three pieces of data: error code, error message,
32
+ # and error details. The error code should be an enum value of
33
+ # google.rpc.Code, but it may accept additional error codes if needed. The
34
+ # error message should be a developer-facing English message that helps
35
+ # developers *understand* and *resolve* the error. If a localized user-facing
36
+ # error message is needed, put the localized message in the error details or
37
+ # localize it in the client. The optional error details may contain arbitrary
38
+ # information about the error. There is a predefined set of error detail types
39
+ # in the package `google.rpc` which can be used for common error conditions.
40
+ # # Language mapping
41
+ # The `Status` message is the logical representation of the error model, but it
42
+ # is not necessarily the actual wire format. When the `Status` message is
43
+ # exposed in different client libraries and different wire protocols, it can be
44
+ # mapped differently. For example, it will likely be mapped to some exceptions
45
+ # in Java, but more likely mapped to some error codes in C.
46
+ # # Other uses
47
+ # The error model and the `Status` message can be used in a variety of
48
+ # environments, either with or without APIs, to provide a
49
+ # consistent developer experience across different environments.
50
+ # Example uses of this error model include:
51
+ # - Partial errors. If a service needs to return partial errors to the client,
52
+ # it may embed the `Status` in the normal response to indicate the partial
53
+ # errors.
54
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
55
+ # have a `Status` message for error reporting purpose.
56
+ # - Batch operations. If a client uses batch request and batch response, the
57
+ # `Status` message should be used directly inside batch response, one for
58
+ # each error sub-response.
59
+ # - Asynchronous operations. If an API call embeds asynchronous operation
60
+ # results in its response, the status of those operations should be
61
+ # represented directly using the `Status` message.
62
+ # - Logging. If some API errors are stored in logs, the message `Status` could
63
+ # be used directly after any stripping needed for security/privacy reasons.
64
+ class Status
65
+ include Google::Apis::Core::Hashable
66
+
67
+ # A developer-facing error message, which should be in English. Any
68
+ # user-facing error message should be localized and sent in the
69
+ # google.rpc.Status.details field, or localized by the client.
70
+ # Corresponds to the JSON property `message`
71
+ # @return [String]
72
+ attr_accessor :message
73
+
74
+ # A list of messages that carry the error details. There will be a
75
+ # common set of message types for APIs to use.
76
+ # Corresponds to the JSON property `details`
77
+ # @return [Array<Hash<String,Object>>]
78
+ attr_accessor :details
79
+
80
+ # The status code, which should be an enum value of google.rpc.Code.
81
+ # Corresponds to the JSON property `code`
82
+ # @return [Fixnum]
83
+ attr_accessor :code
84
+
85
+ def initialize(**args)
86
+ update!(**args)
87
+ end
88
+
89
+ # Update properties of this object
90
+ def update!(**args)
91
+ @message = args[:message] if args.key?(:message)
92
+ @details = args[:details] if args.key?(:details)
93
+ @code = args[:code] if args.key?(:code)
94
+ end
95
+ end
96
+
25
97
  # A generic empty message that you can re-use to avoid defining duplicated
26
98
  # empty messages in your APIs. A typical example is to use it as the request
27
99
  # or the response type of an API method. For instance:
@@ -69,23 +141,28 @@ module Google
69
141
  # @return [Google::Apis::CloudbuildV1::Build]
70
142
  attr_accessor :build
71
143
 
144
+ # Substitutions data for Build resource.
145
+ # Corresponds to the JSON property `substitutions`
146
+ # @return [Hash<String,String>]
147
+ attr_accessor :substitutions
148
+
72
149
  # Human-readable description of this trigger.
73
150
  # Corresponds to the JSON property `description`
74
151
  # @return [String]
75
152
  attr_accessor :description
76
153
 
77
- # If true, the trigger will never result in a build.
78
- # Corresponds to the JSON property `disabled`
79
- # @return [Boolean]
80
- attr_accessor :disabled
81
- alias_method :disabled?, :disabled
82
-
83
154
  # Time when the trigger was created.
84
155
  # @OutputOnly
85
156
  # Corresponds to the JSON property `createTime`
86
157
  # @return [String]
87
158
  attr_accessor :create_time
88
159
 
160
+ # If true, the trigger will never result in a build.
161
+ # Corresponds to the JSON property `disabled`
162
+ # @return [Boolean]
163
+ attr_accessor :disabled
164
+ alias_method :disabled?, :disabled
165
+
89
166
  # Path, from the source root, to a file whose contents is used for the
90
167
  # template.
91
168
  # Corresponds to the JSON property `filename`
@@ -106,9 +183,10 @@ module Google
106
183
  def update!(**args)
107
184
  @id = args[:id] if args.key?(:id)
108
185
  @build = args[:build] if args.key?(:build)
186
+ @substitutions = args[:substitutions] if args.key?(:substitutions)
109
187
  @description = args[:description] if args.key?(:description)
110
- @disabled = args[:disabled] if args.key?(:disabled)
111
188
  @create_time = args[:create_time] if args.key?(:create_time)
189
+ @disabled = args[:disabled] if args.key?(:disabled)
112
190
  @filename = args[:filename] if args.key?(:filename)
113
191
  @trigger_template = args[:trigger_template] if args.key?(:trigger_template)
114
192
  end
@@ -130,24 +208,42 @@ module Google
130
208
  class Build
131
209
  include Google::Apis::Core::Hashable
132
210
 
211
+ # The ID of the BuildTrigger that triggered this build, if it was
212
+ # triggered automatically.
213
+ # @OutputOnly
214
+ # Corresponds to the JSON property `buildTriggerId`
215
+ # @return [String]
216
+ attr_accessor :build_trigger_id
217
+
218
+ # Unique identifier of the build.
219
+ # @OutputOnly
220
+ # Corresponds to the JSON property `id`
221
+ # @return [String]
222
+ attr_accessor :id
223
+
224
+ # Substitutions data for Build resource.
225
+ # Corresponds to the JSON property `substitutions`
226
+ # @return [Hash<String,String>]
227
+ attr_accessor :substitutions
228
+
133
229
  # Time at which execution of the build was started.
134
230
  # @OutputOnly
135
231
  # Corresponds to the JSON property `startTime`
136
232
  # @return [String]
137
233
  attr_accessor :start_time
138
234
 
139
- # Provenance of the source. Ways to find the original source, or verify that
140
- # some source was used for this build.
141
- # Corresponds to the JSON property `sourceProvenance`
142
- # @return [Google::Apis::CloudbuildV1::SourceProvenance]
143
- attr_accessor :source_provenance
144
-
145
235
  # Time at which the request to create the build was received.
146
236
  # @OutputOnly
147
237
  # Corresponds to the JSON property `createTime`
148
238
  # @return [String]
149
239
  attr_accessor :create_time
150
240
 
241
+ # Provenance of the source. Ways to find the original source, or verify that
242
+ # some source was used for this build.
243
+ # Corresponds to the JSON property `sourceProvenance`
244
+ # @return [Google::Apis::CloudbuildV1::SourceProvenance]
245
+ attr_accessor :source_provenance
246
+
151
247
  # A list of images to be pushed upon the successful completion of all build
152
248
  # steps.
153
249
  # The images will be pushed using the builder service account's credentials.
@@ -178,17 +274,17 @@ module Google
178
274
  # @return [String]
179
275
  attr_accessor :finish_time
180
276
 
277
+ # Optional arguments to enable specific features of builds.
278
+ # Corresponds to the JSON property `options`
279
+ # @return [Google::Apis::CloudbuildV1::BuildOptions]
280
+ attr_accessor :options
281
+
181
282
  # Source describes the location of the source in a supported storage
182
283
  # service.
183
284
  # Corresponds to the JSON property `source`
184
285
  # @return [Google::Apis::CloudbuildV1::Source]
185
286
  attr_accessor :source
186
287
 
187
- # Optional arguments to enable specific features of builds.
188
- # Corresponds to the JSON property `options`
189
- # @return [Google::Apis::CloudbuildV1::BuildOptions]
190
- attr_accessor :options
191
-
192
288
  # Customer-readable message about the current status.
193
289
  # @OutputOnly
194
290
  # Corresponds to the JSON property `statusDetail`
@@ -228,42 +324,30 @@ module Google
228
324
  # @return [Array<Google::Apis::CloudbuildV1::BuildStep>]
229
325
  attr_accessor :steps
230
326
 
231
- # The ID of the BuildTrigger that triggered this build, if it was
232
- # triggered automatically.
233
- # @OutputOnly
234
- # Corresponds to the JSON property `buildTriggerId`
235
- # @return [String]
236
- attr_accessor :build_trigger_id
237
-
238
- # Unique identifier of the build.
239
- # @OutputOnly
240
- # Corresponds to the JSON property `id`
241
- # @return [String]
242
- attr_accessor :id
243
-
244
327
  def initialize(**args)
245
328
  update!(**args)
246
329
  end
247
330
 
248
331
  # Update properties of this object
249
332
  def update!(**args)
333
+ @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
334
+ @id = args[:id] if args.key?(:id)
335
+ @substitutions = args[:substitutions] if args.key?(:substitutions)
250
336
  @start_time = args[:start_time] if args.key?(:start_time)
251
- @source_provenance = args[:source_provenance] if args.key?(:source_provenance)
252
337
  @create_time = args[:create_time] if args.key?(:create_time)
338
+ @source_provenance = args[:source_provenance] if args.key?(:source_provenance)
253
339
  @images = args[:images] if args.key?(:images)
254
340
  @project_id = args[:project_id] if args.key?(:project_id)
255
341
  @log_url = args[:log_url] if args.key?(:log_url)
256
342
  @finish_time = args[:finish_time] if args.key?(:finish_time)
257
- @source = args[:source] if args.key?(:source)
258
343
  @options = args[:options] if args.key?(:options)
344
+ @source = args[:source] if args.key?(:source)
259
345
  @status_detail = args[:status_detail] if args.key?(:status_detail)
260
346
  @status = args[:status] if args.key?(:status)
261
347
  @timeout = args[:timeout] if args.key?(:timeout)
262
348
  @logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
263
349
  @results = args[:results] if args.key?(:results)
264
350
  @steps = args[:steps] if args.key?(:steps)
265
- @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
266
- @id = args[:id] if args.key?(:id)
267
351
  end
268
352
  end
269
353
 
@@ -388,6 +472,12 @@ module Google
388
472
  class StorageSource
389
473
  include Google::Apis::Core::Hashable
390
474
 
475
+ # Google Cloud Storage generation for the object. If the generation is
476
+ # omitted, the latest generation will be used.
477
+ # Corresponds to the JSON property `generation`
478
+ # @return [String]
479
+ attr_accessor :generation
480
+
391
481
  # Google Cloud Storage bucket containing source (see
392
482
  # [Bucket Name
393
483
  # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
@@ -403,21 +493,15 @@ module Google
403
493
  # @return [String]
404
494
  attr_accessor :object
405
495
 
406
- # Google Cloud Storage generation for the object. If the generation is
407
- # omitted, the latest generation will be used.
408
- # Corresponds to the JSON property `generation`
409
- # @return [String]
410
- attr_accessor :generation
411
-
412
496
  def initialize(**args)
413
497
  update!(**args)
414
498
  end
415
499
 
416
500
  # Update properties of this object
417
501
  def update!(**args)
502
+ @generation = args[:generation] if args.key?(:generation)
418
503
  @bucket = args[:bucket] if args.key?(:bucket)
419
504
  @object = args[:object] if args.key?(:object)
420
- @generation = args[:generation] if args.key?(:generation)
421
505
  end
422
506
  end
423
507
 
@@ -425,24 +509,24 @@ module Google
425
509
  class Results
426
510
  include Google::Apis::Core::Hashable
427
511
 
428
- # List of build step digests, in order corresponding to build step indices.
429
- # Corresponds to the JSON property `buildStepImages`
430
- # @return [Array<String>]
431
- attr_accessor :build_step_images
432
-
433
512
  # Images that were built as a part of the build.
434
513
  # Corresponds to the JSON property `images`
435
514
  # @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
436
515
  attr_accessor :images
437
516
 
517
+ # List of build step digests, in order corresponding to build step indices.
518
+ # Corresponds to the JSON property `buildStepImages`
519
+ # @return [Array<String>]
520
+ attr_accessor :build_step_images
521
+
438
522
  def initialize(**args)
439
523
  update!(**args)
440
524
  end
441
525
 
442
526
  # Update properties of this object
443
527
  def update!(**args)
444
- @build_step_images = args[:build_step_images] if args.key?(:build_step_images)
445
528
  @images = args[:images] if args.key?(:images)
529
+ @build_step_images = args[:build_step_images] if args.key?(:build_step_images)
446
530
  end
447
531
  end
448
532
 
@@ -531,11 +615,50 @@ module Google
531
615
  end
532
616
  end
533
617
 
618
+ # Response containing existing BuildTriggers.
619
+ class ListBuildTriggersResponse
620
+ include Google::Apis::Core::Hashable
621
+
622
+ # BuildTriggers for the project, sorted by create_time descending.
623
+ # Corresponds to the JSON property `triggers`
624
+ # @return [Array<Google::Apis::CloudbuildV1::BuildTrigger>]
625
+ attr_accessor :triggers
626
+
627
+ def initialize(**args)
628
+ update!(**args)
629
+ end
630
+
631
+ # Update properties of this object
632
+ def update!(**args)
633
+ @triggers = args[:triggers] if args.key?(:triggers)
634
+ end
635
+ end
636
+
534
637
  # This resource represents a long-running operation that is the result of a
535
638
  # network API call.
536
639
  class Operation
537
640
  include Google::Apis::Core::Hashable
538
641
 
642
+ # If the value is `false`, it means the operation is still in progress.
643
+ # If true, the operation is completed, and either `error` or `response` is
644
+ # available.
645
+ # Corresponds to the JSON property `done`
646
+ # @return [Boolean]
647
+ attr_accessor :done
648
+ alias_method :done?, :done
649
+
650
+ # The normal response of the operation in case of success. If the original
651
+ # method returns no data on success, such as `Delete`, the response is
652
+ # `google.protobuf.Empty`. If the original method is standard
653
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
654
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
655
+ # is the original method name. For example, if the original method name
656
+ # is `TakeSnapshot()`, the inferred response type is
657
+ # `TakeSnapshotResponse`.
658
+ # Corresponds to the JSON property `response`
659
+ # @return [Hash<String,Object>]
660
+ attr_accessor :response
661
+
539
662
  # The server-assigned name, which is only unique within the same service that
540
663
  # originally returns it. If you use the default HTTP mapping, the
541
664
  # `name` should have the format of `operations/some/unique/name`.
@@ -594,56 +717,17 @@ module Google
594
717
  # @return [Hash<String,Object>]
595
718
  attr_accessor :metadata
596
719
 
597
- # If the value is `false`, it means the operation is still in progress.
598
- # If true, the operation is completed, and either `error` or `response` is
599
- # available.
600
- # Corresponds to the JSON property `done`
601
- # @return [Boolean]
602
- attr_accessor :done
603
- alias_method :done?, :done
604
-
605
- # The normal response of the operation in case of success. If the original
606
- # method returns no data on success, such as `Delete`, the response is
607
- # `google.protobuf.Empty`. If the original method is standard
608
- # `Get`/`Create`/`Update`, the response should be the resource. For other
609
- # methods, the response should have the type `XxxResponse`, where `Xxx`
610
- # is the original method name. For example, if the original method name
611
- # is `TakeSnapshot()`, the inferred response type is
612
- # `TakeSnapshotResponse`.
613
- # Corresponds to the JSON property `response`
614
- # @return [Hash<String,Object>]
615
- attr_accessor :response
616
-
617
720
  def initialize(**args)
618
721
  update!(**args)
619
722
  end
620
723
 
621
724
  # Update properties of this object
622
725
  def update!(**args)
726
+ @done = args[:done] if args.key?(:done)
727
+ @response = args[:response] if args.key?(:response)
623
728
  @name = args[:name] if args.key?(:name)
624
729
  @error = args[:error] if args.key?(:error)
625
730
  @metadata = args[:metadata] if args.key?(:metadata)
626
- @done = args[:done] if args.key?(:done)
627
- @response = args[:response] if args.key?(:response)
628
- end
629
- end
630
-
631
- # Response containing existing BuildTriggers.
632
- class ListBuildTriggersResponse
633
- include Google::Apis::Core::Hashable
634
-
635
- # BuildTriggers for the project, sorted by create_time descending.
636
- # Corresponds to the JSON property `triggers`
637
- # @return [Array<Google::Apis::CloudbuildV1::BuildTrigger>]
638
- attr_accessor :triggers
639
-
640
- def initialize(**args)
641
- update!(**args)
642
- end
643
-
644
- # Update properties of this object
645
- def update!(**args)
646
- @triggers = args[:triggers] if args.key?(:triggers)
647
731
  end
648
732
  end
649
733
 
@@ -673,69 +757,19 @@ module Google
673
757
  end
674
758
  end
675
759
 
676
- # BuildStep describes a step to perform in the build pipeline.
677
- class BuildStep
760
+ # Container message for hash values.
761
+ class HashProp
678
762
  include Google::Apis::Core::Hashable
679
763
 
680
- # Optional unique identifier for this build step, used in wait_for to
681
- # reference this build step as a dependency.
682
- # Corresponds to the JSON property `id`
683
- # @return [String]
684
- attr_accessor :id
685
-
686
- # Working directory (relative to project source root) to use when running
687
- # this operation's container.
688
- # Corresponds to the JSON property `dir`
689
- # @return [String]
690
- attr_accessor :dir
691
-
692
- # A list of environment variable definitions to be used when running a step.
693
- # The elements are of the form "KEY=VALUE" for the environment variable "KEY"
694
- # being given the value "VALUE".
695
- # Corresponds to the JSON property `env`
696
- # @return [Array<String>]
697
- attr_accessor :env
698
-
699
- # The ID(s) of the step(s) that this build step depends on.
700
- # This build step will not start until all the build steps in wait_for
701
- # have completed successfully. If wait_for is empty, this build step will
702
- # start when all previous build steps in the Build.Steps list have completed
703
- # successfully.
704
- # Corresponds to the JSON property `waitFor`
705
- # @return [Array<String>]
706
- attr_accessor :wait_for
707
-
708
- # A list of arguments that will be presented to the step when it is started.
709
- # If the image used to run the step's container has an entrypoint, these args
710
- # will be used as arguments to that entrypoint. If the image does not define
711
- # an entrypoint, the first element in args will be used as the entrypoint,
712
- # and the remainder will be used as arguments.
713
- # Corresponds to the JSON property `args`
714
- # @return [Array<String>]
715
- attr_accessor :args
716
-
717
- # The name of the container image that will run this particular build step.
718
- # If the image is already available in the host's Docker daemon's cache, it
719
- # will be run directly. If not, the host will attempt to pull the image
720
- # first, using the builder service account's credentials if necessary.
721
- # The Docker daemon's cache will already have the latest versions of all of
722
- # the officially supported build steps
723
- # (https://github.com/GoogleCloudPlatform/cloud-builders). The Docker daemon
724
- # will also have cached many of the layers for some popular images, like
725
- # "ubuntu", "debian", but they will be refreshed at the time you attempt to
726
- # use them.
727
- # If you built an image in a previous build step, it will be stored in the
728
- # host's Docker daemon's cache and is available to use as the name for a
729
- # later build step.
730
- # Corresponds to the JSON property `name`
764
+ # The type of hash that was performed.
765
+ # Corresponds to the JSON property `type`
731
766
  # @return [String]
732
- attr_accessor :name
767
+ attr_accessor :type
733
768
 
734
- # Optional entrypoint to be used instead of the build step image's default
735
- # If unset, the image's default will be used.
736
- # Corresponds to the JSON property `entrypoint`
769
+ # The hash value.
770
+ # Corresponds to the JSON property `value`
737
771
  # @return [String]
738
- attr_accessor :entrypoint
772
+ attr_accessor :value
739
773
 
740
774
  def initialize(**args)
741
775
  update!(**args)
@@ -743,13 +777,8 @@ module Google
743
777
 
744
778
  # Update properties of this object
745
779
  def update!(**args)
746
- @id = args[:id] if args.key?(:id)
747
- @dir = args[:dir] if args.key?(:dir)
748
- @env = args[:env] if args.key?(:env)
749
- @wait_for = args[:wait_for] if args.key?(:wait_for)
750
- @args = args[:args] if args.key?(:args)
751
- @name = args[:name] if args.key?(:name)
752
- @entrypoint = args[:entrypoint] if args.key?(:entrypoint)
780
+ @type = args[:type] if args.key?(:type)
781
+ @value = args[:value] if args.key?(:value)
753
782
  end
754
783
  end
755
784
 
@@ -758,6 +787,16 @@ module Google
758
787
  class RepoSource
759
788
  include Google::Apis::Core::Hashable
760
789
 
790
+ # Name of the tag to build.
791
+ # Corresponds to the JSON property `tagName`
792
+ # @return [String]
793
+ attr_accessor :tag_name
794
+
795
+ # Explicit commit SHA to build.
796
+ # Corresponds to the JSON property `commitSha`
797
+ # @return [String]
798
+ attr_accessor :commit_sha
799
+
761
800
  # ID of the project that owns the repo. If omitted, the project ID requesting
762
801
  # the build is assumed.
763
802
  # Corresponds to the JSON property `projectId`
@@ -774,43 +813,83 @@ module Google
774
813
  # @return [String]
775
814
  attr_accessor :branch_name
776
815
 
777
- # Name of the tag to build.
778
- # Corresponds to the JSON property `tagName`
779
- # @return [String]
780
- attr_accessor :tag_name
781
-
782
- # Explicit commit SHA to build.
783
- # Corresponds to the JSON property `commitSha`
784
- # @return [String]
785
- attr_accessor :commit_sha
786
-
787
816
  def initialize(**args)
788
817
  update!(**args)
789
818
  end
790
819
 
791
820
  # Update properties of this object
792
821
  def update!(**args)
822
+ @tag_name = args[:tag_name] if args.key?(:tag_name)
823
+ @commit_sha = args[:commit_sha] if args.key?(:commit_sha)
793
824
  @project_id = args[:project_id] if args.key?(:project_id)
794
825
  @repo_name = args[:repo_name] if args.key?(:repo_name)
795
826
  @branch_name = args[:branch_name] if args.key?(:branch_name)
796
- @tag_name = args[:tag_name] if args.key?(:tag_name)
797
- @commit_sha = args[:commit_sha] if args.key?(:commit_sha)
798
827
  end
799
828
  end
800
829
 
801
- # Container message for hash values.
802
- class HashProp
830
+ # BuildStep describes a step to perform in the build pipeline.
831
+ class BuildStep
803
832
  include Google::Apis::Core::Hashable
804
833
 
805
- # The type of hash that was performed.
806
- # Corresponds to the JSON property `type`
834
+ # The ID(s) of the step(s) that this build step depends on.
835
+ # This build step will not start until all the build steps in wait_for
836
+ # have completed successfully. If wait_for is empty, this build step will
837
+ # start when all previous build steps in the Build.Steps list have completed
838
+ # successfully.
839
+ # Corresponds to the JSON property `waitFor`
840
+ # @return [Array<String>]
841
+ attr_accessor :wait_for
842
+
843
+ # A list of environment variable definitions to be used when running a step.
844
+ # The elements are of the form "KEY=VALUE" for the environment variable "KEY"
845
+ # being given the value "VALUE".
846
+ # Corresponds to the JSON property `env`
847
+ # @return [Array<String>]
848
+ attr_accessor :env
849
+
850
+ # A list of arguments that will be presented to the step when it is started.
851
+ # If the image used to run the step's container has an entrypoint, these args
852
+ # will be used as arguments to that entrypoint. If the image does not define
853
+ # an entrypoint, the first element in args will be used as the entrypoint,
854
+ # and the remainder will be used as arguments.
855
+ # Corresponds to the JSON property `args`
856
+ # @return [Array<String>]
857
+ attr_accessor :args
858
+
859
+ # The name of the container image that will run this particular build step.
860
+ # If the image is already available in the host's Docker daemon's cache, it
861
+ # will be run directly. If not, the host will attempt to pull the image
862
+ # first, using the builder service account's credentials if necessary.
863
+ # The Docker daemon's cache will already have the latest versions of all of
864
+ # the officially supported build steps
865
+ # (https://github.com/GoogleCloudPlatform/cloud-builders). The Docker daemon
866
+ # will also have cached many of the layers for some popular images, like
867
+ # "ubuntu", "debian", but they will be refreshed at the time you attempt to
868
+ # use them.
869
+ # If you built an image in a previous build step, it will be stored in the
870
+ # host's Docker daemon's cache and is available to use as the name for a
871
+ # later build step.
872
+ # Corresponds to the JSON property `name`
807
873
  # @return [String]
808
- attr_accessor :type
874
+ attr_accessor :name
809
875
 
810
- # The hash value.
811
- # Corresponds to the JSON property `value`
876
+ # Optional entrypoint to be used instead of the build step image's default
877
+ # If unset, the image's default will be used.
878
+ # Corresponds to the JSON property `entrypoint`
812
879
  # @return [String]
813
- attr_accessor :value
880
+ attr_accessor :entrypoint
881
+
882
+ # Optional unique identifier for this build step, used in wait_for to
883
+ # reference this build step as a dependency.
884
+ # Corresponds to the JSON property `id`
885
+ # @return [String]
886
+ attr_accessor :id
887
+
888
+ # Working directory (relative to project source root) to use when running
889
+ # this operation's container.
890
+ # Corresponds to the JSON property `dir`
891
+ # @return [String]
892
+ attr_accessor :dir
814
893
 
815
894
  def initialize(**args)
816
895
  update!(**args)
@@ -818,8 +897,13 @@ module Google
818
897
 
819
898
  # Update properties of this object
820
899
  def update!(**args)
821
- @type = args[:type] if args.key?(:type)
822
- @value = args[:value] if args.key?(:value)
900
+ @wait_for = args[:wait_for] if args.key?(:wait_for)
901
+ @env = args[:env] if args.key?(:env)
902
+ @args = args[:args] if args.key?(:args)
903
+ @name = args[:name] if args.key?(:name)
904
+ @entrypoint = args[:entrypoint] if args.key?(:entrypoint)
905
+ @id = args[:id] if args.key?(:id)
906
+ @dir = args[:dir] if args.key?(:dir)
823
907
  end
824
908
  end
825
909
 
@@ -842,78 +926,6 @@ module Google
842
926
  @file_hash = args[:file_hash] if args.key?(:file_hash)
843
927
  end
844
928
  end
845
-
846
- # The `Status` type defines a logical error model that is suitable for different
847
- # programming environments, including REST APIs and RPC APIs. It is used by
848
- # [gRPC](https://github.com/grpc). The error model is designed to be:
849
- # - Simple to use and understand for most users
850
- # - Flexible enough to meet unexpected needs
851
- # # Overview
852
- # The `Status` message contains three pieces of data: error code, error message,
853
- # and error details. The error code should be an enum value of
854
- # google.rpc.Code, but it may accept additional error codes if needed. The
855
- # error message should be a developer-facing English message that helps
856
- # developers *understand* and *resolve* the error. If a localized user-facing
857
- # error message is needed, put the localized message in the error details or
858
- # localize it in the client. The optional error details may contain arbitrary
859
- # information about the error. There is a predefined set of error detail types
860
- # in the package `google.rpc` which can be used for common error conditions.
861
- # # Language mapping
862
- # The `Status` message is the logical representation of the error model, but it
863
- # is not necessarily the actual wire format. When the `Status` message is
864
- # exposed in different client libraries and different wire protocols, it can be
865
- # mapped differently. For example, it will likely be mapped to some exceptions
866
- # in Java, but more likely mapped to some error codes in C.
867
- # # Other uses
868
- # The error model and the `Status` message can be used in a variety of
869
- # environments, either with or without APIs, to provide a
870
- # consistent developer experience across different environments.
871
- # Example uses of this error model include:
872
- # - Partial errors. If a service needs to return partial errors to the client,
873
- # it may embed the `Status` in the normal response to indicate the partial
874
- # errors.
875
- # - Workflow errors. A typical workflow has multiple steps. Each step may
876
- # have a `Status` message for error reporting purpose.
877
- # - Batch operations. If a client uses batch request and batch response, the
878
- # `Status` message should be used directly inside batch response, one for
879
- # each error sub-response.
880
- # - Asynchronous operations. If an API call embeds asynchronous operation
881
- # results in its response, the status of those operations should be
882
- # represented directly using the `Status` message.
883
- # - Logging. If some API errors are stored in logs, the message `Status` could
884
- # be used directly after any stripping needed for security/privacy reasons.
885
- class Status
886
- include Google::Apis::Core::Hashable
887
-
888
- # A developer-facing error message, which should be in English. Any
889
- # user-facing error message should be localized and sent in the
890
- # google.rpc.Status.details field, or localized by the client.
891
- # Corresponds to the JSON property `message`
892
- # @return [String]
893
- attr_accessor :message
894
-
895
- # A list of messages that carry the error details. There will be a
896
- # common set of message types for APIs to use.
897
- # Corresponds to the JSON property `details`
898
- # @return [Array<Hash<String,Object>>]
899
- attr_accessor :details
900
-
901
- # The status code, which should be an enum value of google.rpc.Code.
902
- # Corresponds to the JSON property `code`
903
- # @return [Fixnum]
904
- attr_accessor :code
905
-
906
- def initialize(**args)
907
- update!(**args)
908
- end
909
-
910
- # Update properties of this object
911
- def update!(**args)
912
- @message = args[:message] if args.key?(:message)
913
- @details = args[:details] if args.key?(:details)
914
- @code = args[:code] if args.key?(:code)
915
- end
916
- end
917
929
  end
918
930
  end
919
931
  end