Skip to content

Commit 97248d0

Browse files
committed
Merge branch 'release/2021-06'
2 parents b58a2a6 + 327e908 commit 97248d0

38 files changed

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

1010
## Requirements.

docs/Branch.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6+
**id** | **str** | | [optional]
67
**type** | **str** | | [optional]
78
**head** | [**BranchHead**](BranchHead.md) | | [optional]
89
**owning_project** | [**BranchOwningProject**](BranchOwningProject.md) | | [optional]
9-
**id** | **str** | | [optional]
1010
**name** | **str** | | [optional]
1111

1212
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/BranchApi.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ No authorization required
6666
### HTTP request headers
6767

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

7171
### HTTP response details
7272
| Status code | Description | Response headers |
@@ -132,7 +132,7 @@ No authorization required
132132
### HTTP request headers
133133

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

137137
### HTTP response details
138138
| Status code | Description | Response headers |
@@ -198,7 +198,7 @@ No authorization required
198198
### HTTP request headers
199199

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

203203
### HTTP response details
204204
| Status code | Description | Response headers |

docs/Commit.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6+
**id** | **str** | | [optional]
67
**type** | **str** | | [optional]
78
**change** | [**list[ElementVersion]**](ElementVersion.md) | | [optional]
89
**owning_project** | [**BranchOwningProject**](BranchOwningProject.md) | | [optional]
9-
**id** | **str** | | [optional]
1010
**previous_commit** | [**BranchHead**](BranchHead.md) | | [optional]
1111

1212
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/CommitApi.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ No authorization required
6262
### HTTP request headers
6363

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

6767
### HTTP response details
6868
| Status code | Description | Response headers |
@@ -132,7 +132,7 @@ No authorization required
132132
### HTTP request headers
133133

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

137137
### HTTP response details
138138
| Status code | Description | Response headers |
@@ -200,7 +200,7 @@ No authorization required
200200
### HTTP request headers
201201

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

205205
### HTTP response details
206206
| Status code | Description | Response headers |

docs/Element.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**type** | **str** | | [optional]
76
**id** | **str** | | [optional]
7+
**type** | **str** | | [optional]
88
**identifier** | **str** | | [optional]
99

1010
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/ElementIdentity.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**type** | **str** | | [optional]
76
**id** | **str** | | [optional]
7+
**type** | **str** | | [optional]
88

99
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1010

docs/ElementVersion.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6+
**id** | **str** | | [optional]
67
**type** | **str** | | [optional]
78
**data** | [**Element**](Element.md) | | [optional]
8-
**id** | **str** | | [optional]
99
**identity** | [**ElementIdentity**](ElementIdentity.md) | | [optional]
1010

1111
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/Project.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6+
**id** | **str** | | [optional]
67
**type** | **str** | | [optional]
78
**default_branch** | [**ProjectDefaultBranch**](ProjectDefaultBranch.md) | | [optional]
89
**description** | **str** | | [optional]
9-
**id** | **str** | | [optional]
1010
**name** | **str** | | [optional]
1111

1212
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/ProjectApi.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ No authorization required
6060
### HTTP request headers
6161

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

6565
### HTTP response details
6666
| Status code | Description | Response headers |
@@ -128,7 +128,7 @@ No authorization required
128128
### HTTP request headers
129129

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

133133
### HTTP response details
134134
| Status code | Description | Response headers |
@@ -191,7 +191,7 @@ No authorization required
191191
### HTTP request headers
192192

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

196196
### HTTP response details
197197
| Status code | Description | Response headers |

docs/Query.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6+
**id** | **str** | | [optional]
67
**type** | **str** | | [optional]
78
**owning_project** | [**BranchOwningProject**](BranchOwningProject.md) | | [optional]
8-
**id** | **str** | | [optional]
99
**scope** | [**list[ElementIdentity]**](ElementIdentity.md) | | [optional]
1010
**select** | **list[str]** | | [optional]
1111
**where** | [**Constraint**](Constraint.md) | | [optional]

