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

// HashicorpCloudVault20201125PluginType hashicorp cloud vault 20201125 plugin type
//
// swagger:model hashicorp.cloud.vault_20201125.PluginType
type HashicorpCloudVault20201125PluginType string

func NewHashicorpCloudVault20201125PluginType(value HashicorpCloudVault20201125PluginType) *HashicorpCloudVault20201125PluginType {
	return &value
}

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

const (

	// HashicorpCloudVault20201125PluginTypePLUGINTYPEINVALID captures enum value "PLUGIN_TYPE_INVALID"
	HashicorpCloudVault20201125PluginTypePLUGINTYPEINVALID HashicorpCloudVault20201125PluginType = "PLUGIN_TYPE_INVALID"

	// HashicorpCloudVault20201125PluginTypeSECRET captures enum value "SECRET"
	HashicorpCloudVault20201125PluginTypeSECRET HashicorpCloudVault20201125PluginType = "SECRET"

	// HashicorpCloudVault20201125PluginTypeAUTH captures enum value "AUTH"
	HashicorpCloudVault20201125PluginTypeAUTH HashicorpCloudVault20201125PluginType = "AUTH"

	// HashicorpCloudVault20201125PluginTypeDATABASE captures enum value "DATABASE"
	HashicorpCloudVault20201125PluginTypeDATABASE HashicorpCloudVault20201125PluginType = "DATABASE"
)

// for schema
var hashicorpCloudVault20201125PluginTypeEnum []interface{}

func init() {
	var res []HashicorpCloudVault20201125PluginType
	if err := json.Unmarshal([]byte(`["PLUGIN_TYPE_INVALID","SECRET","AUTH","DATABASE"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudVault20201125PluginTypeEnum = append(hashicorpCloudVault20201125PluginTypeEnum, v)
	}
}

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

// Validate validates this hashicorp cloud vault 20201125 plugin type
func (m HashicorpCloudVault20201125PluginType) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud vault 20201125 plugin type based on context it is used
func (m HashicorpCloudVault20201125PluginType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
