// 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"
	"encoding/json"

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

// APITs005Version - TS005_NOT_IMPLEMENTED: Not implemented.
//   - TS005_V100: v1.0.0.
//   - TS005_V200: v2.0.0
//
// swagger:model apiTs005Version
type APITs005Version string

func NewAPITs005Version(value APITs005Version) *APITs005Version {
	return &value
}

// Pointer returns a pointer to a freshly-allocated APITs005Version.
func (m APITs005Version) Pointer() *APITs005Version {
	return &m
}

const (

	// APITs005VersionTS005NOTIMPLEMENTED captures enum value "TS005_NOT_IMPLEMENTED"
	APITs005VersionTS005NOTIMPLEMENTED APITs005Version = "TS005_NOT_IMPLEMENTED"

	// APITs005VersionTS005V100 captures enum value "TS005_V100"
	APITs005VersionTS005V100 APITs005Version = "TS005_V100"

	// APITs005VersionTS005V200 captures enum value "TS005_V200"
	APITs005VersionTS005V200 APITs005Version = "TS005_V200"
)

// for schema
var apiTs005VersionEnum []interface{}

func init() {
	var res []APITs005Version
	if err := json.Unmarshal([]byte(`["TS005_NOT_IMPLEMENTED","TS005_V100","TS005_V200"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		apiTs005VersionEnum = append(apiTs005VersionEnum, v)
	}
}

func (m APITs005Version) validateAPITs005VersionEnum(path, location string, value APITs005Version) error {
	if err := validate.EnumCase(path, location, value, apiTs005VersionEnum, true); err != nil {
		return err
	}
	return nil
}

// Validate validates this api ts005 version
func (m APITs005Version) Validate(formats strfmt.Registry) error {
	var res []error

	// value enum
	if err := m.validateAPITs005VersionEnum("", "body", m); err != nil {
		return err
	}

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

// ContextValidate validates this api ts005 version based on context it is used
func (m APITs005Version) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
