Skip to content

Commit

Permalink
Merge pull request #3 from Systems-Modeling/release/2021-03
Browse files Browse the repository at this point in the history
ST5AS-126 feat: Regenerate for 2021-03
  • Loading branch information
ivan-gomes authored Apr 9, 2021
2 parents a4f9f19 + e30ae7a commit c9bcc2e
Show file tree
Hide file tree
Showing 18 changed files with 195 additions and 39 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ REST/HTTP binding (PSM) for the SysML v2 standard API.
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Package version: 2020-09
- Package version: 2021-03
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down
10 changes: 8 additions & 2 deletions docs/CommitApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_commits_by_project**
> list[Commit] get_commits_by_project(project_id)
> list[Commit] get_commits_by_project(project_id, page_after=page_after, page_before=page_before, page_size=page_size)
Get commits by project

Expand All @@ -101,10 +101,13 @@ with sysml_v2_api_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = sysml_v2_api_client.CommitApi(api_client)
project_id = 'project_id_example' # str | ID of the project
page_after = 'page_after_example' # str | Page after (optional)
page_before = 'page_before_example' # str | Page before (optional)
page_size = 56 # int | Page size (optional)

try:
# Get commits by project
api_response = api_instance.get_commits_by_project(project_id)
api_response = api_instance.get_commits_by_project(project_id, page_after=page_after, page_before=page_before, page_size=page_size)
pprint(api_response)
except ApiException as e:
print("Exception when calling CommitApi->get_commits_by_project: %s\n" % e)
Expand All @@ -115,6 +118,9 @@ with sysml_v2_api_client.ApiClient() as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**project_id** | [**str**](.md)| ID of the project |
**page_after** | **str**| Page after | [optional]
**page_before** | **str**| Page before | [optional]
**page_size** | **int**| 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 @@ -64,7 +64,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 @@ -78,7 +78,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_elements_by_project_commit**
> list[Element] get_elements_by_project_commit(project_id, commit_id)
> list[Element] get_elements_by_project_commit(project_id, commit_id, page_after=page_after, page_before=page_before, page_size=page_size)
Get elements by project and commit

Expand All @@ -103,10 +103,13 @@ with sysml_v2_api_client.ApiClient() as api_client:
api_instance = sysml_v2_api_client.ElementApi(api_client)
project_id = 'project_id_example' # str | ID of the project
commit_id = 'commit_id_example' # str | ID of the commit
page_after = 'page_after_example' # str | Page after (optional)
page_before = 'page_before_example' # str | Page before (optional)
page_size = 56 # int | Page size (optional)

try:
# Get elements by project and commit
api_response = api_instance.get_elements_by_project_commit(project_id, commit_id)
api_response = api_instance.get_elements_by_project_commit(project_id, commit_id, page_after=page_after, page_before=page_before, page_size=page_size)
pprint(api_response)
except ApiException as e:
print("Exception when calling ElementApi->get_elements_by_project_commit: %s\n" % e)
Expand All @@ -118,6 +121,9 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**project_id** | [**str**](.md)| ID of the project |
**commit_id** | [**str**](.md)| ID of the commit |
**page_after** | **str**| Page after | [optional]
**page_before** | **str**| Page before | [optional]
**page_size** | **int**| Page size | [optional]

### Return type

Expand All @@ -130,7 +136,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 @@ -144,7 +150,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_roots_by_project_commit**
> list[Element] get_roots_by_project_commit(project_id, commit_id)
> list[Element] get_roots_by_project_commit(project_id, commit_id, page_after=page_after, page_before=page_before, page_size=page_size)
Get root elements by project and commit

Expand All @@ -169,10 +175,13 @@ with sysml_v2_api_client.ApiClient() as api_client:
api_instance = sysml_v2_api_client.ElementApi(api_client)
project_id = 'project_id_example' # str | ID of the project
commit_id = 'commit_id_example' # str | ID of the commit
page_after = 'page_after_example' # str | Page after (optional)
page_before = 'page_before_example' # str | Page before (optional)
page_size = 56 # int | Page size (optional)

try:
# Get root elements by project and commit
api_response = api_instance.get_roots_by_project_commit(project_id, commit_id)
api_response = api_instance.get_roots_by_project_commit(project_id, commit_id, page_after=page_after, page_before=page_before, page_size=page_size)
pprint(api_response)
except ApiException as e:
print("Exception when calling ElementApi->get_roots_by_project_commit: %s\n" % e)
Expand All @@ -184,6 +193,9 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**project_id** | [**str**](.md)| ID of the project |
**commit_id** | [**str**](.md)| ID of the commit |
**page_after** | **str**| Page after | [optional]
**page_before** | **str**| Page before | [optional]
**page_size** | **int**| Page size | [optional]

### Return type

Expand All @@ -196,7 +208,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 @@ -4,6 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | **str** | | [optional]
**description** | **str** | | [optional]
**id** | **str** | | [optional]
**name** | **str** | | [optional]

Expand Down
16 changes: 12 additions & 4 deletions docs/ProjectApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_projects**
> list[Project] get_projects()
> list[Project] get_projects(page_after=page_after, page_before=page_before, page_size=page_size)
Get projects