docs/Relationship.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**type** | **str** | | [optional]
76
**id** | **str** | | [optional]
7+
**type** | **str** | | [optional]
88
**identifier** | **str** | | [optional]
99
**source** | [**list[Identified]**](Identified.md) | | [optional]
1010
**target** | [**list[Identified]**](Identified.md) | | [optional]

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 = "2021-05"
16+
VERSION = "2021-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__ = "2021-05"
17+
__version__ = "2021-06"
1818

1919
# import apis into sdk package
2020
from sysml_v2_api_client.api.branch_api import BranchApi

sysml_v2_api_client/api/branch_api.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def get_branches_by_project_with_http_info(self, project_id, **kwargs): # noqa:
142142
body_params = None
143143
# HTTP header `Accept`
144144
header_params['Accept'] = self.api_client.select_header_accept(
145-
['application/json']) # noqa: E501
145+
['application/json', 'application/ld+json']) # noqa: E501
146146

147147
# Authentication setting
148148
auth_settings = [] # noqa: E501
@@ -263,7 +263,7 @@ def get_branches_by_project_and_id_with_http_info(self, project_id, branch_id, *
263263
body_params = None
264264
# HTTP header `Accept`
265265
header_params['Accept'] = self.api_client.select_header_accept(
266-
['application/json']) # noqa: E501
266+
['application/json', 'application/ld+json']) # noqa: E501
267267

268268
# Authentication setting
269269
auth_settings = [] # noqa: E501
@@ -384,7 +384,7 @@ def post_branch_by_project_with_http_info(self, project_id, body, **kwargs): #
384384
body_params = local_var_params['body']
385385
# HTTP header `Accept`
386386
header_params['Accept'] = self.api_client.select_header_accept(
387-
['application/json']) # noqa: E501
387+
['application/json', 'application/ld+json']) # noqa: E501
388388

389389
# HTTP header `Content-Type`
390390
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501

sysml_v2_api_client/api/commit_api.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def get_commit_by_project_and_id_with_http_info(self, project_id, commit_id, **k
136136
body_params = None
137137
# HTTP header `Accept`
138138
header_params['Accept'] = self.api_client.select_header_accept(
139-
['application/json']) # noqa: E501
139+
['application/json', 'application/ld+json']) # noqa: E501
140140

141141
# Authentication setting
142142
auth_settings = [] # noqa: E501
@@ -263,7 +263,7 @@ def get_commits_by_project_with_http_info(self, project_id, **kwargs): # noqa:
263263
body_params = None
264264
# HTTP header `Accept`
265265
header_params['Accept'] = self.api_client.select_header_accept(
266-
['application/json']) # noqa: E501
266+
['application/json', 'application/ld+json']) # noqa: E501
267267

268268
# Authentication setting
269269
auth_settings = [] # noqa: E501
@@ -389,7 +389,7 @@ def post_commit_by_project_with_http_info(self, project_id, body, **kwargs): #
389389
body_params = local_var_params['body']
390390
# HTTP header `Accept`
391391
header_params['Accept'] = self.api_client.select_header_accept(
392-
['application/json']) # noqa: E501
392+
['application/json', 'application/ld+json']) # noqa: E501
393393

394394
# HTTP header `Content-Type`
395395
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501

sysml_v2_api_client/api/project_api.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def get_project_by_id_with_http_info(self, project_id, **kwargs): # noqa: E501
127127
body_params = None
128128
# HTTP header `Accept`
129129
header_params['Accept'] = self.api_client.select_header_accept(
130-
['application/json']) # noqa: E501
130+
['application/json', 'application/ld+json']) # noqa: E501
131131

132132
# Authentication setting
133133
auth_settings = [] # noqa: E501
@@ -245,7 +245,7 @@ def get_projects_with_http_info(self, **kwargs): # noqa: E501
245245
body_params = None
246246
# HTTP header `Accept`
247247
header_params['Accept'] = self.api_client.select_header_accept(
248-
['application/json']) # noqa: E501
248+
['application/json', 'application/ld+json']) # noqa: E501
249249

