Skip to content

Commit 668aabd

Browse files
Add support for ListReportVersions API for the calling AWS account.
1 parent d260f75 commit 668aabd

20 files changed

+1133
-167
lines changed

generator/ServiceModels/artifact/artifact-2018-05-10.api.json

Lines changed: 61 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
{"shape":"InternalServerException"},
3131
{"shape":"ValidationException"},
3232
{"shape":"ServiceQuotaExceededException"}
33-
]
33+
],
34+
"readonly":true
3435
},
3536
"GetReport":{
3637
"name":"GetReport",
@@ -49,7 +50,8 @@
4950
{"shape":"InternalServerException"},
5051
{"shape":"ValidationException"},
5152
{"shape":"ServiceQuotaExceededException"}
52-
]
53+
],
54+
"readonly":true
5355
},
5456
"GetReportMetadata":{
5557
"name":"GetReportMetadata",
@@ -67,7 +69,8 @@
6769
{"shape":"InternalServerException"},
6870
{"shape":"ValidationException"},
6971
{"shape":"ServiceQuotaExceededException"}
70-
]
72+
],
73+
"readonly":true
7174
},
7275
"GetTermForReport":{
7376
"name":"GetTermForReport",
@@ -86,7 +89,8 @@
8689
{"shape":"InternalServerException"},
8790
{"shape":"ValidationException"},
8891
{"shape":"ServiceQuotaExceededException"}
89-
]
92+
],
93+
"readonly":true
9094
},
9195
"ListCustomerAgreements":{
9296
"name":"ListCustomerAgreements",
@@ -102,7 +106,27 @@
102106
{"shape":"AccessDeniedException"},
103107
{"shape":"InternalServerException"},
104108
{"shape":"ValidationException"}
105-
]
109+
],
110+
"readonly":true
111+
},
112+
"ListReportVersions":{
113+
"name":"ListReportVersions",
114+
"http":{
115+
"method":"GET",
116+
"requestUri":"/v1/report/listVersions",
117+
"responseCode":200
118+
},
119+
"input":{"shape":"ListReportVersionsRequest"},
120+
"output":{"shape":"ListReportVersionsResponse"},
121+
"errors":[
122+
{"shape":"ResourceNotFoundException"},
123+
{"shape":"ThrottlingException"},
124+
{"shape":"AccessDeniedException"},
125+
{"shape":"InternalServerException"},
126+
{"shape":"ValidationException"},
127+
{"shape":"ServiceQuotaExceededException"}
128+
],
129+
"readonly":true
106130
},
107131
"ListReports":{
108132
"name":"ListReports",
@@ -120,7 +144,8 @@
120144
{"shape":"InternalServerException"},
121145
{"shape":"ValidationException"},
122146
{"shape":"ServiceQuotaExceededException"}
123-
]
147+
],
148+
"readonly":true
124149
},
125150
"PutAccountSettings":{
126151
"name":"PutAccountSettings",
@@ -237,8 +262,7 @@
237262
},
238263
"GetAccountSettingsRequest":{
239264
"type":"structure",
240-
"members":{
241-
}
265+
"members":{}
242266
},
243267
"GetAccountSettingsResponse":{
244268
"type":"structure",
@@ -374,6 +398,35 @@
374398
"nextToken":{"shape":"NextTokenAttribute"}
375399
}
376400
},
401+
"ListReportVersionsRequest":{
402+
"type":"structure",
403+
"required":["reportId"],
404+
"members":{
405+
"reportId":{
406+
"shape":"ReportId",
407+
"location":"querystring",
408+
"locationName":"reportId"
409+
},
410+
"maxResults":{
411+
"shape":"MaxResultsAttribute",
412+
"location":"querystring",
413+
"locationName":"maxResults"
414+
},
415+
"nextToken":{
416+
"shape":"NextTokenAttribute",
417+
"location":"querystring",
418+
"locationName":"nextToken"
419+
}
420+
}
421+
},
422+
"ListReportVersionsResponse":{
423+
"type":"structure",
424+
"required":["reports"],
425+
"members":{
426+
"reports":{"shape":"ReportsList"},
427+
"nextToken":{"shape":"NextTokenAttribute"}
428+
}
429+
},
377430
"ListReportsRequest":{
378431
"type":"structure",
379432
"members":{

generator/ServiceModels/artifact/artifact-2018-05-10.docs.json

Lines changed: 35 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"GetReportMetadata": "<p>Get the metadata for a single report.</p>",
88
"GetTermForReport": "<p>Get the Term content associated with a single report.</p>",
99
"ListCustomerAgreements": "<p>List active customer-agreements applicable to calling identity.</p>",
10+
"ListReportVersions": "<p>List available report versions for a given report.</p>",
1011
"ListReports": "<p>List available reports.</p>",
1112
"PutAccountSettings": "<p>Put the account settings for Artifact.</p>"
1213
},
@@ -20,8 +21,7 @@
2021
},
2122
"AccessDeniedException": {
2223
"base": "<p>User does not have sufficient access to perform this action.</p>",
23-
"refs": {
24-
}
24+
"refs": {}
2525
},
2626
"AccountSettings": {
2727
"base": "<p>Account settings for the customer.</p>",
@@ -45,8 +45,7 @@
4545
},
4646
"ConflictException": {
4747
"base": "<p>Request to create/modify content would result in a conflict.</p>",
48-
"refs": {
49-
}
48+
"refs": {}
5049
},
5150
"CustomerAgreementIdAttribute": {
5251
"base": null,
@@ -74,33 +73,27 @@
7473
},
7574
"GetAccountSettingsRequest": {
7675
"base": null,
77-
"refs": {
78-
}
76+
"refs": {}
7977
},
8078
"GetAccountSettingsResponse": {
8179
"base": null,
82-
"refs": {
83-
}
80+
"refs": {}
8481
},
8582
"GetReportMetadataRequest": {
8683
"base": null,
87-
"refs": {
88-
}
84+
"refs": {}
8985
},
9086
"GetReportMetadataResponse": {
9187
"base": null,
92-
"refs": {
93-
}
88+
"refs": {}
9489
},
9590
"GetReportRequest": {
9691
"base": null,
97-
"refs": {
98-
}
92+
"refs": {}
9993
},
10094
"GetReportResponse": {
10195
"base": null,
102-
"refs": {
103-
}
96+
"refs": {}
10497
},
10598
"GetReportResponseDocumentPresignedUrlString": {
10699
"base": null,
@@ -110,13 +103,11 @@
110103
},
111104
"GetTermForReportRequest": {
112105
"base": null,
113-
"refs": {
114-
}
106+
"refs": {}
115107
},
116108
"GetTermForReportResponse": {
117109
"base": null,
118-
"refs": {
119-
}
110+
"refs": {}
120111
},
121112
"GetTermForReportResponseDocumentPresignedUrlString": {
122113
"base": null,
@@ -133,28 +124,31 @@
133124
},
134125
"InternalServerException": {
135126
"base": "<p>An unknown server exception has occurred.</p>",
136-
"refs": {
137-
}
127+
"refs": {}
138128
},
139129
"ListCustomerAgreementsRequest": {
140130
"base": null,
141-
"refs": {
142-
}
131+
"refs": {}
143132
},
144133
"ListCustomerAgreementsResponse": {
145134
"base": null,
146-
"refs": {
147-
}
135+
"refs": {}
136+
},
137+
"ListReportVersionsRequest": {
138+
"base": null,
139+
"refs": {}
140+
},
141+
"ListReportVersionsResponse": {
142+
"base": null,
143+
"refs": {}
148144
},
149145
"ListReportsRequest": {
150146
"base": null,
151-
"refs": {
152-
}
147+
"refs": {}
153148
},
154149
"ListReportsResponse": {
155150
"base": null,
156-
"refs": {
157-
}
151+
"refs": {}
158152
},
159153
"LongStringAttribute": {
160154
"base": null,
@@ -176,6 +170,7 @@
176170
"base": null,
177171
"refs": {
178172
"ListCustomerAgreementsRequest$maxResults": "<p>Maximum number of resources to return in the paginated response.</p>",
173+
"ListReportVersionsRequest$maxResults": "<p>Maximum number of resources to return in the paginated response.</p>",
179174
"ListReportsRequest$maxResults": "<p>Maximum number of resources to return in the paginated response.</p>"
180175
}
181176
},
@@ -184,6 +179,8 @@
184179
"refs": {
185180
"ListCustomerAgreementsRequest$nextToken": "<p>Pagination token to request the next page of resources.</p>",
186181
"ListCustomerAgreementsResponse$nextToken": "<p>Pagination token to request the next page of resources.</p>",
182+
"ListReportVersionsRequest$nextToken": "<p>Pagination token to request the next page of resources.</p>",
183+
"ListReportVersionsResponse$nextToken": "<p>Pagination token to request the next page of resources.</p>",
187184
"ListReportsRequest$nextToken": "<p>Pagination token to request the next page of resources.</p>",
188185
"ListReportsResponse$nextToken": "<p>Pagination token to request the next page of resources.</p>"
189186
}
@@ -204,13 +201,11 @@
204201
},
205202
"PutAccountSettingsRequest": {
206203
"base": null,
207-
"refs": {
208-
}
204+
"refs": {}
209205
},
210206
"PutAccountSettingsResponse": {
211207
"base": null,
212-
"refs": {
213-
}
208+
"refs": {}
214209
},
215210
"ReportDetail": {
216211
"base": "<p>Full detail for report resource metadata.</p>",
@@ -224,6 +219,7 @@
224219
"GetReportMetadataRequest$reportId": "<p>Unique resource ID for the report resource.</p>",
225220
"GetReportRequest$reportId": "<p>Unique resource ID for the report resource.</p>",
226221
"GetTermForReportRequest$reportId": "<p>Unique resource ID for the report resource.</p>",
222+
"ListReportVersionsRequest$reportId": "<p>Unique resource ID for the report resource.</p>",
227223
"ReportDetail$id": "<p>Unique resource ID for the report resource.</p>",
228224
"ReportSummary$id": "<p>Unique resource ID for the report resource.</p>"
229225
}
@@ -237,13 +233,13 @@
237233
"ReportsList": {
238234
"base": null,
239235
"refs": {
236+
"ListReportVersionsResponse$reports": "<p>List of report resources.</p>",
240237
"ListReportsResponse$reports": "<p>List of report resources.</p>"
241238
}
242239
},
243240
"ResourceNotFoundException": {
244241
"base": "<p>Request references a resource which does not exist.</p>",
245-
"refs": {
246-
}
242+
"refs": {}
247243
},
248244
"SequenceNumberAttribute": {
249245
"base": null,
@@ -253,8 +249,7 @@
253249
},
254250
"ServiceQuotaExceededException": {
255251
"base": "<p>Request would cause a service quota to be exceeded.</p>",
256-
"refs": {
257-
}
252+
"refs": {}
258253
},
259254
"ShortStringAttribute": {
260255
"base": null,
@@ -307,8 +302,7 @@
307302
},
308303
"ThrottlingException": {
309304
"base": "<p>Request was denied due to request throttling.</p>",
310-
"refs": {
311-
}
305+
"refs": {}
312306
},
313307
"TimestampAttribute": {
314308
"base": null,
@@ -333,8 +327,7 @@
333327
},
334328
"ValidationException": {
335329
"base": "<p>Request fails to satisfy the constraints specified by an AWS service.</p>",
336-
"refs": {
337-
}
330+
"refs": {}
338331
},
339332
"ValidationExceptionField": {
340333
"base": "<p>Validation exception message and name.</p>",

0 commit comments

Comments
 (0)