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

// VaultRadar20230501FilterV2Operation - EQ: EQ = Equal
//   - GT: GT = Greater Than
//   - GE: GE = Greater Than or Equal
//   - LT: LT = Less Than
//   - LE: LE = Less Than or Equal
//   - NEQ: NEQ = Not Equal
//   - NEQ_NULL_AWARE: NEQ_NULL_AWARE = Not Equal to or null
//   - LIKE: LIKE = Like (operator for pattern matching)
//   - ILIKE: ILIKE = Case Insensitive Like (operator for pattern matching)
//
// swagger:model vault_radar_20230501FilterV2Operation
type VaultRadar20230501FilterV2Operation string

func NewVaultRadar20230501FilterV2Operation(value VaultRadar20230501FilterV2Operation) *VaultRadar20230501FilterV2Operation {
	return &value
}

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

const (

	// VaultRadar20230501FilterV2OperationUNKNOWN captures enum value "UNKNOWN"
	VaultRadar20230501FilterV2OperationUNKNOWN VaultRadar20230501FilterV2Operation = "UNKNOWN"

	// VaultRadar20230501FilterV2OperationEQ captures enum value "EQ"
	VaultRadar20230501FilterV2OperationEQ VaultRadar20230501FilterV2Operation = "EQ"

	// VaultRadar20230501FilterV2OperationGT captures enum value "GT"
	VaultRadar20230501FilterV2OperationGT VaultRadar20230501FilterV2Operation = "GT"

	// VaultRadar20230501FilterV2OperationGE captures enum value "GE"
	VaultRadar20230501FilterV2OperationGE VaultRadar20230501FilterV2Operation = "GE"

	// VaultRadar20230501FilterV2OperationLT captures enum value "LT"
	VaultRadar20230501FilterV2OperationLT VaultRadar20230501FilterV2Operation = "LT"

	// VaultRadar20230501FilterV2OperationLE captures enum value "LE"
	VaultRadar20230501FilterV2OperationLE VaultRadar20230501FilterV2Operation = "LE"

	// VaultRadar20230501FilterV2OperationNEQ captures enum value "NEQ"
	VaultRadar20230501FilterV2OperationNEQ VaultRadar20230501FilterV2Operation = "NEQ"

	// VaultRadar20230501FilterV2OperationNEQNULLAWARE captures enum value "NEQ_NULL_AWARE"
	VaultRadar20230501FilterV2OperationNEQNULLAWARE VaultRadar20230501FilterV2Operation = "NEQ_NULL_AWARE"

	// VaultRadar20230501FilterV2OperationLIKE captures enum value "LIKE"
	VaultRadar20230501FilterV2OperationLIKE VaultRadar20230501FilterV2Operation = "LIKE"

	// VaultRadar20230501FilterV2OperationILIKE captures enum value "ILIKE"
	VaultRadar20230501FilterV2OperationILIKE VaultRadar20230501FilterV2Operation = "ILIKE"
)

// for schema
var vaultRadar20230501FilterV2OperationEnum []interface{}

func init() {
	var res []VaultRadar20230501FilterV2Operation
	if err := json.Unmarshal([]byte(`["UNKNOWN","EQ","GT","GE","LT","LE","NEQ","NEQ_NULL_AWARE","LIKE","ILIKE"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		vaultRadar20230501FilterV2OperationEnum = append(vaultRadar20230501FilterV2OperationEnum, v)
	}
}

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

// Validate validates this vault radar 20230501 filter v2 operation
func (m VaultRadar20230501FilterV2Operation) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this vault radar 20230501 filter v2 operation based on context it is used
func (m VaultRadar20230501FilterV2Operation) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
