Skip to content

Commit

Permalink
Merge branch 'release/2020-03-p1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-gomes committed Apr 12, 2020
2 parents 38ed4a5 + 07b3c4d commit f4048fd
Show file tree
Hide file tree
Showing 19 changed files with 52 additions and 118 deletions.
2 changes: 0 additions & 2 deletions .idea/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/codeStyles/codeStyleConfig.xml

This file was deleted.

21 changes: 0 additions & 21 deletions .idea/gradle.xml

This file was deleted.

20 changes: 0 additions & 20 deletions .idea/jarRepositories.xml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/misc.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/sbt.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>org.omg.sysml</groupId>
<artifactId>sysml-v2-api-client</artifactId>
<version>2020-03</version>
<version>2020-03-p1</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -49,7 +49,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.omg.sysml:sysml-v2-api-client:2020-03"
compile "org.omg.sysml:sysml-v2-api-client:2020-03-p1"
```

### Others
Expand All @@ -62,7 +62,7 @@ mvn clean package

Then manually install the following JARs:

* `target/sysml-v2-api-client-2020-03.jar`
* `target/sysml-v2-api-client-2020-03-p1.jar`
* `target/lib/*.jar`

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

CommitApi apiInstance = new CommitApi(defaultClient);
String projectId = "projectId_example"; // String | ID of the project
String commitId = "commitId_example"; // String | ID of the commit
UUID projectId = new UUID(); // UUID | ID of the project
UUID commitId = new UUID(); // UUID | ID of the commit
try {
Commit result = apiInstance.getCommitByProjectAndId(projectId, commitId);
System.out.println(result);
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'eclipse'
apply plugin: 'java'

group = 'org.omg.sysml'
version = '2020-03'
version = '2020-03-p1'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "org.omg.sysml",
name := "sysml-v2-api-client",
version := "2020-03",
version := "2020-03-p1",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
18 changes: 9 additions & 9 deletions docs/CommitApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public class Example {
defaultClient.setBasePath("http://localhost");

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

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectId** | **String**| ID of the project |
**commitId** | **String**| ID of the commit |
**projectId** | [**UUID**](.md)| ID of the project |
**commitId** | [**UUID**](.md)| ID of the commit |

### Return type

Expand All @@ -78,7 +78,7 @@ No authorization required

<a name="getCommitsByProject"></a>
# **getCommitsByProject**
> Commit getCommitsByProject(projectId)
> List&lt;Commit&gt; getCommitsByProject(projectId)
Get commits by project

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

### Return type

[**Commit**](Commit.md)
[**List&lt;Commit&gt;**](Commit.md)

### Authorization

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

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

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

### Return type

Expand Down
6 changes: 3 additions & 3 deletions docs/ElementApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ No authorization required

<a name="getElementsByProjectCommit"></a>
# **getElementsByProjectCommit**
> Element getElementsByProjectCommit(projectId, commitId)
> List&lt;Element&gt; getElementsByProjectCommit(projectId, commitId)
Get elements by project and commit

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

### Return type

[**Element**](Element.md)
[**List&lt;Element&gt;**](Element.md)

### Authorization

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>sysml-v2-api-client</artifactId>
<packaging>jar</packaging>
<name>sysml-v2-api-client</name>
<version>2020-03</version>
<version>2020-03-p1</version>
<url>https://github.com/openapitools/openapi-generator</url>
<description>OpenAPI Java</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/omg/sysml/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private void init() {
json = new JSON();

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

authentications = new HashMap<String, Authentication>();
}
Expand Down
36 changes: 18 additions & 18 deletions src/main/java/org/omg/sysml/api/CommitApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void setApiClient(ApiClient apiClient) {
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
</table>
*/
public okhttp3.Call getCommitByProjectAndIdCall(String projectId, String commitId, final ApiCallback _callback) throws ApiException {
public okhttp3.Call getCommitByProjectAndIdCall(UUID projectId, UUID commitId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;

// create path and map variables
Expand Down Expand Up @@ -105,7 +105,7 @@ public okhttp3.Call getCommitByProjectAndIdCall(String projectId, String commitI
}

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

// verify the required parameter 'projectId' is set
if (projectId == null) {
Expand Down Expand Up @@ -140,7 +140,7 @@ private okhttp3.Call getCommitByProjectAndIdValidateBeforeCall(String projectId,
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
</table>
*/
public Commit getCommitByProjectAndId(String projectId, String commitId) throws ApiException {
public Commit getCommitByProjectAndId(UUID projectId, UUID commitId) throws ApiException {
ApiResponse<Commit> localVarResp = getCommitByProjectAndIdWithHttpInfo(projectId, commitId);
return localVarResp.getData();
}
Expand All @@ -162,7 +162,7 @@ public Commit getCommitByProjectAndId(String projectId, String commitId) throws
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
</table>
*/
public ApiResponse<Commit> getCommitByProjectAndIdWithHttpInfo(String projectId, String commitId) throws ApiException {
public ApiResponse<Commit> getCommitByProjectAndIdWithHttpInfo(UUID projectId, UUID commitId) throws ApiException {
okhttp3.Call localVarCall = getCommitByProjectAndIdValidateBeforeCall(projectId, commitId, null);
Type localVarReturnType = new TypeToken<Commit>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
Expand All @@ -186,7 +186,7 @@ public ApiResponse<Commit> getCommitByProjectAndIdWithHttpInfo(String projectId,
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
</table>
*/
public okhttp3.Call getCommitByProjectAndIdAsync(String projectId, String commitId, final ApiCallback<Commit> _callback) throws ApiException {
public okhttp3.Call getCommitByProjectAndIdAsync(UUID projectId, UUID commitId, final ApiCallback<Commit> _callback) throws ApiException {

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

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

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

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

// create path and map variables
Expand Down Expand Up @@ -367,7 +367,7 @@ public okhttp3.Call getHeadCommitByProjectCall(String projectId, final ApiCallba
}

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

// verify the required parameter 'projectId' is set
if (projectId == null) {
Expand Down Expand Up @@ -396,7 +396,7 @@ private okhttp3.Call getHeadCommitByProjectValidateBeforeCall(String projectId,
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
</table>
*/
public Commit getHeadCommitByProject(String projectId) throws ApiException {
public Commit getHeadCommitByProject(UUID projectId) throws ApiException {
ApiResponse<Commit> localVarResp = getHeadCommitByProjectWithHttpInfo(projectId);
return localVarResp.getData();
}
Expand All @@ -417,7 +417,7 @@ public Commit getHeadCommitByProject(String projectId) throws ApiException {
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
</table>
*/
public ApiResponse<Commit> getHeadCommitByProjectWithHttpInfo(String projectId) throws ApiException {
public ApiResponse<Commit> getHeadCommitByProjectWithHttpInfo(UUID projectId) throws ApiException {
okhttp3.Call localVarCall = getHeadCommitByProjectValidateBeforeCall(projectId, null);
Type localVarReturnType = new TypeToken<Commit>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
Expand All @@ -440,7 +440,7 @@ public ApiResponse<Commit> getHeadCommitByProjectWithHttpInfo(String projectId)
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
</table>
*/
public okhttp3.Call getHeadCommitByProjectAsync(String projectId, final ApiCallback<Commit> _callback) throws ApiException {
public okhttp3.Call getHeadCommitByProjectAsync(UUID projectId, final ApiCallback<Commit> _callback) throws ApiException {

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

0 comments on commit f4048fd

Please sign in to comment.