aws-sdk-codebuild 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-codebuild.rb +1 -1
- data/lib/aws-sdk-codebuild/client.rb +74 -1
- data/lib/aws-sdk-codebuild/client_api.rb +44 -0
- data/lib/aws-sdk-codebuild/types.rb +73 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17428437049cc1067f5deab1a3a7d41dbed14628
|
4
|
+
data.tar.gz: 34649d10580974112ca8098119fff6a0fa5636ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d7c267fa5e490722c4bcacf15189325c45bdc95c1761edda6f630067a0000cc87bcae5c15bf6e6e7a6ba2dfd3bcb47a9962f125ef810f8bd130a9ae766b6bf4
|
7
|
+
data.tar.gz: 1e626afa2896183776fe637d6f33c5b07a63672605f2c459992606c1f8f15cec1f82a71f2bda6f23936cdc423e45048a23cfbcd726d22c146c792b1f8e483e81
|
data/lib/aws-sdk-codebuild.rb
CHANGED
@@ -560,6 +560,7 @@ module Aws::CodeBuild
|
|
560
560
|
# resp.projects[0].tags[0].value #=> String
|
561
561
|
# resp.projects[0].created #=> Time
|
562
562
|
# resp.projects[0].last_modified #=> Time
|
563
|
+
# resp.projects[0].webhook.url #=> String
|
563
564
|
# resp.projects_not_found #=> Array
|
564
565
|
# resp.projects_not_found[0] #=> String
|
565
566
|
#
|
@@ -694,6 +695,7 @@ module Aws::CodeBuild
|
|
694
695
|
# resp.project.tags[0].value #=> String
|
695
696
|
# resp.project.created #=> Time
|
696
697
|
# resp.project.last_modified #=> Time
|
698
|
+
# resp.project.webhook.url #=> String
|
697
699
|
#
|
698
700
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateProject AWS API Documentation
|
699
701
|
#
|
@@ -704,6 +706,51 @@ module Aws::CodeBuild
|
|
704
706
|
req.send_request(options)
|
705
707
|
end
|
706
708
|
|
709
|
+
# For an existing AWS CodeBuild build project that has its source code
|
710
|
+
# stored in a GitHub repository, enables AWS CodeBuild to begin
|
711
|
+
# automatically rebuilding the source code every time a code change is
|
712
|
+
# pushed to the repository.
|
713
|
+
#
|
714
|
+
# If you enable webhooks for an AWS CodeBuild project, and the project
|
715
|
+
# is used as a build step in AWS CodePipeline, then two identical builds
|
716
|
+
# will be created for each commit. One build is triggered through
|
717
|
+
# webhooks, and one through AWS CodePipeline. Because billing is on a
|
718
|
+
# per-build basis, you will be billed for both builds. Therefore, if you
|
719
|
+
# are using AWS CodePipeline, we recommend that you disable webhooks in
|
720
|
+
# CodeBuild. In the AWS CodeBuild console, clear the Webhook box. For
|
721
|
+
# more information, see step 9 in [Change a Build Project’s
|
722
|
+
# Settings][1].
|
723
|
+
#
|
724
|
+
#
|
725
|
+
#
|
726
|
+
# [1]: http://docs.aws.amazon.com/codebuild/latest/userguide/change-project.html#change-project-console
|
727
|
+
#
|
728
|
+
# @option params [required, String] :project_name
|
729
|
+
# The name of the build project.
|
730
|
+
#
|
731
|
+
# @return [Types::CreateWebhookOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
732
|
+
#
|
733
|
+
# * {Types::CreateWebhookOutput#webhook #webhook} => Types::Webhook
|
734
|
+
#
|
735
|
+
# @example Request syntax with placeholder values
|
736
|
+
#
|
737
|
+
# resp = client.create_webhook({
|
738
|
+
# project_name: "ProjectName", # required
|
739
|
+
# })
|
740
|
+
#
|
741
|
+
# @example Response structure
|
742
|
+
#
|
743
|
+
# resp.webhook.url #=> String
|
744
|
+
#
|
745
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateWebhook AWS API Documentation
|
746
|
+
#
|
747
|
+
# @overload create_webhook(params = {})
|
748
|
+
# @param [Hash] params ({})
|
749
|
+
def create_webhook(params = {}, options = {})
|
750
|
+
req = build_request(:create_webhook, params)
|
751
|
+
req.send_request(options)
|
752
|
+
end
|
753
|
+
|
707
754
|
# Deletes a build project.
|
708
755
|
#
|
709
756
|
# @option params [required, String] :name
|
@@ -726,6 +773,31 @@ module Aws::CodeBuild
|
|
726
773
|
req.send_request(options)
|
727
774
|
end
|
728
775
|
|
776
|
+
# For an existing AWS CodeBuild build project that has its source code
|
777
|
+
# stored in a GitHub repository, stops AWS CodeBuild from automatically
|
778
|
+
# rebuilding the source code every time a code change is pushed to the
|
779
|
+
# repository.
|
780
|
+
#
|
781
|
+
# @option params [required, String] :project_name
|
782
|
+
# The name of the build project.
|
783
|
+
#
|
784
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
785
|
+
#
|
786
|
+
# @example Request syntax with placeholder values
|
787
|
+
#
|
788
|
+
# resp = client.delete_webhook({
|
789
|
+
# project_name: "ProjectName", # required
|
790
|
+
# })
|
791
|
+
#
|
792
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteWebhook AWS API Documentation
|
793
|
+
#
|
794
|
+
# @overload delete_webhook(params = {})
|
795
|
+
# @param [Hash] params ({})
|
796
|
+
def delete_webhook(params = {}, options = {})
|
797
|
+
req = build_request(:delete_webhook, params)
|
798
|
+
req.send_request(options)
|
799
|
+
end
|
800
|
+
|
729
801
|
# Gets a list of build IDs, with each build ID representing a single
|
730
802
|
# build.
|
731
803
|
#
|
@@ -1233,6 +1305,7 @@ module Aws::CodeBuild
|
|
1233
1305
|
# resp.project.tags[0].value #=> String
|
1234
1306
|
# resp.project.created #=> Time
|
1235
1307
|
# resp.project.last_modified #=> Time
|
1308
|
+
# resp.project.webhook.url #=> String
|
1236
1309
|
#
|
1237
1310
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateProject AWS API Documentation
|
1238
1311
|
#
|
@@ -1256,7 +1329,7 @@ module Aws::CodeBuild
|
|
1256
1329
|
params: params,
|
1257
1330
|
config: config)
|
1258
1331
|
context[:gem_name] = 'aws-sdk-codebuild'
|
1259
|
-
context[:gem_version] = '1.
|
1332
|
+
context[:gem_version] = '1.3.0'
|
1260
1333
|
Seahorse::Client::Request.new(handlers, context)
|
1261
1334
|
end
|
1262
1335
|
|
@@ -34,8 +34,12 @@ module Aws::CodeBuild
|
|
34
34
|
ComputeType = Shapes::StringShape.new(name: 'ComputeType')
|
35
35
|
CreateProjectInput = Shapes::StructureShape.new(name: 'CreateProjectInput')
|
36
36
|
CreateProjectOutput = Shapes::StructureShape.new(name: 'CreateProjectOutput')
|
37
|
+
CreateWebhookInput = Shapes::StructureShape.new(name: 'CreateWebhookInput')
|
38
|
+
CreateWebhookOutput = Shapes::StructureShape.new(name: 'CreateWebhookOutput')
|
37
39
|
DeleteProjectInput = Shapes::StructureShape.new(name: 'DeleteProjectInput')
|
38
40
|
DeleteProjectOutput = Shapes::StructureShape.new(name: 'DeleteProjectOutput')
|
41
|
+
DeleteWebhookInput = Shapes::StructureShape.new(name: 'DeleteWebhookInput')
|
42
|
+
DeleteWebhookOutput = Shapes::StructureShape.new(name: 'DeleteWebhookOutput')
|
39
43
|
EnvironmentImage = Shapes::StructureShape.new(name: 'EnvironmentImage')
|
40
44
|
EnvironmentImages = Shapes::ListShape.new(name: 'EnvironmentImages')
|
41
45
|
EnvironmentLanguage = Shapes::StructureShape.new(name: 'EnvironmentLanguage')
|
@@ -59,6 +63,7 @@ module Aws::CodeBuild
|
|
59
63
|
ListProjectsOutput = Shapes::StructureShape.new(name: 'ListProjectsOutput')
|
60
64
|
LogsLocation = Shapes::StructureShape.new(name: 'LogsLocation')
|
61
65
|
NonEmptyString = Shapes::StringShape.new(name: 'NonEmptyString')
|
66
|
+
OAuthProviderException = Shapes::StructureShape.new(name: 'OAuthProviderException')
|
62
67
|
PhaseContext = Shapes::StructureShape.new(name: 'PhaseContext')
|
63
68
|
PhaseContexts = Shapes::ListShape.new(name: 'PhaseContexts')
|
64
69
|
PlatformType = Shapes::StringShape.new(name: 'PlatformType')
|
@@ -90,6 +95,7 @@ module Aws::CodeBuild
|
|
90
95
|
UpdateProjectInput = Shapes::StructureShape.new(name: 'UpdateProjectInput')
|
91
96
|
UpdateProjectOutput = Shapes::StructureShape.new(name: 'UpdateProjectOutput')
|
92
97
|
ValueInput = Shapes::StringShape.new(name: 'ValueInput')
|
98
|
+
Webhook = Shapes::StructureShape.new(name: 'Webhook')
|
93
99
|
WrapperBoolean = Shapes::BooleanShape.new(name: 'WrapperBoolean')
|
94
100
|
WrapperInt = Shapes::IntegerShape.new(name: 'WrapperInt')
|
95
101
|
WrapperLong = Shapes::IntegerShape.new(name: 'WrapperLong')
|
@@ -172,11 +178,22 @@ module Aws::CodeBuild
|
|
172
178
|
CreateProjectOutput.add_member(:project, Shapes::ShapeRef.new(shape: Project, location_name: "project"))
|
173
179
|
CreateProjectOutput.struct_class = Types::CreateProjectOutput
|
174
180
|
|
181
|
+
CreateWebhookInput.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location_name: "projectName"))
|
182
|
+
CreateWebhookInput.struct_class = Types::CreateWebhookInput
|
183
|
+
|
184
|
+
CreateWebhookOutput.add_member(:webhook, Shapes::ShapeRef.new(shape: Webhook, location_name: "webhook"))
|
185
|
+
CreateWebhookOutput.struct_class = Types::CreateWebhookOutput
|
186
|
+
|
175
187
|
DeleteProjectInput.add_member(:name, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "name"))
|
176
188
|
DeleteProjectInput.struct_class = Types::DeleteProjectInput
|
177
189
|
|
178
190
|
DeleteProjectOutput.struct_class = Types::DeleteProjectOutput
|
179
191
|
|
192
|
+
DeleteWebhookInput.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location_name: "projectName"))
|
193
|
+
DeleteWebhookInput.struct_class = Types::DeleteWebhookInput
|
194
|
+
|
195
|
+
DeleteWebhookOutput.struct_class = Types::DeleteWebhookOutput
|
196
|
+
|
180
197
|
EnvironmentImage.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
|
181
198
|
EnvironmentImage.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
|
182
199
|
EnvironmentImage.struct_class = Types::EnvironmentImage
|
@@ -256,6 +273,7 @@ module Aws::CodeBuild
|
|
256
273
|
Project.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
257
274
|
Project.add_member(:created, Shapes::ShapeRef.new(shape: Timestamp, location_name: "created"))
|
258
275
|
Project.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModified"))
|
276
|
+
Project.add_member(:webhook, Shapes::ShapeRef.new(shape: Webhook, location_name: "webhook"))
|
259
277
|
Project.struct_class = Types::Project
|
260
278
|
|
261
279
|
ProjectArtifacts.add_member(:type, Shapes::ShapeRef.new(shape: ArtifactsType, required: true, location_name: "type"))
|
@@ -324,6 +342,9 @@ module Aws::CodeBuild
|
|
324
342
|
UpdateProjectOutput.add_member(:project, Shapes::ShapeRef.new(shape: Project, location_name: "project"))
|
325
343
|
UpdateProjectOutput.struct_class = Types::UpdateProjectOutput
|
326
344
|
|
345
|
+
Webhook.add_member(:url, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "url"))
|
346
|
+
Webhook.struct_class = Types::Webhook
|
347
|
+
|
327
348
|
|
328
349
|
# @api private
|
329
350
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -377,6 +398,18 @@ module Aws::CodeBuild
|
|
377
398
|
o.errors << Shapes::ShapeRef.new(shape: AccountLimitExceededException)
|
378
399
|
end)
|
379
400
|
|
401
|
+
api.add_operation(:create_webhook, Seahorse::Model::Operation.new.tap do |o|
|
402
|
+
o.name = "CreateWebhook"
|
403
|
+
o.http_method = "POST"
|
404
|
+
o.http_request_uri = "/"
|
405
|
+
o.input = Shapes::ShapeRef.new(shape: CreateWebhookInput)
|
406
|
+
o.output = Shapes::ShapeRef.new(shape: CreateWebhookOutput)
|
407
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
408
|
+
o.errors << Shapes::ShapeRef.new(shape: OAuthProviderException)
|
409
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
|
410
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
411
|
+
end)
|
412
|
+
|
380
413
|
api.add_operation(:delete_project, Seahorse::Model::Operation.new.tap do |o|
|
381
414
|
o.name = "DeleteProject"
|
382
415
|
o.http_method = "POST"
|
@@ -386,6 +419,17 @@ module Aws::CodeBuild
|
|
386
419
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
387
420
|
end)
|
388
421
|
|
422
|
+
api.add_operation(:delete_webhook, Seahorse::Model::Operation.new.tap do |o|
|
423
|
+
o.name = "DeleteWebhook"
|
424
|
+
o.http_method = "POST"
|
425
|
+
o.http_request_uri = "/"
|
426
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteWebhookInput)
|
427
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteWebhookOutput)
|
428
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
429
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
430
|
+
o.errors << Shapes::ShapeRef.new(shape: OAuthProviderException)
|
431
|
+
end)
|
432
|
+
|
389
433
|
api.add_operation(:list_builds, Seahorse::Model::Operation.new.tap do |o|
|
390
434
|
o.name = "ListBuilds"
|
391
435
|
o.http_method = "POST"
|
@@ -480,6 +480,36 @@ module Aws::CodeBuild
|
|
480
480
|
include Aws::Structure
|
481
481
|
end
|
482
482
|
|
483
|
+
# @note When making an API call, you may pass CreateWebhookInput
|
484
|
+
# data as a hash:
|
485
|
+
#
|
486
|
+
# {
|
487
|
+
# project_name: "ProjectName", # required
|
488
|
+
# }
|
489
|
+
#
|
490
|
+
# @!attribute [rw] project_name
|
491
|
+
# The name of the build project.
|
492
|
+
# @return [String]
|
493
|
+
#
|
494
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateWebhookInput AWS API Documentation
|
495
|
+
#
|
496
|
+
class CreateWebhookInput < Struct.new(
|
497
|
+
:project_name)
|
498
|
+
include Aws::Structure
|
499
|
+
end
|
500
|
+
|
501
|
+
# @!attribute [rw] webhook
|
502
|
+
# Information about a webhook in GitHub that connects repository
|
503
|
+
# events to a build project in AWS CodeBuild.
|
504
|
+
# @return [Types::Webhook]
|
505
|
+
#
|
506
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateWebhookOutput AWS API Documentation
|
507
|
+
#
|
508
|
+
class CreateWebhookOutput < Struct.new(
|
509
|
+
:webhook)
|
510
|
+
include Aws::Structure
|
511
|
+
end
|
512
|
+
|
483
513
|
# @note When making an API call, you may pass DeleteProjectInput
|
484
514
|
# data as a hash:
|
485
515
|
#
|
@@ -502,6 +532,28 @@ module Aws::CodeBuild
|
|
502
532
|
#
|
503
533
|
class DeleteProjectOutput < Aws::EmptyStructure; end
|
504
534
|
|
535
|
+
# @note When making an API call, you may pass DeleteWebhookInput
|
536
|
+
# data as a hash:
|
537
|
+
#
|
538
|
+
# {
|
539
|
+
# project_name: "ProjectName", # required
|
540
|
+
# }
|
541
|
+
#
|
542
|
+
# @!attribute [rw] project_name
|
543
|
+
# The name of the build project.
|
544
|
+
# @return [String]
|
545
|
+
#
|
546
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteWebhookInput AWS API Documentation
|
547
|
+
#
|
548
|
+
class DeleteWebhookInput < Struct.new(
|
549
|
+
:project_name)
|
550
|
+
include Aws::Structure
|
551
|
+
end
|
552
|
+
|
553
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteWebhookOutput AWS API Documentation
|
554
|
+
#
|
555
|
+
class DeleteWebhookOutput < Aws::EmptyStructure; end
|
556
|
+
|
505
557
|
# Information about a Docker image that is managed by AWS CodeBuild.
|
506
558
|
#
|
507
559
|
# @!attribute [rw] name
|
@@ -918,6 +970,11 @@ module Aws::CodeBuild
|
|
918
970
|
# Unix time format.
|
919
971
|
# @return [Time]
|
920
972
|
#
|
973
|
+
# @!attribute [rw] webhook
|
974
|
+
# Information about a webhook in GitHub that connects repository
|
975
|
+
# events to a build project in AWS CodeBuild.
|
976
|
+
# @return [Types::Webhook]
|
977
|
+
#
|
921
978
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/Project AWS API Documentation
|
922
979
|
#
|
923
980
|
class Project < Struct.new(
|
@@ -932,7 +989,8 @@ module Aws::CodeBuild
|
|
932
989
|
:encryption_key,
|
933
990
|
:tags,
|
934
991
|
:created,
|
935
|
-
:last_modified
|
992
|
+
:last_modified,
|
993
|
+
:webhook)
|
936
994
|
include Aws::Structure
|
937
995
|
end
|
938
996
|
|
@@ -1573,5 +1631,19 @@ module Aws::CodeBuild
|
|
1573
1631
|
include Aws::Structure
|
1574
1632
|
end
|
1575
1633
|
|
1634
|
+
# Information about a webhook in GitHub that connects repository events
|
1635
|
+
# to a build project in AWS CodeBuild.
|
1636
|
+
#
|
1637
|
+
# @!attribute [rw] url
|
1638
|
+
# The URL to the webhook.
|
1639
|
+
# @return [String]
|
1640
|
+
#
|
1641
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/Webhook AWS API Documentation
|
1642
|
+
#
|
1643
|
+
class Webhook < Struct.new(
|
1644
|
+
:url)
|
1645
|
+
include Aws::Structure
|
1646
|
+
end
|
1647
|
+
|
1576
1648
|
end
|
1577
1649
|
end
|
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.3.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-09-
|
11
|
+
date: 2017-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|