github.com/sap/cf-mta-plugin@v2.6.3+incompatible/clients/models/log.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 package 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 strfmt "github.com/go-openapi/strfmt" 10 11 "github.com/go-openapi/errors" 12 "github.com/go-openapi/swag" 13 ) 14 15 // Log log 16 // swagger:model Log 17 18 type Log struct { 19 20 // content 21 Content strfmt.URI `json:"content,omitempty"` 22 23 // description 24 Description string `json:"description,omitempty"` 25 26 // display name 27 DisplayName string `json:"displayName,omitempty"` 28 29 // external info 30 ExternalInfo strfmt.URI `json:"externalInfo,omitempty"` 31 32 // id 33 ID string `json:"id,omitempty"` 34 35 // last modified 36 LastModified strfmt.DateTime `json:"lastModified,omitempty"` 37 38 // size 39 Size int64 `json:"size,omitempty"` 40 } 41 42 /* polymorph Log content false */ 43 44 /* polymorph Log description false */ 45 46 /* polymorph Log displayName false */ 47 48 /* polymorph Log externalInfo false */ 49 50 /* polymorph Log id false */ 51 52 /* polymorph Log lastModified false */ 53 54 /* polymorph Log size false */ 55 56 // Validate validates this log 57 func (m *Log) Validate(formats strfmt.Registry) error { 58 var res []error 59 60 if len(res) > 0 { 61 return errors.CompositeValidationError(res...) 62 } 63 return nil 64 } 65 66 // MarshalBinary interface implementation 67 func (m *Log) 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 *Log) UnmarshalBinary(b []byte) error { 76 var res Log 77 if err := swag.ReadJSON(b, &res); err != nil { 78 return err 79 } 80 *m = res 81 return nil 82 }