diff --git a/src/spaceone/dashboard/model/private_widget/database.py b/src/spaceone/dashboard/model/private_widget/database.py index acadb07..db72ba5 100644 --- a/src/spaceone/dashboard/model/private_widget/database.py +++ b/src/spaceone/dashboard/model/private_widget/database.py @@ -8,6 +8,7 @@ class PrivateWidget(MongoModel): name = StringField(max_length=100) description = StringField(default=None) widget_type = StringField(max_length=40, default="NONE") + size = StringField(default=None, null=True) options = DictField(default=None, null=True) tags = DictField(default=None) data_table_id = StringField(max_length=40, default=None, null=True) @@ -22,6 +23,7 @@ class PrivateWidget(MongoModel): "name", "description", "widget_type", + "size", "options", "tags", "data_table_id", diff --git a/src/spaceone/dashboard/model/private_widget/request.py b/src/spaceone/dashboard/model/private_widget/request.py index 9e9b33a..1d8cf89 100644 --- a/src/spaceone/dashboard/model/private_widget/request.py +++ b/src/spaceone/dashboard/model/private_widget/request.py @@ -16,6 +16,7 @@ class PrivateWidgetCreateRequest(BaseModel): name: Union[str, None] = None description: Union[str, None] = None widget_type: Union[str, None] = None + size: Union[str, None] = None options: Union[dict, None] = None tags: Union[dict, None] = None user_id: str @@ -27,6 +28,7 @@ class PrivateWidgetUpdateRequest(BaseModel): name: Union[str, None] = None description: Union[str, None] = None widget_type: Union[str, None] = None + size: Union[str, None] = None options: Union[dict, None] = None data_table_id: Union[str, None] = None tags: Union[dict, None] = None diff --git a/src/spaceone/dashboard/model/private_widget/response.py b/src/spaceone/dashboard/model/private_widget/response.py index 324be9a..6f19096 100644 --- a/src/spaceone/dashboard/model/private_widget/response.py +++ b/src/spaceone/dashboard/model/private_widget/response.py @@ -11,6 +11,7 @@ class PrivateWidgetResponse(BaseModel): name: Union[str, None] = None description: Union[str, None] = None widget_type: Union[str, None] = None + size: Union[str, None] = None options: Union[dict, None] = None tags: Union[dict, None] = None data_table_id: Union[str, None] = None diff --git a/src/spaceone/dashboard/model/public_widget/database.py b/src/spaceone/dashboard/model/public_widget/database.py index a0ccc2a..453c561 100644 --- a/src/spaceone/dashboard/model/public_widget/database.py +++ b/src/spaceone/dashboard/model/public_widget/database.py @@ -8,6 +8,7 @@ class PublicWidget(MongoModel): name = StringField(max_length=100) description = StringField(default=None) widget_type = StringField(max_length=40, default="NONE") + size = StringField(default=None, null=True) options = DictField(default=None, null=True) tags = DictField(default=None) data_table_id = StringField(max_length=40, default=None, null=True) @@ -26,6 +27,7 @@ class PublicWidget(MongoModel): "name", "description", "widget_type", + "size", "options", "tags", "data_table_id", diff --git a/src/spaceone/dashboard/model/public_widget/request.py b/src/spaceone/dashboard/model/public_widget/request.py index 42b62dc..8c5f48a 100644 --- a/src/spaceone/dashboard/model/public_widget/request.py +++ b/src/spaceone/dashboard/model/public_widget/request.py @@ -16,6 +16,7 @@ class PublicWidgetCreateRequest(BaseModel): name: Union[str, None] = None description: Union[str, None] = None widget_type: Union[str, None] = None + size: Union[str, None] = None options: Union[dict, None] = None tags: Union[dict, None] = None workspace_id: Union[str, None] = None @@ -28,6 +29,7 @@ class PublicWidgetUpdateRequest(BaseModel): name: Union[str, None] = None description: Union[str, None] = None widget_type: Union[str, None] = None + size: Union[str, None] = None options: Union[dict, None] = None data_table_id: Union[str, None] = None tags: Union[dict, None] = None diff --git a/src/spaceone/dashboard/model/public_widget/response.py b/src/spaceone/dashboard/model/public_widget/response.py index bb6b296..2805e11 100644 --- a/src/spaceone/dashboard/model/public_widget/response.py +++ b/src/spaceone/dashboard/model/public_widget/response.py @@ -13,6 +13,7 @@ class PublicWidgetResponse(BaseModel): name: Union[str, None] = None description: Union[str, None] = None widget_type: Union[str, None] = None + size: Union[str, None] = None options: Union[dict, None] = None tags: Union[dict, None] = None data_table_id: Union[str, None] = None diff --git a/src/spaceone/dashboard/service/private_widget_service.py b/src/spaceone/dashboard/service/private_widget_service.py index 48bfdb5..6dbe208 100644 --- a/src/spaceone/dashboard/service/private_widget_service.py +++ b/src/spaceone/dashboard/service/private_widget_service.py @@ -47,6 +47,7 @@ def create( 'name': 'str', 'description': 'str', 'widget_type': 'str', + 'size': 'str', 'options': 'dict', 'tags': 'dict', 'user_id': 'str', # injected from auth (required) @@ -87,6 +88,7 @@ def update( 'name': 'str', 'description': 'str', 'widget_type': 'str', + 'size': 'str', 'options': 'dict', 'data_table_id': 'str', 'tags': 'dict', diff --git a/src/spaceone/dashboard/service/public_widget_service.py b/src/spaceone/dashboard/service/public_widget_service.py index f1c2193..263ebe8 100644 --- a/src/spaceone/dashboard/service/public_widget_service.py +++ b/src/spaceone/dashboard/service/public_widget_service.py @@ -46,6 +46,7 @@ def create( 'name': 'str', 'description': 'str', 'widget_type': 'str', + 'size': 'str', 'options': 'dict', 'tags': 'dict', 'workspace_id': 'str', # injected from auth @@ -88,6 +89,7 @@ def update( 'name': 'str', 'description': 'str', 'widget_type': 'str', + 'size': 'str', 'options': 'dict', 'data_table_id': 'str', 'tags': 'dict',