Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(instance): remove unwanted required field on CreateSnapshot #2493

Merged
merged 2 commits into from
Sep 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ EXAMPLES:

ARGS:
[name=<generated>] Name of the snapshot
volume-id UUID of the volume
[volume-id] UUID of the volume
[unified] Whether a snapshot is unified or not.
[tags.{index}] The tags of the snapshot
[project-id] Project ID to use. If none is passed the default project ID will be used
Expand Down
2 changes: 1 addition & 1 deletion docs/commands/instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -1928,7 +1928,7 @@ scw instance snapshot create [arg=value ...]
| Name | | Description |
|------|---|-------------|
| name | Default: `<generated>` | Name of the snapshot |
| volume-id | Required | UUID of the volume |
| volume-id | | UUID of the volume |
| unified | | Whether a snapshot is unified or not. |
| tags.{index} | | The tags of the snapshot |
| project-id | | Project ID to use. If none is passed the default project ID will be used |
Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/instance/v1/instance_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ func instanceSnapshotCreate() *core.Command {
{
Name: "volume-id",
Short: `UUID of the volume`,
Required: true,
Required: false,
Deprecated: false,
Positional: false,
},
Expand Down