Skip to content

Commit d52f219

Browse files
IvanIvan
Ivan
authored and
Ivan
committed
Merge branch 'release/2020-06'
2 parents 7307ff8 + 0b77998 commit d52f219

File tree

7 files changed

+14
-8
lines changed

7 files changed

+14
-8
lines changed

README.md

+1-1
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-05
7+
- Package version: 2020-06
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99

1010
## Requirements.

docs/RelationshipApi.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Method | HTTP request | Description
88

99

1010
# **get_relationships_by_project_commit_related_element**
11-
> list[Relationship] get_relationships_by_project_commit_related_element(project_id, commit_id, related_element_id)
11+
> list[Relationship] get_relationships_by_project_commit_related_element(project_id, commit_id, related_element_id, direction=direction)
1212
1313
Get relationships by project, commit, and related element.
1414

@@ -28,10 +28,11 @@ with sysml_v2_api_client.ApiClient() as api_client:
2828
project_id = 'project_id_example' # str | ID of the project
2929
commit_id = 'commit_id_example' # str | ID of the commit
3030
related_element_id = 'related_element_id_example' # str | ID of the related element
31+
direction = 'both' # str | Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element (optional) (default to 'both')
3132

3233
try:
3334
# Get relationships by project, commit, and related element.
34-
api_response = api_instance.get_relationships_by_project_commit_related_element(project_id, commit_id, related_element_id)
35+
api_response = api_instance.get_relationships_by_project_commit_related_element(project_id, commit_id, related_element_id, direction=direction)
3536
pprint(api_response)
3637
except ApiException as e:
3738
print("Exception when calling RelationshipApi->get_relationships_by_project_commit_related_element: %s\n" % e)
@@ -44,6 +45,7 @@ Name | Type | Description | Notes
4445
**project_id** | [**str**](.md)| ID of the project |
4546
**commit_id** | [**str**](.md)| ID of the commit |
4647
**related_element_id** | [**str**](.md)| ID of the related element |
48+
**direction** | **str**| Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element | [optional] [default to 'both']
4749

4850
### Return type
4951

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from setuptools import setup, find_packages # noqa: H301
1414

1515
NAME = "sysml-v2-api-client"
16-
VERSION = "2020-05"
16+
VERSION = "2020-06"
1717
# To install the library, run the following
1818
#
1919
# python setup.py install

sysml_v2_api_client/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from __future__ import absolute_import
1616

17-
__version__ = "2020-05"
17+
__version__ = "2020-06"
1818

1919
# import apis into sdk package
2020
from sysml_v2_api_client.api.commit_api import CommitApi

sysml_v2_api_client/api/relationship_api.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def get_relationships_by_project_commit_related_element(self, project_id, commit
4848
:param str project_id: ID of the project (required)
4949
:param str commit_id: ID of the commit (required)
5050
:param str related_element_id: ID of the related element (required)
51+
:param str direction: Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element
5152
:param _preload_content: if False, the urllib3.HTTPResponse object will
5253
be returned without reading/decoding response
5354
data. Default is True.
@@ -74,6 +75,7 @@ def get_relationships_by_project_commit_related_element_with_http_info(self, pro
7475
:param str project_id: ID of the project (required)
7576
:param str commit_id: ID of the commit (required)
7677
:param str related_element_id: ID of the related element (required)
78+
:param str direction: Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element
7779
:param _return_http_data_only: response data without head status code
7880
and headers
7981
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -90,7 +92,7 @@ def get_relationships_by_project_commit_related_element_with_http_info(self, pro
9092

9193
local_var_params = locals()
9294

93-
all_params = ['project_id', 'commit_id', 'related_element_id'] # noqa: E501
95+
all_params = ['project_id', 'commit_id', 'related_element_id', 'direction'] # noqa: E501
9496
all_params.append('async_req')
9597
all_params.append('_return_http_data_only')
9698
all_params.append('_preload_content')
@@ -128,6 +130,8 @@ def get_relationships_by_project_commit_related_element_with_http_info(self, pro
128130
path_params['relatedElementId'] = local_var_params['related_element_id'] # noqa: E501
129131

130132
query_params = []
133+
if 'direction' in local_var_params and local_var_params['direction'] is not None: # noqa: E501
134+
query_params.append(('direction', local_var_params['direction'])) # noqa: E501
131135

132136
header_params = {}
133137

sysml_v2_api_client/api_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7878
self.default_headers[header_name] = header_value
7979
self.cookie = cookie
8080
# Set default User-Agent.
81-
self.user_agent = 'OpenAPI-Generator/2020-05/python'
81+
self.user_agent = 'OpenAPI-Generator/2020-06/python'
8282
self.client_side_validation = configuration.client_side_validation
8383

8484
def __enter__(self):

sysml_v2_api_client/configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def to_debug_report(self):
329329
"OS: {env}\n"\
330330
"Python Version: {pyversion}\n"\
331331
"Version of the API: 1.0.0\n"\
332-
"SDK Package Version: 2020-05".\
332+
"SDK Package Version: 2020-06".\
333333
format(env=sys.platform, pyversion=sys.version)
334334

335335
def get_host_settings(self):

0 commit comments

Comments
 (0)