// Code generated by go-swagger; DO NOT EDIT.

// Copyright Authors of Cilium
// SPDX-License-Identifier: Apache-2.0

package models

import (
	"context"

	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// BgpCapabilities Represents the BGP capabilities.
//
// swagger:model BgpCapabilities
type BgpCapabilities struct {

	// Base64-encoded BGP capabilities details
	Capabilities string `json:"capabilities,omitempty"`
}

// Validate validates this bgp capabilities
func (m *BgpCapabilities) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this bgp capabilities based on context it is used
func (m *BgpCapabilities) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *BgpCapabilities) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *BgpCapabilities) UnmarshalBinary(b []byte) error {
	var res BgpCapabilities
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
