aws-sdk-codebuild 1.24.0 → 1.25.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 +100 -1
- data/lib/aws-sdk-codebuild/client_api.rb +66 -0
- data/lib/aws-sdk-codebuild/types.rb +133 -4
- 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: 97c30c2e7f8eceae7db75ec92cf3acff5bd1ef99
|
4
|
+
data.tar.gz: 99f781bc80813090e9804a14854f588afb0d025f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 993a8223a5bc00d8b3dbad9e42885a9c537071ada45c9bb476b89ced6d2482bada227d95c850ee51afc6c9503545f69c7d62597dd6962838b32a56f587f25d8b
|
7
|
+
data.tar.gz: 89c5e540b990215fa73f63e1b1335d04e15806416eaf1fc997df9f552e88b4fa17d5357abe5884e30efdd5db15db93fd520a76f474581c900907ffd945004f7a
|
data/lib/aws-sdk-codebuild.rb
CHANGED
@@ -1068,6 +1068,35 @@ module Aws::CodeBuild
|
|
1068
1068
|
req.send_request(options)
|
1069
1069
|
end
|
1070
1070
|
|
1071
|
+
# Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source
|
1072
|
+
# credentials.
|
1073
|
+
#
|
1074
|
+
# @option params [required, String] :arn
|
1075
|
+
# The Amazon Resource Name (ARN) of the token.
|
1076
|
+
#
|
1077
|
+
# @return [Types::DeleteSourceCredentialsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1078
|
+
#
|
1079
|
+
# * {Types::DeleteSourceCredentialsOutput#arn #arn} => String
|
1080
|
+
#
|
1081
|
+
# @example Request syntax with placeholder values
|
1082
|
+
#
|
1083
|
+
# resp = client.delete_source_credentials({
|
1084
|
+
# arn: "NonEmptyString", # required
|
1085
|
+
# })
|
1086
|
+
#
|
1087
|
+
# @example Response structure
|
1088
|
+
#
|
1089
|
+
# resp.arn #=> String
|
1090
|
+
#
|
1091
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteSourceCredentials AWS API Documentation
|
1092
|
+
#
|
1093
|
+
# @overload delete_source_credentials(params = {})
|
1094
|
+
# @param [Hash] params ({})
|
1095
|
+
def delete_source_credentials(params = {}, options = {})
|
1096
|
+
req = build_request(:delete_source_credentials, params)
|
1097
|
+
req.send_request(options)
|
1098
|
+
end
|
1099
|
+
|
1071
1100
|
# For an existing AWS CodeBuild build project that has its source code
|
1072
1101
|
# stored in a GitHub or Bitbucket repository, stops AWS CodeBuild from
|
1073
1102
|
# rebuilding the source code every time a code change is pushed to the
|
@@ -1093,6 +1122,54 @@ module Aws::CodeBuild
|
|
1093
1122
|
req.send_request(options)
|
1094
1123
|
end
|
1095
1124
|
|
1125
|
+
# Imports the source repository credentials for an AWS CodeBuild project
|
1126
|
+
# that has its source code stored in a GitHub, GitHub Enterprise, or
|
1127
|
+
# Bitbucket repository.
|
1128
|
+
#
|
1129
|
+
# @option params [String] :username
|
1130
|
+
# The Bitbucket username when the `authType` is BASIC\_AUTH. This
|
1131
|
+
# parameter is not valid for other types of source providers or
|
1132
|
+
# connections.
|
1133
|
+
#
|
1134
|
+
# @option params [required, String] :token
|
1135
|
+
# For GitHub or GitHub Enterprise, this is the personal access token.
|
1136
|
+
# For Bitbucket, this is the app password.
|
1137
|
+
#
|
1138
|
+
# @option params [required, String] :server_type
|
1139
|
+
# The source provider used for this project.
|
1140
|
+
#
|
1141
|
+
# @option params [required, String] :auth_type
|
1142
|
+
# The type of authentication used to connect to a GitHub, GitHub
|
1143
|
+
# Enterprise, or Bitbucket repository. An OAUTH connection is not
|
1144
|
+
# supported by the API and must be created using the AWS CodeBuild
|
1145
|
+
# console.
|
1146
|
+
#
|
1147
|
+
# @return [Types::ImportSourceCredentialsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1148
|
+
#
|
1149
|
+
# * {Types::ImportSourceCredentialsOutput#arn #arn} => String
|
1150
|
+
#
|
1151
|
+
# @example Request syntax with placeholder values
|
1152
|
+
#
|
1153
|
+
# resp = client.import_source_credentials({
|
1154
|
+
# username: "NonEmptyString",
|
1155
|
+
# token: "SensitiveNonEmptyString", # required
|
1156
|
+
# server_type: "GITHUB", # required, accepts GITHUB, BITBUCKET, GITHUB_ENTERPRISE
|
1157
|
+
# auth_type: "OAUTH", # required, accepts OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN
|
1158
|
+
# })
|
1159
|
+
#
|
1160
|
+
# @example Response structure
|
1161
|
+
#
|
1162
|
+
# resp.arn #=> String
|
1163
|
+
#
|
1164
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ImportSourceCredentials AWS API Documentation
|
1165
|
+
#
|
1166
|
+
# @overload import_source_credentials(params = {})
|
1167
|
+
# @param [Hash] params ({})
|
1168
|
+
def import_source_credentials(params = {}, options = {})
|
1169
|
+
req = build_request(:import_source_credentials, params)
|
1170
|
+
req.send_request(options)
|
1171
|
+
end
|
1172
|
+
|
1096
1173
|
# Resets the cache for a project.
|
1097
1174
|
#
|
1098
1175
|
# @option params [required, String] :project_name
|
@@ -1304,6 +1381,28 @@ module Aws::CodeBuild
|
|
1304
1381
|
req.send_request(options)
|
1305
1382
|
end
|
1306
1383
|
|
1384
|
+
# Returns a list of `SourceCredentialsInfo` objects.
|
1385
|
+
#
|
1386
|
+
# @return [Types::ListSourceCredentialsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1387
|
+
#
|
1388
|
+
# * {Types::ListSourceCredentialsOutput#source_credentials_infos #source_credentials_infos} => Array<Types::SourceCredentialsInfo>
|
1389
|
+
#
|
1390
|
+
# @example Response structure
|
1391
|
+
#
|
1392
|
+
# resp.source_credentials_infos #=> Array
|
1393
|
+
# resp.source_credentials_infos[0].arn #=> String
|
1394
|
+
# resp.source_credentials_infos[0].server_type #=> String, one of "GITHUB", "BITBUCKET", "GITHUB_ENTERPRISE"
|
1395
|
+
# resp.source_credentials_infos[0].auth_type #=> String, one of "OAUTH", "BASIC_AUTH", "PERSONAL_ACCESS_TOKEN"
|
1396
|
+
#
|
1397
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListSourceCredentials AWS API Documentation
|
1398
|
+
#
|
1399
|
+
# @overload list_source_credentials(params = {})
|
1400
|
+
# @param [Hash] params ({})
|
1401
|
+
def list_source_credentials(params = {}, options = {})
|
1402
|
+
req = build_request(:list_source_credentials, params)
|
1403
|
+
req.send_request(options)
|
1404
|
+
end
|
1405
|
+
|
1307
1406
|
# Starts running a build.
|
1308
1407
|
#
|
1309
1408
|
# @option params [required, String] :project_name
|
@@ -2071,7 +2170,7 @@ module Aws::CodeBuild
|
|
2071
2170
|
params: params,
|
2072
2171
|
config: config)
|
2073
2172
|
context[:gem_name] = 'aws-sdk-codebuild'
|
2074
|
-
context[:gem_version] = '1.
|
2173
|
+
context[:gem_version] = '1.25.0'
|
2075
2174
|
Seahorse::Client::Request.new(handlers, context)
|
2076
2175
|
end
|
2077
2176
|
|
@@ -15,6 +15,7 @@ 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
|
+
AuthType = Shapes::StringShape.new(name: 'AuthType')
|
18
19
|
BatchDeleteBuildsInput = Shapes::StructureShape.new(name: 'BatchDeleteBuildsInput')
|
19
20
|
BatchDeleteBuildsOutput = Shapes::StructureShape.new(name: 'BatchDeleteBuildsOutput')
|
20
21
|
BatchGetBuildsInput = Shapes::StructureShape.new(name: 'BatchGetBuildsInput')
|
@@ -41,6 +42,8 @@ module Aws::CodeBuild
|
|
41
42
|
CreateWebhookOutput = Shapes::StructureShape.new(name: 'CreateWebhookOutput')
|
42
43
|
DeleteProjectInput = Shapes::StructureShape.new(name: 'DeleteProjectInput')
|
43
44
|
DeleteProjectOutput = Shapes::StructureShape.new(name: 'DeleteProjectOutput')
|
45
|
+
DeleteSourceCredentialsInput = Shapes::StructureShape.new(name: 'DeleteSourceCredentialsInput')
|
46
|
+
DeleteSourceCredentialsOutput = Shapes::StructureShape.new(name: 'DeleteSourceCredentialsOutput')
|
44
47
|
DeleteWebhookInput = Shapes::StructureShape.new(name: 'DeleteWebhookInput')
|
45
48
|
DeleteWebhookOutput = Shapes::StructureShape.new(name: 'DeleteWebhookOutput')
|
46
49
|
EnvironmentImage = Shapes::StructureShape.new(name: 'EnvironmentImage')
|
@@ -55,6 +58,8 @@ module Aws::CodeBuild
|
|
55
58
|
EnvironmentVariables = Shapes::ListShape.new(name: 'EnvironmentVariables')
|
56
59
|
GitCloneDepth = Shapes::IntegerShape.new(name: 'GitCloneDepth')
|
57
60
|
ImageVersions = Shapes::ListShape.new(name: 'ImageVersions')
|
61
|
+
ImportSourceCredentialsInput = Shapes::StructureShape.new(name: 'ImportSourceCredentialsInput')
|
62
|
+
ImportSourceCredentialsOutput = Shapes::StructureShape.new(name: 'ImportSourceCredentialsOutput')
|
58
63
|
InvalidInputException = Shapes::StructureShape.new(name: 'InvalidInputException')
|
59
64
|
InvalidateProjectCacheInput = Shapes::StructureShape.new(name: 'InvalidateProjectCacheInput')
|
60
65
|
InvalidateProjectCacheOutput = Shapes::StructureShape.new(name: 'InvalidateProjectCacheOutput')
|
@@ -68,6 +73,8 @@ module Aws::CodeBuild
|
|
68
73
|
ListCuratedEnvironmentImagesOutput = Shapes::StructureShape.new(name: 'ListCuratedEnvironmentImagesOutput')
|
69
74
|
ListProjectsInput = Shapes::StructureShape.new(name: 'ListProjectsInput')
|
70
75
|
ListProjectsOutput = Shapes::StructureShape.new(name: 'ListProjectsOutput')
|
76
|
+
ListSourceCredentialsInput = Shapes::StructureShape.new(name: 'ListSourceCredentialsInput')
|
77
|
+
ListSourceCredentialsOutput = Shapes::StructureShape.new(name: 'ListSourceCredentialsOutput')
|
71
78
|
LogsConfig = Shapes::StructureShape.new(name: 'LogsConfig')
|
72
79
|
LogsConfigStatusType = Shapes::StringShape.new(name: 'LogsConfigStatusType')
|
73
80
|
LogsLocation = Shapes::StructureShape.new(name: 'LogsLocation')
|
@@ -96,9 +103,13 @@ module Aws::CodeBuild
|
|
96
103
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
97
104
|
S3LogsConfig = Shapes::StructureShape.new(name: 'S3LogsConfig')
|
98
105
|
SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
|
106
|
+
SensitiveNonEmptyString = Shapes::StringShape.new(name: 'SensitiveNonEmptyString')
|
107
|
+
ServerType = Shapes::StringShape.new(name: 'ServerType')
|
99
108
|
SortOrderType = Shapes::StringShape.new(name: 'SortOrderType')
|
100
109
|
SourceAuth = Shapes::StructureShape.new(name: 'SourceAuth')
|
101
110
|
SourceAuthType = Shapes::StringShape.new(name: 'SourceAuthType')
|
111
|
+
SourceCredentialsInfo = Shapes::StructureShape.new(name: 'SourceCredentialsInfo')
|
112
|
+
SourceCredentialsInfos = Shapes::ListShape.new(name: 'SourceCredentialsInfos')
|
102
113
|
SourceType = Shapes::StringShape.new(name: 'SourceType')
|
103
114
|
StartBuildInput = Shapes::StructureShape.new(name: 'StartBuildInput')
|
104
115
|
StartBuildOutput = Shapes::StructureShape.new(name: 'StartBuildOutput')
|
@@ -239,6 +250,12 @@ module Aws::CodeBuild
|
|
239
250
|
|
240
251
|
DeleteProjectOutput.struct_class = Types::DeleteProjectOutput
|
241
252
|
|
253
|
+
DeleteSourceCredentialsInput.add_member(:arn, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "arn"))
|
254
|
+
DeleteSourceCredentialsInput.struct_class = Types::DeleteSourceCredentialsInput
|
255
|
+
|
256
|
+
DeleteSourceCredentialsOutput.add_member(:arn, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "arn"))
|
257
|
+
DeleteSourceCredentialsOutput.struct_class = Types::DeleteSourceCredentialsOutput
|
258
|
+
|
242
259
|
DeleteWebhookInput.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location_name: "projectName"))
|
243
260
|
DeleteWebhookInput.struct_class = Types::DeleteWebhookInput
|
244
261
|
|
@@ -272,6 +289,15 @@ module Aws::CodeBuild
|
|
272
289
|
|
273
290
|
ImageVersions.member = Shapes::ShapeRef.new(shape: String)
|
274
291
|
|
292
|
+
ImportSourceCredentialsInput.add_member(:username, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "username"))
|
293
|
+
ImportSourceCredentialsInput.add_member(:token, Shapes::ShapeRef.new(shape: SensitiveNonEmptyString, required: true, location_name: "token"))
|
294
|
+
ImportSourceCredentialsInput.add_member(:server_type, Shapes::ShapeRef.new(shape: ServerType, required: true, location_name: "serverType"))
|
295
|
+
ImportSourceCredentialsInput.add_member(:auth_type, Shapes::ShapeRef.new(shape: AuthType, required: true, location_name: "authType"))
|
296
|
+
ImportSourceCredentialsInput.struct_class = Types::ImportSourceCredentialsInput
|
297
|
+
|
298
|
+
ImportSourceCredentialsOutput.add_member(:arn, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "arn"))
|
299
|
+
ImportSourceCredentialsOutput.struct_class = Types::ImportSourceCredentialsOutput
|
300
|
+
|
275
301
|
InvalidateProjectCacheInput.add_member(:project_name, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "projectName"))
|
276
302
|
InvalidateProjectCacheInput.struct_class = Types::InvalidateProjectCacheInput
|
277
303
|
|
@@ -308,6 +334,11 @@ module Aws::CodeBuild
|
|
308
334
|
ListProjectsOutput.add_member(:projects, Shapes::ShapeRef.new(shape: ProjectNames, location_name: "projects"))
|
309
335
|
ListProjectsOutput.struct_class = Types::ListProjectsOutput
|
310
336
|
|
337
|
+
ListSourceCredentialsInput.struct_class = Types::ListSourceCredentialsInput
|
338
|
+
|
339
|
+
ListSourceCredentialsOutput.add_member(:source_credentials_infos, Shapes::ShapeRef.new(shape: SourceCredentialsInfos, location_name: "sourceCredentialsInfos"))
|
340
|
+
ListSourceCredentialsOutput.struct_class = Types::ListSourceCredentialsOutput
|
341
|
+
|
311
342
|
LogsConfig.add_member(:cloud_watch_logs, Shapes::ShapeRef.new(shape: CloudWatchLogsConfig, location_name: "cloudWatchLogs"))
|
312
343
|
LogsConfig.add_member(:s3_logs, Shapes::ShapeRef.new(shape: S3LogsConfig, location_name: "s3Logs"))
|
313
344
|
LogsConfig.struct_class = Types::LogsConfig
|
@@ -413,6 +444,13 @@ module Aws::CodeBuild
|
|
413
444
|
SourceAuth.add_member(:resource, Shapes::ShapeRef.new(shape: String, location_name: "resource"))
|
414
445
|
SourceAuth.struct_class = Types::SourceAuth
|
415
446
|
|
447
|
+
SourceCredentialsInfo.add_member(:arn, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "arn"))
|
448
|
+
SourceCredentialsInfo.add_member(:server_type, Shapes::ShapeRef.new(shape: ServerType, location_name: "serverType"))
|
449
|
+
SourceCredentialsInfo.add_member(:auth_type, Shapes::ShapeRef.new(shape: AuthType, location_name: "authType"))
|
450
|
+
SourceCredentialsInfo.struct_class = Types::SourceCredentialsInfo
|
451
|
+
|
452
|
+
SourceCredentialsInfos.member = Shapes::ShapeRef.new(shape: SourceCredentialsInfo)
|
453
|
+
|
416
454
|
StartBuildInput.add_member(:project_name, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "projectName"))
|
417
455
|
StartBuildInput.add_member(:secondary_sources_override, Shapes::ShapeRef.new(shape: ProjectSources, location_name: "secondarySourcesOverride"))
|
418
456
|
StartBuildInput.add_member(:secondary_sources_version_override, Shapes::ShapeRef.new(shape: ProjectSecondarySourceVersions, location_name: "secondarySourcesVersionOverride"))
|
@@ -575,6 +613,16 @@ module Aws::CodeBuild
|
|
575
613
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
576
614
|
end)
|
577
615
|
|
616
|
+
api.add_operation(:delete_source_credentials, Seahorse::Model::Operation.new.tap do |o|
|
617
|
+
o.name = "DeleteSourceCredentials"
|
618
|
+
o.http_method = "POST"
|
619
|
+
o.http_request_uri = "/"
|
620
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteSourceCredentialsInput)
|
621
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteSourceCredentialsOutput)
|
622
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
623
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
624
|
+
end)
|
625
|
+
|
578
626
|
api.add_operation(:delete_webhook, Seahorse::Model::Operation.new.tap do |o|
|
579
627
|
o.name = "DeleteWebhook"
|
580
628
|
o.http_method = "POST"
|
@@ -586,6 +634,16 @@ module Aws::CodeBuild
|
|
586
634
|
o.errors << Shapes::ShapeRef.new(shape: OAuthProviderException)
|
587
635
|
end)
|
588
636
|
|
637
|
+
api.add_operation(:import_source_credentials, Seahorse::Model::Operation.new.tap do |o|
|
638
|
+
o.name = "ImportSourceCredentials"
|
639
|
+
o.http_method = "POST"
|
640
|
+
o.http_request_uri = "/"
|
641
|
+
o.input = Shapes::ShapeRef.new(shape: ImportSourceCredentialsInput)
|
642
|
+
o.output = Shapes::ShapeRef.new(shape: ImportSourceCredentialsOutput)
|
643
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
644
|
+
o.errors << Shapes::ShapeRef.new(shape: AccountLimitExceededException)
|
645
|
+
end)
|
646
|
+
|
589
647
|
api.add_operation(:invalidate_project_cache, Seahorse::Model::Operation.new.tap do |o|
|
590
648
|
o.name = "InvalidateProjectCache"
|
591
649
|
o.http_method = "POST"
|
@@ -632,6 +690,14 @@ module Aws::CodeBuild
|
|
632
690
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
633
691
|
end)
|
634
692
|
|
693
|
+
api.add_operation(:list_source_credentials, Seahorse::Model::Operation.new.tap do |o|
|
694
|
+
o.name = "ListSourceCredentials"
|
695
|
+
o.http_method = "POST"
|
696
|
+
o.http_request_uri = "/"
|
697
|
+
o.input = Shapes::ShapeRef.new(shape: ListSourceCredentialsInput)
|
698
|
+
o.output = Shapes::ShapeRef.new(shape: ListSourceCredentialsOutput)
|
699
|
+
end)
|
700
|
+
|
635
701
|
api.add_operation(:start_build, Seahorse::Model::Operation.new.tap do |o|
|
636
702
|
o.name = "StartBuild"
|
637
703
|
o.http_method = "POST"
|
@@ -804,6 +804,35 @@ module Aws::CodeBuild
|
|
804
804
|
#
|
805
805
|
class DeleteProjectOutput < Aws::EmptyStructure; end
|
806
806
|
|
807
|
+
# @note When making an API call, you may pass DeleteSourceCredentialsInput
|
808
|
+
# data as a hash:
|
809
|
+
#
|
810
|
+
# {
|
811
|
+
# arn: "NonEmptyString", # required
|
812
|
+
# }
|
813
|
+
#
|
814
|
+
# @!attribute [rw] arn
|
815
|
+
# The Amazon Resource Name (ARN) of the token.
|
816
|
+
# @return [String]
|
817
|
+
#
|
818
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteSourceCredentialsInput AWS API Documentation
|
819
|
+
#
|
820
|
+
class DeleteSourceCredentialsInput < Struct.new(
|
821
|
+
:arn)
|
822
|
+
include Aws::Structure
|
823
|
+
end
|
824
|
+
|
825
|
+
# @!attribute [rw] arn
|
826
|
+
# The Amazon Resource Name (ARN) of the token.
|
827
|
+
# @return [String]
|
828
|
+
#
|
829
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteSourceCredentialsOutput AWS API Documentation
|
830
|
+
#
|
831
|
+
class DeleteSourceCredentialsOutput < Struct.new(
|
832
|
+
:arn)
|
833
|
+
include Aws::Structure
|
834
|
+
end
|
835
|
+
|
807
836
|
# @note When making an API call, you may pass DeleteWebhookInput
|
808
837
|
# data as a hash:
|
809
838
|
#
|
@@ -932,6 +961,59 @@ module Aws::CodeBuild
|
|
932
961
|
include Aws::Structure
|
933
962
|
end
|
934
963
|
|
964
|
+
# @note When making an API call, you may pass ImportSourceCredentialsInput
|
965
|
+
# data as a hash:
|
966
|
+
#
|
967
|
+
# {
|
968
|
+
# username: "NonEmptyString",
|
969
|
+
# token: "SensitiveNonEmptyString", # required
|
970
|
+
# server_type: "GITHUB", # required, accepts GITHUB, BITBUCKET, GITHUB_ENTERPRISE
|
971
|
+
# auth_type: "OAUTH", # required, accepts OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN
|
972
|
+
# }
|
973
|
+
#
|
974
|
+
# @!attribute [rw] username
|
975
|
+
# The Bitbucket username when the `authType` is BASIC\_AUTH. This
|
976
|
+
# parameter is not valid for other types of source providers or
|
977
|
+
# connections.
|
978
|
+
# @return [String]
|
979
|
+
#
|
980
|
+
# @!attribute [rw] token
|
981
|
+
# For GitHub or GitHub Enterprise, this is the personal access token.
|
982
|
+
# For Bitbucket, this is the app password.
|
983
|
+
# @return [String]
|
984
|
+
#
|
985
|
+
# @!attribute [rw] server_type
|
986
|
+
# The source provider used for this project.
|
987
|
+
# @return [String]
|
988
|
+
#
|
989
|
+
# @!attribute [rw] auth_type
|
990
|
+
# The type of authentication used to connect to a GitHub, GitHub
|
991
|
+
# Enterprise, or Bitbucket repository. An OAUTH connection is not
|
992
|
+
# supported by the API and must be created using the AWS CodeBuild
|
993
|
+
# console.
|
994
|
+
# @return [String]
|
995
|
+
#
|
996
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ImportSourceCredentialsInput AWS API Documentation
|
997
|
+
#
|
998
|
+
class ImportSourceCredentialsInput < Struct.new(
|
999
|
+
:username,
|
1000
|
+
:token,
|
1001
|
+
:server_type,
|
1002
|
+
:auth_type)
|
1003
|
+
include Aws::Structure
|
1004
|
+
end
|
1005
|
+
|
1006
|
+
# @!attribute [rw] arn
|
1007
|
+
# The Amazon Resource Name (ARN) of the token.
|
1008
|
+
# @return [String]
|
1009
|
+
#
|
1010
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ImportSourceCredentialsOutput AWS API Documentation
|
1011
|
+
#
|
1012
|
+
class ImportSourceCredentialsOutput < Struct.new(
|
1013
|
+
:arn)
|
1014
|
+
include Aws::Structure
|
1015
|
+
end
|
1016
|
+
|
935
1017
|
# @note When making an API call, you may pass InvalidateProjectCacheInput
|
936
1018
|
# data as a hash:
|
937
1019
|
#
|
@@ -1161,6 +1243,25 @@ module Aws::CodeBuild
|
|
1161
1243
|
include Aws::Structure
|
1162
1244
|
end
|
1163
1245
|
|
1246
|
+
# @api private
|
1247
|
+
#
|
1248
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListSourceCredentialsInput AWS API Documentation
|
1249
|
+
#
|
1250
|
+
class ListSourceCredentialsInput < Aws::EmptyStructure; end
|
1251
|
+
|
1252
|
+
# @!attribute [rw] source_credentials_infos
|
1253
|
+
# A list of `SourceCredentialsInfo` objects. Each
|
1254
|
+
# `SourceCredentialsInfo` object includes the authentication type,
|
1255
|
+
# token ARN, and type of source provider for one set of credentials.
|
1256
|
+
# @return [Array<Types::SourceCredentialsInfo>]
|
1257
|
+
#
|
1258
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListSourceCredentialsOutput AWS API Documentation
|
1259
|
+
#
|
1260
|
+
class ListSourceCredentialsOutput < Struct.new(
|
1261
|
+
:source_credentials_infos)
|
1262
|
+
include Aws::Structure
|
1263
|
+
end
|
1264
|
+
|
1164
1265
|
# Information about logs for a build project. These can be logs in
|
1165
1266
|
# Amazon CloudWatch Logs, built in a specified S3 bucket, or both.
|
1166
1267
|
#
|
@@ -1822,8 +1923,7 @@ module Aws::CodeBuild
|
|
1822
1923
|
# access the source code to be built.
|
1823
1924
|
#
|
1824
1925
|
# This information is for the AWS CodeBuild console's use only. Your
|
1825
|
-
# code should not get or set this information directly
|
1826
|
-
# build project's source `type` value is `BITBUCKET` or `GITHUB`).
|
1926
|
+
# code should not get or set this information directly.
|
1827
1927
|
# @return [Types::SourceAuth]
|
1828
1928
|
#
|
1829
1929
|
# @!attribute [rw] report_build_status
|
@@ -1939,8 +2039,7 @@ module Aws::CodeBuild
|
|
1939
2039
|
# access the source code to be built.
|
1940
2040
|
#
|
1941
2041
|
# This information is for the AWS CodeBuild console's use only. Your
|
1942
|
-
# code should not get or set this information directly
|
1943
|
-
# project's source `type` value is `BITBUCKET` or `GITHUB`).
|
2042
|
+
# code should not get or set this information directly.
|
1944
2043
|
#
|
1945
2044
|
# @note When making an API call, you may pass SourceAuth
|
1946
2045
|
# data as a hash:
|
@@ -1951,6 +2050,10 @@ module Aws::CodeBuild
|
|
1951
2050
|
# }
|
1952
2051
|
#
|
1953
2052
|
# @!attribute [rw] type
|
2053
|
+
# <note markdown="1"> This data type is deprecated and is no longer accurate or used.
|
2054
|
+
#
|
2055
|
+
# </note>
|
2056
|
+
#
|
1954
2057
|
# The authorization type to use. The only valid value is `OAUTH`,
|
1955
2058
|
# which represents the OAuth authorization type.
|
1956
2059
|
# @return [String]
|
@@ -1967,6 +2070,32 @@ module Aws::CodeBuild
|
|
1967
2070
|
include Aws::Structure
|
1968
2071
|
end
|
1969
2072
|
|
2073
|
+
# Information about the credentials for a GitHub, GitHub Enterprise, or
|
2074
|
+
# Bitbucket repository.
|
2075
|
+
#
|
2076
|
+
# @!attribute [rw] arn
|
2077
|
+
# The Amazon Resource Name (ARN) of the token.
|
2078
|
+
# @return [String]
|
2079
|
+
#
|
2080
|
+
# @!attribute [rw] server_type
|
2081
|
+
# The type of source provider. The valid options are GITHUB,
|
2082
|
+
# GITHUB\_ENTERPRISE, or BITBUCKET.
|
2083
|
+
# @return [String]
|
2084
|
+
#
|
2085
|
+
# @!attribute [rw] auth_type
|
2086
|
+
# The type of authentication used by the credentials. Valid options
|
2087
|
+
# are OAUTH, BASIC\_AUTH, or PERSONAL\_ACCESS\_TOKEN.
|
2088
|
+
# @return [String]
|
2089
|
+
#
|
2090
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/SourceCredentialsInfo AWS API Documentation
|
2091
|
+
#
|
2092
|
+
class SourceCredentialsInfo < Struct.new(
|
2093
|
+
:arn,
|
2094
|
+
:server_type,
|
2095
|
+
:auth_type)
|
2096
|
+
include Aws::Structure
|
2097
|
+
end
|
2098
|
+
|
1970
2099
|
# @note When making an API call, you may pass StartBuildInput
|
1971
2100
|
# data as a hash:
|
1972
2101
|
#
|
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.25.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: 2018-
|
11
|
+
date: 2018-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|