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

package rest_model_zrok

import (
	"context"

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

// EnvironmentSummary environment summary
//
// swagger:model environmentSummary
type EnvironmentSummary struct {

	// access count
	AccessCount int64 `json:"accessCount,omitempty"`

	// address
	Address string `json:"address,omitempty"`

	// created at
	CreatedAt int64 `json:"createdAt,omitempty"`

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

	// env z Id
	EnvZID string `json:"envZId,omitempty"`

	// host
	Host string `json:"host,omitempty"`

	// limited
	Limited bool `json:"limited,omitempty"`

	// remote agent
	RemoteAgent bool `json:"remoteAgent,omitempty"`

	// share count
	ShareCount int64 `json:"shareCount,omitempty"`

	// updated at
	UpdatedAt int64 `json:"updatedAt,omitempty"`
}

// Validate validates this environment summary
func (m *EnvironmentSummary) Validate(formats strfmt.Registry) error {
	return nil
}

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

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

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