diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 68ecbba..0c04a9d 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -24,38 +24,11 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt pip install -r test-requirements.txt - - name: Test with pytest run: | pytest --cov=gridly - - release: - runs-on: ubuntu-latest - needs: build - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') - permissions: - contents: write - - steps: - - uses: actions/checkout@v4 - - - name: Get version - run: | - VER=$(cat VERSION) - echo "RELEASE_VERSION=$VER" >> $GITHUB_ENV - - - name: Github Release - uses: softprops/action-gh-release@v1 - id: create_release - with: - draft: false - prerelease: true - tag_name: v${{ env.RELEASE_VERSION }} - env: - GITHUB_TOKEN: ${{ github.token }} diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 6697d93..fe0dffe 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -72,7 +72,6 @@ docs/LqaModelApi.md docs/MergeBranchRequest.md docs/MergeCellConflict.md docs/MergeRecordConflict.md -docs/MergeRecordOption.md docs/MovePath.md docs/NumberFormat.md docs/PathApi.md @@ -209,7 +208,6 @@ gridly/models/lqa_model_sub_category_response.py gridly/models/merge_branch_request.py gridly/models/merge_cell_conflict.py gridly/models/merge_record_conflict.py -gridly/models/merge_record_option.py gridly/models/move_path.py gridly/models/number_format.py gridly/models/path_list.py diff --git a/README.md b/README.md index 3dd42e4..3c2b315 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Gridly API documentation This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 6.13.0 -- Package version: 1.5.0 +- Package version: 1.5.1 - Generator version: 7.14.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://www.gridly.com](https://www.gridly.com) @@ -262,7 +262,6 @@ Class | Method | HTTP request | Description - [MergeBranchRequest](docs/MergeBranchRequest.md) - [MergeCellConflict](docs/MergeCellConflict.md) - [MergeRecordConflict](docs/MergeRecordConflict.md) - - [MergeRecordOption](docs/MergeRecordOption.md) - [MovePath](docs/MovePath.md) - [NumberFormat](docs/NumberFormat.md) - [PathList](docs/PathList.md) diff --git a/VERSION b/VERSION index 3e1ad72..8e03717 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.0 \ No newline at end of file +1.5.1 \ No newline at end of file diff --git a/docs/Cell.md b/docs/Cell.md index a6ac220..3302a3d 100644 --- a/docs/Cell.md +++ b/docs/Cell.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **column_id** | **str** | | [optional] +**color** | **str** | | [optional] **dependency_status** | **str** | | [optional] **length_limit** | **int** | | [optional] **line_limit** | **int** | | [optional] diff --git a/docs/MergeRecordOption.md b/docs/MergeRecordOption.md deleted file mode 100644 index 48f6552..0000000 --- a/docs/MergeRecordOption.md +++ /dev/null @@ -1,16 +0,0 @@ -# MergeRecordOption - - -## Enum - -* `add` (value: `'add'`) - -* `update` (value: `'update'`) - -* `delete` (value: `'delete'`) - -* `override` (value: `'override'`) - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PathApi.md b/docs/PathApi.md index 376978b..6cf3aa8 100644 --- a/docs/PathApi.md +++ b/docs/PathApi.md @@ -90,7 +90,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | +**201** | Created | - | [[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) diff --git a/docs/SetCell.md b/docs/SetCell.md index c09c77b..3c9f18d 100644 --- a/docs/SetCell.md +++ b/docs/SetCell.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**color** | **str** | | [optional] **column_id** | **str** | | [optional] **dependency_status** | **str** | | [optional] **length_limit** | **int** | | [optional] diff --git a/docs/ViewApi.md b/docs/ViewApi.md index 1c675d4..43ffb99 100644 --- a/docs/ViewApi.md +++ b/docs/ViewApi.md @@ -90,7 +90,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | OK | - | +**201** | Created | - | [[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) diff --git a/gridly/__init__.py b/gridly/__init__.py index 75fb026..2757ec9 100644 --- a/gridly/__init__.py +++ b/gridly/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "1.5.0" +__version__ = "1.5.1" # Define package exports __all__ = [ @@ -107,7 +107,6 @@ "MergeBranchRequest", "MergeCellConflict", "MergeRecordConflict", - "MergeRecordOption", "MovePath", "NumberFormat", "PathList", @@ -242,7 +241,6 @@ from gridly.models.merge_branch_request import MergeBranchRequest as MergeBranchRequest from gridly.models.merge_cell_conflict import MergeCellConflict as MergeCellConflict from gridly.models.merge_record_conflict import MergeRecordConflict as MergeRecordConflict -from gridly.models.merge_record_option import MergeRecordOption as MergeRecordOption from gridly.models.move_path import MovePath as MovePath from gridly.models.number_format import NumberFormat as NumberFormat from gridly.models.path_list import PathList as PathList diff --git a/gridly/api/path_api.py b/gridly/api/path_api.py index aef4f8c..07c474c 100644 --- a/gridly/api/path_api.py +++ b/gridly/api/path_api.py @@ -104,7 +104,7 @@ def create( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PathList", + '201': "PathList", } response_data = self.api_client.call_api( *_param, @@ -175,7 +175,7 @@ def create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PathList", + '201': "PathList", } response_data = self.api_client.call_api( *_param, @@ -246,7 +246,7 @@ def create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PathList", + '201': "PathList", } response_data = self.api_client.call_api( *_param, diff --git a/gridly/api_client.py b/gridly/api_client.py index a54437a..a02f8a3 100644 --- a/gridly/api_client.py +++ b/gridly/api_client.py @@ -91,7 +91,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Gridly Python SDK 1.5.0' + self.user_agent = 'Gridly Python SDK 1.5.1' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/gridly/configuration.py b/gridly/configuration.py index 01c96dd..99d7a86 100644 --- a/gridly/configuration.py +++ b/gridly/configuration.py @@ -532,7 +532,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 6.13.0\n"\ - "SDK Package Version: 1.5.0".\ + "SDK Package Version: 1.5.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/gridly/models/__init__.py b/gridly/models/__init__.py index df3ab09..ac80fb3 100644 --- a/gridly/models/__init__.py +++ b/gridly/models/__init__.py @@ -76,7 +76,6 @@ from gridly.models.merge_branch_request import MergeBranchRequest from gridly.models.merge_cell_conflict import MergeCellConflict from gridly.models.merge_record_conflict import MergeRecordConflict -from gridly.models.merge_record_option import MergeRecordOption from gridly.models.move_path import MovePath from gridly.models.number_format import NumberFormat from gridly.models.path_list import PathList diff --git a/gridly/models/cell.py b/gridly/models/cell.py index 323e163..af5f011 100644 --- a/gridly/models/cell.py +++ b/gridly/models/cell.py @@ -28,6 +28,7 @@ class Cell(BaseModel): Cell """ # noqa: E501 column_id: Optional[StrictStr] = Field(default=None, alias="columnId") + color: Optional[StrictStr] = None dependency_status: Optional[StrictStr] = Field(default=None, alias="dependencyStatus") length_limit: Optional[StrictInt] = Field(default=None, alias="lengthLimit") line_limit: Optional[StrictInt] = Field(default=None, alias="lineLimit") @@ -37,7 +38,7 @@ class Cell(BaseModel): source_status: Optional[StrictStr] = Field(default=None, alias="sourceStatus") tm: Optional[StrictBool] = None value: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["columnId", "dependencyStatus", "lengthLimit", "lineLimit", "mt", "readOnly", "referencedIds", "sourceStatus", "tm", "value"] + __properties: ClassVar[List[str]] = ["columnId", "color", "dependencyStatus", "lengthLimit", "lineLimit", "mt", "readOnly", "referencedIds", "sourceStatus", "tm", "value"] @field_validator('dependency_status') def dependency_status_validate_enum(cls, value): @@ -111,6 +112,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "columnId": obj.get("columnId"), + "color": obj.get("color"), "dependencyStatus": obj.get("dependencyStatus"), "lengthLimit": obj.get("lengthLimit"), "lineLimit": obj.get("lineLimit"), diff --git a/gridly/models/set_cell.py b/gridly/models/set_cell.py index c70c46f..9bd02f5 100644 --- a/gridly/models/set_cell.py +++ b/gridly/models/set_cell.py @@ -27,13 +27,14 @@ class SetCell(BaseModel): """ SetCell """ # noqa: E501 + color: Optional[StrictStr] = None column_id: Optional[StrictStr] = Field(default=None, alias="columnId") dependency_status: Optional[StrictStr] = Field(default=None, alias="dependencyStatus") length_limit: Optional[StrictInt] = Field(default=None, alias="lengthLimit") referenced_ids: Optional[List[StrictStr]] = Field(default=None, alias="referencedIds") source_status: Optional[StrictStr] = Field(default=None, alias="sourceStatus") value: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["columnId", "dependencyStatus", "lengthLimit", "referencedIds", "sourceStatus", "value"] + __properties: ClassVar[List[str]] = ["color", "columnId", "dependencyStatus", "lengthLimit", "referencedIds", "sourceStatus", "value"] @field_validator('dependency_status') def dependency_status_validate_enum(cls, value): @@ -106,6 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "color": obj.get("color"), "columnId": obj.get("columnId"), "dependencyStatus": obj.get("dependencyStatus"), "lengthLimit": obj.get("lengthLimit"), diff --git a/pyproject.toml b/pyproject.toml index 5fbf026..fad5b57 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "gridly" -version = "1.5.0" +version = "1.5.1" description = "Gridly API" authors = [ {name = "Gridly Team",email = "support@gridly.com"}, diff --git a/setup.py b/setup.py index 4c2df13..9960697 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "gridly" -VERSION = "1.5.0" +VERSION = "1.5.1" PYTHON_REQUIRES = ">= 3.9" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0",