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,6 +22,30 @@ module Google
22
22
  module Apis
23
23
  module CloudbuildV1
24
24
 
25
+ class Empty
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class BuildTrigger
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Build
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CancelBuildRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
25
49
  class ListBuildsResponse
26
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
51
 
@@ -125,27 +149,58 @@ module Google
125
149
  end
126
150
 
127
151
  class Empty
128
- class Representation < Google::Apis::Core::JsonRepresentation; end
129
-
130
- include Google::Apis::Core::JsonObjectSupport
152
+ # @private
153
+ class Representation < Google::Apis::Core::JsonRepresentation
154
+ end
131
155
  end
132
156
 
133
157
  class BuildTrigger
134
- class Representation < Google::Apis::Core::JsonRepresentation; end
158
+ # @private
159
+ class Representation < Google::Apis::Core::JsonRepresentation
160
+ property :id, as: 'id'
161
+ property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
135
162
 
136
- include Google::Apis::Core::JsonObjectSupport
163
+ property :description, as: 'description'
164
+ property :disabled, as: 'disabled'
165
+ property :create_time, as: 'createTime'
166
+ property :filename, as: 'filename'
167
+ property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
168
+
169
+ end
137
170
  end
138
171
 
139
172
  class Build
140
- class Representation < Google::Apis::Core::JsonRepresentation; end
173
+ # @private
174
+ class Representation < Google::Apis::Core::JsonRepresentation
175
+ property :start_time, as: 'startTime'
176
+ property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
141
177
 
142
- include Google::Apis::Core::JsonObjectSupport
178
+ property :create_time, as: 'createTime'
179
+ collection :images, as: 'images'
180
+ property :project_id, as: 'projectId'
181
+ property :log_url, as: 'logUrl'
182
+ property :finish_time, as: 'finishTime'
183
+ property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
184
+
185
+ property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
186
+
187
+ property :status_detail, as: 'statusDetail'
188
+ property :status, as: 'status'
189
+ property :timeout, as: 'timeout'
190
+ property :logs_bucket, as: 'logsBucket'
191
+ property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
192
+
193
+ collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
194
+
195
+ property :build_trigger_id, as: 'buildTriggerId'
196
+ property :id, as: 'id'
197
+ end
143
198
  end
144
199
 
145
200
  class CancelBuildRequest
146
- class Representation < Google::Apis::Core::JsonRepresentation; end
147
-
148
- include Google::Apis::Core::JsonObjectSupport
201
+ # @private
202
+ class Representation < Google::Apis::Core::JsonRepresentation
203
+ end
149
204
  end
150
205
 
151
206
  class ListBuildsResponse
@@ -196,9 +251,9 @@ module Google
196
251
  class Results
197
252
  # @private
198
253
  class Representation < Google::Apis::Core::JsonRepresentation
254
+ collection :build_step_images, as: 'buildStepImages'
199
255
  collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
200
256
 
201
- collection :build_step_images, as: 'buildStepImages'
202
257
  end
203
258
  end
204
259
 
@@ -231,12 +286,12 @@ module Google
231
286
  class Operation
232
287
  # @private
233
288
  class Representation < Google::Apis::Core::JsonRepresentation
234
- property :done, as: 'done'
235
- hash :response, as: 'response'
236
289
  property :name, as: 'name'
237
290
  property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
238
291
 
239
292
  hash :metadata, as: 'metadata'
293
+ property :done, as: 'done'
294
+ hash :response, as: 'response'
240
295
  end
241
296
  end
242
297
 
@@ -259,24 +314,24 @@ module Google
259
314
  class BuildStep
260
315
  # @private
261
316
  class Representation < Google::Apis::Core::JsonRepresentation
262
- property :name, as: 'name'
263
- property :entrypoint, as: 'entrypoint'
264
317
  property :id, as: 'id'
265
318
  property :dir, as: 'dir'
266
- collection :wait_for, as: 'waitFor'
267
319
  collection :env, as: 'env'
320
+ collection :wait_for, as: 'waitFor'
268
321
  collection :args, as: 'args'
