// 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/strfmt"
	"github.com/go-openapi/swag"
)

// APIRelayGateway api relay gateway
//
// swagger:model apiRelayGateway
type APIRelayGateway struct {

	// Description.
	Description string `json:"description,omitempty"`

	// Name.
	Name string `json:"name,omitempty"`

	// Region configuration ID.
	RegionConfigID string `json:"regionConfigId,omitempty"`

	// Relay ID (4 byte HEX).
	RelayID string `json:"relayId,omitempty"`

	// Stats interval (seconds).
	// This defines the expected interval in which the gateway sends its
	// statistics.
	StatsInterval int64 `json:"statsInterval,omitempty"`

	// Tenant ID.
	TenantID string `json:"tenantId,omitempty"`
}

// Validate validates this api relay gateway
func (m *APIRelayGateway) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this api relay gateway based on context it is used
func (m *APIRelayGateway) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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