Skip to content

Commit

Permalink
feat(dedibox): change verbs for options (#4110)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Sep 9, 2024
1 parent 004e79d commit b3b142e
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"reflect"

"github.com/scaleway/scaleway-cli/v2/core"
applesilicon "github.com/scaleway/scaleway-sdk-go/api/applesilicon/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/api/applesilicon/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/scw"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/billing/v2beta1/billing_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"reflect"

"github.com/scaleway/scaleway-cli/v2/core"
billing "github.com/scaleway/scaleway-sdk-go/api/billing/v2beta1"
"github.com/scaleway/scaleway-sdk-go/api/billing/v2beta1"
"github.com/scaleway/scaleway-sdk-go/scw"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/block/v1alpha1/block_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"reflect"

"github.com/scaleway/scaleway-cli/v2/core"
block "github.com/scaleway/scaleway-sdk-go/api/block/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/api/block/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/scw"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/container/v1beta1/container_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"reflect"

"github.com/scaleway/scaleway-cli/v2/core"
container "github.com/scaleway/scaleway-sdk-go/api/container/v1beta1"
"github.com/scaleway/scaleway-sdk-go/api/container/v1beta1"
"github.com/scaleway/scaleway-sdk-go/scw"
)

Expand Down
32 changes: 11 additions & 21 deletions internal/namespaces/dedibox/v1/dedibox_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ func GetGeneratedCommands() *core.Commands {
dediboxServer(),
dediboxService(),
dediboxOffer(),
dediboxOption(),
dediboxOs(),
dediboxBmc(),
dediboxReverseIP(),
Expand All @@ -38,10 +37,10 @@ func GetGeneratedCommands() *core.Commands {
dediboxRpnV2(),
dediboxServerList(),
dediboxServerGet(),
dediboxOptionList(),
dediboxOptionSubscribe(),
dediboxServerListOptions(),
dediboxServerSubscribeOption(),
dediboxServerCreate(),
dediboxOptionSubscribeStorage(),
dediboxServerSubscribeStorage(),
dediboxServerUpdate(),
dediboxServerReboot(),
dediboxServerStart(),
Expand Down Expand Up @@ -167,15 +166,6 @@ func dediboxOffer() *core.Command {
}
}

func dediboxOption() *core.Command {
return &core.Command{
Short: `Subscribable server options commands`,
Long: `Subscribable server options commands.`,
Namespace: "dedibox",
Resource: "option",
}
}

func dediboxOs() *core.Command {
return &core.Command{
Short: `OS commands`,
Expand Down Expand Up @@ -368,13 +358,13 @@ func dediboxServerGet() *core.Command {
}
}

func dediboxOptionList() *core.Command {
func dediboxServerListOptions() *core.Command {
return &core.Command{
Short: `List subscribable server options`,
Long: `List subscribable options associated to the given server ID.`,
Namespace: "dedibox",
Resource: "option",
Verb: "list",
Resource: "server",
Verb: "list-options",
// Deprecated: false,
ArgsType: reflect.TypeOf(dedibox.ListSubscribableServerOptionsRequest{}),
ArgSpecs: core.ArgSpecs{
Expand Down Expand Up @@ -407,13 +397,13 @@ func dediboxOptionList() *core.Command {
}
}

func dediboxOptionSubscribe() *core.Command {
func dediboxServerSubscribeOption() *core.Command {
return &core.Command{
Short: `Subscribe server option`,
Long: `Subscribe option for the given server ID.`,
Namespace: "dedibox",
Resource: "option",
Verb: "subscribe",
Resource: "server",
Verb: "subscribe-option",
// Deprecated: false,
ArgsType: reflect.TypeOf(dedibox.SubscribeServerOptionRequest{}),
ArgSpecs: core.ArgSpecs{
Expand Down Expand Up @@ -489,12 +479,12 @@ func dediboxServerCreate() *core.Command {
}
}

func dediboxOptionSubscribeStorage() *core.Command {
func dediboxServerSubscribeStorage() *core.Command {
return &core.Command{
Short: `Subscribe storage server option`,
Long: `Subscribe storage option for the given server ID.`,
Namespace: "dedibox",
Resource: "option",
Resource: "server",
Verb: "subscribe-storage",
// Deprecated: false,
ArgsType: reflect.TypeOf(dedibox.SubscribeStorageOptionsRequest{}),
Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/documentdb/v1beta1/documentdb_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"reflect"

"github.com/scaleway/scaleway-cli/v2/core"
documentdb "github.com/scaleway/scaleway-sdk-go/api/documentdb/v1beta1"
"github.com/scaleway/scaleway-sdk-go/api/documentdb/v1beta1"
"github.com/scaleway/scaleway-sdk-go/scw"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/domain/v2beta1/domain_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"reflect"

"github.com/scaleway/scaleway-cli/v2/core"
domain "github.com/scaleway/scaleway-sdk-go/api/domain/v2beta1"
"github.com/scaleway/scaleway-sdk-go/api/domain/v2beta1"
"github.com/scaleway/scaleway-sdk-go/scw"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"reflect"

"github.com/scaleway/scaleway-cli/v2/core"
edge_services "github.com/scaleway/scaleway-sdk-go/api/edge_services/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/api/edge_services/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/scw"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/flexibleip/v1alpha1/flexibleip_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"reflect"

"github.com/scaleway/scaleway-cli/v2/core"
flexibleip "github.com/scaleway/scaleway-sdk-go/api/flexibleip/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/api/flexibleip/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/scw"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/function/v1beta1/function_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"reflect"

"github.com/scaleway/scaleway-cli/v2/core"
function "github.com/scaleway/scaleway-sdk-go/api/function/v1beta1"
"github.com/scaleway/scaleway-sdk-go/api/function/v1beta1"
"github.com/scaleway/scaleway-sdk-go/scw"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/inference/v1beta1/inference_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"reflect"

"github.com/scaleway/scaleway-cli/v2/core"
inference "github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1"
"github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1"
"github.com/scaleway/scaleway-sdk-go/scw"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/ipfs/v1alpha1/ipfs_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"reflect"

"github.com/scaleway/scaleway-cli/v2/core"
ipfs "github.com/scaleway/scaleway-sdk-go/api/ipfs/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/api/ipfs/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/scw"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/jobs/v1alpha1/jobs_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"reflect"

"github.com/scaleway/scaleway-cli/v2/core"
jobs "github.com/scaleway/scaleway-sdk-go/api/jobs/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/api/jobs/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/scw"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/mnq/v1beta1/mnq_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"reflect"

"github.com/scaleway/scaleway-cli/v2/core"
mnq "github.com/scaleway/scaleway-sdk-go/api/mnq/v1beta1"
"github.com/scaleway/scaleway-sdk-go/api/mnq/v1beta1"
"github.com/scaleway/scaleway-sdk-go/scw"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/secret/v1beta1/secret_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"reflect"

"github.com/scaleway/scaleway-cli/v2/core"
secret "github.com/scaleway/scaleway-sdk-go/api/secret/v1beta1"
"github.com/scaleway/scaleway-sdk-go/api/secret/v1beta1"
"github.com/scaleway/scaleway-sdk-go/scw"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"reflect"

"github.com/scaleway/scaleway-cli/v2/core"
serverless_sqldb "github.com/scaleway/scaleway-sdk-go/api/serverless_sqldb/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/api/serverless_sqldb/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/scw"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/webhosting/v1alpha1/webhosting_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"reflect"

"github.com/scaleway/scaleway-cli/v2/core"
webhosting "github.com/scaleway/scaleway-sdk-go/api/webhosting/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/scw"
)

Expand Down

0 comments on commit b3b142e

Please sign in to comment.