github.com/minio/console@v1.3.0/models/subnet_organization.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 // SubnetOrganization subnet organization 33 // 34 // swagger:model subnetOrganization 35 type SubnetOrganization struct { 36 37 // account Id 38 AccountID int64 `json:"accountId,omitempty"` 39 40 // company 41 Company string `json:"company,omitempty"` 42 43 // is account owner 44 IsAccountOwner bool `json:"isAccountOwner,omitempty"` 45 46 // short name 47 ShortName string `json:"shortName,omitempty"` 48 49 // subscription status 50 SubscriptionStatus string `json:"subscriptionStatus,omitempty"` 51 52 // user Id 53 UserID int64 `json:"userId,omitempty"` 54 } 55 56 // Validate validates this subnet organization 57 func (m *SubnetOrganization) Validate(formats strfmt.Registry) error { 58 return nil 59 } 60 61 // ContextValidate validates this subnet organization based on context it is used 62 func (m *SubnetOrganization) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 63 return nil 64 } 65 66 // MarshalBinary interface implementation 67 func (m *SubnetOrganization) MarshalBinary() ([]byte, error) { 68 if m == nil { 69 return nil, nil 70 } 71 return swag.WriteJSON(m) 72 } 73 74 // UnmarshalBinary interface implementation 75 func (m *SubnetOrganization) UnmarshalBinary(b []byte) error { 76 var res SubnetOrganization 77 if err := swag.ReadJSON(b, &res); err != nil { 78 return err 79 } 80 *m = res 81 return nil 82 }