Skip to content

Commit 3763e9d

Browse files
committed
ST5AS-125 feat: regenerate for 2021-03
1 parent a21793c commit 3763e9d

20 files changed

+463
-131
lines changed

api/openapi.yaml

+136-42
Large diffs are not rendered by default.

docs/CommitApi.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ No authorization required
7878

7979
<a name="getCommitsByProject"></a>
8080
# **getCommitsByProject**
81-
> List&lt;Commit&gt; getCommitsByProject(projectId)
81+
> List&lt;Commit&gt; getCommitsByProject(projectId, pageAfter, pageBefore, pageSize)
8282
8383
Get commits by project
8484

@@ -98,8 +98,11 @@ public class Example {
9898

9999
CommitApi apiInstance = new CommitApi(defaultClient);
100100
UUID projectId = new UUID(); // UUID | ID of the project
101+
String pageAfter = "pageAfter_example"; // String | Page after
102+
String pageBefore = "pageBefore_example"; // String | Page before
103+
Integer pageSize = 56; // Integer | Page size
101104
try {
102-
List<Commit> result = apiInstance.getCommitsByProject(projectId);
105+
List<Commit> result = apiInstance.getCommitsByProject(projectId, pageAfter, pageBefore, pageSize);
103106
System.out.println(result);
104107
} catch (ApiException e) {
105108
System.err.println("Exception when calling CommitApi#getCommitsByProject");
@@ -117,6 +120,9 @@ public class Example {
117120
Name | Type | Description | Notes
118121
------------- | ------------- | ------------- | -------------
119122
**projectId** | [**UUID**](.md)| ID of the project |
123+
**pageAfter** | **String**| Page after | [optional]
124+
**pageBefore** | **String**| Page before | [optional]
125+
**pageSize** | **Integer**| Page size | [optional]
120126

121127
### Return type
122128

docs/ElementApi.md

+19-7
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ No authorization required
6666
### HTTP request headers
6767

6868
- **Content-Type**: Not defined
69-
- **Accept**: application/ld+json, application/json
69+
- **Accept**: application/json, application/ld+json
7070

7171
### HTTP response details
7272
| Status code | Description | Response headers |
@@ -79,7 +79,7 @@ No authorization required
7979

8080
<a name="getElementsByProjectCommit"></a>
8181
# **getElementsByProjectCommit**
82-
> List&lt;Element&gt; getElementsByProjectCommit(projectId, commitId)
82+
> List&lt;Element&gt; getElementsByProjectCommit(projectId, commitId, pageAfter, pageBefore, pageSize)
8383
8484
Get elements by project and commit
8585

@@ -100,8 +100,11 @@ public class Example {
100100
ElementApi apiInstance = new ElementApi(defaultClient);
101101
UUID projectId = new UUID(); // UUID | ID of the project
102102
UUID commitId = new UUID(); // UUID | ID of the commit
103+
String pageAfter = "pageAfter_example"; // String | Page after
104+
String pageBefore = "pageBefore_example"; // String | Page before
105+
Integer pageSize = 56; // Integer | Page size
103106
try {
104-
List<Element> result = apiInstance.getElementsByProjectCommit(projectId, commitId);
107+
List<Element> result = apiInstance.getElementsByProjectCommit(projectId, commitId, pageAfter, pageBefore, pageSize);
105108
System.out.println(result);
106109
} catch (ApiException e) {
107110
System.err.println("Exception when calling ElementApi#getElementsByProjectCommit");
@@ -120,6 +123,9 @@ Name | Type | Description | Notes
120123
------------- | ------------- | ------------- | -------------
121124
**projectId** | [**UUID**](.md)| ID of the project |
122125
**commitId** | [**UUID**](.md)| ID of the commit |
126+
**pageAfter** | **String**| Page after | [optional]
127+
**pageBefore** | **String**| Page before | [optional]
128+
**pageSize** | **Integer**| Page size | [optional]
123129

124130
### Return type
125131

@@ -132,7 +138,7 @@ No authorization required
132138
### HTTP request headers
133139

134140
- **Content-Type**: Not defined
135-
- **Accept**: application/ld+json, application/json
141+
- **Accept**: application/json, application/ld+json
136142

137143
### HTTP response details
138144
| Status code | Description | Response headers |
@@ -145,7 +151,7 @@ No authorization required
145151

146152
<a name="getRootsByProjectCommit"></a>
147153
# **getRootsByProjectCommit**
148-
> List&lt;Element&gt; getRootsByProjectCommit(projectId, commitId)
154+
> List&lt;Element&gt; getRootsByProjectCommit(projectId, commitId, pageAfter, pageBefore, pageSize)
149155
150156
Get root elements by project and commit
151157

@@ -166,8 +172,11 @@ public class Example {
166172
ElementApi apiInstance = new ElementApi(defaultClient);
167173
UUID projectId = new UUID(); // UUID | ID of the project
168174
UUID commitId = new UUID(); // UUID | ID of the commit
175+
String pageAfter = "pageAfter_example"; // String | Page after
176+
String pageBefore = "pageBefore_example"; // String | Page before
177+
Integer pageSize = 56; // Integer | Page size
169178
try {
170-
List<Element> result = apiInstance.getRootsByProjectCommit(projectId, commitId);
179+
List<Element> result = apiInstance.getRootsByProjectCommit(projectId, commitId, pageAfter, pageBefore, pageSize);
171180
System.out.println(result);
172181
} catch (ApiException e) {
173182
System.err.println("Exception when calling ElementApi#getRootsByProjectCommit");
@@ -186,6 +195,9 @@ Name | Type | Description | Notes
186195
------------- | ------------- | ------------- | -------------
187196
**projectId** | [**UUID**](.md)| ID of the project |
188197
**commitId** | [**UUID**](.md)| ID of the commit |
198+
**pageAfter** | **String**| Page after | [optional]
199+
**pageBefore** | **String**| Page before | [optional]
200+
**pageSize** | **Integer**| Page size | [optional]
189201

190202
### Return type
191203

@@ -198,7 +210,7 @@ No authorization required
198210
### HTTP request headers
199211

200212
- **Content-Type**: Not defined
201-
- **Accept**: application/ld+json, application/json
213+
- **Accept**: application/json, application/ld+json
202214

203215
### HTTP response details
204216
| Status code | Description | Response headers |

docs/Project.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
99
**atType** | [**AtTypeEnum**](#AtTypeEnum) | | [optional]
10+
**description** | **String** | | [optional]
1011
**id** | [**UUID**](UUID.md) | | [optional]
1112
**name** | **String** | | [optional]
1213

docs/ProjectApi.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ No authorization required
7575

7676
<a name="getProjects"></a>
7777
# **getProjects**
78-
> List&lt;Project&gt; getProjects()
78+
> List&lt;Project&gt; getProjects(pageAfter, pageBefore, pageSize)
7979
8080
Get projects
8181

@@ -94,8 +94,11 @@ public class Example {
9494
defaultClient.setBasePath("http://localhost");
9595

9696
ProjectApi apiInstance = new ProjectApi(defaultClient);
97+
String pageAfter = "pageAfter_example"; // String | Page after
98+
String pageBefore = "pageBefore_example"; // String | Page before
99+
Integer pageSize = 56; // Integer | Page size
97100
try {
98-
List<Project> result = apiInstance.getProjects();
101+
List<Project> result = apiInstance.getProjects(pageAfter, pageBefore, pageSize);
99102
System.out.println(result);
100103
} catch (ApiException e) {
101104
System.err.println("Exception when calling ProjectApi#getProjects");
@@ -109,7 +112,12 @@ public class Example {
109112
```
110113

111114
### Parameters
112-
This endpoint does not need any parameter.
115+
116+
Name | Type | Description | Notes
117+
------------- | ------------- | ------------- | -------------
118+
**pageAfter** | **String**| Page after | [optional]
119+
**pageBefore** | **String**| Page before | [optional]
120+
**pageSize** | **Integer**| Page size | [optional]
113121

114122
### Return type
115123

docs/QueryApi.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Method | HTTP request | Description
1414

1515
<a name="getQueriesByProject"></a>
1616
# **getQueriesByProject**
17-
> List&lt;Query&gt; getQueriesByProject(projectId)
17+
> List&lt;Query&gt; getQueriesByProject(projectId, pageAfter, pageBefore, pageSize)
1818
1919
Get queries by project
2020

@@ -34,8 +34,11 @@ public class Example {
3434

3535
QueryApi apiInstance = new QueryApi(defaultClient);
3636
UUID projectId = new UUID(); // UUID | ID of the project
37+
String pageAfter = "pageAfter_example"; // String | Page after
38+
String pageBefore = "pageBefore_example"; // String | Page before
39+
Integer pageSize = 56; // Integer | Page size
3740
try {
38-
List<Query> result = apiInstance.getQueriesByProject(projectId);
41+
List<Query> result = apiInstance.getQueriesByProject(projectId, pageAfter, pageBefore, pageSize);
3942
System.out.println(result);
4043
} catch (ApiException e) {
4144
System.err.println("Exception when calling QueryApi#getQueriesByProject");
@@ -53,6 +56,9 @@ public class Example {
5356
Name | Type | Description | Notes
5457
------------- | ------------- | ------------- | -------------
5558
**projectId** | [**UUID**](.md)| ID of the project |
59+
**pageAfter** | **String**| Page after | [optional]
60+
**pageBefore** | **String**| Page before | [optional]
61+
**pageSize** | **Integer**| Page size | [optional]
5662

5763
### Return type
5864

@@ -199,7 +205,7 @@ No authorization required
199205
### HTTP request headers
200206

201207
- **Content-Type**: application/json
202-
- **Accept**: application/ld+json, application/json
208+
- **Accept**: application/json, application/ld+json
203209

204210
### HTTP response details
205211
| Status code | Description | Response headers |
@@ -267,7 +273,7 @@ No authorization required
267273
### HTTP request headers
268274

269275
- **Content-Type**: Not defined
270-
- **Accept**: application/ld+json, application/json
276+
- **Accept**: application/json, application/ld+json
271277

272278
### HTTP response details
273279
| Status code | Description | Response headers |
@@ -337,7 +343,7 @@ No authorization required
337343
### HTTP request headers
338344

339345
- **Content-Type**: application/json
340-
- **Accept**: application/ld+json, application/json
346+
- **Accept**: application/json, application/ld+json
341347

342348
### HTTP response details
343349
| Status code | Description | Response headers |

docs/RelationshipApi.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Method | HTTP request | Description
99

1010
<a name="getRelationshipsByProjectCommitRelatedElement"></a>
1111
# **getRelationshipsByProjectCommitRelatedElement**
12-
> List&lt;Relationship&gt; getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction)
12+
> List&lt;Relationship&gt; getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction, pageAfter, pageBefore, pageSize)
1313
1414
Get relationships by project, commit, and related element
1515

@@ -32,8 +32,11 @@ public class Example {
3232
UUID commitId = new UUID(); // UUID | ID of the commit
3333
UUID relatedElementId = new UUID(); // UUID | ID of the related element
3434
String direction = "both"; // String | Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element
35+
String pageAfter = "pageAfter_example"; // String | Page after
36+
String pageBefore = "pageBefore_example"; // String | Page before
37+
Integer pageSize = 56; // Integer | Page size
3538
try {
36-
List<Relationship> result = apiInstance.getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction);
39+
List<Relationship> result = apiInstance.getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction, pageAfter, pageBefore, pageSize);
3740
System.out.println(result);
3841
} catch (ApiException e) {
3942
System.err.println("Exception when calling RelationshipApi#getRelationshipsByProjectCommitRelatedElement");
@@ -54,6 +57,9 @@ Name | Type | Description | Notes
5457
**commitId** | [**UUID**](.md)| ID of the commit |
5558
**relatedElementId** | [**UUID**](.md)| ID of the related element |
5659
**direction** | **String**| Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element | [optional] [default to both] [enum: in, out, both]
60+
**pageAfter** | **String**| Page after | [optional]
61+
**pageBefore** | **String**| Page before | [optional]
62+
**pageSize** | **Integer**| Page size | [optional]
5763

5864
### Return type
5965

@@ -66,7 +72,7 @@ No authorization required
6672
### HTTP request headers
6773

6874
- **Content-Type**: Not defined
69-
- **Accept**: application/ld+json, application/json
75+
- **Accept**: application/json, application/ld+json
7076

7177
### HTTP response details
7278
| Status code | Description | Response headers |

src/main/java/org/omg/sysml/ApiClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private void init() {
108108
json = new JSON();
109109

110110
// Set default User-Agent.
111-
setUserAgent("OpenAPI-Generator/2020-09/java");
111+
setUserAgent("OpenAPI-Generator/2021-03/java");
112112

113113
authentications = new HashMap<String, Authentication>();
114114
}

src/main/java/org/omg/sysml/api/CommitApi.java

+33-9
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ public okhttp3.Call getCommitByProjectAndIdAsync(UUID projectId, UUID commitId,
196196
/**
197197
* Build call for getCommitsByProject
198198
* @param projectId ID of the project (required)
199+
* @param pageAfter Page after (optional)
200+
* @param pageBefore Page before (optional)
201+
* @param pageSize Page size (optional)
199202
* @param _callback Callback for upload/download progress
200203
* @return Call to execute
201204
* @throws ApiException If fail to serialize the request body object
@@ -209,7 +212,7 @@ public okhttp3.Call getCommitByProjectAndIdAsync(UUID projectId, UUID commitId,
209212
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
210213
</table>
211214
*/
212-
public okhttp3.Call getCommitsByProjectCall(UUID projectId, final ApiCallback _callback) throws ApiException {
215+
public okhttp3.Call getCommitsByProjectCall(UUID projectId, String pageAfter, String pageBefore, Integer pageSize, final ApiCallback _callback) throws ApiException {
213216
Object localVarPostBody = null;
214217

215218
// create path and map variables
@@ -218,6 +221,18 @@ public okhttp3.Call getCommitsByProjectCall(UUID projectId, final ApiCallback _c
218221

219222
List<Pair> localVarQueryParams = new ArrayList<Pair>();
220223
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
224+
if (pageAfter != null) {
225+
localVarQueryParams.addAll(localVarApiClient.parameterToPair("page[after]", pageAfter));
226+
}
227+
228+
if (pageBefore != null) {
229+
localVarQueryParams.addAll(localVarApiClient.parameterToPair("page[before]", pageBefore));
230+
}
231+
232+
if (pageSize != null) {
233+
localVarQueryParams.addAll(localVarApiClient.parameterToPair("page[size]", pageSize));
234+
}
235+
221236
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
222237
Map<String, String> localVarCookieParams = new HashMap<String, String>();
223238
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
@@ -240,15 +255,15 @@ public okhttp3.Call getCommitsByProjectCall(UUID projectId, final ApiCallback _c
240255
}
241256

242257
@SuppressWarnings("rawtypes")
243-
private okhttp3.Call getCommitsByProjectValidateBeforeCall(UUID projectId, final ApiCallback _callback) throws ApiException {
258+
private okhttp3.Call getCommitsByProjectValidateBeforeCall(UUID projectId, String pageAfter, String pageBefore, Integer pageSize, final ApiCallback _callback) throws ApiException {
244259

245260
// verify the required parameter 'projectId' is set
246261
if (projectId == null) {
247262
throw new ApiException("Missing the required parameter 'projectId' when calling getCommitsByProject(Async)");
248263
}
249264

250265

251-
okhttp3.Call localVarCall = getCommitsByProjectCall(projectId, _callback);
266+
okhttp3.Call localVarCall = getCommitsByProjectCall(projectId, pageAfter, pageBefore, pageSize, _callback);
252267
return localVarCall;
253268

254269
}
@@ -257,6 +272,9 @@ private okhttp3.Call getCommitsByProjectValidateBeforeCall(UUID projectId, final
257272
* Get commits by project
258273
*
259274
* @param projectId ID of the project (required)
275+
* @param pageAfter Page after (optional)
276+
* @param pageBefore Page before (optional)
277+
* @param pageSize Page size (optional)
260278
* @return List&lt;Commit&gt;
261279
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
262280
* @http.response.details
@@ -269,15 +287,18 @@ private okhttp3.Call getCommitsByProjectValidateBeforeCall(UUID projectId, final
269287
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
270288
</table>
271289
*/
272-
public List<Commit> getCommitsByProject(UUID projectId) throws ApiException {
273-
ApiResponse<List<Commit>> localVarResp = getCommitsByProjectWithHttpInfo(projectId);
290+
public List<Commit> getCommitsByProject(UUID projectId, String pageAfter, String pageBefore, Integer pageSize) throws ApiException {
291+
ApiResponse<List<Commit>> localVarResp = getCommitsByProjectWithHttpInfo(projectId, pageAfter, pageBefore, pageSize);
274292
return localVarResp.getData();
275293
}
276294

277295
/**
278296
* Get commits by project
279297
*
280298
* @param projectId ID of the project (required)
299+
* @param pageAfter Page after (optional)
300+
* @param pageBefore Page before (optional)
301+
* @param pageSize Page size (optional)
281302
* @return ApiResponse&lt;List&lt;Commit&gt;&gt;
282303
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
283304
* @http.response.details
@@ -290,8 +311,8 @@ public List<Commit> getCommitsByProject(UUID projectId) throws ApiException {
290311
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
291312
</table>
292313
*/
293-
public ApiResponse<List<Commit>> getCommitsByProjectWithHttpInfo(UUID projectId) throws ApiException {
294-
okhttp3.Call localVarCall = getCommitsByProjectValidateBeforeCall(projectId, null);
314+
public ApiResponse<List<Commit>> getCommitsByProjectWithHttpInfo(UUID projectId, String pageAfter, String pageBefore, Integer pageSize) throws ApiException {
315+
okhttp3.Call localVarCall = getCommitsByProjectValidateBeforeCall(projectId, pageAfter, pageBefore, pageSize, null);
295316
Type localVarReturnType = new TypeToken<List<Commit>>(){}.getType();
296317
return localVarApiClient.execute(localVarCall, localVarReturnType);
297318
}
@@ -300,6 +321,9 @@ public ApiResponse<List<Commit>> getCommitsByProjectWithHttpInfo(UUID projectId)
300321
* Get commits by project (asynchronously)
301322
*
302323
* @param projectId ID of the project (required)
324+
* @param pageAfter Page after (optional)
325+
* @param pageBefore Page before (optional)
326+
* @param pageSize Page size (optional)
303327
* @param _callback The callback to be executed when the API call finishes
304328
* @return The request call
305329
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -313,9 +337,9 @@ public ApiResponse<List<Commit>> getCommitsByProjectWithHttpInfo(UUID projectId)
313337
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
314338
</table>
315339
*/
316-
public okhttp3.Call getCommitsByProjectAsync(UUID projectId, final ApiCallback<List<Commit>> _callback) throws ApiException {
340+
public okhttp3.Call getCommitsByProjectAsync(UUID projectId, String pageAfter, String pageBefore, Integer pageSize, final ApiCallback<List<Commit>> _callback) throws ApiException {
317341

318-
okhttp3.Call localVarCall = getCommitsByProjectValidateBeforeCall(projectId, _callback);
342+
okhttp3.Call localVarCall = getCommitsByProjectValidateBeforeCall(projectId, pageAfter, pageBefore, pageSize, _callback);
319343
Type localVarReturnType = new TypeToken<List<Commit>>(){}.getType();
320344
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
321345
return localVarCall;

0 commit comments

Comments
 (0)