Skip to content

Commit 5645dfb

Browse files
committed
Merge branch 'release/2020-09'
2 parents d52f219 + 7748bea commit 5645dfb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2973
-179
lines changed

.gitlab-ci.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# ref: https://docs.gitlab.com/ee/ci/README.html
2+
3+
stages:
4+
- test
5+
6+
.nosetest:
7+
stage: test
8+
script:
9+
- pip install -r requirements.txt
10+
- pip install -r test-requirements.txt
11+
- pytest --cov=sysml_v2_api_client
12+
13+
nosetest-2.7:
14+
extends: .nosetest
15+
image: python:2.7-alpine
16+
nosetest-3.3:
17+
extends: .nosetest
18+
image: python:3.3-alpine
19+
nosetest-3.4:
20+
extends: .nosetest
21+
image: python:3.4-alpine
22+
nosetest-3.5:
23+
extends: .nosetest
24+
image: python:3.5-alpine
25+
nosetest-3.6:
26+
extends: .nosetest
27+
image: python:3.6-alpine
28+
nosetest-3.7:
29+
extends: .nosetest
30+
image: python:3.7-alpine
31+
nosetest-3.8:
32+
extends: .nosetest
33+
image: python:3.8-alpine

.openapi-generator/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.2.3
1+
4.3.1

.travis.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ python:
1010
- "3.7"
1111
- "3.8"
1212
# command to install dependencies
13-
install: "pip install -r requirements.txt"
13+
install:
14+
- "pip install -r requirements.txt"
15+
- "pip install -r test-requirements.txt"
1416
# command to run tests
15-
script: nosetests
17+
script: pytest --cov=sysml_v2_api_client

README.md

+21-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ REST/HTTP binding (PSM) for the SysML v2 standard API.
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: 1.0.0
7-
- Package version: 2020-06
7+
- Package version: 2020-09
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99

