Skip to content

Commit 84b871f

Browse files
authored
feat: Replace wrong simplification of vec parameters (#1080)
In Keystone.user MFA rules are vec of vec of strings. Current simplification renders it as vec of strings loosing one level. Also indicate to the user array parameters are actually arrays. Change-Id: I382aa157b4b4286daf91f08af001a5db0247a88f Changes are triggered by https://review.opendev.org/945015
1 parent 586caa9 commit 84b871f

File tree

126 files changed

+621
-25
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+621
-25
lines changed

openstack_cli/src/block_storage/v3/group/create_313.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ struct Group {
9090
/// multiple- storage back ends, see
9191
/// [Configure multiple-storage back ends](https://docs.openstack.org/cinder/latest/admin/blockstorage-multi-backend.html).
9292
///
93+
/// Parameter is an array, may be provided multiple times.
94+
///
9395
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
9496
volume_types: Vec<String>,
9597
}

openstack_cli/src/block_storage/v3/qos_spec/delete_keys.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ pub struct QosSpecCommand {
4848
#[command(flatten)]
4949
path: PathParameters,
5050

51+
/// Parameter is an array, may be provided multiple times.
52+
///
5153
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
5254
keys: Vec<String>,
5355
}

openstack_cli/src/compute/v2/aggregate/image/cache_281.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ pub struct ImageCommand {
6060

6161
/// A list of image objects to cache.
6262
///
63+
/// Parameter is an array, may be provided multiple times.
64+
///
6365
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
6466
cache: Vec<String>,
6567
}

openstack_cli/src/compute/v2/server/create_20.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ struct Server {
157157
#[arg(help_heading = "Body parameters", long)]
158158
availability_zone: Option<String>,
159159

160+
/// Parameter is an array, may be provided multiple times.
161+
///
160162
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
161163
block_device_mapping: Option<Vec<Value>>,
162164

@@ -186,6 +188,8 @@ struct Server {
186188
/// A bug has caused the `tag` attribute to no longer be accepted starting
187189
/// with version 2.33. It has been restored in version 2.42.
188190
///
191+
/// Parameter is an array, may be provided multiple times.
192+
///
189193
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
190194
block_device_mapping_v2: Option<Vec<Value>>,
191195

@@ -283,6 +287,8 @@ struct Server {
283287
/// or device tags. These are requested as strings for the networks value,
284288
/// not in a list. See the associated example.
285289
///
290+
/// Parameter is an array, may be provided multiple times.
291+
///
286292
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
287293
networks: Option<Vec<Value>>,
288294

@@ -313,6 +319,8 @@ struct Server {
313319
///
314320
/// **Available until version 2.56**
315321
///
322+
/// Parameter is an array, may be provided multiple times.
323+
///
316324
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
317325
personality: Option<Vec<Value>>,
318326

@@ -332,6 +340,8 @@ struct Server {
332340
/// server in the `default` security group. Requested security groups are
333341
/// not applied to pre-existing ports.
334342
///
343+
/// Parameter is an array, may be provided multiple times.
344+
///
335345
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
336346
security_groups: Option<Vec<String>>,
337347

@@ -371,13 +381,17 @@ struct OsSchedulerHints {
371381
/// `DifferentCellFilter` is available on cloud side that is cell v1
372382
/// environment.
373383
///
384+
/// Parameter is an array, may be provided multiple times.
385+
///
374386
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
375387
different_cell: Option<Vec<String>>,
376388

377389
/// A list of server UUIDs or a server UUID. Schedule the server on a
378390
/// different host from a set of servers. It is available when
379391
/// `DifferentHostFilter` is available on cloud side.
380392
///
393+
/// Parameter is an array, may be provided multiple times.
394+
///
381395
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
382396
different_host: Option<Vec<String>>,
383397

@@ -407,6 +421,8 @@ struct OsSchedulerHints {
407421
/// same host as another server in a set of servers. It is available when
408422
/// `SameHostFilter` is available on cloud side.
409423
///
424+
/// Parameter is an array, may be provided multiple times.
425+
///
410426
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
411427
same_host: Option<Vec<String>>,
412428

openstack_cli/src/compute/v2/server/create_21.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ struct Server {
154154
#[arg(help_heading = "Body parameters", long)]
155155
availability_zone: Option<String>,
156156

157+
/// Parameter is an array, may be provided multiple times.
158+
///
157159
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
158160
block_device_mapping: Option<Vec<Value>>,
159161

@@ -183,6 +185,8 @@ struct Server {
183185
/// A bug has caused the `tag` attribute to no longer be accepted starting
184186
/// with version 2.33. It has been restored in version 2.42.
185187
///
188+
/// Parameter is an array, may be provided multiple times.
189+
///
186190
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
187191
block_device_mapping_v2: Option<Vec<Value>>,
188192

@@ -274,6 +278,8 @@ struct Server {
274278
/// or device tags. These are requested as strings for the networks value,
275279
/// not in a list. See the associated example.
276280
///
281+
/// Parameter is an array, may be provided multiple times.
282+
///
277283
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
278284
networks: Option<Vec<Value>>,
279285

@@ -304,6 +310,8 @@ struct Server {
304310
///
305311
/// **Available until version 2.56**
306312
///
313+
/// Parameter is an array, may be provided multiple times.
314+
///
307315
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
308316
personality: Option<Vec<Value>>,
309317

@@ -323,6 +331,8 @@ struct Server {
323331
/// server in the `default` security group. Requested security groups are
324332
/// not applied to pre-existing ports.
325333
///
334+
/// Parameter is an array, may be provided multiple times.
335+
///
326336
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
327337
security_groups: Option<Vec<String>>,
328338

@@ -362,13 +372,17 @@ struct OsSchedulerHints {
362372
/// `DifferentCellFilter` is available on cloud side that is cell v1
363373
/// environment.
364374
///
375+
/// Parameter is an array, may be provided multiple times.
376+
///
365377
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
366378
different_cell: Option<Vec<String>>,
367379

368380
/// A list of server UUIDs or a server UUID. Schedule the server on a
369381
/// different host from a set of servers. It is available when
370382
/// `DifferentHostFilter` is available on cloud side.
371383
///
384+
/// Parameter is an array, may be provided multiple times.
385+
///
372386
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
373387
different_host: Option<Vec<String>>,
374388

@@ -398,6 +412,8 @@ struct OsSchedulerHints {
398412
/// same host as another server in a set of servers. It is available when
399413
/// `SameHostFilter` is available on cloud side.
400414
///
415+
/// Parameter is an array, may be provided multiple times.
416+
///
401417
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
402418
same_host: Option<Vec<String>>,
403419

openstack_cli/src/compute/v2/server/create_219.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ struct Server {
154154
#[arg(help_heading = "Body parameters", long)]
155155
availability_zone: Option<String>,
156156

157+
/// Parameter is an array, may be provided multiple times.
158+
///
157159
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
158160
block_device_mapping: Option<Vec<Value>>,
159161

@@ -183,6 +185,8 @@ struct Server {
183185
/// A bug has caused the `tag` attribute to no longer be accepted starting
184186
/// with version 2.33. It has been restored in version 2.42.
185187
///
188+
/// Parameter is an array, may be provided multiple times.
189+
///
186190
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
187191
block_device_mapping_v2: Option<Vec<Value>>,
188192

@@ -282,6 +286,8 @@ struct Server {
282286
/// or device tags. These are requested as strings for the networks value,
283287
/// not in a list. See the associated example.
284288
///
289+
/// Parameter is an array, may be provided multiple times.
290+
///
285291
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
286292
networks: Option<Vec<Value>>,
287293

@@ -312,6 +318,8 @@ struct Server {
312318
///
313319
/// **Available until version 2.56**
314320
///
321+
/// Parameter is an array, may be provided multiple times.
322+
///
315323
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
316324
personality: Option<Vec<Value>>,
317325

@@ -331,6 +339,8 @@ struct Server {
331339
/// server in the `default` security group. Requested security groups are
332340
/// not applied to pre-existing ports.
333341
///
342+
/// Parameter is an array, may be provided multiple times.
343+
///
334344
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
335345
security_groups: Option<Vec<String>>,
336346

@@ -370,13 +380,17 @@ struct OsSchedulerHints {
370380
/// `DifferentCellFilter` is available on cloud side that is cell v1
371381
/// environment.
372382
///
383+
/// Parameter is an array, may be provided multiple times.
384+
///
373385
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
374386
different_cell: Option<Vec<String>>,
375387

376388
/// A list of server UUIDs or a server UUID. Schedule the server on a
377389
/// different host from a set of servers. It is available when
378390
/// `DifferentHostFilter` is available on cloud side.
379391
///
392+
/// Parameter is an array, may be provided multiple times.
393+
///
380394
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
381395
different_host: Option<Vec<String>>,
382396

@@ -406,6 +420,8 @@ struct OsSchedulerHints {
406420
/// same host as another server in a set of servers. It is available when
407421
/// `SameHostFilter` is available on cloud side.
408422
///
423+
/// Parameter is an array, may be provided multiple times.
424+
///
409425
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
410426
same_host: Option<Vec<String>>,
411427

openstack_cli/src/compute/v2/server/create_232.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ struct Server {
154154
#[arg(help_heading = "Body parameters", long)]
155155
availability_zone: Option<String>,
156156

157+
/// Parameter is an array, may be provided multiple times.
158+
///
157159
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
158160
block_device_mapping: Option<Vec<Value>>,
159161

@@ -183,6 +185,8 @@ struct Server {
183185
/// A bug has caused the `tag` attribute to no longer be accepted starting
184186
/// with version 2.33. It has been restored in version 2.42.
185187
///
188+
/// Parameter is an array, may be provided multiple times.
189+
///
186190
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
187191
block_device_mapping_v2: Option<Vec<Value>>,
188192

@@ -282,6 +286,8 @@ struct Server {
282286
/// or device tags. These are requested as strings for the networks value,
283287
/// not in a list. See the associated example.
284288
///
289+
/// Parameter is an array, may be provided multiple times.
290+
///
285291
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
286292
networks: Option<Vec<Value>>,
287293

@@ -312,6 +318,8 @@ struct Server {
312318
///
313319
/// **Available until version 2.56**
314320
///
321+
/// Parameter is an array, may be provided multiple times.
322+
///
315323
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
316324
personality: Option<Vec<Value>>,
317325

@@ -331,6 +339,8 @@ struct Server {
331339
/// server in the `default` security group. Requested security groups are
332340
/// not applied to pre-existing ports.
333341
///
342+
/// Parameter is an array, may be provided multiple times.
343+
///
334344
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
335345
security_groups: Option<Vec<String>>,
336346

@@ -370,13 +380,17 @@ struct OsSchedulerHints {
370380
/// `DifferentCellFilter` is available on cloud side that is cell v1
371381
/// environment.
372382
///
383+
/// Parameter is an array, may be provided multiple times.
384+
///
373385
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
374386
different_cell: Option<Vec<String>>,
375387

376388
/// A list of server UUIDs or a server UUID. Schedule the server on a
377389
/// different host from a set of servers. It is available when
378390
/// `DifferentHostFilter` is available on cloud side.
379391
///
392+
/// Parameter is an array, may be provided multiple times.
393+
///
380394
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
381395
different_host: Option<Vec<String>>,
382396

@@ -406,6 +420,8 @@ struct OsSchedulerHints {
406420
/// same host as another server in a set of servers. It is available when
407421
/// `SameHostFilter` is available on cloud side.
408422
///
423+
/// Parameter is an array, may be provided multiple times.
424+
///
409425
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
410426
same_host: Option<Vec<String>>,
411427

openstack_cli/src/compute/v2/server/create_233.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ struct Server {
154154
#[arg(help_heading = "Body parameters", long)]
155155
availability_zone: Option<String>,
156156

157+
/// Parameter is an array, may be provided multiple times.
158+
///
157159
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
158160
block_device_mapping: Option<Vec<Value>>,
159161

@@ -183,6 +185,8 @@ struct Server {
183185
/// A bug has caused the `tag` attribute to no longer be accepted starting
184186
/// with version 2.33. It has been restored in version 2.42.
185187
///
188+
/// Parameter is an array, may be provided multiple times.
189+
///
186190
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
187191
block_device_mapping_v2: Option<Vec<Value>>,
188192

@@ -282,6 +286,8 @@ struct Server {
282286
/// or device tags. These are requested as strings for the networks value,
283287
/// not in a list. See the associated example.
284288
///
289+
/// Parameter is an array, may be provided multiple times.
290+
///
285291
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
286292
networks: Option<Vec<Value>>,
287293

@@ -312,6 +318,8 @@ struct Server {
312318
///
313319
/// **Available until version 2.56**
314320
///
321+
/// Parameter is an array, may be provided multiple times.
322+
///
315323
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long, value_name="JSON", value_parser=parse_json)]
316324
personality: Option<Vec<Value>>,
317325

@@ -331,6 +339,8 @@ struct Server {
331339
/// server in the `default` security group. Requested security groups are
332340
/// not applied to pre-existing ports.
333341
///
342+
/// Parameter is an array, may be provided multiple times.
343+
///
334344
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
335345
security_groups: Option<Vec<String>>,
336346

@@ -370,13 +380,17 @@ struct OsSchedulerHints {
370380
/// `DifferentCellFilter` is available on cloud side that is cell v1
371381
/// environment.
372382
///
383+
/// Parameter is an array, may be provided multiple times.
384+
///
373385
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
374386
different_cell: Option<Vec<String>>,
375387

376388
/// A list of server UUIDs or a server UUID. Schedule the server on a
377389
/// different host from a set of servers. It is available when
378390
/// `DifferentHostFilter` is available on cloud side.
379391
///
392+
/// Parameter is an array, may be provided multiple times.
393+
///
380394
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
381395
different_host: Option<Vec<String>>,
382396

@@ -406,6 +420,8 @@ struct OsSchedulerHints {
406420
/// same host as another server in a set of servers. It is available when
407421
/// `SameHostFilter` is available on cloud side.
408422
///
423+
/// Parameter is an array, may be provided multiple times.
424+
///
409425
#[arg(action=clap::ArgAction::Append, help_heading = "Body parameters", long)]
410426
same_host: Option<Vec<String>>,
411427

0 commit comments

Comments
 (0)