connectivity

package
v6.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const AuditLogActorTypeAdmin = shared.AuditLogActorTypeAdmin

This is an alias to an internal value.

View Source
const AuditLogActorTypeCloudflare = shared.AuditLogActorTypeCloudflare

This is an alias to an internal value.

View Source
const AuditLogActorTypeUser = shared.AuditLogActorTypeUser

This is an alias to an internal value.

View Source
const CertificateCADigicert = shared.CertificateCADigicert

This is an alias to an internal value.

View Source
const CertificateCAGoogle = shared.CertificateCAGoogle

This is an alias to an internal value.

View Source
const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt

This is an alias to an internal value.

View Source
const CertificateCASSLCom = shared.CertificateCASSLCom

This is an alias to an internal value.

View Source
const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate

This is an alias to an internal value.

View Source
const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC

This is an alias to an internal value.

View Source
const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA

This is an alias to an internal value.

View Source
const CloudflareTunnelConfigSrcCloudflare = shared.CloudflareTunnelConfigSrcCloudflare

This is an alias to an internal value.

View Source
const CloudflareTunnelConfigSrcLocal = shared.CloudflareTunnelConfigSrcLocal

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusDegraded = shared.CloudflareTunnelStatusDegraded

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusDown = shared.CloudflareTunnelStatusDown

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusHealthy = shared.CloudflareTunnelStatusHealthy

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusInactive = shared.CloudflareTunnelStatusInactive

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeMagic = shared.CloudflareTunnelTunTypeMagic

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeWARP = shared.CloudflareTunnelTunTypeWARP

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector

This is an alias to an internal value.

View Source
const MemberPoliciesAccessAllow = shared.MemberPoliciesAccessAllow

This is an alias to an internal value.

View Source
const MemberPoliciesAccessDeny = shared.MemberPoliciesAccessDeny

This is an alias to an internal value.

View Source
const MemberStatusAccepted = shared.MemberStatusAccepted

This is an alias to an internal value.

View Source
const MemberStatusPending = shared.MemberStatusPending

This is an alias to an internal value.

View Source
const RatePlanIDBusiness = shared.RatePlanIDBusiness

This is an alias to an internal value.

View Source
const RatePlanIDEnterprise = shared.RatePlanIDEnterprise

This is an alias to an internal value.

View Source
const RatePlanIDFree = shared.RatePlanIDFree

This is an alias to an internal value.

View Source
const RatePlanIDLite = shared.RatePlanIDLite

This is an alias to an internal value.

View Source
const RatePlanIDPartnersBusiness = shared.RatePlanIDPartnersBusiness

This is an alias to an internal value.

View Source
const RatePlanIDPartnersEnterprise = shared.RatePlanIDPartnersEnterprise

This is an alias to an internal value.

View Source
const RatePlanIDPartnersFree = shared.RatePlanIDPartnersFree

This is an alias to an internal value.

View Source
const RatePlanIDPartnersPro = shared.RatePlanIDPartnersPro

This is an alias to an internal value.

View Source
const RatePlanIDPro = shared.RatePlanIDPro

This is an alias to an internal value.

View Source
const RatePlanIDProPlus = shared.RatePlanIDProPlus

This is an alias to an internal value.

View Source
const SortDirectionAsc = shared.SortDirectionAsc

This is an alias to an internal value.

View Source
const SortDirectionDesc = shared.SortDirectionDesc

This is an alias to an internal value.

View Source
const SubscriptionFrequencyMonthly = shared.SubscriptionFrequencyMonthly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyQuarterly = shared.SubscriptionFrequencyQuarterly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyWeekly = shared.SubscriptionFrequencyWeekly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyYearly = shared.SubscriptionFrequencyYearly

This is an alias to an internal value.

View Source
const SubscriptionStateAwaitingPayment = shared.SubscriptionStateAwaitingPayment

This is an alias to an internal value.

View Source
const SubscriptionStateCancelled = shared.SubscriptionStateCancelled

This is an alias to an internal value.

View Source
const SubscriptionStateExpired = shared.SubscriptionStateExpired

This is an alias to an internal value.

View Source
const SubscriptionStateFailed = shared.SubscriptionStateFailed

This is an alias to an internal value.

View Source
const SubscriptionStatePaid = shared.SubscriptionStatePaid

This is an alias to an internal value.

View Source
const SubscriptionStateProvisioned = shared.SubscriptionStateProvisioned

This is an alias to an internal value.

View Source
const SubscriptionStateTrial = shared.SubscriptionStateTrial

This is an alias to an internal value.

View Source
const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow

This is an alias to an internal value.

View Source
const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny

This is an alias to an internal value.

View Source
const TokenStatusActive = shared.TokenStatusActive

This is an alias to an internal value.

View Source
const TokenStatusDisabled = shared.TokenStatusDisabled

This is an alias to an internal value.

View Source
const TokenStatusExpired = shared.TokenStatusExpired

This is an alias to an internal value.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASN

type ASN = shared.ASN

This is an alias to an internal type.

type ASNParam

type ASNParam = shared.ASNParam

This is an alias to an internal type.

type AuditLog

type AuditLog = shared.AuditLog

This is an alias to an internal type.

type AuditLogAction

type AuditLogAction = shared.AuditLogAction

This is an alias to an internal type.

type AuditLogActor

type AuditLogActor = shared.AuditLogActor

This is an alias to an internal type.

type AuditLogActorType

type AuditLogActorType = shared.AuditLogActorType

The type of actor, whether a User, Cloudflare Admin, or an Automated System.

This is an alias to an internal type.

type AuditLogOwner

type AuditLogOwner = shared.AuditLogOwner

This is an alias to an internal type.

type AuditLogResource

type AuditLogResource = shared.AuditLogResource

This is an alias to an internal type.

type CertificateCA

type CertificateCA = shared.CertificateCA

The Certificate Authority that will issue the certificate

This is an alias to an internal type.

type CertificateRequestType

type CertificateRequestType = shared.CertificateRequestType

Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).

This is an alias to an internal type.

type CloudflareTunnel

type CloudflareTunnel = shared.CloudflareTunnel

A Cloudflare Tunnel that connects your origin to Cloudflare's edge.

This is an alias to an internal type.

type CloudflareTunnelConfigSrc

type CloudflareTunnelConfigSrc = shared.CloudflareTunnelConfigSrc

Indicates if this is a locally or remotely configured tunnel. If `local`, manage the tunnel using a YAML file on the origin machine. If `cloudflare`, manage the tunnel on the Zero Trust dashboard.

This is an alias to an internal type.

type CloudflareTunnelConnection

type CloudflareTunnelConnection = shared.CloudflareTunnelConnection

This is an alias to an internal type.

type CloudflareTunnelStatus

type CloudflareTunnelStatus = shared.CloudflareTunnelStatus

The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).

This is an alias to an internal type.

type CloudflareTunnelTunType

type CloudflareTunnelTunType = shared.CloudflareTunnelTunType

The type of tunnel.

This is an alias to an internal type.

type ConnectivityService

type ConnectivityService struct {
	Options   []option.RequestOption
	Directory *DirectoryService
}

ConnectivityService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewConnectivityService method instead.

func NewConnectivityService

func NewConnectivityService(opts ...option.RequestOption) (r *ConnectivityService)

NewConnectivityService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

type DirectoryService

type DirectoryService struct {
	Options  []option.RequestOption
	Services *DirectoryServiceService
}

DirectoryService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDirectoryService method instead.

func NewDirectoryService

func NewDirectoryService(opts ...option.RequestOption) (r *DirectoryService)

NewDirectoryService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

type DirectoryServiceDeleteParams

type DirectoryServiceDeleteParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type DirectoryServiceGetParams

