aws-sdk-artifact 1.30.0 → 1.31.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-artifact/client.rb +87 -1
- data/lib/aws-sdk-artifact/client_api.rb +31 -0
- data/lib/aws-sdk-artifact/types.rb +39 -0
- data/lib/aws-sdk-artifact.rb +1 -1
- data/sig/client.rbs +13 -0
- data/sig/types.rbs +13 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dd628d811b3e6713a98d646d40875ff85dbf52d0d6fbaad5f993a4dc18b05dd8
|
|
4
|
+
data.tar.gz: 70918f32d0f8ff679ddec0719a54249f959b93aced4b009191da915474ba84e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e5dd2857cccb4931800ec456b7431871d2a419382dd79d57c5a0b06176b914fb128fb4124fa9891737a3249b97af0a6b4751f69da4db8387d054a59ed9c8da41
|
|
7
|
+
data.tar.gz: 672902e13881e734f155388f5ceec5b507d7d6ac69b57159191961aaeecc85acf5c24b64d2a88d4d138015614803ab5eba22f4ebc4e1aaedd76da94aca67b0e6
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.31.0
|
|
@@ -779,6 +779,92 @@ module Aws::Artifact
|
|
|
779
779
|
req.send_request(options)
|
|
780
780
|
end
|
|
781
781
|
|
|
782
|
+
# List available report versions for a given report.
|
|
783
|
+
#
|
|
784
|
+
# @option params [required, String] :report_id
|
|
785
|
+
# Unique resource ID for the report resource.
|
|
786
|
+
#
|
|
787
|
+
# @option params [Integer] :max_results
|
|
788
|
+
# Maximum number of resources to return in the paginated response.
|
|
789
|
+
#
|
|
790
|
+
# @option params [String] :next_token
|
|
791
|
+
# Pagination token to request the next page of resources.
|
|
792
|
+
#
|
|
793
|
+
# @return [Types::ListReportVersionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
794
|
+
#
|
|
795
|
+
# * {Types::ListReportVersionsResponse#reports #reports} => Array<Types::ReportSummary>
|
|
796
|
+
# * {Types::ListReportVersionsResponse#next_token #next_token} => String
|
|
797
|
+
#
|
|
798
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
799
|
+
#
|
|
800
|
+
#
|
|
801
|
+
# @example Example: Invoke ListReportVersions operation
|
|
802
|
+
#
|
|
803
|
+
# # The ListReportVersions operation returns a collection of report versions
|
|
804
|
+
# # for a given resource.
|
|
805
|
+
#
|
|
806
|
+
# resp = client.list_report_versions({
|
|
807
|
+
# report_id: "report-abcdef0123456789",
|
|
808
|
+
# })
|
|
809
|
+
#
|
|
810
|
+
# resp.to_h outputs the following:
|
|
811
|
+
# {
|
|
812
|
+
# next_token: "gPFEGk7CF4wS901w7ppYclt7gPFEGk7CF4wS901w7ppYclt7gPFEGk7CF4wS901w7ppYclt7",
|
|
813
|
+
# reports: [
|
|
814
|
+
# {
|
|
815
|
+
# version: 1,
|
|
816
|
+
# name: "name",
|
|
817
|
+
# arn: "arn:aws:artifact:us-east-1::report:report-abcdef0123456789:1",
|
|
818
|
+
# category: "category",
|
|
819
|
+
# company_name: "companyName",
|
|
820
|
+
# description: "description",
|
|
821
|
+
# id: "report-abcdef0123456789",
|
|
822
|
+
# period_end: Time.parse("2022-04-01T20:32:04Z"),
|
|
823
|
+
# period_start: Time.parse("2022-04-01T20:32:04Z"),
|
|
824
|
+
# product_name: "productName",
|
|
825
|
+
# series: "series",
|
|
826
|
+
# state: "PUBLISHED",
|
|
827
|
+
# },
|
|
828
|
+
# ],
|
|
829
|
+
# }
|
|
830
|
+
#
|
|
831
|
+
# @example Request syntax with placeholder values
|
|
832
|
+
#
|
|
833
|
+
# resp = client.list_report_versions({
|
|
834
|
+
# report_id: "ReportId", # required
|
|
835
|
+
# max_results: 1,
|
|
836
|
+
# next_token: "NextTokenAttribute",
|
|
837
|
+
# })
|
|
838
|
+
#
|
|
839
|
+
# @example Response structure
|
|
840
|
+
#
|
|
841
|
+
# resp.reports #=> Array
|
|
842
|
+
# resp.reports[0].id #=> String
|
|
843
|
+
# resp.reports[0].name #=> String
|
|
844
|
+
# resp.reports[0].state #=> String, one of "PUBLISHED", "UNPUBLISHED"
|
|
845
|
+
# resp.reports[0].arn #=> String
|
|
846
|
+
# resp.reports[0].version #=> Integer
|
|
847
|
+
# resp.reports[0].upload_state #=> String, one of "PROCESSING", "COMPLETE", "FAILED", "FAULT"
|
|
848
|
+
# resp.reports[0].description #=> String
|
|
849
|
+
# resp.reports[0].period_start #=> Time
|
|
850
|
+
# resp.reports[0].period_end #=> Time
|
|
851
|
+
# resp.reports[0].series #=> String
|
|
852
|
+
# resp.reports[0].category #=> String
|
|
853
|
+
# resp.reports[0].company_name #=> String
|
|
854
|
+
# resp.reports[0].product_name #=> String
|
|
855
|
+
# resp.reports[0].status_message #=> String
|
|
856
|
+
# resp.reports[0].acceptance_type #=> String, one of "PASSTHROUGH", "EXPLICIT"
|
|
857
|
+
# resp.next_token #=> String
|
|
858
|
+
#
|
|
859
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/artifact-2018-05-10/ListReportVersions AWS API Documentation
|
|
860
|
+
#
|
|
861
|
+
# @overload list_report_versions(params = {})
|
|
862
|
+
# @param [Hash] params ({})
|
|
863
|
+
def list_report_versions(params = {}, options = {})
|
|
864
|
+
req = build_request(:list_report_versions, params)
|
|
865
|
+
req.send_request(options)
|
|
866
|
+
end
|
|
867
|
+
|
|
782
868
|
# List available reports.
|
|
783
869
|
#
|
|
784
870
|
# @option params [Integer] :max_results
|
|
@@ -921,7 +1007,7 @@ module Aws::Artifact
|
|
|
921
1007
|
tracer: tracer
|
|
922
1008
|
)
|
|
923
1009
|
context[:gem_name] = 'aws-sdk-artifact'
|
|
924
|
-
context[:gem_version] = '1.
|
|
1010
|
+
context[:gem_version] = '1.31.0'
|
|
925
1011
|
Seahorse::Client::Request.new(handlers, context)
|
|
926
1012
|
end
|
|
927
1013
|
|
|
@@ -38,6 +38,8 @@ module Aws::Artifact
|
|
|
38
38
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
|
39
39
|
ListCustomerAgreementsRequest = Shapes::StructureShape.new(name: 'ListCustomerAgreementsRequest')
|
|
40
40
|
ListCustomerAgreementsResponse = Shapes::StructureShape.new(name: 'ListCustomerAgreementsResponse')
|
|
41
|
+
ListReportVersionsRequest = Shapes::StructureShape.new(name: 'ListReportVersionsRequest')
|
|
42
|
+
ListReportVersionsResponse = Shapes::StructureShape.new(name: 'ListReportVersionsResponse')
|
|
41
43
|
ListReportsRequest = Shapes::StructureShape.new(name: 'ListReportsRequest')
|
|
42
44
|
ListReportsResponse = Shapes::StructureShape.new(name: 'ListReportsResponse')
|
|
43
45
|
LongStringAttribute = Shapes::StringShape.new(name: 'LongStringAttribute')
|
|
@@ -136,6 +138,15 @@ module Aws::Artifact
|
|
|
136
138
|
ListCustomerAgreementsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenAttribute, location_name: "nextToken"))
|
|
137
139
|
ListCustomerAgreementsResponse.struct_class = Types::ListCustomerAgreementsResponse
|
|
138
140
|
|
|
141
|
+
ListReportVersionsRequest.add_member(:report_id, Shapes::ShapeRef.new(shape: ReportId, required: true, location: "querystring", location_name: "reportId"))
|
|
142
|
+
ListReportVersionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsAttribute, location: "querystring", location_name: "maxResults"))
|
|
143
|
+
ListReportVersionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenAttribute, location: "querystring", location_name: "nextToken"))
|
|
144
|
+
ListReportVersionsRequest.struct_class = Types::ListReportVersionsRequest
|
|
145
|
+
|
|
146
|
+
ListReportVersionsResponse.add_member(:reports, Shapes::ShapeRef.new(shape: ReportsList, required: true, location_name: "reports"))
|
|
147
|
+
ListReportVersionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenAttribute, location_name: "nextToken"))
|
|
148
|
+
ListReportVersionsResponse.struct_class = Types::ListReportVersionsResponse
|
|
149
|
+
|
|
139
150
|
ListReportsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsAttribute, location: "querystring", location_name: "maxResults"))
|
|
140
151
|
ListReportsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenAttribute, location: "querystring", location_name: "nextToken"))
|
|
141
152
|
ListReportsRequest.struct_class = Types::ListReportsRequest
|
|
@@ -316,6 +327,26 @@ module Aws::Artifact
|
|
|
316
327
|
)
|
|
317
328
|
end)
|
|
318
329
|
|
|
330
|
+
api.add_operation(:list_report_versions, Seahorse::Model::Operation.new.tap do |o|
|
|
331
|
+
o.name = "ListReportVersions"
|
|
332
|
+
o.http_method = "GET"
|
|
333
|
+
o.http_request_uri = "/v1/report/listVersions"
|
|
334
|
+
o.input = Shapes::ShapeRef.new(shape: ListReportVersionsRequest)
|
|
335
|
+
o.output = Shapes::ShapeRef.new(shape: ListReportVersionsResponse)
|
|
336
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
337
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
338
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
339
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
340
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
341
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
|
342
|
+
o[:pager] = Aws::Pager.new(
|
|
343
|
+
limit_key: "max_results",
|
|
344
|
+
tokens: {
|
|
345
|
+
"next_token" => "next_token"
|
|
346
|
+
}
|
|
347
|
+
)
|
|
348
|
+
end)
|
|
349
|
+
|
|
319
350
|
api.add_operation(:list_reports, Seahorse::Model::Operation.new.tap do |o|
|
|
320
351
|
o.name = "ListReports"
|
|
321
352
|
o.http_method = "GET"
|
|
@@ -302,6 +302,45 @@ module Aws::Artifact
|
|
|
302
302
|
include Aws::Structure
|
|
303
303
|
end
|
|
304
304
|
|
|
305
|
+
# @!attribute [rw] report_id
|
|
306
|
+
# Unique resource ID for the report resource.
|
|
307
|
+
# @return [String]
|
|
308
|
+
#
|
|
309
|
+
# @!attribute [rw] max_results
|
|
310
|
+
# Maximum number of resources to return in the paginated response.
|
|
311
|
+
# @return [Integer]
|
|
312
|
+
#
|
|
313
|
+
# @!attribute [rw] next_token
|
|
314
|
+
# Pagination token to request the next page of resources.
|
|
315
|
+
# @return [String]
|
|
316
|
+
#
|
|
317
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/artifact-2018-05-10/ListReportVersionsRequest AWS API Documentation
|
|
318
|
+
#
|
|
319
|
+
class ListReportVersionsRequest < Struct.new(
|
|
320
|
+
:report_id,
|
|
321
|
+
:max_results,
|
|
322
|
+
:next_token)
|
|
323
|
+
SENSITIVE = []
|
|
324
|
+
include Aws::Structure
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
# @!attribute [rw] reports
|
|
328
|
+
# List of report resources.
|
|
329
|
+
# @return [Array<Types::ReportSummary>]
|
|
330
|
+
#
|
|
331
|
+
# @!attribute [rw] next_token
|
|
332
|
+
# Pagination token to request the next page of resources.
|
|
333
|
+
# @return [String]
|
|
334
|
+
#
|
|
335
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/artifact-2018-05-10/ListReportVersionsResponse AWS API Documentation
|
|
336
|
+
#
|
|
337
|
+
class ListReportVersionsResponse < Struct.new(
|
|
338
|
+
:reports,
|
|
339
|
+
:next_token)
|
|
340
|
+
SENSITIVE = []
|
|
341
|
+
include Aws::Structure
|
|
342
|
+
end
|
|
343
|
+
|
|
305
344
|
# @!attribute [rw] max_results
|
|
306
345
|
# Maximum number of resources to return in the paginated response.
|
|
307
346
|
# @return [Integer]
|
data/lib/aws-sdk-artifact.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -134,6 +134,19 @@ module Aws
|
|
|
134
134
|
) -> _ListCustomerAgreementsResponseSuccess
|
|
135
135
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCustomerAgreementsResponseSuccess
|
|
136
136
|
|
|
137
|
+
interface _ListReportVersionsResponseSuccess
|
|
138
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListReportVersionsResponse]
|
|
139
|
+
def reports: () -> ::Array[Types::ReportSummary]
|
|
140
|
+
def next_token: () -> ::String
|
|
141
|
+
end
|
|
142
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Artifact/Client.html#list_report_versions-instance_method
|
|
143
|
+
def list_report_versions: (
|
|
144
|
+
report_id: ::String,
|
|
145
|
+
?max_results: ::Integer,
|
|
146
|
+
?next_token: ::String
|
|
147
|
+
) -> _ListReportVersionsResponseSuccess
|
|
148
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListReportVersionsResponseSuccess
|
|
149
|
+
|
|
137
150
|
interface _ListReportsResponseSuccess
|
|
138
151
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListReportsResponse]
|
|
139
152
|
def reports: () -> ::Array[Types::ReportSummary]
|
data/sig/types.rbs
CHANGED
|
@@ -103,6 +103,19 @@ module Aws::Artifact
|
|
|
103
103
|
SENSITIVE: []
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
+
class ListReportVersionsRequest
|
|
107
|
+
attr_accessor report_id: ::String
|
|
108
|
+
attr_accessor max_results: ::Integer
|
|
109
|
+
attr_accessor next_token: ::String
|
|
110
|
+
SENSITIVE: []
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
class ListReportVersionsResponse
|
|
114
|
+
attr_accessor reports: ::Array[Types::ReportSummary]
|
|
115
|
+
attr_accessor next_token: ::String
|
|
116
|
+
SENSITIVE: []
|
|
117
|
+
end
|
|
118
|
+
|
|
106
119
|
class ListReportsRequest
|
|
107
120
|
attr_accessor max_results: ::Integer
|
|
108
121
|
attr_accessor next_token: ::String
|