github.com/ActiveState/cli@v0.0.0-20240508170324-6801f60cd051/pkg/platform/api/mono/mono_models/tier.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 package mono_models 4 5 // This file was generated by the swagger tool. 6 // Editing this file might prove futile when you re-run the swagger generate command 7 8 import ( 9 "context" 10 11 "github.com/go-openapi/strfmt" 12 "github.com/go-openapi/swag" 13 ) 14 15 // Tier tier 16 // 17 // swagger:model Tier 18 type Tier struct { 19 20 // description 21 Description string `json:"description,omitempty"` 22 23 // is default 24 IsDefault bool `json:"isDefault,omitempty"` 25 26 // is personal 27 IsPersonal bool `json:"isPersonal,omitempty"` 28 29 // limit active runtimes 30 LimitActiveRuntimes int64 `json:"limitActiveRuntimes,omitempty"` 31 32 // limit minimum users 33 LimitMinimumUsers int64 `json:"limitMinimumUsers,omitempty"` 34 35 // limit node users threshold 36 LimitNodeUsersThreshold int64 `json:"limitNodeUsersThreshold,omitempty"` 37 38 // limit nodes per threshold 39 LimitNodesPerThreshold int64 `json:"limitNodesPerThreshold,omitempty"` 40 41 // limit static runtimes 42 LimitStaticRuntimes int64 `json:"limitStaticRuntimes,omitempty"` 43 44 // name 45 Name string `json:"name,omitempty"` 46 47 // requires payment 48 RequiresPayment bool `json:"requiresPayment,omitempty"` 49 50 // user selectable 51 UserSelectable bool `json:"userSelectable,omitempty"` 52 } 53 54 // Validate validates this tier 55 func (m *Tier) Validate(formats strfmt.Registry) error { 56 return nil 57 } 58 59 // ContextValidate validates this tier based on context it is used 60 func (m *Tier) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 61 return nil 62 } 63 64 // MarshalBinary interface implementation 65 func (m *Tier) MarshalBinary() ([]byte, error) { 66 if m == nil { 67 return nil, nil 68 } 69 return swag.WriteJSON(m) 70 } 71 72 // UnmarshalBinary interface implementation 73 func (m *Tier) UnmarshalBinary(b []byte) error { 74 var res Tier 75 if err := swag.ReadJSON(b, &res); err != nil { 76 return err 77 } 78 *m = res 79 return nil 80 }