// Code generated by go-swagger; DO NOT EDIT. // This file is part of MinIO Console Server // Copyright (c) 2021 MinIO, Inc. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . // package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // AddBucketLifecycle add bucket lifecycle // // swagger:model addBucketLifecycle type AddBucketLifecycle struct { // Non required, toggle to disable or enable rule Disable bool `json:"disable,omitempty"` // Non required, toggle to disable or enable rule ExpiredObjectDeleteMarker bool `json:"expired_object_delete_marker,omitempty"` // Required in case of expiry_days or transition fields are not set. it defines an expiry date for ILM ExpiryDate string `json:"expiry_date,omitempty"` // Required in case of expiry_date or transition fields are not set. it defines an expiry days for ILM ExpiryDays int32 `json:"expiry_days,omitempty"` // Non required, can be set in case of expiration is enabled NoncurrentversionExpirationDays int32 `json:"noncurrentversion_expiration_days,omitempty"` // Non required, can be set in case of transition is enabled NoncurrentversionTransitionDays int32 `json:"noncurrentversion_transition_days,omitempty"` // Non required, can be set in case of transition is enabled NoncurrentversionTransitionStorageClass string `json:"noncurrentversion_transition_storage_class,omitempty"` // Non required field, it matches a prefix to perform ILM operations on it Prefix string `json:"prefix,omitempty"` // Required only in case of transition is set. it refers to a tier StorageClass string `json:"storage_class,omitempty"` // Non required field, tags to match ILM files Tags string `json:"tags,omitempty"` // Required in case of transition_days or expiry fields are not set. it defines a transition date for ILM TransitionDate string `json:"transition_date,omitempty"` // Required in case of transition_date or expiry fields are not set. it defines a transition days for ILM TransitionDays int32 `json:"transition_days,omitempty"` } // Validate validates this add bucket lifecycle func (m *AddBucketLifecycle) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this add bucket lifecycle based on context it is used func (m *AddBucketLifecycle) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *AddBucketLifecycle) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *AddBucketLifecycle) UnmarshalBinary(b []byte) error { var res AddBucketLifecycle if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil }