1 // Code generated by go-swagger; DO NOT EDIT.
5 // This file was generated by the swagger tool.
6 // Editing this file might prove futile when you re-run the swagger generate command
9 strfmt "github.com/go-openapi/strfmt"
11 "github.com/go-openapi/errors"
12 "github.com/go-openapi/swag"
13 "github.com/go-openapi/validate"
16 // RANUeGroupList r a n ue group list
17 // swagger:model RANUeGroupList
18 type RANUeGroupList struct {
20 // r a n imperative policy
22 RANImperativePolicy *ImperativePolicyDefinition `json:"RANImperativePolicy"`
24 // r a n ue group definition
26 RANUeGroupDefinition *RANUeGroupParams `json:"RANUeGroupDefinition"`
30 RANUeGroupID *int64 `json:"RANUeGroupID"`
33 // Validate validates this r a n ue group list
34 func (m *RANUeGroupList) Validate(formats strfmt.Registry) error {
37 if err := m.validateRANImperativePolicy(formats); err != nil {
38 res = append(res, err)
41 if err := m.validateRANUeGroupDefinition(formats); err != nil {
42 res = append(res, err)
45 if err := m.validateRANUeGroupID(formats); err != nil {
46 res = append(res, err)
50 return errors.CompositeValidationError(res...)
55 func (m *RANUeGroupList) validateRANImperativePolicy(formats strfmt.Registry) error {
57 if err := validate.Required("RANImperativePolicy", "body", m.RANImperativePolicy); err != nil {
61 if m.RANImperativePolicy != nil {
62 if err := m.RANImperativePolicy.Validate(formats); err != nil {
63 if ve, ok := err.(*errors.Validation); ok {
64 return ve.ValidateName("RANImperativePolicy")
73 func (m *RANUeGroupList) validateRANUeGroupDefinition(formats strfmt.Registry) error {
75 if err := validate.Required("RANUeGroupDefinition", "body", m.RANUeGroupDefinition); err != nil {
79 if m.RANUeGroupDefinition != nil {
80 if err := m.RANUeGroupDefinition.Validate(formats); err != nil {
81 if ve, ok := err.(*errors.Validation); ok {
82 return ve.ValidateName("RANUeGroupDefinition")
91 func (m *RANUeGroupList) validateRANUeGroupID(formats strfmt.Registry) error {
93 if err := validate.Required("RANUeGroupID", "body", m.RANUeGroupID); err != nil {
100 // MarshalBinary interface implementation
101 func (m *RANUeGroupList) MarshalBinary() ([]byte, error) {
105 return swag.WriteJSON(m)
108 // UnmarshalBinary interface implementation
109 func (m *RANUeGroupList) UnmarshalBinary(b []byte) error {
110 var res RANUeGroupList
111 if err := swag.ReadJSON(b, &res); err != nil {