Skip to content

Commit

Permalink
Merge pull request #44 from IBM/cross-snapshot-re
Browse files Browse the repository at this point in the history
added snapshotCRN field
  • Loading branch information
arahamad authored Jun 19, 2024
2 parents 6093e32 + 6857f48 commit fae4854
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/provider/data_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,19 @@ type Volume struct {
// Only for VPC volume provider
VPCVolume

// ID of snapshot to be restored
SnapshotID string `json:"snapshotID,omitempty"`
// volume to be restored from snapshot.
Snapshot
}

// Snapshot ...
type Snapshot struct {
VolumeID string `json:"volumeID"`

// a unique Snapshot ID which created by the provider
SnapshotID string `json:"snapshotID"`
SnapshotID string `json:"snapshotID,omitempty"`

// a unique Snapshot CRN assigned by cloud provider to snapshot
SnapshotCRN string `json:"snapshotCRN,omitempty"`

// The size of the snapshot, in bytes
SnapshotSize int64 `json:"snapshotSize"`
Expand Down

0 comments on commit fae4854

Please sign in to comment.