Skip to content

Commit f4048fd

Browse files
committed
Merge branch 'release/2020-03-p1'
2 parents 38ed4a5 + 07b3c4d commit f4048fd

19 files changed

+52
-118
lines changed

.idea/.gitignore

-2
This file was deleted.

.idea/.name

-1
This file was deleted.

.idea/codeStyles/codeStyleConfig.xml

-5
This file was deleted.

.idea/gradle.xml

-21
This file was deleted.

.idea/jarRepositories.xml

-20
This file was deleted.

.idea/misc.xml

-5
This file was deleted.

.idea/sbt.xml

-6
This file was deleted.

.idea/vcs.xml

-6
This file was deleted.

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Add this dependency to your project's POM:
3939
<dependency>
4040
<groupId>org.omg.sysml</groupId>
4141
<artifactId>sysml-v2-api-client</artifactId>
42-
<version>2020-03</version>
42+
<version>2020-03-p1</version>
4343
<scope>compile</scope>
4444
</dependency>
4545
```
@@ -49,7 +49,7 @@ Add this dependency to your project's POM:
4949
Add this dependency to your project's build file:
5050

5151
```groovy
52-
compile "org.omg.sysml:sysml-v2-api-client:2020-03"
52+
compile "org.omg.sysml:sysml-v2-api-client:2020-03-p1"
5353
```
5454

5555
### Others
@@ -62,7 +62,7 @@ mvn clean package
6262

6363
Then manually install the following JARs:
6464

65-
* `target/sysml-v2-api-client-2020-03.jar`
65+
* `target/sysml-v2-api-client-2020-03-p1.jar`
6666
* `target/lib/*.jar`
6767

6868
## Getting Started
@@ -84,8 +84,8 @@ public class Example {
8484
defaultClient.setBasePath("http://localhost");
8585

8686
CommitApi apiInstance = new CommitApi(defaultClient);
87-
String projectId = "projectId_example"; // String | ID of the project
88-
String commitId = "commitId_example"; // String | ID of the commit
87+
UUID projectId = new UUID(); // UUID | ID of the project
88+
UUID commitId = new UUID(); // UUID | ID of the commit
8989
try {
9090
Commit result = apiInstance.getCommitByProjectAndId(projectId, commitId);
9191
System.out.println(result);

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'eclipse'
33
apply plugin: 'java'
44

55
group = 'org.omg.sysml'
6-
version = '2020-03'
6+
version = '2020-03-p1'
77

88
buildscript {
99
repositories {

build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "org.omg.sysml",
44
name := "sysml-v2-api-client",
5-
version := "2020-03",
5+
version := "2020-03-p1",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/CommitApi.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public class Example {
3131
defaultClient.setBasePath("http://localhost");
3232

3333
CommitApi apiInstance = new CommitApi(defaultClient);
34-
String projectId = "projectId_example"; // String | ID of the project
35-
String commitId = "commitId_example"; // String | ID of the commit
34+
UUID projectId = new UUID(); // UUID | ID of the project
35+
UUID commitId = new UUID(); // UUID | ID of the commit
3636
try {
3737
Commit result = apiInstance.getCommitByProjectAndId(projectId, commitId);
3838
System.out.println(result);
@@ -51,8 +51,8 @@ public class Example {
5151

5252
Name | Type | Description | Notes
5353
------------- | ------------- | ------------- | -------------
54-
**projectId** | **String**| ID of the project |
55-
**commitId** | **String**| ID of the commit |
54+
**projectId** | [**UUID**](.md)| ID of the project |
55+
**commitId** | [**UUID**](.md)| ID of the commit |
5656

5757
### Return type
5858

@@ -78,7 +78,7 @@ No authorization required
7878

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

@@ -99,7 +99,7 @@ public class Example {
9999
CommitApi apiInstance = new CommitApi(defaultClient);
100100
UUID projectId = new UUID(); // UUID | ID of the project
101101
try {
102-
Commit result = apiInstance.getCommitsByProject(projectId);
102+
List<Commit> result = apiInstance.getCommitsByProject(projectId);
103103
System.out.println(result);
104104
} catch (ApiException e) {
105105
System.err.println("Exception when calling CommitApi#getCommitsByProject");
@@ -120,7 +120,7 @@ Name | Type | Description | Notes
120120

121121
### Return type
122122

123-
[**Commit**](Commit.md)
123+
[**List&lt;Commit&gt;**](Commit.md)
124124

125125
### Authorization
126126

@@ -161,7 +161,7 @@ public class Example {
161161
defaultClient.setBasePath("http://localhost");
162162

163163
CommitApi apiInstance = new CommitApi(defaultClient);
164-
String projectId = "projectId_example"; // String | ID of the project
164+
UUID projectId = new UUID(); // UUID | ID of the project
165165
try {
166166
Commit result = apiInstance.getHeadCommitByProject(projectId);
167167
System.out.println(result);
@@ -180,7 +180,7 @@ public class Example {
180180

181181
Name | Type | Description | Notes
182182
------------- | ------------- | ------------- | -------------
183-
**projectId** | **String**| ID of the project |
183+
**projectId** | [**UUID**](.md)| ID of the project |
184184

185185
### Return type
186186

docs/ElementApi.md

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

7979
<a name="getElementsByProjectCommit"></a>
8080
# **getElementsByProjectCommit**
81-
> Element getElementsByProjectCommit(projectId, commitId)
81+
> List&lt;Element&gt; getElementsByProjectCommit(projectId, commitId)
8282
8383
Get elements by project and commit
8484

@@ -100,7 +100,7 @@ public class Example {
100100
UUID projectId = new UUID(); // UUID | ID of the project
101101
UUID commitId = new UUID(); // UUID | ID of the commit
102102
try {
103-
Element result = apiInstance.getElementsByProjectCommit(projectId, commitId);
103+
List<Element> result = apiInstance.getElementsByProjectCommit(projectId, commitId);
104104
System.out.println(result);
105105
} catch (ApiException e) {
106106
System.err.println("Exception when calling ElementApi#getElementsByProjectCommit");
@@ -122,7 +122,7 @@ Name | Type | Description | Notes
122122

123123
### Return type
124124

125-
[**Element**](Element.md)
125+
[**List&lt;Element&gt;**](Element.md)
126126

127127
### Authorization
128128

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>sysml-v2-api-client</artifactId>
66
<packaging>jar</packaging>
77
<name>sysml-v2-api-client</name>
8-
<version>2020-03</version>
8+
<version>2020-03-p1</version>
99
<url>https://github.com/openapitools/openapi-generator</url>
1010
<description>OpenAPI Java</description>
1111
<scm>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private void init() {
9797
json = new JSON();
9898

9999
// Set default User-Agent.
100-
setUserAgent("OpenAPI-Generator/2020-03/java");
100+
setUserAgent("OpenAPI-Generator/2020-03-p1/java");
101101

102102
authentications = new HashMap<String, Authentication>();
103103
}

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

+18-18
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void setApiClient(ApiClient apiClient) {
7373
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
7474
</table>
7575
*/
76-
public okhttp3.Call getCommitByProjectAndIdCall(String projectId, String commitId, final ApiCallback _callback) throws ApiException {
76+
public okhttp3.Call getCommitByProjectAndIdCall(UUID projectId, UUID commitId, final ApiCallback _callback) throws ApiException {
7777
Object localVarPostBody = null;
7878

7979
// create path and map variables
@@ -105,7 +105,7 @@ public okhttp3.Call getCommitByProjectAndIdCall(String projectId, String commitI
105105
}
106106

107107
@SuppressWarnings("rawtypes")
108-
private okhttp3.Call getCommitByProjectAndIdValidateBeforeCall(String projectId, String commitId, final ApiCallback _callback) throws ApiException {
108+
private okhttp3.Call getCommitByProjectAndIdValidateBeforeCall(UUID projectId, UUID commitId, final ApiCallback _callback) throws ApiException {
109109

110110
// verify the required parameter 'projectId' is set
111111
if (projectId == null) {
@@ -140,7 +140,7 @@ private okhttp3.Call getCommitByProjectAndIdValidateBeforeCall(String projectId,
140140
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
141141
</table>
142142
*/
143-
public Commit getCommitByProjectAndId(String projectId, String commitId) throws ApiException {
143+
public Commit getCommitByProjectAndId(UUID projectId, UUID commitId) throws ApiException {
144144
ApiResponse<Commit> localVarResp = getCommitByProjectAndIdWithHttpInfo(projectId, commitId);
145145
return localVarResp.getData();
146146
}
@@ -162,7 +162,7 @@ public Commit getCommitByProjectAndId(String projectId, String commitId) throws
162162
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
163163
</table>
164164
*/
165-
public ApiResponse<Commit> getCommitByProjectAndIdWithHttpInfo(String projectId, String commitId) throws ApiException {
165+
public ApiResponse<Commit> getCommitByProjectAndIdWithHttpInfo(UUID projectId, UUID commitId) throws ApiException {
166166
okhttp3.Call localVarCall = getCommitByProjectAndIdValidateBeforeCall(projectId, commitId, null);
167167
Type localVarReturnType = new TypeToken<Commit>(){}.getType();
168168
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -186,7 +186,7 @@ public ApiResponse<Commit> getCommitByProjectAndIdWithHttpInfo(String projectId,
186186
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
187187
</table>
188188
*/
189-
public okhttp3.Call getCommitByProjectAndIdAsync(String projectId, String commitId, final ApiCallback<Commit> _callback) throws ApiException {
189+
public okhttp3.Call getCommitByProjectAndIdAsync(UUID projectId, UUID commitId, final ApiCallback<Commit> _callback) throws ApiException {
190190

191191
okhttp3.Call localVarCall = getCommitByProjectAndIdValidateBeforeCall(projectId, commitId, _callback);
192192
Type localVarReturnType = new TypeToken<Commit>(){}.getType();
@@ -257,7 +257,7 @@ private okhttp3.Call getCommitsByProjectValidateBeforeCall(UUID projectId, final
257257
* Get commits by project
258258
*
259259
* @param projectId ID of the project (required)
260-
* @return Commit
260+
* @return List&lt;Commit&gt;
261261
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
262262
* @http.response.details
263263
<table summary="Response Details" border="1">
@@ -269,16 +269,16 @@ private okhttp3.Call getCommitsByProjectValidateBeforeCall(UUID projectId, final
269269
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
270270
</table>
271271
*/
272-
public Commit getCommitsByProject(UUID projectId) throws ApiException {
273-
ApiResponse<Commit> localVarResp = getCommitsByProjectWithHttpInfo(projectId);
272+
public List<Commit> getCommitsByProject(UUID projectId) throws ApiException {
273+
ApiResponse<List<Commit>> localVarResp = getCommitsByProjectWithHttpInfo(projectId);
274274
return localVarResp.getData();
275275
}
276276

277277
/**
278278
* Get commits by project
279279
*
280280
* @param projectId ID of the project (required)
281-
* @return ApiResponse&lt;Commit&gt;
281+
* @return ApiResponse&lt;List&lt;Commit&gt;&gt;
282282
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
283283
* @http.response.details
284284
<table summary="Response Details" border="1">
@@ -290,9 +290,9 @@ public Commit getCommitsByProject(UUID projectId) throws ApiException {
290290
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
291291
</table>
292292
*/
293-
public ApiResponse<Commit> getCommitsByProjectWithHttpInfo(UUID projectId) throws ApiException {
293+
public ApiResponse<List<Commit>> getCommitsByProjectWithHttpInfo(UUID projectId) throws ApiException {
294294
okhttp3.Call localVarCall = getCommitsByProjectValidateBeforeCall(projectId, null);
295-
Type localVarReturnType = new TypeToken<Commit>(){}.getType();
295+
Type localVarReturnType = new TypeToken<List<Commit>>(){}.getType();
296296
return localVarApiClient.execute(localVarCall, localVarReturnType);
297297
}
298298

@@ -313,10 +313,10 @@ public ApiResponse<Commit> getCommitsByProjectWithHttpInfo(UUID projectId) throw
313313
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
314314
</table>
315315
*/
316-
public okhttp3.Call getCommitsByProjectAsync(UUID projectId, final ApiCallback<Commit> _callback) throws ApiException {
316+
public okhttp3.Call getCommitsByProjectAsync(UUID projectId, final ApiCallback<List<Commit>> _callback) throws ApiException {
317317

318318
okhttp3.Call localVarCall = getCommitsByProjectValidateBeforeCall(projectId, _callback);
319-
Type localVarReturnType = new TypeToken<Commit>(){}.getType();
319+
Type localVarReturnType = new TypeToken<List<Commit>>(){}.getType();
320320
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
321321
return localVarCall;
322322
}
@@ -336,7 +336,7 @@ public okhttp3.Call getCommitsByProjectAsync(UUID projectId, final ApiCallback<C
336336
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
337337
</table>
338338
*/
339-
public okhttp3.Call getHeadCommitByProjectCall(String projectId, final ApiCallback _callback) throws ApiException {
339+
public okhttp3.Call getHeadCommitByProjectCall(UUID projectId, final ApiCallback _callback) throws ApiException {
340340
Object localVarPostBody = null;
341341

342342
// create path and map variables
@@ -367,7 +367,7 @@ public okhttp3.Call getHeadCommitByProjectCall(String projectId, final ApiCallba
367367
}
368368

369369
@SuppressWarnings("rawtypes")
370-
private okhttp3.Call getHeadCommitByProjectValidateBeforeCall(String projectId, final ApiCallback _callback) throws ApiException {
370+
private okhttp3.Call getHeadCommitByProjectValidateBeforeCall(UUID projectId, final ApiCallback _callback) throws ApiException {
371371

372372
// verify the required parameter 'projectId' is set
373373
if (projectId == null) {
@@ -396,7 +396,7 @@ private okhttp3.Call getHeadCommitByProjectValidateBeforeCall(String projectId,
396396
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
397397
</table>
398398
*/
399-
public Commit getHeadCommitByProject(String projectId) throws ApiException {
399+
public Commit getHeadCommitByProject(UUID projectId) throws ApiException {
400400
ApiResponse<Commit> localVarResp = getHeadCommitByProjectWithHttpInfo(projectId);
401401
return localVarResp.getData();
402402
}
@@ -417,7 +417,7 @@ public Commit getHeadCommitByProject(String projectId) throws ApiException {
417417
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
418418
</table>
419419
*/
420-
public ApiResponse<Commit> getHeadCommitByProjectWithHttpInfo(String projectId) throws ApiException {
420+
public ApiResponse<Commit> getHeadCommitByProjectWithHttpInfo(UUID projectId) throws ApiException {
421421
okhttp3.Call localVarCall = getHeadCommitByProjectValidateBeforeCall(projectId, null);
422422
Type localVarReturnType = new TypeToken<Commit>(){}.getType();
423423
return localVarApiClient.execute(localVarCall, localVarReturnType);
@@ -440,7 +440,7 @@ public ApiResponse<Commit> getHeadCommitByProjectWithHttpInfo(String projectId)
440440
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
441441
</table>
442442
*/
443-
public okhttp3.Call getHeadCommitByProjectAsync(String projectId, final ApiCallback<Commit> _callback) throws ApiException {
443+
public okhttp3.Call getHeadCommitByProjectAsync(UUID projectId, final ApiCallback<Commit> _callback) throws ApiException {
444444

445445
okhttp3.Call localVarCall = getHeadCommitByProjectValidateBeforeCall(projectId, _callback);
446446
Type localVarReturnType = new TypeToken<Commit>(){}.getType();

0 commit comments

Comments
 (0)