Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@uzaxirr
Copy link
Contributor

@uzaxirr uzaxirr commented May 12, 2025

fixes: #252

uzaxirr added 2 commits May 12, 2025 20:50
…oreInfo types for restore operation response
…t new response structure with detailed instance information
@uzaxirr uzaxirr requested a review from Copilot May 12, 2025 15:24
@uzaxirr uzaxirr self-assigned this May 12, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces new types (ResourceSnapshotRestore and InstanceRestoreInfo) and updates the restore operation response handling to reflect the new structure.

  • Adds new types and fields to represent restore operation responses.
  • Updates both the client function and corresponding tests to use the new response structure.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
resource_snapshot_test.go Updates tests to assert on the new Instance field in the response
resource_snapshot.go Implements new response types and updates the restore function signature
Comments suppressed due to low confidence (1)

resource_snapshot_test.go:167

  • [nitpick] Consider adding assertions for 'IncludeVolumes' and 'OverwriteExisting' fields to provide comprehensive test coverage of the new restore response structure.
if got.Instance.Name != "restored-snapshot-op-name" {

@giornetta giornetta merged commit 2669416 into master May 12, 2025
16 checks passed
uzaxirr added a commit that referenced this pull request May 13, 2025
…oreInfo types for restore operation response (#256)

* feat(resource_snapshot): add ResourceSnapshotRestore and InstanceRestoreInfo types for restore operation response

* test(resource_snapshot): update TestRestoreResourceSnapshot to reflect new response structure with detailed instance information

* Update resource_snapshot.go

Co-authored-by: Copilot <[email protected]>

* refactor(resource_snapshot): remove IncludeVolumes field from InstanceRestoreInfo and update related test

---------

Co-authored-by: Copilot <[email protected]>
uzaxirr added a commit that referenced this pull request May 13, 2025
…anceRestoreInfo types for restore operation response (#256)"

This reverts commit 57249ec.
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.

[Resource Snapshots] RestoreResourceSnapshot return type mismatch

3 participants