Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 0.1.0
- Package version: 4.5.1
- Package version: 4.6.0
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

Expand Down Expand Up @@ -211,6 +211,7 @@ Class | Method | HTTP request | Description
- [UserVaultType](docs/UserVaultType.md)
- [ValidationError](docs/ValidationError.md)
- [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
- [VaultScope](docs/VaultScope.md)


<a id="documentation-for-authorization"></a>
Expand Down
4 changes: 2 additions & 2 deletions docs/EXTERNALApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ Name | Type | Description | Notes

Get All User Vault Items Endpoint

Retrieve all items of a specific type for the user.
Retrieve all items the user has access to (both USER and ORG scoped).

### Example

Expand Down Expand Up @@ -3441,7 +3441,7 @@ Name | Type | Description | Notes

Update User Vault Item Endpoint

Update or add multiple items of a specific type for the user.
Update or add an item of a specific type for the user.

### Example

Expand Down
1 change: 1 addition & 0 deletions docs/GetClusterResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | |
**cluster_name** | **str** | |
**display_name** | **str** | |
**region** | **str** | | [optional]

Expand Down
1 change: 1 addition & 0 deletions docs/UserVaultItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
**type** | [**UserVaultType**](UserVaultType.md) | |
**key** | **str** | |
**value** | **str** | | [optional]
**visibility** | [**VaultScope**](VaultScope.md) | | [optional]

## Example

Expand Down
12 changes: 12 additions & 0 deletions docs/VaultScope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# VaultScope


## Enum

* `USER` (value: `'USER'`)

* `ORG` (value: `'ORG'`)

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


3 changes: 2 additions & 1 deletion platform_api_python_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
""" # noqa: E501


__version__ = "4.5.1"
__version__ = "4.6.0"

# import apis into sdk package
from platform_api_python_client.api.external_api import EXTERNALApi
Expand Down Expand Up @@ -99,3 +99,4 @@
from platform_api_python_client.models.user_vault_type import UserVaultType
from platform_api_python_client.models.validation_error import ValidationError
from platform_api_python_client.models.validation_error_loc_inner import ValidationErrorLocInner
from platform_api_python_client.models.vault_scope import VaultScope
12 changes: 6 additions & 6 deletions platform_api_python_client/api/external_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3108,7 +3108,7 @@ def get_all_user_vault_items_endpoint_user_vault_get(
) -> ListUserVaultItemsResponse:
"""Get All User Vault Items Endpoint

Retrieve all items of a specific type for the user.
Retrieve all items the user has access to (both USER and ORG scoped).

:param type:
:type type: UserVaultType
Expand Down Expand Up @@ -3180,7 +3180,7 @@ def get_all_user_vault_items_endpoint_user_vault_get_with_http_info(
) -> ApiResponse[ListUserVaultItemsResponse]:
"""Get All User Vault Items Endpoint

Retrieve all items of a specific type for the user.
Retrieve all items the user has access to (both USER and ORG scoped).

:param type:
:type type: UserVaultType
Expand Down Expand Up @@ -3252,7 +3252,7 @@ def get_all_user_vault_items_endpoint_user_vault_get_without_preload_content(
) -> RESTResponseType:
"""Get All User Vault Items Endpoint

Retrieve all items of a specific type for the user.
Retrieve all items the user has access to (both USER and ORG scoped).

:param type:
:type type: UserVaultType
Expand Down Expand Up @@ -12078,7 +12078,7 @@ def update_user_vault_item_endpoint_user_vault_put(
) -> object:
"""Update User Vault Item Endpoint

Update or add multiple items of a specific type for the user.
Update or add an item of a specific type for the user.

:param user_vault_item: (required)
:type user_vault_item: UserVaultItem
Expand Down Expand Up @@ -12146,7 +12146,7 @@ def update_user_vault_item_endpoint_user_vault_put_with_http_info(
) -> ApiResponse[object]:
"""Update User Vault Item Endpoint

Update or add multiple items of a specific type for the user.
Update or add an item of a specific type for the user.

:param user_vault_item: (required)
:type user_vault_item: UserVaultItem
Expand Down Expand Up @@ -12214,7 +12214,7 @@ def update_user_vault_item_endpoint_user_vault_put_without_preload_content(
) -> RESTResponseType:
"""Update User Vault Item Endpoint

Update or add multiple items of a specific type for the user.
Update or add an item of a specific type for the user.

:param user_vault_item: (required)
:type user_vault_item: UserVaultItem
Expand Down
2 changes: 1 addition & 1 deletion platform_api_python_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/4.5.1/python'
self.user_agent = 'OpenAPI-Generator/4.6.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion platform_api_python_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 0.1.0\n"\
"SDK Package Version: 4.5.1".\
"SDK Package Version: 4.6.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
1 change: 1 addition & 0 deletions platform_api_python_client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,4 @@
from platform_api_python_client.models.user_vault_type import UserVaultType
from platform_api_python_client.models.validation_error import ValidationError
from platform_api_python_client.models.validation_error_loc_inner import ValidationErrorLocInner
from platform_api_python_client.models.vault_scope import VaultScope
4 changes: 3 additions & 1 deletion platform_api_python_client/models/get_cluster_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ class GetClusterResponse(BaseModel):
GetClusterResponse
""" # noqa: E501
id: StrictInt
cluster_name: StrictStr
display_name: StrictStr
region: Optional[StrictStr] = None
__properties: ClassVar[List[str]] = ["id", "display_name", "region"]
__properties: ClassVar[List[str]] = ["id", "cluster_name", "display_name", "region"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -88,6 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:

_obj = cls.model_validate({
"id": obj.get("id"),
"cluster_name": obj.get("cluster_name"),
"display_name": obj.get("display_name"),
"region": obj.get("region")
})
Expand Down
7 changes: 5 additions & 2 deletions platform_api_python_client/models/user_vault_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from pydantic import BaseModel, ConfigDict, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from platform_api_python_client.models.user_vault_type import UserVaultType
from platform_api_python_client.models.vault_scope import VaultScope
from typing import Optional, Set
from typing_extensions import Self

Expand All @@ -30,7 +31,8 @@ class UserVaultItem(BaseModel):
type: UserVaultType
key: StrictStr
value: Optional[StrictStr] = None
__properties: ClassVar[List[str]] = ["type", "key", "value"]
visibility: Optional[VaultScope] = None
__properties: ClassVar[List[str]] = ["type", "key", "value", "visibility"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -90,7 +92,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"type": obj.get("type"),
"key": obj.get("key"),
"value": obj.get("value")
"value": obj.get("value"),
"visibility": obj.get("visibility")
})
return _obj

Expand Down
37 changes: 37 additions & 0 deletions platform_api_python_client/models/vault_scope.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# coding: utf-8

"""
Platform External API

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 0.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self


class VaultScope(str, Enum):
"""
VaultScope
"""

"""
allowed enum values
"""
USER = 'USER'
ORG = 'ORG'

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of VaultScope from a JSON string"""
return cls(json.loads(json_str))


2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "platform_api_python_client"
version = "4.5.1"
version = "4.6.0"
description = "Platform External API"
authors = ["OpenAPI Generator Community <team@openapitools.org>"]
license = "NoLicense"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "platform-api-python-client"
VERSION = "4.5.1"
VERSION = "4.6.0"
PYTHON_REQUIRES = ">= 3.8"
REQUIRES = [
"urllib3 >= 1.25.3, < 3.0.0",
Expand Down
2 changes: 2 additions & 0 deletions test/test_get_cluster_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ def make_instance(self, include_optional) -> GetClusterResponse:
if include_optional:
return GetClusterResponse(
id = 56,
cluster_name = '',
display_name = '',
region = ''
)
else:
return GetClusterResponse(
id = 56,
cluster_name = '',
display_name = '',
)
"""
Expand Down
2 changes: 2 additions & 0 deletions test/test_list_get_cluster_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def make_instance(self, include_optional) -> ListGetClusterResponse:
results = [
platform_api_python_client.models.get_cluster_response.GetClusterResponse(
id = 56,
cluster_name = '',
display_name = '',
region = '', )
]
Expand All @@ -47,6 +48,7 @@ def make_instance(self, include_optional) -> ListGetClusterResponse:
results = [
platform_api_python_client.models.get_cluster_response.GetClusterResponse(
id = 56,
cluster_name = '',
display_name = '',
region = '', )
],
Expand Down
6 changes: 4 additions & 2 deletions test/test_list_user_vault_items_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def make_instance(self, include_optional) -> ListUserVaultItemsResponse:
platform_api_python_client.models.user_vault_item.UserVaultItem(
type = 'env_vars',
key = '',
value = '', )
value = '',
visibility = 'USER', )
]
)
else:
Expand All @@ -48,7 +49,8 @@ def make_instance(self, include_optional) -> ListUserVaultItemsResponse:
platform_api_python_client.models.user_vault_item.UserVaultItem(
type = 'env_vars',
key = '',
value = '', )
value = '',
visibility = 'USER', )
],
)
"""
Expand Down
3 changes: 2 additions & 1 deletion test/test_user_vault_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def make_instance(self, include_optional) -> UserVaultItem:
return UserVaultItem(
type = 'env_vars',
key = '',
value = ''
value = '',
visibility = 'USER'
)
else:
return UserVaultItem(
Expand Down
33 changes: 33 additions & 0 deletions test/test_vault_scope.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# coding: utf-8

"""
Platform External API

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 0.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


import unittest

from platform_api_python_client.models.vault_scope import VaultScope

class TestVaultScope(unittest.TestCase):
"""VaultScope unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def testVaultScope(self):
"""Test VaultScope"""
# inst = VaultScope()

if __name__ == '__main__':
unittest.main()