Skip to content

Commit

Permalink
chore: adjust definition of restoreSource.until fields
Browse files Browse the repository at this point in the history
  • Loading branch information
powerfooI committed Sep 21, 2023
1 parent 9608fa8 commit d95afe0
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions api/v1alpha1/obtenant_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,21 @@ type OBTenantSpec struct {

// Source for restoring or creating standby
type TenantSourceSpec struct {
Tenant *string `json:"tenant,omitempty"`
Restore *RestoreSource `json:"restore,omitempty"`
Tenant *string `json:"tenant,omitempty"`
Restore *RestoreSourceSpec `json:"restore,omitempty"`
}

type RestoreSource struct {
SourceUri string `json:"sourceUri"`
Until string `json:"until"`
Description *string `json:"description,omitempty"`
ReplayLogUntil *string `json:"replayLogUntil,omitempty"`
type RestoreSourceSpec struct {
SourceUri string `json:"sourceUri"`
Until RestoreUntilConfig `json:"until"`
Description *string `json:"description,omitempty"`
ReplayLogUntil *RestoreUntilConfig `json:"replayLogUntil,omitempty"`
}

type RestoreUntilConfig struct {
Timestamp *string `json:"timestamp,omitempty"`
Scn *string `json:"scn,omitempty"`
Unlimited bool `json:"unlimited,omitempty"`
}

type ResourcePoolSpec struct {
Expand Down

0 comments on commit d95afe0

Please sign in to comment.