google-api-client 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +37747 -36512
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
  21. data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  26. data/generated/google/apis/appsactivity_v1.rb +3 -3
  27. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +34 -8
  31. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/calendar_v3/classes.rb +3 -5
  34. data/generated/google/apis/classroom_v1.rb +25 -22
  35. data/generated/google/apis/classroom_v1/classes.rb +910 -1001
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1064 -1272
  38. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  39. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  40. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  41. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  42. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
  44. data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
  45. data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
  46. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  47. data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
  48. data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
  49. data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
  50. data/generated/google/apis/cloudkms_v1.rb +35 -0
  51. data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
  52. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  53. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  54. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
  56. data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
  57. data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
  58. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
  61. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
  62. data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
  63. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  64. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
  66. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
  67. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  68. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
  69. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  70. data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
  71. data/generated/google/apis/compute_beta.rb +1 -1
  72. data/generated/google/apis/compute_beta/classes.rb +813 -82
  73. data/generated/google/apis/compute_beta/representations.rb +305 -0
  74. data/generated/google/apis/compute_beta/service.rb +971 -180
  75. data/generated/google/apis/compute_v1.rb +1 -1
  76. data/generated/google/apis/compute_v1/classes.rb +147 -21
  77. data/generated/google/apis/compute_v1/representations.rb +38 -0
  78. data/generated/google/apis/compute_v1/service.rb +347 -65
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/classes.rb +2 -1
  81. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
  84. data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
  87. data/generated/google/apis/dataproc_v1/representations.rb +220 -204
  88. data/generated/google/apis/dataproc_v1/service.rb +299 -299
  89. data/generated/google/apis/datastore_v1.rb +4 -4
  90. data/generated/google/apis/datastore_v1/classes.rb +688 -688
  91. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  92. data/generated/google/apis/datastore_v1/service.rb +68 -68
  93. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  94. data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v2beta1.rb +1 -1
  97. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +487 -15
  102. data/generated/google/apis/drive_v2/representations.rb +120 -0
  103. data/generated/google/apis/drive_v2/service.rb +355 -38
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +416 -14
  106. data/generated/google/apis/drive_v3/representations.rb +99 -0
  107. data/generated/google/apis/drive_v3/service.rb +315 -28
  108. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1.rb +7 -7
  112. data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
  113. data/generated/google/apis/genomics_v1/representations.rb +239 -239
  114. data/generated/google/apis/genomics_v1/service.rb +599 -599
  115. data/generated/google/apis/gmail_v1.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +18 -1
  117. data/generated/google/apis/groupssettings_v1.rb +1 -1
  118. data/generated/google/apis/iam_v1.rb +1 -1
  119. data/generated/google/apis/iam_v1/classes.rb +440 -440
  120. data/generated/google/apis/iam_v1/representations.rb +96 -96
  121. data/generated/google/apis/iam_v1/service.rb +150 -150
  122. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  123. data/generated/google/apis/language_v1beta1.rb +1 -1
  124. data/generated/google/apis/language_v1beta1/classes.rb +235 -235
  125. data/generated/google/apis/language_v1beta1/representations.rb +73 -73
  126. data/generated/google/apis/language_v1beta1/service.rb +49 -49
  127. data/generated/google/apis/licensing_v1.rb +1 -1
  128. data/generated/google/apis/logging_v2beta1.rb +1 -1
  129. data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
  130. data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
  131. data/generated/google/apis/logging_v2beta1/service.rb +315 -316
  132. data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
  133. data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
  134. data/generated/google/apis/manufacturers_v1/service.rb +32 -32
  135. data/generated/google/apis/monitoring_v3.rb +4 -4
  136. data/generated/google/apis/monitoring_v3/classes.rb +229 -229
  137. data/generated/google/apis/monitoring_v3/representations.rb +45 -45
  138. data/generated/google/apis/monitoring_v3/service.rb +141 -141
  139. data/generated/google/apis/partners_v2.rb +3 -3
  140. data/generated/google/apis/partners_v2/classes.rb +1837 -483
  141. data/generated/google/apis/partners_v2/representations.rb +614 -157
  142. data/generated/google/apis/partners_v2/service.rb +881 -150
  143. data/generated/google/apis/people_v1.rb +1 -1
  144. data/generated/google/apis/people_v1/classes.rb +517 -465
  145. data/generated/google/apis/people_v1/representations.rb +138 -107
  146. data/generated/google/apis/people_v1/service.rb +56 -49
  147. data/generated/google/apis/plus_domains_v1.rb +1 -1
  148. data/generated/google/apis/plus_v1.rb +1 -1
  149. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  150. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
  151. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
  152. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
  153. data/generated/google/apis/pubsub_v1.rb +4 -4
  154. data/generated/google/apis/pubsub_v1/classes.rb +203 -203
  155. data/generated/google/apis/pubsub_v1/representations.rb +65 -65
  156. data/generated/google/apis/pubsub_v1/service.rb +226 -217
  157. data/generated/google/apis/reseller_v1.rb +1 -1
  158. data/generated/google/apis/reseller_v1/classes.rb +213 -61
  159. data/generated/google/apis/reseller_v1/representations.rb +27 -0
  160. data/generated/google/apis/reseller_v1/service.rb +240 -47
  161. data/generated/google/apis/script_v1.rb +14 -14
  162. data/generated/google/apis/script_v1/classes.rb +95 -95
  163. data/generated/google/apis/script_v1/representations.rb +25 -25
  164. data/generated/google/apis/sheets_v4.rb +1 -1
  165. data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
  166. data/generated/google/apis/sheets_v4/representations.rb +853 -837
  167. data/generated/google/apis/sheets_v4/service.rb +32 -32
  168. data/generated/google/apis/slides_v1.rb +1 -1
  169. data/generated/google/apis/slides_v1/classes.rb +804 -748
  170. data/generated/google/apis/slides_v1/representations.rb +204 -187
  171. data/generated/google/apis/slides_v1/service.rb +16 -16
  172. data/generated/google/apis/speech_v1beta1.rb +1 -1
  173. data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
  174. data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
  175. data/generated/google/apis/speech_v1beta1/service.rb +66 -66
  176. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  177. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
  178. data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
  179. data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
  180. data/generated/google/apis/storage_v1.rb +1 -1
  181. data/generated/google/apis/storage_v1/service.rb +10 -7
  182. data/generated/google/apis/vision_v1.rb +1 -1
  183. data/generated/google/apis/vision_v1/classes.rb +1393 -865
  184. data/generated/google/apis/vision_v1/representations.rb +367 -102
  185. data/generated/google/apis/vision_v1/service.rb +4 -4
  186. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  189. data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
  190. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  191. data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
  192. data/lib/google/apis/version.rb +1 -1
  193. metadata +34 -30
