From a65fd4a81dffdfcb2717ccdb64bc50689e59bff1 Mon Sep 17 00:00:00 2001 From: Jongmin Kim Date: Tue, 7 Nov 2023 04:33:51 +0900 Subject: [PATCH] refactor: change response model in plugin --- .../plugin/data_source/model/data_source_response.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/spaceone/cost_analysis/plugin/data_source/model/data_source_response.py b/src/spaceone/cost_analysis/plugin/data_source/model/data_source_response.py index 651da8cb..009410b3 100644 --- a/src/spaceone/cost_analysis/plugin/data_source/model/data_source_response.py +++ b/src/spaceone/cost_analysis/plugin/data_source/model/data_source_response.py @@ -1,4 +1,4 @@ -from typing import List +from typing import List, Union from enum import Enum from pydantic import BaseModel @@ -16,10 +16,10 @@ class MatchProject(BaseModel): class Actions(BaseModel): - match_service_account: MatchServiceAccount - match_project: MatchProject - change_project: str - add_additional_info: dict + match_service_account: Union[MatchServiceAccount, None] = None + match_project: Union[MatchProject, None] = None + change_project: Union[str, None] = None + add_additional_info: Union[dict, None] = None class Condition(BaseModel): @@ -29,7 +29,7 @@ class Condition(BaseModel): class Options(BaseModel): - stop_processing: bool + stop_processing: bool = False class State(str, Enum):