From 61b2705bd16d1e6fde343adb46f11a448a58f3b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Mon, 12 Jan 2026 14:12:09 +0800 Subject: [PATCH] fix(region): remove useless mod (#24060) --- .../shell/compute/billing_resource_checks.go | 27 ------------ .../compute/mod_billing_resource_checks.go | 36 ---------------- .../compute/billing_resource_checks.go | 41 ------------------- 3 files changed, 104 deletions(-) delete mode 100644 cmd/climc/shell/compute/billing_resource_checks.go delete mode 100644 pkg/mcclient/modules/compute/mod_billing_resource_checks.go delete mode 100644 pkg/mcclient/options/compute/billing_resource_checks.go diff --git a/cmd/climc/shell/compute/billing_resource_checks.go b/cmd/climc/shell/compute/billing_resource_checks.go deleted file mode 100644 index e9c2155649..0000000000 --- a/cmd/climc/shell/compute/billing_resource_checks.go +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2019 Yunion -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package compute - -import ( - "yunion.io/x/onecloud/cmd/climc/shell" - modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute" - computeoptions "yunion.io/x/onecloud/pkg/mcclient/options/compute" -) - -func init() { - cmd := shell.NewResourceCmd(&modules.BillingResourceChecks).WithKeyword("billing-resource-check") - cmd.List(new(computeoptions.BillingResourceCheckListOptions)) - cmd.PerformClass("check", new(computeoptions.BillingResourceCheckCheckOptions)) -} diff --git a/pkg/mcclient/modules/compute/mod_billing_resource_checks.go b/pkg/mcclient/modules/compute/mod_billing_resource_checks.go deleted file mode 100644 index 392eabaf35..0000000000 --- a/pkg/mcclient/modules/compute/mod_billing_resource_checks.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2019 Yunion -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package compute - -import ( - "yunion.io/x/onecloud/pkg/mcclient/modulebase" - "yunion.io/x/onecloud/pkg/mcclient/modules" -) - -type BillingResourceChecksManager struct { - modulebase.ResourceManager -} - -var ( - BillingResourceChecks BillingResourceChecksManager -) - -func init() { - BillingResourceChecks = BillingResourceChecksManager{modules.NewComputeManager("billing_resource_check", "billing_resource_checks", - []string{}, - []string{})} - - modules.RegisterCompute(&BillingResourceChecks) -} diff --git a/pkg/mcclient/options/compute/billing_resource_checks.go b/pkg/mcclient/options/compute/billing_resource_checks.go deleted file mode 100644 index b4b4488dab..0000000000 --- a/pkg/mcclient/options/compute/billing_resource_checks.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2019 Yunion -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package compute - -import ( - "yunion.io/x/jsonutils" - - "yunion.io/x/onecloud/pkg/mcclient/options" -) - -type BillingResourceCheckListOptions struct { - options.BaseListOptions - ResourceType []string `json:"resource_type"` -} - -func (opts *BillingResourceCheckListOptions) Params() (jsonutils.JSONObject, error) { - params, err := options.ListStructToParams(opts) - if err != nil { - return nil, err - } - return params, nil -} - -type BillingResourceCheckCheckOptions struct { -} - -func (opts *BillingResourceCheckCheckOptions) Params() (jsonutils.JSONObject, error) { - return nil, nil -}