Skip to content

Commit

Permalink
Merge branch 'release/2020-06'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan authored and Ivan committed Jul 13, 2020
2 parents 0cf20a6 + a4b625d commit 15b3854
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 19 deletions.
6 changes: 3 additions & 3 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-05</version>
<version>2020-06</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-05"
compile "org.omg.sysml:sysml-v2-api-client:2020-06"
```

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

Then manually install the following JARs:

* `target/sysml-v2-api-client-2020-05.jar`
* `target/sysml-v2-api-client-2020-06.jar`
* `target/lib/*.jar`

## Getting Started
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-05'
version = '2020-06'

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-05",
version := "2020-06",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
6 changes: 4 additions & 2 deletions docs/RelationshipApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Method | HTTP request | Description

<a name="getRelationshipsByProjectCommitRelatedElement"></a>
# **getRelationshipsByProjectCommitRelatedElement**
> List&lt;Relationship&gt; getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId)
> List&lt;Relationship&gt; getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction)
Get relationships by project, commit, and related element.

Expand All @@ -31,8 +31,9 @@ public class Example {
UUID projectId = new UUID(); // UUID | ID of the project
UUID commitId = new UUID(); // UUID | ID of the commit
UUID relatedElementId = new UUID(); // UUID | ID of the related element
String direction = "both"; // String | Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element
try {
List<Relationship> result = apiInstance.getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId);
List<Relationship> result = apiInstance.getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RelationshipApi#getRelationshipsByProjectCommitRelatedElement");
Expand All @@ -52,6 +53,7 @@ Name | Type | Description | Notes
**projectId** | [**UUID**](.md)| ID of the project |
**commitId** | [**UUID**](.md)| ID of the commit |
**relatedElementId** | [**UUID**](.md)| ID of the related element |
**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]

### Return type

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-05</version>
<version>2020-06</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-05/java");
setUserAgent("OpenAPI-Generator/2020-06/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
26 changes: 17 additions & 9 deletions src/main/java/org/omg/sysml/api/RelationshipApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public void setApiClient(ApiClient apiClient) {
* @param projectId ID of the project (required)
* @param commitId ID of the commit (required)
* @param relatedElementId ID of the related element (required)
* @param direction Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element (optional, default to both)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
Expand All @@ -73,7 +74,7 @@ public void setApiClient(ApiClient apiClient) {
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
</table>
*/
public okhttp3.Call getRelationshipsByProjectCommitRelatedElementCall(UUID projectId, UUID commitId, UUID relatedElementId, final ApiCallback _callback) throws ApiException {
public okhttp3.Call getRelationshipsByProjectCommitRelatedElementCall(UUID projectId, UUID commitId, UUID relatedElementId, String direction, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;

// create path and map variables
Expand All @@ -84,6 +85,10 @@ public okhttp3.Call getRelationshipsByProjectCommitRelatedElementCall(UUID proje

List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
if (direction != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("direction", direction));
}

Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
Expand All @@ -106,7 +111,7 @@ public okhttp3.Call getRelationshipsByProjectCommitRelatedElementCall(UUID proje
}

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

// verify the required parameter 'projectId' is set
if (projectId == null) {
Expand All @@ -124,7 +129,7 @@ private okhttp3.Call getRelationshipsByProjectCommitRelatedElementValidateBefore
}


okhttp3.Call localVarCall = getRelationshipsByProjectCommitRelatedElementCall(projectId, commitId, relatedElementId, _callback);
okhttp3.Call localVarCall = getRelationshipsByProjectCommitRelatedElementCall(projectId, commitId, relatedElementId, direction, _callback);
return localVarCall;

}
Expand All @@ -135,6 +140,7 @@ private okhttp3.Call getRelationshipsByProjectCommitRelatedElementValidateBefore
* @param projectId ID of the project (required)
* @param commitId ID of the commit (required)
* @param relatedElementId ID of the related element (required)
* @param direction Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element (optional, default to both)
* @return List&lt;Relationship&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Expand All @@ -146,8 +152,8 @@ private okhttp3.Call getRelationshipsByProjectCommitRelatedElementValidateBefore
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
</table>
*/
public List<Relationship> getRelationshipsByProjectCommitRelatedElement(UUID projectId, UUID commitId, UUID relatedElementId) throws ApiException {
ApiResponse<List<Relationship>> localVarResp = getRelationshipsByProjectCommitRelatedElementWithHttpInfo(projectId, commitId, relatedElementId);
public List<Relationship> getRelationshipsByProjectCommitRelatedElement(UUID projectId, UUID commitId, UUID relatedElementId, String direction) throws ApiException {
ApiResponse<List<Relationship>> localVarResp = getRelationshipsByProjectCommitRelatedElementWithHttpInfo(projectId, commitId, relatedElementId, direction);
return localVarResp.getData();
}

Expand All @@ -157,6 +163,7 @@ public List<Relationship> getRelationshipsByProjectCommitRelatedElement(UUID pro
* @param projectId ID of the project (required)
* @param commitId ID of the commit (required)
* @param relatedElementId ID of the related element (required)
* @param direction Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element (optional, default to both)
* @return ApiResponse&lt;List&lt;Relationship&gt;&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Expand All @@ -168,8 +175,8 @@ public List<Relationship> getRelationshipsByProjectCommitRelatedElement(UUID pro
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
</table>
*/
public ApiResponse<List<Relationship>> getRelationshipsByProjectCommitRelatedElementWithHttpInfo(UUID projectId, UUID commitId, UUID relatedElementId) throws ApiException {
okhttp3.Call localVarCall = getRelationshipsByProjectCommitRelatedElementValidateBeforeCall(projectId, commitId, relatedElementId, null);
public ApiResponse<List<Relationship>> getRelationshipsByProjectCommitRelatedElementWithHttpInfo(UUID projectId, UUID commitId, UUID relatedElementId, String direction) throws ApiException {
okhttp3.Call localVarCall = getRelationshipsByProjectCommitRelatedElementValidateBeforeCall(projectId, commitId, relatedElementId, direction, null);
Type localVarReturnType = new TypeToken<List<Relationship>>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
Expand All @@ -180,6 +187,7 @@ public ApiResponse<List<Relationship>> getRelationshipsByProjectCommitRelatedEle
* @param projectId ID of the project (required)
* @param commitId ID of the commit (required)
* @param relatedElementId ID of the related element (required)
* @param direction Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element (optional, default to both)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
Expand All @@ -192,9 +200,9 @@ public ApiResponse<List<Relationship>> getRelationshipsByProjectCommitRelatedEle
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
</table>
*/
public okhttp3.Call getRelationshipsByProjectCommitRelatedElementAsync(UUID projectId, UUID commitId, UUID relatedElementId, final ApiCallback<List<Relationship>> _callback) throws ApiException {
public okhttp3.Call getRelationshipsByProjectCommitRelatedElementAsync(UUID projectId, UUID commitId, UUID relatedElementId, String direction, final ApiCallback<List<Relationship>> _callback) throws ApiException {

okhttp3.Call localVarCall = getRelationshipsByProjectCommitRelatedElementValidateBeforeCall(projectId, commitId, relatedElementId, _callback);
okhttp3.Call localVarCall = getRelationshipsByProjectCommitRelatedElementValidateBeforeCall(projectId, commitId, relatedElementId, direction, _callback);
Type localVarReturnType = new TypeToken<List<Relationship>>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/org/omg/sysml/api/RelationshipApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public void getRelationshipsByProjectCommitRelatedElementTest() throws ApiExcept
UUID projectId = null;
UUID commitId = null;
UUID relatedElementId = null;
List<Relationship> response = api.getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId);
String direction = null;
List<Relationship> response = api.getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction);

// TODO: test validations
}
Expand Down

0 comments on commit 15b3854

Please sign in to comment.