Skip to content

Commit

Permalink
feat(registry): add support for pl-waw (#1587)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Dec 7, 2020
1 parent 619b43f commit dfb1a31
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ USAGE:

ARGS:
image-id The unique ID of the Image
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for delete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ USAGE:

ARGS:
image-id The unique ID of the Image
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ARGS:
[name] Filter by the Image name (exact match)
[project-id] Filter by Project ID
[organization-id] Filter by Organization ID
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ USAGE:
ARGS:
image-id Image ID to update
[visibility] A `public` image is pullable from internet without authentication, opposed to a `private` image. `inherit` will use the namespace `is_public` parameter (visibility_unknown | inherit | public | private)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ARGS:
[project-id] Project ID to use. If none is passed the default project ID will be used
[is-public] Define the default visibility policy
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for create
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ USAGE:

ARGS:
namespace-id The unique ID of the Namespace
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for delete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ USAGE:

ARGS:
namespace-id The unique ID of the Namespace
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ARGS:
[project-id] Filter by Project ID
[name] Filter by the namespace name (exact match)
[organization-id] Filter by Organization ID
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ARGS:
namespace-id Namespace ID to update
[description] Define a description
[is-public] Define the default visibility policy
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ USAGE:
ARGS:
tag-id The unique ID of the tag
[force] If two tags share the same digest the deletion will fail unless this parameter is set to true
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for delete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ USAGE:

ARGS:
tag-id The unique ID of the Tag
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ARGS:
[order-by] Field by which to order the display of Images (created_at_asc | created_at_desc | name_asc | name_desc)
image-id The unique ID of the image
[name] Filter by the tag name (exact match)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for list
Expand Down
24 changes: 12 additions & 12 deletions internal/namespaces/registry/v1/registry_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func registryNamespaceList() *core.Command {
Deprecated: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*registry.ListNamespacesRequest)
Expand Down Expand Up @@ -204,7 +204,7 @@ func registryNamespaceGet() *core.Command {
Deprecated: false,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*registry.GetNamespaceRequest)
Expand Down Expand Up @@ -250,7 +250,7 @@ func registryNamespaceCreate() *core.Command {
Positional: false,
},
core.OrganizationIDArgSpec(),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*registry.CreateNamespaceRequest)
Expand Down Expand Up @@ -294,7 +294,7 @@ func registryNamespaceUpdate() *core.Command {
Deprecated: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*registry.UpdateNamespaceRequest)
Expand Down Expand Up @@ -324,7 +324,7 @@ func registryNamespaceDelete() *core.Command {
Deprecated: false,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*registry.DeleteNamespaceRequest)
Expand Down Expand Up @@ -383,7 +383,7 @@ func registryImageList() *core.Command {
Deprecated: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*registry.ListImagesRequest)
Expand Down Expand Up @@ -449,7 +449,7 @@ func registryImageGet() *core.Command {
Deprecated: false,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*registry.GetImageRequest)
Expand Down Expand Up @@ -487,7 +487,7 @@ func registryImageUpdate() *core.Command {
Positional: false,
EnumValues: []string{"visibility_unknown", "inherit", "public", "private"},
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*registry.UpdateImageRequest)
Expand Down Expand Up @@ -517,7 +517,7 @@ func registryImageDelete() *core.Command {
Deprecated: false,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*registry.DeleteImageRequest)
Expand Down Expand Up @@ -562,7 +562,7 @@ func registryTagList() *core.Command {
Deprecated: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*registry.ListTagsRequest)
Expand Down Expand Up @@ -596,7 +596,7 @@ func registryTagGet() *core.Command {
Deprecated: false,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*registry.GetTagRequest)
Expand Down Expand Up @@ -633,7 +633,7 @@ func registryTagDelete() *core.Command {
Deprecated: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*registry.DeleteTagRequest)
Expand Down

0 comments on commit dfb1a31

Please sign in to comment.