type DirectoryServiceGetParams struct {
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type DirectoryServiceGetResponse

type DirectoryServiceGetResponse struct {
	// This field can have the runtime type of
	// [DirectoryServiceGetResponseInfraHTTPServiceConfigHost],
	// [DirectoryServiceGetResponseInfraTCPServiceConfigHost].
	Host        interface{}                            `json:"host" api:"required"`
	Name        string                                 `json:"name" api:"required"`
	Type        DirectoryServiceGetResponseType        `json:"type" api:"required"`
	AppProtocol DirectoryServiceGetResponseAppProtocol `json:"app_protocol" api:"nullable"`
	CreatedAt   time.Time                              `json:"created_at" format:"date-time"`
	HTTPPort    int64                                  `json:"http_port" api:"nullable"`
	HTTPSPort   int64                                  `json:"https_port" api:"nullable"`
	ServiceID   string                                 `json:"service_id" format:"uuid"`
	TCPPort     int64                                  `json:"tcp_port" api:"nullable"`
	// This field can have the runtime type of
	// [DirectoryServiceGetResponseInfraHTTPServiceConfigTLSSettings],
	// [DirectoryServiceGetResponseInfraTCPServiceConfigTLSSettings].
	TLSSettings interface{}                     `json:"tls_settings"`
	UpdatedAt   time.Time                       `json:"updated_at" format:"date-time"`
	JSON        directoryServiceGetResponseJSON `json:"-"`
	// contains filtered or unexported fields
}

func (DirectoryServiceGetResponse) AsUnion added in v6.9.0

AsUnion returns a DirectoryServiceGetResponseUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are DirectoryServiceGetResponseInfraHTTPServiceConfig, DirectoryServiceGetResponseInfraTCPServiceConfig.

func (*DirectoryServiceGetResponse) UnmarshalJSON

func (r *DirectoryServiceGetResponse) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceGetResponseAppProtocol added in v6.9.0

type DirectoryServiceGetResponseAppProtocol string
const (
	DirectoryServiceGetResponseAppProtocolPostgresql DirectoryServiceGetResponseAppProtocol = "postgresql"
	DirectoryServiceGetResponseAppProtocolMysql      DirectoryServiceGetResponseAppProtocol = "mysql"
)

func (DirectoryServiceGetResponseAppProtocol) IsKnown added in v6.9.0

type DirectoryServiceGetResponseEnvelope

type DirectoryServiceGetResponseEnvelope struct {
	Errors   []DirectoryServiceGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []DirectoryServiceGetResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success DirectoryServiceGetResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  DirectoryServiceGetResponse                `json:"result"`
	JSON    directoryServiceGetResponseEnvelopeJSON    `json:"-"`
}

func (*DirectoryServiceGetResponseEnvelope) UnmarshalJSON

func (r *DirectoryServiceGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceGetResponseEnvelopeErrors

type DirectoryServiceGetResponseEnvelopeErrors struct {
	Code             int64                                           `json:"code" api:"required"`
	Message          string                                          `json:"message" api:"required"`
	DocumentationURL string                                          `json:"documentation_url"`
	Source           DirectoryServiceGetResponseEnvelopeErrorsSource `json:"source"`
	JSON             directoryServiceGetResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*DirectoryServiceGetResponseEnvelopeErrors) UnmarshalJSON

func (r *DirectoryServiceGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceGetResponseEnvelopeErrorsSource

type DirectoryServiceGetResponseEnvelopeErrorsSource struct {
	Pointer string                                              `json:"pointer"`
	JSON    directoryServiceGetResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*DirectoryServiceGetResponseEnvelopeErrorsSource) UnmarshalJSON

func (r *DirectoryServiceGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceGetResponseEnvelopeMessages

type DirectoryServiceGetResponseEnvelopeMessages struct {
	Code             int64                                             `json:"code" api:"required"`
	Message          string                                            `json:"message" api:"required"`
	DocumentationURL string                                            `json:"documentation_url"`
	Source           DirectoryServiceGetResponseEnvelopeMessagesSource `json:"source"`
	JSON             directoryServiceGetResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*DirectoryServiceGetResponseEnvelopeMessages) UnmarshalJSON

func (r *DirectoryServiceGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceGetResponseEnvelopeMessagesSource

type DirectoryServiceGetResponseEnvelopeMessagesSource struct {
	Pointer string                                                `json:"pointer"`
	JSON    directoryServiceGetResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*DirectoryServiceGetResponseEnvelopeMessagesSource) UnmarshalJSON

func (r *DirectoryServiceGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceGetResponseEnvelopeSuccess

type DirectoryServiceGetResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	DirectoryServiceGetResponseEnvelopeSuccessTrue DirectoryServiceGetResponseEnvelopeSuccess = true
)

func (DirectoryServiceGetResponseEnvelopeSuccess) IsKnown

type DirectoryServiceGetResponseInfraHTTPServiceConfig added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfig struct {
	Host      DirectoryServiceGetResponseInfraHTTPServiceConfigHost `json:"host" api:"required"`
	Name      string                                                `json:"name" api:"required"`
	Type      DirectoryServiceGetResponseInfraHTTPServiceConfigType `json:"type" api:"required"`
	CreatedAt time.Time                                             `json:"created_at" format:"date-time"`
	HTTPPort  int64                                                 `json:"http_port" api:"nullable"`
	HTTPSPort int64                                                 `json:"https_port" api:"nullable"`
	ServiceID string                                                `json:"service_id" format:"uuid"`
	// TLS settings for a connectivity service.
	//
	// If omitted, the default mode (`verify_full`) is used.
	TLSSettings DirectoryServiceGetResponseInfraHTTPServiceConfigTLSSettings `json:"tls_settings" api:"nullable"`
	UpdatedAt   time.Time                                                    `json:"updated_at" format:"date-time"`
	JSON        directoryServiceGetResponseInfraHTTPServiceConfigJSON        `json:"-"`
}

func (*DirectoryServiceGetResponseInfraHTTPServiceConfig) UnmarshalJSON added in v6.9.0

func (r *DirectoryServiceGetResponseInfraHTTPServiceConfig) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceGetResponseInfraHTTPServiceConfigHost added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigHost struct {
	Hostname string `json:"hostname"`
	IPV4     string `json:"ipv4"`
	IPV6     string `json:"ipv6"`
	// This field can have the runtime type of
	// [DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork],
	// [DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork],
	// [DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork].
	Network interface{} `json:"network"`
	// This field can have the runtime type of
	// [DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork].
	ResolverNetwork interface{}                                               `json:"resolver_network"`
	JSON            directoryServiceGetResponseInfraHTTPServiceConfigHostJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*DirectoryServiceGetResponseInfraHTTPServiceConfigHost) UnmarshalJSON added in v6.9.0

func (r *DirectoryServiceGetResponseInfraHTTPServiceConfigHost) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraDualStackHost added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraDualStackHost struct {
	IPV4    string                                                                         `json:"ipv4" api:"required"`
	IPV6    string                                                                         `json:"ipv6" api:"required"`
	Network DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork `json:"network" api:"required"`
	JSON    directoryServiceGetResponseInfraHTTPServiceConfigHostInfraDualStackHostJSON    `json:"-"`
}

func (*DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraDualStackHost) UnmarshalJSON added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork struct {
	TunnelID string                                                                             `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceGetResponseInfraHTTPServiceConfigHostInfraDualStackHostNetworkJSON `json:"-"`
}

func (*DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraHostnameHost added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraHostnameHost struct {
	Hostname        string                                                                                `json:"hostname" api:"required"`
	ResolverNetwork DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork `json:"resolver_network" api:"required"`
	JSON            directoryServiceGetResponseInfraHTTPServiceConfigHostInfraHostnameHostJSON            `json:"-"`
}

func (*DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraHostnameHost) UnmarshalJSON added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork struct {
	TunnelID    string                                                                                    `json:"tunnel_id" api:"required" format:"uuid"`
	ResolverIPs []string                                                                                  `json:"resolver_ips" api:"nullable"`
	JSON        directoryServiceGetResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetworkJSON `json:"-"`
}

func (*DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv4Host added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv4Host struct {
	IPV4    string                                                                    `json:"ipv4" api:"required"`
	Network DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork `json:"network" api:"required"`
	JSON    directoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv4HostJSON    `json:"-"`
}

func (*DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv4Host) UnmarshalJSON added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork struct {
	TunnelID string                                                                        `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv4HostNetworkJSON `json:"-"`
}

func (*DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv6Host added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv6Host struct {
	IPV6    string                                                                    `json:"ipv6" api:"required"`
	Network DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork `json:"network" api:"required"`
	JSON    directoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv6HostJSON    `json:"-"`
}

func (*DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv6Host) UnmarshalJSON added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork struct {
	TunnelID string                                                                        `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv6HostNetworkJSON `json:"-"`
}

func (*DirectoryServiceGetResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigTLSSettings added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigTLSSettings struct {
	// TLS certificate verification mode for the connection to the origin.
	//
	// - `"verify_full"` — verify certificate chain and hostname (default)
	// - `"verify_ca"` — verify certificate chain only, skip hostname check
	// - `"disabled"` — do not verify the server certificate at all
	CERTVerificationMode string                                                           `json:"cert_verification_mode" api:"required"`
	JSON                 directoryServiceGetResponseInfraHTTPServiceConfigTLSSettingsJSON `json:"-"`
}

TLS settings for a connectivity service.

If omitted, the default mode (`verify_full`) is used.

func (*DirectoryServiceGetResponseInfraHTTPServiceConfigTLSSettings) UnmarshalJSON added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigType added in v6.9.0

type DirectoryServiceGetResponseInfraHTTPServiceConfigType string
const (
	DirectoryServiceGetResponseInfraHTTPServiceConfigTypeTCP  DirectoryServiceGetResponseInfraHTTPServiceConfigType = "tcp"
	DirectoryServiceGetResponseInfraHTTPServiceConfigTypeHTTP DirectoryServiceGetResponseInfraHTTPServiceConfigType = "http"
)

func (DirectoryServiceGetResponseInfraHTTPServiceConfigType) IsKnown added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfig added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfig struct {
	Host        DirectoryServiceGetResponseInfraTCPServiceConfigHost        `json:"host" api:"required"`
	Name        string                                                      `json:"name" api:"required"`
	Type        DirectoryServiceGetResponseInfraTCPServiceConfigType        `json:"type" api:"required"`
	AppProtocol DirectoryServiceGetResponseInfraTCPServiceConfigAppProtocol `json:"app_protocol" api:"nullable"`
	CreatedAt   time.Time                                                   `json:"created_at" format:"date-time"`
	ServiceID   string                                                      `json:"service_id" format:"uuid"`
	TCPPort     int64                                                       `json:"tcp_port" api:"nullable"`
	// TLS settings for a connectivity service.
	//
	// If omitted, the default mode (`verify_full`) is used.
	TLSSettings DirectoryServiceGetResponseInfraTCPServiceConfigTLSSettings `json:"tls_settings" api:"nullable"`
	UpdatedAt   time.Time                                                   `json:"updated_at" format:"date-time"`
	JSON        directoryServiceGetResponseInfraTCPServiceConfigJSON        `json:"-"`
}

func (*DirectoryServiceGetResponseInfraTCPServiceConfig) UnmarshalJSON added in v6.9.0

func (r *DirectoryServiceGetResponseInfraTCPServiceConfig) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceGetResponseInfraTCPServiceConfigAppProtocol added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigAppProtocol string
const (
	DirectoryServiceGetResponseInfraTCPServiceConfigAppProtocolPostgresql DirectoryServiceGetResponseInfraTCPServiceConfigAppProtocol = "postgresql"
	DirectoryServiceGetResponseInfraTCPServiceConfigAppProtocolMysql      DirectoryServiceGetResponseInfraTCPServiceConfigAppProtocol = "mysql"
)

func (DirectoryServiceGetResponseInfraTCPServiceConfigAppProtocol) IsKnown added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigHost added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigHost struct {
	Hostname string `json:"hostname"`
	IPV4     string `json:"ipv4"`
	IPV6     string `json:"ipv6"`
	// This field can have the runtime type of
	// [DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork],
	// [DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork],
	// [DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork].
	Network interface{} `json:"network"`
	// This field can have the runtime type of
	// [DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork].
	ResolverNetwork interface{}                                              `json:"resolver_network"`
	JSON            directoryServiceGetResponseInfraTCPServiceConfigHostJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*DirectoryServiceGetResponseInfraTCPServiceConfigHost) UnmarshalJSON added in v6.9.0

func (r *DirectoryServiceGetResponseInfraTCPServiceConfigHost) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraDualStackHost added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraDualStackHost struct {
	IPV4    string                                                                        `json:"ipv4" api:"required"`
	IPV6    string                                                                        `json:"ipv6" api:"required"`
	Network DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork `json:"network" api:"required"`
	JSON    directoryServiceGetResponseInfraTCPServiceConfigHostInfraDualStackHostJSON    `json:"-"`
}

func (*DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraDualStackHost) UnmarshalJSON added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork struct {
	TunnelID string                                                                            `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceGetResponseInfraTCPServiceConfigHostInfraDualStackHostNetworkJSON `json:"-"`
}

func (*DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraHostnameHost added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraHostnameHost struct {
	Hostname        string                                                                               `json:"hostname" api:"required"`
	ResolverNetwork DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork `json:"resolver_network" api:"required"`
	JSON            directoryServiceGetResponseInfraTCPServiceConfigHostInfraHostnameHostJSON            `json:"-"`
}

func (*DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraHostnameHost) UnmarshalJSON added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork struct {
	TunnelID    string                                                                                   `json:"tunnel_id" api:"required" format:"uuid"`
	ResolverIPs []string                                                                                 `json:"resolver_ips" api:"nullable"`
	JSON        directoryServiceGetResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetworkJSON `json:"-"`
}

func (*DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv4Host added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv4Host struct {
	IPV4    string                                                                   `json:"ipv4" api:"required"`
	Network DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork `json:"network" api:"required"`
	JSON    directoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv4HostJSON    `json:"-"`
}

func (*DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv4Host) UnmarshalJSON added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork struct {
	TunnelID string                                                                       `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv4HostNetworkJSON `json:"-"`
}

func (*DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv6Host added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv6Host struct {
	IPV6    string                                                                   `json:"ipv6" api:"required"`
	Network DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork `json:"network" api:"required"`
	JSON    directoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv6HostJSON    `json:"-"`
}

func (*DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv6Host) UnmarshalJSON added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork struct {
	TunnelID string                                                                       `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv6HostNetworkJSON `json:"-"`
}

func (*DirectoryServiceGetResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigTLSSettings added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigTLSSettings struct {
	// TLS certificate verification mode for the connection to the origin.
	//
	// - `"verify_full"` — verify certificate chain and hostname (default)
	// - `"verify_ca"` — verify certificate chain only, skip hostname check
	// - `"disabled"` — do not verify the server certificate at all
	CERTVerificationMode string                                                          `json:"cert_verification_mode" api:"required"`
	JSON                 directoryServiceGetResponseInfraTCPServiceConfigTLSSettingsJSON `json:"-"`
}

TLS settings for a connectivity service.

If omitted, the default mode (`verify_full`) is used.

func (*DirectoryServiceGetResponseInfraTCPServiceConfigTLSSettings) UnmarshalJSON added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigType added in v6.9.0

type DirectoryServiceGetResponseInfraTCPServiceConfigType string
const (
	DirectoryServiceGetResponseInfraTCPServiceConfigTypeTCP  DirectoryServiceGetResponseInfraTCPServiceConfigType = "tcp"
	DirectoryServiceGetResponseInfraTCPServiceConfigTypeHTTP DirectoryServiceGetResponseInfraTCPServiceConfigType = "http"
)

func (DirectoryServiceGetResponseInfraTCPServiceConfigType) IsKnown added in v6.9.0

type DirectoryServiceGetResponseType

type DirectoryServiceGetResponseType string
const (
	DirectoryServiceGetResponseTypeTCP  DirectoryServiceGetResponseType = "tcp"
	DirectoryServiceGetResponseTypeHTTP DirectoryServiceGetResponseType = "http"
)

func (DirectoryServiceGetResponseType) IsKnown

type DirectoryServiceGetResponseUnion added in v6.9.0

type DirectoryServiceGetResponseUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by DirectoryServiceGetResponseInfraHTTPServiceConfig or DirectoryServiceGetResponseInfraTCPServiceConfig.

type DirectoryServiceListParams

type DirectoryServiceListParams struct {
	// Account identifier
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Current page in the response
	Page param.Field[int64] `query:"page"`
	// Max amount of entries returned per page
	PerPage param.Field[int64]                          `query:"per_page"`
	Type    param.Field[DirectoryServiceListParamsType] `query:"type"`
}

func (DirectoryServiceListParams) URLQuery

func (r DirectoryServiceListParams) URLQuery() (v url.Values)

URLQuery serializes DirectoryServiceListParams's query parameters as `url.Values`.

type DirectoryServiceListParamsType

type DirectoryServiceListParamsType string
const (
	DirectoryServiceListParamsTypeTCP  DirectoryServiceListParamsType = "tcp"
	DirectoryServiceListParamsTypeHTTP DirectoryServiceListParamsType = "http"
)

func (DirectoryServiceListParamsType) IsKnown

type DirectoryServiceListResponse

type DirectoryServiceListResponse struct {
	// This field can have the runtime type of
	// [DirectoryServiceListResponseInfraHTTPServiceConfigHost],
	// [DirectoryServiceListResponseInfraTCPServiceConfigHost].
	Host        interface{}                             `json:"host" api:"required"`
	Name        string                                  `json:"name" api:"required"`
	Type        DirectoryServiceListResponseType        `json:"type" api:"required"`
	AppProtocol DirectoryServiceListResponseAppProtocol `json:"app_protocol" api:"nullable"`
	CreatedAt   time.Time                               `json:"created_at" format:"date-time"`
	HTTPPort    int64                                   `json:"http_port" api:"nullable"`
	HTTPSPort   int64                                   `json:"https_port" api:"nullable"`
	ServiceID   string                                  `json:"service_id" format:"uuid"`
	TCPPort     int64                                   `json:"tcp_port" api:"nullable"`
	// This field can have the runtime type of
	// [DirectoryServiceListResponseInfraHTTPServiceConfigTLSSettings],
	// [DirectoryServiceListResponseInfraTCPServiceConfigTLSSettings].
	TLSSettings interface{}                      `json:"tls_settings"`
	UpdatedAt   time.Time                        `json:"updated_at" format:"date-time"`
	JSON        directoryServiceListResponseJSON `json:"-"`
	// contains filtered or unexported fields
}

func (DirectoryServiceListResponse) AsUnion added in v6.9.0

AsUnion returns a DirectoryServiceListResponseUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are DirectoryServiceListResponseInfraHTTPServiceConfig, DirectoryServiceListResponseInfraTCPServiceConfig.

func (*DirectoryServiceListResponse) UnmarshalJSON

func (r *DirectoryServiceListResponse) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceListResponseAppProtocol added in v6.9.0

type DirectoryServiceListResponseAppProtocol string
const (
	DirectoryServiceListResponseAppProtocolPostgresql DirectoryServiceListResponseAppProtocol = "postgresql"
	DirectoryServiceListResponseAppProtocolMysql      DirectoryServiceListResponseAppProtocol = "mysql"
)

func (DirectoryServiceListResponseAppProtocol) IsKnown added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfig added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfig struct {
	Host      DirectoryServiceListResponseInfraHTTPServiceConfigHost `json:"host" api:"required"`
	Name      string                                                 `json:"name" api:"required"`
	Type      DirectoryServiceListResponseInfraHTTPServiceConfigType `json:"type" api:"required"`
	CreatedAt time.Time                                              `json:"created_at" format:"date-time"`
	HTTPPort  int64                                                  `json:"http_port" api:"nullable"`
	HTTPSPort int64                                                  `json:"https_port" api:"nullable"`
	ServiceID string                                                 `json:"service_id" format:"uuid"`
	// TLS settings for a connectivity service.
	//
	// If omitted, the default mode (`verify_full`) is used.
	TLSSettings DirectoryServiceListResponseInfraHTTPServiceConfigTLSSettings `json:"tls_settings" api:"nullable"`
	UpdatedAt   time.Time                                                     `json:"updated_at" format:"date-time"`
	JSON        directoryServiceListResponseInfraHTTPServiceConfigJSON        `json:"-"`
}

func (*DirectoryServiceListResponseInfraHTTPServiceConfig) UnmarshalJSON added in v6.9.0

func (r *DirectoryServiceListResponseInfraHTTPServiceConfig) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceListResponseInfraHTTPServiceConfigHost added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigHost struct {
	Hostname string `json:"hostname"`
	IPV4     string `json:"ipv4"`
	IPV6     string `json:"ipv6"`
	// This field can have the runtime type of
	// [DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork],
	// [DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork],
	// [DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork].
	Network interface{} `json:"network"`
	// This field can have the runtime type of
	// [DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork].
	ResolverNetwork interface{}                                                `json:"resolver_network"`
	JSON            directoryServiceListResponseInfraHTTPServiceConfigHostJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*DirectoryServiceListResponseInfraHTTPServiceConfigHost) UnmarshalJSON added in v6.9.0

func (r *DirectoryServiceListResponseInfraHTTPServiceConfigHost) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraDualStackHost added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraDualStackHost struct {
	IPV4    string                                                                          `json:"ipv4" api:"required"`
	IPV6    string                                                                          `json:"ipv6" api:"required"`
	Network DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork `json:"network" api:"required"`
	JSON    directoryServiceListResponseInfraHTTPServiceConfigHostInfraDualStackHostJSON    `json:"-"`
}

func (*DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraDualStackHost) UnmarshalJSON added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork struct {
	TunnelID string                                                                              `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceListResponseInfraHTTPServiceConfigHostInfraDualStackHostNetworkJSON `json:"-"`
}

func (*DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraHostnameHost added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraHostnameHost struct {
	Hostname        string                                                                                 `json:"hostname" api:"required"`
	ResolverNetwork DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork `json:"resolver_network" api:"required"`
	JSON            directoryServiceListResponseInfraHTTPServiceConfigHostInfraHostnameHostJSON            `json:"-"`
}

func (*DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraHostnameHost) UnmarshalJSON added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork struct {
	TunnelID    string                                                                                     `json:"tunnel_id" api:"required" format:"uuid"`
	ResolverIPs []string                                                                                   `json:"resolver_ips" api:"nullable"`
	JSON        directoryServiceListResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetworkJSON `json:"-"`
}

func (*DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv4Host added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv4Host struct {
	IPV4    string                                                                     `json:"ipv4" api:"required"`
	Network DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork `json:"network" api:"required"`
	JSON    directoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv4HostJSON    `json:"-"`
}

func (*DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv4Host) UnmarshalJSON added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork struct {
	TunnelID string                                                                         `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv4HostNetworkJSON `json:"-"`
}

func (*DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv6Host added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv6Host struct {
	IPV6    string                                                                     `json:"ipv6" api:"required"`
	Network DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork `json:"network" api:"required"`
	JSON    directoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv6HostJSON    `json:"-"`
}

func (*DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv6Host) UnmarshalJSON added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork struct {
	TunnelID string                                                                         `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv6HostNetworkJSON `json:"-"`
}

func (*DirectoryServiceListResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigTLSSettings added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigTLSSettings struct {
	// TLS certificate verification mode for the connection to the origin.
	//
	// - `"verify_full"` — verify certificate chain and hostname (default)
	// - `"verify_ca"` — verify certificate chain only, skip hostname check
	// - `"disabled"` — do not verify the server certificate at all
	CERTVerificationMode string                                                            `json:"cert_verification_mode" api:"required"`
	JSON                 directoryServiceListResponseInfraHTTPServiceConfigTLSSettingsJSON `json:"-"`
}

TLS settings for a connectivity service.

If omitted, the default mode (`verify_full`) is used.

func (*DirectoryServiceListResponseInfraHTTPServiceConfigTLSSettings) UnmarshalJSON added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigType added in v6.9.0

type DirectoryServiceListResponseInfraHTTPServiceConfigType string
const (
	DirectoryServiceListResponseInfraHTTPServiceConfigTypeTCP  DirectoryServiceListResponseInfraHTTPServiceConfigType = "tcp"
	DirectoryServiceListResponseInfraHTTPServiceConfigTypeHTTP DirectoryServiceListResponseInfraHTTPServiceConfigType = "http"
)

func (DirectoryServiceListResponseInfraHTTPServiceConfigType) IsKnown added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfig added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfig struct {
	Host        DirectoryServiceListResponseInfraTCPServiceConfigHost        `json:"host" api:"required"`
	Name        string                                                       `json:"name" api:"required"`
	Type        DirectoryServiceListResponseInfraTCPServiceConfigType        `json:"type" api:"required"`
	AppProtocol DirectoryServiceListResponseInfraTCPServiceConfigAppProtocol `json:"app_protocol" api:"nullable"`
	CreatedAt   time.Time                                                    `json:"created_at" format:"date-time"`
	ServiceID   string                                                       `json:"service_id" format:"uuid"`
	TCPPort     int64                                                        `json:"tcp_port" api:"nullable"`
	// TLS settings for a connectivity service.
	//
	// If omitted, the default mode (`verify_full`) is used.
	TLSSettings DirectoryServiceListResponseInfraTCPServiceConfigTLSSettings `json:"tls_settings" api:"nullable"`
	UpdatedAt   time.Time                                                    `json:"updated_at" format:"date-time"`
	JSON        directoryServiceListResponseInfraTCPServiceConfigJSON        `json:"-"`
}

func (*DirectoryServiceListResponseInfraTCPServiceConfig) UnmarshalJSON added in v6.9.0

func (r *DirectoryServiceListResponseInfraTCPServiceConfig) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceListResponseInfraTCPServiceConfigAppProtocol added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigAppProtocol string
const (
	DirectoryServiceListResponseInfraTCPServiceConfigAppProtocolPostgresql DirectoryServiceListResponseInfraTCPServiceConfigAppProtocol = "postgresql"
	DirectoryServiceListResponseInfraTCPServiceConfigAppProtocolMysql      DirectoryServiceListResponseInfraTCPServiceConfigAppProtocol = "mysql"
)

func (DirectoryServiceListResponseInfraTCPServiceConfigAppProtocol) IsKnown added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigHost added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigHost struct {
	Hostname string `json:"hostname"`
	IPV4     string `json:"ipv4"`
	IPV6     string `json:"ipv6"`
	// This field can have the runtime type of
	// [DirectoryServiceListResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork],
	// [DirectoryServiceListResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork],
	// [DirectoryServiceListResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork].
	Network interface{} `json:"network"`
	// This field can have the runtime type of
	// [DirectoryServiceListResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork].
	ResolverNetwork interface{}                                               `json:"resolver_network"`
	JSON            directoryServiceListResponseInfraTCPServiceConfigHostJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*DirectoryServiceListResponseInfraTCPServiceConfigHost) UnmarshalJSON added in v6.9.0

func (r *DirectoryServiceListResponseInfraTCPServiceConfigHost) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceListResponseInfraTCPServiceConfigHostInfraDualStackHost added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigHostInfraDualStackHost struct {
	IPV4    string                                                                         `json:"ipv4" api:"required"`
	IPV6    string                                                                         `json:"ipv6" api:"required"`
	Network DirectoryServiceListResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork `json:"network" api:"required"`
	JSON    directoryServiceListResponseInfraTCPServiceConfigHostInfraDualStackHostJSON    `json:"-"`
}

func (*DirectoryServiceListResponseInfraTCPServiceConfigHostInfraDualStackHost) UnmarshalJSON added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork struct {
	TunnelID string                                                                             `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceListResponseInfraTCPServiceConfigHostInfraDualStackHostNetworkJSON `json:"-"`
}

func (*DirectoryServiceListResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigHostInfraHostnameHost added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigHostInfraHostnameHost struct {
	Hostname        string                                                                                `json:"hostname" api:"required"`
	ResolverNetwork DirectoryServiceListResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork `json:"resolver_network" api:"required"`
	JSON            directoryServiceListResponseInfraTCPServiceConfigHostInfraHostnameHostJSON            `json:"-"`
}

func (*DirectoryServiceListResponseInfraTCPServiceConfigHostInfraHostnameHost) UnmarshalJSON added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork struct {
	TunnelID    string                                                                                    `json:"tunnel_id" api:"required" format:"uuid"`
	ResolverIPs []string                                                                                  `json:"resolver_ips" api:"nullable"`
	JSON        directoryServiceListResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetworkJSON `json:"-"`
}

func (*DirectoryServiceListResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigHostInfraIPv4Host added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigHostInfraIPv4Host struct {
	IPV4    string                                                                    `json:"ipv4" api:"required"`
	Network DirectoryServiceListResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork `json:"network" api:"required"`
	JSON    directoryServiceListResponseInfraTCPServiceConfigHostInfraIPv4HostJSON    `json:"-"`
}

func (*DirectoryServiceListResponseInfraTCPServiceConfigHostInfraIPv4Host) UnmarshalJSON added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork struct {
	TunnelID string                                                                        `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceListResponseInfraTCPServiceConfigHostInfraIPv4HostNetworkJSON `json:"-"`
}

func (*DirectoryServiceListResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigHostInfraIPv6Host added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigHostInfraIPv6Host struct {
	IPV6    string                                                                    `json:"ipv6" api:"required"`
	Network DirectoryServiceListResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork `json:"network" api:"required"`
	JSON    directoryServiceListResponseInfraTCPServiceConfigHostInfraIPv6HostJSON    `json:"-"`
}

func (*DirectoryServiceListResponseInfraTCPServiceConfigHostInfraIPv6Host) UnmarshalJSON added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork struct {
	TunnelID string                                                                        `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceListResponseInfraTCPServiceConfigHostInfraIPv6HostNetworkJSON `json:"-"`
}

func (*DirectoryServiceListResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigTLSSettings added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigTLSSettings struct {
	// TLS certificate verification mode for the connection to the origin.
	//
	// - `"verify_full"` — verify certificate chain and hostname (default)
	// - `"verify_ca"` — verify certificate chain only, skip hostname check
	// - `"disabled"` — do not verify the server certificate at all
	CERTVerificationMode string                                                           `json:"cert_verification_mode" api:"required"`
	JSON                 directoryServiceListResponseInfraTCPServiceConfigTLSSettingsJSON `json:"-"`
}

TLS settings for a connectivity service.

If omitted, the default mode (`verify_full`) is used.

func (*DirectoryServiceListResponseInfraTCPServiceConfigTLSSettings) UnmarshalJSON added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigType added in v6.9.0

type DirectoryServiceListResponseInfraTCPServiceConfigType string
const (
	DirectoryServiceListResponseInfraTCPServiceConfigTypeTCP  DirectoryServiceListResponseInfraTCPServiceConfigType = "tcp"
	DirectoryServiceListResponseInfraTCPServiceConfigTypeHTTP DirectoryServiceListResponseInfraTCPServiceConfigType = "http"
)

func (DirectoryServiceListResponseInfraTCPServiceConfigType) IsKnown added in v6.9.0

type DirectoryServiceListResponseType

type DirectoryServiceListResponseType string
const (
	DirectoryServiceListResponseTypeTCP  DirectoryServiceListResponseType = "tcp"
	DirectoryServiceListResponseTypeHTTP DirectoryServiceListResponseType = "http"
)

func (DirectoryServiceListResponseType) IsKnown

type DirectoryServiceListResponseUnion added in v6.9.0

type DirectoryServiceListResponseUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by DirectoryServiceListResponseInfraHTTPServiceConfig or DirectoryServiceListResponseInfraTCPServiceConfig.

type DirectoryServiceNewParams

type DirectoryServiceNewParams struct {
	// Account identifier
	AccountID param.Field[string]                `path:"account_id" api:"required"`
	Body      DirectoryServiceNewParamsBodyUnion `json:"body" api:"required"`
}

func (DirectoryServiceNewParams) MarshalJSON

func (r DirectoryServiceNewParams) MarshalJSON() (data []byte, err error)

type DirectoryServiceNewParamsBody added in v6.9.0

type DirectoryServiceNewParamsBody struct {
	Host        param.Field[interface{}]                              `json:"host" api:"required"`
	Name        param.Field[string]                                   `json:"name" api:"required"`
	Type        param.Field[DirectoryServiceNewParamsBodyType]        `json:"type" api:"required"`
	AppProtocol param.Field[DirectoryServiceNewParamsBodyAppProtocol] `json:"app_protocol"`
	HTTPPort    param.Field[int64]                                    `json:"http_port"`
	HTTPSPort   param.Field[int64]                                    `json:"https_port"`
	TCPPort     param.Field[int64]                                    `json:"tcp_port"`
	TLSSettings param.Field[interface{}]                              `json:"tls_settings"`
}

func (DirectoryServiceNewParamsBody) MarshalJSON added in v6.9.0

func (r DirectoryServiceNewParamsBody) MarshalJSON() (data []byte, err error)

type DirectoryServiceNewParamsBodyAppProtocol added in v6.9.0

type DirectoryServiceNewParamsBodyAppProtocol string
const (
	DirectoryServiceNewParamsBodyAppProtocolPostgresql DirectoryServiceNewParamsBodyAppProtocol = "postgresql"
	DirectoryServiceNewParamsBodyAppProtocolMysql      DirectoryServiceNewParamsBodyAppProtocol = "mysql"
)

func (DirectoryServiceNewParamsBodyAppProtocol) IsKnown added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfig added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfig struct {
	Host      param.Field[DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostUnion] `json:"host" api:"required"`
	Name      param.Field[string]                                                       `json:"name" api:"required"`
	Type      param.Field[DirectoryServiceNewParamsBodyInfraHTTPServiceConfigType]      `json:"type" api:"required"`
	HTTPPort  param.Field[int64]                                                        `json:"http_port"`
	HTTPSPort param.Field[int64]                                                        `json:"https_port"`
	// TLS settings for a connectivity service.
	//
	// If omitted, the default mode (`verify_full`) is used.
	TLSSettings param.Field[DirectoryServiceNewParamsBodyInfraHTTPServiceConfigTLSSettings] `json:"tls_settings"`
}

func (DirectoryServiceNewParamsBodyInfraHTTPServiceConfig) MarshalJSON added in v6.9.0

func (r DirectoryServiceNewParamsBodyInfraHTTPServiceConfig) MarshalJSON() (data []byte, err error)

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHost added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHost struct {
	Hostname        param.Field[string]      `json:"hostname"`
	IPV4            param.Field[string]      `json:"ipv4"`
	IPV6            param.Field[string]      `json:"ipv6"`
	Network         param.Field[interface{}] `json:"network"`
	ResolverNetwork param.Field[interface{}] `json:"resolver_network"`
}

func (DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHost) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraDualStackHost added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraDualStackHost struct {
	IPV4    param.Field[string]                                                                           `json:"ipv4" api:"required"`
	IPV6    param.Field[string]                                                                           `json:"ipv6" api:"required"`
	Network param.Field[DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraDualStackHostNetwork] `json:"network" api:"required"`
}

func (DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraDualStackHost) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraDualStackHostNetwork added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraDualStackHostNetwork struct {
	TunnelID param.Field[string] `json:"tunnel_id" api:"required" format:"uuid"`
}

func (DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraDualStackHostNetwork) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraHostnameHost added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraHostnameHost struct {
	Hostname        param.Field[string]                                                                                  `json:"hostname" api:"required"`
	ResolverNetwork param.Field[DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork] `json:"resolver_network" api:"required"`
}

func (DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraHostnameHost) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork struct {
	TunnelID    param.Field[string]   `json:"tunnel_id" api:"required" format:"uuid"`
	ResolverIPs param.Field[[]string] `json:"resolver_ips"`
}

func (DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraIPv4Host added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraIPv4Host struct {
	IPV4    param.Field[string]                                                                      `json:"ipv4" api:"required"`
	Network param.Field[DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraIPv4HostNetwork] `json:"network" api:"required"`
}

func (DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraIPv4Host) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraIPv4HostNetwork added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraIPv4HostNetwork struct {
	TunnelID param.Field[string] `json:"tunnel_id" api:"required" format:"uuid"`
}

func (DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraIPv4HostNetwork) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraIPv6Host added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraIPv6Host struct {
	IPV6    param.Field[string]                                                                      `json:"ipv6" api:"required"`
	Network param.Field[DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraIPv6HostNetwork] `json:"network" api:"required"`
}

func (DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraIPv6Host) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraIPv6HostNetwork added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraIPv6HostNetwork struct {
	TunnelID param.Field[string] `json:"tunnel_id" api:"required" format:"uuid"`
}

func (DirectoryServiceNewParamsBodyInfraHTTPServiceConfigHostInfraIPv6HostNetwork) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigTLSSettings added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigTLSSettings struct {
	// TLS certificate verification mode for the connection to the origin.
	//
	// - `"verify_full"` — verify certificate chain and hostname (default)
	// - `"verify_ca"` — verify certificate chain only, skip hostname check
	// - `"disabled"` — do not verify the server certificate at all
	CERTVerificationMode param.Field[string] `json:"cert_verification_mode" api:"required"`
}

TLS settings for a connectivity service.

If omitted, the default mode (`verify_full`) is used.

func (DirectoryServiceNewParamsBodyInfraHTTPServiceConfigTLSSettings) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigType added in v6.9.0

type DirectoryServiceNewParamsBodyInfraHTTPServiceConfigType string
const (
	DirectoryServiceNewParamsBodyInfraHTTPServiceConfigTypeTCP  DirectoryServiceNewParamsBodyInfraHTTPServiceConfigType = "tcp"
	DirectoryServiceNewParamsBodyInfraHTTPServiceConfigTypeHTTP DirectoryServiceNewParamsBodyInfraHTTPServiceConfigType = "http"
)

func (DirectoryServiceNewParamsBodyInfraHTTPServiceConfigType) IsKnown added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfig added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfig struct {
	Host        param.Field[DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostUnion]   `json:"host" api:"required"`
	Name        param.Field[string]                                                        `json:"name" api:"required"`
	Type        param.Field[DirectoryServiceNewParamsBodyInfraTCPServiceConfigType]        `json:"type" api:"required"`
	AppProtocol param.Field[DirectoryServiceNewParamsBodyInfraTCPServiceConfigAppProtocol] `json:"app_protocol"`
	TCPPort     param.Field[int64]                                                         `json:"tcp_port"`
	// TLS settings for a connectivity service.
	//
	// If omitted, the default mode (`verify_full`) is used.
	TLSSettings param.Field[DirectoryServiceNewParamsBodyInfraTCPServiceConfigTLSSettings] `json:"tls_settings"`
}

func (DirectoryServiceNewParamsBodyInfraTCPServiceConfig) MarshalJSON added in v6.9.0

func (r DirectoryServiceNewParamsBodyInfraTCPServiceConfig) MarshalJSON() (data []byte, err error)

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigAppProtocol added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigAppProtocol string
const (
	DirectoryServiceNewParamsBodyInfraTCPServiceConfigAppProtocolPostgresql DirectoryServiceNewParamsBodyInfraTCPServiceConfigAppProtocol = "postgresql"
	DirectoryServiceNewParamsBodyInfraTCPServiceConfigAppProtocolMysql      DirectoryServiceNewParamsBodyInfraTCPServiceConfigAppProtocol = "mysql"
)

func (DirectoryServiceNewParamsBodyInfraTCPServiceConfigAppProtocol) IsKnown added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigHost added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigHost struct {
	Hostname        param.Field[string]      `json:"hostname"`
	IPV4            param.Field[string]      `json:"ipv4"`
	IPV6            param.Field[string]      `json:"ipv6"`
	Network         param.Field[interface{}] `json:"network"`
	ResolverNetwork param.Field[interface{}] `json:"resolver_network"`
}

func (DirectoryServiceNewParamsBodyInfraTCPServiceConfigHost) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraDualStackHost added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraDualStackHost struct {
	IPV4    param.Field[string]                                                                          `json:"ipv4" api:"required"`
	IPV6    param.Field[string]                                                                          `json:"ipv6" api:"required"`
	Network param.Field[DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraDualStackHostNetwork] `json:"network" api:"required"`
}

func (DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraDualStackHost) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraDualStackHostNetwork added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraDualStackHostNetwork struct {
	TunnelID param.Field[string] `json:"tunnel_id" api:"required" format:"uuid"`
}

func (DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraDualStackHostNetwork) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraHostnameHost added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraHostnameHost struct {
	Hostname        param.Field[string]                                                                                 `json:"hostname" api:"required"`
	ResolverNetwork param.Field[DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork] `json:"resolver_network" api:"required"`
}

func (DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraHostnameHost) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork struct {
	TunnelID    param.Field[string]   `json:"tunnel_id" api:"required" format:"uuid"`
	ResolverIPs param.Field[[]string] `json:"resolver_ips"`
}

func (DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraIPv4Host added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraIPv4Host struct {
	IPV4    param.Field[string]                                                                     `json:"ipv4" api:"required"`
	Network param.Field[DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraIPv4HostNetwork] `json:"network" api:"required"`
}

func (DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraIPv4Host) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraIPv4HostNetwork added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraIPv4HostNetwork struct {
	TunnelID param.Field[string] `json:"tunnel_id" api:"required" format:"uuid"`
}

func (DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraIPv4HostNetwork) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraIPv6Host added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraIPv6Host struct {
	IPV6    param.Field[string]                                                                     `json:"ipv6" api:"required"`
	Network param.Field[DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraIPv6HostNetwork] `json:"network" api:"required"`
}

func (DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraIPv6Host) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraIPv6HostNetwork added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraIPv6HostNetwork struct {
	TunnelID param.Field[string] `json:"tunnel_id" api:"required" format:"uuid"`
}

func (DirectoryServiceNewParamsBodyInfraTCPServiceConfigHostInfraIPv6HostNetwork) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigTLSSettings added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigTLSSettings struct {
	// TLS certificate verification mode for the connection to the origin.
	//
	// - `"verify_full"` — verify certificate chain and hostname (default)
	// - `"verify_ca"` — verify certificate chain only, skip hostname check
	// - `"disabled"` — do not verify the server certificate at all
	CERTVerificationMode param.Field[string] `json:"cert_verification_mode" api:"required"`
}

TLS settings for a connectivity service.

If omitted, the default mode (`verify_full`) is used.

func (DirectoryServiceNewParamsBodyInfraTCPServiceConfigTLSSettings) MarshalJSON added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigType added in v6.9.0

type DirectoryServiceNewParamsBodyInfraTCPServiceConfigType string
const (
	DirectoryServiceNewParamsBodyInfraTCPServiceConfigTypeTCP  DirectoryServiceNewParamsBodyInfraTCPServiceConfigType = "tcp"
	DirectoryServiceNewParamsBodyInfraTCPServiceConfigTypeHTTP DirectoryServiceNewParamsBodyInfraTCPServiceConfigType = "http"
)

func (DirectoryServiceNewParamsBodyInfraTCPServiceConfigType) IsKnown added in v6.9.0

type DirectoryServiceNewParamsBodyType added in v6.9.0

type DirectoryServiceNewParamsBodyType string
const (
	DirectoryServiceNewParamsBodyTypeTCP  DirectoryServiceNewParamsBodyType = "tcp"
	DirectoryServiceNewParamsBodyTypeHTTP DirectoryServiceNewParamsBodyType = "http"
)

func (DirectoryServiceNewParamsBodyType) IsKnown added in v6.9.0

type DirectoryServiceNewParamsBodyUnion added in v6.9.0

type DirectoryServiceNewParamsBodyUnion interface {
	// contains filtered or unexported methods
}

Satisfied by connectivity.DirectoryServiceNewParamsBodyInfraHTTPServiceConfig, connectivity.DirectoryServiceNewParamsBodyInfraTCPServiceConfig, DirectoryServiceNewParamsBody.

type DirectoryServiceNewResponse

type DirectoryServiceNewResponse struct {
	// This field can have the runtime type of
	// [DirectoryServiceNewResponseInfraHTTPServiceConfigHost],
	// [DirectoryServiceNewResponseInfraTCPServiceConfigHost].
	Host        interface{}                            `json:"host" api:"required"`
	Name        string                                 `json:"name" api:"required"`
	Type        DirectoryServiceNewResponseType        `json:"type" api:"required"`
	AppProtocol DirectoryServiceNewResponseAppProtocol `json:"app_protocol" api:"nullable"`
	CreatedAt   time.Time                              `json:"created_at" format:"date-time"`
	HTTPPort    int64                                  `json:"http_port" api:"nullable"`
	HTTPSPort   int64                                  `json:"https_port" api:"nullable"`
	ServiceID   string                                 `json:"service_id" format:"uuid"`
	TCPPort     int64                                  `json:"tcp_port" api:"nullable"`
	// This field can have the runtime type of
	// [DirectoryServiceNewResponseInfraHTTPServiceConfigTLSSettings],
	// [DirectoryServiceNewResponseInfraTCPServiceConfigTLSSettings].
	TLSSettings interface{}                     `json:"tls_settings"`
	UpdatedAt   time.Time                       `json:"updated_at" format:"date-time"`
	JSON        directoryServiceNewResponseJSON `json:"-"`
	// contains filtered or unexported fields
}

func (DirectoryServiceNewResponse) AsUnion added in v6.9.0

AsUnion returns a DirectoryServiceNewResponseUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are DirectoryServiceNewResponseInfraHTTPServiceConfig, DirectoryServiceNewResponseInfraTCPServiceConfig.

func (*DirectoryServiceNewResponse) UnmarshalJSON

func (r *DirectoryServiceNewResponse) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceNewResponseAppProtocol added in v6.9.0

type DirectoryServiceNewResponseAppProtocol string
const (
	DirectoryServiceNewResponseAppProtocolPostgresql DirectoryServiceNewResponseAppProtocol = "postgresql"
	DirectoryServiceNewResponseAppProtocolMysql      DirectoryServiceNewResponseAppProtocol = "mysql"
)

func (DirectoryServiceNewResponseAppProtocol) IsKnown added in v6.9.0

type DirectoryServiceNewResponseEnvelope

type DirectoryServiceNewResponseEnvelope struct {
	Errors   []DirectoryServiceNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []DirectoryServiceNewResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success DirectoryServiceNewResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  DirectoryServiceNewResponse                `json:"result"`
	JSON    directoryServiceNewResponseEnvelopeJSON    `json:"-"`
}

func (*DirectoryServiceNewResponseEnvelope) UnmarshalJSON

func (r *DirectoryServiceNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceNewResponseEnvelopeErrors

type DirectoryServiceNewResponseEnvelopeErrors struct {
	Code             int64                                           `json:"code" api:"required"`
	Message          string                                          `json:"message" api:"required"`
	DocumentationURL string                                          `json:"documentation_url"`
	Source           DirectoryServiceNewResponseEnvelopeErrorsSource `json:"source"`
	JSON             directoryServiceNewResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*DirectoryServiceNewResponseEnvelopeErrors) UnmarshalJSON

func (r *DirectoryServiceNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceNewResponseEnvelopeErrorsSource

type DirectoryServiceNewResponseEnvelopeErrorsSource struct {
	Pointer string                                              `json:"pointer"`
	JSON    directoryServiceNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*DirectoryServiceNewResponseEnvelopeErrorsSource) UnmarshalJSON

func (r *DirectoryServiceNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceNewResponseEnvelopeMessages

type DirectoryServiceNewResponseEnvelopeMessages struct {
	Code             int64                                             `json:"code" api:"required"`
	Message          string                                            `json:"message" api:"required"`
	DocumentationURL string                                            `json:"documentation_url"`
	Source           DirectoryServiceNewResponseEnvelopeMessagesSource `json:"source"`
	JSON             directoryServiceNewResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*DirectoryServiceNewResponseEnvelopeMessages) UnmarshalJSON

func (r *DirectoryServiceNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceNewResponseEnvelopeMessagesSource

type DirectoryServiceNewResponseEnvelopeMessagesSource struct {
	Pointer string                                                `json:"pointer"`
	JSON    directoryServiceNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*DirectoryServiceNewResponseEnvelopeMessagesSource) UnmarshalJSON

func (r *DirectoryServiceNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceNewResponseEnvelopeSuccess

type DirectoryServiceNewResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	DirectoryServiceNewResponseEnvelopeSuccessTrue DirectoryServiceNewResponseEnvelopeSuccess = true
)

func (DirectoryServiceNewResponseEnvelopeSuccess) IsKnown

type DirectoryServiceNewResponseInfraHTTPServiceConfig added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfig struct {
	Host      DirectoryServiceNewResponseInfraHTTPServiceConfigHost `json:"host" api:"required"`
	Name      string                                                `json:"name" api:"required"`
	Type      DirectoryServiceNewResponseInfraHTTPServiceConfigType `json:"type" api:"required"`
	CreatedAt time.Time                                             `json:"created_at" format:"date-time"`
	HTTPPort  int64                                                 `json:"http_port" api:"nullable"`
	HTTPSPort int64                                                 `json:"https_port" api:"nullable"`
	ServiceID string                                                `json:"service_id" format:"uuid"`
	// TLS settings for a connectivity service.
	//
	// If omitted, the default mode (`verify_full`) is used.
	TLSSettings DirectoryServiceNewResponseInfraHTTPServiceConfigTLSSettings `json:"tls_settings" api:"nullable"`
	UpdatedAt   time.Time                                                    `json:"updated_at" format:"date-time"`
	JSON        directoryServiceNewResponseInfraHTTPServiceConfigJSON        `json:"-"`
}

func (*DirectoryServiceNewResponseInfraHTTPServiceConfig) UnmarshalJSON added in v6.9.0

func (r *DirectoryServiceNewResponseInfraHTTPServiceConfig) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceNewResponseInfraHTTPServiceConfigHost added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigHost struct {
	Hostname string `json:"hostname"`
	IPV4     string `json:"ipv4"`
	IPV6     string `json:"ipv6"`
	// This field can have the runtime type of
	// [DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork],
	// [DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork],
	// [DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork].
	Network interface{} `json:"network"`
	// This field can have the runtime type of
	// [DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork].
	ResolverNetwork interface{}                                               `json:"resolver_network"`
	JSON            directoryServiceNewResponseInfraHTTPServiceConfigHostJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*DirectoryServiceNewResponseInfraHTTPServiceConfigHost) UnmarshalJSON added in v6.9.0

func (r *DirectoryServiceNewResponseInfraHTTPServiceConfigHost) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraDualStackHost added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraDualStackHost struct {
	IPV4    string                                                                         `json:"ipv4" api:"required"`
	IPV6    string                                                                         `json:"ipv6" api:"required"`
	Network DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork `json:"network" api:"required"`
	JSON    directoryServiceNewResponseInfraHTTPServiceConfigHostInfraDualStackHostJSON    `json:"-"`
}

func (*DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraDualStackHost) UnmarshalJSON added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork struct {
	TunnelID string                                                                             `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceNewResponseInfraHTTPServiceConfigHostInfraDualStackHostNetworkJSON `json:"-"`
}

func (*DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraHostnameHost added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraHostnameHost struct {
	Hostname        string                                                                                `json:"hostname" api:"required"`
	ResolverNetwork DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork `json:"resolver_network" api:"required"`
	JSON            directoryServiceNewResponseInfraHTTPServiceConfigHostInfraHostnameHostJSON            `json:"-"`
}

func (*DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraHostnameHost) UnmarshalJSON added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork struct {
	TunnelID    string                                                                                    `json:"tunnel_id" api:"required" format:"uuid"`
	ResolverIPs []string                                                                                  `json:"resolver_ips" api:"nullable"`
	JSON        directoryServiceNewResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetworkJSON `json:"-"`
}

func (*DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv4Host added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv4Host struct {
	IPV4    string                                                                    `json:"ipv4" api:"required"`
	Network DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork `json:"network" api:"required"`
	JSON    directoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv4HostJSON    `json:"-"`
}

func (*DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv4Host) UnmarshalJSON added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork struct {
	TunnelID string                                                                        `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv4HostNetworkJSON `json:"-"`
}

func (*DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv6Host added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv6Host struct {
	IPV6    string                                                                    `json:"ipv6" api:"required"`
	Network DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork `json:"network" api:"required"`
	JSON    directoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv6HostJSON    `json:"-"`
}

func (*DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv6Host) UnmarshalJSON added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork struct {
	TunnelID string                                                                        `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv6HostNetworkJSON `json:"-"`
}

func (*DirectoryServiceNewResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigTLSSettings added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigTLSSettings struct {
	// TLS certificate verification mode for the connection to the origin.
	//
	// - `"verify_full"` — verify certificate chain and hostname (default)
	// - `"verify_ca"` — verify certificate chain only, skip hostname check
	// - `"disabled"` — do not verify the server certificate at all
	CERTVerificationMode string                                                           `json:"cert_verification_mode" api:"required"`
	JSON                 directoryServiceNewResponseInfraHTTPServiceConfigTLSSettingsJSON `json:"-"`
}

TLS settings for a connectivity service.

If omitted, the default mode (`verify_full`) is used.

func (*DirectoryServiceNewResponseInfraHTTPServiceConfigTLSSettings) UnmarshalJSON added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigType added in v6.9.0

type DirectoryServiceNewResponseInfraHTTPServiceConfigType string
const (
	DirectoryServiceNewResponseInfraHTTPServiceConfigTypeTCP  DirectoryServiceNewResponseInfraHTTPServiceConfigType = "tcp"
	DirectoryServiceNewResponseInfraHTTPServiceConfigTypeHTTP DirectoryServiceNewResponseInfraHTTPServiceConfigType = "http"
)

func (DirectoryServiceNewResponseInfraHTTPServiceConfigType) IsKnown added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfig added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfig struct {
	Host        DirectoryServiceNewResponseInfraTCPServiceConfigHost        `json:"host" api:"required"`
	Name        string                                                      `json:"name" api:"required"`
	Type        DirectoryServiceNewResponseInfraTCPServiceConfigType        `json:"type" api:"required"`
	AppProtocol DirectoryServiceNewResponseInfraTCPServiceConfigAppProtocol `json:"app_protocol" api:"nullable"`
	CreatedAt   time.Time                                                   `json:"created_at" format:"date-time"`
	ServiceID   string                                                      `json:"service_id" format:"uuid"`
	TCPPort     int64                                                       `json:"tcp_port" api:"nullable"`
	// TLS settings for a connectivity service.
	//
	// If omitted, the default mode (`verify_full`) is used.
	TLSSettings DirectoryServiceNewResponseInfraTCPServiceConfigTLSSettings `json:"tls_settings" api:"nullable"`
	UpdatedAt   time.Time                                                   `json:"updated_at" format:"date-time"`
	JSON        directoryServiceNewResponseInfraTCPServiceConfigJSON        `json:"-"`
}

func (*DirectoryServiceNewResponseInfraTCPServiceConfig) UnmarshalJSON added in v6.9.0

func (r *DirectoryServiceNewResponseInfraTCPServiceConfig) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceNewResponseInfraTCPServiceConfigAppProtocol added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigAppProtocol string
const (
	DirectoryServiceNewResponseInfraTCPServiceConfigAppProtocolPostgresql DirectoryServiceNewResponseInfraTCPServiceConfigAppProtocol = "postgresql"
	DirectoryServiceNewResponseInfraTCPServiceConfigAppProtocolMysql      DirectoryServiceNewResponseInfraTCPServiceConfigAppProtocol = "mysql"
)

func (DirectoryServiceNewResponseInfraTCPServiceConfigAppProtocol) IsKnown added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigHost added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigHost struct {
	Hostname string `json:"hostname"`
	IPV4     string `json:"ipv4"`
	IPV6     string `json:"ipv6"`
	// This field can have the runtime type of
	// [DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork],
	// [DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork],
	// [DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork].
	Network interface{} `json:"network"`
	// This field can have the runtime type of
	// [DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork].
	ResolverNetwork interface{}                                              `json:"resolver_network"`
	JSON            directoryServiceNewResponseInfraTCPServiceConfigHostJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*DirectoryServiceNewResponseInfraTCPServiceConfigHost) UnmarshalJSON added in v6.9.0

func (r *DirectoryServiceNewResponseInfraTCPServiceConfigHost) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraDualStackHost added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraDualStackHost struct {
	IPV4    string                                                                        `json:"ipv4" api:"required"`
	IPV6    string                                                                        `json:"ipv6" api:"required"`
	Network DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork `json:"network" api:"required"`
	JSON    directoryServiceNewResponseInfraTCPServiceConfigHostInfraDualStackHostJSON    `json:"-"`
}

func (*DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraDualStackHost) UnmarshalJSON added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork struct {
	TunnelID string                                                                            `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceNewResponseInfraTCPServiceConfigHostInfraDualStackHostNetworkJSON `json:"-"`
}

func (*DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraHostnameHost added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraHostnameHost struct {
	Hostname        string                                                                               `json:"hostname" api:"required"`
	ResolverNetwork DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork `json:"resolver_network" api:"required"`
	JSON            directoryServiceNewResponseInfraTCPServiceConfigHostInfraHostnameHostJSON            `json:"-"`
}

func (*DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraHostnameHost) UnmarshalJSON added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork struct {
	TunnelID    string                                                                                   `json:"tunnel_id" api:"required" format:"uuid"`
	ResolverIPs []string                                                                                 `json:"resolver_ips" api:"nullable"`
	JSON        directoryServiceNewResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetworkJSON `json:"-"`
}

func (*DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv4Host added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv4Host struct {
	IPV4    string                                                                   `json:"ipv4" api:"required"`
	Network DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork `json:"network" api:"required"`
	JSON    directoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv4HostJSON    `json:"-"`
}

func (*DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv4Host) UnmarshalJSON added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork struct {
	TunnelID string                                                                       `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv4HostNetworkJSON `json:"-"`
}

func (*DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv6Host added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv6Host struct {
	IPV6    string                                                                   `json:"ipv6" api:"required"`
	Network DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork `json:"network" api:"required"`
	JSON    directoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv6HostJSON    `json:"-"`
}

func (*DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv6Host) UnmarshalJSON added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork struct {
	TunnelID string                                                                       `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv6HostNetworkJSON `json:"-"`
}

func (*DirectoryServiceNewResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigTLSSettings added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigTLSSettings struct {
	// TLS certificate verification mode for the connection to the origin.
	//
	// - `"verify_full"` — verify certificate chain and hostname (default)
	// - `"verify_ca"` — verify certificate chain only, skip hostname check
	// - `"disabled"` — do not verify the server certificate at all
	CERTVerificationMode string                                                          `json:"cert_verification_mode" api:"required"`
	JSON                 directoryServiceNewResponseInfraTCPServiceConfigTLSSettingsJSON `json:"-"`
}

TLS settings for a connectivity service.

If omitted, the default mode (`verify_full`) is used.

func (*DirectoryServiceNewResponseInfraTCPServiceConfigTLSSettings) UnmarshalJSON added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigType added in v6.9.0

type DirectoryServiceNewResponseInfraTCPServiceConfigType string
const (
	DirectoryServiceNewResponseInfraTCPServiceConfigTypeTCP  DirectoryServiceNewResponseInfraTCPServiceConfigType = "tcp"
	DirectoryServiceNewResponseInfraTCPServiceConfigTypeHTTP DirectoryServiceNewResponseInfraTCPServiceConfigType = "http"
)

func (DirectoryServiceNewResponseInfraTCPServiceConfigType) IsKnown added in v6.9.0

type DirectoryServiceNewResponseType

type DirectoryServiceNewResponseType string
const (
	DirectoryServiceNewResponseTypeTCP  DirectoryServiceNewResponseType = "tcp"
	DirectoryServiceNewResponseTypeHTTP DirectoryServiceNewResponseType = "http"
)

func (DirectoryServiceNewResponseType) IsKnown

type DirectoryServiceNewResponseUnion added in v6.9.0

type DirectoryServiceNewResponseUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by DirectoryServiceNewResponseInfraHTTPServiceConfig or DirectoryServiceNewResponseInfraTCPServiceConfig.

type DirectoryServiceService

type DirectoryServiceService struct {
	Options []option.RequestOption
}

DirectoryServiceService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDirectoryServiceService method instead.

func NewDirectoryServiceService

func NewDirectoryServiceService(opts ...option.RequestOption) (r *DirectoryServiceService)

NewDirectoryServiceService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*DirectoryServiceService) Delete

Delete Workers VPC connectivity service

func (*DirectoryServiceService) Get

Get Workers VPC connectivity service

func (*DirectoryServiceService) List

List Workers VPC connectivity services

func (*DirectoryServiceService) ListAutoPaging

List Workers VPC connectivity services

func (*DirectoryServiceService) New

Create Workers VPC connectivity service

func (*DirectoryServiceService) Update

Update Workers VPC connectivity service

type DirectoryServiceUpdateParams

type DirectoryServiceUpdateParams struct {
	AccountID param.Field[string]                   `path:"account_id" api:"required"`
	Body      DirectoryServiceUpdateParamsBodyUnion `json:"body" api:"required"`
}

func (DirectoryServiceUpdateParams) MarshalJSON

func (r DirectoryServiceUpdateParams) MarshalJSON() (data []byte, err error)

type DirectoryServiceUpdateParamsBody added in v6.9.0

type DirectoryServiceUpdateParamsBody struct {
	Host        param.Field[interface{}]                                 `json:"host" api:"required"`
	Name        param.Field[string]                                      `json:"name" api:"required"`
	Type        param.Field[DirectoryServiceUpdateParamsBodyType]        `json:"type" api:"required"`
	AppProtocol param.Field[DirectoryServiceUpdateParamsBodyAppProtocol] `json:"app_protocol"`
	HTTPPort    param.Field[int64]                                       `json:"http_port"`
	HTTPSPort   param.Field[int64]                                       `json:"https_port"`
	TCPPort     param.Field[int64]                                       `json:"tcp_port"`
	TLSSettings param.Field[interface{}]                                 `json:"tls_settings"`
}

func (DirectoryServiceUpdateParamsBody) MarshalJSON added in v6.9.0

func (r DirectoryServiceUpdateParamsBody) MarshalJSON() (data []byte, err error)

type DirectoryServiceUpdateParamsBodyAppProtocol added in v6.9.0

type DirectoryServiceUpdateParamsBodyAppProtocol string
const (
	DirectoryServiceUpdateParamsBodyAppProtocolPostgresql DirectoryServiceUpdateParamsBodyAppProtocol = "postgresql"
	DirectoryServiceUpdateParamsBodyAppProtocolMysql      DirectoryServiceUpdateParamsBodyAppProtocol = "mysql"
)

func (DirectoryServiceUpdateParamsBodyAppProtocol) IsKnown added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfig added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfig struct {
	Host      param.Field[DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostUnion] `json:"host" api:"required"`
	Name      param.Field[string]                                                          `json:"name" api:"required"`
	Type      param.Field[DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigType]      `json:"type" api:"required"`
	HTTPPort  param.Field[int64]                                                           `json:"http_port"`
	HTTPSPort param.Field[int64]                                                           `json:"https_port"`
	// TLS settings for a connectivity service.
	//
	// If omitted, the default mode (`verify_full`) is used.
	TLSSettings param.Field[DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigTLSSettings] `json:"tls_settings"`
}

func (DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfig) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHost added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHost struct {
	Hostname        param.Field[string]      `json:"hostname"`
	IPV4            param.Field[string]      `json:"ipv4"`
	IPV6            param.Field[string]      `json:"ipv6"`
	Network         param.Field[interface{}] `json:"network"`
	ResolverNetwork param.Field[interface{}] `json:"resolver_network"`
}

func (DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHost) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraDualStackHost added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraDualStackHost struct {
	IPV4    param.Field[string]                                                                              `json:"ipv4" api:"required"`
	IPV6    param.Field[string]                                                                              `json:"ipv6" api:"required"`
	Network param.Field[DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraDualStackHostNetwork] `json:"network" api:"required"`
}

func (DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraDualStackHost) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraDualStackHostNetwork added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraDualStackHostNetwork struct {
	TunnelID param.Field[string] `json:"tunnel_id" api:"required" format:"uuid"`
}

func (DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraDualStackHostNetwork) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraHostnameHost added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraHostnameHost struct {
	Hostname        param.Field[string]                                                                                     `json:"hostname" api:"required"`
	ResolverNetwork param.Field[DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork] `json:"resolver_network" api:"required"`
}

func (DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraHostnameHost) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork struct {
	TunnelID    param.Field[string]   `json:"tunnel_id" api:"required" format:"uuid"`
	ResolverIPs param.Field[[]string] `json:"resolver_ips"`
}

func (DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraIPv4Host added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraIPv4Host struct {
	IPV4    param.Field[string]                                                                         `json:"ipv4" api:"required"`
	Network param.Field[DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraIPv4HostNetwork] `json:"network" api:"required"`
}

func (DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraIPv4Host) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraIPv4HostNetwork added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraIPv4HostNetwork struct {
	TunnelID param.Field[string] `json:"tunnel_id" api:"required" format:"uuid"`
}

func (DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraIPv4HostNetwork) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraIPv6Host added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraIPv6Host struct {
	IPV6    param.Field[string]                                                                         `json:"ipv6" api:"required"`
	Network param.Field[DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraIPv6HostNetwork] `json:"network" api:"required"`
}

func (DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraIPv6Host) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraIPv6HostNetwork added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraIPv6HostNetwork struct {
	TunnelID param.Field[string] `json:"tunnel_id" api:"required" format:"uuid"`
}

func (DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigHostInfraIPv6HostNetwork) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigTLSSettings added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigTLSSettings struct {
	// TLS certificate verification mode for the connection to the origin.
	//
	// - `"verify_full"` — verify certificate chain and hostname (default)
	// - `"verify_ca"` — verify certificate chain only, skip hostname check
	// - `"disabled"` — do not verify the server certificate at all
	CERTVerificationMode param.Field[string] `json:"cert_verification_mode" api:"required"`
}

TLS settings for a connectivity service.

If omitted, the default mode (`verify_full`) is used.

func (DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigTLSSettings) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigType added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigType string
const (
	DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigTypeTCP  DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigType = "tcp"
	DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigTypeHTTP DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigType = "http"
)

func (DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfigType) IsKnown added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfig added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfig struct {
	Host        param.Field[DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostUnion]   `json:"host" api:"required"`
	Name        param.Field[string]                                                           `json:"name" api:"required"`
	Type        param.Field[DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigType]        `json:"type" api:"required"`
	AppProtocol param.Field[DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigAppProtocol] `json:"app_protocol"`
	TCPPort     param.Field[int64]                                                            `json:"tcp_port"`
	// TLS settings for a connectivity service.
	//
	// If omitted, the default mode (`verify_full`) is used.
	TLSSettings param.Field[DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigTLSSettings] `json:"tls_settings"`
}

func (DirectoryServiceUpdateParamsBodyInfraTCPServiceConfig) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigAppProtocol added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigAppProtocol string
const (
	DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigAppProtocolPostgresql DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigAppProtocol = "postgresql"
	DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigAppProtocolMysql      DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigAppProtocol = "mysql"
)

func (DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigAppProtocol) IsKnown added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHost added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHost struct {
	Hostname        param.Field[string]      `json:"hostname"`
	IPV4            param.Field[string]      `json:"ipv4"`
	IPV6            param.Field[string]      `json:"ipv6"`
	Network         param.Field[interface{}] `json:"network"`
	ResolverNetwork param.Field[interface{}] `json:"resolver_network"`
}

func (DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHost) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraDualStackHost added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraDualStackHost struct {
	IPV4    param.Field[string]                                                                             `json:"ipv4" api:"required"`
	IPV6    param.Field[string]                                                                             `json:"ipv6" api:"required"`
	Network param.Field[DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraDualStackHostNetwork] `json:"network" api:"required"`
}

func (DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraDualStackHost) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraDualStackHostNetwork added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraDualStackHostNetwork struct {
	TunnelID param.Field[string] `json:"tunnel_id" api:"required" format:"uuid"`
}

func (DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraDualStackHostNetwork) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraHostnameHost added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraHostnameHost struct {
	Hostname        param.Field[string]                                                                                    `json:"hostname" api:"required"`
	ResolverNetwork param.Field[DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork] `json:"resolver_network" api:"required"`
}

func (DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraHostnameHost) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork struct {
	TunnelID    param.Field[string]   `json:"tunnel_id" api:"required" format:"uuid"`
	ResolverIPs param.Field[[]string] `json:"resolver_ips"`
}

func (DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraIPv4Host added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraIPv4Host struct {
	IPV4    param.Field[string]                                                                        `json:"ipv4" api:"required"`
	Network param.Field[DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraIPv4HostNetwork] `json:"network" api:"required"`
}

func (DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraIPv4Host) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraIPv4HostNetwork added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraIPv4HostNetwork struct {
	TunnelID param.Field[string] `json:"tunnel_id" api:"required" format:"uuid"`
}

func (DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraIPv4HostNetwork) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraIPv6Host added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraIPv6Host struct {
	IPV6    param.Field[string]                                                                        `json:"ipv6" api:"required"`
	Network param.Field[DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraIPv6HostNetwork] `json:"network" api:"required"`
}

func (DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraIPv6Host) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraIPv6HostNetwork added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraIPv6HostNetwork struct {
	TunnelID param.Field[string] `json:"tunnel_id" api:"required" format:"uuid"`
}

func (DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigHostInfraIPv6HostNetwork) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigTLSSettings added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigTLSSettings struct {
	// TLS certificate verification mode for the connection to the origin.
	//
	// - `"verify_full"` — verify certificate chain and hostname (default)
	// - `"verify_ca"` — verify certificate chain only, skip hostname check
	// - `"disabled"` — do not verify the server certificate at all
	CERTVerificationMode param.Field[string] `json:"cert_verification_mode" api:"required"`
}

TLS settings for a connectivity service.

If omitted, the default mode (`verify_full`) is used.

func (DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigTLSSettings) MarshalJSON added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigType added in v6.9.0

type DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigType string
const (
	DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigTypeTCP  DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigType = "tcp"
	DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigTypeHTTP DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigType = "http"
)

func (DirectoryServiceUpdateParamsBodyInfraTCPServiceConfigType) IsKnown added in v6.9.0

type DirectoryServiceUpdateParamsBodyType added in v6.9.0

type DirectoryServiceUpdateParamsBodyType string
const (
	DirectoryServiceUpdateParamsBodyTypeTCP  DirectoryServiceUpdateParamsBodyType = "tcp"
	DirectoryServiceUpdateParamsBodyTypeHTTP DirectoryServiceUpdateParamsBodyType = "http"
)

func (DirectoryServiceUpdateParamsBodyType) IsKnown added in v6.9.0

type DirectoryServiceUpdateParamsBodyUnion added in v6.9.0

type DirectoryServiceUpdateParamsBodyUnion interface {
	// contains filtered or unexported methods
}

Satisfied by connectivity.DirectoryServiceUpdateParamsBodyInfraHTTPServiceConfig, connectivity.DirectoryServiceUpdateParamsBodyInfraTCPServiceConfig, DirectoryServiceUpdateParamsBody.

type DirectoryServiceUpdateResponse

type DirectoryServiceUpdateResponse struct {
	// This field can have the runtime type of
	// [DirectoryServiceUpdateResponseInfraHTTPServiceConfigHost],
	// [DirectoryServiceUpdateResponseInfraTCPServiceConfigHost].
	Host        interface{}                               `json:"host" api:"required"`
	Name        string                                    `json:"name" api:"required"`
	Type        DirectoryServiceUpdateResponseType        `json:"type" api:"required"`
	AppProtocol DirectoryServiceUpdateResponseAppProtocol `json:"app_protocol" api:"nullable"`
	CreatedAt   time.Time                                 `json:"created_at" format:"date-time"`
	HTTPPort    int64                                     `json:"http_port" api:"nullable"`
	HTTPSPort   int64                                     `json:"https_port" api:"nullable"`
	ServiceID   string                                    `json:"service_id" format:"uuid"`
	TCPPort     int64                                     `json:"tcp_port" api:"nullable"`
	// This field can have the runtime type of
	// [DirectoryServiceUpdateResponseInfraHTTPServiceConfigTLSSettings],
	// [DirectoryServiceUpdateResponseInfraTCPServiceConfigTLSSettings].
	TLSSettings interface{}                        `json:"tls_settings"`
	UpdatedAt   time.Time                          `json:"updated_at" format:"date-time"`
	JSON        directoryServiceUpdateResponseJSON `json:"-"`
	// contains filtered or unexported fields
}

func (DirectoryServiceUpdateResponse) AsUnion added in v6.9.0

AsUnion returns a DirectoryServiceUpdateResponseUnion interface which you can cast to the specific types for more type safety.

Possible runtime types of the union are DirectoryServiceUpdateResponseInfraHTTPServiceConfig, DirectoryServiceUpdateResponseInfraTCPServiceConfig.

func (*DirectoryServiceUpdateResponse) UnmarshalJSON

func (r *DirectoryServiceUpdateResponse) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceUpdateResponseAppProtocol added in v6.9.0

type DirectoryServiceUpdateResponseAppProtocol string
const (
	DirectoryServiceUpdateResponseAppProtocolPostgresql DirectoryServiceUpdateResponseAppProtocol = "postgresql"
	DirectoryServiceUpdateResponseAppProtocolMysql      DirectoryServiceUpdateResponseAppProtocol = "mysql"
)

func (DirectoryServiceUpdateResponseAppProtocol) IsKnown added in v6.9.0

type DirectoryServiceUpdateResponseEnvelope

type DirectoryServiceUpdateResponseEnvelope struct {
	Errors   []DirectoryServiceUpdateResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []DirectoryServiceUpdateResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful.
	Success DirectoryServiceUpdateResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  DirectoryServiceUpdateResponse                `json:"result"`
	JSON    directoryServiceUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*DirectoryServiceUpdateResponseEnvelope) UnmarshalJSON

func (r *DirectoryServiceUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceUpdateResponseEnvelopeErrors

type DirectoryServiceUpdateResponseEnvelopeErrors struct {
	Code             int64                                              `json:"code" api:"required"`
	Message          string                                             `json:"message" api:"required"`
	DocumentationURL string                                             `json:"documentation_url"`
	Source           DirectoryServiceUpdateResponseEnvelopeErrorsSource `json:"source"`
	JSON             directoryServiceUpdateResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*DirectoryServiceUpdateResponseEnvelopeErrors) UnmarshalJSON

func (r *DirectoryServiceUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceUpdateResponseEnvelopeErrorsSource

type DirectoryServiceUpdateResponseEnvelopeErrorsSource struct {
	Pointer string                                                 `json:"pointer"`
	JSON    directoryServiceUpdateResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*DirectoryServiceUpdateResponseEnvelopeErrorsSource) UnmarshalJSON

func (r *DirectoryServiceUpdateResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceUpdateResponseEnvelopeMessages

type DirectoryServiceUpdateResponseEnvelopeMessages struct {
	Code             int64                                                `json:"code" api:"required"`
	Message          string                                               `json:"message" api:"required"`
	DocumentationURL string                                               `json:"documentation_url"`
	Source           DirectoryServiceUpdateResponseEnvelopeMessagesSource `json:"source"`
	JSON             directoryServiceUpdateResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*DirectoryServiceUpdateResponseEnvelopeMessages) UnmarshalJSON

func (r *DirectoryServiceUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceUpdateResponseEnvelopeMessagesSource

type DirectoryServiceUpdateResponseEnvelopeMessagesSource struct {
	Pointer string                                                   `json:"pointer"`
	JSON    directoryServiceUpdateResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*DirectoryServiceUpdateResponseEnvelopeMessagesSource) UnmarshalJSON

func (r *DirectoryServiceUpdateResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceUpdateResponseEnvelopeSuccess

type DirectoryServiceUpdateResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	DirectoryServiceUpdateResponseEnvelopeSuccessTrue DirectoryServiceUpdateResponseEnvelopeSuccess = true
)

func (DirectoryServiceUpdateResponseEnvelopeSuccess) IsKnown

type DirectoryServiceUpdateResponseInfraHTTPServiceConfig added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfig struct {
	Host      DirectoryServiceUpdateResponseInfraHTTPServiceConfigHost `json:"host" api:"required"`
	Name      string                                                   `json:"name" api:"required"`
	Type      DirectoryServiceUpdateResponseInfraHTTPServiceConfigType `json:"type" api:"required"`
	CreatedAt time.Time                                                `json:"created_at" format:"date-time"`
	HTTPPort  int64                                                    `json:"http_port" api:"nullable"`
	HTTPSPort int64                                                    `json:"https_port" api:"nullable"`
	ServiceID string                                                   `json:"service_id" format:"uuid"`
	// TLS settings for a connectivity service.
	//
	// If omitted, the default mode (`verify_full`) is used.
	TLSSettings DirectoryServiceUpdateResponseInfraHTTPServiceConfigTLSSettings `json:"tls_settings" api:"nullable"`
	UpdatedAt   time.Time                                                       `json:"updated_at" format:"date-time"`
	JSON        directoryServiceUpdateResponseInfraHTTPServiceConfigJSON        `json:"-"`
}

func (*DirectoryServiceUpdateResponseInfraHTTPServiceConfig) UnmarshalJSON added in v6.9.0

func (r *DirectoryServiceUpdateResponseInfraHTTPServiceConfig) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigHost added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigHost struct {
	Hostname string `json:"hostname"`
	IPV4     string `json:"ipv4"`
	IPV6     string `json:"ipv6"`
	// This field can have the runtime type of
	// [DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork],
	// [DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork],
	// [DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork].
	Network interface{} `json:"network"`
	// This field can have the runtime type of
	// [DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork].
	ResolverNetwork interface{}                                                  `json:"resolver_network"`
	JSON            directoryServiceUpdateResponseInfraHTTPServiceConfigHostJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*DirectoryServiceUpdateResponseInfraHTTPServiceConfigHost) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraDualStackHost added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraDualStackHost struct {
	IPV4    string                                                                            `json:"ipv4" api:"required"`
	IPV6    string                                                                            `json:"ipv6" api:"required"`
	Network DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork `json:"network" api:"required"`
	JSON    directoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraDualStackHostJSON    `json:"-"`
}

func (*DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraDualStackHost) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork struct {
	TunnelID string                                                                                `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraDualStackHostNetworkJSON `json:"-"`
}

func (*DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraDualStackHostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraHostnameHost added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraHostnameHost struct {
	Hostname        string                                                                                   `json:"hostname" api:"required"`
	ResolverNetwork DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork `json:"resolver_network" api:"required"`
	JSON            directoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraHostnameHostJSON            `json:"-"`
}

func (*DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraHostnameHost) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork struct {
	TunnelID    string                                                                                       `json:"tunnel_id" api:"required" format:"uuid"`
	ResolverIPs []string                                                                                     `json:"resolver_ips" api:"nullable"`
	JSON        directoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetworkJSON `json:"-"`
}

func (*DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraHostnameHostResolverNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv4Host added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv4Host struct {
	IPV4    string                                                                       `json:"ipv4" api:"required"`
	Network DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork `json:"network" api:"required"`
	JSON    directoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv4HostJSON    `json:"-"`
}

func (*DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv4Host) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork struct {
	TunnelID string                                                                           `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv4HostNetworkJSON `json:"-"`
}

func (*DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv4HostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv6Host added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv6Host struct {
	IPV6    string                                                                       `json:"ipv6" api:"required"`
	Network DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork `json:"network" api:"required"`
	JSON    directoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv6HostJSON    `json:"-"`
}

func (*DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv6Host) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork struct {
	TunnelID string                                                                           `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv6HostNetworkJSON `json:"-"`
}

func (*DirectoryServiceUpdateResponseInfraHTTPServiceConfigHostInfraIPv6HostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigTLSSettings added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigTLSSettings struct {
	// TLS certificate verification mode for the connection to the origin.
	//
	// - `"verify_full"` — verify certificate chain and hostname (default)
	// - `"verify_ca"` — verify certificate chain only, skip hostname check
	// - `"disabled"` — do not verify the server certificate at all
	CERTVerificationMode string                                                              `json:"cert_verification_mode" api:"required"`
	JSON                 directoryServiceUpdateResponseInfraHTTPServiceConfigTLSSettingsJSON `json:"-"`
}

TLS settings for a connectivity service.

If omitted, the default mode (`verify_full`) is used.

func (*DirectoryServiceUpdateResponseInfraHTTPServiceConfigTLSSettings) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigType added in v6.9.0

type DirectoryServiceUpdateResponseInfraHTTPServiceConfigType string
const (
	DirectoryServiceUpdateResponseInfraHTTPServiceConfigTypeTCP  DirectoryServiceUpdateResponseInfraHTTPServiceConfigType = "tcp"
	DirectoryServiceUpdateResponseInfraHTTPServiceConfigTypeHTTP DirectoryServiceUpdateResponseInfraHTTPServiceConfigType = "http"
)

func (DirectoryServiceUpdateResponseInfraHTTPServiceConfigType) IsKnown added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfig added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfig struct {
	Host        DirectoryServiceUpdateResponseInfraTCPServiceConfigHost        `json:"host" api:"required"`
	Name        string                                                         `json:"name" api:"required"`
	Type        DirectoryServiceUpdateResponseInfraTCPServiceConfigType        `json:"type" api:"required"`
	AppProtocol DirectoryServiceUpdateResponseInfraTCPServiceConfigAppProtocol `json:"app_protocol" api:"nullable"`
	CreatedAt   time.Time                                                      `json:"created_at" format:"date-time"`
	ServiceID   string                                                         `json:"service_id" format:"uuid"`
	TCPPort     int64                                                          `json:"tcp_port" api:"nullable"`
	// TLS settings for a connectivity service.
	//
	// If omitted, the default mode (`verify_full`) is used.
	TLSSettings DirectoryServiceUpdateResponseInfraTCPServiceConfigTLSSettings `json:"tls_settings" api:"nullable"`
	UpdatedAt   time.Time                                                      `json:"updated_at" format:"date-time"`
	JSON        directoryServiceUpdateResponseInfraTCPServiceConfigJSON        `json:"-"`
}

func (*DirectoryServiceUpdateResponseInfraTCPServiceConfig) UnmarshalJSON added in v6.9.0

func (r *DirectoryServiceUpdateResponseInfraTCPServiceConfig) UnmarshalJSON(data []byte) (err error)

type DirectoryServiceUpdateResponseInfraTCPServiceConfigAppProtocol added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigAppProtocol string
const (
	DirectoryServiceUpdateResponseInfraTCPServiceConfigAppProtocolPostgresql DirectoryServiceUpdateResponseInfraTCPServiceConfigAppProtocol = "postgresql"
	DirectoryServiceUpdateResponseInfraTCPServiceConfigAppProtocolMysql      DirectoryServiceUpdateResponseInfraTCPServiceConfigAppProtocol = "mysql"
)

func (DirectoryServiceUpdateResponseInfraTCPServiceConfigAppProtocol) IsKnown added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigHost added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigHost struct {
	Hostname string `json:"hostname"`
	IPV4     string `json:"ipv4"`
	IPV6     string `json:"ipv6"`
	// This field can have the runtime type of
	// [DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork],
	// [DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork],
	// [DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork].
	Network interface{} `json:"network"`
	// This field can have the runtime type of
	// [DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork].
	ResolverNetwork interface{}                                                 `json:"resolver_network"`
	JSON            directoryServiceUpdateResponseInfraTCPServiceConfigHostJSON `json:"-"`
	// contains filtered or unexported fields
}

func (*DirectoryServiceUpdateResponseInfraTCPServiceConfigHost) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraDualStackHost added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraDualStackHost struct {
	IPV4    string                                                                           `json:"ipv4" api:"required"`
	IPV6    string                                                                           `json:"ipv6" api:"required"`
	Network DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork `json:"network" api:"required"`
	JSON    directoryServiceUpdateResponseInfraTCPServiceConfigHostInfraDualStackHostJSON    `json:"-"`
}

func (*DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraDualStackHost) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork struct {
	TunnelID string                                                                               `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceUpdateResponseInfraTCPServiceConfigHostInfraDualStackHostNetworkJSON `json:"-"`
}

func (*DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraDualStackHostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraHostnameHost added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraHostnameHost struct {
	Hostname        string                                                                                  `json:"hostname" api:"required"`
	ResolverNetwork DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork `json:"resolver_network" api:"required"`
	JSON            directoryServiceUpdateResponseInfraTCPServiceConfigHostInfraHostnameHostJSON            `json:"-"`
}

func (*DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraHostnameHost) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork struct {
	TunnelID    string                                                                                      `json:"tunnel_id" api:"required" format:"uuid"`
	ResolverIPs []string                                                                                    `json:"resolver_ips" api:"nullable"`
	JSON        directoryServiceUpdateResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetworkJSON `json:"-"`
}

func (*DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraHostnameHostResolverNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv4Host added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv4Host struct {
	IPV4    string                                                                      `json:"ipv4" api:"required"`
	Network DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork `json:"network" api:"required"`
	JSON    directoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv4HostJSON    `json:"-"`
}

func (*DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv4Host) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork struct {
	TunnelID string                                                                          `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv4HostNetworkJSON `json:"-"`
}

func (*DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv4HostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv6Host added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv6Host struct {
	IPV6    string                                                                      `json:"ipv6" api:"required"`
	Network DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork `json:"network" api:"required"`
	JSON    directoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv6HostJSON    `json:"-"`
}

func (*DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv6Host) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork struct {
	TunnelID string                                                                          `json:"tunnel_id" api:"required" format:"uuid"`
	JSON     directoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv6HostNetworkJSON `json:"-"`
}

func (*DirectoryServiceUpdateResponseInfraTCPServiceConfigHostInfraIPv6HostNetwork) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigTLSSettings added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigTLSSettings struct {
	// TLS certificate verification mode for the connection to the origin.
	//
	// - `"verify_full"` — verify certificate chain and hostname (default)
	// - `"verify_ca"` — verify certificate chain only, skip hostname check
	// - `"disabled"` — do not verify the server certificate at all
	CERTVerificationMode string                                                             `json:"cert_verification_mode" api:"required"`
	JSON                 directoryServiceUpdateResponseInfraTCPServiceConfigTLSSettingsJSON `json:"-"`
}

TLS settings for a connectivity service.

If omitted, the default mode (`verify_full`) is used.

func (*DirectoryServiceUpdateResponseInfraTCPServiceConfigTLSSettings) UnmarshalJSON added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigType added in v6.9.0

type DirectoryServiceUpdateResponseInfraTCPServiceConfigType string
const (
	DirectoryServiceUpdateResponseInfraTCPServiceConfigTypeTCP  DirectoryServiceUpdateResponseInfraTCPServiceConfigType = "tcp"
	DirectoryServiceUpdateResponseInfraTCPServiceConfigTypeHTTP DirectoryServiceUpdateResponseInfraTCPServiceConfigType = "http"
)

func (DirectoryServiceUpdateResponseInfraTCPServiceConfigType) IsKnown added in v6.9.0

type DirectoryServiceUpdateResponseType

type DirectoryServiceUpdateResponseType string
const (
	DirectoryServiceUpdateResponseTypeTCP  DirectoryServiceUpdateResponseType = "tcp"
	DirectoryServiceUpdateResponseTypeHTTP DirectoryServiceUpdateResponseType = "http"
)

func (DirectoryServiceUpdateResponseType) IsKnown

type DirectoryServiceUpdateResponseUnion added in v6.9.0

type DirectoryServiceUpdateResponseUnion interface {
	// contains filtered or unexported methods
}

Union satisfied by DirectoryServiceUpdateResponseInfraHTTPServiceConfig or DirectoryServiceUpdateResponseInfraTCPServiceConfig.

type Error

type Error = apierror.Error

type ErrorData

type ErrorData = shared.ErrorData

This is an alias to an internal type.

type ErrorDataSource

type ErrorDataSource = shared.ErrorDataSource

This is an alias to an internal type.

type Member

type Member = shared.Member

This is an alias to an internal type.

type MemberPoliciesAccess

type MemberPoliciesAccess = shared.MemberPoliciesAccess

Allow or deny operations against the resources.

This is an alias to an internal type.

type MemberPoliciesPermissionGroup

type MemberPoliciesPermissionGroup = shared.MemberPoliciesPermissionGroup

A named group of permissions that map to a group of operations against resources.

This is an alias to an internal type.

type MemberPoliciesPermissionGroupsMeta

type MemberPoliciesPermissionGroupsMeta = shared.MemberPoliciesPermissionGroupsMeta

Attributes associated to the permission group.

This is an alias to an internal type.

type MemberPoliciesResourceGroup

type MemberPoliciesResourceGroup = shared.MemberPoliciesResourceGroup

A group of scoped resources.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsMeta

type MemberPoliciesResourceGroupsMeta = shared.MemberPoliciesResourceGroupsMeta

Attributes associated to the resource group.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsScope

type MemberPoliciesResourceGroupsScope = shared.MemberPoliciesResourceGroupsScope

A scope is a combination of scope objects which provides additional context.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsScopeObject

type MemberPoliciesResourceGroupsScopeObject = shared.MemberPoliciesResourceGroupsScopeObject

A scope object represents any resource that can have actions applied against invite.

This is an alias to an internal type.

type MemberPolicy

type MemberPolicy = shared.MemberPolicy

This is an alias to an internal type.

type MemberStatus

type MemberStatus = shared.MemberStatus

A member's status in the account.

This is an alias to an internal type.

type MemberUser

type MemberUser = shared.MemberUser

Details of the user associated to the membership.

This is an alias to an internal type.

type Permission

type Permission = shared.Permission

This is an alias to an internal type.

type PermissionGrant

type PermissionGrant = shared.PermissionGrant

This is an alias to an internal type.

type PermissionGrantParam

type PermissionGrantParam = shared.PermissionGrantParam

This is an alias to an internal type.

type RatePlan

type RatePlan = shared.RatePlan

The rate plan applied to the subscription.

This is an alias to an internal type.

type RatePlanID

type RatePlanID = shared.RatePlanID

The ID of the rate plan.

This is an alias to an internal type.

type RatePlanParam

type RatePlanParam = shared.RatePlanParam

The rate plan applied to the subscription.

This is an alias to an internal type.

type ResponseInfo

type ResponseInfo = shared.ResponseInfo

This is an alias to an internal type.

type ResponseInfoSource

type ResponseInfoSource = shared.ResponseInfoSource

This is an alias to an internal type.

type Role

type Role = shared.Role

This is an alias to an internal type.

type RoleParam

type RoleParam = shared.RoleParam

This is an alias to an internal type.

type RolePermissions

type RolePermissions = shared.RolePermissions

This is an alias to an internal type.

type RolePermissionsParam

type RolePermissionsParam = shared.RolePermissionsParam

This is an alias to an internal type.

type SortDirection

type SortDirection = shared.SortDirection

Direction to order DNS records in.

This is an alias to an internal type.

type Subscription

type Subscription = shared.Subscription

This is an alias to an internal type.

type SubscriptionFrequency

type SubscriptionFrequency = shared.SubscriptionFrequency

How often the subscription is renewed automatically.

This is an alias to an internal type.

type SubscriptionParam

type SubscriptionParam = shared.SubscriptionParam

This is an alias to an internal type.

type SubscriptionState

type SubscriptionState = shared.SubscriptionState

The state that the subscription is in.

This is an alias to an internal type.

type Token

type Token = shared.Token

This is an alias to an internal type.

type TokenCondition

type TokenCondition = shared.TokenCondition

This is an alias to an internal type.

type TokenConditionCIDRList

type TokenConditionCIDRList = shared.TokenConditionCIDRList

IPv4/IPv6 CIDR.

This is an alias to an internal type.

type TokenConditionCIDRListParam

type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam

IPv4/IPv6 CIDR.

This is an alias to an internal type.

type TokenConditionParam

type TokenConditionParam = shared.TokenConditionParam

This is an alias to an internal type.

type TokenConditionRequestIP

type TokenConditionRequestIP = shared.TokenConditionRequestIP

Client IP restrictions.

This is an alias to an internal type.

type TokenConditionRequestIPParam

type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam

Client IP restrictions.

This is an alias to an internal type.

type TokenParam

type TokenParam = shared.TokenParam

This is an alias to an internal type.

type TokenPolicy

type TokenPolicy = shared.TokenPolicy

This is an alias to an internal type.

type TokenPolicyEffect

type TokenPolicyEffect = shared.TokenPolicyEffect

Allow or deny operations against the resources.

This is an alias to an internal type.

type TokenPolicyParam

type TokenPolicyParam = shared.TokenPolicyParam

This is an alias to an internal type.

type TokenPolicyPermissionGroup

type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup

A named group of permissions that map to a group of operations against resources.

This is an alias to an internal type.

type TokenPolicyPermissionGroupParam

type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam

A named group of permissions that map to a group of operations against resources.

This is an alias to an internal type.

type TokenPolicyPermissionGroupsMeta

type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta

Attributes associated to the permission group.

This is an alias to an internal type.

type TokenPolicyPermissionGroupsMetaParam

type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam

Attributes associated to the permission group.

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectNested

type TokenPolicyResourcesIAMResourcesTypeObjectNested = shared.TokenPolicyResourcesIAMResourcesTypeObjectNested

Map of nested resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam

type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam = shared.TokenPolicyResourcesIAMResourcesTypeObjectNestedParam

Map of nested resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectString

type TokenPolicyResourcesIAMResourcesTypeObjectString = shared.TokenPolicyResourcesIAMResourcesTypeObjectString

Map of simple string resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectStringParam

type TokenPolicyResourcesIAMResourcesTypeObjectStringParam = shared.TokenPolicyResourcesIAMResourcesTypeObjectStringParam

Map of simple string resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesUnion

type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion

A list of resource names that the policy applies to.

This is an alias to an internal type.

type TokenPolicyResourcesUnionParam

type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam

A list of resource names that the policy applies to.

This is an alias to an internal type.

type TokenStatus

type TokenStatus = shared.TokenStatus

Status of the token.

This is an alias to an internal type.

type TokenValue

type TokenValue = shared.TokenValue

The token value.

This is an alias to an internal type.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL