diff --git a/src/spaceone/cost_analysis/model/cost_report_config/request.py b/src/spaceone/cost_analysis/model/cost_report_config/request.py index 30f50db7..dfdcc413 100644 --- a/src/spaceone/cost_analysis/model/cost_report_config/request.py +++ b/src/spaceone/cost_analysis/model/cost_report_config/request.py @@ -63,18 +63,15 @@ class CostReportConfigRunRequest(BaseModel): class CostReportConfigGetRequest(BaseModel): cost_report_config_id: str domain_id: str - workspace_id: Union[str, None] = None class CostReportConfigSearchQueryRequest(BaseModel): query: Union[dict, None] = None cost_report_config_id: Union[str, None] = None domain_id: str - workspace_id: Union[str, None] = None class CostReportConfigStatQueryRequest(BaseModel): query: dict cost_report_config_id: Union[str, None] = None domain_id: str - workspace_id: Union[str, None] = None diff --git a/src/spaceone/cost_analysis/service/cost_report_config_service.py b/src/spaceone/cost_analysis/service/cost_report_config_service.py index 0fb1db68..95be5db5 100644 --- a/src/spaceone/cost_analysis/service/cost_report_config_service.py +++ b/src/spaceone/cost_analysis/service/cost_report_config_service.py @@ -222,7 +222,6 @@ def get( params (CostReportConfigGetRequest): { 'cost_report_config_id': 'str', # required 'domain_id': 'str' # injected from auth (required) - 'workspace_id': 'str' Returns: CostReportConfigResponse: @@ -237,7 +236,7 @@ def get( permission="cost-analysis:CostReportConfig.read", role_types=["DOMAIN_ADMIN", "WORKSPACE_OWNER"], ) - @append_query_filter(["cost_report_config_id", "domain_id", "workspace_id"]) + @append_query_filter(["cost_report_config_id", "domain_id"]) @convert_model def list( self, params: CostReportConfigSearchQueryRequest @@ -275,7 +274,7 @@ def list( permission="cost-analysis:CostReportConfig.read", role_types=["DOMAIN_ADMIN", "WORKSPACE_OWNER"], ) - @append_query_filter(["cost_report_config_id", "domain_id", "workspace_id"]) + @append_query_filter(["cost_report_config_id", "domain_id"]) @convert_model def stat(self, params: CostReportConfigStatQueryRequest) -> dict: """Stat cost report configs