google-api-client 0.9.23 → 0.9.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/api_names.yaml +2556 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +0 -46
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +578 -578
- data/generated/google/apis/cloudbuild_v1/representations.rb +113 -113
- data/generated/google/apis/cloudbuild_v1/service.rb +182 -182
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +837 -837
- data/generated/google/apis/logging_v2beta1/representations.rb +165 -165
- data/generated/google/apis/logging_v2beta1/service.rb +208 -208
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/sheets_v4.rb +3 -3
- data/generated/google/apis/sheets_v4/classes.rb +4203 -4203
- data/generated/google/apis/sheets_v4/representations.rb +835 -835
- data/generated/google/apis/sheets_v4/service.rb +195 -195
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -2
@@ -22,13 +22,13 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CloudbuildV1
|
24
24
|
|
25
|
-
class
|
25
|
+
class ListBuildsResponse
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
27
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
-
class
|
31
|
+
class ListOperationsResponse
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
33
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -40,31 +40,31 @@ module Google
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
-
class
|
43
|
+
class BuildOptions
|
44
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
45
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
-
class
|
49
|
+
class StorageSource
|
50
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
51
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
-
class
|
55
|
+
class Results
|
56
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
57
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
-
class
|
61
|
+
class BuildOperationMetadata
|
62
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
63
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
-
class
|
67
|
+
class SourceProvenance
|
68
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
69
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -76,37 +76,37 @@ module Google
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
77
77
|
end
|
78
78
|
|
79
|
-
class
|
79
|
+
class Operation
|
80
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
81
|
|
82
82
|
include Google::Apis::Core::JsonObjectSupport
|
83
83
|
end
|
84
84
|
|
85
|
-
class
|
85
|
+
class ListBuildTriggersResponse
|
86
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
87
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
89
89
|
end
|
90
90
|
|
91
|
-
class
|
91
|
+
class BuiltImage
|
92
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
93
|
|
94
94
|
include Google::Apis::Core::JsonObjectSupport
|
95
95
|
end
|
96
96
|
|
97
|
-
class
|
97
|
+
class BuildStep
|
98
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
99
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
-
class
|
103
|
+
class RepoSource
|
104
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
105
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
107
107
|
end
|
108
108
|
|
109
|
-
class
|
109
|
+
class HashProp
|
110
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
111
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -118,49 +118,50 @@ module Google
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
119
119
|
end
|
120
120
|
|
121
|
-
class
|
121
|
+
class Status
|
122
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
123
|
|
124
124
|
include Google::Apis::Core::JsonObjectSupport
|
125
125
|
end
|
126
126
|
|
127
|
-
class
|
127
|
+
class Empty
|
128
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
129
|
|
130
130
|
include Google::Apis::Core::JsonObjectSupport
|
131
131
|
end
|
132
132
|
|
133
|
-
class
|
133
|
+
class BuildTrigger
|
134
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
135
|
|
136
136
|
include Google::Apis::Core::JsonObjectSupport
|
137
137
|
end
|
138
138
|
|
139
|
-
class
|
139
|
+
class Build
|
140
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
141
|
|
142
142
|
include Google::Apis::Core::JsonObjectSupport
|
143
143
|
end
|
144
144
|
|
145
|
-
class
|
145
|
+
class CancelBuildRequest
|
146
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
147
|
|
148
148
|
include Google::Apis::Core::JsonObjectSupport
|
149
149
|
end
|
150
150
|
|
151
|
-
class
|
151
|
+
class ListBuildsResponse
|
152
152
|
# @private
|
153
153
|
class Representation < Google::Apis::Core::JsonRepresentation
|
154
|
-
property :
|
155
|
-
collection :
|
156
|
-
|
154
|
+
property :next_page_token, as: 'nextPageToken'
|
155
|
+
collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
156
|
+
|
157
157
|
end
|
158
158
|
end
|
159
159
|
|
160
|
-
class
|
160
|
+
class ListOperationsResponse
|
161
161
|
# @private
|
162
162
|
class Representation < Google::Apis::Core::JsonRepresentation
|
163
|
-
property :
|
163
|
+
property :next_page_token, as: 'nextPageToken'
|
164
|
+
collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1::Operation, decorator: Google::Apis::CloudbuildV1::Operation::Representation
|
164
165
|
|
165
166
|
end
|
166
167
|
end
|
@@ -175,58 +176,49 @@ module Google
|
|
175
176
|
end
|
176
177
|
end
|
177
178
|
|
178
|
-
class
|
179
|
+
class BuildOptions
|
179
180
|
# @private
|
180
181
|
class Representation < Google::Apis::Core::JsonRepresentation
|
181
|
-
|
182
|
-
|
183
|
-
property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
184
|
-
|
185
|
-
hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
|
186
|
-
|
182
|
+
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
183
|
+
property :requested_verify_option, as: 'requestedVerifyOption'
|
187
184
|
end
|
188
185
|
end
|
189
186
|
|
190
|
-
class
|
187
|
+
class StorageSource
|
191
188
|
# @private
|
192
189
|
class Representation < Google::Apis::Core::JsonRepresentation
|
193
|
-
property :
|
194
|
-
|
195
|
-
property :
|
196
|
-
hash :metadata, as: 'metadata'
|
197
|
-
hash :response, as: 'response'
|
198
|
-
property :name, as: 'name'
|
190
|
+
property :bucket, as: 'bucket'
|
191
|
+
property :object, as: 'object'
|
192
|
+
property :generation, as: 'generation'
|
199
193
|
end
|
200
194
|
end
|
201
195
|
|
202
|
-
class
|
196
|
+
class Results
|
203
197
|
# @private
|
204
198
|
class Representation < Google::Apis::Core::JsonRepresentation
|
205
|
-
|
206
|
-
property :description, as: 'description'
|
207
|
-
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
208
|
-
|
209
|
-
property :disabled, as: 'disabled'
|
210
|
-
property :create_time, as: 'createTime'
|
211
|
-
property :filename, as: 'filename'
|
212
|
-
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
199
|
+
collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
|
213
200
|
|
201
|
+
collection :build_step_images, as: 'buildStepImages'
|
214
202
|
end
|
215
203
|
end
|
216
204
|
|
217
|
-
class
|
205
|
+
class BuildOperationMetadata
|
218
206
|
# @private
|
219
207
|
class Representation < Google::Apis::Core::JsonRepresentation
|
220
|
-
property :
|
221
|
-
|
208
|
+
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
209
|
+
|
222
210
|
end
|
223
211
|
end
|
224
212
|
|
225
|
-
class
|
213
|
+
class SourceProvenance
|
226
214
|
# @private
|
227
215
|
class Representation < Google::Apis::Core::JsonRepresentation
|
228
|
-
|
229
|
-
|
216
|
+
hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
|
217
|
+
|
218
|
+
property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
219
|
+
|
220
|
+
property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
221
|
+
|
230
222
|
end
|
231
223
|
end
|
232
224
|
|
@@ -236,72 +228,63 @@ module Google
|
|
236
228
|
end
|
237
229
|
end
|
238
230
|
|
239
|
-
class
|
231
|
+
class Operation
|
240
232
|
# @private
|
241
233
|
class Representation < Google::Apis::Core::JsonRepresentation
|
242
|
-
property :
|
243
|
-
|
244
|
-
property :
|
234
|
+
property :done, as: 'done'
|
235
|
+
hash :response, as: 'response'
|
236
|
+
property :name, as: 'name'
|
237
|
+
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
238
|
+
|
239
|
+
hash :metadata, as: 'metadata'
|
245
240
|
end
|
246
241
|
end
|
247
242
|
|
248
|
-
class
|
243
|
+
class ListBuildTriggersResponse
|
249
244
|
# @private
|
250
245
|
class Representation < Google::Apis::Core::JsonRepresentation
|
251
|
-
collection :
|
246
|
+
collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
252
247
|
|
253
|
-
collection :build_step_images, as: 'buildStepImages'
|
254
248
|
end
|
255
249
|
end
|
256
250
|
|
257
|
-
class
|
251
|
+
class BuiltImage
|
258
252
|
# @private
|
259
253
|
class Representation < Google::Apis::Core::JsonRepresentation
|
260
|
-
property :
|
261
|
-
property :
|
262
|
-
|
263
|
-
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
|
264
|
-
|
265
|
-
property :status, as: 'status'
|
266
|
-
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
|
267
|
-
|
268
|
-
property :finish_time, as: 'finishTime'
|
269
|
-
property :timeout, as: 'timeout'
|
270
|
-
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
|
271
|
-
|
272
|
-
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
|
273
|
-
|
274
|
-
property :create_time, as: 'createTime'
|
275
|
-
property :log_url, as: 'logUrl'
|
276
|
-
property :status_detail, as: 'statusDetail'
|
277
|
-
collection :images, as: 'images'
|
278
|
-
property :start_time, as: 'startTime'
|
279
|
-
property :build_trigger_id, as: 'buildTriggerId'
|
280
|
-
property :logs_bucket, as: 'logsBucket'
|
281
|
-
property :project_id, as: 'projectId'
|
254
|
+
property :name, as: 'name'
|
255
|
+
property :digest, as: 'digest'
|
282
256
|
end
|
283
257
|
end
|
284
258
|
|
285
|
-
class
|
259
|
+
class BuildStep
|
286
260
|
# @private
|
287
261
|
class Representation < Google::Apis::Core::JsonRepresentation
|
288
|
-
|
289
|
-
|
262
|
+
property :name, as: 'name'
|
263
|
+
property :entrypoint, as: 'entrypoint'
|
264
|
+
property :id, as: 'id'
|
265
|
+
property :dir, as: 'dir'
|
266
|
+
collection :wait_for, as: 'waitFor'
|
267
|
+
collection :env, as: 'env'
|
268
|
+
collection :args, as: 'args'
|
290
269
|
end
|
291
270
|
end
|
292
271
|
|
293
|
-
class
|
272
|
+
class RepoSource
|
294
273
|
# @private
|
295
274
|
class Representation < Google::Apis::Core::JsonRepresentation
|
275
|
+
property :tag_name, as: 'tagName'
|
276
|
+
property :commit_sha, as: 'commitSha'
|
277
|
+
property :project_id, as: 'projectId'
|
278
|
+
property :repo_name, as: 'repoName'
|
279
|
+
property :branch_name, as: 'branchName'
|
296
280
|
end
|
297
281
|
end
|
298
282
|
|
299
|
-
class
|
283
|
+
class HashProp
|
300
284
|
# @private
|
301
285
|
class Representation < Google::Apis::Core::JsonRepresentation
|
302
|
-
property :
|
303
|
-
|
304
|
-
|
286
|
+
property :type, as: 'type'
|
287
|
+
property :value, :base64 => true, as: 'value'
|
305
288
|
end
|
306
289
|
end
|
307
290
|
|
@@ -313,50 +296,67 @@ module Google
|
|
313
296
|
end
|
314
297
|
end
|
315
298
|
|
316
|
-
class
|
299
|
+
class Status
|
317
300
|
# @private
|
318
301
|
class Representation < Google::Apis::Core::JsonRepresentation
|
319
|
-
property :
|
320
|
-
|
321
|
-
property :
|
322
|
-
property :branch_name, as: 'branchName'
|
323
|
-
property :commit_sha, as: 'commitSha'
|
302
|
+
property :message, as: 'message'
|
303
|
+
collection :details, as: 'details'
|
304
|
+
property :code, as: 'code'
|
324
305
|
end
|
325
306
|
end
|
326
307
|
|
327
|
-
class
|
308
|
+
class Empty
|
328
309
|
# @private
|
329
310
|
class Representation < Google::Apis::Core::JsonRepresentation
|
330
|
-
property :id, as: 'id'
|
331
|
-
collection :env, as: 'env'
|
332
|
-
collection :wait_for, as: 'waitFor'
|
333
|
-
collection :args, as: 'args'
|
334
|
-
property :entrypoint, as: 'entrypoint'
|
335
|
-
property :name, as: 'name'
|
336
|
-
property :dir, as: 'dir'
|
337
311
|
end
|
338
312
|
end
|
339
313
|
|
340
|
-
class
|
314
|
+
class BuildTrigger
|
341
315
|
# @private
|
342
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'
|
343
326
|
end
|
344
327
|
end
|
345
328
|
|
346
|
-
class
|
329
|
+
class Build
|
347
330
|
# @private
|
348
331
|
class Representation < Google::Apis::Core::JsonRepresentation
|
349
|
-
|
350
|
-
property :
|
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'
|
351
354
|
end
|
352
355
|
end
|
353
356
|
|
354
|
-
class
|
357
|
+
class CancelBuildRequest
|
355
358
|
# @private
|
356
359
|
class Representation < Google::Apis::Core::JsonRepresentation
|
357
|
-
property :next_page_token, as: 'nextPageToken'
|
358
|
-
collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
359
|
-
|
360
360
|
end
|
361
361
|
end
|
362
362
|
end
|
@@ -46,151 +46,164 @@ module Google
|
|
46
46
|
super('https://cloudbuild.googleapis.com/', '')
|
47
47
|
end
|
48
48
|
|
49
|
-
#
|
50
|
-
# This API is experimental.
|
49
|
+
# Cancels a requested build in progress.
|
51
50
|
# @param [String] project_id
|
52
|
-
# ID of the project
|
53
|
-
# @param [
|
51
|
+
# ID of the project.
|
52
|
+
# @param [String] id
|
53
|
+
# ID of the build.
|
54
|
+
# @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
|
55
|
+
# @param [String] fields
|
56
|
+
# Selector specifying which fields to include in a partial response.
|
54
57
|
# @param [String] quota_user
|
55
58
|
# Available to use for quota purposes for server-side applications. Can be any
|
56
59
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
57
|
-
# @param [String] fields
|
58
|
-
# Selector specifying which fields to include in a partial response.
|
59
60
|
# @param [Google::Apis::RequestOptions] options
|
60
61
|
# Request-specific options
|
61
62
|
#
|
62
63
|
# @yield [result, err] Result & error if block supplied
|
63
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::
|
64
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
64
65
|
# @yieldparam err [StandardError] error object if request failed
|
65
66
|
#
|
66
|
-
# @return [Google::Apis::CloudbuildV1::
|
67
|
+
# @return [Google::Apis::CloudbuildV1::Build]
|
67
68
|
#
|
68
69
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
69
70
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
70
71
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
71
|
-
def
|
72
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}/
|
73
|
-
command.request_representation = Google::Apis::CloudbuildV1::
|
74
|
-
command.request_object =
|
75
|
-
command.response_representation = Google::Apis::CloudbuildV1::
|
76
|
-
command.response_class = Google::Apis::CloudbuildV1::
|
72
|
+
def cancel_build(project_id, id, cancel_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
73
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
|
74
|
+
command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
|
75
|
+
command.request_object = cancel_build_request_object
|
76
|
+
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
77
|
+
command.response_class = Google::Apis::CloudbuildV1::Build
|
77
78
|
command.params['projectId'] = project_id unless project_id.nil?
|
78
|
-
command.
|
79
|
+
command.params['id'] = id unless id.nil?
|
79
80
|
command.query['fields'] = fields unless fields.nil?
|
81
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
80
82
|
execute_or_queue_command(command, &block)
|
81
83
|
end
|
82
84
|
|
83
|
-
#
|
84
|
-
#
|
85
|
+
# Returns information about a previously requested build.
|
86
|
+
# The Build that is returned includes its status (e.g., success or failure,
|
87
|
+
# or in-progress), and timing information.
|
85
88
|
# @param [String] project_id
|
86
|
-
# ID of the project
|
87
|
-
# @param [String]
|
88
|
-
# ID of the
|
89
|
+
# ID of the project.
|
90
|
+
# @param [String] id
|
91
|
+
# ID of the build.
|
92
|
+
# @param [String] fields
|
93
|
+
# Selector specifying which fields to include in a partial response.
|
89
94
|
# @param [String] quota_user
|
90
95
|
# Available to use for quota purposes for server-side applications. Can be any
|
91
96
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
92
|
-
# @param [String] fields
|
93
|
-
# Selector specifying which fields to include in a partial response.
|
94
97
|
# @param [Google::Apis::RequestOptions] options
|
95
98
|
# Request-specific options
|
96
99
|
#
|
97
100
|
# @yield [result, err] Result & error if block supplied
|
98
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::
|
101
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
99
102
|
# @yieldparam err [StandardError] error object if request failed
|
100
103
|
#
|
101
|
-
# @return [Google::Apis::CloudbuildV1::
|
104
|
+
# @return [Google::Apis::CloudbuildV1::Build]
|
102
105
|
#
|
103
106
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
104
107
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
105
108
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
106
|
-
def
|
107
|
-
command = make_simple_command(:get, 'v1/projects/{projectId}/
|
108
|
-
command.response_representation = Google::Apis::CloudbuildV1::
|
109
|
-
command.response_class = Google::Apis::CloudbuildV1::
|
109
|
+
def get_project_build(project_id, id, fields: nil, quota_user: nil, options: nil, &block)
|
110
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
|
111
|
+
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
112
|
+
command.response_class = Google::Apis::CloudbuildV1::Build
|
110
113
|
command.params['projectId'] = project_id unless project_id.nil?
|
111
|
-
command.params['
|
112
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
114
|
+
command.params['id'] = id unless id.nil?
|
113
115
|
command.query['fields'] = fields unless fields.nil?
|
116
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
114
117
|
execute_or_queue_command(command, &block)
|
115
118
|
end
|
116
119
|
|
117
|
-
# Lists
|
118
|
-
#
|
120
|
+
# Lists previously requested builds.
|
121
|
+
# Previously requested builds may still be in-progress, or may have finished
|
122
|
+
# successfully or unsuccessfully.
|
119
123
|
# @param [String] project_id
|
120
|
-
# ID of the project
|
124
|
+
# ID of the project.
|
125
|
+
# @param [String] page_token
|
126
|
+
# Token to provide to skip to a particular spot in the list.
|
127
|
+
# @param [Fixnum] page_size
|
128
|
+
# Number of results to return in the list.
|
129
|
+
# @param [String] filter
|
130
|
+
# The raw filter text to constrain the results.
|
131
|
+
# @param [String] fields
|
132
|
+
# Selector specifying which fields to include in a partial response.
|
121
133
|
# @param [String] quota_user
|
122
134
|
# Available to use for quota purposes for server-side applications. Can be any
|
123
135
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
124
|
-
# @param [String] fields
|
125
|
-
# Selector specifying which fields to include in a partial response.
|
126
136
|
# @param [Google::Apis::RequestOptions] options
|
127
137
|
# Request-specific options
|
128
138
|
#
|
129
139
|
# @yield [result, err] Result & error if block supplied
|
130
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::
|
140
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildsResponse] parsed result object
|
131
141
|
# @yieldparam err [StandardError] error object if request failed
|
132
142
|
#
|
133
|
-
# @return [Google::Apis::CloudbuildV1::
|
143
|
+
# @return [Google::Apis::CloudbuildV1::ListBuildsResponse]
|
134
144
|
#
|
135
145
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
136
146
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
137
147
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
138
|
-
def
|
139
|
-
command = make_simple_command(:get, 'v1/projects/{projectId}/
|
140
|
-
command.response_representation = Google::Apis::CloudbuildV1::
|
141
|
-
command.response_class = Google::Apis::CloudbuildV1::
|
148
|
+
def list_project_builds(project_id, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
149
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
|
150
|
+
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
|
151
|
+
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
|
142
152
|
command.params['projectId'] = project_id unless project_id.nil?
|
143
|
-
command.query['
|
153
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
154
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
155
|
+
command.query['filter'] = filter unless filter.nil?
|
144
156
|
command.query['fields'] = fields unless fields.nil?
|
157
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
145
158
|
execute_or_queue_command(command, &block)
|
146
159
|
end
|
147
160
|
|
148
|
-
#
|
149
|
-
#
|
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).
|
150
165
|
# @param [String] project_id
|
151
|
-
# ID of the project
|
152
|
-
# @param [
|
153
|
-
#
|
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.
|
154
170
|
# @param [String] quota_user
|
155
171
|
# Available to use for quota purposes for server-side applications. Can be any
|
156
172
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
157
|
-
# @param [String] fields
|
158
|
-
# Selector specifying which fields to include in a partial response.
|
159
173
|
# @param [Google::Apis::RequestOptions] options
|
160
174
|
# Request-specific options
|
161
175
|
#
|
162
176
|
# @yield [result, err] Result & error if block supplied
|
163
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::
|
177
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
164
178
|
# @yieldparam err [StandardError] error object if request failed
|
165
179
|
#
|
166
|
-
# @return [Google::Apis::CloudbuildV1::
|
180
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
167
181
|
#
|
168
182
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
169
183
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
170
184
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
171
|
-
def
|
172
|
-
command = make_simple_command(:
|
173
|
-
command.
|
174
|
-
command.
|
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
|
175
191
|
command.params['projectId'] = project_id unless project_id.nil?
|
176
|
-
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
177
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
178
192
|
command.query['fields'] = fields unless fields.nil?
|
193
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
179
194
|
execute_or_queue_command(command, &block)
|
180
195
|
end
|
181
196
|
|
182
|
-
#
|
197
|
+
# Creates a new BuildTrigger.
|
183
198
|
# This API is experimental.
|
184
199
|
# @param [String] project_id
|
185
|
-
# ID of the project
|
186
|
-
# @param [String] trigger_id
|
187
|
-
# ID of the BuildTrigger to update.
|
200
|
+
# ID of the project for which to configure automatic builds.
|
188
201
|
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
202
|
+
# @param [String] fields
|
203
|
+
# Selector specifying which fields to include in a partial response.
|
189
204
|
# @param [String] quota_user
|
190
205
|
# Available to use for quota purposes for server-side applications. Can be any
|
191
206
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
192
|
-
# @param [String] fields
|
193
|
-
# Selector specifying which fields to include in a partial response.
|
194
207
|
# @param [Google::Apis::RequestOptions] options
|
195
208
|
# Request-specific options
|
196
209
|
#
|
@@ -203,196 +216,193 @@ module Google
|
|
203
216
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
204
217
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
205
218
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
206
|
-
def
|
207
|
-
command = make_simple_command(:
|
219
|
+
def create_project_trigger(project_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
220
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
|
208
221
|
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
209
222
|
command.request_object = build_trigger_object
|
210
223
|
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
211
224
|
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
212
225
|
command.params['projectId'] = project_id unless project_id.nil?
|
213
|
-
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
214
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
215
226
|
command.query['fields'] = fields unless fields.nil?
|
227
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
216
228
|
execute_or_queue_command(command, &block)
|
217
229
|
end
|
218
230
|
|
219
|
-
#
|
220
|
-
#
|
221
|
-
# the build, which can be passed to GetBuild to determine its status (e.g.,
|
222
|
-
# success or failure).
|
231
|
+
# Deletes an BuildTrigger by its project ID and trigger ID.
|
232
|
+
# This API is experimental.
|
223
233
|
# @param [String] project_id
|
224
|
-
# ID of the project.
|
225
|
-
# @param [
|
234
|
+
# ID of the project that owns the trigger.
|
235
|
+
# @param [String] trigger_id
|
236
|
+
# ID of the BuildTrigger to delete.
|
237
|
+
# @param [String] fields
|
238
|
+
# Selector specifying which fields to include in a partial response.
|
226
239
|
# @param [String] quota_user
|
227
240
|
# Available to use for quota purposes for server-side applications. Can be any
|
228
241
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
229
|
-
# @param [String] fields
|
230
|
-
# Selector specifying which fields to include in a partial response.
|
231
242
|
# @param [Google::Apis::RequestOptions] options
|
232
243
|
# Request-specific options
|
233
244
|
#
|
234
245
|
# @yield [result, err] Result & error if block supplied
|
235
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::
|
246
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
|
236
247
|
# @yieldparam err [StandardError] error object if request failed
|
237
248
|
#
|
238
|
-
# @return [Google::Apis::CloudbuildV1::
|
249
|
+
# @return [Google::Apis::CloudbuildV1::Empty]
|
239
250
|
#
|
240
251
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
241
252
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
242
253
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
243
|
-
def
|
244
|
-
command = make_simple_command(:
|
245
|
-
command.
|
246
|
-
command.
|
247
|
-
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
248
|
-
command.response_class = Google::Apis::CloudbuildV1::Operation
|
254
|
+
def delete_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
|
255
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
256
|
+
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
257
|
+
command.response_class = Google::Apis::CloudbuildV1::Empty
|
249
258
|
command.params['projectId'] = project_id unless project_id.nil?
|
250
|
-
command.
|
259
|
+
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
251
260
|
command.query['fields'] = fields unless fields.nil?
|
261
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
252
262
|
execute_or_queue_command(command, &block)
|
253
263
|
end
|
254
264
|
|
255
|
-
#
|
256
|
-
#
|
257
|
-
# or in-progress), and timing information.
|
265
|
+
# Gets information about a BuildTrigger.
|
266
|
+
# This API is experimental.
|
258
267
|
# @param [String] project_id
|
259
|
-
# ID of the project.
|
260
|
-
# @param [String]
|
261
|
-
# ID of the
|
268
|
+
# ID of the project that owns the trigger.
|
269
|
+
# @param [String] trigger_id
|
270
|
+
# ID of the BuildTrigger to get.
|
271
|
+
# @param [String] fields
|
272
|
+
# Selector specifying which fields to include in a partial response.
|
262
273
|
# @param [String] quota_user
|
263
274
|
# Available to use for quota purposes for server-side applications. Can be any
|
264
275
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
265
|
-
# @param [String] fields
|
266
|
-
# Selector specifying which fields to include in a partial response.
|
267
276
|
# @param [Google::Apis::RequestOptions] options
|
268
277
|
# Request-specific options
|
269
278
|
#
|
270
279
|
# @yield [result, err] Result & error if block supplied
|
271
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::
|
280
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
272
281
|
# @yieldparam err [StandardError] error object if request failed
|
273
282
|
#
|
274
|
-
# @return [Google::Apis::CloudbuildV1::
|
283
|
+
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
275
284
|
#
|
276
285
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
277
286
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
278
287
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
279
|
-
def
|
280
|
-
command = make_simple_command(:get, 'v1/projects/{projectId}/
|
281
|
-
command.response_representation = Google::Apis::CloudbuildV1::
|
282
|
-
command.response_class = Google::Apis::CloudbuildV1::
|
288
|
+
def get_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
|
289
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
290
|
+
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
291
|
+
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
283
292
|
command.params['projectId'] = project_id unless project_id.nil?
|
284
|
-
command.params['
|
285
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
293
|
+
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
286
294
|
command.query['fields'] = fields unless fields.nil?
|
295
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
287
296
|
execute_or_queue_command(command, &block)
|
288
297
|
end
|
289
298
|
|
290
|
-
# Lists
|
291
|
-
#
|
292
|
-
# successfully or unsuccessfully.
|
299
|
+
# Lists existing BuildTrigger.
|
300
|
+
# This API is experimental.
|
293
301
|
# @param [String] project_id
|
294
|
-
# ID of the project.
|
295
|
-
# @param [
|
296
|
-
#
|
297
|
-
# @param [String] filter
|
298
|
-
# The raw filter text to constrain the results.
|
299
|
-
# @param [String] page_token
|
300
|
-
# Token to provide to skip to a particular spot in the list.
|
302
|
+
# ID of the project for which to list BuildTriggers.
|
303
|
+
# @param [String] fields
|
304
|
+
# Selector specifying which fields to include in a partial response.
|
301
305
|
# @param [String] quota_user
|
302
306
|
# Available to use for quota purposes for server-side applications. Can be any
|
303
307
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
304
|
-
# @param [String] fields
|
305
|
-
# Selector specifying which fields to include in a partial response.
|
306
308
|
# @param [Google::Apis::RequestOptions] options
|
307
309
|
# Request-specific options
|
308
310
|
#
|
309
311
|
# @yield [result, err] Result & error if block supplied
|
310
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::
|
312
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildTriggersResponse] parsed result object
|
311
313
|
# @yieldparam err [StandardError] error object if request failed
|
312
314
|
#
|
313
|
-
# @return [Google::Apis::CloudbuildV1::
|
315
|
+
# @return [Google::Apis::CloudbuildV1::ListBuildTriggersResponse]
|
314
316
|
#
|
315
317
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
316
318
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
317
319
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
318
|
-
def
|
319
|
-
command = make_simple_command(:get, 'v1/projects/{projectId}/
|
320
|
-
command.response_representation = Google::Apis::CloudbuildV1::
|
321
|
-
command.response_class = Google::Apis::CloudbuildV1::
|
320
|
+
def list_project_triggers(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
321
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
|
322
|
+
command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
|
323
|
+
command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
|
322
324
|
command.params['projectId'] = project_id unless project_id.nil?
|
323
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
324
|
-
command.query['filter'] = filter unless filter.nil?
|
325
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
326
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
327
325
|
command.query['fields'] = fields unless fields.nil?
|
326
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
328
327
|
execute_or_queue_command(command, &block)
|
329
328
|
end
|
330
329
|
|
331
|
-
#
|
330
|
+
# Updates an BuildTrigger by its project ID and trigger ID.
|
331
|
+
# This API is experimental.
|
332
332
|
# @param [String] project_id
|
333
|
-
# ID of the project.
|
334
|
-
# @param [String]
|
335
|
-
# ID of the
|
336
|
-
# @param [Google::Apis::CloudbuildV1::
|
333
|
+
# ID of the project that owns the trigger.
|
334
|
+
# @param [String] trigger_id
|
335
|
+
# ID of the BuildTrigger to update.
|
336
|
+
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
337
|
+
# @param [String] fields
|
338
|
+
# Selector specifying which fields to include in a partial response.
|
337
339
|
# @param [String] quota_user
|
338
340
|
# Available to use for quota purposes for server-side applications. Can be any
|
339
341
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
340
|
-
# @param [String] fields
|
341
|
-
# Selector specifying which fields to include in a partial response.
|
342
342
|
# @param [Google::Apis::RequestOptions] options
|
343
343
|
# Request-specific options
|
344
344
|
#
|
345
345
|
# @yield [result, err] Result & error if block supplied
|
346
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::
|
346
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
|
347
347
|
# @yieldparam err [StandardError] error object if request failed
|
348
348
|
#
|
349
|
-
# @return [Google::Apis::CloudbuildV1::
|
349
|
+
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
|
350
350
|
#
|
351
351
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
352
352
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
353
353
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
354
|
-
def
|
355
|
-
command = make_simple_command(:
|
356
|
-
command.request_representation = Google::Apis::CloudbuildV1::
|
357
|
-
command.request_object =
|
358
|
-
command.response_representation = Google::Apis::CloudbuildV1::
|
359
|
-
command.response_class = Google::Apis::CloudbuildV1::
|
354
|
+
def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
355
|
+
command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
356
|
+
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
357
|
+
command.request_object = build_trigger_object
|
358
|
+
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
359
|
+
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
360
360
|
command.params['projectId'] = project_id unless project_id.nil?
|
361
|
-
command.params['
|
362
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
361
|
+
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
363
362
|
command.query['fields'] = fields unless fields.nil?
|
363
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
364
364
|
execute_or_queue_command(command, &block)
|
365
365
|
end
|
366
366
|
|
367
|
-
#
|
368
|
-
#
|
369
|
-
#
|
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`.
|
370
377
|
# @param [String] name
|
371
|
-
# The name of the operation resource.
|
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.
|
372
382
|
# @param [String] quota_user
|
373
383
|
# Available to use for quota purposes for server-side applications. Can be any
|
374
384
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
375
|
-
# @param [String] fields
|
376
|
-
# Selector specifying which fields to include in a partial response.
|
377
385
|
# @param [Google::Apis::RequestOptions] options
|
378
386
|
# Request-specific options
|
379
387
|
#
|
380
388
|
# @yield [result, err] Result & error if block supplied
|
381
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::
|
389
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
|
382
390
|
# @yieldparam err [StandardError] error object if request failed
|
383
391
|
#
|
384
|
-
# @return [Google::Apis::CloudbuildV1::
|
392
|
+
# @return [Google::Apis::CloudbuildV1::Empty]
|
385
393
|
#
|
386
394
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
387
395
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
388
396
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
389
|
-
def
|
390
|
-
command = make_simple_command(:
|
391
|
-
command.
|
392
|
-
command.
|
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
|
393
403
|
command.params['name'] = name unless name.nil?
|
394
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
395
404
|
command.query['fields'] = fields unless fields.nil?
|
405
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
396
406
|
execute_or_queue_command(command, &block)
|
397
407
|
end
|
398
408
|
|
@@ -402,17 +412,17 @@ module Google
|
|
402
412
|
# to use different resource name schemes, such as `users/*/operations`.
|
403
413
|
# @param [String] name
|
404
414
|
# The name of the operation collection.
|
405
|
-
# @param [Fixnum] page_size
|
406
|
-
# The standard list page size.
|
407
415
|
# @param [String] filter
|
408
416
|
# The standard list filter.
|
409
417
|
# @param [String] page_token
|
410
418
|
# The standard list page token.
|
419
|
+
# @param [Fixnum] page_size
|
420
|
+
# The standard list page size.
|
421
|
+
# @param [String] fields
|
422
|
+
# Selector specifying which fields to include in a partial response.
|
411
423
|
# @param [String] quota_user
|
412
424
|
# Available to use for quota purposes for server-side applications. Can be any
|
413
425
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
414
|
-
# @param [String] fields
|
415
|
-
# Selector specifying which fields to include in a partial response.
|
416
426
|
# @param [Google::Apis::RequestOptions] options
|
417
427
|
# Request-specific options
|
418
428
|
#
|
@@ -425,58 +435,48 @@ module Google
|
|
425
435
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
426
436
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
427
437
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
428
|
-
def list_operations(name,
|
438
|
+
def list_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
429
439
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
430
440
|
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
|
431
441
|
command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
|
432
442
|
command.params['name'] = name unless name.nil?
|
433
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
434
443
|
command.query['filter'] = filter unless filter.nil?
|
435
444
|
command.query['pageToken'] = page_token unless page_token.nil?
|
436
|
-
command.query['
|
445
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
437
446
|
command.query['fields'] = fields unless fields.nil?
|
447
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
438
448
|
execute_or_queue_command(command, &block)
|
439
449
|
end
|
440
450
|
|
441
|
-
#
|
442
|
-
#
|
443
|
-
#
|
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
|
+
# 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.
|
451
454
|
# @param [String] name
|
452
|
-
# The name of the operation resource
|
453
|
-
# @param [
|
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
|
#
|
462
464
|
# @yield [result, err] Result & error if block supplied
|
463
|
-
# @yieldparam result [Google::Apis::CloudbuildV1::
|
465
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
464
466
|
# @yieldparam err [StandardError] error object if request failed
|
465
467
|
#
|
466
|
-
# @return [Google::Apis::CloudbuildV1::
|
468
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
467
469
|
#
|
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
|
472
|
-
command = make_simple_command(:
|
473
|
-
command.
|
474
|
-
command.
|
475
|
-
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
476
|
-
command.response_class = Google::Apis::CloudbuildV1::Empty
|
473
|
+
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
474
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
475
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
476
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
477
477
|
command.params['name'] = name unless name.nil?
|
478
|
-
command.query['quotaUser'] = quota_user unless quota_user.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
|
|