aws-sdk-codebuild 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-codebuild.rb +1 -1
- data/lib/aws-sdk-codebuild/client.rb +301 -2
- data/lib/aws-sdk-codebuild/client_api.rb +26 -0
- data/lib/aws-sdk-codebuild/types.rb +86 -5
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f13b0ef309b03fa58d89ad64c42860596d9929a3
|
4
|
+
data.tar.gz: 9866e303fd6323e8c94970b52fbc2ada8ea6c122
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93cc4ac694862a5496fdec32b35dadd077b30342752a47996dfc258be85867f92fd6c0f443cef6c0c6a2532cbd60d45d3fc4976df03dcf8149261a4f60e5c707
|
7
|
+
data.tar.gz: 334a55317bc488029fd5189248374ed3203f1051dd8dbef3cdc90952e058ab4143820205de4d3ea4d64ab8904ebd2548d1be3162415fcd5901bfa33d3ee43968
|
data/lib/aws-sdk-codebuild.rb
CHANGED
@@ -155,6 +155,39 @@ module Aws::CodeBuild
|
|
155
155
|
|
156
156
|
# @!group API Operations
|
157
157
|
|
158
|
+
# Deletes one or more builds.
|
159
|
+
#
|
160
|
+
# @option params [required, Array<String>] :ids
|
161
|
+
# The IDs of the builds to delete.
|
162
|
+
#
|
163
|
+
# @return [Types::BatchDeleteBuildsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
164
|
+
#
|
165
|
+
# * {Types::BatchDeleteBuildsOutput#builds_deleted #builds_deleted} => Array<String>
|
166
|
+
# * {Types::BatchDeleteBuildsOutput#builds_not_deleted #builds_not_deleted} => Array<Types::BuildNotDeleted>
|
167
|
+
#
|
168
|
+
# @example Request syntax with placeholder values
|
169
|
+
#
|
170
|
+
# resp = client.batch_delete_builds({
|
171
|
+
# ids: ["NonEmptyString"], # required
|
172
|
+
# })
|
173
|
+
#
|
174
|
+
# @example Response structure
|
175
|
+
#
|
176
|
+
# resp.builds_deleted #=> Array
|
177
|
+
# resp.builds_deleted[0] #=> String
|
178
|
+
# resp.builds_not_deleted #=> Array
|
179
|
+
# resp.builds_not_deleted[0].id #=> String
|
180
|
+
# resp.builds_not_deleted[0].status_code #=> String
|
181
|
+
#
|
182
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchDeleteBuilds AWS API Documentation
|
183
|
+
#
|
184
|
+
# @overload batch_delete_builds(params = {})
|
185
|
+
# @param [Hash] params ({})
|
186
|
+
def batch_delete_builds(params = {}, options = {})
|
187
|
+
req = build_request(:batch_delete_builds, params)
|
188
|
+
req.send_request(options)
|
189
|
+
end
|
190
|
+
|
158
191
|
# Gets information about builds.
|
159
192
|
#
|
160
193
|
# @option params [required, Array<String>] :ids
|
@@ -165,6 +198,259 @@ module Aws::CodeBuild
|
|
165
198
|
# * {Types::BatchGetBuildsOutput#builds #builds} => Array<Types::Build>
|
166
199
|
# * {Types::BatchGetBuildsOutput#builds_not_found #builds_not_found} => Array<String>
|
167
200
|
#
|
201
|
+
#
|
202
|
+
# @example Example: To get information about builds
|
203
|
+
#
|
204
|
+
# # The following example gets information about builds with the specified build IDs.
|
205
|
+
#
|
206
|
+
# resp = client.batch_get_builds({
|
207
|
+
# ids: [
|
208
|
+
# "codebuild-demo-project:9b0ac37f-d19e-4254-9079-f47e9a389eEX",
|
209
|
+
# "codebuild-demo-project:b79a46f7-1473-4636-a23f-da9c45c208EX",
|
210
|
+
# ],
|
211
|
+
# })
|
212
|
+
#
|
213
|
+
# resp.to_h outputs the following:
|
214
|
+
# {
|
215
|
+
# builds: [
|
216
|
+
# {
|
217
|
+
# arn: "arn:aws:codebuild:us-east-1:123456789012:build/codebuild-demo-project:9b0ac37f-d19e-4254-9079-f47e9a389eEX",
|
218
|
+
# artifacts: {
|
219
|
+
# location: "arn:aws:s3:::codebuild-123456789012-output-bucket/codebuild-demo-project",
|
220
|
+
# },
|
221
|
+
# build_complete: true,
|
222
|
+
# build_status: "SUCCEEDED",
|
223
|
+
# current_phase: "COMPLETED",
|
224
|
+
# end_time: Time.parse(1479832474.764),
|
225
|
+
# environment: {
|
226
|
+
# type: "LINUX_CONTAINER",
|
227
|
+
# compute_type: "BUILD_GENERAL1_SMALL",
|
228
|
+
# environment_variables: [
|
229
|
+
# ],
|
230
|
+
# image: "aws/codebuild/java:openjdk-8",
|
231
|
+
# privileged_mode: false,
|
232
|
+
# },
|
233
|
+
# id: "codebuild-demo-project:9b0ac37f-d19e-4254-9079-f47e9a389eEX",
|
234
|
+
# initiator: "MyDemoUser",
|
235
|
+
# logs: {
|
236
|
+
# deep_link: "https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logEvent:group=/aws/codebuild/codebuild-demo-project;stream=9b0ac37f-d19e-4254-9079-f47e9a389eEX",
|
237
|
+
# group_name: "/aws/codebuild/codebuild-demo-project",
|
238
|
+
# stream_name: "9b0ac37f-d19e-4254-9079-f47e9a389eEX",
|
239
|
+
# },
|
240
|
+
# phases: [
|
241
|
+
# {
|
242
|
+
# duration_in_seconds: 0,
|
243
|
+
# end_time: Time.parse(1479832342.23),
|
244
|
+
# phase_status: "SUCCEEDED",
|
245
|
+
# phase_type: "SUBMITTED",
|
246
|
+
# start_time: Time.parse(1479832341.854),
|
247
|
+
# },
|
248
|
+
# {
|
249
|
+
# contexts: [
|
250
|
+
# ],
|
251
|
+
# duration_in_seconds: 72,
|
252
|
+
# end_time: Time.parse(1479832415.064),
|
253
|
+
# phase_status: "SUCCEEDED",
|
254
|
+
# phase_type: "PROVISIONING",
|
255
|
+
# start_time: Time.parse(1479832342.23),
|
256
|
+
# },
|
257
|
+
# {
|
258
|
+
# contexts: [
|
259
|
+
# ],
|
260
|
+
# duration_in_seconds: 46,
|
261
|
+
# end_time: Time.parse(1479832461.261),
|
262
|
+
# phase_status: "SUCCEEDED",
|
263
|
+
# phase_type: "DOWNLOAD_SOURCE",
|
264
|
+
# start_time: Time.parse(1479832415.064),
|
265
|
+
# },
|
266
|
+
# {
|
267
|
+
# contexts: [
|
268
|
+
# ],
|
269
|
+
# duration_in_seconds: 0,
|
270
|
+
# end_time: Time.parse(1479832461.354),
|
271
|
+
# phase_status: "SUCCEEDED",
|
272
|
+
# phase_type: "INSTALL",
|
273
|
+
# start_time: Time.parse(1479832461.261),
|
274
|
+
# },
|
275
|
+
# {
|
276
|
+
# contexts: [
|
277
|
+
# ],
|
278
|
+
# duration_in_seconds: 0,
|
279
|
+
# end_time: Time.parse(1479832461.448),
|
280
|
+
# phase_status: "SUCCEEDED",
|
281
|
+
# phase_type: "PRE_BUILD",
|
282
|
+
# start_time: Time.parse(1479832461.354),
|
283
|
+
# },
|
284
|
+
# {
|
285
|
+
# contexts: [
|
286
|
+
# ],
|
287
|
+
# duration_in_seconds: 9,
|
288
|
+
# end_time: Time.parse(1479832471.115),
|
289
|
+
# phase_status: "SUCCEEDED",
|
290
|
+
# phase_type: "BUILD",
|
291
|
+
# start_time: Time.parse(1479832461.448),
|
292
|
+
# },
|
293
|
+
# {
|
294
|
+
# contexts: [
|
295
|
+
# ],
|
296
|
+
# duration_in_seconds: 0,
|
297
|
+
# end_time: Time.parse(1479832471.224),
|
298
|
+
# phase_status: "SUCCEEDED",
|
299
|
+
# phase_type: "POST_BUILD",
|
300
|
+
# start_time: Time.parse(1479832471.115),
|
301
|
+
# },
|
302
|
+
# {
|
303
|
+
# contexts: [
|
304
|
+
# ],
|
305
|
+
# duration_in_seconds: 0,
|
306
|
+
# end_time: Time.parse(1479832471.791),
|
307
|
+
# phase_status: "SUCCEEDED",
|
308
|
+
# phase_type: "UPLOAD_ARTIFACTS",
|
309
|
+
# start_time: Time.parse(1479832471.224),
|
310
|
+
# },
|
311
|
+
# {
|
312
|
+
# contexts: [
|
313
|
+
# ],
|
314
|
+
# duration_in_seconds: 2,
|
315
|
+
# end_time: Time.parse(1479832474.764),
|
316
|
+
# phase_status: "SUCCEEDED",
|
317
|
+
# phase_type: "FINALIZING",
|
318
|
+
# start_time: Time.parse(1479832471.791),
|
319
|
+
# },
|
320
|
+
# {
|
321
|
+
# phase_type: "COMPLETED",
|
322
|
+
# start_time: Time.parse(1479832474.764),
|
323
|
+
# },
|
324
|
+
# ],
|
325
|
+
# project_name: "codebuild-demo-project",
|
326
|
+
# source: {
|
327
|
+
# type: "S3",
|
328
|
+
# buildspec: "",
|
329
|
+
# location: "arn:aws:s3:::codebuild-123456789012-input-bucket/MessageUtil.zip",
|
330
|
+
# },
|
331
|
+
# start_time: Time.parse(1479832341.854),
|
332
|
+
# timeout_in_minutes: 60,
|
333
|
+
# },
|
334
|
+
# {
|
335
|
+
# arn: "arn:aws:codebuild:us-east-1:123456789012:build/codebuild-demo-project:b79a46f7-1473-4636-a23f-da9c45c208EX",
|
336
|
+
# artifacts: {
|
337
|
+
# location: "arn:aws:s3:::codebuild-123456789012-output-bucket/codebuild-demo-project",
|
338
|
+
# },
|
339
|
+
# build_complete: true,
|
340
|
+
# build_status: "SUCCEEDED",
|
341
|
+
# current_phase: "COMPLETED",
|
342
|
+
# end_time: Time.parse(1479401214.239),
|
343
|
+
# environment: {
|
344
|
+
# type: "LINUX_CONTAINER",
|
345
|
+
# compute_type: "BUILD_GENERAL1_SMALL",
|
346
|
+
# environment_variables: [
|
347
|
+
# ],
|
348
|
+
# image: "aws/codebuild/java:openjdk-8",
|
349
|
+
# privileged_mode: false,
|
350
|
+
# },
|
351
|
+
# id: "codebuild-demo-project:b79a46f7-1473-4636-a23f-da9c45c208EX",
|
352
|
+
# initiator: "MyDemoUser",
|
353
|
+
# logs: {
|
354
|
+
# deep_link: "https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logEvent:group=/aws/codebuild/codebuild-demo-project;stream=b79a46f7-1473-4636-a23f-da9c45c208EX",
|
355
|
+
# group_name: "/aws/codebuild/codebuild-demo-project",
|
356
|
+
# stream_name: "b79a46f7-1473-4636-a23f-da9c45c208EX",
|
357
|
+
# },
|
358
|
+
# phases: [
|
359
|
+
# {
|
360
|
+
# duration_in_seconds: 0,
|
361
|
+
# end_time: Time.parse(1479401082.342),
|
362
|
+
# phase_status: "SUCCEEDED",
|
363
|
+
# phase_type: "SUBMITTED",
|
364
|
+
# start_time: Time.parse(1479401081.869),
|
365
|
+
# },
|
366
|
+
# {
|
367
|
+
# contexts: [
|
368
|
+
# ],
|
369
|
+
# duration_in_seconds: 71,
|
370
|
+
# end_time: Time.parse(1479401154.129),
|
371
|
+
# phase_status: "SUCCEEDED",
|
372
|
+
# phase_type: "PROVISIONING",
|
373
|
+
# start_time: Time.parse(1479401082.342),
|
374
|
+
# },
|
375
|
+
# {
|
376
|
+
# contexts: [
|
377
|
+
# ],
|
378
|
+
# duration_in_seconds: 45,
|
379
|
+
# end_time: Time.parse(1479401199.136),
|
380
|
+
# phase_status: "SUCCEEDED",
|
381
|
+
# phase_type: "DOWNLOAD_SOURCE",
|
382
|
+
# start_time: Time.parse(1479401154.129),
|
383
|
+
# },
|
384
|
+
# {
|
385
|
+
# contexts: [
|
386
|
+
# ],
|
387
|
+
# duration_in_seconds: 0,
|
388
|
+
# end_time: Time.parse(1479401199.236),
|
389
|
+
# phase_status: "SUCCEEDED",
|
390
|
+
# phase_type: "INSTALL",
|
391
|
+
# start_time: Time.parse(1479401199.136),
|
392
|
+
# },
|
393
|
+
# {
|
394
|
+
# contexts: [
|
395
|
+
# ],
|
396
|
+
# duration_in_seconds: 0,
|
397
|
+
# end_time: Time.parse(1479401199.345),
|
398
|
+
# phase_status: "SUCCEEDED",
|
399
|
+
# phase_type: "PRE_BUILD",
|
400
|
+
# start_time: Time.parse(1479401199.236),
|
401
|
+
# },
|
402
|
+
# {
|
403
|
+
# contexts: [
|
404
|
+
# ],
|
405
|
+
# duration_in_seconds: 9,
|
406
|
+
# end_time: Time.parse(1479401208.68),
|
407
|
+
# phase_status: "SUCCEEDED",
|
408
|
+
# phase_type: "BUILD",
|
409
|
+
# start_time: Time.parse(1479401199.345),
|
410
|
+
# },
|
411
|
+
# {
|
412
|
+
# contexts: [
|
413
|
+
# ],
|
414
|
+
# duration_in_seconds: 0,
|
415
|
+
# end_time: Time.parse(1479401208.783),
|
416
|
+
# phase_status: "SUCCEEDED",
|
417
|
+
# phase_type: "POST_BUILD",
|
418
|
+
# start_time: Time.parse(1479401208.68),
|
419
|
+
# },
|
420
|
+
# {
|
421
|
+
# contexts: [
|
422
|
+
# ],
|
423
|
+
# duration_in_seconds: 0,
|
424
|
+
# end_time: Time.parse(1479401209.463),
|
425
|
+
# phase_status: "SUCCEEDED",
|
426
|
+
# phase_type: "UPLOAD_ARTIFACTS",
|
427
|
+
# start_time: Time.parse(1479401208.783),
|
428
|
+
# },
|
429
|
+
# {
|
430
|
+
# contexts: [
|
431
|
+
# ],
|
432
|
+
# duration_in_seconds: 4,
|
433
|
+
# end_time: Time.parse(1479401214.239),
|
434
|
+
# phase_status: "SUCCEEDED",
|
435
|
+
# phase_type: "FINALIZING",
|
436
|
+
# start_time: Time.parse(1479401209.463),
|
437
|
+
# },
|
438
|
+
# {
|
439
|
+
# phase_type: "COMPLETED",
|
440
|
+
# start_time: Time.parse(1479401214.239),
|
441
|
+
# },
|
442
|
+
# ],
|
443
|
+
# project_name: "codebuild-demo-project",
|
444
|
+
# source: {
|
445
|
+
# type: "S3",
|
446
|
+
# location: "arn:aws:s3:::codebuild-123456789012-input-bucket/MessageUtil.zip",
|
447
|
+
# },
|
448
|
+
# start_time: Time.parse(1479401081.869),
|
449
|
+
# timeout_in_minutes: 60,
|
450
|
+
# },
|
451
|
+
# ],
|
452
|
+
# }
|
453
|
+
#
|
168
454
|
# @example Request syntax with placeholder values
|
169
455
|
#
|
170
456
|
# resp = client.batch_get_builds({
|
@@ -634,7 +920,20 @@ module Aws::CodeBuild
|
|
634
920
|
# specified, the latest version will be used. If specified, must be one
|
635
921
|
# of:
|
636
922
|
#
|
637
|
-
# * For AWS CodeCommit
|
923
|
+
# * For AWS CodeCommit: the commit ID to use.
|
924
|
+
#
|
925
|
+
# * For GitHub: the commit ID, pull request ID, branch name, or tag name
|
926
|
+
# that corresponds to the version of the source code you want to
|
927
|
+
# build. If a pull request ID is specified, it must use the format
|
928
|
+
# `pr/pull-request-ID` (for example `pr/25`). If a branch name is
|
929
|
+
# specified, the branch's HEAD commit ID will be used. If not
|
930
|
+
# specified, the default branch's HEAD commit ID will be used.
|
931
|
+
#
|
932
|
+
# * For Bitbucket: the commit ID, branch name, or tag name that
|
933
|
+
# corresponds to the version of the source code you want to build. If
|
934
|
+
# a branch name is specified, the branch's HEAD commit ID will be
|
935
|
+
# used. If not specified, the default branch's HEAD commit ID will be
|
936
|
+
# used.
|
638
937
|
#
|
639
938
|
# * For Amazon Simple Storage Service (Amazon S3): the version ID of the
|
640
939
|
# object representing the build input ZIP file to use.
|
@@ -948,7 +1247,7 @@ module Aws::CodeBuild
|
|
948
1247
|
params: params,
|
949
1248
|
config: config)
|
950
1249
|
context[:gem_name] = 'aws-sdk-codebuild'
|
951
|
-
context[:gem_version] = '1.
|
1250
|
+
context[:gem_version] = '1.1.0'
|
952
1251
|
Seahorse::Client::Request.new(handlers, context)
|
953
1252
|
end
|
954
1253
|
|
@@ -15,6 +15,8 @@ module Aws::CodeBuild
|
|
15
15
|
ArtifactNamespace = Shapes::StringShape.new(name: 'ArtifactNamespace')
|
16
16
|
ArtifactPackaging = Shapes::StringShape.new(name: 'ArtifactPackaging')
|
17
17
|
ArtifactsType = Shapes::StringShape.new(name: 'ArtifactsType')
|
18
|
+
BatchDeleteBuildsInput = Shapes::StructureShape.new(name: 'BatchDeleteBuildsInput')
|
19
|
+
BatchDeleteBuildsOutput = Shapes::StructureShape.new(name: 'BatchDeleteBuildsOutput')
|
18
20
|
BatchGetBuildsInput = Shapes::StructureShape.new(name: 'BatchGetBuildsInput')
|
19
21
|
BatchGetBuildsOutput = Shapes::StructureShape.new(name: 'BatchGetBuildsOutput')
|
20
22
|
BatchGetProjectsInput = Shapes::StructureShape.new(name: 'BatchGetProjectsInput')
|
@@ -23,10 +25,12 @@ module Aws::CodeBuild
|
|
23
25
|
Build = Shapes::StructureShape.new(name: 'Build')
|
24
26
|
BuildArtifacts = Shapes::StructureShape.new(name: 'BuildArtifacts')
|
25
27
|
BuildIds = Shapes::ListShape.new(name: 'BuildIds')
|
28
|
+
BuildNotDeleted = Shapes::StructureShape.new(name: 'BuildNotDeleted')
|
26
29
|
BuildPhase = Shapes::StructureShape.new(name: 'BuildPhase')
|
27
30
|
BuildPhaseType = Shapes::StringShape.new(name: 'BuildPhaseType')
|
28
31
|
BuildPhases = Shapes::ListShape.new(name: 'BuildPhases')
|
29
32
|
Builds = Shapes::ListShape.new(name: 'Builds')
|
33
|
+
BuildsNotDeleted = Shapes::ListShape.new(name: 'BuildsNotDeleted')
|
30
34
|
ComputeType = Shapes::StringShape.new(name: 'ComputeType')
|
31
35
|
CreateProjectInput = Shapes::StructureShape.new(name: 'CreateProjectInput')
|
32
36
|
CreateProjectOutput = Shapes::StructureShape.new(name: 'CreateProjectOutput')
|
@@ -89,6 +93,13 @@ module Aws::CodeBuild
|
|
89
93
|
WrapperInt = Shapes::IntegerShape.new(name: 'WrapperInt')
|
90
94
|
WrapperLong = Shapes::IntegerShape.new(name: 'WrapperLong')
|
91
95
|
|
96
|
+
BatchDeleteBuildsInput.add_member(:ids, Shapes::ShapeRef.new(shape: BuildIds, required: true, location_name: "ids"))
|
97
|
+
BatchDeleteBuildsInput.struct_class = Types::BatchDeleteBuildsInput
|
98
|
+
|
99
|
+
BatchDeleteBuildsOutput.add_member(:builds_deleted, Shapes::ShapeRef.new(shape: BuildIds, location_name: "buildsDeleted"))
|
100
|
+
BatchDeleteBuildsOutput.add_member(:builds_not_deleted, Shapes::ShapeRef.new(shape: BuildsNotDeleted, location_name: "buildsNotDeleted"))
|
101
|
+
BatchDeleteBuildsOutput.struct_class = Types::BatchDeleteBuildsOutput
|
102
|
+
|
92
103
|
BatchGetBuildsInput.add_member(:ids, Shapes::ShapeRef.new(shape: BuildIds, required: true, location_name: "ids"))
|
93
104
|
BatchGetBuildsInput.struct_class = Types::BatchGetBuildsInput
|
94
105
|
|
@@ -128,6 +139,10 @@ module Aws::CodeBuild
|
|
128
139
|
|
129
140
|
BuildIds.member = Shapes::ShapeRef.new(shape: NonEmptyString)
|
130
141
|
|
142
|
+
BuildNotDeleted.add_member(:id, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "id"))
|
143
|
+
BuildNotDeleted.add_member(:status_code, Shapes::ShapeRef.new(shape: String, location_name: "statusCode"))
|
144
|
+
BuildNotDeleted.struct_class = Types::BuildNotDeleted
|
145
|
+
|
131
146
|
BuildPhase.add_member(:phase_type, Shapes::ShapeRef.new(shape: BuildPhaseType, location_name: "phaseType"))
|
132
147
|
BuildPhase.add_member(:phase_status, Shapes::ShapeRef.new(shape: StatusType, location_name: "phaseStatus"))
|
133
148
|
BuildPhase.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "startTime"))
|
@@ -140,6 +155,8 @@ module Aws::CodeBuild
|
|
140
155
|
|
141
156
|
Builds.member = Shapes::ShapeRef.new(shape: Build)
|
142
157
|
|
158
|
+
BuildsNotDeleted.member = Shapes::ShapeRef.new(shape: BuildNotDeleted)
|
159
|
+
|
143
160
|
CreateProjectInput.add_member(:name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location_name: "name"))
|
144
161
|
CreateProjectInput.add_member(:description, Shapes::ShapeRef.new(shape: ProjectDescription, location_name: "description"))
|
145
162
|
CreateProjectInput.add_member(:source, Shapes::ShapeRef.new(shape: ProjectSource, required: true, location_name: "source"))
|
@@ -320,6 +337,15 @@ module Aws::CodeBuild
|
|
320
337
|
"targetPrefix" => "CodeBuild_20161006",
|
321
338
|
}
|
322
339
|
|
340
|
+
api.add_operation(:batch_delete_builds, Seahorse::Model::Operation.new.tap do |o|
|
341
|
+
o.name = "BatchDeleteBuilds"
|
342
|
+
o.http_method = "POST"
|
343
|
+
o.http_request_uri = "/"
|
344
|
+
o.input = Shapes::ShapeRef.new(shape: BatchDeleteBuildsInput)
|
345
|
+
o.output = Shapes::ShapeRef.new(shape: BatchDeleteBuildsOutput)
|
346
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
347
|
+
end)
|
348
|
+
|
323
349
|
api.add_operation(:batch_get_builds, Seahorse::Model::Operation.new.tap do |o|
|
324
350
|
o.name = "BatchGetBuilds"
|
325
351
|
o.http_method = "POST"
|
@@ -8,6 +8,40 @@
|
|
8
8
|
module Aws::CodeBuild
|
9
9
|
module Types
|
10
10
|
|
11
|
+
# @note When making an API call, you may pass BatchDeleteBuildsInput
|
12
|
+
# data as a hash:
|
13
|
+
#
|
14
|
+
# {
|
15
|
+
# ids: ["NonEmptyString"], # required
|
16
|
+
# }
|
17
|
+
#
|
18
|
+
# @!attribute [rw] ids
|
19
|
+
# The IDs of the builds to delete.
|
20
|
+
# @return [Array<String>]
|
21
|
+
#
|
22
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchDeleteBuildsInput AWS API Documentation
|
23
|
+
#
|
24
|
+
class BatchDeleteBuildsInput < Struct.new(
|
25
|
+
:ids)
|
26
|
+
include Aws::Structure
|
27
|
+
end
|
28
|
+
|
29
|
+
# @!attribute [rw] builds_deleted
|
30
|
+
# The IDs of the builds that were successfully deleted.
|
31
|
+
# @return [Array<String>]
|
32
|
+
#
|
33
|
+
# @!attribute [rw] builds_not_deleted
|
34
|
+
# Information about any builds that could not be successfully deleted.
|
35
|
+
# @return [Array<Types::BuildNotDeleted>]
|
36
|
+
#
|
37
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchDeleteBuildsOutput AWS API Documentation
|
38
|
+
#
|
39
|
+
class BatchDeleteBuildsOutput < Struct.new(
|
40
|
+
:builds_deleted,
|
41
|
+
:builds_not_deleted)
|
42
|
+
include Aws::Structure
|
43
|
+
end
|
44
|
+
|
11
45
|
# @note When making an API call, you may pass BatchGetBuildsInput
|
12
46
|
# data as a hash:
|
13
47
|
#
|
@@ -228,6 +262,25 @@ module Aws::CodeBuild
|
|
228
262
|
include Aws::Structure
|
229
263
|
end
|
230
264
|
|
265
|
+
# Information about a build that could not be successfully deleted.
|
266
|
+
#
|
267
|
+
# @!attribute [rw] id
|
268
|
+
# The ID of the build that could not be successfully deleted.
|
269
|
+
# @return [String]
|
270
|
+
#
|
271
|
+
# @!attribute [rw] status_code
|
272
|
+
# Additional information about the build that could not be
|
273
|
+
# successfully deleted.
|
274
|
+
# @return [String]
|
275
|
+
#
|
276
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildNotDeleted AWS API Documentation
|
277
|
+
#
|
278
|
+
class BuildNotDeleted < Struct.new(
|
279
|
+
:id,
|
280
|
+
:status_code)
|
281
|
+
include Aws::Structure
|
282
|
+
end
|
283
|
+
|
231
284
|
# Information about a stage for a build.
|
232
285
|
#
|
233
286
|
# @!attribute [rw] phase_type
|
@@ -1071,8 +1124,8 @@ module Aws::CodeBuild
|
|
1071
1124
|
# provided by AWS CodeBuild with Docker support.)
|
1072
1125
|
#
|
1073
1126
|
# `- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock
|
1074
|
-
# --host=tcp://0.0.0.0:2375 --storage-driver=
|
1075
|
-
# -c "until docker info; do echo .; sleep 1; done"`
|
1127
|
+
# --host=tcp://0.0.0.0:2375 --storage-driver=overlay& - timeout -t 15
|
1128
|
+
# sh -c "until docker info; do echo .; sleep 1; done"`
|
1076
1129
|
# @return [Boolean]
|
1077
1130
|
#
|
1078
1131
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ProjectEnvironment AWS API Documentation
|
@@ -1105,6 +1158,8 @@ module Aws::CodeBuild
|
|
1105
1158
|
# The type of repository that contains the source code to be built.
|
1106
1159
|
# Valid values include:
|
1107
1160
|
#
|
1161
|
+
# * `BITBUCKET`\: The source code is in a Bitbucket repository.
|
1162
|
+
#
|
1108
1163
|
# * `CODECOMMIT`\: The source code is in an AWS CodeCommit repository.
|
1109
1164
|
#
|
1110
1165
|
# * `CODEPIPELINE`\: The source code settings are specified in the
|
@@ -1149,6 +1204,19 @@ module Aws::CodeBuild
|
|
1149
1204
|
# project, and you may then leave the AWS CodeBuild console.) To
|
1150
1205
|
# instruct AWS CodeBuild to then use this connection, in the
|
1151
1206
|
# `source` object, set the `auth` object's `type` value to `OAUTH`.
|
1207
|
+
#
|
1208
|
+
# * For source code in a Bitbucket repository, the HTTPS clone URL to
|
1209
|
+
# the repository that contains the source and the build spec. Also,
|
1210
|
+
# you must connect your AWS account to your Bitbucket account. To do
|
1211
|
+
# this, use the AWS CodeBuild console to begin creating a build
|
1212
|
+
# project. When you use the console to connect (or reconnect) with
|
1213
|
+
# Bitbucket, on the Bitbucket **Confirm access to your account**
|
1214
|
+
# page that displays, choose **Grant access**. (After you have
|
1215
|
+
# connected to your Bitbucket account, you do not need to finish
|
1216
|
+
# creating the build project, and you may then leave the AWS
|
1217
|
+
# CodeBuild console.) To instruct AWS CodeBuild to then use this
|
1218
|
+
# connection, in the `source` object, set the `auth` object's
|
1219
|
+
# `type` value to `OAUTH`.
|
1152
1220
|
# @return [String]
|
1153
1221
|
#
|
1154
1222
|
# @!attribute [rw] buildspec
|
@@ -1165,7 +1233,7 @@ module Aws::CodeBuild
|
|
1165
1233
|
#
|
1166
1234
|
# This information is for the AWS CodeBuild console's use only. Your
|
1167
1235
|
# code should not get or set this information directly (unless the
|
1168
|
-
# build project's source `type` value is `GITHUB`).
|
1236
|
+
# build project's source `type` value is `BITBUCKET` or `GITHUB`).
|
1169
1237
|
# @return [Types::SourceAuth]
|
1170
1238
|
#
|
1171
1239
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ProjectSource AWS API Documentation
|
@@ -1183,7 +1251,7 @@ module Aws::CodeBuild
|
|
1183
1251
|
#
|
1184
1252
|
# This information is for the AWS CodeBuild console's use only. Your
|
1185
1253
|
# code should not get or set this information directly (unless the build
|
1186
|
-
# project's source `type` value is `GITHUB`).
|
1254
|
+
# project's source `type` value is `BITBUCKET` or `GITHUB`).
|
1187
1255
|
#
|
1188
1256
|
# @note When making an API call, you may pass SourceAuth
|
1189
1257
|
# data as a hash:
|
@@ -1243,7 +1311,20 @@ module Aws::CodeBuild
|
|
1243
1311
|
# not specified, the latest version will be used. If specified, must
|
1244
1312
|
# be one of:
|
1245
1313
|
#
|
1246
|
-
# * For AWS CodeCommit
|
1314
|
+
# * For AWS CodeCommit: the commit ID to use.
|
1315
|
+
#
|
1316
|
+
# * For GitHub: the commit ID, pull request ID, branch name, or tag
|
1317
|
+
# name that corresponds to the version of the source code you want
|
1318
|
+
# to build. If a pull request ID is specified, it must use the
|
1319
|
+
# format `pr/pull-request-ID` (for example `pr/25`). If a branch
|
1320
|
+
# name is specified, the branch's HEAD commit ID will be used. If
|
1321
|
+
# not specified, the default branch's HEAD commit ID will be used.
|
1322
|
+
#
|
1323
|
+
# * For Bitbucket: the commit ID, branch name, or tag name that
|
1324
|
+
# corresponds to the version of the source code you want to build.
|
1325
|
+
# If a branch name is specified, the branch's HEAD commit ID will
|
1326
|
+
# be used. If not specified, the default branch's HEAD commit ID
|
1327
|
+
# will be used.
|
1247
1328
|
#
|
1248
1329
|
# * For Amazon Simple Storage Service (Amazon S3): the version ID of
|
1249
1330
|
# the object representing the build input ZIP file to use.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-codebuild
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -56,7 +56,9 @@ files:
|
|
56
56
|
homepage: http://github.com/aws/aws-sdk-ruby
|
57
57
|
licenses:
|
58
58
|
- Apache-2.0
|
59
|
-
metadata:
|
59
|
+
metadata:
|
60
|
+
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-codebuild
|
61
|
+
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-codebuild/CHANGELOG.md
|
60
62
|
post_install_message:
|
61
63
|
rdoc_options: []
|
62
64
|
require_paths:
|