// 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"
)

// APITs003Version - TS003_NOT_IMPLEMENTED: Not implemented.
//   - TS003_V100: v1.0.0.
//   - TS003_v200: v2.0.0
//
// swagger:model apiTs003Version
type APITs003Version string

func NewAPITs003Version(value APITs003Version) *APITs003Version {
	return &value
}

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

const (

	// APITs003VersionTS003NOTIMPLEMENTED captures enum value "TS003_NOT_IMPLEMENTED"
	APITs003VersionTS003NOTIMPLEMENTED APITs003Version = "TS003_NOT_IMPLEMENTED"

	// APITs003VersionTS003V100 captures enum value "TS003_V100"
	APITs003VersionTS003V100 APITs003Version = "TS003_V100"

	// APITs003VersionTS003V200 captures enum value "TS003_v200"
	APITs003VersionTS003V200 APITs003Version = "TS003_v200"
)

// for schema
var apiTs003VersionEnum []interface{}

func init() {
	var res []APITs003Version
	if err := json.Unmarshal([]byte(`["TS003_NOT_IMPLEMENTED","TS003_V100","TS003_v200"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		apiTs003VersionEnum = append(apiTs003VersionEnum, v)
	}
}

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

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

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

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

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