Add magnum metadata

and start generating code.

Change-Id: I80dcdf5952d709819138404ccaddb3a37bd63ff3
This commit is contained in:
Artem Goncharov 2025-03-05 18:22:02 +01:00
parent 02d674d362
commit f1d3a0aa1b
2 changed files with 364 additions and 0 deletions

View File

@ -0,0 +1,359 @@
resources:
container-infrastructure-management.version:
spec_file: wrk/openapi_specs/container-infrastructure-management/v1.yaml
api_version: v1
operations:
get:
operation_id: :get
operation_type: get
targets:
rust-sdk:
module_name: get
rust-cli:
module_name: get
sdk_mod_name: get
cli_full_command: version get
container-infrastructure-management.cluster:
spec_file: wrk/openapi_specs/container-infrastructure-management/v1.yaml
api_version: v1
operations:
list:
operation_id: clusters:get
operation_type: list
targets:
rust-sdk:
module_name: list
rust-cli:
module_name: list
sdk_mod_name: list
cli_full_command: cluster list
create:
operation_id: clusters:post
operation_type: create
targets:
rust-sdk:
module_name: create
rust-cli:
module_name: create
sdk_mod_name: create
cli_full_command: cluster create
show:
operation_id: clusters/cluster_id:get
operation_type: show
targets:
rust-sdk:
module_name: get
rust-cli:
module_name: show
sdk_mod_name: get
cli_full_command: cluster show
delete:
operation_id: clusters/cluster_id:delete
operation_type: delete
targets:
rust-sdk:
module_name: delete
rust-cli:
module_name: delete
sdk_mod_name: delete
cli_full_command: cluster delete
update:
operation_id: clusters/cluster_id:patch
operation_type: set
targets:
rust-sdk:
module_name: set
rust-cli:
module_name: set
sdk_mod_name: set
cli_full_command: cluster set
container-infrastructure-management.cluster/action/resize:
spec_file: wrk/openapi_specs/container-infrastructure-management/v1.yaml
api_version: v1
operations:
create:
operation_id: clusters/actions/resize:post
operation_type: create
targets:
rust-sdk:
module_name: create
rust-cli:
module_name: create
sdk_mod_name: create
cli_full_command: cluster action resize create
container-infrastructure-management.cluster/action/upgrade:
spec_file: wrk/openapi_specs/container-infrastructure-management/v1.yaml
api_version: v1
operations:
create:
operation_id: clusters/actions/upgrade:post
operation_type: create
targets:
rust-sdk:
module_name: create
rust-cli:
module_name: create
sdk_mod_name: create
cli_full_command: cluster action upgrade create
container-infrastructure-management.cluster/nodegroup:
spec_file: wrk/openapi_specs/container-infrastructure-management/v1.yaml
api_version: v1
operations:
list:
operation_id: clusters/nodegroups:get
operation_type: list
targets:
rust-sdk:
module_name: list
rust-cli:
module_name: list
sdk_mod_name: list
cli_full_command: cluster nodegroup list
create:
operation_id: clusters/nodegroups:post
operation_type: create
targets:
rust-sdk:
module_name: create
rust-cli:
module_name: create
sdk_mod_name: create
cli_full_command: cluster nodegroup create
delete_all:
operation_id: clusters/nodegroups:delete
operation_type: delete
targets:
rust-sdk:
module_name: delete_all
rust-cli:
module_name: delete_all
sdk_mod_name: delete_all
find_implemented_by_sdk: true
cli_full_command: cluster nodegroup delete-all
show:
operation_id: clusters/nodegroups/nodegroup_id:get
operation_type: show
targets:
rust-sdk:
module_name: get
rust-cli:
module_name: show
sdk_mod_name: get
find_implemented_by_sdk: true
cli_full_command: cluster nodegroup show
delete:
operation_id: clusters/nodegroups/nodegroup_id:delete
operation_type: delete
targets:
rust-sdk:
module_name: delete
rust-cli:
module_name: delete
sdk_mod_name: delete
find_implemented_by_sdk: true
cli_full_command: cluster nodegroup delete
update:
operation_id: clusters/nodegroups/nodegroup_id:patch
operation_type: set
targets:
rust-sdk:
module_name: set
rust-cli:
module_name: set
sdk_mod_name: set
find_implemented_by_sdk: true
cli_full_command: cluster nodegroup set
find:
operation_id: clusters/nodegroups:get
operation_type: find
targets:
rust-sdk:
module_name: find
sdk_mod_path: container_infrastructure_management::v1::cluster::nodegroup
name_field: name
name_filter_supported: false
list_mod: list
container-infrastructure-management.clustertemplate:
spec_file: wrk/openapi_specs/container-infrastructure-management/v1.yaml
api_version: v1
operations:
show:
operation_id: clustertemplates/clustertemplate_id:get
operation_type: show
targets:
rust-sdk:
module_name: get
rust-cli:
module_name: show
sdk_mod_name: get
cli_full_command: clustertemplate show
delete:
operation_id: clustertemplates/clustertemplate_id:delete
operation_type: delete
targets:
rust-sdk:
module_name: delete
rust-cli:
module_name: delete
sdk_mod_name: delete
cli_full_command: clustertemplate delete
list:
operation_id: clustertemplates:get
operation_type: list
targets:
rust-sdk:
module_name: list
rust-cli:
module_name: list
sdk_mod_name: list
cli_full_command: clustertemplate list
create:
operation_id: clustertemplates:post
operation_type: create
targets:
rust-sdk:
module_name: create
rust-cli:
module_name: create
sdk_mod_name: create
cli_full_command: clustertemplate create
container-infrastructure-management.quota:
spec_file: wrk/openapi_specs/container-infrastructure-management/v1.yaml
api_version: v1
operations:
show:
operation_id: quotas/quota_id:get
operation_type: show
targets:
rust-sdk:
module_name: get
rust-cli:
module_name: show
sdk_mod_name: get
cli_full_command: quota show
delete:
operation_id: quotas/quota_id:delete
operation_type: delete
targets:
rust-sdk:
module_name: delete
rust-cli:
module_name: delete
sdk_mod_name: delete
cli_full_command: quota delete
list:
operation_id: quotas:get
operation_type: list
targets:
rust-sdk:
module_name: list
rust-cli:
module_name: list
sdk_mod_name: list
cli_full_command: quota list
create:
operation_id: quotas:post
operation_type: create
targets:
rust-sdk:
module_name: create
rust-cli:
module_name: create
sdk_mod_name: create
cli_full_command: quota create
container-infrastructure-management.certificate:
spec_file: wrk/openapi_specs/container-infrastructure-management/v1.yaml
api_version: v1
operations:
show:
operation_id: certificates/certificate_id:get
operation_type: show
targets:
rust-sdk:
module_name: get
rust-cli:
module_name: show
sdk_mod_name: get
cli_full_command: certificate show
create:
operation_id: certificates:post
operation_type: create
targets:
rust-sdk:
module_name: create
rust-cli:
module_name: create
sdk_mod_name: create
cli_full_command: certificate create
container-infrastructure-management.mservice:
spec_file: wrk/openapi_specs/container-infrastructure-management/v1.yaml
api_version: v1
operations:
list:
operation_id: mservices:get
operation_type: list
targets:
rust-sdk:
module_name: list
rust-cli:
module_name: list
sdk_mod_name: list
cli_full_command: mservice list
container-infrastructure-management.stat:
spec_file: wrk/openapi_specs/container-infrastructure-management/v1.yaml
api_version: v1
operations:
get:
operation_id: stats:get
operation_type: get
targets:
rust-sdk:
module_name: get
rust-cli:
module_name: get
sdk_mod_name: get
cli_full_command: stat get
container-infrastructure-management.federation:
spec_file: wrk/openapi_specs/container-infrastructure-management/v1.yaml
api_version: v1
operations:
show:
operation_id: federations/federation_id:get
operation_type: show
targets:
rust-sdk:
module_name: get
rust-cli:
module_name: show
sdk_mod_name: get
cli_full_command: federation show
delete:
operation_id: federations/federation_id:delete
operation_type: delete
targets:
rust-sdk:
module_name: delete
rust-cli:
module_name: delete
sdk_mod_name: delete
cli_full_command: federation delete
list:
operation_id: federations:get
operation_type: list
targets:
rust-sdk:
module_name: list
rust-cli:
module_name: list
sdk_mod_name: list
cli_full_command: federation list
create:
operation_id: federations:post
operation_type: create
targets:
rust-sdk:
module_name: create
rust-cli:
module_name: create
sdk_mod_name: create
cli_full_command: federation create

View File

@ -18,6 +18,9 @@
- service: "compute"
metadata: "metadata/compute_metadata.yaml"
targets: ["rust-sdk", "rust-cli", "rust-tui"]
- service: "container_infrastructure_management"
metadata: "metadata/container-infrastructure-management_metadata.yaml"
targets: ["rust-sdk", "rust-cli"]
- service: "dns"
metadata: "metadata/dns_metadata.yaml"
targets: ["rust-sdk", "rust-cli", "rust-tui"]
@ -55,6 +58,8 @@
soft: true
- name: codegenerator-openapi-compute-tips-with-api-ref
soft: true
- name: codegenerator-openapi-container-infrastructure-management-tips-with-api-ref
soft: true
- name: codegenerator-openapi-dns-tips-with-api-ref
soft: true
- name: codegenerator-openapi-identity-tips-with-api-ref