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

// Secrets20231128Tier secrets 20231128 tier
//
// swagger:model secrets_20231128Tier
type Secrets20231128Tier string

func NewSecrets20231128Tier(value Secrets20231128Tier) *Secrets20231128Tier {
	return &value
}

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

const (

	// Secrets20231128TierUNKNOWN captures enum value "UNKNOWN"
	Secrets20231128TierUNKNOWN Secrets20231128Tier = "UNKNOWN"

	// Secrets20231128TierFREE captures enum value "FREE"
	Secrets20231128TierFREE Secrets20231128Tier = "FREE"

	// Secrets20231128TierSTANDARD captures enum value "STANDARD"
	Secrets20231128TierSTANDARD Secrets20231128Tier = "STANDARD"

	// Secrets20231128TierPLUS captures enum value "PLUS"
	Secrets20231128TierPLUS Secrets20231128Tier = "PLUS"
)

// for schema
var secrets20231128TierEnum []interface{}

func init() {
	var res []Secrets20231128Tier
	if err := json.Unmarshal([]byte(`["UNKNOWN","FREE","STANDARD","PLUS"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		secrets20231128TierEnum = append(secrets20231128TierEnum, v)
	}
}

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

// Validate validates this secrets 20231128 tier
func (m Secrets20231128Tier) Validate(formats strfmt.Registry) error {
	var res []error

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

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

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