diff --git a/README.md b/README.md
index dad8a38..0309815 100644
--- a/README.md
+++ b/README.md
@@ -39,7 +39,7 @@ Add this dependency to your project's POM:
org.omg.sysml
sysml-v2-api-client
- 2020-05
+ 2020-06
compile
```
@@ -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
@@ -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
diff --git a/build.gradle b/build.gradle
index 752bb08..4a70391 100644
--- a/build.gradle
+++ b/build.gradle
@@ -3,7 +3,7 @@ apply plugin: 'eclipse'
apply plugin: 'java'
group = 'org.omg.sysml'
-version = '2020-05'
+version = '2020-06'
buildscript {
repositories {
diff --git a/build.sbt b/build.sbt
index ec52ef4..4a21dbe 100644
--- a/build.sbt
+++ b/build.sbt
@@ -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"),
diff --git a/docs/RelationshipApi.md b/docs/RelationshipApi.md
index 52b254f..61ebab3 100644
--- a/docs/RelationshipApi.md
+++ b/docs/RelationshipApi.md
@@ -9,7 +9,7 @@ Method | HTTP request | Description
# **getRelationshipsByProjectCommitRelatedElement**
-> List<Relationship> getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId)
+> List<Relationship> getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction)
Get relationships by project, commit, and related element.
@@ -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 result = apiInstance.getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId);
+ List result = apiInstance.getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RelationshipApi#getRelationshipsByProjectCommitRelatedElement");
@@ -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
diff --git a/pom.xml b/pom.xml
index 5361656..60a8470 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
sysml-v2-api-client
jar
sysml-v2-api-client
- 2020-05
+ 2020-06
https://github.com/openapitools/openapi-generator
OpenAPI Java
diff --git a/src/main/java/org/omg/sysml/ApiClient.java b/src/main/java/org/omg/sysml/ApiClient.java
index 4cc6624..f8d2e71 100644
--- a/src/main/java/org/omg/sysml/ApiClient.java
+++ b/src/main/java/org/omg/sysml/ApiClient.java
@@ -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();
}
diff --git a/src/main/java/org/omg/sysml/api/RelationshipApi.java b/src/main/java/org/omg/sysml/api/RelationshipApi.java
index 559946c..c740ad5 100644
--- a/src/main/java/org/omg/sysml/api/RelationshipApi.java
+++ b/src/main/java/org/omg/sysml/api/RelationshipApi.java
@@ -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
@@ -73,7 +74,7 @@ public void setApiClient(ApiClient apiClient) {
0 | Unexpected response. | - |
*/
- 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
@@ -84,6 +85,10 @@ public okhttp3.Call getRelationshipsByProjectCommitRelatedElementCall(UUID proje
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
+ if (direction != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("direction", direction));
+ }
+
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
@@ -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) {
@@ -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;
}
@@ -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<Relationship>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -146,8 +152,8 @@ private okhttp3.Call getRelationshipsByProjectCommitRelatedElementValidateBefore
0 | Unexpected response. | - |
*/
- public List getRelationshipsByProjectCommitRelatedElement(UUID projectId, UUID commitId, UUID relatedElementId) throws ApiException {
- ApiResponse> localVarResp = getRelationshipsByProjectCommitRelatedElementWithHttpInfo(projectId, commitId, relatedElementId);
+ public List getRelationshipsByProjectCommitRelatedElement(UUID projectId, UUID commitId, UUID relatedElementId, String direction) throws ApiException {
+ ApiResponse> localVarResp = getRelationshipsByProjectCommitRelatedElementWithHttpInfo(projectId, commitId, relatedElementId, direction);
return localVarResp.getData();
}
@@ -157,6 +163,7 @@ public List 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<List<Relationship>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -168,8 +175,8 @@ public List getRelationshipsByProjectCommitRelatedElement(UUID pro
0 | Unexpected response. | - |
*/
- public ApiResponse> getRelationshipsByProjectCommitRelatedElementWithHttpInfo(UUID projectId, UUID commitId, UUID relatedElementId) throws ApiException {
- okhttp3.Call localVarCall = getRelationshipsByProjectCommitRelatedElementValidateBeforeCall(projectId, commitId, relatedElementId, null);
+ public ApiResponse> getRelationshipsByProjectCommitRelatedElementWithHttpInfo(UUID projectId, UUID commitId, UUID relatedElementId, String direction) throws ApiException {
+ okhttp3.Call localVarCall = getRelationshipsByProjectCommitRelatedElementValidateBeforeCall(projectId, commitId, relatedElementId, direction, null);
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -180,6 +187,7 @@ public ApiResponse> 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
@@ -192,9 +200,9 @@ public ApiResponse> getRelationshipsByProjectCommitRelatedEle
0 | Unexpected response. | - |
*/
- public okhttp3.Call getRelationshipsByProjectCommitRelatedElementAsync(UUID projectId, UUID commitId, UUID relatedElementId, final ApiCallback> _callback) throws ApiException {
+ public okhttp3.Call getRelationshipsByProjectCommitRelatedElementAsync(UUID projectId, UUID commitId, UUID relatedElementId, String direction, final ApiCallback> _callback) throws ApiException {
- okhttp3.Call localVarCall = getRelationshipsByProjectCommitRelatedElementValidateBeforeCall(projectId, commitId, relatedElementId, _callback);
+ okhttp3.Call localVarCall = getRelationshipsByProjectCommitRelatedElementValidateBeforeCall(projectId, commitId, relatedElementId, direction, _callback);
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
diff --git a/src/test/java/org/omg/sysml/api/RelationshipApiTest.java b/src/test/java/org/omg/sysml/api/RelationshipApiTest.java
index 81a9cec..d5f1757 100644
--- a/src/test/java/org/omg/sysml/api/RelationshipApiTest.java
+++ b/src/test/java/org/omg/sysml/api/RelationshipApiTest.java
@@ -47,7 +47,8 @@ public void getRelationshipsByProjectCommitRelatedElementTest() throws ApiExcept
UUID projectId = null;
UUID commitId = null;
UUID relatedElementId = null;
- List response = api.getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId);
+ String direction = null;
+ List response = api.getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction);
// TODO: test validations
}