github.com/sap/cf-mta-plugin@v2.6.3+incompatible/clients/models/inline_response200.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 // InlineResponse200 inline response 200 16 // swagger:model inline_response_200 17 18 type InlineResponse200 struct { 19 20 // action ids 21 ActionIds []string `json:"actionIds"` 22 } 23 24 /* polymorph inline_response_200 actionIds false */ 25 26 // Validate validates this inline response 200 27 func (m *InlineResponse200) Validate(formats strfmt.Registry) error { 28 var res []error 29 30 if err := m.validateActionIds(formats); err != nil { 31 // prop 32 res = append(res, err) 33 } 34 35 if len(res) > 0 { 36 return errors.CompositeValidationError(res...) 37 } 38 return nil 39 } 40 41 func (m *InlineResponse200) validateActionIds(formats strfmt.Registry) error { 42 43 if swag.IsZero(m.ActionIds) { // not required 44 return nil 45 } 46 47 return nil 48 } 49 50 // MarshalBinary interface implementation 51 func (m *InlineResponse200) MarshalBinary() ([]byte, error) { 52 if m == nil { 53 return nil, nil 54 } 55 return swag.WriteJSON(m) 56 } 57 58 // UnmarshalBinary interface implementation 59 func (m *InlineResponse200) UnmarshalBinary(b []byte) error { 60 var res InlineResponse200 61 if err := swag.ReadJSON(b, &res); err != nil { 62 return err 63 } 64 *m = res 65 return nil 66 }