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

// Secrets20231128GatewayStatus secrets 20231128 gateway status
//
// swagger:model secrets_20231128GatewayStatus
type Secrets20231128GatewayStatus string

func NewSecrets20231128GatewayStatus(value Secrets20231128GatewayStatus) *Secrets20231128GatewayStatus {
	return &value
}

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

const (

	// Secrets20231128GatewayStatusSTATEUNSPECIFIED captures enum value "STATE_UNSPECIFIED"
	Secrets20231128GatewayStatusSTATEUNSPECIFIED Secrets20231128GatewayStatus = "STATE_UNSPECIFIED"

	// Secrets20231128GatewayStatusSTATEPENDING captures enum value "STATE_PENDING"
	Secrets20231128GatewayStatusSTATEPENDING Secrets20231128GatewayStatus = "STATE_PENDING"

	// Secrets20231128GatewayStatusSTATECONNECTED captures enum value "STATE_CONNECTED"
	Secrets20231128GatewayStatusSTATECONNECTED Secrets20231128GatewayStatus = "STATE_CONNECTED"

	// Secrets20231128GatewayStatusSTATEDISCONNECTED captures enum value "STATE_DISCONNECTED"
	Secrets20231128GatewayStatusSTATEDISCONNECTED Secrets20231128GatewayStatus = "STATE_DISCONNECTED"

	// Secrets20231128GatewayStatusSTATEUNSUPPORTEDVERSION captures enum value "STATE_UNSUPPORTED_VERSION"
	Secrets20231128GatewayStatusSTATEUNSUPPORTEDVERSION Secrets20231128GatewayStatus = "STATE_UNSUPPORTED_VERSION"

	// Secrets20231128GatewayStatusSTATEDEPRECATEDVERSION captures enum value "STATE_DEPRECATED_VERSION"
	Secrets20231128GatewayStatusSTATEDEPRECATEDVERSION Secrets20231128GatewayStatus = "STATE_DEPRECATED_VERSION"
)

// for schema
var secrets20231128GatewayStatusEnum []interface{}

func init() {
	var res []Secrets20231128GatewayStatus
	if err := json.Unmarshal([]byte(`["STATE_UNSPECIFIED","STATE_PENDING","STATE_CONNECTED","STATE_DISCONNECTED","STATE_UNSUPPORTED_VERSION","STATE_DEPRECATED_VERSION"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		secrets20231128GatewayStatusEnum = append(secrets20231128GatewayStatusEnum, v)
	}
}

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

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

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

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

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