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

// APITs004Version - TS004_NOT_IMPLEMENTED: Not implemented.
//   - TS004_V100: v1.0.0.
//   - TS004_V200: v2.0.0
//
// swagger:model apiTs004Version
type APITs004Version string

func NewAPITs004Version(value APITs004Version) *APITs004Version {
	return &value
}

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

const (

	// APITs004VersionTS004NOTIMPLEMENTED captures enum value "TS004_NOT_IMPLEMENTED"
	APITs004VersionTS004NOTIMPLEMENTED APITs004Version = "TS004_NOT_IMPLEMENTED"

	// APITs004VersionTS004V100 captures enum value "TS004_V100"
	APITs004VersionTS004V100 APITs004Version = "TS004_V100"

	// APITs004VersionTS004V200 captures enum value "TS004_V200"
	APITs004VersionTS004V200 APITs004Version = "TS004_V200"
)

// for schema
var apiTs004VersionEnum []interface{}

func init() {
	var res []APITs004Version
	if err := json.Unmarshal([]byte(`["TS004_NOT_IMPLEMENTED","TS004_V100","TS004_V200"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		apiTs004VersionEnum = append(apiTs004VersionEnum, v)
	}
}

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

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

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

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

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