// 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 FlexibleServersVirtualEndpoint_Spec struct {
	Name string `json:"name,omitempty"`

	// Properties: Properties of the pair of virtual endpoints.
	Properties *VirtualEndpointResourceProperties `json:"properties,omitempty"`
}

var _ genruntime.ARMResourceSpec = &FlexibleServersVirtualEndpoint_Spec{}

// GetAPIVersion returns the ARM API version of the resource. This is always "2024-08-01"
func (endpoint FlexibleServersVirtualEndpoint_Spec) GetAPIVersion() string {
	return "2024-08-01"
}

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

// GetType returns the ARM Type of the resource. This is always "Microsoft.DBforPostgreSQL/flexibleServers/virtualendpoints"
func (endpoint *FlexibleServersVirtualEndpoint_Spec) GetType() string {
	return "Microsoft.DBforPostgreSQL/flexibleServers/virtualendpoints"
}

// Properties of a pair of virtual endpoints.
type VirtualEndpointResourceProperties struct {
	// EndpointType: Type of endpoint for the virtual endpoints.
	EndpointType *VirtualEndpointResourceProperties_EndpointType `json:"endpointType,omitempty"`

	// Members: List of flexible servers that one of the virtual endpoints can refer to.
	Members []string `json:"members,omitempty"`
}

// +kubebuilder:validation:Enum={"ReadWrite"}
type VirtualEndpointResourceProperties_EndpointType string

const VirtualEndpointResourceProperties_EndpointType_ReadWrite = VirtualEndpointResourceProperties_EndpointType("ReadWrite")

// Mapping from string to VirtualEndpointResourceProperties_EndpointType
var virtualEndpointResourceProperties_EndpointType_Values = map[string]VirtualEndpointResourceProperties_EndpointType{
	"readwrite": VirtualEndpointResourceProperties_EndpointType_ReadWrite,
}