322
+ property :name, as: 'name'
323
+ property :entrypoint, as: 'entrypoint'
269
324
  end
270
325
  end
271
326
 
272
327
  class RepoSource
273
328
  # @private
274
329
  class Representation < Google::Apis::Core::JsonRepresentation
275
- property :tag_name, as: 'tagName'
276
- property :commit_sha, as: 'commitSha'
277
330
  property :project_id, as: 'projectId'
278
331
  property :repo_name, as: 'repoName'
279
332
  property :branch_name, as: 'branchName'
333
+ property :tag_name, as: 'tagName'
334
+ property :commit_sha, as: 'commitSha'
280
335
  end
281
336
  end
282
337
 
@@ -304,61 +359,6 @@ module Google
304
359
  property :code, as: 'code'
305
360
  end
306
361
  end
307
-
308
- class Empty
309
- # @private
310
- class Representation < Google::Apis::Core::JsonRepresentation
311
- end
312
- end
313
-
314
- class BuildTrigger
315
- # @private
316
- class Representation < Google::Apis::Core::JsonRepresentation
317
- property :create_time, as: 'createTime'
318
- property :disabled, as: 'disabled'
319
- property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
320
-
321
- property :filename, as: 'filename'
322
- property :id, as: 'id'
323
- property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
324
-
325
- property :description, as: 'description'
326
- end
327
- end
328
-
329
- class Build
330
- # @private
331
- class Representation < Google::Apis::Core::JsonRepresentation
332
- property :create_time, as: 'createTime'
333
- property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
334
-
335
- collection :images, as: 'images'
336
- property :project_id, as: 'projectId'
337
- property :log_url, as: 'logUrl'
338
- property :finish_time, as: 'finishTime'
339
- property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
340
-
341
- property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
342
-
343
- property :status_detail, as: 'statusDetail'
344
- property :status, as: 'status'
345
- property :timeout, as: 'timeout'
346
- property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
347
-
348
- property :logs_bucket, as: 'logsBucket'
349
- collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
350
-
351
- property :build_trigger_id, as: 'buildTriggerId'
352
- property :id, as: 'id'
353
- property :start_time, as: 'startTime'
354
- end
355
- end
356
-
357
- class CancelBuildRequest
358
- # @private
359
- class Representation < Google::Apis::Core::JsonRepresentation
360
- end
361
- end
362
362
  end
363
363
  end
364
364
  end
@@ -46,6 +46,42 @@ module Google
46
46
  super('https://cloudbuild.googleapis.com/', '')
47
47
  end
48
48
 
49
+ # Starts a build with the specified configuration.
50
+ # The long-running Operation returned by this method will include the ID of
51
+ # the build, which can be passed to GetBuild to determine its status (e.g.,
52
+ # success or failure).
53
+ # @param [String] project_id
54
+ # ID of the project.
55
+ # @param [Google::Apis::CloudbuildV1::Build] build_object
56
+ # @param [String] fields
57
+ # Selector specifying which fields to include in a partial response.
58
+ # @param [String] quota_user
59
+ # Available to use for quota purposes for server-side applications. Can be any
60
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
61
+ # @param [Google::Apis::RequestOptions] options
62
+ # Request-specific options
63
+ #
64
+ # @yield [result, err] Result & error if block supplied
65
+ # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
66
+ # @yieldparam err [StandardError] error object if request failed
67
+ #
68
+ # @return [Google::Apis::CloudbuildV1::Operation]
69
+ #
70
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
73
+ def create_project_build(project_id, build_object = nil, fields: nil, quota_user: nil, options: nil, &block)
74
+ command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
75
+ command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
76
+ command.request_object = build_object
77
+ command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
78
+ command.response_class = Google::Apis::CloudbuildV1::Operation
79
+ command.params['projectId'] = project_id unless project_id.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
49
85
  # Cancels a requested build in progress.
50
86
  # @param [String] project_id
51
87
  # ID of the project.
@@ -122,12 +158,12 @@ module Google
122
158
  # successfully or unsuccessfully.
123
159
  # @param [String] project_id
124
160
  # ID of the project.
161
+ # @param [String] filter
162
+ # The raw filter text to constrain the results.
125
163
  # @param [String] page_token
126
164
  # Token to provide to skip to a particular spot in the list.
127
165
  # @param [Fixnum] page_size
128
166
  # Number of results to return in the list.
129
- # @param [String] filter
130
- # The raw filter text to constrain the results.
131
167
  # @param [String] fields
132
168
  # Selector specifying which fields to include in a partial response.
133
169
  # @param [String] quota_user
@@ -145,50 +181,14 @@ module Google
145
181
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
182
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
183
  # @raise [Google::Apis::AuthorizationError] Authorization is required
148
- def list_project_builds(project_id, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
184
+ def list_project_builds(project_id, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
149
185
  command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
150
186
  command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
151
187
  command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
152
188
  command.params['projectId'] = project_id unless project_id.nil?
189
+ command.query['filter'] = filter unless filter.nil?
153
190
  command.query['pageToken'] = page_token unless page_token.nil?
154
191
  command.query['pageSize'] = page_size unless page_size.nil?
155
- command.query['filter'] = filter unless filter.nil?
156
- command.query['fields'] = fields unless fields.nil?
157
- command.query['quotaUser'] = quota_user unless quota_user.nil?
158
- execute_or_queue_command(command, &block)
159
- end
160
-
161
- # Starts a build with the specified configuration.
162
- # The long-running Operation returned by this method will include the ID of
163
- # the build, which can be passed to GetBuild to determine its status (e.g.,
164
- # success or failure).
165
- # @param [String] project_id
166
- # ID of the project.
167
- # @param [Google::Apis::CloudbuildV1::Build] build_object
168
- # @param [String] fields
169
- # Selector specifying which fields to include in a partial response.
170
- # @param [String] quota_user
171
- # Available to use for quota purposes for server-side applications. Can be any
172
- # arbitrary string assigned to a user, but should not exceed 40 characters.
173
- # @param [Google::Apis::RequestOptions] options
174
- # Request-specific options
175
- #
176
- # @yield [result, err] Result & error if block supplied
177
- # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
178
- # @yieldparam err [StandardError] error object if request failed
179
- #
180
- # @return [Google::Apis::CloudbuildV1::Operation]
181
- #
182
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
183
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
184
- # @raise [Google::Apis::AuthorizationError] Authorization is required
185
- def create_project_build(project_id, build_object = nil, fields: nil, quota_user: nil, options: nil, &block)
186
- command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
187
- command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
188
- command.request_object = build_object
189
- command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
190
- command.response_class = Google::Apis::CloudbuildV1::Operation
191
- command.params['projectId'] = project_id unless project_id.nil?
192
192
  command.query['fields'] = fields unless fields.nil?
193
193
  command.query['quotaUser'] = quota_user unless quota_user.nil?
194
194
  execute_or_queue_command(command, &block)
@@ -364,60 +364,18 @@ module Google
364
364
  execute_or_queue_command(command, &block)
365
365
  end
366
366
 
367
- # Starts asynchronous cancellation on a long-running operation. The server
368
- # makes a best effort to cancel the operation, but success is not
369
- # guaranteed. If the server doesn't support this method, it returns
370
- # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
371
- # Operations.GetOperation or
372
- # other methods to check whether the cancellation succeeded or whether the
373
- # operation completed despite cancellation. On successful cancellation,
374
- # the operation is not deleted; instead, it becomes an operation with
375
- # an Operation.error value with a google.rpc.Status.code of 1,
376
- # corresponding to `Code.CANCELLED`.
377
- # @param [String] name
378
- # The name of the operation resource to be cancelled.
379
- # @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
380
- # @param [String] fields
381
- # Selector specifying which fields to include in a partial response.
382
- # @param [String] quota_user
383
- # Available to use for quota purposes for server-side applications. Can be any
384
- # arbitrary string assigned to a user, but should not exceed 40 characters.
385
- # @param [Google::Apis::RequestOptions] options
386
- # Request-specific options
387
- #
388
- # @yield [result, err] Result & error if block supplied
389
- # @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
390
- # @yieldparam err [StandardError] error object if request failed
391
- #
392
- # @return [Google::Apis::CloudbuildV1::Empty]
393
- #
394
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
395
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
396
- # @raise [Google::Apis::AuthorizationError] Authorization is required
397
- def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
398
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
399
- command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
400
- command.request_object = cancel_operation_request_object
401
- command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
402
- command.response_class = Google::Apis::CloudbuildV1::Empty
403
- command.params['name'] = name unless name.nil?
404
- command.query['fields'] = fields unless fields.nil?
405
- command.query['quotaUser'] = quota_user unless quota_user.nil?
406
- execute_or_queue_command(command, &block)
407
- end
408
-
409
367
  # Lists operations that match the specified filter in the request. If the
410
368
  # server doesn't support this method, it returns `UNIMPLEMENTED`.
411
369
  # NOTE: the `name` binding below allows API services to override the binding
412
370
  # to use different resource name schemes, such as `users/*/operations`.
413
371
  # @param [String] name
414
372
  # The name of the operation collection.
415
- # @param [String] filter
416
- # The standard list filter.
417
373
  # @param [String] page_token
418
374
  # The standard list page token.
419
375
  # @param [Fixnum] page_size
420
376
  # The standard list page size.
377
+ # @param [String] filter
378
+ # The standard list filter.
421
379
  # @param [String] fields
422
380
  # Selector specifying which fields to include in a partial response.
423
381
  # @param [String] quota_user
@@ -435,14 +393,14 @@ module Google
435
393
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
436
394
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
437
395
  # @raise [Google::Apis::AuthorizationError] Authorization is required
438
- def list_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
396
+ def list_operations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
439
397
  command = make_simple_command(:get, 'v1/{+name}', options)
440
398
  command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
441
399
  command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
442
400
  command.params['name'] = name unless name.nil?
443
- command.query['filter'] = filter unless filter.nil?
444
401
  command.query['pageToken'] = page_token unless page_token.nil?
445
402
  command.query['pageSize'] = page_size unless page_size.nil?
403
+ command.query['filter'] = filter unless filter.nil?
446
404
  command.query['fields'] = fields unless fields.nil?
447
405
  command.query['quotaUser'] = quota_user unless quota_user.nil?
448
406
  execute_or_queue_command(command, &block)
@@ -479,6 +437,48 @@ module Google
479
437
  command.query['quotaUser'] = quota_user unless quota_user.nil?
480
438
  execute_or_queue_command(command, &block)
481
439
  end
440
+
441
+ # Starts asynchronous cancellation on a long-running operation. The server
442
+ # makes a best effort to cancel the operation, but success is not
443
+ # guaranteed. If the server doesn't support this method, it returns
444
+ # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
445
+ # Operations.GetOperation or
446
+ # other methods to check whether the cancellation succeeded or whether the
447
+ # operation completed despite cancellation. On successful cancellation,
448
+ # the operation is not deleted; instead, it becomes an operation with
449
+ # an Operation.error value with a google.rpc.Status.code of 1,
450
+ # corresponding to `Code.CANCELLED`.
451
+ # @param [String] name
452
+ # The name of the operation resource to be cancelled.
453
+ # @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
454
+ # @param [String] fields
455
+ # Selector specifying which fields to include in a partial response.
456
+ # @param [String] quota_user
457
+ # Available to use for quota purposes for server-side applications. Can be any
458
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
459
+ # @param [Google::Apis::RequestOptions] options
460
+ # Request-specific options
461
+ #
462
+ # @yield [result, err] Result & error if block supplied
463
+ # @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
464
+ # @yieldparam err [StandardError] error object if request failed
465
+ #
466
+ # @return [Google::Apis::CloudbuildV1::Empty]
467
+ #
468
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
469
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
470
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
471
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
472
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
473
+ command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
474
+ command.request_object = cancel_operation_request_object
475
+ command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
476
+ command.response_class = Google::Apis::CloudbuildV1::Empty
477
+ command.params['name'] = name unless name.nil?
478
+ command.query['fields'] = fields unless fields.nil?
479
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
480
+ execute_or_queue_command(command, &block)
481
+ end
482
482
 
483
483
  protected
484
484