250250
# Authentication setting
251251
auth_settings = [] # noqa: E501
@@ -353,7 +353,7 @@ def post_project_with_http_info(self, **kwargs): # noqa: E501
353353
body_params = local_var_params['body']
354354
# HTTP header `Accept`
355355
header_params['Accept'] = self.api_client.select_header_accept(
356-
['application/json']) # noqa: E501
356+
['application/json', 'application/ld+json']) # noqa: E501
357357

358358
# HTTP header `Content-Type`
359359
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501

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/2021-05/python'
81+
self.user_agent = 'OpenAPI-Generator/2021-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
@@ -325,7 +325,7 @@ def to_debug_report(self):
325325
"OS: {env}\n"\
326326
"Python Version: {pyversion}\n"\
327327
"Version of the API: 1.0.0\n"\
328-
"SDK Package Version: 2021-05".\
328+
"SDK Package Version: 2021-06".\
329329
format(env=sys.platform, pyversion=sys.version)
330330

331331
def get_host_settings(self):

sysml_v2_api_client/models/branch.py

+27-27
Original file line numberDiff line numberDiff line change
@@ -33,45 +33,66 @@ class Branch(object):
3333
and the value is json key in definition.
3434
"""
3535
openapi_types = {
36+
'id': 'str',
3637
'type': 'str',
3738
'head': 'BranchHead',
3839
'owning_project': 'BranchOwningProject',
39-
'id': 'str',
4040
'name': 'str'
4141
}
4242

4343
attribute_map = {
44+
'id': '@id',
4445
'type': '@type',
4546
'head': 'head',
4647
'owning_project': 'owningProject',
47-
'id': 'id',
4848
'name': 'name'
4949
}
5050

51-
def __init__(self, type=None, head=None, owning_project=None, id=None, name=None, local_vars_configuration=None): # noqa: E501
51+
def __init__(self, id=None, type=None, head=None, owning_project=None, name=None, local_vars_configuration=None): # noqa: E501
5252
"""Branch - a model defined in OpenAPI""" # noqa: E501
5353
if local_vars_configuration is None:
5454
local_vars_configuration = Configuration()
5555
self.local_vars_configuration = local_vars_configuration
5656

57+
self._id = None
5758
self._type = None
5859
self._head = None
5960
self._owning_project = None
60-
self._id = None
6161
self._name = None
6262
self.discriminator = None
6363

64+
if id is not None:
65+
self.id = id
6466
if type is not None:
6567
self.type = type
6668
if head is not None:
6769
self.head = head
6870
if owning_project is not None:
6971
self.owning_project = owning_project
70-
if id is not None:
71-
self.id = id
7272
if name is not None:
7373
self.name = name
7474

75+
@property
76+
def id(self):
77+
"""Gets the id of this Branch. # noqa: E501
78+
79+
80+
:return: The id of this Branch. # noqa: E501
81+
:rtype: str
82+
"""
83+
return self._id
84+
85+
@id.setter
86+
def id(self, id):
87+
"""Sets the id of this Branch.
88+
89+
90+
:param id: The id of this Branch. # noqa: E501
91+
:type: str
92+
"""
93+
94+
self._id = id
95+
7596
@property
7697
def type(self):
7798
"""Gets the type of this Branch. # noqa: E501
@@ -141,27 +162,6 @@ def owning_project(self, owning_project):
141162

142163
self._owning_project = owning_project
143164

144-
@property
145-
def id(self):
146-
"""Gets the id of this Branch. # noqa: E501
147-
148-
149-
:return: The id of this Branch. # noqa: E501
150-
:rtype: str
151-
"""
152-
return self._id
153-
154-
@id.setter
155-
def id(self, id):
156-
"""Sets the id of this Branch.
157-
158-
159-
:param id: The id of this Branch. # noqa: E501
160-
:type: str
161-
"""
162-
163-
self._id = id
164-
165165
@property
166166
def name(self):
167167
"""Gets the name of this Branch. # noqa: E501

0 commit comments

Comments
 (0)