Skip to content

Commit

Permalink
Add new properties for agent-level backups
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiol committed Nov 12, 2024
1 parent 65414da commit a6780b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/service/ecloud/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ type Instance struct {
RAMCapacity int `json:"ram_capacity"`
Locked bool `json:"locked"`
BackupEnabled bool `json:"backup_enabled"`
BackupGatewayID string `json:"backup_gateway_id"`
BackupAgentEnabled bool `json:"secure_backup"` // TODO: Change tag to 'backup_agent_enabled' when ADO#34659 released
IsEncrypted bool `json:"is_encrypted"`
Platform string `json:"platform"`
VolumeCapacity int `json:"volume_capacity"`
Expand Down
2 changes: 2 additions & 0 deletions pkg/service/ecloud/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ type CreateInstanceRequest struct {
VolumeCapacity int `json:"volume_capacity"`
VolumeIOPS int `json:"volume_iops,omitempty"`
BackupEnabled bool `json:"backup_enabled"`
BackupGatewayID string `json:"backup_gateway_id,omitempty"`
BackupAgentEnabled bool `json:"secure_backup,omitempty"` // XXX: This will change in the future to `backup_agent_enabled`, see ADO#34659
IsEncrypted bool `json:"is_encrypted"`
NetworkID string `json:"network_id,omitempty"`
FloatingIPID string `json:"floating_ip_id,omitempty"`
Expand Down

0 comments on commit a6780b5

Please sign in to comment.