1010
## Requirements.
@@ -46,14 +46,20 @@ Please follow the [installation procedure](#installation--usage) and then run th
4646

4747
```python
4848
from __future__ import print_function
49+
4950
import time
5051
import sysml_v2_api_client
5152
from sysml_v2_api_client.rest import ApiException
5253
from pprint import pprint
5354

55+
# Defining the host is optional and defaults to http://localhost
56+
# See configuration.py for a list of all supported configuration parameters.
57+
configuration = sysml_v2_api_client.Configuration(
58+
host = "http://localhost"
59+
)
60+
61+
5462

55-
# Defining host is optional and default to http://localhost
56-
configuration.host = "http://localhost"
5763
# Enter a context with an instance of the API client
5864
with sysml_v2_api_client.ApiClient(configuration) as api_client:
5965
# Create an instance of the API class
@@ -86,18 +92,29 @@ Class | Method | HTTP request | Description
8692
*ProjectApi* | [**get_project_by_id**](docs/ProjectApi.md#get_project_by_id) | **GET** /projects/{projectId} | Get project by ID
8793
*ProjectApi* | [**get_projects**](docs/ProjectApi.md#get_projects) | **GET** /projects | Get projects
8894
*ProjectApi* | [**post_project**](docs/ProjectApi.md#post_project) | **POST** /projects | Create project
89-
*RelationshipApi* | [**get_relationships_by_project_commit_related_element**](docs/RelationshipApi.md#get_relationships_by_project_commit_related_element) | **GET** /projects/{projectId}/commits/{commitId}/elements/{relatedElementId}/relationships | Get relationships by project, commit, and related element.
95+
*QueryApi* | [**get_queries_by_project**](docs/QueryApi.md#get_queries_by_project) | **GET** /projects/{projectId}/queries | Get queries by project
96+
*QueryApi* | [**get_query_by_project_and_id**](docs/QueryApi.md#get_query_by_project_and_id) | **GET** /projects/{projectId}/queries/{queryId} | Get query by project and ID
97+
*QueryApi* | [**get_query_results_by_project_id_query**](docs/QueryApi.md#get_query_results_by_project_id_query) | **GET** /projects/{projectId}/query-results | Get query results by project and query definition
98+
*QueryApi* | [**get_query_results_by_project_id_query_id**](docs/QueryApi.md#get_query_results_by_project_id_query_id) | **GET** /projects/{projectId}/queries/{queryId}/results | Get query results by project and query
99+
*QueryApi* | [**get_query_results_by_project_id_query_post**](docs/QueryApi.md#get_query_results_by_project_id_query_post) | **POST** /projects/{projectId}/query-results | Get query results by project and query definition via POST
100+
*QueryApi* | [**post_query_by_project**](docs/QueryApi.md#post_query_by_project) | **POST** /projects/{projectId}/queries | Create query by project
101+
*RelationshipApi* | [**get_relationships_by_project_commit_related_element**](docs/RelationshipApi.md#get_relationships_by_project_commit_related_element) | **GET** /projects/{projectId}/commits/{commitId}/elements/{relatedElementId}/relationships | Get relationships by project, commit, and related element
90102

91103

92104
## Documentation For Models
93105

94106
- [Commit](docs/Commit.md)
107+
- [CommitContainingProject](docs/CommitContainingProject.md)
108+
- [CompositeConstraint](docs/CompositeConstraint.md)
109+
- [Constraint](docs/Constraint.md)
95110
- [Element](docs/Element.md)
96111
- [ElementIdentity](docs/ElementIdentity.md)
97112
- [ElementVersion](docs/ElementVersion.md)
98113
- [Error](docs/Error.md)
99114
- [Identified](docs/Identified.md)
115+
- [PrimitiveConstraint](docs/PrimitiveConstraint.md)
100116
- [Project](docs/Project.md)
117+
- [Query](docs/Query.md)
101118
- [Record](docs/Record.md)
102119
- [Relationship](docs/Relationship.md)
103120

docs/Commit.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**type** | **str** | | [optional]
7-
**changes** | [**list[ElementVersion]**](ElementVersion.md) | | [optional]
7+
**change** | [**list[ElementVersion]**](ElementVersion.md) | | [optional]
8+
**containing_project** | [**CommitContainingProject**](CommitContainingProject.md) | | [optional]
89
**id** | **str** | | [optional]
910
**previous_commit** | [**Record**](Record.md) | | [optional]
1011

docs/CommitApi.md

+24
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ import time
2323
import sysml_v2_api_client
2424
from sysml_v2_api_client.rest import ApiException
2525
from pprint import pprint
26+
# Defining the host is optional and defaults to http://localhost
27+
# See configuration.py for a list of all supported configuration parameters.
28+
configuration = sysml_v2_api_client.Configuration(
29+
host = "http://localhost"
30+
)
31+
2632

2733
# Enter a context with an instance of the API client
2834
with sysml_v2_api_client.ApiClient() as api_client:
@@ -83,6 +89,12 @@ import time
8389
import sysml_v2_api_client
8490
from sysml_v2_api_client.rest import ApiException
8591
from pprint import pprint
92+
# Defining the host is optional and defaults to http://localhost
93+
# See configuration.py for a list of all supported configuration parameters.
94+
configuration = sysml_v2_api_client.Configuration(
95+
host = "http://localhost"
96+
)
97+
8698

8799
# Enter a context with an instance of the API client
88100
with sysml_v2_api_client.ApiClient() as api_client:
@@ -141,6 +153,12 @@ import time
141153
import sysml_v2_api_client
142154
from sysml_v2_api_client.rest import ApiException
143155
from pprint import pprint
156+
# Defining the host is optional and defaults to http://localhost
157+
# See configuration.py for a list of all supported configuration parameters.
158+
configuration = sysml_v2_api_client.Configuration(
159+
host = "http://localhost"
160+
)
161+
144162

145163
# Enter a context with an instance of the API client
146164
with sysml_v2_api_client.ApiClient() as api_client:
@@ -199,6 +217,12 @@ import time
199217
import sysml_v2_api_client
200218
from sysml_v2_api_client.rest import ApiException
201219
from pprint import pprint
220+
# Defining the host is optional and defaults to http://localhost
221+
# See configuration.py for a list of all supported configuration parameters.
222+
configuration = sysml_v2_api_client.Configuration(
223+
host = "http://localhost"
224+
)
225+
202226

203227
# Enter a context with an instance of the API client
204228
with sysml_v2_api_client.ApiClient() as api_client:

docs/CommitContainingProject.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CommitContainingProject
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**id** | **str** | | [optional]
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+
10+

docs/CompositeConstraint.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CompositeConstraint
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**type** | **str** | | [optional]
7+
**constraint** | [**list[Constraint]**](Constraint.md) | | [optional]
8+
**operator** | **str** | | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

docs/Constraint.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Constraint
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**type** | **str** | |
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+
10+

docs/ElementApi.md

+18
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ import time
2222
import sysml_v2_api_client
2323
from sysml_v2_api_client.rest import ApiException
2424
from pprint import pprint
25+
# Defining the host is optional and defaults to http://localhost
26+
# See configuration.py for a list of all supported configuration parameters.
27+
configuration = sysml_v2_api_client.Configuration(
28+
host = "http://localhost"
29+
)
30+
2531

2632
# Enter a context with an instance of the API client
2733
with sysml_v2_api_client.ApiClient() as api_client:
@@ -84,6 +90,12 @@ import time
8490
import sysml_v2_api_client
8591
from sysml_v2_api_client.rest import ApiException
8692
from pprint import pprint
93+
# Defining the host is optional and defaults to http://localhost
94+
# See configuration.py for a list of all supported configuration parameters.
95+
configuration = sysml_v2_api_client.Configuration(
96+
host = "http://localhost"
97+
)
98+
8799

88100
# Enter a context with an instance of the API client
89101
with sysml_v2_api_client.ApiClient() as api_client:
@@ -144,6 +156,12 @@ import time
144156
import sysml_v2_api_client
145157
from sysml_v2_api_client.rest import ApiException
146158
from pprint import pprint
159+
# Defining the host is optional and defaults to http://localhost
160+
# See configuration.py for a list of all supported configuration parameters.
161+
configuration = sysml_v2_api_client.Configuration(
162+
host = "http://localhost"
163+
)
164+
147165

148166
# Enter a context with an instance of the API client
149167
with sysml_v2_api_client.ApiClient() as api_client:

docs/PrimitiveConstraint.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# PrimitiveConstraint
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**type** | **str** | | [optional]
7+
**inverse** | **bool** | | [optional]
8+
**_property** | **str** | | [optional]
9+
**value** | **str** | | [optional]
10+
**operator** | **str** | | [optional]
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
14+

docs/ProjectApi.md

+18
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ import time
2222
import sysml_v2_api_client
2323
from sysml_v2_api_client.rest import ApiException
2424
from pprint import pprint
25+
# Defining the host is optional and defaults to http://localhost
26+
# See configuration.py for a list of all supported configuration parameters.
27+
configuration = sysml_v2_api_client.Configuration(
28+
host = "http://localhost"
29+
)
30+
2531

2632
# Enter a context with an instance of the API client
2733
with sysml_v2_api_client.ApiClient() as api_client:
@@ -80,6 +86,12 @@ import time
8086
import sysml_v2_api_client
8187
from sysml_v2_api_client.rest import ApiException
8288
from pprint import pprint
89+
# Defining the host is optional and defaults to http://localhost
90+
# See configuration.py for a list of all supported configuration parameters.
91+
configuration = sysml_v2_api_client.Configuration(
92+
host = "http://localhost"
93+
)
94+
8395

8496
# Enter a context with an instance of the API client
8597
with sysml_v2_api_client.ApiClient() as api_client:
@@ -133,6 +145,12 @@ import time
133145
import sysml_v2_api_client
134146
from sysml_v2_api_client.rest import ApiException
135147
from pprint import pprint
148+
# Defining the host is optional and defaults to http://localhost
149+
# See configuration.py for a list of all supported configuration parameters.
150+
configuration = sysml_v2_api_client.Configuration(
151+
host = "http://localhost"
152+
)
153+
136154

137155
# Enter a context with an instance of the API client
138156
with sysml_v2_api_client.ApiClient() as api_client:

docs/Query.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Query
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**type** | **str** | | [optional]
7+
**containing_project** | [**CommitContainingProject**](CommitContainingProject.md) | | [optional]
8+
**id** | **str** | | [optional]
9+
**scope** | [**list[ElementIdentity]**](ElementIdentity.md) | | [optional]
10+
**select** | **list[str]** | | [optional]
11+
**where** | [**Constraint**](Constraint.md) | | [optional]
12+
13+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14+
15+

0 commit comments

Comments
 (0)