@@ -22,6 +22,18 @@ module Google
22
22
  module Apis
23
23
  module CloudbuildV1
24
24
 
25
+ class Operation
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ListBuildTriggersResponse
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
25
37
  class BuiltImage
26
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
39
 
@@ -137,15 +149,23 @@ module Google
137
149
  end
138
150
 
139
151
  class Operation
140
- class Representation < Google::Apis::Core::JsonRepresentation; end
152
+ # @private
153
+ class Representation < Google::Apis::Core::JsonRepresentation
154
+ property :done, as: 'done'
155
+ hash :response, as: 'response'
156
+ property :name, as: 'name'
157
+ property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
141
158
 
142
- include Google::Apis::Core::JsonObjectSupport
159
+ hash :metadata, as: 'metadata'
160
+ end
143
161
  end
144
162
 
145
163
  class ListBuildTriggersResponse
146
- class Representation < Google::Apis::Core::JsonRepresentation; end
164
+ # @private
165
+ class Representation < Google::Apis::Core::JsonRepresentation
166
+ collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
147
167
 
148
- include Google::Apis::Core::JsonObjectSupport
168
+ end
149
169
  end
150
170
 
151
171
  class BuiltImage
@@ -170,21 +190,21 @@ module Google
170
190
  class BuildStep
171
191
  # @private
172
192
  class Representation < Google::Apis::Core::JsonRepresentation
173
- property :entrypoint, as: 'entrypoint'
174
- property :id, as: 'id'
175
193
  property :dir, as: 'dir'
176
194
  collection :wait_for, as: 'waitFor'
177
195
  collection :env, as: 'env'
178
196
  collection :args, as: 'args'
179
197
  property :name, as: 'name'
198
+ property :entrypoint, as: 'entrypoint'
199
+ property :id, as: 'id'
180
200
  end
181
201
  end
182
202
 
183
203
  class HashProp
184
204
  # @private
185
205
  class Representation < Google::Apis::Core::JsonRepresentation
186
- property :type, as: 'type'
187
206
  property :value, :base64 => true, as: 'value'
207
+ property :type, as: 'type'
188
208
  end
189
209
  end
190
210
 
@@ -199,9 +219,9 @@ module Google
199
219
  class Status
200
220
  # @private
201
221
  class Representation < Google::Apis::Core::JsonRepresentation
202
- property :message, as: 'message'
203
222
  collection :details, as: 'details'
204
223
  property :code, as: 'code'
224
+ property :message, as: 'message'
205
225
  end
206
226
  end
207
227
 
@@ -214,45 +234,45 @@ module Google
214
234
  class BuildTrigger
