Files
codegenerator/metadata/object-store_metadata.yaml
Artem Goncharov 721705d837 Rename operation_name with action_name in the metadata
Currently we comment the operation_name attribute in the metadata that
it is used as an action name. This only creates confusion especially if
we want to use something different as the operation_name (i.e.
operation_name or opertaion_type for neutron router results in
"action"). So in addition to the renaming of the metadata attribute
explicitly pass the metadata operation key as operation_name parameters
into the generator (when unset).

Change-Id: Ic04eafe5b6dea012ca18b9835cd5c86fefa87055
Signed-off-by: Artem Goncharov <artem.goncharov@gmail.com>
2025-06-05 15:02:09 +00:00

102 lines
2.4 KiB
YAML

resources:
object-store.account:
api_version: v1
operations:
delete:
operation_id: account.delete
operation_type: delete
targets:
rust-sdk:
module_name: delete
get:
operation_id: account.get
operation_type: get
targets:
rust-sdk:
module_name: get
head:
operation_id: account.head
operation_type: action
targets:
rust-sdk:
module_name: head
update:
operation_id: account.post
operation_type: set
targets:
rust-sdk:
module_name: set
spec_file: wrk/openapi_specs/object-store/v1.yaml
object-store.container:
api_version: v1
extensions:
rust-sdk:
additional_modules:
- prune
operations:
create:
operation_id: container.put
operation_type: create
targets:
rust-sdk:
module_name: create
delete:
operation_id: container.delete
operation_type: delete
targets:
rust-sdk:
module_name: delete
get:
operation_id: container.get
operation_type: get
targets:
rust-sdk:
module_name: get
head:
operation_id: container.head
operation_type: action
targets:
rust-sdk:
module_name: head
update:
operation_id: container.post
operation_type: set
targets:
rust-sdk:
module_name: set
spec_file: wrk/openapi_specs/object-store/v1.yaml
object-store.object:
api_version: v1
operations:
delete:
operation_id: object.delete
operation_type: delete
targets:
rust-sdk:
module_name: delete
get:
operation_id: object.get
operation_type: download
targets:
rust-sdk:
module_name: get
head:
operation_id: object.head
operation_type: action
targets:
rust-sdk:
module_name: head
put:
operation_id: object.put
operation_type: upload
targets:
rust-sdk:
module_name: put
update:
operation_id: object.post
operation_type: set
targets:
rust-sdk:
module_name: set
spec_file: wrk/openapi_specs/object-store/v1.yaml