Skip to content

Commit ac34f27

Browse files
scaleway-botyfodil
andauthored
feat(inference): add organization id to ListModelsRequest (#5462)
Co-authored-by: Yacine Fodil <105779815+yfodil@users.noreply.github.com>
1 parent 1868e19 commit ac34f27

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

cmd/scw/testdata/test-all-usage-inference-model-list-usage.golden

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ USAGE:
66
scw inference model list [arg=value ...]
77

88
ARGS:
9-
[order-by] Order in which to return results (display_rank_asc | created_at_asc | created_at_desc | name_asc | name_desc)
10-
[project-id] Filter by Project ID
11-
[name] Filter by model name
12-
[tags.{index}] Filter by tags
13-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | all)
9+
[order-by] Order in which to return results (display_rank_asc | created_at_asc | created_at_desc | name_asc | name_desc)
10+
[project-id] Filter by Project ID
11+
[name] Filter by model name
12+
[tags.{index}] Filter by tags
13+
[organization-id] Filter by Organization ID
14+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | all)
1415

1516
FLAGS:
1617
-h, --help help for list

docs/commands/inference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ scw inference model list [arg=value ...]
324324
| project-id | | Filter by Project ID |
325325
| name | | Filter by model name |
326326
| tags.{index} | | Filter by tags |
327+
| organization-id | | Filter by Organization ID |
327328
| region | Default: `fr-par`<br />One of: `fr-par`, `all` | Region to target. If none is passed will use default region from the config |
328329

329330

internal/namespaces/inference/v1/inference_cli.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,13 @@ func inferenceModelList() *core.Command {
581581
Deprecated: false,
582582
Positional: false,
583583
},
584+
{
585+
Name: "organization-id",
586+
Short: `Filter by Organization ID`,
587+
Required: false,
588+
Deprecated: false,
589+
Positional: false,
590+
},
584591
core.RegionArgSpec(
585592
scw.RegionFrPar,
586593
scw.Region(core.AllLocalities),

0 commit comments

Comments
 (0)