215
235
  # @private
216
236
  class Representation < Google::Apis::Core::JsonRepresentation
237
+ property :filename, as: 'filename'
238
+ property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
239
+
217
240
  property :id, as: 'id'
218
241
  property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
219
242
 
220
243
  hash :substitutions, as: 'substitutions'
221
244
  property :description, as: 'description'
222
- property :create_time, as: 'createTime'
223
245
  property :disabled, as: 'disabled'
224
- property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
225
-
226
- property :filename, as: 'filename'
246
+ property :create_time, as: 'createTime'
227
247
  end
228
248
  end
229
249
 
230
250
  class Build
231
251
  # @private
232
252
  class Representation < Google::Apis::Core::JsonRepresentation
233
- property :timeout, as: 'timeout'
234
- property :status, as: 'status'
253
+ property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
254
+
255
+ property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
256
+
235
257
  property :status_detail, as: 'statusDetail'
236
- property :logs_bucket, as: 'logsBucket'
258
+ property :status, as: 'status'
259
+ property :timeout, as: 'timeout'
237
260
  property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
238
261
 
262
+ property :logs_bucket, as: 'logsBucket'
239
263
  collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
240
264
 
241
265
  property :build_trigger_id, as: 'buildTriggerId'
242
266
  property :id, as: 'id'
243
- property :start_time, as: 'startTime'
244
267
  hash :substitutions, as: 'substitutions'
245
- property :create_time, as: 'createTime'
268
+ property :start_time, as: 'startTime'
246
269
  property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
247
270
 
271
+ property :create_time, as: 'createTime'
248
272
  collection :images, as: 'images'
249
273
  property :project_id, as: 'projectId'
250
274
  property :finish_time, as: 'finishTime'
251
275
  property :log_url, as: 'logUrl'
252
- property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
253
-
254
- property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
255
-
256
276
  end
257
277
  end
258
278
 
@@ -283,36 +303,36 @@ module Google
283
303
  class Source
284
304
  # @private
285
305
  class Representation < Google::Apis::Core::JsonRepresentation
286
- property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
287
-
288
306
  property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
289
307
 
308
+ property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
309
+
290
310
  end
291
311
  end
292
312
 
293
313
  class BuildOptions
294
314
  # @private
295
315
  class Representation < Google::Apis::Core::JsonRepresentation
296
- property :requested_verify_option, as: 'requestedVerifyOption'
297
316
  collection :source_provenance_hash, as: 'sourceProvenanceHash'
317
+ property :requested_verify_option, as: 'requestedVerifyOption'
298
318
  end
299
319
  end
300
320
 
301
321
  class StorageSource
302
322
  # @private
303
323
  class Representation < Google::Apis::Core::JsonRepresentation
324
+ property :generation, as: 'generation'
304
325
  property :bucket, as: 'bucket'
305
326
  property :object, as: 'object'
306
- property :generation, as: 'generation'
307
327
  end
308
328
  end
309
329
 
310
330
  class Results
311
331
  # @private
312
332
  class Representation < Google::Apis::Core::JsonRepresentation
313
- collection :build_step_images, as: 'buildStepImages'
314
333
  collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
315
334
 
335
+ collection :build_step_images, as: 'buildStepImages'
316
336
  end
317
337
  end
318
338
 
@@ -327,38 +347,18 @@ module Google
327
347
  class SourceProvenance
328
348
  # @private
329
349
  class Representation < Google::Apis::Core::JsonRepresentation
330
- property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
331
-
332
350
  property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
333
351
 
334
352
  hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
335
353
 
336
- end
337
- end
338
-
339
- class CancelOperationRequest
340
- # @private
341
- class Representation < Google::Apis::Core::JsonRepresentation
342
- end
343
- end
344
-
345
- class Operation
346
- # @private
347
- class Representation < Google::Apis::Core::JsonRepresentation
348
- hash :metadata, as: 'metadata'
349
- property :done, as: 'done'
350
- hash :response, as: 'response'
351
- property :name, as: 'name'
352
- property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
354
+ property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
353
355
 
354
356
  end
355
357
  end
356
358
 
357
- class ListBuildTriggersResponse
359
+ class CancelOperationRequest
358
360
  # @private
359
361
  class Representation < Google::Apis::Core::JsonRepresentation
360
- collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
361
-
362
362
  end
363
363
  end
364
364
  end
@@ -32,133 +32,165 @@ module Google
32
32
  #
33
33
  # @see https://cloud.google.com/container-builder/docs/
34
34
  class CloudBuildService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # Available to use for quota purposes for server-side applications. Can be any
37
- # arbitrary string assigned to a user, but should not exceed 40 characters.
38
- attr_accessor :quota_user
39
-
40
35
  # @return [String]
