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

Added volume snapshot querying #11

Closed
wants to merge 2 commits into from
Closed

Conversation

jdenoy
Copy link
Contributor

@jdenoy jdenoy commented Jan 5, 2024

ovh/plugin.go Outdated
"ovh_cloud_ssh_key": tableOvhCloudSshKey(),
"ovh_cloud_storage": tableOvhCloudStorage(),
"ovh_cloud_volume": tableOvhCloudVolume(),
"ovh_cloud_volume_snapshot": tableOvhCloudVolumeSnapshot(),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you fix the indentation here?

func tableOvhCloudVolumeSnapshot() *plugin.Table {
return &plugin.Table{
Name: "ovh_cloud_volume_snapshot",
Description: "A volume is an independent additional disk.",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description should be updated I guess.

{
Name: "id",
Type: proto.ColumnType_STRING,
Description: "ID.",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Description: "ID.",
Description: "Snapshot ID.",

{
Name: "creationDate",
Type: proto.ColumnType_TIMESTAMP,
Description: "Volume creation date.",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Description: "Volume creation date.",
Description: "Snapshot creation date.",

{
Name: "volumeId",
Type: proto.ColumnType_STRING,
Description: "Volume Snapshot ID.",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Description: "Volume Snapshot ID.",
Description: "Volume source ID.",

{
Name: "status",
Type: proto.ColumnType_STRING,
Description: "Volume Snapshot Status. (available, creating, deleting, error, error_deleting)",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Description: "Volume Snapshot Status. (available, creating, deleting, error, error_deleting)",
Description: "Volume Snapshot Status (available, creating, deleting, error, error_deleting).",

@francois2metz
Copy link
Owner

Btw thanks for your contribution! I appreciate it.

@jdenoy
Copy link
Contributor Author

jdenoy commented Jan 8, 2024

Will send new PR with corrections

@jdenoy jdenoy closed this Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants