package models

type CentralGetPrivateLinkServiceResp struct {
	// base resp
	// Required: true
	BaseResp *CentralBaseResp `json:"base_resp"`

	PrivatelinkService *CentralPrivateLinkService `json:"privatelink_service,omitempty"`
}

type CentralPrivateLinkService struct {
	CloudProvider string                           `json:"cloud_provider,omitempty"`
	Name          string                           `json:"name,omitempty"`
	Status        CentralPrivateLinkService_Status `json:"status,omitempty"`
	DnsName       string                           `json:"dns_name,omitempty"`
	Port          int32                            `json:"port,omitempty"`
}

type CentralPrivateLinkService_Status string

const (
	CentralPrivateLinkService_NOT_CONFIGURE CentralPrivateLinkService_Status = "NOT_CONFIGURE"
	// The following must be consistent with 'PrivateLinkServicePhase' defined in infra-api
	CentralPrivateLinkService_CREATING CentralPrivateLinkService_Status = "CREATING"
	CentralPrivateLinkService_ACTIVE   CentralPrivateLinkService_Status = "ACTIVE"
	CentralPrivateLinkService_DELETING CentralPrivateLinkService_Status = "DELETING"
)
