5b912d891c281131bc7c997b019f80d76236028d
Commit Graph

294 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Zuul
71fe713e15 Merge "Only compile generated rust code" 2024年11月28日 16:38:47 +00:00
Artem Goncharov
1051336cea Use single quotes for single char
Address https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
Change-Id: If9868e827a03890bf81808565a9eca3cb72f5516
2024年11月28日 16:09:21 +01:00
Artem Goncharov
b346573617 Only compile generated rust code
We should not try to compile the code that is not being generated. This
helps preventing breaking changes but at the same time slows down
propagation of the real API changes. Downstream tools (i.e.
openstack_tui) need to be adapted in the PR propagating the sdk change
until we start generating tui code as well.
Change-Id: I3f583deb9b3c310a9b05371e583ba570f80bbb77
2024年11月28日 14:53:35 +01:00
Artem Goncharov
5093eb8fbb Add loadbalancer_id QP to octavia pools
Previously loadbalancer_id query parameter for listing pools was missed.
OpenStackSDK also states listener_id is supported, but practice showed
it is not really the case.
Change-Id: Id8855a509af146d860d233af3bca35aa6b754c72
2024年11月28日 10:37:28 +01:00
Artem Goncharov
cadf4f8652 Add octavia query parameters
Sadly there is no reasonable way how to extract information about
supported query parameters ouf ot Octavia code. Moreover there is even
no documentation about that except of basic statement "The Octavia API
v2 supports filtering based on all top level attributes of a resource"
which is only partially true. So for now hardcode those parameter
schemas as known by OpenStackSDK (with exception of definitely wrong
ones).
Change-Id: I3684a6e7d31c8ac8842049373291b234574590aa
2024年11月27日 09:39:41 +01:00
Artem Goncharov
3887d49135 Temporary replace appcreds schema
A bug landed in the keystone openapi schemas that blocks us now so we
need to temporarily host the whole schema here until the fix lands. In
the long run we completely drop the whole module with application
credential schemas from the codegenerator.
Change-Id: If04dbdccfcad8f35e48ea68c081fc1df2a8116fd
2024年11月26日 20:21:58 +01:00
Artem Goncharov
d02ace52ab Use Array for serialized param instead of Set
A serializable query parameter of Array type should be mapped to Array
instead of Set (use set when uniqueItems = true)
Change-Id: I410186281969360da2ce854b288e227fc1425d6c
2024年11月19日 09:52:37 +01:00
Artem Goncharov
f1194e369d make sort_key and sort_dir in neutron array
Neutron allows sort_key and sort_dir to be arrays. Unfortunately there
is no easy way how to also cover requirements that when they are their
count should pair, so leave it out for now.
Change-Id: Ie60f78ebfbf0ed615adc08ed4055f1ace7ca5b2e
2024年11月18日 10:24:32 +01:00
Artem Goncharov
5527731e17 Fix codegeneration for placement esoterics
Some of the placement schemas are too special and user unfriendly that
codegeneration currently fails for those. And since we could not even
test generated code complilation we simply skipped such cases from
enabling. Now try to fix codegeneration and see how it goes.
Change-Id: I6c74ace134b2c8cb7017f1adacf2a38469fe5777
2024年11月12日 19:07:34 +01:00
Zuul
b40adc5853 Merge "Fix codegeneration for placement" 2024年11月07日 19:49:06 +00:00
Artem Goncharov
2d4f51056d Fix codegeneration for placement
Actually start generating placement code
Change-Id: I8ea5a43b5da797aadf479ec4d48164d873d12c7d
2024年11月07日 16:09:58 +01:00
Artem Goncharov
ae90be1d70 Restore generating image service code
Hotfix schemas sanitizing the locations added stuff.
Change-Id: Iddfcebd89f80978d4e674ff7677defce26d6af53
2024年11月06日 14:40:38 +00:00
Artem Goncharov
b807ac5889 Further temporarily unlink nova
Nova api-ref build fails. The fix is propsed, but not merged yet. In the
meanwhile we want codegenerator to produce new content for placement
service so we drop nova from rust job dependencies (simply non-voting
job is not helping much).
Change-Id: I3c70e58e341be186cca03360e1e47205a77901f8
2024年11月06日 13:25:45 +01:00
Artem Goncharov
b50bfa2802 Add placement usages schemas
Change-Id: I956ac85431e65633c7b723792d94e0c0ff635014
2024年11月06日 10:24:39 +00:00
Artem Goncharov
c2e02f1dfb Add placement RP allocation and traits schemas
Change-Id: Ifd95748430564cc1bbfff4874e77cb1ed5b6a104
2024年11月06日 10:24:35 +00:00
Artem Goncharov
be74aada43 Add placement rp.aggregate schema
Change-Id: I70eee2f29378977f2204b574e7903fc39f9d0484
2024年11月06日 10:24:30 +00:00
Artem Goncharov
aa45e193ee Add placement resource_provider and inventory schemas
Change-Id: Ic4c592b2c3d7ef89b6bdda84d041a17c93e3c5c4
2024年11月06日 10:24:23 +00:00
Artem Goncharov
0afb9590ab Add placement.allocation schemas
Change-Id: I354c6cce60aa2db46e59f433115abc2a3d72e251
2024年11月06日 10:24:18 +00:00
Artem Goncharov
6ce4a86099 Add placement.allocation_candidate schema
Well, mostly. Placement support additionally: resourcesN, requiredN,
member_ofN, in_treeN dynamic query parameters. This is not supported by
OpenAPI and by codegenerator for now. Those are not included until the
way to deal with this situation is being found.
Change-Id: Ie26d37d7a6d64d0e77cf286cfd294cfea10df3eb
2024年11月06日 10:24:13 +00:00
Artem Goncharov
6f92df028c Add placement.reshaper schema
Change-Id: I65850fac2520f9fa030eaa2325231d1fb2726324
2024年11月06日 10:24:05 +00:00
Artem Goncharov
5a64d71923 Add placement resource_class and trait schemas
Add schemas for 2 placement resources
Change-Id: If41963bc9adea3a45ace2fde8f0a30457100cafb
2024年11月04日 18:37:03 +00:00
Artem Goncharov
12e62d6d09 Replace wrongly used logging.warn
This was long time deprecated and it is a surprise no linter found that
before.
Change-Id: I921c01254fa04ff57d309f63265313dcc26257da
2024年11月04日 18:36:42 +00:00
Artem Goncharov
f10ba9dc39 Temporarily make nova openapi job non-voting
Nova api-ref build started failing and requires fix in os-api-ref first.
For the moment make job non-voting
Change-Id: Ic09edc870ec7fbcd5003ef1d333ddad1cb9584d9
2024年11月04日 18:53:18 +01:00
Zuul
94105df926 Merge "Fix identity resource link code" 2024年11月01日 11:53:25 +00:00
Artem Goncharov
345e6bdaf0 Fix identity resource link code
- fix project_id resource link in openapi
- fix --current-domain --current-project filling
Change-Id: Ide2a2ae7eed04f51317346370c50431bf9282550
2024年10月31日 10:30:57 +01:00
Artem Goncharov
8f5dc2e994 Start building Ironic OpenAPI
Change-Id: If1d9a47a9a87c985988b3378cddf0330d14b9458
2024年10月24日 17:11:11 +02:00
Artem Goncharov
ee8925c71c Fix dns schema mapping names
some schemas were accidentially plural causing mismatch. In addition to
that recordset was missing records attribute (missed in the current
api-ref) and zone/recordset supports only limited set of updatable
attributes.
Change-Id: I51b3a93caa1fc8804e40493636bde537a58950a3
2024年10月09日 08:41:16 +02:00
Artem Goncharov
507f1ee33b Fix dns recordset schema
zone_name is a readOnly param and is not a uuid
Change-Id: If9a21d32ce431754a683c10e3e059def4bb3d9ba
2024年10月07日 18:00:09 +00:00
Artem Goncharov
7235ea3c89 Remove identity.project schema
identity.project schema is now coming directly from Keystone code. Drop
it locally to avoid code duplication.
Change-Id: Ice429170933c762568cb494fb7871f28cd78662d
2024年10月07日 17:21:58 +02:00
Artem Goncharov
504b62a408 Extend Designate schemas
add schemas for few additional resources in Designate.
Change-Id: Ia1b870726a3e4ede251c8a2be482c0127c0e120f
2024年10月07日 12:01:40 +02:00
Zuul
51288c329f Merge "Drop reading of identity.application_credential.access_rule" 2024年10月04日 16:55:22 +00:00
Artem Goncharov
c8cf16b5e2 remove zone_id QP from listing zone recordsets
Currently codegenerator is not supporting param with the same name to be
present in path and query params (and this makes no sense). In the DNS
it was the case so get rid of it.
Change-Id: Id1e619c9cea0b1c76d1da3cfcf20e547f3cd4b3f
2024年10月04日 15:21:28 +02:00
Artem Goncharov
84bd7bfa49 Drop reading of identity.application_credential.access_rule
We add decorators in Keystone and the hacks are not necessary anymore
(actually they break since the schema got modified).
Change-Id: I926397334d0e3b118a7c49ae6ed44bb26d1a169a
2024年10月04日 11:57:18 +02:00
Artem Goncharov
e7b7cd9474 Add dns zone/recordset query parameters
Change-Id: I5836232d7ff9ebfa576bfbfe128e77775624c05d
2024年10月04日 11:03:05 +02:00
Artem Goncharov
e575c6fe7d Start building DNS bindings
Change-Id: I62888041ce2cf8d2c4dd27beeda6d04f94f1cbd6
2024年10月03日 13:58:42 +02:00
Zuul
32b8fbd34e Merge "Update typos version" 2024年10月03日 11:22:01 +00:00
Artem Goncharov
f39e2fddb0 Update typos version
New version of crate-ci/typos cathes few existing typos. Update it.
Change-Id: I010b238218c773e1ce523d204fbbb3145bb7fb40
2024年10月03日 11:38:15 +02:00
Artem Goncharov
bad2a7a1b7 Fix DNS urls and make easy zone tasks actions
Change-Id: Iab8d69085280aebee5d96991bd5a31ba1089a1e0
2024年10月02日 15:41:22 +02:00
Zuul
7e173c20bc Merge "Add dns.zone and dns.recordset schema" 2024年10月02日 13:24:42 +00:00
Zuul
73ab278dfa Merge "Fix linked query param required resolution" 2024年10月02日 10:07:42 +00:00
Artem Goncharov
4c94a29a4a Add dns.zone and dns.recordset schema
Change-Id: Ie9bf8843be6b82ced6bdb5f8924604732bb66b8a
2024年10月02日 09:35:09 +02:00
Artem Goncharov
8538c04144 Fix linked query param required resolution
Set required for the linked query param based on the real param
is_required value.
Change-Id: I09422fa2384435509c0bc50eb6af080cf873d047
2024年10月02日 08:31:09 +02:00
Artem Goncharov
fa25f3b8f0 Start building Designate specs
Sadly no schemas, but at least first rough structure.
Change-Id: Id2ed7ecfbf20ca522e173cf11f236d00f75871c5
2024年10月01日 20:28:45 +02:00
Artem Goncharov
a9a1a7dee1 Add user_id/project_id/domain_id reference
user_id/project_id/domain_id path parameters passing through the base
openapi class will get reference to the identity resource what enables
id/name/current selector in the cli.
Ensure that codegenerator supports linked resources also for query
parameters.
Change-Id: I1412eedf3b80e5dcd5be122b600ffeaab57b1e2b
2024年10月01日 14:49:59 +02:00
Artem Goncharov
a9e8624e2b fix network.agent property types
- agent.alive is boolean
- agent.configurations is an object
None of them is having any type marker in neutron-lib -> hardcode.
Change-Id: Ib1d394baf9f6375d541b38b21b9b7a30898a1fb3
2024年09月26日 13:47:34 +02:00
Artem Goncharov
cd8ff324cf Update pre-commit tools versions
Change-Id: Ifeb7c1a52b403d89d6e44e425ae935d6a6f43d77
2024年09月24日 10:37:52 +02:00
Artem Goncharov
2326ce5e7b Fix pyproject.toml file name
- rename properly pyproject.toml file
- reformatted files due to rules not being applied before
- address now failing unittest
Change-Id: I189a0c71253fe87c5fa91f6d7f46fb350fe4d0d9
2024年09月19日 09:00:54 +02:00
Artem Goncharov
ca4120cddd Extend user path param with --current-user
Recently support of `--user-id|--user-name` has been added when user_id
is a path parameter of the resource. To make it even more smoother
extend it with `--user-id <ID>|--user-name <NAME>|--current-user` to
allow using current authenticated user while being very explicit (ensure
user precisely decides what is desired.
Change-Id: I0261140572e76799ea54dc0c9544cf5d094c1120
2024年09月17日 20:09:40 +02:00
Artem Goncharov
89c07638cf Switch to ruff
Change-Id: I849dd7c794d4c4a796e1a91c73dcf18a33d03d4d
2024年09月17日 18:21:20 +02:00
Artem Goncharov
f94c527051 Use all resource names for path param naming
for the url `/users/{user_id}/access_rules` and
`/users/{user_id}/access_rules/{id}` param user_id should be named as
`users_access_rules_user_id` to better avoid name shadowing.
Change-Id: Ibe72515cad25009fe5e73afe1a98dc07ec1ac8d4
2024年09月17日 15:04:56 +02:00