github.com/ActiveState/cli@v0.0.0-20240508170324-6801f60cd051/pkg/platform/api/mono/mono_models/project_editable.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 // ProjectEditable project editable 16 // 17 // swagger:model ProjectEditable 18 type ProjectEditable struct { 19 20 // description 21 Description string `json:"description,omitempty"` 22 23 // managed 24 Managed *bool `json:"managed,omitempty"` 25 26 // name 27 Name string `json:"name,omitempty"` 28 29 // private 30 Private *bool `json:"private,omitempty"` 31 32 // repo Url 33 RepoURL *string `json:"repoUrl,omitempty"` 34 } 35 36 // Validate validates this project editable 37 func (m *ProjectEditable) Validate(formats strfmt.Registry) error { 38 return nil 39 } 40 41 // ContextValidate validates this project editable based on context it is used 42 func (m *ProjectEditable) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 43 return nil 44 } 45 46 // MarshalBinary interface implementation 47 func (m *ProjectEditable) MarshalBinary() ([]byte, error) { 48 if m == nil { 49 return nil, nil 50 } 51 return swag.WriteJSON(m) 52 } 53 54 // UnmarshalBinary interface implementation 55 func (m *ProjectEditable) UnmarshalBinary(b []byte) error { 56 var res ProjectEditable 57 if err := swag.ReadJSON(b, &res); err != nil { 58 return err 59 } 60 *m = res 61 return nil 62 }