Skip to content

Commit

Permalink
Merge branch 'release/2021-09'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-gomes committed Oct 14, 2021
2 parents f55d4da + 88bc3ea commit 09be58a
Show file tree
Hide file tree
Showing 39 changed files with 3,229 additions and 126 deletions.
538 changes: 514 additions & 24 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 = '2021-06'
version = '2021-09'

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 := "2021-06",
version := "2021-09",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
4 changes: 3 additions & 1 deletion docs/Branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ Name | Type | Description | Notes
**atId** | [**UUID**](UUID.md) | | [optional]
**atType** | [**AtTypeEnum**](#AtTypeEnum) | | [optional]
**head** | [**BranchHead**](BranchHead.md) | | [optional]
**owningProject** | [**BranchOwningProject**](BranchOwningProject.md) | | [optional]
**name** | **String** | | [optional]
**owningProject** | [**BranchOwningProject**](BranchOwningProject.md) | | [optional]
**referencedCommit** | [**BranchHead**](BranchHead.md) | | [optional]
**timestamp** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]



Expand Down
67 changes: 67 additions & 0 deletions docs/BranchApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,78 @@ All URIs are relative to *http://localhost*

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


<a name="deleteBranchByProjectAndId"></a>
# **deleteBranchByProjectAndId**
> Branch deleteBranchByProjectAndId(projectId, branchId)
Delete branch by project and ID

### Example
```java
// Import classes:
import org.omg.sysml.ApiClient;
import org.omg.sysml.ApiException;
import org.omg.sysml.Configuration;
import org.omg.sysml.models.*;
import org.omg.sysml.api.BranchApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");

BranchApi apiInstance = new BranchApi(defaultClient);
UUID projectId = new UUID(); // UUID | ID of the project
UUID branchId = new UUID(); // UUID | ID of the branch
try {
Branch result = apiInstance.deleteBranchByProjectAndId(projectId, branchId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BranchApi#deleteBranchByProjectAndId");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectId** | [**UUID**](.md)| ID of the project |
**branchId** | [**UUID**](.md)| ID of the branch |

### Return type

[**Branch**](Branch.md)

### Authorization

No authorization required

### HTTP request headers

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

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Ok | - |
**404** | Not found. | - |
**415** | The requested content type is not acceptable. | - |
**500** | Internal server error. | - |
**0** | Unexpected response. | - |

<a name="getBranchesByProject"></a>
# **getBranchesByProject**
> List&lt;Branch&gt; getBranchesByProject(projectId, pageAfter, pageBefore, pageSize)
Expand Down
2 changes: 1 addition & 1 deletion docs/Commit.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**atId** | [**UUID**](UUID.md) | | [optional]
**atType** | [**AtTypeEnum**](#AtTypeEnum) | | [optional]
**change** | [**List&lt;ElementVersion&gt;**](ElementVersion.md) | | [optional]
**change** | [**List&lt;DataVersion&gt;**](DataVersion.md) | | [optional]
**owningProject** | [**BranchOwningProject**](BranchOwningProject.md) | | [optional]
**previousCommit** | [**BranchHead**](BranchHead.md) | | [optional]

Expand Down
13 changes: 13 additions & 0 deletions docs/Data.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


# Data

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**atId** | [**UUID**](UUID.md) | | [optional]
**atType** | **String** | |



4 changes: 2 additions & 2 deletions docs/ElementIdentity.md → docs/DataIdentity.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


# ElementIdentity
# DataIdentity

## Properties

Expand All @@ -15,7 +15,7 @@ Name | Type | Description | Notes

Name | Value
---- | -----
ELEMENTIDENTITY | &quot;ElementIdentity&quot;
DATAIDENTITY | &quot;DataIdentity&quot;



8 changes: 4 additions & 4 deletions docs/ElementVersion.md → docs/DataVersion.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@


# ElementVersion
# DataVersion

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**atId** | [**UUID**](UUID.md) | | [optional]
**atType** | [**AtTypeEnum**](#AtTypeEnum) | | [optional]
**data** | [**Element**](Element.md) | | [optional]
**identity** | [**ElementIdentity**](ElementIdentity.md) | | [optional]
**payload** | [**Data**](Data.md) | | [optional]
**identity** | [**DataIdentity**](DataIdentity.md) | | [optional]



## Enum: AtTypeEnum

Name | Value
---- | -----
ELEMENTVERSION | &quot;ElementVersion&quot;
DATAVERSION | &quot;DataVersion&quot;



131 changes: 131 additions & 0 deletions docs/ProjectApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,77 @@ All URIs are relative to *http://localhost*

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


<a name="deleteProjectById"></a>
# **deleteProjectById**
> Project deleteProjectById(projectId)
Delete project by ID

### Example
```java
// Import classes:
import org.omg.sysml.ApiClient;
import org.omg.sysml.ApiException;
import org.omg.sysml.Configuration;
import org.omg.sysml.models.*;
import org.omg.sysml.api.ProjectApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");

ProjectApi apiInstance = new ProjectApi(defaultClient);
UUID projectId = new UUID(); // UUID | ID of the project
try {
Project result = apiInstance.deleteProjectById(projectId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectApi#deleteProjectById");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectId** | [**UUID**](.md)| ID of the project |

### Return type

[**Project**](Project.md)

### Authorization

No authorization required

### HTTP request headers

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

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Ok | - |
**404** | Not found. | - |
**415** | The requested content type is not acceptable. | - |
**500** | Internal server error. | - |
**0** | Unexpected response. | - |

<a name="getProjectById"></a>
# **getProjectById**
> Project getProjectById(projectId)
Expand Down Expand Up @@ -203,3 +269,68 @@ No authorization required
**500** | Internal server error. | - |
**0** | Unexpected response. | - |

<a name="putProjectById"></a>
# **putProjectById**
> Project putProjectById(projectId, body)
Update project by ID

### Example
```java
// Import classes:
import org.omg.sysml.ApiClient;
import org.omg.sysml.ApiException;
import org.omg.sysml.Configuration;
import org.omg.sysml.models.*;
import org.omg.sysml.api.ProjectApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");

ProjectApi apiInstance = new ProjectApi(defaultClient);
UUID projectId = new UUID(); // UUID | ID of the project
Project body = new Project(); // Project |
try {
Project result = apiInstance.putProjectById(projectId, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectApi#putProjectById");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectId** | [**UUID**](.md)| ID of the project |
**body** | [**Project**](Project.md)| | [optional]

### Return type

[**Project**](Project.md)

### Authorization

No authorization required

### HTTP request headers

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

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Ok | - |
**415** | The requested content type is not acceptable. | - |
**500** | Internal server error. | - |
**0** | Unexpected response. | - |

2 changes: 1 addition & 1 deletion docs/Query.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**atId** | [**UUID**](UUID.md) | | [optional]
**atType** | [**AtTypeEnum**](#AtTypeEnum) | | [optional]
**owningProject** | [**BranchOwningProject**](BranchOwningProject.md) | | [optional]
**scope** | [**List&lt;ElementIdentity&gt;**](ElementIdentity.md) | | [optional]
**scope** | [**List&lt;DataIdentity&gt;**](DataIdentity.md) | | [optional]
**select** | **List&lt;String&gt;** | | [optional]
**where** | [**Constraint**](Constraint.md) | | [optional]

Expand Down
Loading

0 comments on commit 09be58a

Please sign in to comment.