Skip to content

feat(ovhcloud-cli): migrate file storage share endpoints to v2 - #278

Merged
amstuta merged 14 commits into
mainfrom
dev/tleterme/migrate-file-storage-v2
Sep 9, 2026
Merged

feat(ovhcloud-cli): migrate file storage share endpoints to v2#278
amstuta merged 14 commits into
mainfrom
dev/tleterme/migrate-file-storage-v2

Conversation

@Bxota

@Bxota Bxota commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Description

Migrate Cloud File Storage share commands from the v1 API to the v2 API.

The migration updates the create, list, get, edit, and delete operations to use the v2 /publicCloud/project/{projectId}/storage/file/share endpoints. It also updates the request payload structure, OpenAPI schema, parameter example, output template, and generated documentation.

This also adds create, list, get and delete operations to use /publicCloud/project/{projectId}/storage/file/network endpoints. These points are necessary to use the new endpoints above.

ACL and Snapshot endpoints are intentionally excluded from this change.

Type of change

  • Improvement (improvement of existing commands)
  • Documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have commented my code
  • I ran go mod tidy

@Bxota
Bxota requested a review from a team as a code owner September 4, 2026 11:39
@Bxota
Bxota marked this pull request as draft September 4, 2026 11:40
@Bxota
Bxota force-pushed the dev/tleterme/migrate-file-storage-v2 branch from 970a170 to f616e8b Compare September 4, 2026 11:54
@Bxota
Bxota marked this pull request as ready for review September 4, 2026 11:55
Comment thread internal/services/cloud/cloud_storage_file.go Outdated
Signed-off-by: Thomas Leterme <thomas.leterme@corp.ovh.com>
@Bxota
Bxota force-pushed the dev/tleterme/migrate-file-storage-v2 branch 2 times, most recently from 13ff9e5 to 3c1f3b3 Compare September 4, 2026 12:59
Comment thread doc/ovhcloud_cloud_storage_file_share_create.md
Comment thread internal/services/cloud/templates/cloud_storage_file_share.tmpl Outdated
@Bxota
Bxota marked this pull request as draft September 7, 2026 08:10
Signed-off-by: Thomas Leterme <thomas.leterme@corp.ovh.com>
@Bxota
Bxota force-pushed the dev/tleterme/migrate-file-storage-v2 branch from 908fd2f to abcc5ad Compare September 7, 2026 09:48
Signed-off-by: Thomas Leterme <thomas.leterme@corp.ovh.com>
@Bxota
Bxota force-pushed the dev/tleterme/migrate-file-storage-v2 branch from abcc5ad to 20b2967 Compare September 7, 2026 09:50
@Bxota
Bxota marked this pull request as ready for review September 7, 2026 09:59
--init-file string Create a file with example parameters
--name string Share name
--network-id string Network ID
--protocol string Share protocol

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

it would be worth mentioning the available values that can be fed here, and have a default value (only NFS for now, so a good default). Same comment for the share-type flag that should default on STANDARD_1AZ

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Documentation up default value for :

  • share-type
  • protocol

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't see this change in the cobra command declaration, could you add it and re-run make doc ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

make doc already done, is everything ok ?

Comment thread internal/services/cloud/cloud_storage_file.go Outdated
Signed-off-by: Thomas Leterme <thomas.leterme@corp.ovh.com>
@Bxota
Bxota force-pushed the dev/tleterme/migrate-file-storage-v2 branch from 20b2967 to 5208f08 Compare September 8, 2026 07:59
Signed-off-by: Thomas Leterme <thomas.leterme@corp.ovh.com>
Signed-off-by: Thomas Leterme <thomas.leterme@corp.ovh.com>
Signed-off-by: Thomas Leterme <thomas.leterme@corp.ovh.com>
Signed-off-by: Thomas Leterme <thomas.leterme@corp.ovh.com>
Signed-off-by: Thomas Leterme <thomas.leterme@corp.ovh.com>
Signed-off-by: Thomas Leterme <thomas.leterme@corp.ovh.com>
Signed-off-by: Thomas Leterme <thomas.leterme@corp.ovh.com>
Signed-off-by: Thomas Leterme <thomas.leterme@corp.ovh.com>
Signed-off-by: Thomas Leterme <thomas.leterme@corp.ovh.com>
@Bxota
Bxota force-pushed the dev/tleterme/migrate-file-storage-v2 branch from 5208f08 to 26b8601 Compare September 8, 2026 08:03
Signed-off-by: Thomas Leterme <thomas.leterme@corp.ovh.com>
@amstuta
amstuta merged commit 43fc001 into main Sep 9, 2026
7 checks passed
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.

3 participants