41
36
  # API key. Your API key identifies your project and provides you with API access,
42
37
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
43
38
  attr_accessor :key
44
39
 
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
45
  def initialize
46
46
  super('https://cloudbuild.googleapis.com/', '')
47
47
  end
48
48
 
49
- # Starts asynchronous cancellation on a long-running operation. The server
50
- # makes a best effort to cancel the operation, but success is not
51
- # guaranteed. If the server doesn't support this method, it returns
52
- # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
53
- # Operations.GetOperation or
54
- # other methods to check whether the cancellation succeeded or whether the
55
- # operation completed despite cancellation. On successful cancellation,
56
- # the operation is not deleted; instead, it becomes an operation with
57
- # an Operation.error value with a google.rpc.Status.code of 1,
58
- # corresponding to `Code.CANCELLED`.
59
- # @param [String] name
60
- # The name of the operation resource to be cancelled.
61
- # @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
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.
62
58
  # @param [String] quota_user
63
59
  # Available to use for quota purposes for server-side applications. Can be any
64
60
  # arbitrary string assigned to a user, but should not exceed 40 characters.
65
- # @param [String] fields
66
- # Selector specifying which fields to include in a partial response.
67
61
  # @param [Google::Apis::RequestOptions] options
68
62
  # Request-specific options
69
63
  #
70
64
  # @yield [result, err] Result & error if block supplied
71
- # @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
65
+ # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
72
66
  # @yieldparam err [StandardError] error object if request failed
73
67
  #
74
- # @return [Google::Apis::CloudbuildV1::Empty]
68
+ # @return [Google::Apis::CloudbuildV1::Operation]
75
69
  #
76
70
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
71
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
72
  # @raise [Google::Apis::AuthorizationError] Authorization is required
79
- def cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
80
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
81
- command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
82
- command.request_object = cancel_operation_request_object
83
- command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
84
- command.response_class = Google::Apis::CloudbuildV1::Empty
85
- command.params['name'] = name unless name.nil?
86
- command.query['quotaUser'] = quota_user unless quota_user.nil?
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?
87
80
  command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
88
82
  execute_or_queue_command(command, &block)
89
83
  end
90
84
 
91
- # Lists operations that match the specified filter in the request. If the
92
- # server doesn't support this method, it returns `UNIMPLEMENTED`.
93
- # NOTE: the `name` binding below allows API services to override the binding
94
- # to use different resource name schemes, such as `users/*/operations`.
95
- # @param [String] name
96
- # The name of the operation collection.
97
- # @param [String] page_token
98
- # The standard list page token.
99
- # @param [Fixnum] page_size
100
- # The standard list page size.
101
- # @param [String] filter
102
- # The standard list filter.
85
+ # Cancels a requested build in progress.
86
+ # @param [String] project_id
87
+ # ID of the project.
88
+ # @param [String] id
89
+ # ID of the build.
90
+ # @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
91
+ # @param [String] fields
92
+ # Selector specifying which fields to include in a partial response.
103
93
  # @param [String] quota_user
104
94
  # Available to use for quota purposes for server-side applications. Can be any
105
95
  # arbitrary string assigned to a user, but should not exceed 40 characters.
106
- # @param [String] fields
107
- # Selector specifying which fields to include in a partial response.
108
96
  # @param [Google::Apis::RequestOptions] options
109
97
  # Request-specific options
110
98
  #
111
99
  # @yield [result, err] Result & error if block supplied
112
- # @yieldparam result [Google::Apis::CloudbuildV1::ListOperationsResponse] parsed result object
100
+ # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
113
101
  # @yieldparam err [StandardError] error object if request failed
114
102
  #
115
- # @return [Google::Apis::CloudbuildV1::ListOperationsResponse]
103
+ # @return [Google::Apis::CloudbuildV1::Build]
116
104
  #
117
105
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
118
106
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
119
107
  # @raise [Google::Apis::AuthorizationError] Authorization is required
120
- def list_operations(name, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
121
- command = make_simple_command(:get, 'v1/{+name}', options)
122
- command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
123
- command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
124
- command.params['name'] = name unless name.nil?
125
- command.query['pageToken'] = page_token unless page_token.nil?
126
- command.query['pageSize'] = page_size unless page_size.nil?
127
- command.query['filter'] = filter unless filter.nil?
128
- command.query['quotaUser'] = quota_user unless quota_user.nil?
108
+ def cancel_build(project_id, id, cancel_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
109
+ command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
110
+ command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
111
+ command.request_object = cancel_build_request_object
112
+ command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
113
+ command.response_class = Google::Apis::CloudbuildV1::Build
114
+ command.params['projectId'] = project_id unless project_id.nil?
115
+ command.params['id'] = id unless id.nil?
129
116
  command.query['fields'] = fields unless fields.nil?
117
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
130
118
  execute_or_queue_command(command, &block)
131
119
  end
132
120
 
133
- # Gets the latest state of a long-running operation. Clients can use this
134
- # method to poll the operation result at intervals as recommended by the API
135
- # service.
136
- # @param [String] name
137
- # The name of the operation resource.
121
+ # Returns information about a previously requested build.
122
+ # The Build that is returned includes its status (e.g., success or failure,
123
+ # or in-progress), and timing information.
124
+ # @param [String] project_id
125
+ # ID of the project.
126
+ # @param [String] id
127
+ # ID of the build.
128
+ # @param [String] fields
129
+ # Selector specifying which fields to include in a partial response.
138
130
  # @param [String] quota_user
139
131
  # Available to use for quota purposes for server-side applications. Can be any
140
132
  # arbitrary string assigned to a user, but should not exceed 40 characters.
133
+ # @param [Google::Apis::RequestOptions] options
134
+ # Request-specific options
135
+ #
136
+ # @yield [result, err] Result & error if block supplied
137
+ # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
138
+ # @yieldparam err [StandardError] error object if request failed
139
+ #
140
+ # @return [Google::Apis::CloudbuildV1::Build]
141
+ #
142
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
143
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
144
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
145
+ def get_project_build(project_id, id, fields: nil, quota_user: nil, options: nil, &block)
146
+ command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
147
+ command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
148
+ command.response_class = Google::Apis::CloudbuildV1::Build
149
+ command.params['projectId'] = project_id unless project_id.nil?
150
+ command.params['id'] = id unless id.nil?
151
+ command.query['fields'] = fields unless fields.nil?
152
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
153
+ execute_or_queue_command(command, &block)
154
+ end
155
+
156
+ # Lists previously requested builds.
157
+ # Previously requested builds may still be in-progress, or may have finished
158
+ # successfully or unsuccessfully.
159
+ # @param [String] project_id
160
+ # ID of the project.
161
+ # @param [String] page_token
162
+ # Token to provide to skip to a particular spot in the list.
163
+ # @param [Fixnum] page_size
164
+ # Number of results to return in the list.
165
+ # @param [String] filter
166
+ # The raw filter text to constrain the results.
141
167
  # @param [String] fields
142
168
  # Selector specifying which fields to include in a partial response.
169
+ # @param [String] quota_user
170
+ # Available to use for quota purposes for server-side applications. Can be any
171
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
143
172
  # @param [Google::Apis::RequestOptions] options
144
173
  # Request-specific options
145
174
  #
146
175
  # @yield [result, err] Result & error if block supplied
147
- # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
176
+ # @yieldparam result [Google::Apis::CloudbuildV1::ListBuildsResponse] parsed result object
148
177
  # @yieldparam err [StandardError] error object if request failed
149
178
  #
150
- # @return [Google::Apis::CloudbuildV1::Operation]
179
+ # @return [Google::Apis::CloudbuildV1::ListBuildsResponse]
151
180
  #
152
181
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
153
182
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
154
183
  # @raise [Google::Apis::AuthorizationError] Authorization is required
155
- def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
156
- command = make_simple_command(:get, 'v1/{+name}', options)
157
- command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
158
- command.response_class = Google::Apis::CloudbuildV1::Operation
159
- command.params['name'] = name unless name.nil?
160
- command.query['quotaUser'] = quota_user unless quota_user.nil?
184
+ def list_project_builds(project_id, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
185
+ command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
186
+ command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
187
+ command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
188
+ command.params['projectId'] = project_id unless project_id.nil?
189
+ command.query['pageToken'] = page_token unless page_token.nil?
190
+ command.query['pageSize'] = page_size unless page_size.nil?
191
+ command.query['filter'] = filter unless filter.nil?
161
192
  command.query['fields'] = fields unless fields.nil?
193
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
162
194
  execute_or_queue_command(command, &block)
163
195
  end
164
196
 
@@ -168,11 +200,11 @@ module Google
168
200
  # ID of the project that owns the trigger.
169
201
  # @param [String] trigger_id
170
202
  # ID of the BuildTrigger to delete.
203
+ # @param [String] fields
204
+ # Selector specifying which fields to include in a partial response.
171
205
  # @param [String] quota_user
172
206
  # Available to use for quota purposes for server-side applications. Can be any
173
207
  # arbitrary string assigned to a user, but should not exceed 40 characters.
174
- # @param [String] fields
175
- # Selector specifying which fields to include in a partial response.
176
208
  # @param [Google::Apis::RequestOptions] options
177
209
  # Request-specific options
178
210
  #
@@ -185,14 +217,14 @@ module Google
185
217
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
186
218
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
187
219
  # @raise [Google::Apis::AuthorizationError] Authorization is required
188
- def delete_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
220
+ def delete_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
189
221
  command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
190
222
  command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
191
223
  command.response_class = Google::Apis::CloudbuildV1::Empty
192
224
  command.params['projectId'] = project_id unless project_id.nil?
193
225
  command.params['triggerId'] = trigger_id unless trigger_id.nil?
194
- command.query['quotaUser'] = quota_user unless quota_user.nil?
195
226
  command.query['fields'] = fields unless fields.nil?
227
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
196
228
  execute_or_queue_command(command, &block)
197
229
  end
198
230
 
@@ -202,11 +234,11 @@ module Google
202
234
  # ID of the project that owns the trigger.
203
235
  # @param [String] trigger_id
204
236
  # ID of the BuildTrigger to get.
237
+ # @param [String] fields
238
+ # Selector specifying which fields to include in a partial response.
205
239
  # @param [String] quota_user
206
240
  # Available to use for quota purposes for server-side applications. Can be any
207
241
  # arbitrary string assigned to a user, but should not exceed 40 characters.
208
- # @param [String] fields
209
- # Selector specifying which fields to include in a partial response.
210
242
  # @param [Google::Apis::RequestOptions] options
211
243
  # Request-specific options
212
244
  #
@@ -219,14 +251,14 @@ module Google
219
251
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
220
252
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
221
253
  # @raise [Google::Apis::AuthorizationError] Authorization is required
222
- def get_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
254
+ def get_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
223
255
  command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
224
256
  command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
225
257
  command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
226
258
  command.params['projectId'] = project_id unless project_id.nil?
227
259
  command.params['triggerId'] = trigger_id unless trigger_id.nil?
228
- command.query['quotaUser'] = quota_user unless quota_user.nil?
229
260
  command.query['fields'] = fields unless fields.nil?
261
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
230
262
  execute_or_queue_command(command, &block)
231
263
  end
232
264
 
@@ -234,11 +266,11 @@ module Google
234
266
  # This API is experimental.
235
267
  # @param [String] project_id
236
268
  # ID of the project for which to list BuildTriggers.
269
+ # @param [String] fields
270
+ # Selector specifying which fields to include in a partial response.
237
271
  # @param [String] quota_user
238
272
  # Available to use for quota purposes for server-side applications. Can be any
239
273
  # arbitrary string assigned to a user, but should not exceed 40 characters.
240
- # @param [String] fields
241
- # Selector specifying which fields to include in a partial response.
242
274
  # @param [Google::Apis::RequestOptions] options
243
275
  # Request-specific options
244
276
  #
@@ -251,13 +283,13 @@ module Google
251
283
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
252
284
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
253
285
  # @raise [Google::Apis::AuthorizationError] Authorization is required
254
- def list_project_triggers(project_id, quota_user: nil, fields: nil, options: nil, &block)
286
+ def list_project_triggers(project_id, fields: nil, quota_user: nil, options: nil, &block)
255
287
  command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
256
288
  command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
257
289
  command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
258
290
  command.params['projectId'] = project_id unless project_id.nil?
259
- command.query['quotaUser'] = quota_user unless quota_user.nil?
260
291
  command.query['fields'] = fields unless fields.nil?
292
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
261
293
  execute_or_queue_command(command, &block)
262
294
  end
263
295
 
@@ -268,11 +300,11 @@ module Google
268
300
  # @param [String] trigger_id
269
301
  # ID of the BuildTrigger to update.
270
302
  # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
303
+ # @param [String] fields
304
+ # Selector specifying which fields to include in a partial response.
271
305
  # @param [String] quota_user
272
306
  # Available to use for quota purposes for server-side applications. Can be any
273
307
  # arbitrary string assigned to a user, but should not exceed 40 characters.
274
- # @param [String] fields
275
- # Selector specifying which fields to include in a partial response.
276
308
  # @param [Google::Apis::RequestOptions] options
277
309
  # Request-specific options
278
310
  #
@@ -285,7 +317,7 @@ module Google
285
317
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
286
318
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
287
319
  # @raise [Google::Apis::AuthorizationError] Authorization is required
288
- def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
320
+ def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
289
321
  command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
290
322
  command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
291
323
  command.request_object = build_trigger_object
@@ -293,8 +325,8 @@ module Google
293
325
  command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
294
326
  command.params['projectId'] = project_id unless project_id.nil?
295
327
  command.params['triggerId'] = trigger_id unless trigger_id.nil?
296
- command.query['quotaUser'] = quota_user unless quota_user.nil?
297
328
  command.query['fields'] = fields unless fields.nil?
329
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
298
330
  execute_or_queue_command(command, &block)
299
331
  end
300
332
 
@@ -303,11 +335,11 @@ module Google
303
335
  # @param [String] project_id
304
336
  # ID of the project for which to configure automatic builds.
305
337
  # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
338
+ # @param [String] fields
339
+ # Selector specifying which fields to include in a partial response.
306
340
  # @param [String] quota_user
307
341
  # Available to use for quota purposes for server-side applications. Can be any
308
342
  # arbitrary string assigned to a user, but should not exceed 40 characters.
309
- # @param [String] fields
310
- # Selector specifying which fields to include in a partial response.
311
343
  # @param [Google::Apis::RequestOptions] options
312
344
  # Request-specific options
313
345
  #
@@ -320,142 +352,112 @@ module Google
320
352
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
321
353
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
322
354
  # @raise [Google::Apis::AuthorizationError] Authorization is required
323
- def create_project_trigger(project_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
355
+ def create_project_trigger(project_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
324
356
  command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
325
357
  command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
326
358
  command.request_object = build_trigger_object
327
359
  command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
328
360
  command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
329
361
  command.params['projectId'] = project_id unless project_id.nil?
330
- command.query['quotaUser'] = quota_user unless quota_user.nil?
331
362
  command.query['fields'] = fields unless fields.nil?
363
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
332
364
  execute_or_queue_command(command, &block)
333
365
  end
334
366
 
335
- # Cancels a requested build in progress.
336
- # @param [String] project_id
337
- # ID of the project.
338
- # @param [String] id
339
- # ID of the build.
340
- # @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
341
- # @param [String] quota_user
342
- # Available to use for quota purposes for server-side applications. Can be any
343
- # arbitrary string assigned to a user, but should not exceed 40 characters.
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
344
380
  # @param [String] fields
345
381
  # Selector specifying which fields to include in a partial response.
346
- # @param [Google::Apis::RequestOptions] options
347
- # Request-specific options
348
- #
349
- # @yield [result, err] Result & error if block supplied
350
- # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
351
- # @yieldparam err [StandardError] error object if request failed
352
- #
353
- # @return [Google::Apis::CloudbuildV1::Build]
354
- #
355
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
356
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
357
- # @raise [Google::Apis::AuthorizationError] Authorization is required
358
- def cancel_build(project_id, id, cancel_build_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
359
- command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
360
- command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
361
- command.request_object = cancel_build_request_object
362
- command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
363
- command.response_class = Google::Apis::CloudbuildV1::Build
364
- command.params['projectId'] = project_id unless project_id.nil?
365
- command.params['id'] = id unless id.nil?
366
- command.query['quotaUser'] = quota_user unless quota_user.nil?
367
- command.query['fields'] = fields unless fields.nil?
368
- execute_or_queue_command(command, &block)
369
- end
370
-
371
- # Returns information about a previously requested build.
372
- # The Build that is returned includes its status (e.g., success or failure,
373
- # or in-progress), and timing information.
374
- # @param [String] project_id
375
- # ID of the project.
376
- # @param [String] id
377
- # ID of the build.
378
382
  # @param [String] quota_user
379
383
  # Available to use for quota purposes for server-side applications. Can be any
380
384
  # arbitrary string assigned to a user, but should not exceed 40 characters.
381
- # @param [String] fields
382
- # Selector specifying which fields to include in a partial response.
383
385
  # @param [Google::Apis::RequestOptions] options
384
386
  # Request-specific options
385
387
  #
386
388
  # @yield [result, err] Result & error if block supplied
387
- # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
389
+ # @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
388
390
  # @yieldparam err [StandardError] error object if request failed
389
391
  #
390
- # @return [Google::Apis::CloudbuildV1::Build]
392
+ # @return [Google::Apis::CloudbuildV1::Empty]
391
393
  #
392
394
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
393
395
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
394
396
  # @raise [Google::Apis::AuthorizationError] Authorization is required
395
- def get_project_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block)
396
- command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
397
- command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
398
- command.response_class = Google::Apis::CloudbuildV1::Build
399
- command.params['projectId'] = project_id unless project_id.nil?
400
- command.params['id'] = id unless id.nil?
401
- command.query['quotaUser'] = quota_user unless quota_user.nil?
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?
402
404
  command.query['fields'] = fields unless fields.nil?
405
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
403
406
  execute_or_queue_command(command, &block)
404
407
  end
405
408
 
406
- # Lists previously requested builds.
407
- # Previously requested builds may still be in-progress, or may have finished
408
- # successfully or unsuccessfully.
409
- # @param [String] project_id
410
- # ID of the project.
411
- # @param [String] filter
412
- # The raw filter text to constrain the results.
409
+ # Lists operations that match the specified filter in the request. If the
410
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
411
+ # NOTE: the `name` binding below allows API services to override the binding
412
+ # to use different resource name schemes, such as `users/*/operations`.
413
+ # @param [String] name
414
+ # The name of the operation collection.
413
415
  # @param [String] page_token
414
- # Token to provide to skip to a particular spot in the list.
416
+ # The standard list page token.
415
417
  # @param [Fixnum] page_size
416
- # Number of results to return in the list.
418
+ # The standard list page size.
419
+ # @param [String] filter
420
+ # The standard list filter.
421
+ # @param [String] fields
422
+ # Selector specifying which fields to include in a partial response.
417
423
  # @param [String] quota_user
418
424
  # Available to use for quota purposes for server-side applications. Can be any
419
425
  # arbitrary string assigned to a user, but should not exceed 40 characters.
420
- # @param [String] fields
421
- # Selector specifying which fields to include in a partial response.
422
426
  # @param [Google::Apis::RequestOptions] options
423
427
  # Request-specific options
424
428
  #
425
429
  # @yield [result, err] Result & error if block supplied
426
- # @yieldparam result [Google::Apis::CloudbuildV1::ListBuildsResponse] parsed result object
430
+ # @yieldparam result [Google::Apis::CloudbuildV1::ListOperationsResponse] parsed result object
427
431
  # @yieldparam err [StandardError] error object if request failed
428
432
  #
429
- # @return [Google::Apis::CloudbuildV1::ListBuildsResponse]
433
+ # @return [Google::Apis::CloudbuildV1::ListOperationsResponse]
430
434
  #
431
435
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
432
436
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
433
437
  # @raise [Google::Apis::AuthorizationError] Authorization is required
434
- def list_project_builds(project_id, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
435
- command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
436
- command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
437
- command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
438
- command.params['projectId'] = project_id unless project_id.nil?
439
- command.query['filter'] = filter unless filter.nil?
438
+ def list_operations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
439
+ command = make_simple_command(:get, 'v1/{+name}', options)
440
+ command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
441
+ command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
442
+ command.params['name'] = name unless name.nil?
440
443
  command.query['pageToken'] = page_token unless page_token.nil?
441
444
  command.query['pageSize'] = page_size unless page_size.nil?
442
- command.query['quotaUser'] = quota_user unless quota_user.nil?
445
+ command.query['filter'] = filter unless filter.nil?
443
446
  command.query['fields'] = fields unless fields.nil?
447
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
444
448
  execute_or_queue_command(command, &block)
445
449
  end
446
450
 
447
- # Starts a build with the specified configuration.
448
- # The long-running Operation returned by this method will include the ID of
449
- # the build, which can be passed to GetBuild to determine its status (e.g.,
450
- # success or failure).
451
- # @param [String] project_id
452
- # ID of the project.
453
- # @param [Google::Apis::CloudbuildV1::Build] build_object
451
+ # Gets the latest state of a long-running operation. Clients can use this
452
+ # method to poll the operation result at intervals as recommended by the API
453
+ # service.
454
+ # @param [String] name
455
+ # The name of the operation resource.
456
+ # @param [String] fields
457
+ # Selector specifying which fields to include in a partial response.
454
458
  # @param [String] quota_user
455
459
  # Available to use for quota purposes for server-side applications. Can be any
456
460
  # arbitrary string assigned to a user, but should not exceed 40 characters.
457
- # @param [String] fields
458
- # Selector specifying which fields to include in a partial response.
459
461
  # @param [Google::Apis::RequestOptions] options
460
462
  # Request-specific options
461
463
  #
@@ -468,23 +470,21 @@ module Google
468
470
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
469
471
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
470
472
  # @raise [Google::Apis::AuthorizationError] Authorization is required
471
- def create_project_build(project_id, build_object = nil, quota_user: nil, fields: nil, options: nil, &block)
472
- command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
473
- command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
474
- command.request_object = build_object
473
+ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
474
+ command = make_simple_command(:get, 'v1/{+name}', options)
475
475
  command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
476
476
  command.response_class = Google::Apis::CloudbuildV1::Operation
477
- command.params['projectId'] = project_id unless project_id.nil?
478
- command.query['quotaUser'] = quota_user unless quota_user.nil?
477
+ command.params['name'] = name unless name.nil?
479
478
  command.query['fields'] = fields unless fields.nil?
479
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
480
480
  execute_or_queue_command(command, &block)
481
481
  end
482
482
 
483
483
  protected
484
484
 
485
485
  def apply_command_defaults(command)
486
- command.query['quotaUser'] = quota_user unless quota_user.nil?
487
486
  command.query['key'] = key unless key.nil?
487
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
488
488
  end
489
489
  end
490
490
  end