aws-sdk-codegurureviewer 1.0.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 +7 -0
- data/lib/aws-sdk-codegurureviewer.rb +47 -0
- data/lib/aws-sdk-codegurureviewer/client.rb +519 -0
- data/lib/aws-sdk-codegurureviewer/client_api.rb +213 -0
- data/lib/aws-sdk-codegurureviewer/customizations.rb +0 -0
- data/lib/aws-sdk-codegurureviewer/errors.rb +110 -0
- data/lib/aws-sdk-codegurureviewer/resource.rb +23 -0
- data/lib/aws-sdk-codegurureviewer/types.rb +460 -0
- metadata +88 -0
@@ -0,0 +1,213 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::CodeGuruReviewer
|
9
|
+
# @api private
|
10
|
+
module ClientApi
|
11
|
+
|
12
|
+
include Seahorse::Model
|
13
|
+
|
14
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
15
|
+
Arn = Shapes::StringShape.new(name: 'Arn')
|
16
|
+
AssociateRepositoryRequest = Shapes::StructureShape.new(name: 'AssociateRepositoryRequest')
|
17
|
+
AssociateRepositoryResponse = Shapes::StructureShape.new(name: 'AssociateRepositoryResponse')
|
18
|
+
AssociationId = Shapes::StringShape.new(name: 'AssociationId')
|
19
|
+
ClientRequestToken = Shapes::StringShape.new(name: 'ClientRequestToken')
|
20
|
+
CodeCommitRepository = Shapes::StructureShape.new(name: 'CodeCommitRepository')
|
21
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
22
|
+
DescribeRepositoryAssociationRequest = Shapes::StructureShape.new(name: 'DescribeRepositoryAssociationRequest')
|
23
|
+
DescribeRepositoryAssociationResponse = Shapes::StructureShape.new(name: 'DescribeRepositoryAssociationResponse')
|
24
|
+
DisassociateRepositoryRequest = Shapes::StructureShape.new(name: 'DisassociateRepositoryRequest')
|
25
|
+
DisassociateRepositoryResponse = Shapes::StructureShape.new(name: 'DisassociateRepositoryResponse')
|
26
|
+
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
27
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
28
|
+
ListRepositoryAssociationsRequest = Shapes::StructureShape.new(name: 'ListRepositoryAssociationsRequest')
|
29
|
+
ListRepositoryAssociationsResponse = Shapes::StructureShape.new(name: 'ListRepositoryAssociationsResponse')
|
30
|
+
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
31
|
+
Name = Shapes::StringShape.new(name: 'Name')
|
32
|
+
Names = Shapes::ListShape.new(name: 'Names')
|
33
|
+
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
34
|
+
NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
|
35
|
+
Owner = Shapes::StringShape.new(name: 'Owner')
|
36
|
+
Owners = Shapes::ListShape.new(name: 'Owners')
|
37
|
+
ProviderType = Shapes::StringShape.new(name: 'ProviderType')
|
38
|
+
ProviderTypes = Shapes::ListShape.new(name: 'ProviderTypes')
|
39
|
+
Repository = Shapes::StructureShape.new(name: 'Repository')
|
40
|
+
RepositoryAssociation = Shapes::StructureShape.new(name: 'RepositoryAssociation')
|
41
|
+
RepositoryAssociationState = Shapes::StringShape.new(name: 'RepositoryAssociationState')
|
42
|
+
RepositoryAssociationStates = Shapes::ListShape.new(name: 'RepositoryAssociationStates')
|
43
|
+
RepositoryAssociationSummaries = Shapes::ListShape.new(name: 'RepositoryAssociationSummaries')
|
44
|
+
RepositoryAssociationSummary = Shapes::StructureShape.new(name: 'RepositoryAssociationSummary')
|
45
|
+
StateReason = Shapes::StringShape.new(name: 'StateReason')
|
46
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
47
|
+
TimeStamp = Shapes::TimestampShape.new(name: 'TimeStamp')
|
48
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
49
|
+
|
50
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
51
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
52
|
+
|
53
|
+
AssociateRepositoryRequest.add_member(:repository, Shapes::ShapeRef.new(shape: Repository, required: true, location_name: "Repository"))
|
54
|
+
AssociateRepositoryRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
|
55
|
+
AssociateRepositoryRequest.struct_class = Types::AssociateRepositoryRequest
|
56
|
+
|
57
|
+
AssociateRepositoryResponse.add_member(:repository_association, Shapes::ShapeRef.new(shape: RepositoryAssociation, location_name: "RepositoryAssociation"))
|
58
|
+
AssociateRepositoryResponse.struct_class = Types::AssociateRepositoryResponse
|
59
|
+
|
60
|
+
CodeCommitRepository.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "Name"))
|
61
|
+
CodeCommitRepository.struct_class = Types::CodeCommitRepository
|
62
|
+
|
63
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
64
|
+
ConflictException.struct_class = Types::ConflictException
|
65
|
+
|
66
|
+
DescribeRepositoryAssociationRequest.add_member(:association_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "AssociationArn"))
|
67
|
+
DescribeRepositoryAssociationRequest.struct_class = Types::DescribeRepositoryAssociationRequest
|
68
|
+
|
69
|
+
DescribeRepositoryAssociationResponse.add_member(:repository_association, Shapes::ShapeRef.new(shape: RepositoryAssociation, location_name: "RepositoryAssociation"))
|
70
|
+
DescribeRepositoryAssociationResponse.struct_class = Types::DescribeRepositoryAssociationResponse
|
71
|
+
|
72
|
+
DisassociateRepositoryRequest.add_member(:association_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "AssociationArn"))
|
73
|
+
DisassociateRepositoryRequest.struct_class = Types::DisassociateRepositoryRequest
|
74
|
+
|
75
|
+
DisassociateRepositoryResponse.add_member(:repository_association, Shapes::ShapeRef.new(shape: RepositoryAssociation, location_name: "RepositoryAssociation"))
|
76
|
+
DisassociateRepositoryResponse.struct_class = Types::DisassociateRepositoryResponse
|
77
|
+
|
78
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
79
|
+
InternalServerException.struct_class = Types::InternalServerException
|
80
|
+
|
81
|
+
ListRepositoryAssociationsRequest.add_member(:provider_types, Shapes::ShapeRef.new(shape: ProviderTypes, location: "querystring", location_name: "ProviderType"))
|
82
|
+
ListRepositoryAssociationsRequest.add_member(:states, Shapes::ShapeRef.new(shape: RepositoryAssociationStates, location: "querystring", location_name: "State"))
|
83
|
+
ListRepositoryAssociationsRequest.add_member(:names, Shapes::ShapeRef.new(shape: Names, location: "querystring", location_name: "Name"))
|
84
|
+
ListRepositoryAssociationsRequest.add_member(:owners, Shapes::ShapeRef.new(shape: Owners, location: "querystring", location_name: "Owner"))
|
85
|
+
ListRepositoryAssociationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "MaxResults"))
|
86
|
+
ListRepositoryAssociationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
|
87
|
+
ListRepositoryAssociationsRequest.struct_class = Types::ListRepositoryAssociationsRequest
|
88
|
+
|
89
|
+
ListRepositoryAssociationsResponse.add_member(:repository_association_summaries, Shapes::ShapeRef.new(shape: RepositoryAssociationSummaries, location_name: "RepositoryAssociationSummaries"))
|
90
|
+
ListRepositoryAssociationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
91
|
+
ListRepositoryAssociationsResponse.struct_class = Types::ListRepositoryAssociationsResponse
|
92
|
+
|
93
|
+
Names.member = Shapes::ShapeRef.new(shape: Name)
|
94
|
+
|
95
|
+
NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
96
|
+
NotFoundException.struct_class = Types::NotFoundException
|
97
|
+
|
98
|
+
Owners.member = Shapes::ShapeRef.new(shape: Owner)
|
99
|
+
|
100
|
+
ProviderTypes.member = Shapes::ShapeRef.new(shape: ProviderType)
|
101
|
+
|
102
|
+
Repository.add_member(:code_commit, Shapes::ShapeRef.new(shape: CodeCommitRepository, location_name: "CodeCommit"))
|
103
|
+
Repository.struct_class = Types::Repository
|
104
|
+
|
105
|
+
RepositoryAssociation.add_member(:association_id, Shapes::ShapeRef.new(shape: AssociationId, location_name: "AssociationId"))
|
106
|
+
RepositoryAssociation.add_member(:association_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AssociationArn"))
|
107
|
+
RepositoryAssociation.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
|
108
|
+
RepositoryAssociation.add_member(:owner, Shapes::ShapeRef.new(shape: Owner, location_name: "Owner"))
|
109
|
+
RepositoryAssociation.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, location_name: "ProviderType"))
|
110
|
+
RepositoryAssociation.add_member(:state, Shapes::ShapeRef.new(shape: RepositoryAssociationState, location_name: "State"))
|
111
|
+
RepositoryAssociation.add_member(:state_reason, Shapes::ShapeRef.new(shape: StateReason, location_name: "StateReason"))
|
112
|
+
RepositoryAssociation.add_member(:last_updated_time_stamp, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "LastUpdatedTimeStamp"))
|
113
|
+
RepositoryAssociation.add_member(:created_time_stamp, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "CreatedTimeStamp"))
|
114
|
+
RepositoryAssociation.struct_class = Types::RepositoryAssociation
|
115
|
+
|
116
|
+
RepositoryAssociationStates.member = Shapes::ShapeRef.new(shape: RepositoryAssociationState)
|
117
|
+
|
118
|
+
RepositoryAssociationSummaries.member = Shapes::ShapeRef.new(shape: RepositoryAssociationSummary)
|
119
|
+
|
120
|
+
RepositoryAssociationSummary.add_member(:association_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AssociationArn"))
|
121
|
+
RepositoryAssociationSummary.add_member(:last_updated_time_stamp, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "LastUpdatedTimeStamp"))
|
122
|
+
RepositoryAssociationSummary.add_member(:association_id, Shapes::ShapeRef.new(shape: AssociationId, location_name: "AssociationId"))
|
123
|
+
RepositoryAssociationSummary.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
|
124
|
+
RepositoryAssociationSummary.add_member(:owner, Shapes::ShapeRef.new(shape: Owner, location_name: "Owner"))
|
125
|
+
RepositoryAssociationSummary.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, location_name: "ProviderType"))
|
126
|
+
RepositoryAssociationSummary.add_member(:state, Shapes::ShapeRef.new(shape: RepositoryAssociationState, location_name: "State"))
|
127
|
+
RepositoryAssociationSummary.struct_class = Types::RepositoryAssociationSummary
|
128
|
+
|
129
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
130
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
131
|
+
|
132
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
133
|
+
ValidationException.struct_class = Types::ValidationException
|
134
|
+
|
135
|
+
|
136
|
+
# @api private
|
137
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
138
|
+
|
139
|
+
api.version = "2019-09-19"
|
140
|
+
|
141
|
+
api.metadata = {
|
142
|
+
"apiVersion" => "2019-09-19",
|
143
|
+
"endpointPrefix" => "codeguru-reviewer",
|
144
|
+
"jsonVersion" => "1.1",
|
145
|
+
"protocol" => "rest-json",
|
146
|
+
"serviceAbbreviation" => "CodeGuruReviewer",
|
147
|
+
"serviceFullName" => "Amazon CodeGuru Reviewer",
|
148
|
+
"serviceId" => "CodeGuru Reviewer",
|
149
|
+
"signatureVersion" => "v4",
|
150
|
+
"signingName" => "codeguru-reviewer",
|
151
|
+
"uid" => "codeguru-reviewer-2019-09-19",
|
152
|
+
}
|
153
|
+
|
154
|
+
api.add_operation(:associate_repository, Seahorse::Model::Operation.new.tap do |o|
|
155
|
+
o.name = "AssociateRepository"
|
156
|
+
o.http_method = "POST"
|
157
|
+
o.http_request_uri = "/associations"
|
158
|
+
o.input = Shapes::ShapeRef.new(shape: AssociateRepositoryRequest)
|
159
|
+
o.output = Shapes::ShapeRef.new(shape: AssociateRepositoryResponse)
|
160
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
161
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
162
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
163
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
164
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
165
|
+
end)
|
166
|
+
|
167
|
+
api.add_operation(:describe_repository_association, Seahorse::Model::Operation.new.tap do |o|
|
168
|
+
o.name = "DescribeRepositoryAssociation"
|
169
|
+
o.http_method = "GET"
|
170
|
+
o.http_request_uri = "/associations/{AssociationArn}"
|
171
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeRepositoryAssociationRequest)
|
172
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeRepositoryAssociationResponse)
|
173
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
174
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
175
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
176
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
177
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
178
|
+
end)
|
179
|
+
|
180
|
+
api.add_operation(:disassociate_repository, Seahorse::Model::Operation.new.tap do |o|
|
181
|
+
o.name = "DisassociateRepository"
|
182
|
+
o.http_method = "DELETE"
|
183
|
+
o.http_request_uri = "/associations/{AssociationArn}"
|
184
|
+
o.input = Shapes::ShapeRef.new(shape: DisassociateRepositoryRequest)
|
185
|
+
o.output = Shapes::ShapeRef.new(shape: DisassociateRepositoryResponse)
|
186
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
187
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
188
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
189
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
190
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
191
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
192
|
+
end)
|
193
|
+
|
194
|
+
api.add_operation(:list_repository_associations, Seahorse::Model::Operation.new.tap do |o|
|
195
|
+
o.name = "ListRepositoryAssociations"
|
196
|
+
o.http_method = "GET"
|
197
|
+
o.http_request_uri = "/associations"
|
198
|
+
o.input = Shapes::ShapeRef.new(shape: ListRepositoryAssociationsRequest)
|
199
|
+
o.output = Shapes::ShapeRef.new(shape: ListRepositoryAssociationsResponse)
|
200
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
201
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
202
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
203
|
+
o[:pager] = Aws::Pager.new(
|
204
|
+
limit_key: "max_results",
|
205
|
+
tokens: {
|
206
|
+
"next_token" => "next_token"
|
207
|
+
}
|
208
|
+
)
|
209
|
+
end)
|
210
|
+
end
|
211
|
+
|
212
|
+
end
|
213
|
+
end
|
File without changes
|
@@ -0,0 +1,110 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::CodeGuruReviewer
|
9
|
+
module Errors
|
10
|
+
|
11
|
+
extend Aws::Errors::DynamicErrors
|
12
|
+
|
13
|
+
class AccessDeniedException < ServiceError
|
14
|
+
|
15
|
+
# @param [Seahorse::Client::RequestContext] context
|
16
|
+
# @param [String] message
|
17
|
+
# @param [Aws::CodeGuruReviewer::Types::AccessDeniedException] data
|
18
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
19
|
+
super(context, message, data)
|
20
|
+
end
|
21
|
+
|
22
|
+
# @return [String]
|
23
|
+
def message
|
24
|
+
@message || @data[:message]
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
class ConflictException < ServiceError
|
30
|
+
|
31
|
+
# @param [Seahorse::Client::RequestContext] context
|
32
|
+
# @param [String] message
|
33
|
+
# @param [Aws::CodeGuruReviewer::Types::ConflictException] data
|
34
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
35
|
+
super(context, message, data)
|
36
|
+
end
|
37
|
+
|
38
|
+
# @return [String]
|
39
|
+
def message
|
40
|
+
@message || @data[:message]
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
class InternalServerException < ServiceError
|
46
|
+
|
47
|
+
# @param [Seahorse::Client::RequestContext] context
|
48
|
+
# @param [String] message
|
49
|
+
# @param [Aws::CodeGuruReviewer::Types::InternalServerException] data
|
50
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
51
|
+
super(context, message, data)
|
52
|
+
end
|
53
|
+
|
54
|
+
# @return [String]
|
55
|
+
def message
|
56
|
+
@message || @data[:message]
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
60
|
+
|
61
|
+
class NotFoundException < ServiceError
|
62
|
+
|
63
|
+
# @param [Seahorse::Client::RequestContext] context
|
64
|
+
# @param [String] message
|
65
|
+
# @param [Aws::CodeGuruReviewer::Types::NotFoundException] data
|
66
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
67
|
+
super(context, message, data)
|
68
|
+
end
|
69
|
+
|
70
|
+
# @return [String]
|
71
|
+
def message
|
72
|
+
@message || @data[:message]
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
class ThrottlingException < ServiceError
|
78
|
+
|
79
|
+
# @param [Seahorse::Client::RequestContext] context
|
80
|
+
# @param [String] message
|
81
|
+
# @param [Aws::CodeGuruReviewer::Types::ThrottlingException] data
|
82
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
83
|
+
super(context, message, data)
|
84
|
+
end
|
85
|
+
|
86
|
+
# @return [String]
|
87
|
+
def message
|
88
|
+
@message || @data[:message]
|
89
|
+
end
|
90
|
+
|
91
|
+
end
|
92
|
+
|
93
|
+
class ValidationException < ServiceError
|
94
|
+
|
95
|
+
# @param [Seahorse::Client::RequestContext] context
|
96
|
+
# @param [String] message
|
97
|
+
# @param [Aws::CodeGuruReviewer::Types::ValidationException] data
|
98
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
99
|
+
super(context, message, data)
|
100
|
+
end
|
101
|
+
|
102
|
+
# @return [String]
|
103
|
+
def message
|
104
|
+
@message || @data[:message]
|
105
|
+
end
|
106
|
+
|
107
|
+
end
|
108
|
+
|
109
|
+
end
|
110
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::CodeGuruReviewer
|
9
|
+
class Resource
|
10
|
+
|
11
|
+
# @param options ({})
|
12
|
+
# @option options [Client] :client
|
13
|
+
def initialize(options = {})
|
14
|
+
@client = options[:client] || Client.new(options)
|
15
|
+
end
|
16
|
+
|
17
|
+
# @return [Client]
|
18
|
+
def client
|
19
|
+
@client
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,460 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::CodeGuruReviewer
|
9
|
+
module Types
|
10
|
+
|
11
|
+
# You do not have sufficient access to perform this action.
|
12
|
+
#
|
13
|
+
# @!attribute [rw] message
|
14
|
+
# @return [String]
|
15
|
+
#
|
16
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AccessDeniedException AWS API Documentation
|
17
|
+
#
|
18
|
+
class AccessDeniedException < Struct.new(
|
19
|
+
:message)
|
20
|
+
include Aws::Structure
|
21
|
+
end
|
22
|
+
|
23
|
+
# @note When making an API call, you may pass AssociateRepositoryRequest
|
24
|
+
# data as a hash:
|
25
|
+
#
|
26
|
+
# {
|
27
|
+
# repository: { # required
|
28
|
+
# code_commit: {
|
29
|
+
# name: "Name", # required
|
30
|
+
# },
|
31
|
+
# },
|
32
|
+
# client_request_token: "ClientRequestToken",
|
33
|
+
# }
|
34
|
+
#
|
35
|
+
# @!attribute [rw] repository
|
36
|
+
# The repository to associate.
|
37
|
+
# @return [Types::Repository]
|
38
|
+
#
|
39
|
+
# @!attribute [rw] client_request_token
|
40
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
41
|
+
# idempotency of the request.
|
42
|
+
#
|
43
|
+
# If you want to add a new repository association, this parameter
|
44
|
+
# specifies a unique identifier for the new repository association
|
45
|
+
# that helps ensure idempotency.
|
46
|
+
#
|
47
|
+
# If you use the AWS CLI or one of the AWS SDK to call this operation,
|
48
|
+
# then you can leave this parameter empty. The CLI or SDK generates a
|
49
|
+
# random UUID for you and includes that in the request. If you don't
|
50
|
+
# use the SDK and instead generate a raw HTTP request to the Secrets
|
51
|
+
# Manager service endpoint, then you must generate a
|
52
|
+
# ClientRequestToken yourself for new versions and include that value
|
53
|
+
# in the request.
|
54
|
+
#
|
55
|
+
# You typically only need to interact with this value if you implement
|
56
|
+
# your own retry logic and want to ensure that a given repository
|
57
|
+
# association is not created twice. We recommend that you generate a
|
58
|
+
# UUID-type value to ensure uniqueness within the specified repository
|
59
|
+
# association.
|
60
|
+
#
|
61
|
+
# Amazon CodeGuru Reviewer uses this value to prevent the accidental
|
62
|
+
# creation of duplicate repository associations if there are failures
|
63
|
+
# and retries.
|
64
|
+
#
|
65
|
+
# **A suitable default value is auto-generated.** You should normally
|
66
|
+
# not need to pass this option.
|
67
|
+
# @return [String]
|
68
|
+
#
|
69
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepositoryRequest AWS API Documentation
|
70
|
+
#
|
71
|
+
class AssociateRepositoryRequest < Struct.new(
|
72
|
+
:repository,
|
73
|
+
:client_request_token)
|
74
|
+
include Aws::Structure
|
75
|
+
end
|
76
|
+
|
77
|
+
# @!attribute [rw] repository_association
|
78
|
+
# Information about the repository association.
|
79
|
+
# @return [Types::RepositoryAssociation]
|
80
|
+
#
|
81
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepositoryResponse AWS API Documentation
|
82
|
+
#
|
83
|
+
class AssociateRepositoryResponse < Struct.new(
|
84
|
+
:repository_association)
|
85
|
+
include Aws::Structure
|
86
|
+
end
|
87
|
+
|
88
|
+
# Information about an AWS CodeCommit repository.
|
89
|
+
#
|
90
|
+
# @note When making an API call, you may pass CodeCommitRepository
|
91
|
+
# data as a hash:
|
92
|
+
#
|
93
|
+
# {
|
94
|
+
# name: "Name", # required
|
95
|
+
# }
|
96
|
+
#
|
97
|
+
# @!attribute [rw] name
|
98
|
+
# The name of the AWS CodeCommit repository.
|
99
|
+
# @return [String]
|
100
|
+
#
|
101
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CodeCommitRepository AWS API Documentation
|
102
|
+
#
|
103
|
+
class CodeCommitRepository < Struct.new(
|
104
|
+
:name)
|
105
|
+
include Aws::Structure
|
106
|
+
end
|
107
|
+
|
108
|
+
# The requested operation would cause a conflict with the current state
|
109
|
+
# of a service resource associated with the request. Resolve the
|
110
|
+
# conflict before retrying this request.
|
111
|
+
#
|
112
|
+
# @!attribute [rw] message
|
113
|
+
# @return [String]
|
114
|
+
#
|
115
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ConflictException AWS API Documentation
|
116
|
+
#
|
117
|
+
class ConflictException < Struct.new(
|
118
|
+
:message)
|
119
|
+
include Aws::Structure
|
120
|
+
end
|
121
|
+
|
122
|
+
# @note When making an API call, you may pass DescribeRepositoryAssociationRequest
|
123
|
+
# data as a hash:
|
124
|
+
#
|
125
|
+
# {
|
126
|
+
# association_arn: "Arn", # required
|
127
|
+
# }
|
128
|
+
#
|
129
|
+
# @!attribute [rw] association_arn
|
130
|
+
# The Amazon Resource Name (ARN) identifying the association.
|
131
|
+
# @return [String]
|
132
|
+
#
|
133
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociationRequest AWS API Documentation
|
134
|
+
#
|
135
|
+
class DescribeRepositoryAssociationRequest < Struct.new(
|
136
|
+
:association_arn)
|
137
|
+
include Aws::Structure
|
138
|
+
end
|
139
|
+
|
140
|
+
# @!attribute [rw] repository_association
|
141
|
+
# Information about the repository association.
|
142
|
+
# @return [Types::RepositoryAssociation]
|
143
|
+
#
|
144
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociationResponse AWS API Documentation
|
145
|
+
#
|
146
|
+
class DescribeRepositoryAssociationResponse < Struct.new(
|
147
|
+
:repository_association)
|
148
|
+
include Aws::Structure
|
149
|
+
end
|
150
|
+
|
151
|
+
# @note When making an API call, you may pass DisassociateRepositoryRequest
|
152
|
+
# data as a hash:
|
153
|
+
#
|
154
|
+
# {
|
155
|
+
# association_arn: "Arn", # required
|
156
|
+
# }
|
157
|
+
#
|
158
|
+
# @!attribute [rw] association_arn
|
159
|
+
# The Amazon Resource Name (ARN) identifying the association.
|
160
|
+
# @return [String]
|
161
|
+
#
|
162
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepositoryRequest AWS API Documentation
|
163
|
+
#
|
164
|
+
class DisassociateRepositoryRequest < Struct.new(
|
165
|
+
:association_arn)
|
166
|
+
include Aws::Structure
|
167
|
+
end
|
168
|
+
|
169
|
+
# @!attribute [rw] repository_association
|
170
|
+
# Information about the disassociated repository.
|
171
|
+
# @return [Types::RepositoryAssociation]
|
172
|
+
#
|
173
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepositoryResponse AWS API Documentation
|
174
|
+
#
|
175
|
+
class DisassociateRepositoryResponse < Struct.new(
|
176
|
+
:repository_association)
|
177
|
+
include Aws::Structure
|
178
|
+
end
|
179
|
+
|
180
|
+
# The server encountered an internal error and is unable to complete the
|
181
|
+
# request.
|
182
|
+
#
|
183
|
+
# @!attribute [rw] message
|
184
|
+
# @return [String]
|
185
|
+
#
|
186
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/InternalServerException AWS API Documentation
|
187
|
+
#
|
188
|
+
class InternalServerException < Struct.new(
|
189
|
+
:message)
|
190
|
+
include Aws::Structure
|
191
|
+
end
|
192
|
+
|
193
|
+
# @note When making an API call, you may pass ListRepositoryAssociationsRequest
|
194
|
+
# data as a hash:
|
195
|
+
#
|
196
|
+
# {
|
197
|
+
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub
|
198
|
+
# states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating
|
199
|
+
# names: ["Name"],
|
200
|
+
# owners: ["Owner"],
|
201
|
+
# max_results: 1,
|
202
|
+
# next_token: "NextToken",
|
203
|
+
# }
|
204
|
+
#
|
205
|
+
# @!attribute [rw] provider_types
|
206
|
+
# List of provider types to use as a filter.
|
207
|
+
# @return [Array<String>]
|
208
|
+
#
|
209
|
+
# @!attribute [rw] states
|
210
|
+
# List of states to use as a filter.
|
211
|
+
# @return [Array<String>]
|
212
|
+
#
|
213
|
+
# @!attribute [rw] names
|
214
|
+
# List of names to use as a filter.
|
215
|
+
# @return [Array<String>]
|
216
|
+
#
|
217
|
+
# @!attribute [rw] owners
|
218
|
+
# List of owners to use as a filter. For AWS CodeCommit, the owner is
|
219
|
+
# the AWS account id. For GitHub, it is the GitHub account name.
|
220
|
+
# @return [Array<String>]
|
221
|
+
#
|
222
|
+
# @!attribute [rw] max_results
|
223
|
+
# The maximum number of repository association results returned by
|
224
|
+
# `ListRepositoryAssociations` in paginated output. When this
|
225
|
+
# parameter is used, `ListRepositoryAssociations` only returns
|
226
|
+
# `maxResults` results in a single page along with a `nextToken`
|
227
|
+
# response element. The remaining results of the initial request can
|
228
|
+
# be seen by sending another `ListRepositoryAssociations` request with
|
229
|
+
# the returned `nextToken` value. This value can be between 1 and 100.
|
230
|
+
# If this parameter is not used, then `ListRepositoryAssociations`
|
231
|
+
# returns up to 100 results and a `nextToken` value if applicable.
|
232
|
+
# @return [Integer]
|
233
|
+
#
|
234
|
+
# @!attribute [rw] next_token
|
235
|
+
# The `nextToken` value returned from a previous paginated
|
236
|
+
# `ListRepositoryAssociations` request where `maxResults` was used and
|
237
|
+
# the results exceeded the value of that parameter. Pagination
|
238
|
+
# continues from the end of the previous results that returned the
|
239
|
+
# `nextToken` value.
|
240
|
+
#
|
241
|
+
# <note markdown="1"> This token should be treated as an opaque identifier that is only
|
242
|
+
# used to retrieve the next items in a list and not for other
|
243
|
+
# programmatic purposes.
|
244
|
+
#
|
245
|
+
# </note>
|
246
|
+
# @return [String]
|
247
|
+
#
|
248
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRepositoryAssociationsRequest AWS API Documentation
|
249
|
+
#
|
250
|
+
class ListRepositoryAssociationsRequest < Struct.new(
|
251
|
+
:provider_types,
|
252
|
+
:states,
|
253
|
+
:names,
|
254
|
+
:owners,
|
255
|
+
:max_results,
|
256
|
+
:next_token)
|
257
|
+
include Aws::Structure
|
258
|
+
end
|
259
|
+
|
260
|
+
# @!attribute [rw] repository_association_summaries
|
261
|
+
# A list of repository associations that meet the criteria of the
|
262
|
+
# request.
|
263
|
+
# @return [Array<Types::RepositoryAssociationSummary>]
|
264
|
+
#
|
265
|
+
# @!attribute [rw] next_token
|
266
|
+
# The `nextToken` value to include in a future `ListRecommendations`
|
267
|
+
# request. When the results of a `ListRecommendations` request exceed
|
268
|
+
# `maxResults`, this value can be used to retrieve the next page of
|
269
|
+
# results. This value is `null` when there are no more results to
|
270
|
+
# return.
|
271
|
+
# @return [String]
|
272
|
+
#
|
273
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRepositoryAssociationsResponse AWS API Documentation
|
274
|
+
#
|
275
|
+
class ListRepositoryAssociationsResponse < Struct.new(
|
276
|
+
:repository_association_summaries,
|
277
|
+
:next_token)
|
278
|
+
include Aws::Structure
|
279
|
+
end
|
280
|
+
|
281
|
+
# The resource specified in the request was not found.
|
282
|
+
#
|
283
|
+
# @!attribute [rw] message
|
284
|
+
# @return [String]
|
285
|
+
#
|
286
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/NotFoundException AWS API Documentation
|
287
|
+
#
|
288
|
+
class NotFoundException < Struct.new(
|
289
|
+
:message)
|
290
|
+
include Aws::Structure
|
291
|
+
end
|
292
|
+
|
293
|
+
# Information about a repository.
|
294
|
+
#
|
295
|
+
# @note When making an API call, you may pass Repository
|
296
|
+
# data as a hash:
|
297
|
+
#
|
298
|
+
# {
|
299
|
+
# code_commit: {
|
300
|
+
# name: "Name", # required
|
301
|
+
# },
|
302
|
+
# }
|
303
|
+
#
|
304
|
+
# @!attribute [rw] code_commit
|
305
|
+
# Information about an AWS CodeCommit repository.
|
306
|
+
# @return [Types::CodeCommitRepository]
|
307
|
+
#
|
308
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/Repository AWS API Documentation
|
309
|
+
#
|
310
|
+
class Repository < Struct.new(
|
311
|
+
:code_commit)
|
312
|
+
include Aws::Structure
|
313
|
+
end
|
314
|
+
|
315
|
+
# Information about a repository association.
|
316
|
+
#
|
317
|
+
# @!attribute [rw] association_id
|
318
|
+
# The id of the repository association.
|
319
|
+
# @return [String]
|
320
|
+
#
|
321
|
+
# @!attribute [rw] association_arn
|
322
|
+
# The Amazon Resource Name (ARN) identifying the repository
|
323
|
+
# association.
|
324
|
+
# @return [String]
|
325
|
+
#
|
326
|
+
# @!attribute [rw] name
|
327
|
+
# The name of the repository.
|
328
|
+
# @return [String]
|
329
|
+
#
|
330
|
+
# @!attribute [rw] owner
|
331
|
+
# The owner of the repository.
|
332
|
+
# @return [String]
|
333
|
+
#
|
334
|
+
# @!attribute [rw] provider_type
|
335
|
+
# The provider type of the repository association.
|
336
|
+
# @return [String]
|
337
|
+
#
|
338
|
+
# @!attribute [rw] state
|
339
|
+
# The state of the repository association.
|
340
|
+
# @return [String]
|
341
|
+
#
|
342
|
+
# @!attribute [rw] state_reason
|
343
|
+
# A description of why the repository association is in the current
|
344
|
+
# state.
|
345
|
+
# @return [String]
|
346
|
+
#
|
347
|
+
# @!attribute [rw] last_updated_time_stamp
|
348
|
+
# The time, in milliseconds since the epoch, when the repository
|
349
|
+
# association was last updated.
|
350
|
+
# @return [Time]
|
351
|
+
#
|
352
|
+
# @!attribute [rw] created_time_stamp
|
353
|
+
# The time, in milliseconds since the epoch, when the repository
|
354
|
+
# association was created.
|
355
|
+
# @return [Time]
|
356
|
+
#
|
357
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RepositoryAssociation AWS API Documentation
|
358
|
+
#
|
359
|
+
class RepositoryAssociation < Struct.new(
|
360
|
+
:association_id,
|
361
|
+
:association_arn,
|
362
|
+
:name,
|
363
|
+
:owner,
|
364
|
+
:provider_type,
|
365
|
+
:state,
|
366
|
+
:state_reason,
|
367
|
+
:last_updated_time_stamp,
|
368
|
+
:created_time_stamp)
|
369
|
+
include Aws::Structure
|
370
|
+
end
|
371
|
+
|
372
|
+
# Information about a repository association.
|
373
|
+
#
|
374
|
+
# @!attribute [rw] association_arn
|
375
|
+
# The Amazon Resource Name (ARN) identifying the repository
|
376
|
+
# association.
|
377
|
+
# @return [String]
|
378
|
+
#
|
379
|
+
# @!attribute [rw] last_updated_time_stamp
|
380
|
+
# The time, in milliseconds since the epoch, since the repository
|
381
|
+
# association was last updated.
|
382
|
+
# @return [Time]
|
383
|
+
#
|
384
|
+
# @!attribute [rw] association_id
|
385
|
+
# The repository association ID.
|
386
|
+
# @return [String]
|
387
|
+
#
|
388
|
+
# @!attribute [rw] name
|
389
|
+
# The name of the repository association.
|
390
|
+
# @return [String]
|
391
|
+
#
|
392
|
+
# @!attribute [rw] owner
|
393
|
+
# The owner of the repository association.
|
394
|
+
# @return [String]
|
395
|
+
#
|
396
|
+
# @!attribute [rw] provider_type
|
397
|
+
# The provider type of the repository association.
|
398
|
+
# @return [String]
|
399
|
+
#
|
400
|
+
# @!attribute [rw] state
|
401
|
+
# The state of the repository association.
|
402
|
+
#
|
403
|
+
# Associated
|
404
|
+
#
|
405
|
+
# : Amazon CodeGuru Reviewer is associated with the repository.
|
406
|
+
#
|
407
|
+
# Associating
|
408
|
+
#
|
409
|
+
# : The association is in progress.
|
410
|
+
#
|
411
|
+
# Failed
|
412
|
+
#
|
413
|
+
# : The association failed. For more information about troubleshooting
|
414
|
+
# (or why it failed), see \[troubleshooting topic\].
|
415
|
+
#
|
416
|
+
# Disassociating
|
417
|
+
#
|
418
|
+
# : Amazon CodeGuru Reviewer is in the process of disassociating with
|
419
|
+
# the repository.
|
420
|
+
# @return [String]
|
421
|
+
#
|
422
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RepositoryAssociationSummary AWS API Documentation
|
423
|
+
#
|
424
|
+
class RepositoryAssociationSummary < Struct.new(
|
425
|
+
:association_arn,
|
426
|
+
:last_updated_time_stamp,
|
427
|
+
:association_id,
|
428
|
+
:name,
|
429
|
+
:owner,
|
430
|
+
:provider_type,
|
431
|
+
:state)
|
432
|
+
include Aws::Structure
|
433
|
+
end
|
434
|
+
|
435
|
+
# The request was denied due to request throttling.
|
436
|
+
#
|
437
|
+
# @!attribute [rw] message
|
438
|
+
# @return [String]
|
439
|
+
#
|
440
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ThrottlingException AWS API Documentation
|
441
|
+
#
|
442
|
+
class ThrottlingException < Struct.new(
|
443
|
+
:message)
|
444
|
+
include Aws::Structure
|
445
|
+
end
|
446
|
+
|
447
|
+
# The input fails to satisfy the specified constraints.
|
448
|
+
#
|
449
|
+
# @!attribute [rw] message
|
450
|
+
# @return [String]
|
451
|
+
#
|
452
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ValidationException AWS API Documentation
|
453
|
+
#
|
454
|
+
class ValidationException < Struct.new(
|
455
|
+
:message)
|
456
|
+
include Aws::Structure
|
457
|
+
end
|
458
|
+
|
459
|
+
end
|
460
|
+
end
|