Expand All @@ -97,17 +97,25 @@ configuration = sysml_v2_api_client.Configuration(
with sysml_v2_api_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = sysml_v2_api_client.ProjectApi(api_client)

page_after = 'page_after_example' # str | Page after (optional)
page_before = 'page_before_example' # str | Page before (optional)
page_size = 56 # int | Page size (optional)

try:
# Get projects
api_response = api_instance.get_projects()
api_response = api_instance.get_projects(page_after=page_after, page_before=page_before, page_size=page_size)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectApi->get_projects: %s\n" % e)
```

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

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**page_after** | **str**| Page after | [optional]
**page_before** | **str**| Page before | [optional]
**page_size** | **int**| 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 @@ -13,7 +13,7 @@ Method | HTTP request | Description


# **get_queries_by_project**
> list[Query] get_queries_by_project(project_id)
> list[Query] get_queries_by_project(project_id, page_after=page_after, page_before=page_before, page_size=page_size)
Get queries by project

Expand All @@ -37,10 +37,13 @@ with sysml_v2_api_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = sysml_v2_api_client.QueryApi(api_client)
project_id = 'project_id_example' # str | ID of the project
page_after = 'page_after_example' # str | Page after (optional)
page_before = 'page_before_example' # str | Page before (optional)
page_size = 56 # int | Page size (optional)

try:
# Get queries by project
api_response = api_instance.get_queries_by_project(project_id)
api_response = api_instance.get_queries_by_project(project_id, page_after=page_after, page_before=page_before, page_size=page_size)
pprint(api_response)
except ApiException as e:
print("Exception when calling QueryApi->get_queries_by_project: %s\n" % e)
Expand All @@ -51,6 +54,9 @@ with sysml_v2_api_client.ApiClient() as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**project_id** | [**str**](.md)| ID of the project |
**page_after** | **str**| Page after | [optional]
**page_before** | **str**| Page before | [optional]
**page_size** | **int**| Page size | [optional]

### Return type

Expand Down Expand Up @@ -197,7 +203,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 @@ -265,7 +271,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 @@ -335,7 +341,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 @@ -8,7 +8,7 @@ Method | HTTP request | Description


# **get_relationships_by_project_commit_related_element**
> list[Relationship] get_relationships_by_project_commit_related_element(project_id, commit_id, related_element_id, direction=direction)
> list[Relationship] get_relationships_by_project_commit_related_element(project_id, commit_id, related_element_id, direction=direction, page_after=page_after, page_before=page_before, page_size=page_size)
Get relationships by project, commit, and related element

Expand All @@ -35,10 +35,13 @@ with sysml_v2_api_client.ApiClient() as api_client:
commit_id = 'commit_id_example' # str | ID of the commit
related_element_id = 'related_element_id_example' # str | ID of the related element
direction = 'both' # str | Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element (optional) (default to 'both')
page_after = 'page_after_example' # str | Page after (optional)
page_before = 'page_before_example' # str | Page before (optional)
page_size = 56 # int | Page size (optional)

try:
# Get relationships by project, commit, and related element
api_response = api_instance.get_relationships_by_project_commit_related_element(project_id, commit_id, related_element_id, direction=direction)
api_response = api_instance.get_relationships_by_project_commit_related_element(project_id, commit_id, related_element_id, direction=direction, page_after=page_after, page_before=page_before, page_size=page_size)
pprint(api_response)
except ApiException as e:
print("Exception when calling RelationshipApi->get_relationships_by_project_commit_related_element: %s\n" % e)
Expand All @@ -52,6 +55,9 @@ Name | Type | Description | Notes
**commit_id** | [**str**](.md)| ID of the commit |
**related_element_id** | [**str**](.md)| ID of the related element |
**direction** | **str**| Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element | [optional] [default to 'both']
**page_after** | **str**| Page after | [optional]
**page_before** | **str**| Page before | [optional]
**page_size** | **int**| Page size | [optional]

### Return type

Expand All @@ -64,7 +70,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 setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "sysml-v2-api-client"
VERSION = "2020-09"
VERSION = "2021-03"
# To install the library, run the following
#
# python setup.py install
Expand Down
2 changes: 1 addition & 1 deletion sysml_v2_api_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from __future__ import absolute_import

__version__ = "2020-09"
__version__ = "2021-03"

# import apis into sdk package
from sysml_v2_api_client.api.commit_api import CommitApi
Expand Down
17 changes: 16 additions & 1 deletion sysml_v2_api_client/api/commit_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ def get_commits_by_project(self, project_id, **kwargs): # noqa: E501
:param async_req bool: execute request asynchronously
:param str project_id: ID of the project (required)
:param str page_after: Page after
:param str page_before: Page before
:param int page_size: Page size
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
Expand All @@ -191,6 +194,9 @@ def get_commits_by_project_with_http_info(self, project_id, **kwargs): # noqa:
:param async_req bool: execute request asynchronously
:param str project_id: ID of the project (required)
:param str page_after: Page after
:param str page_before: Page before
:param int page_size: Page size
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
Expand All @@ -208,7 +214,10 @@ def get_commits_by_project_with_http_info(self, project_id, **kwargs): # noqa:
local_var_params = locals()

all_params = [
'project_id'
'project_id',
'page_after',
'page_before',
'page_size'
]
all_params.extend(
[
Expand Down Expand Up @@ -239,6 +248,12 @@ def get_commits_by_project_with_http_info(self, project_id, **kwargs): # noqa:
path_params['projectId'] = local_var_params['project_id'] # noqa: E501

query_params = []
if 'page_after' in local_var_params and local_var_params['page_after'] is not None: # noqa: E501
query_params.append(('page[after]', local_var_params['page_after'])) # noqa: E501
if 'page_before' in local_var_params and local_var_params['page_before'] is not None: # noqa: E501
query_params.append(('page[before]', local_var_params['page_before'])) # noqa: E501
if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501
query_params.append(('page[size]', local_var_params['page_size'])) # noqa: E501

header_params = {}

Expand Down
Loading

0 comments on commit c9bcc2e

Please sign in to comment.