Skip to content

Commit

Permalink
chore(serverless_jobs): rename id to job_definition_id and id to job_…
Browse files Browse the repository at this point in the history
…run_id (scaleway#3518)
  • Loading branch information
scaleway-bot authored and Mia-Cross committed Dec 27, 2023
1 parent 8128f91 commit 64d5869
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ require (
github.com/moby/buildkit v0.11.6
github.com/opencontainers/go-digest v1.0.0
github.com/pkg/errors v0.9.1
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231121104036-359c065b044a
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231124161744-cd76ffab43fb
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/spf13/cobra v1.8.0
github.com/spf13/pflag v1.0.5
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,8 @@ github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDN
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231121104036-359c065b044a h1:AekI2JQPYxW6UUM2bWOVg9jCWnRLdHYLxkdzgqpt1Qk=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231121104036-359c065b044a/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231124161744-cd76ffab43fb h1:2pthrdJYF/LhWQAQQ44w0QVVfSwyGg6AagyUy+pOUP8=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231124161744-cd76ffab43fb/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
github.com/secure-systems-lab/go-securesystemslib v0.4.0 h1:b23VGrQhTA8cN2CbBw7/FulN9fTtqYUdS5+Oxzt+DUE=
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
Expand Down
14 changes: 7 additions & 7 deletions internal/namespaces/jobs/v1alpha1/jobs_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func jobsDefinitionGet() *core.Command {
ArgsType: reflect.TypeOf(jobs.GetJobDefinitionRequest{}),
ArgSpecs: core.ArgSpecs{
{
Name: "id",
Name: "job-definition-id",
Required: true,
Deprecated: false,
Positional: true,
Expand Down Expand Up @@ -217,7 +217,7 @@ func jobsDefinitionUpdate() *core.Command {
ArgsType: reflect.TypeOf(jobs.UpdateJobDefinitionRequest{}),
ArgSpecs: core.ArgSpecs{
{
Name: "id",
Name: "job-definition-id",
Required: true,
Deprecated: false,
Positional: true,
Expand Down Expand Up @@ -294,7 +294,7 @@ func jobsDefinitionDelete() *core.Command {
ArgsType: reflect.TypeOf(jobs.DeleteJobDefinitionRequest{}),
ArgSpecs: core.ArgSpecs{
{
Name: "id",
Name: "job-definition-id",
Required: true,
Deprecated: false,
Positional: true,
Expand Down Expand Up @@ -329,7 +329,7 @@ func jobsDefinitionStart() *core.Command {
ArgsType: reflect.TypeOf(jobs.StartJobDefinitionRequest{}),
ArgSpecs: core.ArgSpecs{
{
Name: "id",
Name: "job-definition-id",
Required: true,
Deprecated: false,
Positional: true,
Expand Down Expand Up @@ -358,7 +358,7 @@ func jobsRunGet() *core.Command {
ArgsType: reflect.TypeOf(jobs.GetJobRunRequest{}),
ArgSpecs: core.ArgSpecs{
{
Name: "id",
Name: "job-run-id",
Required: true,
Deprecated: false,
Positional: true,
Expand Down Expand Up @@ -387,7 +387,7 @@ func jobsRunStop() *core.Command {
ArgsType: reflect.TypeOf(jobs.StopJobRunRequest{}),
ArgSpecs: core.ArgSpecs{
{
Name: "id",
Name: "job-run-id",
Required: true,
Deprecated: false,
Positional: true,
Expand Down Expand Up @@ -423,7 +423,7 @@ func jobsRunList() *core.Command {
EnumValues: []string{"created_at_asc", "created_at_desc"},
},
{
Name: "id",
Name: "job-definition-id",
Required: false,
Deprecated: false,
Positional: false,
Expand Down

0 comments on commit 64d5869

Please sign in to comment.