aws-sdk-artifact 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-artifact/client.rb +644 -0
- data/lib/aws-sdk-artifact/client_api.rb +300 -0
- data/lib/aws-sdk-artifact/customizations.rb +0 -0
- data/lib/aws-sdk-artifact/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-artifact/endpoint_provider.rb +54 -0
- data/lib/aws-sdk-artifact/endpoints.rb +100 -0
- data/lib/aws-sdk-artifact/errors.rb +232 -0
- data/lib/aws-sdk-artifact/plugins/endpoints.rb +82 -0
- data/lib/aws-sdk-artifact/resource.rb +26 -0
- data/lib/aws-sdk-artifact/types.rb +569 -0
- data/lib/aws-sdk-artifact.rb +57 -0
- data/sig/client.rbs +143 -0
- data/sig/errors.rbs +51 -0
- data/sig/resource.rbs +79 -0
- data/sig/types.rbs +178 -0
- data/sig/waiters.rbs +13 -0
- metadata +99 -0
@@ -0,0 +1,300 @@
|
|
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::Artifact
|
11
|
+
# @api private
|
12
|
+
module ClientApi
|
13
|
+
|
14
|
+
include Seahorse::Model
|
15
|
+
|
16
|
+
AcceptanceType = Shapes::StringShape.new(name: 'AcceptanceType')
|
17
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
18
|
+
AccountSettings = Shapes::StructureShape.new(name: 'AccountSettings')
|
19
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
20
|
+
GetAccountSettingsRequest = Shapes::StructureShape.new(name: 'GetAccountSettingsRequest')
|
21
|
+
GetAccountSettingsResponse = Shapes::StructureShape.new(name: 'GetAccountSettingsResponse')
|
22
|
+
GetReportMetadataRequest = Shapes::StructureShape.new(name: 'GetReportMetadataRequest')
|
23
|
+
GetReportMetadataResponse = Shapes::StructureShape.new(name: 'GetReportMetadataResponse')
|
24
|
+
GetReportRequest = Shapes::StructureShape.new(name: 'GetReportRequest')
|
25
|
+
GetReportResponse = Shapes::StructureShape.new(name: 'GetReportResponse')
|
26
|
+
GetReportResponseDocumentPresignedUrlString = Shapes::StringShape.new(name: 'GetReportResponseDocumentPresignedUrlString')
|
27
|
+
GetTermForReportRequest = Shapes::StructureShape.new(name: 'GetTermForReportRequest')
|
28
|
+
GetTermForReportResponse = Shapes::StructureShape.new(name: 'GetTermForReportResponse')
|
29
|
+
GetTermForReportResponseDocumentPresignedUrlString = Shapes::StringShape.new(name: 'GetTermForReportResponseDocumentPresignedUrlString')
|
30
|
+
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
31
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
32
|
+
ListReportsRequest = Shapes::StructureShape.new(name: 'ListReportsRequest')
|
33
|
+
ListReportsResponse = Shapes::StructureShape.new(name: 'ListReportsResponse')
|
34
|
+
LongStringAttribute = Shapes::StringShape.new(name: 'LongStringAttribute')
|
35
|
+
MaxResultsAttribute = Shapes::IntegerShape.new(name: 'MaxResultsAttribute')
|
36
|
+
NextTokenAttribute = Shapes::StringShape.new(name: 'NextTokenAttribute')
|
37
|
+
NotificationSubscriptionStatus = Shapes::StringShape.new(name: 'NotificationSubscriptionStatus')
|
38
|
+
PublishedState = Shapes::StringShape.new(name: 'PublishedState')
|
39
|
+
PutAccountSettingsRequest = Shapes::StructureShape.new(name: 'PutAccountSettingsRequest')
|
40
|
+
PutAccountSettingsResponse = Shapes::StructureShape.new(name: 'PutAccountSettingsResponse')
|
41
|
+
ReportDetail = Shapes::StructureShape.new(name: 'ReportDetail')
|
42
|
+
ReportId = Shapes::StringShape.new(name: 'ReportId')
|
43
|
+
ReportSummary = Shapes::StructureShape.new(name: 'ReportSummary')
|
44
|
+
ReportsList = Shapes::ListShape.new(name: 'ReportsList')
|
45
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
46
|
+
SequenceNumberAttribute = Shapes::IntegerShape.new(name: 'SequenceNumberAttribute')
|
47
|
+
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
48
|
+
ShortStringAttribute = Shapes::StringShape.new(name: 'ShortStringAttribute')
|
49
|
+
StatusMessage = Shapes::StringShape.new(name: 'StatusMessage')
|
50
|
+
String = Shapes::StringShape.new(name: 'String')
|
51
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
52
|
+
TimestampAttribute = Shapes::TimestampShape.new(name: 'TimestampAttribute', timestampFormat: "iso8601")
|
53
|
+
UploadState = Shapes::StringShape.new(name: 'UploadState')
|
54
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
55
|
+
ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
|
56
|
+
ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
|
57
|
+
ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
|
58
|
+
VersionAttribute = Shapes::IntegerShape.new(name: 'VersionAttribute')
|
59
|
+
|
60
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
61
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
62
|
+
|
63
|
+
AccountSettings.add_member(:notification_subscription_status, Shapes::ShapeRef.new(shape: NotificationSubscriptionStatus, location_name: "notificationSubscriptionStatus"))
|
64
|
+
AccountSettings.struct_class = Types::AccountSettings
|
65
|
+
|
66
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
67
|
+
ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
68
|
+
ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
69
|
+
ConflictException.struct_class = Types::ConflictException
|
70
|
+
|
71
|
+
GetAccountSettingsRequest.struct_class = Types::GetAccountSettingsRequest
|
72
|
+
|
73
|
+
GetAccountSettingsResponse.add_member(:account_settings, Shapes::ShapeRef.new(shape: AccountSettings, location_name: "accountSettings"))
|
74
|
+
GetAccountSettingsResponse.struct_class = Types::GetAccountSettingsResponse
|
75
|
+
|
76
|
+
GetReportMetadataRequest.add_member(:report_id, Shapes::ShapeRef.new(shape: ReportId, required: true, location: "querystring", location_name: "reportId"))
|
77
|
+
GetReportMetadataRequest.add_member(:report_version, Shapes::ShapeRef.new(shape: VersionAttribute, location: "querystring", location_name: "reportVersion"))
|
78
|
+
GetReportMetadataRequest.struct_class = Types::GetReportMetadataRequest
|
79
|
+
|
80
|
+
GetReportMetadataResponse.add_member(:report_details, Shapes::ShapeRef.new(shape: ReportDetail, location_name: "reportDetails"))
|
81
|
+
GetReportMetadataResponse.struct_class = Types::GetReportMetadataResponse
|
82
|
+
|
83
|
+
GetReportRequest.add_member(:report_id, Shapes::ShapeRef.new(shape: ReportId, required: true, location: "querystring", location_name: "reportId"))
|
84
|
+
GetReportRequest.add_member(:report_version, Shapes::ShapeRef.new(shape: VersionAttribute, location: "querystring", location_name: "reportVersion"))
|
85
|
+
GetReportRequest.add_member(:term_token, Shapes::ShapeRef.new(shape: ShortStringAttribute, required: true, location: "querystring", location_name: "termToken"))
|
86
|
+
GetReportRequest.struct_class = Types::GetReportRequest
|
87
|
+
|
88
|
+
GetReportResponse.add_member(:document_presigned_url, Shapes::ShapeRef.new(shape: GetReportResponseDocumentPresignedUrlString, location_name: "documentPresignedUrl"))
|
89
|
+
GetReportResponse.struct_class = Types::GetReportResponse
|
90
|
+
|
91
|
+
GetTermForReportRequest.add_member(:report_id, Shapes::ShapeRef.new(shape: ReportId, required: true, location: "querystring", location_name: "reportId"))
|
92
|
+
GetTermForReportRequest.add_member(:report_version, Shapes::ShapeRef.new(shape: VersionAttribute, location: "querystring", location_name: "reportVersion"))
|
93
|
+
GetTermForReportRequest.struct_class = Types::GetTermForReportRequest
|
94
|
+
|
95
|
+
GetTermForReportResponse.add_member(:document_presigned_url, Shapes::ShapeRef.new(shape: GetTermForReportResponseDocumentPresignedUrlString, location_name: "documentPresignedUrl"))
|
96
|
+
GetTermForReportResponse.add_member(:term_token, Shapes::ShapeRef.new(shape: String, location_name: "termToken"))
|
97
|
+
GetTermForReportResponse.struct_class = Types::GetTermForReportResponse
|
98
|
+
|
99
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
100
|
+
InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
|
101
|
+
InternalServerException.struct_class = Types::InternalServerException
|
102
|
+
|
103
|
+
ListReportsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsAttribute, location: "querystring", location_name: "maxResults"))
|
104
|
+
ListReportsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenAttribute, location: "querystring", location_name: "nextToken"))
|
105
|
+
ListReportsRequest.struct_class = Types::ListReportsRequest
|
106
|
+
|
107
|
+
ListReportsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenAttribute, location_name: "nextToken"))
|
108
|
+
ListReportsResponse.add_member(:reports, Shapes::ShapeRef.new(shape: ReportsList, location_name: "reports"))
|
109
|
+
ListReportsResponse.struct_class = Types::ListReportsResponse
|
110
|
+
|
111
|
+
PutAccountSettingsRequest.add_member(:notification_subscription_status, Shapes::ShapeRef.new(shape: NotificationSubscriptionStatus, location_name: "notificationSubscriptionStatus"))
|
112
|
+
PutAccountSettingsRequest.struct_class = Types::PutAccountSettingsRequest
|
113
|
+
|
114
|
+
PutAccountSettingsResponse.add_member(:account_settings, Shapes::ShapeRef.new(shape: AccountSettings, location_name: "accountSettings"))
|
115
|
+
PutAccountSettingsResponse.struct_class = Types::PutAccountSettingsResponse
|
116
|
+
|
117
|
+
ReportDetail.add_member(:acceptance_type, Shapes::ShapeRef.new(shape: AcceptanceType, location_name: "acceptanceType"))
|
118
|
+
ReportDetail.add_member(:arn, Shapes::ShapeRef.new(shape: LongStringAttribute, location_name: "arn"))
|
119
|
+
ReportDetail.add_member(:category, Shapes::ShapeRef.new(shape: ShortStringAttribute, location_name: "category"))
|
120
|
+
ReportDetail.add_member(:company_name, Shapes::ShapeRef.new(shape: ShortStringAttribute, location_name: "companyName"))
|
121
|
+
ReportDetail.add_member(:created_at, Shapes::ShapeRef.new(shape: TimestampAttribute, location_name: "createdAt"))
|
122
|
+
ReportDetail.add_member(:deleted_at, Shapes::ShapeRef.new(shape: TimestampAttribute, location_name: "deletedAt"))
|
123
|
+
ReportDetail.add_member(:description, Shapes::ShapeRef.new(shape: LongStringAttribute, location_name: "description"))
|
124
|
+
ReportDetail.add_member(:id, Shapes::ShapeRef.new(shape: ReportId, location_name: "id"))
|
125
|
+
ReportDetail.add_member(:last_modified_at, Shapes::ShapeRef.new(shape: TimestampAttribute, location_name: "lastModifiedAt"))
|
126
|
+
ReportDetail.add_member(:name, Shapes::ShapeRef.new(shape: ShortStringAttribute, location_name: "name"))
|
127
|
+
ReportDetail.add_member(:period_end, Shapes::ShapeRef.new(shape: TimestampAttribute, location_name: "periodEnd"))
|
128
|
+
ReportDetail.add_member(:period_start, Shapes::ShapeRef.new(shape: TimestampAttribute, location_name: "periodStart"))
|
129
|
+
ReportDetail.add_member(:product_name, Shapes::ShapeRef.new(shape: ShortStringAttribute, location_name: "productName"))
|
130
|
+
ReportDetail.add_member(:sequence_number, Shapes::ShapeRef.new(shape: SequenceNumberAttribute, location_name: "sequenceNumber"))
|
131
|
+
ReportDetail.add_member(:series, Shapes::ShapeRef.new(shape: ShortStringAttribute, location_name: "series"))
|
132
|
+
ReportDetail.add_member(:state, Shapes::ShapeRef.new(shape: PublishedState, location_name: "state"))
|
133
|
+
ReportDetail.add_member(:status_message, Shapes::ShapeRef.new(shape: StatusMessage, location_name: "statusMessage"))
|
134
|
+
ReportDetail.add_member(:term_arn, Shapes::ShapeRef.new(shape: LongStringAttribute, location_name: "termArn"))
|
135
|
+
ReportDetail.add_member(:upload_state, Shapes::ShapeRef.new(shape: UploadState, location_name: "uploadState"))
|
136
|
+
ReportDetail.add_member(:version, Shapes::ShapeRef.new(shape: VersionAttribute, location_name: "version"))
|
137
|
+
ReportDetail.struct_class = Types::ReportDetail
|
138
|
+
|
139
|
+
ReportSummary.add_member(:arn, Shapes::ShapeRef.new(shape: LongStringAttribute, location_name: "arn"))
|
140
|
+
ReportSummary.add_member(:category, Shapes::ShapeRef.new(shape: ShortStringAttribute, location_name: "category"))
|
141
|
+
ReportSummary.add_member(:company_name, Shapes::ShapeRef.new(shape: ShortStringAttribute, location_name: "companyName"))
|
142
|
+
ReportSummary.add_member(:description, Shapes::ShapeRef.new(shape: LongStringAttribute, location_name: "description"))
|
143
|
+
ReportSummary.add_member(:id, Shapes::ShapeRef.new(shape: ReportId, location_name: "id"))
|
144
|
+
ReportSummary.add_member(:name, Shapes::ShapeRef.new(shape: ShortStringAttribute, location_name: "name"))
|
145
|
+
ReportSummary.add_member(:period_end, Shapes::ShapeRef.new(shape: TimestampAttribute, location_name: "periodEnd"))
|
146
|
+
ReportSummary.add_member(:period_start, Shapes::ShapeRef.new(shape: TimestampAttribute, location_name: "periodStart"))
|
147
|
+
ReportSummary.add_member(:product_name, Shapes::ShapeRef.new(shape: ShortStringAttribute, location_name: "productName"))
|
148
|
+
ReportSummary.add_member(:series, Shapes::ShapeRef.new(shape: ShortStringAttribute, location_name: "series"))
|
149
|
+
ReportSummary.add_member(:state, Shapes::ShapeRef.new(shape: PublishedState, location_name: "state"))
|
150
|
+
ReportSummary.add_member(:status_message, Shapes::ShapeRef.new(shape: StatusMessage, location_name: "statusMessage"))
|
151
|
+
ReportSummary.add_member(:upload_state, Shapes::ShapeRef.new(shape: UploadState, location_name: "uploadState"))
|
152
|
+
ReportSummary.add_member(:version, Shapes::ShapeRef.new(shape: VersionAttribute, location_name: "version"))
|
153
|
+
ReportSummary.struct_class = Types::ReportSummary
|
154
|
+
|
155
|
+
ReportsList.member = Shapes::ShapeRef.new(shape: ReportSummary)
|
156
|
+
|
157
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
158
|
+
ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
159
|
+
ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
160
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
161
|
+
|
162
|
+
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
163
|
+
ServiceQuotaExceededException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "quotaCode"))
|
164
|
+
ServiceQuotaExceededException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
165
|
+
ServiceQuotaExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
166
|
+
ServiceQuotaExceededException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "serviceCode"))
|
167
|
+
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
168
|
+
|
169
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
170
|
+
ThrottlingException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, location_name: "quotaCode"))
|
171
|
+
ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
|
172
|
+
ThrottlingException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, location_name: "serviceCode"))
|
173
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
174
|
+
|
175
|
+
ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
|
176
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
177
|
+
ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, required: true, location_name: "reason"))
|
178
|
+
ValidationException.struct_class = Types::ValidationException
|
179
|
+
|
180
|
+
ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
181
|
+
ValidationExceptionField.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
|
182
|
+
ValidationExceptionField.struct_class = Types::ValidationExceptionField
|
183
|
+
|
184
|
+
ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
|
185
|
+
|
186
|
+
|
187
|
+
# @api private
|
188
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
189
|
+
|
190
|
+
api.version = "2018-05-10"
|
191
|
+
|
192
|
+
api.metadata = {
|
193
|
+
"apiVersion" => "2018-05-10",
|
194
|
+
"endpointPrefix" => "artifact",
|
195
|
+
"jsonVersion" => "1.1",
|
196
|
+
"protocol" => "rest-json",
|
197
|
+
"serviceFullName" => "AWS Artifact",
|
198
|
+
"serviceId" => "Artifact",
|
199
|
+
"signatureVersion" => "v4",
|
200
|
+
"signingName" => "artifact",
|
201
|
+
"uid" => "artifact-2018-05-10",
|
202
|
+
}
|
203
|
+
|
204
|
+
api.add_operation(:get_account_settings, Seahorse::Model::Operation.new.tap do |o|
|
205
|
+
o.name = "GetAccountSettings"
|
206
|
+
o.http_method = "GET"
|
207
|
+
o.http_request_uri = "/v1/account-settings/get"
|
208
|
+
o.input = Shapes::ShapeRef.new(shape: GetAccountSettingsRequest)
|
209
|
+
o.output = Shapes::ShapeRef.new(shape: GetAccountSettingsResponse)
|
210
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
211
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
212
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
213
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
214
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
215
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
216
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
217
|
+
end)
|
218
|
+
|
219
|
+
api.add_operation(:get_report, Seahorse::Model::Operation.new.tap do |o|
|
220
|
+
o.name = "GetReport"
|
221
|
+
o.http_method = "GET"
|
222
|
+
o.http_request_uri = "/v1/report/get"
|
223
|
+
o.input = Shapes::ShapeRef.new(shape: GetReportRequest)
|
224
|
+
o.output = Shapes::ShapeRef.new(shape: GetReportResponse)
|
225
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
226
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
227
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
228
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
229
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
230
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
231
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
232
|
+
end)
|
233
|
+
|
234
|
+
api.add_operation(:get_report_metadata, Seahorse::Model::Operation.new.tap do |o|
|
235
|
+
o.name = "GetReportMetadata"
|
236
|
+
o.http_method = "GET"
|
237
|
+
o.http_request_uri = "/v1/report/getMetadata"
|
238
|
+
o.input = Shapes::ShapeRef.new(shape: GetReportMetadataRequest)
|
239
|
+
o.output = Shapes::ShapeRef.new(shape: GetReportMetadataResponse)
|
240
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
241
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
242
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
243
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
244
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
245
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
246
|
+
end)
|
247
|
+
|
248
|
+
api.add_operation(:get_term_for_report, Seahorse::Model::Operation.new.tap do |o|
|
249
|
+
o.name = "GetTermForReport"
|
250
|
+
o.http_method = "GET"
|
251
|
+
o.http_request_uri = "/v1/report/getTermForReport"
|
252
|
+
o.input = Shapes::ShapeRef.new(shape: GetTermForReportRequest)
|
253
|
+
o.output = Shapes::ShapeRef.new(shape: GetTermForReportResponse)
|
254
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
255
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
256
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
257
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
258
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
259
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
260
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
261
|
+
end)
|
262
|
+
|
263
|
+
api.add_operation(:list_reports, Seahorse::Model::Operation.new.tap do |o|
|
264
|
+
o.name = "ListReports"
|
265
|
+
o.http_method = "GET"
|
266
|
+
o.http_request_uri = "/v1/report/list"
|
267
|
+
o.input = Shapes::ShapeRef.new(shape: ListReportsRequest)
|
268
|
+
o.output = Shapes::ShapeRef.new(shape: ListReportsResponse)
|
269
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
270
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
271
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
272
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
273
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
274
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
275
|
+
o[:pager] = Aws::Pager.new(
|
276
|
+
limit_key: "max_results",
|
277
|
+
tokens: {
|
278
|
+
"next_token" => "next_token"
|
279
|
+
}
|
280
|
+
)
|
281
|
+
end)
|
282
|
+
|
283
|
+
api.add_operation(:put_account_settings, Seahorse::Model::Operation.new.tap do |o|
|
284
|
+
o.name = "PutAccountSettings"
|
285
|
+
o.http_method = "PUT"
|
286
|
+
o.http_request_uri = "/v1/account-settings/put"
|
287
|
+
o.input = Shapes::ShapeRef.new(shape: PutAccountSettingsRequest)
|
288
|
+
o.output = Shapes::ShapeRef.new(shape: PutAccountSettingsResponse)
|
289
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
290
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
291
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
292
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
293
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
294
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
295
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
296
|
+
end)
|
297
|
+
end
|
298
|
+
|
299
|
+
end
|
300
|
+
end
|
File without changes
|
@@ -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::Artifact
|
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,54 @@
|
|
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::Artifact
|
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 Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
|
+
end
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
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"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://artifact-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://artifact-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://artifact.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
45
|
+
end
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://artifact.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
47
|
+
end
|
48
|
+
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
50
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,100 @@
|
|
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::Artifact
|
12
|
+
# @api private
|
13
|
+
module Endpoints
|
14
|
+
|
15
|
+
class GetAccountSettings
|
16
|
+
def self.build(context)
|
17
|
+
unless context.config.regional_endpoint
|
18
|
+
endpoint = context.config.endpoint.to_s
|
19
|
+
end
|
20
|
+
Aws::Artifact::EndpointParameters.new(
|
21
|
+
region: context.config.region,
|
22
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
23
|
+
use_fips: context.config.use_fips_endpoint,
|
24
|
+
endpoint: endpoint,
|
25
|
+
)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
class GetReport
|
30
|
+
def self.build(context)
|
31
|
+
unless context.config.regional_endpoint
|
32
|
+
endpoint = context.config.endpoint.to_s
|
33
|
+
end
|
34
|
+
Aws::Artifact::EndpointParameters.new(
|
35
|
+
region: context.config.region,
|
36
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
37
|
+
use_fips: context.config.use_fips_endpoint,
|
38
|
+
endpoint: endpoint,
|
39
|
+
)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
class GetReportMetadata
|
44
|
+
def self.build(context)
|
45
|
+
unless context.config.regional_endpoint
|
46
|
+
endpoint = context.config.endpoint.to_s
|
47
|
+
end
|
48
|
+
Aws::Artifact::EndpointParameters.new(
|
49
|
+
region: context.config.region,
|
50
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
51
|
+
use_fips: context.config.use_fips_endpoint,
|
52
|
+
endpoint: endpoint,
|
53
|
+
)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
class GetTermForReport
|
58
|
+
def self.build(context)
|
59
|
+
unless context.config.regional_endpoint
|
60
|
+
endpoint = context.config.endpoint.to_s
|
61
|
+
end
|
62
|
+
Aws::Artifact::EndpointParameters.new(
|
63
|
+
region: context.config.region,
|
64
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
65
|
+
use_fips: context.config.use_fips_endpoint,
|
66
|
+
endpoint: endpoint,
|
67
|
+
)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
class ListReports
|
72
|
+
def self.build(context)
|
73
|
+
unless context.config.regional_endpoint
|
74
|
+
endpoint = context.config.endpoint.to_s
|
75
|
+
end
|
76
|
+
Aws::Artifact::EndpointParameters.new(
|
77
|
+
region: context.config.region,
|
78
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
79
|
+
use_fips: context.config.use_fips_endpoint,
|
80
|
+
endpoint: endpoint,
|
81
|
+
)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
class PutAccountSettings
|
86
|
+
def self.build(context)
|
87
|
+
unless context.config.regional_endpoint
|
88
|
+
endpoint = context.config.endpoint.to_s
|
89
|
+
end
|
90
|
+
Aws::Artifact::EndpointParameters.new(
|
91
|
+
region: context.config.region,
|
92
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
93
|
+
use_fips: context.config.use_fips_endpoint,
|
94
|
+
endpoint: endpoint,
|
95
|
+
)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
end
|
100
|
+
end
|