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

// Secrets20230613HcpTerraformType secrets 20230613 hcp terraform type
//
// swagger:model secrets_20230613HcpTerraformType
type Secrets20230613HcpTerraformType string

func NewSecrets20230613HcpTerraformType(value Secrets20230613HcpTerraformType) *Secrets20230613HcpTerraformType {
	return &value
}

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

const (

	// Secrets20230613HcpTerraformTypeWORKSPACE captures enum value "WORKSPACE"
	Secrets20230613HcpTerraformTypeWORKSPACE Secrets20230613HcpTerraformType = "WORKSPACE"

	// Secrets20230613HcpTerraformTypeVARIABLESET captures enum value "VARIABLE_SET"
	Secrets20230613HcpTerraformTypeVARIABLESET Secrets20230613HcpTerraformType = "VARIABLE_SET"
)

// for schema
var secrets20230613HcpTerraformTypeEnum []interface{}

func init() {
	var res []Secrets20230613HcpTerraformType
	if err := json.Unmarshal([]byte(`["WORKSPACE","VARIABLE_SET"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		secrets20230613HcpTerraformTypeEnum = append(secrets20230613HcpTerraformTypeEnum, v)
	}
}

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

// Validate validates this secrets 20230613 hcp terraform type
func (m Secrets20230613HcpTerraformType) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this secrets 20230613 hcp terraform type based on context it is used
func (m Secrets20230613HcpTerraformType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
