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

// Secrets20231128HcpTerraformCategory secrets 20231128 hcp terraform category
//
// swagger:model secrets_20231128HcpTerraformCategory
type Secrets20231128HcpTerraformCategory string

func NewSecrets20231128HcpTerraformCategory(value Secrets20231128HcpTerraformCategory) *Secrets20231128HcpTerraformCategory {
	return &value
}

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

const (

	// Secrets20231128HcpTerraformCategoryTERRAFORM captures enum value "TERRAFORM"
	Secrets20231128HcpTerraformCategoryTERRAFORM Secrets20231128HcpTerraformCategory = "TERRAFORM"

	// Secrets20231128HcpTerraformCategoryENV captures enum value "ENV"
	Secrets20231128HcpTerraformCategoryENV Secrets20231128HcpTerraformCategory = "ENV"
)

// for schema
var secrets20231128HcpTerraformCategoryEnum []interface{}

func init() {
	var res []Secrets20231128HcpTerraformCategory
	if err := json.Unmarshal([]byte(`["TERRAFORM","ENV"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		secrets20231128HcpTerraformCategoryEnum = append(secrets20231128HcpTerraformCategoryEnum, v)
	}
}

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

// Validate validates this secrets 20231128 hcp terraform category
func (m Secrets20231128HcpTerraformCategory) Validate(formats strfmt.Registry) error {
	var res []error

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

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

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