Skip to content

Commit c9bcc2e

Browse files
authored
Merge pull request #3 from Systems-Modeling/release/2021-03
ST5AS-126 feat: Regenerate for 2021-03
2 parents a4f9f19 + e30ae7a commit c9bcc2e

18 files changed

+195
-39
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-09
7+
- Package version: 2021-03
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99

1010
## Requirements.

docs/CommitApi.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ No authorization required
7777
[[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)
7878

7979
# **get_commits_by_project**
80-
> list[Commit] get_commits_by_project(project_id)
80+
> list[Commit] get_commits_by_project(project_id, page_after=page_after, page_before=page_before, page_size=page_size)
8181
8282
Get commits by project
8383

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

105108
try:
106109
# Get commits by project
107-
api_response = api_instance.get_commits_by_project(project_id)
110+
api_response = api_instance.get_commits_by_project(project_id, page_after=page_after, page_before=page_before, page_size=page_size)
108111
pprint(api_response)
109112
except ApiException as e:
110113
print("Exception when calling CommitApi->get_commits_by_project: %s\n" % e)
@@ -115,6 +118,9 @@ with sysml_v2_api_client.ApiClient() as api_client:
115118
Name | Type | Description | Notes
116119
------------- | ------------- | ------------- | -------------
117120
**project_id** | [**str**](.md)| ID of the project |
121+
**page_after** | **str**| Page after | [optional]
122+
**page_before** | **str**| Page before | [optional]
123+
**page_size** | **int**| Page size | [optional]
118124

119125
### Return type
120126

docs/ElementApi.md

+19-7
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ No authorization required
6464
### HTTP request headers
6565

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

6969
### HTTP response details
7070
| Status code | Description | Response headers |
@@ -78,7 +78,7 @@ No authorization required
7878
[[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)
7979

8080
# **get_elements_by_project_commit**
81-
> list[Element] get_elements_by_project_commit(project_id, commit_id)
81+
> list[Element] get_elements_by_project_commit(project_id, commit_id, page_after=page_after, page_before=page_before, page_size=page_size)
8282
8383
Get elements by project and commit
8484

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

107110
try:
108111
# Get elements by project and commit
109-
api_response = api_instance.get_elements_by_project_commit(project_id, commit_id)
112+
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)
110113
pprint(api_response)
111114
except ApiException as e:
112115
print("Exception when calling ElementApi->get_elements_by_project_commit: %s\n" % e)
@@ -118,6 +121,9 @@ Name | Type | Description | Notes
118121
------------- | ------------- | ------------- | -------------
119122
**project_id** | [**str**](.md)| ID of the project |
120123
**commit_id** | [**str**](.md)| ID of the commit |
124+
**page_after** | **str**| Page after | [optional]
125+
**page_before** | **str**| Page before | [optional]
126+
**page_size** | **int**| Page size | [optional]
121127

122128
### Return type
123129

@@ -130,7 +136,7 @@ No authorization required
130136
### HTTP request headers
131137

132138
- **Content-Type**: Not defined
133-
- **Accept**: application/ld+json, application/json
139+
- **Accept**: application/json, application/ld+json
134140

135141
### HTTP response details
136142
| Status code | Description | Response headers |
@@ -144,7 +150,7 @@ No authorization required
144150
[[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)
145151

146152
# **get_roots_by_project_commit**
147-
> list[Element] get_roots_by_project_commit(project_id, commit_id)
153+
> list[Element] get_roots_by_project_commit(project_id, commit_id, page_after=page_after, page_before=page_before, page_size=page_size)
148154
149155
Get root elements by project and commit
150156

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

173182
try:
174183
# Get root elements by project and commit
175-
api_response = api_instance.get_roots_by_project_commit(project_id, commit_id)
184+
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)
176185
pprint(api_response)
177186
except ApiException as e:
178187
print("Exception when calling ElementApi->get_roots_by_project_commit: %s\n" % e)
@@ -184,6 +193,9 @@ Name | Type | Description | Notes
184193
------------- | ------------- | ------------- | -------------
185194
**project_id** | [**str**](.md)| ID of the project |
186195
**commit_id** | [**str**](.md)| ID of the commit |
196+
**page_after** | **str**| Page after | [optional]
197+
**page_before** | **str**| Page before | [optional]
198+
**page_size** | **int**| Page size | [optional]
187199

188200
### Return type
189201

@@ -196,7 +208,7 @@ No authorization required
196208
### HTTP request headers
197209

198210
- **Content-Type**: Not defined
199-
- **Accept**: application/ld+json, application/json
211+
- **Accept**: application/json, application/ld+json
200212

201213
### HTTP response details
202214
| Status code | Description | Response headers |

docs/Project.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**type** | **str** | | [optional]
7+
**description** | **str** | | [optional]
78
**id** | **str** | | [optional]
89
**name** | **str** | | [optional]
910

docs/ProjectApi.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ No authorization required
7474
[[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)
7575

7676
# **get_projects**
77-
> list[Project] get_projects()
77+
> list[Project] get_projects(page_after=page_after, page_before=page_before, page_size=page_size)
7878
7979
Get projects
8080

@@ -97,17 +97,25 @@ configuration = sysml_v2_api_client.Configuration(
9797
with sysml_v2_api_client.ApiClient() as api_client:
9898
# Create an instance of the API class
9999
api_instance = sysml_v2_api_client.ProjectApi(api_client)
100-
100+
page_after = 'page_after_example' # str | Page after (optional)
101+
page_before = 'page_before_example' # str | Page before (optional)
102+
page_size = 56 # int | Page size (optional)
103+
101104
try:
102105
# Get projects
103-
api_response = api_instance.get_projects()
106+
api_response = api_instance.get_projects(page_after=page_after, page_before=page_before, page_size=page_size)
104107
pprint(api_response)
105108
except ApiException as e:
106109
print("Exception when calling ProjectApi->get_projects: %s\n" % e)
107110
```
108111

109112
### Parameters
110-
This endpoint does not need any parameter.
113+
114+
Name | Type | Description | Notes
115+
------------- | ------------- | ------------- | -------------
116+
**page_after** | **str**| Page after | [optional]
117+
**page_before** | **str**| Page before | [optional]
118+
**page_size** | **int**| Page size | [optional]
111119

112120
### Return type
113121

docs/QueryApi.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Method | HTTP request | Description
1313

1414

1515
# **get_queries_by_project**
16-
> list[Query] get_queries_by_project(project_id)
16+
> list[Query] get_queries_by_project(project_id, page_after=page_after, page_before=page_before, page_size=page_size)
1717
1818
Get queries by project
1919

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

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

5561
### Return type
5662

@@ -197,7 +203,7 @@ No authorization required
197203
### HTTP request headers
198204

199205
- **Content-Type**: application/json
200-
- **Accept**: application/ld+json, application/json
206+
- **Accept**: application/json, application/ld+json
201207

202208
### HTTP response details
203209
| Status code | Description | Response headers |
@@ -265,7 +271,7 @@ No authorization required
265271
### HTTP request headers
266272

267273
- **Content-Type**: Not defined
268-
- **Accept**: application/ld+json, application/json
274+
- **Accept**: application/json, application/ld+json
269275

270276
### HTTP response details
271277
| Status code | Description | Response headers |
@@ -335,7 +341,7 @@ No authorization required
335341
### HTTP request headers
336342

337343
- **Content-Type**: application/json
338-
- **Accept**: application/ld+json, application/json
344+
- **Accept**: application/json, application/ld+json
339345

340346
### HTTP response details
341347
| Status code | Description | Response headers |

docs/RelationshipApi.md

+9-3
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, direction=direction)
11+
> 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)
1212
1313
Get relationships by project, commit, and related element
1414

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

3942
try:
4043
# Get relationships by project, commit, and related element
41-
api_response = api_instance.get_relationships_by_project_commit_related_element(project_id, commit_id, related_element_id, direction=direction)
44+
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)
4245
pprint(api_response)
4346
except ApiException as e:
4447
print("Exception when calling RelationshipApi->get_relationships_by_project_commit_related_element: %s\n" % e)
@@ -52,6 +55,9 @@ Name | Type | Description | Notes
5255
**commit_id** | [**str**](.md)| ID of the commit |
5356
**related_element_id** | [**str**](.md)| ID of the related element |
5457
**direction** | **str**| Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element | [optional] [default to 'both']
58+
**page_after** | **str**| Page after | [optional]
59+
**page_before** | **str**| Page before | [optional]
60+
**page_size** | **int**| Page size | [optional]
5561

5662
### Return type
5763

@@ -64,7 +70,7 @@ No authorization required
6470
### HTTP request headers
6571

6672
- **Content-Type**: Not defined
67-
- **Accept**: application/ld+json, application/json
73+
- **Accept**: application/json, application/ld+json
6874

6975
### HTTP response details
7076
| Status code | Description | Response headers |

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-09"
16+
VERSION = "2021-03"
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-09"
17+
__version__ = "2021-03"
1818

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

sysml_v2_api_client/api/commit_api.py

+16-1
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ def get_commits_by_project(self, project_id, **kwargs): # noqa: E501
167167
168168
:param async_req bool: execute request asynchronously
169169
:param str project_id: ID of the project (required)
170+
:param str page_after: Page after
171+
:param str page_before: Page before
172+
:param int page_size: Page size
170173
:param _preload_content: if False, the urllib3.HTTPResponse object will
171174
be returned without reading/decoding response
172175
data. Default is True.
@@ -191,6 +194,9 @@ def get_commits_by_project_with_http_info(self, project_id, **kwargs): # noqa:
191194
192195
:param async_req bool: execute request asynchronously
193196
:param str project_id: ID of the project (required)
197+
:param str page_after: Page after
198+
:param str page_before: Page before
199+
:param int page_size: Page size
194200
:param _return_http_data_only: response data without head status code
195201
and headers
196202
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -208,7 +214,10 @@ def get_commits_by_project_with_http_info(self, project_id, **kwargs): # noqa:
208214
local_var_params = locals()
209215

210216
all_params = [
211-
'project_id'
217+
'project_id',
218+
'page_after',
219+
'page_before',
220+
'page_size'
212221
]
213222
all_params.extend(
214223
[
@@ -239,6 +248,12 @@ def get_commits_by_project_with_http_info(self, project_id, **kwargs): # noqa:
239248
path_params['projectId'] = local_var_params['project_id'] # noqa: E501
240249

241250
query_params = []
251+
if 'page_after' in local_var_params and local_var_params['page_after'] is not None: # noqa: E501
252+
query_params.append(('page[after]', local_var_params['page_after'])) # noqa: E501
253+
if 'page_before' in local_var_params and local_var_params['page_before'] is not None: # noqa: E501
254+
query_params.append(('page[before]', local_var_params['page_before'])) # noqa: E501
255+
if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501
256+
query_params.append(('page[size]', local_var_params['page_size'])) # noqa: E501
242257

243258
header_params = {}
244259

0 commit comments

Comments
 (0)