303001e15e524ab34947e03fe4f2fd90d6523adf
Commit Graph

246 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
gtema
ea8f60e66c Fix network external_gateway_info schema
Recently validation of the external_gateway_info has been modified in
the Neutron so that we are not able to detect the schema anymore. Adapt
it to how it "look like it is intended".
Change-Id: I8976a019cd11b4cb3d8780553bb72b7ce6627519
2025年03月06日 18:44:59 +01:00
Artem Goncharov
f1d3a0aa1b Add magnum metadata
and start generating code.
Change-Id: I80dcdf5952d709819138404ccaddb3a37bd63ff3
2025年03月05日 19:02:52 +01:00
Zuul
02d674d362 Merge "Bootstrap magnum OpenAPI build" 2025年03月05日 12:01:08 +00:00
Artem Goncharov
9d9fc4268a Bootstrap magnum OpenAPI build
Change-Id: I6047af5f15abc3e10a52ea9166e80a3aa8a265ec
2025年03月04日 15:08:31 +01:00
Zuul
4515701606 Merge "Add required to compute service responses" 2025年02月28日 08:09:33 +00:00
Zuul
f2d582e2ad Merge "BS volume bootable parameter is a string" 2025年02月28日 08:08:49 +00:00
Zuul
a6d21b0f5c Merge "Hardcode barbican quota schemas" 2025年02月27日 23:49:53 +00:00
Artem Goncharov
6dfa4666dc Add required to compute service responses
Change-Id: I582de51d89c3bce431b6aec574d8ef8e3405919d
2025年02月27日 18:16:17 +01:00
Artem Goncharov
c7e844448b BS volume bootable parameter is a string
What a surprise
Change-Id: Ice0910261bd1b84f327c779b72ac3593efb09db2
2025年02月27日 17:10:24 +01:00
Zuul
31fedb263d Merge "Hardcode barbican order schema" 2025年02月26日 18:54:40 +00:00
Zuul
7de4bb4f38 Merge "Hardcode barbican container schemas" 2025年02月26日 18:54:38 +00:00
Zuul
f1e54465b9 Merge "Hardcode barbican secret_store schemas" 2025年02月26日 18:13:12 +00:00
Zuul
a76a5c8af3 Merge "Add barbican secret schemas" 2025年02月26日 15:44:08 +00:00
Zuul
050e4380ea Merge "Ensure BS responses have some properties marked as required" 2025年02月26日 14:10:49 +00:00
Artem Goncharov
a40cf11ee5 Ensure BS responses have some properties marked as required
In the TUI absense of "required" leads to ID/NAME being optional what those
could never be. In adition also ensure that the response struct as well as
fields themselves are public so that we can consume them.
Change-Id: I7850b6de85a1e2aa74d597bca7226430bb45cb2c
2025年02月26日 12:34:14 +01:00
Zuul
2f6cc65b94 Merge "Increase openapi job timeout" 2025年02月25日 19:06:50 +00:00
Artem Goncharov
8bfc8967d3 Drop role assignment schema hardcode
Those are now present in keystone.
Change-Id: I1f0b74c64d2e877ef23eeee6ddb59c53e5c85cea
2025年02月25日 11:32:45 +01:00
Artem Goncharov
83b340856e Increase openapi job timeout
Sometimes timeout expires before we ever started to build openapi (during
pre-run). Double the timeout for now.
Change-Id: I10c2303c7a9dcd997eefed14c42b6d4b44bffd59
2025年02月25日 09:06:48 +01:00
Artem Goncharov
e1a6b90f7f Hardcode barbican quota schemas
Change-Id: Ida732b73f62ab5623edd8af571390debcf67facf
2025年02月13日 12:05:14 +01:00
Artem Goncharov
9b211e3a5f Hardcode barbican order schema
Change-Id: I2af9a0ffdad476694c99222fa8cbbdbd2c0b781c
2025年02月13日 11:20:40 +01:00
Artem Goncharov
2c61265d5f Hardcode barbican container schemas
Change-Id: I2f1bd8d870c1607a0cfa34d8a50dde6c1a8314c2
2025年02月12日 14:35:58 +01:00
Artem Goncharov
2d36da5a7f Hardcode barbican secret_store schemas
Change-Id: I61312727e8fbb18e5883963f85f0f413175aa7cf
2025年02月12日 13:39:40 +01:00
Artem Goncharov
3aa89ec1da Add barbican secret schemas
Sadly there is not normal way to extract usable schemas from barbican. Hardcode
them.
Change-Id: Iddeaad08d82c64c7763079704f65126307271f47
2025年02月11日 13:17:18 +01:00
Artem Goncharov
8995fa42b2 Send response action also for delete events
When TUI user invoked delete event we want to know it was completed
successfully. For that send a response with request data and explicit Null as
response.
Change-Id: I844d2d89883481b4a874aadf4aee8156c84cf536
2025年02月04日 12:08:17 +01:00
Artem Goncharov
39bdf3bdae Adapt clippy run to include bin targets
Since clippy run is limiting targets to --lib and --tests the tui is not
being processed. Include also --bins but still limit targets since there
are more things not generated by codegenerator.
Change-Id: I9a0d83743cebbc6bfcdf2ffb1e5086055b392cdb
2025年02月02日 17:53:32 +00:00
Artem Goncharov
8800529ad4 Generate TUI response structure
Change-Id: I2b9f37ebb5e08e36b969aee148bc571ed587c7ae
2025年02月01日 16:48:08 +01:00
Artem Goncharov
1c3775d15c fix generate_openapi_docs script shebang
Change-Id: Iaee1ce2da5e5f132e6ebb437d6dde35173b764fc
2025年01月31日 20:52:09 +01:00
Artem Goncharov
7eb8b00b61 Drop overloaded federation service provider schema
Fix docstring processing which might be list already (why?)
Change-Id: Ia8f88085e00d53815a68565526ca0a387d5d4dbc
2025年01月31日 20:51:26 +01:00
Artem Goncharov
de69003db3 Start building Barbican openapi
Time to start looking at barbican as well. Sadly it is another "not
trivial for automatics" case and requires lots of manual intrusions due
to nonstandard usage of pecan framework (maybe we can improve this).
Sometimes there are jsonschemas in the code, but for the beginning just
start building routes.
Change-Id: I4f4c52c1e7862274a804a8cae8c415f233fc0990
2025年01月15日 17:11:49 +00:00
Artem Goncharov
9cbf8d9c2b Prepare jsonschema replacement for identity.{group,user}
Change-Id: I2569fe4e6685f14d57699e51ccaf9d4ef8cefd43
2025年01月09日 12:16:36 +01:00
Zuul
f4fe3bd80a Merge "Adapt tools shebangs" 2025年01月08日 17:13:39 +00:00
Artem Goncharov
7984fae1bf Prepare next identity schema updates
Few next openapi schema changes are failing due to renames and duplicated
attributes. Prepare the code so that it doesn't fail.
Change-Id: Iacf994dc61c4ba6614b5827b80b6b4368e28d3a5
2025年01月08日 15:15:43 +01:00
Artem Goncharov
51892ec791 Adapt tools shebangs
replace `/usr/bin/bash` with `/usr/bin/env bash`
Change-Id: I1ce08a085044a1622b3d9963dbdc04080e4fa4b8
2025年01月08日 13:44:22 +01:00
Artem Goncharov
9c8491f2b5 Adapt generated tui code
- generate subtypes (necessary for non-GET request)
- generate TryFrom for custom structs into Request and RequestBuilder
- adapt metadata to generate few missed operations
Change-Id: I0efd28b86bbd03f7aed2ece4552b30e91deac110
2024年12月20日 10:12:38 +01:00
Artem Goncharov
5d38233548 Fix few tui generated code issues
Change-Id: Iac7169de7ee07fa06e48dec56d0e9656c2d7e45a
2024年12月17日 11:19:23 +01:00
Zuul
ca373468f7 Merge "Start building parts of TUI" 2024年12月16日 17:39:34 +00:00
Artem Goncharov
a75eb01672 Start building parts of TUI
Simplify TUI extension by generation of resource filter structure and
corresponding execute traits.
Change-Id: I35fe5c9e568c13cc35183588fe3f7bd4e1c45c72
2024年12月16日 13:25:07 +00:00
Artem Goncharov
f8ff329936 Re-enable building of nova openapi specs as a voting job
Few schemas changed in nova so that the code is again broken so adapt
templates.
Change-Id: I129cd24c63cb7cbb996bb4c9b95e0c9fdb6a2c14
2024年12月16日 12:03:01 +01:00
Zuul
471f414492 Merge "Remove some hardcoded nova schemas" 2024年12月14日 21:17:42 +00:00
Artem Goncharov
d0fc30f1ed Remove some hardcoded nova schemas
Nova extended schema decorators, start throwing them away from our code.
Change-Id: I3d9e46ef84b2a82868b40ddae52577a2eaef58c9
2024年12月14日 19:39:25 +01:00
Artem Goncharov
87b3c98433 Adapt identity schemas
- change description of the idp_id user list param
- drop domain schemas since they are integrated in keystone.
Change-Id: Ic83561234e4d2ba9f520aa3c3f8b21dc4f9ce80b
2024年12月10日 14:53:29 +01:00
Artem Goncharov
f5b58b5f96 Fix LB failover schemas
LB and amphora failover schemas are explicit null.
Without that generated code fails with `Request must be a JSON dict`.
Change-Id: Ic2a8b46e1c29b0a1e85efe8757d241d3c31b28aa
2024年12月09日 17:17:20 +01:00
Artem Goncharov
e306626db0 Prepare remaining keystone schemas
query parameters start being duplicated due to the different naming
convention used from the extracted decorators and the ones hardcoded.
Adapt hardcoded names to be hopefully properly identified using openapi
construction.
Change-Id: Ifd6f120c7dd43323528e93c1d4216ede7525ebae
2024年12月06日 09:16:40 +01:00
Artem Goncharov
5a7de340a3 Query parameter decorator may use null
`@validation.request_query_schema(None)` is valid.
Change-Id: Ie4c8af39861089515eb001638a679cbd6c457fb8
2024年12月06日 09:05:24 +01:00
Artem Goncharov
7f06d3a32b Prepare identity.domain schemas
domain schemas are going to land in keystone soon and we need to fix
eventual param duplication
Change-Id: I81626317cf65fe9bb2281794e28ad68739afa395
2024年12月05日 19:40:32 +01:00
Artem Goncharov
8ecbde6b05 Split metadata into independent services
Handling metadata in single module becomes not manageable. Split it into
separate service-related modules.
Change-Id: I7551b4a96cf030c57bfb0a7b9eb868cd760a6de5
2024年12月05日 14:26:53 +01:00
Artem Goncharov
fddec42f7e Add status structable macros for alternative field
Some resources uses `state` or `operating_status` as a sort of `status`
property. Set `status` StructTable marcros for such fields so that
output coloring use those fields.
Change-Id: I1c1faa0f69e1d22b6230db2df90a981ca496e643
2024年12月03日 14:10:48 +01:00
Artem Goncharov
84db415a8f Skip lifetime in rust sdk
newer rust started stripping unnecessary lifetime - no sense to generate
it.
Change-Id: I4c043ae23e3b66b71e6a57e6485cf3f946d065ff
2024年12月02日 15:33:34 +01:00
Artem Goncharov
db142b81c1 Add pagination QP to octavia resources
- add limit/marker/page_reverse
- sort QP alphabetically
Change-Id: I9c8c3e73b8b81827fa26b51ae65337ce93ab5840
2024年11月29日 18:43:14 +01:00
Zuul
bbd3efe650 Merge "Parse schema for validation" 2024年11月29日 11:31:16 +00:00