Skip to content

Commit 9866588

Browse files
committed
feat: update generated APIs
1 parent 2a84aa6 commit 9866588

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

cmd/scw/testdata/test-all-usage-jobs-run-list-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ARGS:
1010
[job-definition-id]
1111
[project-id]
1212
[state] (unknown_state | queued | scheduled | running | succeeded | failed | canceled | internal_error)
13+
[states.{index}] (unknown_state | queued | scheduled | running | succeeded | failed | canceled | internal_error)
1314
[organization-id]
1415
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
1516

docs/commands/jobs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ scw jobs run list [arg=value ...]
218218
| job-definition-id | | |
219219
| project-id | | |
220220
| state | One of: `unknown_state`, `queued`, `scheduled`, `running`, `succeeded`, `failed`, `canceled`, `internal_error` | |
221+
| states.{index} | One of: `unknown_state`, `queued`, `scheduled`, `running`, `succeeded`, `failed`, `canceled`, `internal_error` | |
221222
| organization-id | | |
222223
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw`, `all` | Region to target. If none is passed will use default region from the config |
223224

internal/namespaces/jobs/v1alpha1/jobs_cli.go

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"reflect"
99

1010
"github.com/scaleway/scaleway-cli/v2/core"
11-
jobs "github.com/scaleway/scaleway-sdk-go/api/jobs/v1alpha1"
11+
"github.com/scaleway/scaleway-sdk-go/api/jobs/v1alpha1"
1212
"github.com/scaleway/scaleway-sdk-go/scw"
1313
)
1414

@@ -836,6 +836,22 @@ func jobsRunList() *core.Command {
836836
"internal_error",
837837
},
838838
},
839+
{
840+
Name: "states.{index}",
841+
Required: false,
842+
Deprecated: false,
843+
Positional: false,
844+
EnumValues: []string{
845+
"unknown_state",
846+
"queued",
847+
"scheduled",
848+
"running",
849+
"succeeded",
850+
"failed",
851+
"canceled",
852+
"internal_error",
853+
},
854+
},
839855
{
840856
Name: "organization-id",
841857
Required: false,

0 commit comments

Comments
 (0)