X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fmodels%2Fformat2_action_definition.go;fp=pkg%2Fmodels%2Fformat2_action_definition.go;h=0000000000000000000000000000000000000000;hb=3602bf801fef17e317cb35a4c710118ec80908b9;hp=351c7ae196aa3a95ff1d34dc3eaba7a7612ee127;hpb=060448c051013852d463bc13bfc5f0aa3696ac9c;p=ric-plt%2Fxapp-frame.git diff --git a/pkg/models/format2_action_definition.go b/pkg/models/format2_action_definition.go deleted file mode 100644 index 351c7ae..0000000 --- a/pkg/models/format2_action_definition.go +++ /dev/null @@ -1,82 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - strfmt "github.com/go-openapi/strfmt" - - "github.com/go-openapi/errors" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// Format2ActionDefinition format2 action definition -// swagger:model Format2ActionDefinition -type Format2ActionDefinition struct { - - // r a n ue group parameters - // Required: true - RANUeGroupParameters []*RANUeGroupList `json:"RANUeGroupParameters"` -} - -// Validate validates this format2 action definition -func (m *Format2ActionDefinition) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateRANUeGroupParameters(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *Format2ActionDefinition) validateRANUeGroupParameters(formats strfmt.Registry) error { - - if err := validate.Required("RANUeGroupParameters", "body", m.RANUeGroupParameters); err != nil { - return err - } - - for i := 0; i < len(m.RANUeGroupParameters); i++ { - if swag.IsZero(m.RANUeGroupParameters[i]) { // not required - continue - } - - if m.RANUeGroupParameters[i] != nil { - if err := m.RANUeGroupParameters[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("RANUeGroupParameters" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *Format2ActionDefinition) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Format2ActionDefinition) UnmarshalBinary(b []byte) error { - var res Format2ActionDefinition - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -}