Skip to content

Commit

Permalink
feat(rdb): add volume_type for snapshots (#1951)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Dec 13, 2023
1 parent 236a201 commit 12d10cd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions api/rdb/v1/rdb_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,15 @@ type NodeTypeVolumeType struct {
Class StorageClass `json:"class"`
}

// SnapshotVolumeType: snapshot volume type.
type SnapshotVolumeType struct {
// Type: default value: lssd
Type VolumeType `json:"type"`

// Class: default value: unknown_storage_class
Class StorageClass `json:"class"`
}

// ACLRuleRequest: acl rule request.
type ACLRuleRequest struct {
IP scw.IPNet `json:"ip"`
Expand Down Expand Up @@ -1363,6 +1372,9 @@ type Snapshot struct {
// NodeType: source node type.
NodeType string `json:"node_type"`

// VolumeType: type of volume where data is stored (lssd, bssd or sbs).
VolumeType *SnapshotVolumeType `json:"volume_type"`

// Region: region of this snapshot.
Region scw.Region `json:"region"`
}
Expand Down

0 comments on commit 12d10cd

Please sign in to comment.