Normalize bs.scheduler-stat naming
Signed-off-by: Artem Goncharov <artem.goncharov@gmail.com> Change-Id: Id181187a733678fb9834829d8ef879942802aaf7
This commit is contained in:
@@ -618,6 +618,8 @@ def get_resource_names_from_url(path: str):
|
||||
return ["container"]
|
||||
elif path == "/v1/{account}/{container}/{object}":
|
||||
return ["object"]
|
||||
if path == "/v3/scheduler-stats/get_pools":
|
||||
return ["scheduler_stats", "pool"]
|
||||
if len(path_resource_names) == 0:
|
||||
return ["version"]
|
||||
|
||||
|
||||
@@ -40,6 +40,8 @@ class BlockStorageMetadata(MetadataBase):
|
||||
|
||||
elif resource_name == "limit" and method == "get":
|
||||
operation_key = "list"
|
||||
elif resource_name == "scheduler_stats/pool" and method == "get":
|
||||
operation_key = "list"
|
||||
|
||||
return (operation_key, skip)
|
||||
|
||||
|
||||
@@ -1270,19 +1270,19 @@ resources:
|
||||
rust-sdk:
|
||||
module_name: list
|
||||
spec_file: wrk/openapi_specs/block-storage/v3.yaml
|
||||
block-storage.scheduler_stat/get_pool:
|
||||
block-storage.scheduler_stats/pool:
|
||||
api_version: v3
|
||||
operations:
|
||||
get:
|
||||
list:
|
||||
operation_id: scheduler-stats/get_pools:get
|
||||
operation_type: get
|
||||
operation_type: list
|
||||
targets:
|
||||
rust-cli:
|
||||
cli_full_command: scheduler-stat get-pool get
|
||||
module_name: get
|
||||
sdk_mod_name: get
|
||||
cli_full_command: scheduler-stat pool list
|
||||
module_name: list
|
||||
sdk_mod_name: list
|
||||
rust-sdk:
|
||||
module_name: get
|
||||
module_name: list
|
||||
spec_file: wrk/openapi_specs/block-storage/v3.yaml
|
||||
block-storage.service:
|
||||
api_version: v3
|
||||
|
||||
Reference in New Issue
Block a user