// Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package arm

import "github.com/Azure/azure-service-operator/v2/pkg/genruntime"

type ServersConnectionPolicy_Spec struct {
	Name string `json:"name,omitempty"`

	// Properties: Resource properties.
	Properties *ServerConnectionPolicyProperties `json:"properties,omitempty"`
}

var _ genruntime.ARMResourceSpec = &ServersConnectionPolicy_Spec{}

// GetAPIVersion returns the ARM API version of the resource. This is always "2021-11-01"
func (policy ServersConnectionPolicy_Spec) GetAPIVersion() string {
	return "2021-11-01"
}

// GetName returns the Name of the resource
func (policy *ServersConnectionPolicy_Spec) GetName() string {
	return policy.Name
}

// GetType returns the ARM Type of the resource. This is always "Microsoft.Sql/servers/connectionPolicies"
func (policy *ServersConnectionPolicy_Spec) GetType() string {
	return "Microsoft.Sql/servers/connectionPolicies"
}

// The properties of a server connection policy.
type ServerConnectionPolicyProperties struct {
	// ConnectionType: The server connection type.
	ConnectionType *ServerConnectionPolicyProperties_ConnectionType `json:"connectionType,omitempty"`
}

// +kubebuilder:validation:Enum={"Default","Proxy","Redirect"}
type ServerConnectionPolicyProperties_ConnectionType string

const (
	ServerConnectionPolicyProperties_ConnectionType_Default  = ServerConnectionPolicyProperties_ConnectionType("Default")
	ServerConnectionPolicyProperties_ConnectionType_Proxy    = ServerConnectionPolicyProperties_ConnectionType("Proxy")
	ServerConnectionPolicyProperties_ConnectionType_Redirect = ServerConnectionPolicyProperties_ConnectionType("Redirect")
)

// Mapping from string to ServerConnectionPolicyProperties_ConnectionType
var serverConnectionPolicyProperties_ConnectionType_Values = map[string]ServerConnectionPolicyProperties_ConnectionType{
	"default":  ServerConnectionPolicyProperties_ConnectionType_Default,
	"proxy":    ServerConnectionPolicyProperties_ConnectionType_Proxy,
	"redirect": ServerConnectionPolicyProperties_ConnectionType_Redirect,
}
