Skip to content

Commit

Permalink
Merge pull request #5 from Systems-Modeling/release/2021-03
Browse files Browse the repository at this point in the history
ST5AS-125 feat: Regenerate for 2021-03
  • Loading branch information
ivan-gomes authored Apr 9, 2021
2 parents a21793c + c9e1e9d commit b507cfa
Show file tree
Hide file tree
Showing 23 changed files with 466 additions and 134 deletions.
178 changes: 136 additions & 42 deletions api/openapi.yaml

Large diffs are not rendered by default.

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-09'
version = '2021-03'

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-09",
version := "2021-03",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
10 changes: 8 additions & 2 deletions docs/CommitApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ No authorization required

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

Expand All @@ -98,8 +98,11 @@ public class Example {

CommitApi apiInstance = new CommitApi(defaultClient);
UUID projectId = new UUID(); // UUID | ID of the project
String pageAfter = "pageAfter_example"; // String | Page after
String pageBefore = "pageBefore_example"; // String | Page before
Integer pageSize = 56; // Integer | Page size
try {
List<Commit> result = apiInstance.getCommitsByProject(projectId);
List<Commit> result = apiInstance.getCommitsByProject(projectId, pageAfter, pageBefore, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CommitApi#getCommitsByProject");
Expand All @@ -117,6 +120,9 @@ public class Example {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectId** | [**UUID**](.md)| ID of the project |
**pageAfter** | **String**| Page after | [optional]
**pageBefore** | **String**| Page before | [optional]
**pageSize** | **Integer**| Page size | [optional]

### Return type

Expand Down
26 changes: 19 additions & 7 deletions docs/ElementApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ No authorization required
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/ld+json, application/json
- **Accept**: application/json, application/ld+json

### HTTP response details
| Status code | Description | Response headers |
Expand All @@ -79,7 +79,7 @@ No authorization required

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

Expand All @@ -100,8 +100,11 @@ public class Example {
ElementApi apiInstance = new ElementApi(defaultClient);
UUID projectId = new UUID(); // UUID | ID of the project
UUID commitId = new UUID(); // UUID | ID of the commit
String pageAfter = "pageAfter_example"; // String | Page after
String pageBefore = "pageBefore_example"; // String | Page before
Integer pageSize = 56; // Integer | Page size
try {
List<Element> result = apiInstance.getElementsByProjectCommit(projectId, commitId);
List<Element> result = apiInstance.getElementsByProjectCommit(projectId, commitId, pageAfter, pageBefore, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ElementApi#getElementsByProjectCommit");
Expand All @@ -120,6 +123,9 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectId** | [**UUID**](.md)| ID of the project |
**commitId** | [**UUID**](.md)| ID of the commit |
**pageAfter** | **String**| Page after | [optional]
**pageBefore** | **String**| Page before | [optional]
**pageSize** | **Integer**| Page size | [optional]

### Return type

Expand All @@ -132,7 +138,7 @@ No authorization required
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/ld+json, application/json
- **Accept**: application/json, application/ld+json

### HTTP response details
| Status code | Description | Response headers |
Expand All @@ -145,7 +151,7 @@ No authorization required

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

Expand All @@ -166,8 +172,11 @@ public class Example {
ElementApi apiInstance = new ElementApi(defaultClient);
UUID projectId = new UUID(); // UUID | ID of the project
UUID commitId = new UUID(); // UUID | ID of the commit
String pageAfter = "pageAfter_example"; // String | Page after
String pageBefore = "pageBefore_example"; // String | Page before
Integer pageSize = 56; // Integer | Page size
try {
List<Element> result = apiInstance.getRootsByProjectCommit(projectId, commitId);
List<Element> result = apiInstance.getRootsByProjectCommit(projectId, commitId, pageAfter, pageBefore, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ElementApi#getRootsByProjectCommit");
Expand All @@ -186,6 +195,9 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectId** | [**UUID**](.md)| ID of the project |
**commitId** | [**UUID**](.md)| ID of the commit |
**pageAfter** | **String**| Page after | [optional]
**pageBefore** | **String**| Page before | [optional]
**pageSize** | **Integer**| Page size | [optional]

### Return type

Expand All @@ -198,7 +210,7 @@ No authorization required
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/ld+json, application/json
- **Accept**: application/json, application/ld+json

### HTTP response details
| Status code | Description | Response headers |
Expand Down
1 change: 1 addition & 0 deletions docs/Project.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**atType** | [**AtTypeEnum**](#AtTypeEnum) | | [optional]
**description** | **String** | | [optional]
**id** | [**UUID**](UUID.md) | | [optional]
**name** | **String** | | [optional]

Expand Down
14 changes: 11 additions & 3 deletions docs/ProjectApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ No authorization required

<a name="getProjects"></a>
# **getProjects**
> List&lt;Project&gt; getProjects()
> List&lt;Project&gt; getProjects(pageAfter, pageBefore, pageSize)
Get projects

Expand All @@ -94,8 +94,11 @@ public class Example {
defaultClient.setBasePath("http://localhost");

ProjectApi apiInstance = new ProjectApi(defaultClient);
String pageAfter = "pageAfter_example"; // String | Page after
String pageBefore = "pageBefore_example"; // String | Page before
Integer pageSize = 56; // Integer | Page size
try {
List<Project> result = apiInstance.getProjects();
List<Project> result = apiInstance.getProjects(pageAfter, pageBefore, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectApi#getProjects");
Expand All @@ -109,7 +112,12 @@ public class Example {
```

### Parameters
This endpoint does not need any parameter.

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageAfter** | **String**| Page after | [optional]
**pageBefore** | **String**| Page before | [optional]
**pageSize** | **Integer**| Page size | [optional]

### Return type

Expand Down
16 changes: 11 additions & 5 deletions docs/QueryApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Method | HTTP request | Description

<a name="getQueriesByProject"></a>
# **getQueriesByProject**
> List&lt;Query&gt; getQueriesByProject(projectId)
> List&lt;Query&gt; getQueriesByProject(projectId, pageAfter, pageBefore, pageSize)
Get queries by project

Expand All @@ -34,8 +34,11 @@ public class Example {

QueryApi apiInstance = new QueryApi(defaultClient);
UUID projectId = new UUID(); // UUID | ID of the project
String pageAfter = "pageAfter_example"; // String | Page after
String pageBefore = "pageBefore_example"; // String | Page before
Integer pageSize = 56; // Integer | Page size
try {
List<Query> result = apiInstance.getQueriesByProject(projectId);
List<Query> result = apiInstance.getQueriesByProject(projectId, pageAfter, pageBefore, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling QueryApi#getQueriesByProject");
Expand All @@ -53,6 +56,9 @@ public class Example {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectId** | [**UUID**](.md)| ID of the project |
**pageAfter** | **String**| Page after | [optional]
**pageBefore** | **String**| Page before | [optional]
**pageSize** | **Integer**| Page size | [optional]

### Return type

Expand Down Expand Up @@ -199,7 +205,7 @@ No authorization required
### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/ld+json, application/json
- **Accept**: application/json, application/ld+json

### HTTP response details
| Status code | Description | Response headers |
Expand Down Expand Up @@ -267,7 +273,7 @@ No authorization required
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/ld+json, application/json
- **Accept**: application/json, application/ld+json

### HTTP response details
| Status code | Description | Response headers |
Expand Down Expand Up @@ -337,7 +343,7 @@ No authorization required
### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/ld+json, application/json
- **Accept**: application/json, application/ld+json

### HTTP response details
| Status code | Description | Response headers |
Expand Down
12 changes: 9 additions & 3 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, direction)
> List&lt;Relationship&gt; getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction, pageAfter, pageBefore, pageSize)
Get relationships by project, commit, and related element

Expand All @@ -32,8 +32,11 @@ public class Example {
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
String pageAfter = "pageAfter_example"; // String | Page after
String pageBefore = "pageBefore_example"; // String | Page before
Integer pageSize = 56; // Integer | Page size
try {
List<Relationship> result = apiInstance.getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction);
List<Relationship> result = apiInstance.getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction, pageAfter, pageBefore, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RelationshipApi#getRelationshipsByProjectCommitRelatedElement");
Expand All @@ -54,6 +57,9 @@ Name | Type | Description | Notes
**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]
**pageAfter** | **String**| Page after | [optional]
**pageBefore** | **String**| Page before | [optional]
**pageSize** | **Integer**| Page size | [optional]

### Return type

Expand All @@ -66,7 +72,7 @@ No authorization required
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/ld+json, application/json
- **Accept**: application/json, application/ld+json

### HTTP response details
| Status code | Description | Response headers |
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-09</version>
<version>2021-03</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 @@ -108,7 +108,7 @@ private void init() {
json = new JSON();

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

authentications = new HashMap<String, Authentication>();
}
Expand Down
Loading

0 comments on commit b507cfa

Please sign in to comment.