remove quota FIFO support (#1492)

This commit is contained in:
Harshavardhana
2022-01-31 09:10:06 -08:00
committed by GitHub
parent 06e1592b54
commit 1e00111b00
13 changed files with 196 additions and 218 deletions

View File

@@ -45,7 +45,7 @@ type SetBucketQuota struct {
Enabled *bool `json:"enabled"`
// quota type
// Enum: [fifo hard]
// Enum: [hard]
QuotaType string `json:"quota_type,omitempty"`
}
@@ -80,7 +80,7 @@ var setBucketQuotaTypeQuotaTypePropEnum []interface{}
func init() {
var res []string
if err := json.Unmarshal([]byte(`["fifo","hard"]`), &res); err != nil {
if err := json.Unmarshal([]byte(`["hard"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
@@ -90,9 +90,6 @@ func init() {
const (
// SetBucketQuotaQuotaTypeFifo captures enum value "fifo"
SetBucketQuotaQuotaTypeFifo string = "fifo"
// SetBucketQuotaQuotaTypeHard captures enum value "hard"
SetBucketQuotaQuotaTypeHard string = "hard"
)