Start generating keystone-ng code

Change-Id: I84ecfbd26bcfdaf010181ee04a9c2c2e2974a58c
Signed-off-by: Artem Goncharov <artem.goncharov@gmail.com>
This commit is contained in:
gtema
2025-09-07 18:32:49 +02:00
committed by Artem Goncharov
parent 99fb44a5b3
commit 413af5eeed
3 changed files with 83 additions and 1 deletions

View File

@@ -3356,3 +3356,75 @@ resources:
module_name: delete
sdk_mod_name: delete
cli_full_command: access-rule delete
# RUST
identity.user/passkey:
spec_file: wrk/openapi_specs/identity/keystone_rust.yaml
api_version: v4
operations:
register_start:
operation_id: /user/passkey/register:start
operation_type: action
targets:
rust-sdk:
module_name: register_start
alternative_module_path: user/passkey
register_finish:
operation_id: /user/passkey/register:finish
operation_type: action
targets:
rust-sdk:
module_name: register_finish
alternative_module_path: user/passkey
identity.federation/identity_provider:
spec_file: wrk/openapi_specs/identity/keystone_rust.yaml
api_version: v4
operations:
list:
operation_id: /federation/identity_provider:list
operation_type: list
targets:
rust-sdk:
module_name: list
rust-cli:
module_name: list
sdk_mod_name: list
cli_full_command: identity-provider list
show:
operation_id: /federation/identity_provider:show
operation_type: show
targets:
rust-sdk:
module_name: get
rust-cli:
module_name: show
sdk_mod_name: get
cli_full_command: identity-provider show
create:
operation_id: /federation/identity_provider:create
operation_type: create
targets:
rust-sdk:
module_name: create
rust-cli:
module_name: create
sdk_mod_name: create
cli_full_command: identity-provider create
update:
operation_id: /federation/identity_provider:update
operation_type: set
targets:
rust-sdk:
module_name: set
rust-cli:
module_name: set
sdk_mod_name: set
cli_full_command: identity-provider set
delete:
operation_id: /federation/identity_provider:delete
operation_type: delete
targets:
rust-sdk:
module_name: delete
rust-cli:
module_name: delete
cli_full_command: identity-provider delete

View File

@@ -0,0 +1,7 @@
---
- hosts: all
tasks:
- name: Download KeystoneNG OpenAPI spec
ansible.builtin.get_url:
url: "{{ keystone_ng_url }}"
dest: "{{ openapi_dest }}/identity/keystone_rust.yaml"

View File

@@ -76,9 +76,12 @@
soft: true
- name: codegenerator-openapi-shared-file-system-tips-with-api-ref
soft: true
pre-run: playbooks/openapi/fetch.yaml
pre-run:
- playbooks/openapi/fetch.yaml
- playbooks/codegenerator/fetch-keystone-ng-openapi.yaml
run: playbooks/rust/all.yaml
vars:
keystone_ng_url: https://gtema.github.io/keystone/openapi.yaml
codegenerator_base_dir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"
openapi_dest: "{{ codegenerator_base_dir }}/wrk/openapi_specs"
patch_path: "{{ ansible_user_dir }}/{{ zuul.change }}.patch"