Skip to content

Commit

Permalink
Merge branch 'release/2021-06'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-gomes committed Jul 16, 2021
2 parents b58a2a6 + 327e908 commit 97248d0
Show file tree
Hide file tree
Showing 38 changed files with 268 additions and 268 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: 2021-05
- Package version: 2021-06
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down
2 changes: 1 addition & 1 deletion docs/Branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | | [optional]
**type** | **str** | | [optional]
**head** | [**BranchHead**](BranchHead.md) | | [optional]
**owning_project** | [**BranchOwningProject**](BranchOwningProject.md) | | [optional]
**id** | **str** | | [optional]
**name** | **str** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
6 changes: 3 additions & 3 deletions docs/BranchApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ No authorization required
### HTTP request headers

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

### HTTP response details
| Status code | Description | Response headers |
Expand Down Expand Up @@ -132,7 +132,7 @@ No authorization required
### HTTP request headers

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

### HTTP response details
| Status code | Description | Response headers |
Expand Down Expand Up @@ -198,7 +198,7 @@ No authorization required
### HTTP request headers

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

### HTTP response details
| Status code | Description | Response headers |
Expand Down
2 changes: 1 addition & 1 deletion docs/Commit.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | | [optional]
**type** | **str** | | [optional]
**change** | [**list[ElementVersion]**](ElementVersion.md) | | [optional]
**owning_project** | [**BranchOwningProject**](BranchOwningProject.md) | | [optional]
**id** | **str** | | [optional]
**previous_commit** | [**BranchHead**](BranchHead.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
6 changes: 3 additions & 3 deletions docs/CommitApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ No authorization required
### HTTP request headers

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

### HTTP response details
| Status code | Description | Response headers |
Expand Down Expand Up @@ -132,7 +132,7 @@ No authorization required
### HTTP request headers

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

### HTTP response details
| Status code | Description | Response headers |
Expand Down Expand Up @@ -200,7 +200,7 @@ No authorization required
### HTTP request headers

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

### HTTP response details
| Status code | Description | Response headers |
Expand Down
2 changes: 1 addition & 1 deletion docs/Element.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | **str** | | [optional]
**id** | **str** | | [optional]
**type** | **str** | | [optional]
**identifier** | **str** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/ElementIdentity.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | **str** | | [optional]
**id** | **str** | | [optional]
**type** | **str** | | [optional]

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

Expand Down
2 changes: 1 addition & 1 deletion docs/ElementVersion.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | | [optional]
**type** | **str** | | [optional]
**data** | [**Element**](Element.md) | | [optional]
**id** | **str** | | [optional]
**identity** | [**ElementIdentity**](ElementIdentity.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/Project.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | | [optional]
**type** | **str** | | [optional]
**default_branch** | [**ProjectDefaultBranch**](ProjectDefaultBranch.md) | | [optional]
**description** | **str** | | [optional]
**id** | **str** | | [optional]
**name** | **str** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
6 changes: 3 additions & 3 deletions docs/ProjectApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ No authorization required
### HTTP request headers

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

### HTTP response details
| Status code | Description | Response headers |
Expand Down Expand Up @@ -128,7 +128,7 @@ No authorization required
### HTTP request headers

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

### HTTP response details
| Status code | Description | Response headers |
Expand Down Expand Up @@ -191,7 +191,7 @@ No authorization required
### HTTP request headers

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

### HTTP response details
| Status code | Description | Response headers |
Expand Down
2 changes: 1 addition & 1 deletion docs/Query.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | | [optional]
**type** | **str** | | [optional]
**owning_project** | [**BranchOwningProject**](BranchOwningProject.md) | | [optional]
**id** | **str** | | [optional]
**scope** | [**list[ElementIdentity]**](ElementIdentity.md) | | [optional]
**select** | **list[str]** | | [optional]
**where** | [**Constraint**](Constraint.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/Relationship.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | **str** | | [optional]
**id** | **str** | | [optional]
**type** | **str** | | [optional]
**identifier** | **str** | | [optional]
**source** | [**list[Identified]**](Identified.md) | | [optional]
**target** | [**list[Identified]**](Identified.md) | | [optional]
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 = "2021-05"
VERSION = "2021-06"
# 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__ = "2021-05"
__version__ = "2021-06"

# import apis into sdk package
from sysml_v2_api_client.api.branch_api import BranchApi
Expand Down
6 changes: 3 additions & 3 deletions sysml_v2_api_client/api/branch_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def get_branches_by_project_with_http_info(self, project_id, **kwargs): # noqa:
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
['application/json', 'application/ld+json']) # noqa: E501

# Authentication setting
auth_settings = [] # noqa: E501
Expand Down Expand Up @@ -263,7 +263,7 @@ def get_branches_by_project_and_id_with_http_info(self, project_id, branch_id, *
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
['application/json', 'application/ld+json']) # noqa: E501

# Authentication setting
auth_settings = [] # noqa: E501
Expand Down Expand Up @@ -384,7 +384,7 @@ def post_branch_by_project_with_http_info(self, project_id, body, **kwargs): #
body_params = local_var_params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['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
Expand Down
6 changes: 3 additions & 3 deletions sysml_v2_api_client/api/commit_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def get_commit_by_project_and_id_with_http_info(self, project_id, commit_id, **k
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
['application/json', 'application/ld+json']) # noqa: E501

# Authentication setting
auth_settings = [] # noqa: E501
Expand Down Expand Up @@ -263,7 +263,7 @@ def get_commits_by_project_with_http_info(self, project_id, **kwargs): # noqa:
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
['application/json', 'application/ld+json']) # noqa: E501

# Authentication setting
auth_settings = [] # noqa: E501
Expand Down Expand Up @@ -389,7 +389,7 @@ def post_commit_by_project_with_http_info(self, project_id, body, **kwargs): #
body_params = local_var_params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['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
Expand Down
6 changes: 3 additions & 3 deletions sysml_v2_api_client/api/project_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def get_project_by_id_with_http_info(self, project_id, **kwargs): # noqa: E501
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
['application/json', 'application/ld+json']) # noqa: E501

# Authentication setting
auth_settings = [] # noqa: E501
Expand Down Expand Up @@ -245,7 +245,7 @@ def get_projects_with_http_info(self, **kwargs): # noqa: E501
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
['application/json', 'application/ld+json']) # noqa: E501

# Authentication setting
auth_settings = [] # noqa: E501
Expand Down Expand Up @@ -353,7 +353,7 @@ def post_project_with_http_info(self, **kwargs): # noqa: E501
body_params = local_var_params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['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
Expand Down
2 changes: 1 addition & 1 deletion sysml_v2_api_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/2021-05/python'
self.user_agent = 'OpenAPI-Generator/2021-06/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion sysml_v2_api_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2021-05".\
"SDK Package Version: 2021-06".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
54 changes: 27 additions & 27 deletions sysml_v2_api_client/models/branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,45 +33,66 @@ class Branch(object):
and the value is json key in definition.
"""
openapi_types = {
'id': 'str',
'type': 'str',
'head': 'BranchHead',
'owning_project': 'BranchOwningProject',
'id': 'str',
'name': 'str'
}

attribute_map = {
'id': '@id',
'type': '@type',
'head': 'head',
'owning_project': 'owningProject',
'id': 'id',
'name': 'name'
}

def __init__(self, type=None, head=None, owning_project=None, id=None, name=None, local_vars_configuration=None): # noqa: E501
def __init__(self, id=None, type=None, head=None, owning_project=None, name=None, local_vars_configuration=None): # noqa: E501
"""Branch - 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._id = None
self._type = None
self._head = None
self._owning_project = None
self._id = None
self._name = None
self.discriminator = None

if id is not None:
self.id = id
if type is not None:
self.type = type
if head is not None:
self.head = head
if owning_project is not None:
self.owning_project = owning_project
if id is not None:
self.id = id
if name is not None:
self.name = name

@property
def id(self):
"""Gets the id of this Branch. # noqa: E501
:return: The id of this Branch. # noqa: E501
:rtype: str
"""
return self._id

@id.setter
def id(self, id):
"""Sets the id of this Branch.
:param id: The id of this Branch. # noqa: E501
:type: str
"""

self._id = id

@property
def type(self):
"""Gets the type of this Branch. # noqa: E501
Expand Down Expand Up @@ -141,27 +162,6 @@ def owning_project(self, owning_project):

self._owning_project = owning_project

@property
def id(self):
"""Gets the id of this Branch. # noqa: E501
:return: The id of this Branch. # noqa: E501
:rtype: str
"""
return self._id

@id.setter
def id(self, id):
"""Sets the id of this Branch.
:param id: The id of this Branch. # noqa: E501
:type: str
"""

self._id = id

@property
def name(self):
"""Gets the name of this Branch. # noqa: E501
Expand Down
Loading

0 comments on commit 97248d0

Please sign in to comment.