aws-sdk-codegurureviewer 1.33.0 → 1.35.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/CHANGELOG.md +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-codegurureviewer/client.rb +20 -3
- data/lib/aws-sdk-codegurureviewer/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-codegurureviewer/endpoint_provider.rb +51 -0
- data/lib/aws-sdk-codegurureviewer/endpoints.rb +211 -0
- data/lib/aws-sdk-codegurureviewer/plugins/endpoints.rb +96 -0
- data/lib/aws-sdk-codegurureviewer/types.rb +0 -448
- data/lib/aws-sdk-codegurureviewer.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43646347925c9d017f015520c76b8e78139a964aaa2387ffbaafed3d6e307dc4
|
4
|
+
data.tar.gz: b1525a685477ed1675b44dd01c2465b3a6ac407b9ab8db20b8e09a740a281f32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52f4a1f4079081b30777f73f5b127367b0e1f1e62ad8206fc6cf8ca858a64a921b5a81ecb2847af76d92d6ab8b2fe5978a0d747411a5604932757fe7a58027e3
|
7
|
+
data.tar.gz: 95dfb0fc1a83b4a19aa84c2a180b4096fdeb20fb924e0e306712265166cd6aae4ff8d2a381ea26735691e44d9bad5385c6ad2524848c3347864a0d31a7a95ba7
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.35.0 (2023-01-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
10
|
+
|
11
|
+
1.34.0 (2022-10-25)
|
12
|
+
------------------
|
13
|
+
|
14
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
15
|
+
|
4
16
|
1.33.0 (2022-10-07)
|
5
17
|
------------------
|
6
18
|
|
@@ -175,4 +187,4 @@ Unreleased Changes
|
|
175
187
|
1.0.0 (2019-12-03)
|
176
188
|
------------------
|
177
189
|
|
178
|
-
* Feature - Initial release of `aws-sdk-codegurureviewer`.
|
190
|
+
* Feature - Initial release of `aws-sdk-codegurureviewer`.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.35.0
|
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:codegurureviewer)
|
@@ -79,8 +79,9 @@ module Aws::CodeGuruReviewer
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
84
|
+
add_plugin(Aws::CodeGuruReviewer::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -287,6 +288,19 @@ module Aws::CodeGuruReviewer
|
|
287
288
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
288
289
|
# requests are made, and retries are disabled.
|
289
290
|
#
|
291
|
+
# @option options [Aws::TokenProvider] :token_provider
|
292
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
293
|
+
# following classes:
|
294
|
+
#
|
295
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
296
|
+
# tokens.
|
297
|
+
#
|
298
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
299
|
+
# access token generated from `aws login`.
|
300
|
+
#
|
301
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
302
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
303
|
+
#
|
290
304
|
# @option options [Boolean] :use_dualstack_endpoint
|
291
305
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
292
306
|
# will be used if available.
|
@@ -300,6 +314,9 @@ module Aws::CodeGuruReviewer
|
|
300
314
|
# When `true`, request parameters are validated before
|
301
315
|
# sending the request.
|
302
316
|
#
|
317
|
+
# @option options [Aws::CodeGuruReviewer::EndpointProvider] :endpoint_provider
|
318
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::CodeGuruReviewer::EndpointParameters`
|
319
|
+
#
|
303
320
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
304
321
|
# requests through. Formatted like 'http://proxy.com:123'.
|
305
322
|
#
|
@@ -1395,7 +1412,7 @@ module Aws::CodeGuruReviewer
|
|
1395
1412
|
params: params,
|
1396
1413
|
config: config)
|
1397
1414
|
context[:gem_name] = 'aws-sdk-codegurureviewer'
|
1398
|
-
context[:gem_version] = '1.
|
1415
|
+
context[:gem_version] = '1.35.0'
|
1399
1416
|
Seahorse::Client::Request.new(handlers, context)
|
1400
1417
|
end
|
1401
1418
|
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::CodeGuruReviewer
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::CodeGuruReviewer
|
11
|
+
class EndpointProvider
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
|
19
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
+
end
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codeguru-reviewer-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
+
end
|
31
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
+
end
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codeguru-reviewer-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
+
end
|
37
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
41
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codeguru-reviewer.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
42
|
+
end
|
43
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
44
|
+
end
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codeguru-reviewer.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
|
+
end
|
47
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
48
|
+
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,211 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::CodeGuruReviewer
|
12
|
+
module Endpoints
|
13
|
+
|
14
|
+
class AssociateRepository
|
15
|
+
def self.build(context)
|
16
|
+
unless context.config.regional_endpoint
|
17
|
+
endpoint = context.config.endpoint.to_s
|
18
|
+
end
|
19
|
+
Aws::CodeGuruReviewer::EndpointParameters.new(
|
20
|
+
region: context.config.region,
|
21
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
22
|
+
use_fips: context.config.use_fips_endpoint,
|
23
|
+
endpoint: endpoint,
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class CreateCodeReview
|
29
|
+
def self.build(context)
|
30
|
+
unless context.config.regional_endpoint
|
31
|
+
endpoint = context.config.endpoint.to_s
|
32
|
+
end
|
33
|
+
Aws::CodeGuruReviewer::EndpointParameters.new(
|
34
|
+
region: context.config.region,
|
35
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
36
|
+
use_fips: context.config.use_fips_endpoint,
|
37
|
+
endpoint: endpoint,
|
38
|
+
)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
class DescribeCodeReview
|
43
|
+
def self.build(context)
|
44
|
+
unless context.config.regional_endpoint
|
45
|
+
endpoint = context.config.endpoint.to_s
|
46
|
+
end
|
47
|
+
Aws::CodeGuruReviewer::EndpointParameters.new(
|
48
|
+
region: context.config.region,
|
49
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
50
|
+
use_fips: context.config.use_fips_endpoint,
|
51
|
+
endpoint: endpoint,
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
class DescribeRecommendationFeedback
|
57
|
+
def self.build(context)
|
58
|
+
unless context.config.regional_endpoint
|
59
|
+
endpoint = context.config.endpoint.to_s
|
60
|
+
end
|
61
|
+
Aws::CodeGuruReviewer::EndpointParameters.new(
|
62
|
+
region: context.config.region,
|
63
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
+
use_fips: context.config.use_fips_endpoint,
|
65
|
+
endpoint: endpoint,
|
66
|
+
)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
class DescribeRepositoryAssociation
|
71
|
+
def self.build(context)
|
72
|
+
unless context.config.regional_endpoint
|
73
|
+
endpoint = context.config.endpoint.to_s
|
74
|
+
end
|
75
|
+
Aws::CodeGuruReviewer::EndpointParameters.new(
|
76
|
+
region: context.config.region,
|
77
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
78
|
+
use_fips: context.config.use_fips_endpoint,
|
79
|
+
endpoint: endpoint,
|
80
|
+
)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
class DisassociateRepository
|
85
|
+
def self.build(context)
|
86
|
+
unless context.config.regional_endpoint
|
87
|
+
endpoint = context.config.endpoint.to_s
|
88
|
+
end
|
89
|
+
Aws::CodeGuruReviewer::EndpointParameters.new(
|
90
|
+
region: context.config.region,
|
91
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
92
|
+
use_fips: context.config.use_fips_endpoint,
|
93
|
+
endpoint: endpoint,
|
94
|
+
)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
class ListCodeReviews
|
99
|
+
def self.build(context)
|
100
|
+
unless context.config.regional_endpoint
|
101
|
+
endpoint = context.config.endpoint.to_s
|
102
|
+
end
|
103
|
+
Aws::CodeGuruReviewer::EndpointParameters.new(
|
104
|
+
region: context.config.region,
|
105
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
106
|
+
use_fips: context.config.use_fips_endpoint,
|
107
|
+
endpoint: endpoint,
|
108
|
+
)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
class ListRecommendationFeedback
|
113
|
+
def self.build(context)
|
114
|
+
unless context.config.regional_endpoint
|
115
|
+
endpoint = context.config.endpoint.to_s
|
116
|
+
end
|
117
|
+
Aws::CodeGuruReviewer::EndpointParameters.new(
|
118
|
+
region: context.config.region,
|
119
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
120
|
+
use_fips: context.config.use_fips_endpoint,
|
121
|
+
endpoint: endpoint,
|
122
|
+
)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
class ListRecommendations
|
127
|
+
def self.build(context)
|
128
|
+
unless context.config.regional_endpoint
|
129
|
+
endpoint = context.config.endpoint.to_s
|
130
|
+
end
|
131
|
+
Aws::CodeGuruReviewer::EndpointParameters.new(
|
132
|
+
region: context.config.region,
|
133
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
134
|
+
use_fips: context.config.use_fips_endpoint,
|
135
|
+
endpoint: endpoint,
|
136
|
+
)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
class ListRepositoryAssociations
|
141
|
+
def self.build(context)
|
142
|
+
unless context.config.regional_endpoint
|
143
|
+
endpoint = context.config.endpoint.to_s
|
144
|
+
end
|
145
|
+
Aws::CodeGuruReviewer::EndpointParameters.new(
|
146
|
+
region: context.config.region,
|
147
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
148
|
+
use_fips: context.config.use_fips_endpoint,
|
149
|
+
endpoint: endpoint,
|
150
|
+
)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
class ListTagsForResource
|
155
|
+
def self.build(context)
|
156
|
+
unless context.config.regional_endpoint
|
157
|
+
endpoint = context.config.endpoint.to_s
|
158
|
+
end
|
159
|
+
Aws::CodeGuruReviewer::EndpointParameters.new(
|
160
|
+
region: context.config.region,
|
161
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
162
|
+
use_fips: context.config.use_fips_endpoint,
|
163
|
+
endpoint: endpoint,
|
164
|
+
)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
class PutRecommendationFeedback
|
169
|
+
def self.build(context)
|
170
|
+
unless context.config.regional_endpoint
|
171
|
+
endpoint = context.config.endpoint.to_s
|
172
|
+
end
|
173
|
+
Aws::CodeGuruReviewer::EndpointParameters.new(
|
174
|
+
region: context.config.region,
|
175
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
176
|
+
use_fips: context.config.use_fips_endpoint,
|
177
|
+
endpoint: endpoint,
|
178
|
+
)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
class TagResource
|
183
|
+
def self.build(context)
|
184
|
+
unless context.config.regional_endpoint
|
185
|
+
endpoint = context.config.endpoint.to_s
|
186
|
+
end
|
187
|
+
Aws::CodeGuruReviewer::EndpointParameters.new(
|
188
|
+
region: context.config.region,
|
189
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
190
|
+
use_fips: context.config.use_fips_endpoint,
|
191
|
+
endpoint: endpoint,
|
192
|
+
)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
class UntagResource
|
197
|
+
def self.build(context)
|
198
|
+
unless context.config.regional_endpoint
|
199
|
+
endpoint = context.config.endpoint.to_s
|
200
|
+
end
|
201
|
+
Aws::CodeGuruReviewer::EndpointParameters.new(
|
202
|
+
region: context.config.region,
|
203
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
204
|
+
use_fips: context.config.use_fips_endpoint,
|
205
|
+
endpoint: endpoint,
|
206
|
+
)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
end
|
211
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::CodeGuruReviewer
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::CodeGuruReviewer::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::CodeGuruReviewer::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::CodeGuruReviewer::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :associate_repository
|
60
|
+
Aws::CodeGuruReviewer::Endpoints::AssociateRepository.build(context)
|
61
|
+
when :create_code_review
|
62
|
+
Aws::CodeGuruReviewer::Endpoints::CreateCodeReview.build(context)
|
63
|
+
when :describe_code_review
|
64
|
+
Aws::CodeGuruReviewer::Endpoints::DescribeCodeReview.build(context)
|
65
|
+
when :describe_recommendation_feedback
|
66
|
+
Aws::CodeGuruReviewer::Endpoints::DescribeRecommendationFeedback.build(context)
|
67
|
+
when :describe_repository_association
|
68
|
+
Aws::CodeGuruReviewer::Endpoints::DescribeRepositoryAssociation.build(context)
|
69
|
+
when :disassociate_repository
|
70
|
+
Aws::CodeGuruReviewer::Endpoints::DisassociateRepository.build(context)
|
71
|
+
when :list_code_reviews
|
72
|
+
Aws::CodeGuruReviewer::Endpoints::ListCodeReviews.build(context)
|
73
|
+
when :list_recommendation_feedback
|
74
|
+
Aws::CodeGuruReviewer::Endpoints::ListRecommendationFeedback.build(context)
|
75
|
+
when :list_recommendations
|
76
|
+
Aws::CodeGuruReviewer::Endpoints::ListRecommendations.build(context)
|
77
|
+
when :list_repository_associations
|
78
|
+
Aws::CodeGuruReviewer::Endpoints::ListRepositoryAssociations.build(context)
|
79
|
+
when :list_tags_for_resource
|
80
|
+
Aws::CodeGuruReviewer::Endpoints::ListTagsForResource.build(context)
|
81
|
+
when :put_recommendation_feedback
|
82
|
+
Aws::CodeGuruReviewer::Endpoints::PutRecommendationFeedback.build(context)
|
83
|
+
when :tag_resource
|
84
|
+
Aws::CodeGuruReviewer::Endpoints::TagResource.build(context)
|
85
|
+
when :untag_resource
|
86
|
+
Aws::CodeGuruReviewer::Endpoints::UntagResource.build(context)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
def add_handlers(handlers, _config)
|
92
|
+
handlers.add(Handler, step: :build, priority: 75)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -23,39 +23,6 @@ module Aws::CodeGuruReviewer
|
|
23
23
|
include Aws::Structure
|
24
24
|
end
|
25
25
|
|
26
|
-
# @note When making an API call, you may pass AssociateRepositoryRequest
|
27
|
-
# data as a hash:
|
28
|
-
#
|
29
|
-
# {
|
30
|
-
# repository: { # required
|
31
|
-
# code_commit: {
|
32
|
-
# name: "Name", # required
|
33
|
-
# },
|
34
|
-
# bitbucket: {
|
35
|
-
# name: "Name", # required
|
36
|
-
# connection_arn: "ConnectionArn", # required
|
37
|
-
# owner: "Owner", # required
|
38
|
-
# },
|
39
|
-
# git_hub_enterprise_server: {
|
40
|
-
# name: "Name", # required
|
41
|
-
# connection_arn: "ConnectionArn", # required
|
42
|
-
# owner: "Owner", # required
|
43
|
-
# },
|
44
|
-
# s3_bucket: {
|
45
|
-
# name: "Name", # required
|
46
|
-
# bucket_name: "S3BucketName", # required
|
47
|
-
# },
|
48
|
-
# },
|
49
|
-
# client_request_token: "ClientRequestToken",
|
50
|
-
# tags: {
|
51
|
-
# "TagKey" => "TagValue",
|
52
|
-
# },
|
53
|
-
# kms_key_details: {
|
54
|
-
# kms_key_id: "KMSKeyId",
|
55
|
-
# encryption_option: "AWS_OWNED_CMK", # accepts AWS_OWNED_CMK, CUSTOMER_MANAGED_CMK
|
56
|
-
# },
|
57
|
-
# }
|
58
|
-
#
|
59
26
|
# @!attribute [rw] repository
|
60
27
|
# The repository to associate.
|
61
28
|
# @return [Types::Repository]
|
@@ -137,14 +104,6 @@ module Aws::CodeGuruReviewer
|
|
137
104
|
#
|
138
105
|
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType
|
139
106
|
#
|
140
|
-
# @note When making an API call, you may pass BranchDiffSourceCodeType
|
141
|
-
# data as a hash:
|
142
|
-
#
|
143
|
-
# {
|
144
|
-
# source_branch_name: "BranchName", # required
|
145
|
-
# destination_branch_name: "BranchName", # required
|
146
|
-
# }
|
147
|
-
#
|
148
107
|
# @!attribute [rw] source_branch_name
|
149
108
|
# The source branch for a diff in an associated repository.
|
150
109
|
# @return [String]
|
@@ -171,14 +130,6 @@ module Aws::CodeGuruReviewer
|
|
171
130
|
# * Build artifacts are .jar or .class files that are compressed in a
|
172
131
|
# .zip file.
|
173
132
|
#
|
174
|
-
# @note When making an API call, you may pass CodeArtifacts
|
175
|
-
# data as a hash:
|
176
|
-
#
|
177
|
-
# {
|
178
|
-
# source_code_artifacts_object_key: "SourceCodeArtifactsObjectKey", # required
|
179
|
-
# build_artifacts_object_key: "BuildArtifactsObjectKey",
|
180
|
-
# }
|
181
|
-
#
|
182
133
|
# @!attribute [rw] source_code_artifacts_object_key
|
183
134
|
# The S3 object key for a source code .zip file. This is required for
|
184
135
|
# all code reviews.
|
@@ -209,13 +160,6 @@ module Aws::CodeGuruReviewer
|
|
209
160
|
# and Amazon Web Services account where its CodeGuru Reviewer code
|
210
161
|
# reviews are configured.
|
211
162
|
#
|
212
|
-
# @note When making an API call, you may pass CodeCommitRepository
|
213
|
-
# data as a hash:
|
214
|
-
#
|
215
|
-
# {
|
216
|
-
# name: "Name", # required
|
217
|
-
# }
|
218
|
-
#
|
219
163
|
# @!attribute [rw] name
|
220
164
|
# The name of the Amazon Web Services CodeCommit repository. For more
|
221
165
|
# information, see [repositoryName][1] in the *Amazon Web Services
|
@@ -461,51 +405,6 @@ module Aws::CodeGuruReviewer
|
|
461
405
|
#
|
462
406
|
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CreateCodeReview
|
463
407
|
#
|
464
|
-
# @note When making an API call, you may pass CodeReviewType
|
465
|
-
# data as a hash:
|
466
|
-
#
|
467
|
-
# {
|
468
|
-
# repository_analysis: { # required
|
469
|
-
# repository_head: {
|
470
|
-
# branch_name: "BranchName", # required
|
471
|
-
# },
|
472
|
-
# source_code_type: {
|
473
|
-
# commit_diff: {
|
474
|
-
# source_commit: "CommitId",
|
475
|
-
# destination_commit: "CommitId",
|
476
|
-
# merge_base_commit: "CommitId",
|
477
|
-
# },
|
478
|
-
# repository_head: {
|
479
|
-
# branch_name: "BranchName", # required
|
480
|
-
# },
|
481
|
-
# branch_diff: {
|
482
|
-
# source_branch_name: "BranchName", # required
|
483
|
-
# destination_branch_name: "BranchName", # required
|
484
|
-
# },
|
485
|
-
# s3_bucket_repository: {
|
486
|
-
# name: "Name", # required
|
487
|
-
# details: {
|
488
|
-
# bucket_name: "S3BucketName",
|
489
|
-
# code_artifacts: {
|
490
|
-
# source_code_artifacts_object_key: "SourceCodeArtifactsObjectKey", # required
|
491
|
-
# build_artifacts_object_key: "BuildArtifactsObjectKey",
|
492
|
-
# },
|
493
|
-
# },
|
494
|
-
# },
|
495
|
-
# request_metadata: {
|
496
|
-
# request_id: "RequestId",
|
497
|
-
# requester: "Requester",
|
498
|
-
# event_info: {
|
499
|
-
# name: "EventName",
|
500
|
-
# state: "EventState",
|
501
|
-
# },
|
502
|
-
# vendor_name: "GitHub", # accepts GitHub, GitLab, NativeS3
|
503
|
-
# },
|
504
|
-
# },
|
505
|
-
# },
|
506
|
-
# analysis_types: ["Security"], # accepts Security, CodeQuality
|
507
|
-
# }
|
508
|
-
#
|
509
408
|
# @!attribute [rw] repository_analysis
|
510
409
|
# A code review that analyzes all code under a specified branch in an
|
511
410
|
# associated repository. The associated repository is specified using
|
@@ -540,15 +439,6 @@ module Aws::CodeGuruReviewer
|
|
540
439
|
#
|
541
440
|
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType
|
542
441
|
#
|
543
|
-
# @note When making an API call, you may pass CommitDiffSourceCodeType
|
544
|
-
# data as a hash:
|
545
|
-
#
|
546
|
-
# {
|
547
|
-
# source_commit: "CommitId",
|
548
|
-
# destination_commit: "CommitId",
|
549
|
-
# merge_base_commit: "CommitId",
|
550
|
-
# }
|
551
|
-
#
|
552
442
|
# @!attribute [rw] source_commit
|
553
443
|
# The SHA of the source commit used to generate a commit diff. This
|
554
444
|
# field is required for a pull request code review.
|
@@ -588,56 +478,6 @@ module Aws::CodeGuruReviewer
|
|
588
478
|
include Aws::Structure
|
589
479
|
end
|
590
480
|
|
591
|
-
# @note When making an API call, you may pass CreateCodeReviewRequest
|
592
|
-
# data as a hash:
|
593
|
-
#
|
594
|
-
# {
|
595
|
-
# name: "CodeReviewName", # required
|
596
|
-
# repository_association_arn: "AssociationArn", # required
|
597
|
-
# type: { # required
|
598
|
-
# repository_analysis: { # required
|
599
|
-
# repository_head: {
|
600
|
-
# branch_name: "BranchName", # required
|
601
|
-
# },
|
602
|
-
# source_code_type: {
|
603
|
-
# commit_diff: {
|
604
|
-
# source_commit: "CommitId",
|
605
|
-
# destination_commit: "CommitId",
|
606
|
-
# merge_base_commit: "CommitId",
|
607
|
-
# },
|
608
|
-
# repository_head: {
|
609
|
-
# branch_name: "BranchName", # required
|
610
|
-
# },
|
611
|
-
# branch_diff: {
|
612
|
-
# source_branch_name: "BranchName", # required
|
613
|
-
# destination_branch_name: "BranchName", # required
|
614
|
-
# },
|
615
|
-
# s3_bucket_repository: {
|
616
|
-
# name: "Name", # required
|
617
|
-
# details: {
|
618
|
-
# bucket_name: "S3BucketName",
|
619
|
-
# code_artifacts: {
|
620
|
-
# source_code_artifacts_object_key: "SourceCodeArtifactsObjectKey", # required
|
621
|
-
# build_artifacts_object_key: "BuildArtifactsObjectKey",
|
622
|
-
# },
|
623
|
-
# },
|
624
|
-
# },
|
625
|
-
# request_metadata: {
|
626
|
-
# request_id: "RequestId",
|
627
|
-
# requester: "Requester",
|
628
|
-
# event_info: {
|
629
|
-
# name: "EventName",
|
630
|
-
# state: "EventState",
|
631
|
-
# },
|
632
|
-
# vendor_name: "GitHub", # accepts GitHub, GitLab, NativeS3
|
633
|
-
# },
|
634
|
-
# },
|
635
|
-
# },
|
636
|
-
# analysis_types: ["Security"], # accepts Security, CodeQuality
|
637
|
-
# },
|
638
|
-
# client_request_token: "ClientRequestToken",
|
639
|
-
# }
|
640
|
-
#
|
641
481
|
# @!attribute [rw] name
|
642
482
|
# The name of the code review. The name of each code review in your
|
643
483
|
# Amazon Web Services account must be unique.
|
@@ -700,13 +540,6 @@ module Aws::CodeGuruReviewer
|
|
700
540
|
include Aws::Structure
|
701
541
|
end
|
702
542
|
|
703
|
-
# @note When making an API call, you may pass DescribeCodeReviewRequest
|
704
|
-
# data as a hash:
|
705
|
-
#
|
706
|
-
# {
|
707
|
-
# code_review_arn: "Arn", # required
|
708
|
-
# }
|
709
|
-
#
|
710
543
|
# @!attribute [rw] code_review_arn
|
711
544
|
# The Amazon Resource Name (ARN) of the [CodeReview][1] object.
|
712
545
|
#
|
@@ -735,15 +568,6 @@ module Aws::CodeGuruReviewer
|
|
735
568
|
include Aws::Structure
|
736
569
|
end
|
737
570
|
|
738
|
-
# @note When making an API call, you may pass DescribeRecommendationFeedbackRequest
|
739
|
-
# data as a hash:
|
740
|
-
#
|
741
|
-
# {
|
742
|
-
# code_review_arn: "Arn", # required
|
743
|
-
# recommendation_id: "RecommendationId", # required
|
744
|
-
# user_id: "UserId",
|
745
|
-
# }
|
746
|
-
#
|
747
571
|
# @!attribute [rw] code_review_arn
|
748
572
|
# The Amazon Resource Name (ARN) of the [CodeReview][1] object.
|
749
573
|
#
|
@@ -793,13 +617,6 @@ module Aws::CodeGuruReviewer
|
|
793
617
|
include Aws::Structure
|
794
618
|
end
|
795
619
|
|
796
|
-
# @note When making an API call, you may pass DescribeRepositoryAssociationRequest
|
797
|
-
# data as a hash:
|
798
|
-
#
|
799
|
-
# {
|
800
|
-
# association_arn: "AssociationArn", # required
|
801
|
-
# }
|
802
|
-
#
|
803
620
|
# @!attribute [rw] association_arn
|
804
621
|
# The Amazon Resource Name (ARN) of the [RepositoryAssociation][1]
|
805
622
|
# object. You can retrieve this ARN by calling
|
@@ -845,13 +662,6 @@ module Aws::CodeGuruReviewer
|
|
845
662
|
include Aws::Structure
|
846
663
|
end
|
847
664
|
|
848
|
-
# @note When making an API call, you may pass DisassociateRepositoryRequest
|
849
|
-
# data as a hash:
|
850
|
-
#
|
851
|
-
# {
|
852
|
-
# association_arn: "AssociationArn", # required
|
853
|
-
# }
|
854
|
-
#
|
855
665
|
# @!attribute [rw] association_arn
|
856
666
|
# The Amazon Resource Name (ARN) of the [RepositoryAssociation][1]
|
857
667
|
# object. You can retrieve this ARN by calling
|
@@ -900,14 +710,6 @@ module Aws::CodeGuruReviewer
|
|
900
710
|
# Information about an event. The event might be a push, pull request,
|
901
711
|
# scheduled request, or another type of event.
|
902
712
|
#
|
903
|
-
# @note When making an API call, you may pass EventInfo
|
904
|
-
# data as a hash:
|
905
|
-
#
|
906
|
-
# {
|
907
|
-
# name: "EventName",
|
908
|
-
# state: "EventState",
|
909
|
-
# }
|
910
|
-
#
|
911
713
|
# @!attribute [rw] name
|
912
714
|
# The name of the event. The possible names are `pull_request`,
|
913
715
|
# `workflow_dispatch`, `schedule`, and `push`
|
@@ -950,14 +752,6 @@ module Aws::CodeGuruReviewer
|
|
950
752
|
# * The ID of the Amazon Web Services KMS key that is associated with a
|
951
753
|
# repository association.
|
952
754
|
#
|
953
|
-
# @note When making an API call, you may pass KMSKeyDetails
|
954
|
-
# data as a hash:
|
955
|
-
#
|
956
|
-
# {
|
957
|
-
# kms_key_id: "KMSKeyId",
|
958
|
-
# encryption_option: "AWS_OWNED_CMK", # accepts AWS_OWNED_CMK, CUSTOMER_MANAGED_CMK
|
959
|
-
# }
|
960
|
-
#
|
961
755
|
# @!attribute [rw] kms_key_id
|
962
756
|
# The ID of the Amazon Web Services KMS key that is associated with a
|
963
757
|
# repository association.
|
@@ -978,18 +772,6 @@ module Aws::CodeGuruReviewer
|
|
978
772
|
include Aws::Structure
|
979
773
|
end
|
980
774
|
|
981
|
-
# @note When making an API call, you may pass ListCodeReviewsRequest
|
982
|
-
# data as a hash:
|
983
|
-
#
|
984
|
-
# {
|
985
|
-
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer, S3Bucket
|
986
|
-
# states: ["Completed"], # accepts Completed, Pending, Failed, Deleting
|
987
|
-
# repository_names: ["Name"],
|
988
|
-
# type: "PullRequest", # required, accepts PullRequest, RepositoryAnalysis
|
989
|
-
# max_results: 1,
|
990
|
-
# next_token: "NextToken",
|
991
|
-
# }
|
992
|
-
#
|
993
775
|
# @!attribute [rw] provider_types
|
994
776
|
# List of provider types for filtering that needs to be applied before
|
995
777
|
# displaying the result. For example, `providerTypes=[GitHub]` lists
|
@@ -1064,17 +846,6 @@ module Aws::CodeGuruReviewer
|
|
1064
846
|
include Aws::Structure
|
1065
847
|
end
|
1066
848
|
|
1067
|
-
# @note When making an API call, you may pass ListRecommendationFeedbackRequest
|
1068
|
-
# data as a hash:
|
1069
|
-
#
|
1070
|
-
# {
|
1071
|
-
# next_token: "NextToken",
|
1072
|
-
# max_results: 1,
|
1073
|
-
# code_review_arn: "Arn", # required
|
1074
|
-
# user_ids: ["UserId"],
|
1075
|
-
# recommendation_ids: ["RecommendationId"],
|
1076
|
-
# }
|
1077
|
-
#
|
1078
849
|
# @!attribute [rw] next_token
|
1079
850
|
# If `nextToken` is returned, there are more results available. The
|
1080
851
|
# value of `nextToken` is a unique pagination token for each page.
|
@@ -1148,15 +919,6 @@ module Aws::CodeGuruReviewer
|
|
1148
919
|
include Aws::Structure
|
1149
920
|
end
|
1150
921
|
|
1151
|
-
# @note When making an API call, you may pass ListRecommendationsRequest
|
1152
|
-
# data as a hash:
|
1153
|
-
#
|
1154
|
-
# {
|
1155
|
-
# next_token: "NextToken",
|
1156
|
-
# max_results: 1,
|
1157
|
-
# code_review_arn: "Arn", # required
|
1158
|
-
# }
|
1159
|
-
#
|
1160
922
|
# @!attribute [rw] next_token
|
1161
923
|
# Pagination token.
|
1162
924
|
# @return [String]
|
@@ -1201,18 +963,6 @@ module Aws::CodeGuruReviewer
|
|
1201
963
|
include Aws::Structure
|
1202
964
|
end
|
1203
965
|
|
1204
|
-
# @note When making an API call, you may pass ListRepositoryAssociationsRequest
|
1205
|
-
# data as a hash:
|
1206
|
-
#
|
1207
|
-
# {
|
1208
|
-
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer, S3Bucket
|
1209
|
-
# states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating, Disassociated
|
1210
|
-
# names: ["Name"],
|
1211
|
-
# owners: ["Owner"],
|
1212
|
-
# max_results: 1,
|
1213
|
-
# next_token: "NextToken",
|
1214
|
-
# }
|
1215
|
-
#
|
1216
966
|
# @!attribute [rw] provider_types
|
1217
967
|
# List of provider types to use as a filter.
|
1218
968
|
# @return [Array<String>]
|
@@ -1331,13 +1081,6 @@ module Aws::CodeGuruReviewer
|
|
1331
1081
|
include Aws::Structure
|
1332
1082
|
end
|
1333
1083
|
|
1334
|
-
# @note When making an API call, you may pass ListTagsForResourceRequest
|
1335
|
-
# data as a hash:
|
1336
|
-
#
|
1337
|
-
# {
|
1338
|
-
# resource_arn: "AssociationArn", # required
|
1339
|
-
# }
|
1340
|
-
#
|
1341
1084
|
# @!attribute [rw] resource_arn
|
1342
1085
|
# The Amazon Resource Name (ARN) of the [RepositoryAssociation][1]
|
1343
1086
|
# object. You can retrieve this ARN by calling
|
@@ -1472,15 +1215,6 @@ module Aws::CodeGuruReviewer
|
|
1472
1215
|
include Aws::Structure
|
1473
1216
|
end
|
1474
1217
|
|
1475
|
-
# @note When making an API call, you may pass PutRecommendationFeedbackRequest
|
1476
|
-
# data as a hash:
|
1477
|
-
#
|
1478
|
-
# {
|
1479
|
-
# code_review_arn: "Arn", # required
|
1480
|
-
# recommendation_id: "RecommendationId", # required
|
1481
|
-
# reactions: ["ThumbsUp"], # required, accepts ThumbsUp, ThumbsDown
|
1482
|
-
# }
|
1483
|
-
#
|
1484
1218
|
# @!attribute [rw] code_review_arn
|
1485
1219
|
# The Amazon Resource Name (ARN) of the [CodeReview][1] object.
|
1486
1220
|
#
|
@@ -1666,29 +1400,6 @@ module Aws::CodeGuruReviewer
|
|
1666
1400
|
# `Repository` object is not used if your source code is in an
|
1667
1401
|
# associated GitHub repository.
|
1668
1402
|
#
|
1669
|
-
# @note When making an API call, you may pass Repository
|
1670
|
-
# data as a hash:
|
1671
|
-
#
|
1672
|
-
# {
|
1673
|
-
# code_commit: {
|
1674
|
-
# name: "Name", # required
|
1675
|
-
# },
|
1676
|
-
# bitbucket: {
|
1677
|
-
# name: "Name", # required
|
1678
|
-
# connection_arn: "ConnectionArn", # required
|
1679
|
-
# owner: "Owner", # required
|
1680
|
-
# },
|
1681
|
-
# git_hub_enterprise_server: {
|
1682
|
-
# name: "Name", # required
|
1683
|
-
# connection_arn: "ConnectionArn", # required
|
1684
|
-
# owner: "Owner", # required
|
1685
|
-
# },
|
1686
|
-
# s3_bucket: {
|
1687
|
-
# name: "Name", # required
|
1688
|
-
# bucket_name: "S3BucketName", # required
|
1689
|
-
# },
|
1690
|
-
# }
|
1691
|
-
#
|
1692
1403
|
# @!attribute [rw] code_commit
|
1693
1404
|
# Information about an Amazon Web Services CodeCommit repository.
|
1694
1405
|
# @return [Types::CodeCommitRepository]
|
@@ -1724,48 +1435,6 @@ module Aws::CodeGuruReviewer
|
|
1724
1435
|
#
|
1725
1436
|
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CreateCodeReview
|
1726
1437
|
#
|
1727
|
-
# @note When making an API call, you may pass RepositoryAnalysis
|
1728
|
-
# data as a hash:
|
1729
|
-
#
|
1730
|
-
# {
|
1731
|
-
# repository_head: {
|
1732
|
-
# branch_name: "BranchName", # required
|
1733
|
-
# },
|
1734
|
-
# source_code_type: {
|
1735
|
-
# commit_diff: {
|
1736
|
-
# source_commit: "CommitId",
|
1737
|
-
# destination_commit: "CommitId",
|
1738
|
-
# merge_base_commit: "CommitId",
|
1739
|
-
# },
|
1740
|
-
# repository_head: {
|
1741
|
-
# branch_name: "BranchName", # required
|
1742
|
-
# },
|
1743
|
-
# branch_diff: {
|
1744
|
-
# source_branch_name: "BranchName", # required
|
1745
|
-
# destination_branch_name: "BranchName", # required
|
1746
|
-
# },
|
1747
|
-
# s3_bucket_repository: {
|
1748
|
-
# name: "Name", # required
|
1749
|
-
# details: {
|
1750
|
-
# bucket_name: "S3BucketName",
|
1751
|
-
# code_artifacts: {
|
1752
|
-
# source_code_artifacts_object_key: "SourceCodeArtifactsObjectKey", # required
|
1753
|
-
# build_artifacts_object_key: "BuildArtifactsObjectKey",
|
1754
|
-
# },
|
1755
|
-
# },
|
1756
|
-
# },
|
1757
|
-
# request_metadata: {
|
1758
|
-
# request_id: "RequestId",
|
1759
|
-
# requester: "Requester",
|
1760
|
-
# event_info: {
|
1761
|
-
# name: "EventName",
|
1762
|
-
# state: "EventState",
|
1763
|
-
# },
|
1764
|
-
# vendor_name: "GitHub", # accepts GitHub, GitLab, NativeS3
|
1765
|
-
# },
|
1766
|
-
# },
|
1767
|
-
# }
|
1768
|
-
#
|
1769
1438
|
# @!attribute [rw] repository_head
|
1770
1439
|
# A [SourceCodeType][1] that specifies the tip of a branch in an
|
1771
1440
|
# associated repository.
|
@@ -2046,13 +1715,6 @@ module Aws::CodeGuruReviewer
|
|
2046
1715
|
#
|
2047
1716
|
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType
|
2048
1717
|
#
|
2049
|
-
# @note When making an API call, you may pass RepositoryHeadSourceCodeType
|
2050
|
-
# data as a hash:
|
2051
|
-
#
|
2052
|
-
# {
|
2053
|
-
# branch_name: "BranchName", # required
|
2054
|
-
# }
|
2055
|
-
#
|
2056
1718
|
# @!attribute [rw] branch_name
|
2057
1719
|
# The name of the branch in an associated repository. The
|
2058
1720
|
# `RepositoryHeadSourceCodeType` specifies the tip of this branch.
|
@@ -2069,19 +1731,6 @@ module Aws::CodeGuruReviewer
|
|
2069
1731
|
# Metadata that is associated with a code review. This applies to both
|
2070
1732
|
# pull request and repository analysis code reviews.
|
2071
1733
|
#
|
2072
|
-
# @note When making an API call, you may pass RequestMetadata
|
2073
|
-
# data as a hash:
|
2074
|
-
#
|
2075
|
-
# {
|
2076
|
-
# request_id: "RequestId",
|
2077
|
-
# requester: "Requester",
|
2078
|
-
# event_info: {
|
2079
|
-
# name: "EventName",
|
2080
|
-
# state: "EventState",
|
2081
|
-
# },
|
2082
|
-
# vendor_name: "GitHub", # accepts GitHub, GitLab, NativeS3
|
2083
|
-
# }
|
2084
|
-
#
|
2085
1734
|
# @!attribute [rw] request_id
|
2086
1735
|
# The ID of the request. This is required for a pull request code
|
2087
1736
|
# review.
|
@@ -2176,20 +1825,6 @@ module Aws::CodeGuruReviewer
|
|
2176
1825
|
# associated repository contains a source code .zip file and a build
|
2177
1826
|
# artifacts .zip file that contains .jar or .class files.
|
2178
1827
|
#
|
2179
|
-
# @note When making an API call, you may pass S3BucketRepository
|
2180
|
-
# data as a hash:
|
2181
|
-
#
|
2182
|
-
# {
|
2183
|
-
# name: "Name", # required
|
2184
|
-
# details: {
|
2185
|
-
# bucket_name: "S3BucketName",
|
2186
|
-
# code_artifacts: {
|
2187
|
-
# source_code_artifacts_object_key: "SourceCodeArtifactsObjectKey", # required
|
2188
|
-
# build_artifacts_object_key: "BuildArtifactsObjectKey",
|
2189
|
-
# },
|
2190
|
-
# },
|
2191
|
-
# }
|
2192
|
-
#
|
2193
1828
|
# @!attribute [rw] name
|
2194
1829
|
# The name of the repository when the `ProviderType` is `S3Bucket`.
|
2195
1830
|
# @return [String]
|
@@ -2212,14 +1847,6 @@ module Aws::CodeGuruReviewer
|
|
2212
1847
|
|
2213
1848
|
# Information about a repository in an S3 bucket.
|
2214
1849
|
#
|
2215
|
-
# @note When making an API call, you may pass S3Repository
|
2216
|
-
# data as a hash:
|
2217
|
-
#
|
2218
|
-
# {
|
2219
|
-
# name: "Name", # required
|
2220
|
-
# bucket_name: "S3BucketName", # required
|
2221
|
-
# }
|
2222
|
-
#
|
2223
1850
|
# @!attribute [rw] name
|
2224
1851
|
# The name of the repository in the S3 bucket.
|
2225
1852
|
# @return [String]
|
@@ -2242,17 +1869,6 @@ module Aws::CodeGuruReviewer
|
|
2242
1869
|
# contains the S3 object keys for a source code .zip file and for a
|
2243
1870
|
# build artifacts .zip file that contains .jar or .class files.
|
2244
1871
|
#
|
2245
|
-
# @note When making an API call, you may pass S3RepositoryDetails
|
2246
|
-
# data as a hash:
|
2247
|
-
#
|
2248
|
-
# {
|
2249
|
-
# bucket_name: "S3BucketName",
|
2250
|
-
# code_artifacts: {
|
2251
|
-
# source_code_artifacts_object_key: "SourceCodeArtifactsObjectKey", # required
|
2252
|
-
# build_artifacts_object_key: "BuildArtifactsObjectKey",
|
2253
|
-
# },
|
2254
|
-
# }
|
2255
|
-
#
|
2256
1872
|
# @!attribute [rw] bucket_name
|
2257
1873
|
# The name of the S3 bucket used for associating a new S3 repository.
|
2258
1874
|
# It must begin with `codeguru-reviewer-`.
|
@@ -2275,43 +1891,6 @@ module Aws::CodeGuruReviewer
|
|
2275
1891
|
|
2276
1892
|
# Specifies the source code that is analyzed in a code review.
|
2277
1893
|
#
|
2278
|
-
# @note When making an API call, you may pass SourceCodeType
|
2279
|
-
# data as a hash:
|
2280
|
-
#
|
2281
|
-
# {
|
2282
|
-
# commit_diff: {
|
2283
|
-
# source_commit: "CommitId",
|
2284
|
-
# destination_commit: "CommitId",
|
2285
|
-
# merge_base_commit: "CommitId",
|
2286
|
-
# },
|
2287
|
-
# repository_head: {
|
2288
|
-
# branch_name: "BranchName", # required
|
2289
|
-
# },
|
2290
|
-
# branch_diff: {
|
2291
|
-
# source_branch_name: "BranchName", # required
|
2292
|
-
# destination_branch_name: "BranchName", # required
|
2293
|
-
# },
|
2294
|
-
# s3_bucket_repository: {
|
2295
|
-
# name: "Name", # required
|
2296
|
-
# details: {
|
2297
|
-
# bucket_name: "S3BucketName",
|
2298
|
-
# code_artifacts: {
|
2299
|
-
# source_code_artifacts_object_key: "SourceCodeArtifactsObjectKey", # required
|
2300
|
-
# build_artifacts_object_key: "BuildArtifactsObjectKey",
|
2301
|
-
# },
|
2302
|
-
# },
|
2303
|
-
# },
|
2304
|
-
# request_metadata: {
|
2305
|
-
# request_id: "RequestId",
|
2306
|
-
# requester: "Requester",
|
2307
|
-
# event_info: {
|
2308
|
-
# name: "EventName",
|
2309
|
-
# state: "EventState",
|
2310
|
-
# },
|
2311
|
-
# vendor_name: "GitHub", # accepts GitHub, GitLab, NativeS3
|
2312
|
-
# },
|
2313
|
-
# }
|
2314
|
-
#
|
2315
1894
|
# @!attribute [rw] commit_diff
|
2316
1895
|
# A [SourceCodeType][1] that specifies a commit diff created by a pull
|
2317
1896
|
# request on an associated repository.
|
@@ -2372,16 +1951,6 @@ module Aws::CodeGuruReviewer
|
|
2372
1951
|
include Aws::Structure
|
2373
1952
|
end
|
2374
1953
|
|
2375
|
-
# @note When making an API call, you may pass TagResourceRequest
|
2376
|
-
# data as a hash:
|
2377
|
-
#
|
2378
|
-
# {
|
2379
|
-
# resource_arn: "AssociationArn", # required
|
2380
|
-
# tags: { # required
|
2381
|
-
# "TagKey" => "TagValue",
|
2382
|
-
# },
|
2383
|
-
# }
|
2384
|
-
#
|
2385
1954
|
# @!attribute [rw] resource_arn
|
2386
1955
|
# The Amazon Resource Name (ARN) of the [RepositoryAssociation][1]
|
2387
1956
|
# object. You can retrieve this ARN by calling
|
@@ -2422,15 +1991,6 @@ module Aws::CodeGuruReviewer
|
|
2422
1991
|
# Information about a third-party source repository connected to
|
2423
1992
|
# CodeGuru Reviewer.
|
2424
1993
|
#
|
2425
|
-
# @note When making an API call, you may pass ThirdPartySourceRepository
|
2426
|
-
# data as a hash:
|
2427
|
-
#
|
2428
|
-
# {
|
2429
|
-
# name: "Name", # required
|
2430
|
-
# connection_arn: "ConnectionArn", # required
|
2431
|
-
# owner: "Owner", # required
|
2432
|
-
# }
|
2433
|
-
#
|
2434
1994
|
# @!attribute [rw] name
|
2435
1995
|
# The name of the third party source repository.
|
2436
1996
|
# @return [String]
|
@@ -2477,14 +2037,6 @@ module Aws::CodeGuruReviewer
|
|
2477
2037
|
include Aws::Structure
|
2478
2038
|
end
|
2479
2039
|
|
2480
|
-
# @note When making an API call, you may pass UntagResourceRequest
|
2481
|
-
# data as a hash:
|
2482
|
-
#
|
2483
|
-
# {
|
2484
|
-
# resource_arn: "AssociationArn", # required
|
2485
|
-
# tag_keys: ["TagKey"], # required
|
2486
|
-
# }
|
2487
|
-
#
|
2488
2040
|
# @!attribute [rw] resource_arn
|
2489
2041
|
# The Amazon Resource Name (ARN) of the [RepositoryAssociation][1]
|
2490
2042
|
# object. You can retrieve this ARN by calling
|
@@ -13,10 +13,14 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-codegurureviewer/types'
|
15
15
|
require_relative 'aws-sdk-codegurureviewer/client_api'
|
16
|
+
require_relative 'aws-sdk-codegurureviewer/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-codegurureviewer/client'
|
17
18
|
require_relative 'aws-sdk-codegurureviewer/errors'
|
18
19
|
require_relative 'aws-sdk-codegurureviewer/waiters'
|
19
20
|
require_relative 'aws-sdk-codegurureviewer/resource'
|
21
|
+
require_relative 'aws-sdk-codegurureviewer/endpoint_parameters'
|
22
|
+
require_relative 'aws-sdk-codegurureviewer/endpoint_provider'
|
23
|
+
require_relative 'aws-sdk-codegurureviewer/endpoints'
|
20
24
|
require_relative 'aws-sdk-codegurureviewer/customizations'
|
21
25
|
|
22
26
|
# This module provides support for Amazon CodeGuru Reviewer. This module is available in the
|
@@ -49,6 +53,6 @@ require_relative 'aws-sdk-codegurureviewer/customizations'
|
|
49
53
|
# @!group service
|
50
54
|
module Aws::CodeGuruReviewer
|
51
55
|
|
52
|
-
GEM_VERSION = '1.
|
56
|
+
GEM_VERSION = '1.35.0'
|
53
57
|
|
54
58
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-codegurureviewer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.35.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:
|
11
|
+
date: 2023-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.165.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,11 @@ files:
|
|
59
59
|
- lib/aws-sdk-codegurureviewer/client.rb
|
60
60
|
- lib/aws-sdk-codegurureviewer/client_api.rb
|
61
61
|
- lib/aws-sdk-codegurureviewer/customizations.rb
|
62
|
+
- lib/aws-sdk-codegurureviewer/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-codegurureviewer/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-codegurureviewer/endpoints.rb
|
62
65
|
- lib/aws-sdk-codegurureviewer/errors.rb
|
66
|
+
- lib/aws-sdk-codegurureviewer/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-codegurureviewer/resource.rb
|
64
68
|
- lib/aws-sdk-codegurureviewer/types.rb
|
65
69
|
- lib/aws-sdk-codegurureviewer/waiters.rb
|