// 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 (
	"context"

	"github.com/go-openapi/errors"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/validate"
)

// PeerGatewayAddress IP address of the Peer Gateway attached to this VPNConnection
// Example: 192.168.1.1
//
// swagger:model PeerGatewayAddress
type PeerGatewayAddress strfmt.IPv4

// Validate validates this peer gateway address
func (m PeerGatewayAddress) Validate(formats strfmt.Registry) error {
	var res []error

	if err := validate.FormatOf("", "body", "ipv4", strfmt.IPv4(m).String(), formats); err != nil {
		return err
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}

// ContextValidate validates this peer gateway address based on context it is used
func (m PeerGatewayAddress) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
