Skip to content

Commit 15b3854

Browse files
IvanIvan
Ivan
authored and
Ivan
committed
Merge branch 'release/2020-06'
2 parents 0cf20a6 + a4b625d commit 15b3854

File tree

8 files changed

+30
-19
lines changed

8 files changed

+30
-19
lines changed

README.md

+3-3
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-05</version>
42+
<version>2020-06</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-05"
52+
compile "org.omg.sysml:sysml-v2-api-client:2020-06"
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-05.jar`
65+
* `target/sysml-v2-api-client-2020-06.jar`
6666
* `target/lib/*.jar`
6767

6868
## Getting Started

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-05'
6+
version = '2020-06'
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-05",
5+
version := "2020-06",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/RelationshipApi.md

+4-2
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)
12+
> List&lt;Relationship&gt; getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction)
1313
1414
Get relationships by project, commit, and related element.
1515

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

5658
### Return type
5759

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

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

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

+17-9
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public void setApiClient(ApiClient apiClient) {
6161
* @param projectId ID of the project (required)
6262
* @param commitId ID of the commit (required)
6363
* @param relatedElementId ID of the related element (required)
64+
* @param direction Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element (optional, default to both)
6465
* @param _callback Callback for upload/download progress
6566
* @return Call to execute
6667
* @throws ApiException If fail to serialize the request body object
@@ -73,7 +74,7 @@ public void setApiClient(ApiClient apiClient) {
7374
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
7475
</table>
7576
*/
76-
public okhttp3.Call getRelationshipsByProjectCommitRelatedElementCall(UUID projectId, UUID commitId, UUID relatedElementId, final ApiCallback _callback) throws ApiException {
77+
public okhttp3.Call getRelationshipsByProjectCommitRelatedElementCall(UUID projectId, UUID commitId, UUID relatedElementId, String direction, final ApiCallback _callback) throws ApiException {
7778
Object localVarPostBody = null;
7879

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

8586
List<Pair> localVarQueryParams = new ArrayList<Pair>();
8687
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
88+
if (direction != null) {
89+
localVarQueryParams.addAll(localVarApiClient.parameterToPair("direction", direction));
90+
}
91+
8792
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
8893
Map<String, String> localVarCookieParams = new HashMap<String, String>();
8994
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
@@ -106,7 +111,7 @@ public okhttp3.Call getRelationshipsByProjectCommitRelatedElementCall(UUID proje
106111
}
107112

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

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

126131

127-
okhttp3.Call localVarCall = getRelationshipsByProjectCommitRelatedElementCall(projectId, commitId, relatedElementId, _callback);
132+
okhttp3.Call localVarCall = getRelationshipsByProjectCommitRelatedElementCall(projectId, commitId, relatedElementId, direction, _callback);
128133
return localVarCall;
129134

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

@@ -157,6 +163,7 @@ public List<Relationship> getRelationshipsByProjectCommitRelatedElement(UUID pro
157163
* @param projectId ID of the project (required)
158164
* @param commitId ID of the commit (required)
159165
* @param relatedElementId ID of the related element (required)
166+
* @param direction Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element (optional, default to both)
160167
* @return ApiResponse&lt;List&lt;Relationship&gt;&gt;
161168
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
162169
* @http.response.details
@@ -168,8 +175,8 @@ public List<Relationship> getRelationshipsByProjectCommitRelatedElement(UUID pro
168175
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
169176
</table>
170177
*/
171-
public ApiResponse<List<Relationship>> getRelationshipsByProjectCommitRelatedElementWithHttpInfo(UUID projectId, UUID commitId, UUID relatedElementId) throws ApiException {
172-
okhttp3.Call localVarCall = getRelationshipsByProjectCommitRelatedElementValidateBeforeCall(projectId, commitId, relatedElementId, null);
178+
public ApiResponse<List<Relationship>> getRelationshipsByProjectCommitRelatedElementWithHttpInfo(UUID projectId, UUID commitId, UUID relatedElementId, String direction) throws ApiException {
179+
okhttp3.Call localVarCall = getRelationshipsByProjectCommitRelatedElementValidateBeforeCall(projectId, commitId, relatedElementId, direction, null);
173180
Type localVarReturnType = new TypeToken<List<Relationship>>(){}.getType();
174181
return localVarApiClient.execute(localVarCall, localVarReturnType);
175182
}
@@ -180,6 +187,7 @@ public ApiResponse<List<Relationship>> getRelationshipsByProjectCommitRelatedEle
180187
* @param projectId ID of the project (required)
181188
* @param commitId ID of the commit (required)
182189
* @param relatedElementId ID of the related element (required)
190+
* @param direction Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element (optional, default to both)
183191
* @param _callback The callback to be executed when the API call finishes
184192
* @return The request call
185193
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -192,9 +200,9 @@ public ApiResponse<List<Relationship>> getRelationshipsByProjectCommitRelatedEle
192200
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
193201
</table>
194202
*/
195-
public okhttp3.Call getRelationshipsByProjectCommitRelatedElementAsync(UUID projectId, UUID commitId, UUID relatedElementId, final ApiCallback<List<Relationship>> _callback) throws ApiException {
203+
public okhttp3.Call getRelationshipsByProjectCommitRelatedElementAsync(UUID projectId, UUID commitId, UUID relatedElementId, String direction, final ApiCallback<List<Relationship>> _callback) throws ApiException {
196204

197-
okhttp3.Call localVarCall = getRelationshipsByProjectCommitRelatedElementValidateBeforeCall(projectId, commitId, relatedElementId, _callback);
205+
okhttp3.Call localVarCall = getRelationshipsByProjectCommitRelatedElementValidateBeforeCall(projectId, commitId, relatedElementId, direction, _callback);
198206
Type localVarReturnType = new TypeToken<List<Relationship>>(){}.getType();
199207
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
200208
return localVarCall;

src/test/java/org/omg/sysml/api/RelationshipApiTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ public void getRelationshipsByProjectCommitRelatedElementTest() throws ApiExcept
4747
UUID projectId = null;
4848
UUID commitId = null;
4949
UUID relatedElementId = null;
50-
List<Relationship> response = api.getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId);
50+
String direction = null;
51+
List<Relationship> response = api.getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction);
5152

5253
// TODO: test validations
5354
}

0 commit comments

Comments
 (0)