github.com/minio/console@v1.4.1/models/site_replication_status_response.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 // This file is part of MinIO Console Server 4 // Copyright (c) 2023 MinIO, Inc. 5 // 6 // This program is free software: you can redistribute it and/or modify 7 // it under the terms of the GNU Affero General Public License as published by 8 // the Free Software Foundation, either version 3 of the License, or 9 // (at your option) any later version. 10 // 11 // This program is distributed in the hope that it will be useful, 12 // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 // GNU Affero General Public License for more details. 15 // 16 // You should have received a copy of the GNU Affero General Public License 17 // along with this program. If not, see <http://www.gnu.org/licenses/>. 18 // 19 20 package models 21 22 // This file was generated by the swagger tool. 23 // Editing this file might prove futile when you re-run the swagger generate command 24 25 import ( 26 "context" 27 28 "github.com/go-openapi/strfmt" 29 "github.com/go-openapi/swag" 30 ) 31 32 // SiteReplicationStatusResponse site replication status response 33 // 34 // swagger:model siteReplicationStatusResponse 35 type SiteReplicationStatusResponse struct { 36 37 // bucket stats 38 BucketStats interface{} `json:"bucketStats,omitempty"` 39 40 // enabled 41 Enabled bool `json:"enabled,omitempty"` 42 43 // group stats 44 GroupStats interface{} `json:"groupStats,omitempty"` 45 46 // max buckets 47 MaxBuckets int64 `json:"maxBuckets,omitempty"` 48 49 // max groups 50 MaxGroups int64 `json:"maxGroups,omitempty"` 51 52 // max policies 53 MaxPolicies int64 `json:"maxPolicies,omitempty"` 54 55 // max users 56 MaxUsers int64 `json:"maxUsers,omitempty"` 57 58 // policy stats 59 PolicyStats interface{} `json:"policyStats,omitempty"` 60 61 // sites 62 Sites interface{} `json:"sites,omitempty"` 63 64 // stats summary 65 StatsSummary interface{} `json:"statsSummary,omitempty"` 66 67 // user stats 68 UserStats interface{} `json:"userStats,omitempty"` 69 } 70 71 // Validate validates this site replication status response 72 func (m *SiteReplicationStatusResponse) Validate(formats strfmt.Registry) error { 73 return nil 74 } 75 76 // ContextValidate validates this site replication status response based on context it is used 77 func (m *SiteReplicationStatusResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 78 return nil 79 } 80 81 // MarshalBinary interface implementation 82 func (m *SiteReplicationStatusResponse) MarshalBinary() ([]byte, error) { 83 if m == nil { 84 return nil, nil 85 } 86 return swag.WriteJSON(m) 87 } 88 89 // UnmarshalBinary interface implementation 90 func (m *SiteReplicationStatusResponse) UnmarshalBinary(b []byte) error { 91 var res SiteReplicationStatusResponse 92 if err := swag.ReadJSON(b, &res); err != nil { 93 return err 94 } 95 *m = res 96 return nil 97 }