Skip to content

Commit 09be58a

Browse files
committed
Merge branch 'release/2021-09'
2 parents f55d4da + 88bc3ea commit 09be58a

39 files changed

+3229
-126
lines changed

api/openapi.yaml

+514-24
Large diffs are not rendered by default.

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

docs/Branch.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ Name | Type | Description | Notes
99
**atId** | [**UUID**](UUID.md) | | [optional]
1010
**atType** | [**AtTypeEnum**](#AtTypeEnum) | | [optional]
1111
**head** | [**BranchHead**](BranchHead.md) | | [optional]
12-
**owningProject** | [**BranchOwningProject**](BranchOwningProject.md) | | [optional]
1312
**name** | **String** | | [optional]
13+
**owningProject** | [**BranchOwningProject**](BranchOwningProject.md) | | [optional]
14+
**referencedCommit** | [**BranchHead**](BranchHead.md) | | [optional]
15+
**timestamp** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
1416

1517

1618

docs/BranchApi.md

+67
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,78 @@ All URIs are relative to *http://localhost*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**deleteBranchByProjectAndId**](BranchApi.md#deleteBranchByProjectAndId) | **DELETE** /projects/{projectId}/branches/{branchId} | Delete branch by project and ID
78
[**getBranchesByProject**](BranchApi.md#getBranchesByProject) | **GET** /projects/{projectId}/branches | Get branches by project
89
[**getBranchesByProjectAndId**](BranchApi.md#getBranchesByProjectAndId) | **GET** /projects/{projectId}/branches/{branchId} | Get branch by project and ID
910
[**postBranchByProject**](BranchApi.md#postBranchByProject) | **POST** /projects/{projectId}/branches | Create branch by project
1011

1112

13+
<a name="deleteBranchByProjectAndId"></a>
14+
# **deleteBranchByProjectAndId**
15+
> Branch deleteBranchByProjectAndId(projectId, branchId)
16+
17+
Delete branch by project and ID
18+
19+
### Example
20+
```java
21+
// Import classes:
22+
import org.omg.sysml.ApiClient;
23+
import org.omg.sysml.ApiException;
24+
import org.omg.sysml.Configuration;
25+
import org.omg.sysml.models.*;
26+
import org.omg.sysml.api.BranchApi;
27+
28+
public class Example {
29+
public static void main(String[] args) {
30+
ApiClient defaultClient = Configuration.getDefaultApiClient();
31+
defaultClient.setBasePath("http://localhost");
32+
33+
BranchApi apiInstance = new BranchApi(defaultClient);
34+
UUID projectId = new UUID(); // UUID | ID of the project
35+
UUID branchId = new UUID(); // UUID | ID of the branch
36+
try {
37+
Branch result = apiInstance.deleteBranchByProjectAndId(projectId, branchId);
38+
System.out.println(result);
39+
} catch (ApiException e) {
40+
System.err.println("Exception when calling BranchApi#deleteBranchByProjectAndId");
41+
System.err.println("Status code: " + e.getCode());
42+
System.err.println("Reason: " + e.getResponseBody());
43+
System.err.println("Response headers: " + e.getResponseHeaders());
44+
e.printStackTrace();
45+
}
46+
}
47+
}
48+
```
49+
50+
### Parameters
51+
52+
Name | Type | Description | Notes
53+
------------- | ------------- | ------------- | -------------
54+
**projectId** | [**UUID**](.md)| ID of the project |
55+
**branchId** | [**UUID**](.md)| ID of the branch |
56+
57+
### Return type
58+
59+
[**Branch**](Branch.md)
60+
61+
### Authorization
62+
63+
No authorization required
64+
65+
### HTTP request headers
66+
67+
- **Content-Type**: Not defined
68+
- **Accept**: application/json, application/ld+json
69+
70+
### HTTP response details
71+
| Status code | Description | Response headers |
72+
|-------------|-------------|------------------|
73+
**200** | Ok | - |
74+
**404** | Not found. | - |
75+
**415** | The requested content type is not acceptable. | - |
76+
**500** | Internal server error. | - |
77+
**0** | Unexpected response. | - |
78+
1279
<a name="getBranchesByProject"></a>
1380
# **getBranchesByProject**
1481
> List&lt;Branch&gt; getBranchesByProject(projectId, pageAfter, pageBefore, pageSize)

docs/Commit.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
99
**atId** | [**UUID**](UUID.md) | | [optional]
1010
**atType** | [**AtTypeEnum**](#AtTypeEnum) | | [optional]
11-
**change** | [**List&lt;ElementVersion&gt;**](ElementVersion.md) | | [optional]
11+
**change** | [**List&lt;DataVersion&gt;**](DataVersion.md) | | [optional]
1212
**owningProject** | [**BranchOwningProject**](BranchOwningProject.md) | | [optional]
1313
**previousCommit** | [**BranchHead**](BranchHead.md) | | [optional]
1414

docs/Data.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
# Data
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**atId** | [**UUID**](UUID.md) | | [optional]
10+
**atType** | **String** | |
11+
12+
13+

docs/ElementIdentity.md renamed to docs/DataIdentity.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
# ElementIdentity
3+
# DataIdentity
44

55
## Properties
66

@@ -15,7 +15,7 @@ Name | Type | Description | Notes
1515

1616
Name | Value
1717
---- | -----
18-
ELEMENTIDENTITY | &quot;ElementIdentity&quot;
18+
DATAIDENTITY | &quot;DataIdentity&quot;
1919

2020

2121

Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11

22

3-
# ElementVersion
3+
# DataVersion
44

55
## Properties
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
99
**atId** | [**UUID**](UUID.md) | | [optional]
1010
**atType** | [**AtTypeEnum**](#AtTypeEnum) | | [optional]
11-
**data** | [**Element**](Element.md) | | [optional]
12-
**identity** | [**ElementIdentity**](ElementIdentity.md) | | [optional]
11+
**payload** | [**Data**](Data.md) | | [optional]
12+
**identity** | [**DataIdentity**](DataIdentity.md) | | [optional]
1313

1414

1515

1616
## Enum: AtTypeEnum
1717

1818
Name | Value
1919
---- | -----
20-
ELEMENTVERSION | &quot;ElementVersion&quot;
20+
DATAVERSION | &quot;DataVersion&quot;
2121

2222

2323

docs/ProjectApi.md

+131
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,77 @@ All URIs are relative to *http://localhost*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**deleteProjectById**](ProjectApi.md#deleteProjectById) | **DELETE** /projects/{projectId} | Delete project by ID
78
[**getProjectById**](ProjectApi.md#getProjectById) | **GET** /projects/{projectId} | Get project by ID
89
[**getProjects**](ProjectApi.md#getProjects) | **GET** /projects | Get projects
910
[**postProject**](ProjectApi.md#postProject) | **POST** /projects | Create project
11+
[**putProjectById**](ProjectApi.md#putProjectById) | **PUT** /projects/{projectId} | Update project by ID
1012

1113

14+
<a name="deleteProjectById"></a>
15+
# **deleteProjectById**
16+
> Project deleteProjectById(projectId)
17+
18+
Delete project by ID
19+
20+
### Example
21+
```java
22+
// Import classes:
23+
import org.omg.sysml.ApiClient;
24+
import org.omg.sysml.ApiException;
25+
import org.omg.sysml.Configuration;
26+
import org.omg.sysml.models.*;
27+
import org.omg.sysml.api.ProjectApi;
28+
29+
public class Example {
30+
public static void main(String[] args) {
31+
ApiClient defaultClient = Configuration.getDefaultApiClient();
32+
defaultClient.setBasePath("http://localhost");
33+
34+
ProjectApi apiInstance = new ProjectApi(defaultClient);
35+
UUID projectId = new UUID(); // UUID | ID of the project
36+
try {
37+
Project result = apiInstance.deleteProjectById(projectId);
38+
System.out.println(result);
39+
} catch (ApiException e) {
40+
System.err.println("Exception when calling ProjectApi#deleteProjectById");
41+
System.err.println("Status code: " + e.getCode());
42+
System.err.println("Reason: " + e.getResponseBody());
43+
System.err.println("Response headers: " + e.getResponseHeaders());
44+
e.printStackTrace();
45+
}
46+
}
47+
}
48+
```
49+
50+
### Parameters
51+
52+
Name | Type | Description | Notes
53+
------------- | ------------- | ------------- | -------------
54+
**projectId** | [**UUID**](.md)| ID of the project |
55+
56+
### Return type
57+
58+
[**Project**](Project.md)
59+
60+
### Authorization
61+
62+
No authorization required
63+
64+
### HTTP request headers
65+
66+
- **Content-Type**: Not defined
67+
- **Accept**: application/json, application/ld+json
68+
69+
### HTTP response details
70+
| Status code | Description | Response headers |
71+
|-------------|-------------|------------------|
72+
**200** | Ok | - |
73+
**404** | Not found. | - |
74+
**415** | The requested content type is not acceptable. | - |
75+
**500** | Internal server error. | - |
76+
**0** | Unexpected response. | - |
77+
1278
<a name="getProjectById"></a>
1379
# **getProjectById**
1480
> Project getProjectById(projectId)
@@ -203,3 +269,68 @@ No authorization required
203269
**500** | Internal server error. | - |
204270
**0** | Unexpected response. | - |
205271

272+
<a name="putProjectById"></a>
273+
# **putProjectById**
274+
> Project putProjectById(projectId, body)
275+
276+
Update project by ID
277+
278+
### Example
279+
```java
280+
// Import classes:
281+
import org.omg.sysml.ApiClient;
282+
import org.omg.sysml.ApiException;
283+
import org.omg.sysml.Configuration;
284+
import org.omg.sysml.models.*;
285+
import org.omg.sysml.api.ProjectApi;
286+
287+
public class Example {
288+
public static void main(String[] args) {
289+
ApiClient defaultClient = Configuration.getDefaultApiClient();
290+
defaultClient.setBasePath("http://localhost");
291+
292+
ProjectApi apiInstance = new ProjectApi(defaultClient);
293+
UUID projectId = new UUID(); // UUID | ID of the project
294+
Project body = new Project(); // Project |
295+
try {
296+
Project result = apiInstance.putProjectById(projectId, body);
297+
System.out.println(result);
298+
} catch (ApiException e) {
299+
System.err.println("Exception when calling ProjectApi#putProjectById");
300+
System.err.println("Status code: " + e.getCode());
301+
System.err.println("Reason: " + e.getResponseBody());
302+
System.err.println("Response headers: " + e.getResponseHeaders());
303+
e.printStackTrace();
304+
}
305+
}
306+
}
307+
```
308+
309+
### Parameters
310+
311+
Name | Type | Description | Notes
312+
------------- | ------------- | ------------- | -------------
313+
**projectId** | [**UUID**](.md)| ID of the project |
314+
**body** | [**Project**](Project.md)| | [optional]
315+
316+
### Return type
317+
318+
[**Project**](Project.md)
319+
320+
### Authorization
321+
322+
No authorization required
323+
324+
### HTTP request headers
325+
326+
- **Content-Type**: application/json
327+
- **Accept**: application/json, application/ld+json
328+
329+
### HTTP response details
330+
| Status code | Description | Response headers |
331+
|-------------|-------------|------------------|
332+
**200** | Ok | - |
333+
**415** | The requested content type is not acceptable. | - |
334+
**500** | Internal server error. | - |
335+
**0** | Unexpected response. | - |
336+

docs/Query.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
**atId** | [**UUID**](UUID.md) | | [optional]
1010
**atType** | [**AtTypeEnum**](#AtTypeEnum) | | [optional]
1111
**owningProject** | [**BranchOwningProject**](BranchOwningProject.md) | | [optional]
12-
**scope** | [**List&lt;ElementIdentity&gt;**](ElementIdentity.md) | | [optional]
12+
**scope** | [**List&lt;DataIdentity&gt;**](DataIdentity.md) | | [optional]
1313
**select** | **List&lt;String&gt;** | | [optional]
1414
**where** | [**Constraint**](Constraint.md) | | [optional]
1515

0 commit comments

Comments
 (0)