diff --git a/README.md b/README.md index 3683bc7..abafb1d 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/docs/CommitApi.md b/docs/CommitApi.md index cb5bb31..63b6686 100644 --- a/docs/CommitApi.md +++ b/docs/CommitApi.md @@ -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 @@ -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) @@ -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 diff --git a/docs/ElementApi.md b/docs/ElementApi.md index 58a9e1a..be6c2c0 100644 --- a/docs/ElementApi.md +++ b/docs/ElementApi.md @@ -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 | @@ -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 @@ -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) @@ -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 @@ -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 | @@ -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 @@ -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) @@ -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 @@ -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 | diff --git a/docs/Project.md b/docs/Project.md index 4545040..a9cba19 100644 --- a/docs/Project.md +++ b/docs/Project.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str** | | [optional] +**description** | **str** | | [optional] **id** | **str** | | [optional] **name** | **str** | | [optional] diff --git a/docs/ProjectApi.md b/docs/ProjectApi.md index eb78807..32f3251 100644 --- a/docs/ProjectApi.md +++ b/docs/ProjectApi.md @@ -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 @@ -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 diff --git a/docs/QueryApi.md b/docs/QueryApi.md index ac65d97..6d0524b 100644 --- a/docs/QueryApi.md +++ b/docs/QueryApi.md @@ -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 @@ -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) @@ -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 @@ -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 | @@ -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 | @@ -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 | diff --git a/docs/RelationshipApi.md b/docs/RelationshipApi.md index 58ea2f5..a8f3db8 100644 --- a/docs/RelationshipApi.md +++ b/docs/RelationshipApi.md @@ -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 @@ -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) @@ -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 @@ -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 | diff --git a/setup.py b/setup.py index 65f4012..2f5fe94 100644 --- a/setup.py +++ b/setup.py @@ -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 diff --git a/sysml_v2_api_client/__init__.py b/sysml_v2_api_client/__init__.py index dac528d..4f377a3 100644 --- a/sysml_v2_api_client/__init__.py +++ b/sysml_v2_api_client/__init__.py @@ -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 diff --git a/sysml_v2_api_client/api/commit_api.py b/sysml_v2_api_client/api/commit_api.py index cb2f52c..3513acb 100644 --- a/sysml_v2_api_client/api/commit_api.py +++ b/sysml_v2_api_client/api/commit_api.py @@ -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. @@ -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 @@ -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( [ @@ -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 = {} diff --git a/sysml_v2_api_client/api/element_api.py b/sysml_v2_api_client/api/element_api.py index deef476..c06d2ea 100644 --- a/sysml_v2_api_client/api/element_api.py +++ b/sysml_v2_api_client/api/element_api.py @@ -145,7 +145,7 @@ def get_element_by_project_commit_id_with_http_info(self, project_id, commit_id, body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/ld+json', 'application/json']) # noqa: E501 + ['application/json', 'application/ld+json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -177,6 +177,9 @@ def get_elements_by_project_commit(self, project_id, commit_id, **kwargs): # no :param async_req bool: execute request asynchronously :param str project_id: ID of the project (required) :param str commit_id: ID of the commit (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. @@ -202,6 +205,9 @@ def get_elements_by_project_commit_with_http_info(self, project_id, commit_id, * :param async_req bool: execute request asynchronously :param str project_id: ID of the project (required) :param str commit_id: ID of the commit (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 @@ -220,7 +226,10 @@ def get_elements_by_project_commit_with_http_info(self, project_id, commit_id, * all_params = [ 'project_id', - 'commit_id' + 'commit_id', + 'page_after', + 'page_before', + 'page_size' ] all_params.extend( [ @@ -257,6 +266,12 @@ def get_elements_by_project_commit_with_http_info(self, project_id, commit_id, * path_params['commitId'] = local_var_params['commit_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 = {} @@ -266,7 +281,7 @@ def get_elements_by_project_commit_with_http_info(self, project_id, commit_id, * body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/ld+json', 'application/json']) # noqa: E501 + ['application/json', 'application/ld+json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -298,6 +313,9 @@ def get_roots_by_project_commit(self, project_id, commit_id, **kwargs): # noqa: :param async_req bool: execute request asynchronously :param str project_id: ID of the project (required) :param str commit_id: ID of the commit (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. @@ -323,6 +341,9 @@ def get_roots_by_project_commit_with_http_info(self, project_id, commit_id, **kw :param async_req bool: execute request asynchronously :param str project_id: ID of the project (required) :param str commit_id: ID of the commit (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 @@ -341,7 +362,10 @@ def get_roots_by_project_commit_with_http_info(self, project_id, commit_id, **kw all_params = [ 'project_id', - 'commit_id' + 'commit_id', + 'page_after', + 'page_before', + 'page_size' ] all_params.extend( [ @@ -378,6 +402,12 @@ def get_roots_by_project_commit_with_http_info(self, project_id, commit_id, **kw path_params['commitId'] = local_var_params['commit_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 = {} @@ -387,7 +417,7 @@ def get_roots_by_project_commit_with_http_info(self, project_id, commit_id, **kw body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/ld+json', 'application/json']) # noqa: E501 + ['application/json', 'application/ld+json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 diff --git a/sysml_v2_api_client/api/project_api.py b/sysml_v2_api_client/api/project_api.py index 84b4fc9..e6711d2 100644 --- a/sysml_v2_api_client/api/project_api.py +++ b/sysml_v2_api_client/api/project_api.py @@ -157,6 +157,9 @@ def get_projects(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously + :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. @@ -180,6 +183,9 @@ def get_projects_with_http_info(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously + :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 @@ -197,6 +203,9 @@ def get_projects_with_http_info(self, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ + 'page_after', + 'page_before', + 'page_size' ] all_params.extend( [ @@ -221,6 +230,12 @@ def get_projects_with_http_info(self, **kwargs): # noqa: E501 path_params = {} 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 = {} diff --git a/sysml_v2_api_client/api/query_api.py b/sysml_v2_api_client/api/query_api.py index edcc578..3ca2e0b 100644 --- a/sysml_v2_api_client/api/query_api.py +++ b/sysml_v2_api_client/api/query_api.py @@ -46,6 +46,9 @@ def get_queries_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. @@ -70,6 +73,9 @@ def get_queries_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 @@ -87,7 +93,10 @@ def get_queries_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( [ @@ -118,6 +127,12 @@ def get_queries_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 = {} @@ -374,7 +389,7 @@ def get_query_results_by_project_id_query_with_http_info(self, project_id, body, body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/ld+json', 'application/json']) # noqa: E501 + ['application/json', 'application/ld+json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 @@ -504,7 +519,7 @@ def get_query_results_by_project_id_query_id_with_http_info(self, project_id, qu body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/ld+json', 'application/json']) # noqa: E501 + ['application/json', 'application/ld+json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 @@ -632,7 +647,7 @@ def get_query_results_by_project_id_query_post_with_http_info(self, project_id, body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/ld+json', 'application/json']) # noqa: E501 + ['application/json', 'application/ld+json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 diff --git a/sysml_v2_api_client/api/relationship_api.py b/sysml_v2_api_client/api/relationship_api.py index dd4f8ff..2562643 100644 --- a/sysml_v2_api_client/api/relationship_api.py +++ b/sysml_v2_api_client/api/relationship_api.py @@ -49,6 +49,9 @@ def get_relationships_by_project_commit_related_element(self, project_id, commit :param str commit_id: ID of the commit (required) :param str related_element_id: ID of the related element (required) :param str direction: Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element + :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. @@ -76,6 +79,9 @@ def get_relationships_by_project_commit_related_element_with_http_info(self, pro :param str commit_id: ID of the commit (required) :param str related_element_id: ID of the related element (required) :param str direction: Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element + :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 @@ -96,7 +102,10 @@ def get_relationships_by_project_commit_related_element_with_http_info(self, pro 'project_id', 'commit_id', 'related_element_id', - 'direction' + 'direction', + 'page_after', + 'page_before', + 'page_size' ] all_params.extend( [ @@ -141,6 +150,12 @@ def get_relationships_by_project_commit_related_element_with_http_info(self, pro query_params = [] if 'direction' in local_var_params and local_var_params['direction'] is not None: # noqa: E501 query_params.append(('direction', local_var_params['direction'])) # noqa: E501 + 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 = {} @@ -150,7 +165,7 @@ def get_relationships_by_project_commit_related_element_with_http_info(self, pro body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['application/ld+json', 'application/json']) # noqa: E501 + ['application/json', 'application/ld+json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 diff --git a/sysml_v2_api_client/api_client.py b/sysml_v2_api_client/api_client.py index a8dec0b..efd5b7a 100644 --- a/sysml_v2_api_client/api_client.py +++ b/sysml_v2_api_client/api_client.py @@ -78,7 +78,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2020-09/python' + self.user_agent = 'OpenAPI-Generator/2021-03/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/sysml_v2_api_client/configuration.py b/sysml_v2_api_client/configuration.py index 30e0e16..bc259fb 100644 --- a/sysml_v2_api_client/configuration.py +++ b/sysml_v2_api_client/configuration.py @@ -325,7 +325,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.0.0\n"\ - "SDK Package Version: 2020-09".\ + "SDK Package Version: 2021-03".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sysml_v2_api_client/models/project.py b/sysml_v2_api_client/models/project.py index 4f8e9c8..aac60da 100644 --- a/sysml_v2_api_client/models/project.py +++ b/sysml_v2_api_client/models/project.py @@ -34,29 +34,34 @@ class Project(object): """ openapi_types = { 'type': 'str', + 'description': 'str', 'id': 'str', 'name': 'str' } attribute_map = { 'type': '@type', + 'description': 'description', 'id': 'id', 'name': 'name' } - def __init__(self, type=None, id=None, name=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, type=None, description=None, id=None, name=None, local_vars_configuration=None): # noqa: E501 """Project - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._type = None + self._description = None self._id = None self._name = None self.discriminator = None if type is not None: self.type = type + if description is not None: + self.description = description if id is not None: self.id = id if name is not None: @@ -89,6 +94,27 @@ def type(self, type): self._type = type + @property + def description(self): + """Gets the description of this Project. # noqa: E501 + + + :return: The description of this Project. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this Project. + + + :param description: The description of this Project. # noqa: E501 + :type: str + """ + + self._description = description + @property def id(self): """Gets the id of this Project. # noqa: E501 diff --git a/test/test_project.py b/test/test_project.py index 3d9bb91..bfe91f0 100644 --- a/test/test_project.py +++ b/test/test_project.py @@ -37,6 +37,7 @@ def make_instance(self, include_optional): if include_optional : return Project( type = 'Project', + description = '0', id = '0', name = '0' )