Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update openapi.json to v0.212.1 #229

Merged
merged 2 commits into from
Dec 22, 2023
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
25 changes: 24 additions & 1 deletion openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,14 @@
},
"showInCatalog" : {
"type" : "boolean"
},
"workspaceUIModeConfig" : {
"allOf" : [
{
"$ref" : "#/components/schemas/PluginWorkspaceUIModeConfig"
}
],
"nullable" : true
}
},
"required" : [
Expand Down Expand Up @@ -1473,6 +1481,21 @@
],
"type" : "object"
},
"PluginWorkspaceUIModeConfig" : {
"properties" : {
"enabled" : {
"type" : "boolean"
},
"fullscreen" : {
"type" : "boolean"
}
},
"required" : [
"enabled",
"fullscreen"
],
"type" : "object"
},
"PresignedUrl" : {
"properties" : {
"description" : {
Expand Down Expand Up @@ -1802,7 +1825,7 @@
"info" : {
"description" : "Connect to your Priceloop Data through our API.",
"title" : "Priceloop-API",
"version" : "v0.210.7"
"version" : "v0.212.1"
},
"openapi" : "3.0.3",
"paths" : {
Expand Down
2 changes: 2 additions & 0 deletions priceloop_api/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
from .plugin_tokens import PluginTokens
from .plugin_workspace_list import PluginWorkspaceList
from .plugin_workspace_state import PluginWorkspaceState
from .plugin_workspace_ui_mode_config import PluginWorkspaceUIModeConfig
from .presigned_url import PresignedUrl
from .publish_input import PublishInput
from .record_updated import RecordUpdated
Expand Down Expand Up @@ -216,6 +217,7 @@
"PluginTokens",
"PluginWorkspaceList",
"PluginWorkspaceState",
"PluginWorkspaceUIModeConfig",
"PresignedUrl",
"PublishInput",
"RecordUpdated",
Expand Down
28 changes: 27 additions & 1 deletion priceloop_api/models/plugin_definition.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
from typing import Any, Dict, List, Type, TypeVar, Union
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union

import attr

from ..models.plugin_requirement import PluginRequirement
from ..types import UNSET, Unset

if TYPE_CHECKING:
from ..models.plugin_workspace_ui_mode_config import PluginWorkspaceUIModeConfig


T = TypeVar("T", bound="PluginDefinition")


Expand All @@ -23,6 +27,7 @@ class PluginDefinition:
installation_description (Union[Unset, None, str]):
installation_typeform_id (Union[Unset, None, str]):
requirements (Union[Unset, List[PluginRequirement]]):
workspace_ui_mode_config (Union[Unset, None, PluginWorkspaceUIModeConfig]):
"""

description: str
Expand All @@ -36,6 +41,7 @@ class PluginDefinition:
installation_description: Union[Unset, None, str] = UNSET
installation_typeform_id: Union[Unset, None, str] = UNSET
requirements: Union[Unset, List[PluginRequirement]] = UNSET
workspace_ui_mode_config: Union[Unset, None, "PluginWorkspaceUIModeConfig"] = UNSET
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)

def to_dict(self) -> Dict[str, Any]:
Expand All @@ -57,6 +63,12 @@ def to_dict(self) -> Dict[str, Any]:

requirements.append(requirements_item)

workspace_ui_mode_config: Union[Unset, None, Dict[str, Any]] = UNSET
if not isinstance(self.workspace_ui_mode_config, Unset):
workspace_ui_mode_config = (
self.workspace_ui_mode_config.to_dict() if self.workspace_ui_mode_config else None
)

field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update(
Expand All @@ -81,11 +93,15 @@ def to_dict(self) -> Dict[str, Any]:
field_dict["installationTypeformId"] = installation_typeform_id
if requirements is not UNSET:
field_dict["requirements"] = requirements
if workspace_ui_mode_config is not UNSET:
field_dict["workspaceUIModeConfig"] = workspace_ui_mode_config

return field_dict

@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
from ..models.plugin_workspace_ui_mode_config import PluginWorkspaceUIModeConfig

d = src_dict.copy()
description = d.pop("description")

Expand Down Expand Up @@ -114,6 +130,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:

requirements.append(requirements_item)

_workspace_ui_mode_config = d.pop("workspaceUIModeConfig", UNSET)
workspace_ui_mode_config: Union[Unset, None, PluginWorkspaceUIModeConfig]
if _workspace_ui_mode_config is None:
workspace_ui_mode_config = None
elif isinstance(_workspace_ui_mode_config, Unset) or _workspace_ui_mode_config is None:
workspace_ui_mode_config = UNSET
else:
workspace_ui_mode_config = PluginWorkspaceUIModeConfig.from_dict(_workspace_ui_mode_config)

plugin_definition = cls(
description=description,
display_name=display_name,
Expand All @@ -126,6 +151,7 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
installation_description=installation_description,
installation_typeform_id=installation_typeform_id,
requirements=requirements,
workspace_ui_mode_config=workspace_ui_mode_config,
)

plugin_definition.additional_properties = d
Expand Down
64 changes: 64 additions & 0 deletions priceloop_api/models/plugin_workspace_ui_mode_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
from typing import Any, Dict, List, Type, TypeVar

import attr

T = TypeVar("T", bound="PluginWorkspaceUIModeConfig")


@attr.s(auto_attribs=True)
class PluginWorkspaceUIModeConfig:
"""
Attributes:
enabled (bool):
fullscreen (bool):
"""

enabled: bool
fullscreen: bool
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)

def to_dict(self) -> Dict[str, Any]:
enabled = self.enabled
fullscreen = self.fullscreen

field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update(
{
"enabled": enabled,
"fullscreen": fullscreen,
}
)

return field_dict

@classmethod
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
d = src_dict.copy()
enabled = d.pop("enabled")

fullscreen = d.pop("fullscreen")

plugin_workspace_ui_mode_config = cls(
enabled=enabled,
fullscreen=fullscreen,
)

plugin_workspace_ui_mode_config.additional_properties = d
return plugin_workspace_ui_mode_config

@property
def additional_keys(self) -> List[str]:
return list(self.additional_properties.keys())

def __getitem__(self, key: str) -> Any:
return self.additional_properties[key]

def __setitem__(self, key: str, value: Any) -> None:
self.additional_properties[key] = value

def __delitem__(self, key: str) -> None:
del self.additional_properties[key]

def __contains__(self, key: str) -> bool:
return key in self.additional_properties
2 changes: 1 addition & 1 deletion setup-pandas2.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

setup(
name="priceloop-api",
version="0.210.7-dev",
version="0.212.1-dev",
description="A client library for accessing Priceloop API",
author="Priceloop",
author_email="[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

setup(
name="priceloop-api",
version="0.210.7",
version="0.212.1",
description="A client library for accessing Priceloop API",
author="Priceloop",
author_email="[email protected]",
Expand Down