dnssvcsv1

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: Apache-2.0 Imports: 8 Imported by: 16

Documentation

Overview

Package dnssvcsv1 : Operations and models for the DnsSvcsV1 service

Index

Constants

View Source
const (
	CreateMonitorOptions_Type_Http  = "HTTP"
	CreateMonitorOptions_Type_Https = "HTTPS"
	CreateMonitorOptions_Type_Tcp   = "TCP"
)

Constants associated with the CreateMonitorOptions.Type property. The protocol to use for the health check. Currently supported protocols are 'HTTP','HTTPS' and 'TCP'.

View Source
const (
	CreateMonitorOptions_Method_Get  = "GET"
	CreateMonitorOptions_Method_Head = "HEAD"
)

Constants associated with the CreateMonitorOptions.Method property. The method to use for the health check applicable to HTTP/HTTPS based checks, the default value is 'GET'.

View Source
const (
	CreatePoolOptions_HealthcheckRegion_AuSyd   = "au-syd"
	CreatePoolOptions_HealthcheckRegion_EuDu    = "eu-du"
	CreatePoolOptions_HealthcheckRegion_EuGb    = "eu-gb"
	CreatePoolOptions_HealthcheckRegion_JpTok   = "jp-tok"
	CreatePoolOptions_HealthcheckRegion_UsEast  = "us-east"
	CreatePoolOptions_HealthcheckRegion_UsSouth = "us-south"
)

Constants associated with the CreatePoolOptions.HealthcheckRegion property. Health check region of VSIs.

View Source
const (
	CreateResourceRecordOptions_Type_A     = "A"
	CreateResourceRecordOptions_Type_Aaaa  = "AAAA"
	CreateResourceRecordOptions_Type_Cname = "CNAME"
	CreateResourceRecordOptions_Type_Mx    = "MX"
	CreateResourceRecordOptions_Type_Ptr   = "PTR"
	CreateResourceRecordOptions_Type_Srv   = "SRV"
	CreateResourceRecordOptions_Type_Txt   = "TXT"
)

Constants associated with the CreateResourceRecordOptions.Type property. Type of the resource record.

View Source
const (
	UpdateMonitorOptions_Type_Http  = "HTTP"
	UpdateMonitorOptions_Type_Https = "HTTPS"
	UpdateMonitorOptions_Type_Tcp   = "TCP"
)

Constants associated with the UpdateMonitorOptions.Type property. The protocol to use for the health check. Currently supported protocols are 'HTTP','HTTPS' and 'TCP'.

View Source
const (
	UpdateMonitorOptions_Method_Get  = "GET"
	UpdateMonitorOptions_Method_Head = "HEAD"
)

Constants associated with the UpdateMonitorOptions.Method property. The method to use for the health check applicable to HTTP/HTTPS based checks, the default value is 'GET'.

View Source
const (
	UpdatePoolOptions_HealthcheckRegion_AuSyd   = "au-syd"
	UpdatePoolOptions_HealthcheckRegion_EuDu    = "eu-du"
	UpdatePoolOptions_HealthcheckRegion_EuGb    = "eu-gb"
	UpdatePoolOptions_HealthcheckRegion_JpTok   = "jp-tok"
	UpdatePoolOptions_HealthcheckRegion_UsEast  = "us-east"
	UpdatePoolOptions_HealthcheckRegion_UsSouth = "us-south"
)

Constants associated with the UpdatePoolOptions.HealthcheckRegion property. Health check region of VSIs.

View Source
const (
	Dnszone_State_Active            = "active"
	Dnszone_State_Deleted           = "deleted"
	Dnszone_State_Disabled          = "disabled"
	Dnszone_State_PendingDelete     = "pending_delete"
	Dnszone_State_PendingNetworkAdd = "pending_network_add"
)

Constants associated with the Dnszone.State property. State of DNS zone.

View Source
const (
	LoadBalancer_Health_Critical = "CRITICAL"
	LoadBalancer_Health_Degraded = "DEGRADED"
	LoadBalancer_Health_Healthy  = "HEALTHY"
)

Constants associated with the LoadBalancer.Health property. Healthy state of the load balancer.

View Source
const (
	Monitor_Method_Get  = "GET"
	Monitor_Method_Head = "HEAD"
)

Constants associated with the Monitor.Method property. The method to use for the health check applicable to HTTP/HTTPS based checks, the default value is 'GET'.

View Source
const (
	PermittedNetwork_State_Active            = "ACTIVE"
	PermittedNetwork_State_RemovalInProgress = "REMOVAL_IN_PROGRESS"
)

Constants associated with the PermittedNetwork.State property. The state of a permitted network.

View Source
const (
	Pool_Health_Critical = "CRITICAL"
	Pool_Health_Degraded = "DEGRADED"
	Pool_Health_Healthy  = "HEALTHY"
)

Constants associated with the Pool.Health property. Healthy state of the load balancer pool.

View Source
const (
	Pool_HealthcheckRegion_AuSyd   = "au-syd"
	Pool_HealthcheckRegion_EuDu    = "eu-du"
	Pool_HealthcheckRegion_EuGb    = "eu-gb"
	Pool_HealthcheckRegion_JpTok   = "jp-tok"
	Pool_HealthcheckRegion_UsEast  = "us-east"
	Pool_HealthcheckRegion_UsSouth = "us-south"
)

Constants associated with the Pool.HealthcheckRegion property. Health check region of VSIs.

View Source
const (
	ResourceRecord_Type_A     = "A"
	ResourceRecord_Type_Aaaa  = "AAAA"
	ResourceRecord_Type_Cname = "CNAME"
	ResourceRecord_Type_Mx    = "MX"
	ResourceRecord_Type_Ptr   = "PTR"
	ResourceRecord_Type_Srv   = "SRV"
	ResourceRecord_Type_Txt   = "TXT"
)

Constants associated with the ResourceRecord.Type property. Type of the resource record.

View Source
const (
	CreatePermittedNetworkOptions_Type_Vpc = "vpc"
)

Constants associated with the CreatePermittedNetworkOptions.Type property. The type of a permitted network.

View Source
const DefaultServiceName = "dns_svcs"

DefaultServiceName is the default key used to find external configuration information.

View Source
const DefaultServiceURL = "https://api.dns-svcs.cloud.ibm.com/v1"

DefaultServiceURL is the default URL to make service requests to.

View Source
const (
	PermittedNetwork_Type_Vpc = "vpc"
)

Constants associated with the PermittedNetwork.Type property. The type of a permitted network.

Variables

This section is empty.

Functions

func GetServiceURLForRegion added in v0.12.2

func GetServiceURLForRegion(region string) (string, error)

GetServiceURLForRegion returns the service URL to be used for the specified region

func UnmarshalDnszone

func UnmarshalDnszone(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalDnszone unmarshals an instance of Dnszone from the specified map of raw messages.

func UnmarshalFirstHref

func UnmarshalFirstHref(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalFirstHref unmarshals an instance of FirstHref from the specified map of raw messages.

func UnmarshalHealthcheckHeader

func UnmarshalHealthcheckHeader(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalHealthcheckHeader unmarshals an instance of HealthcheckHeader from the specified map of raw messages.

func UnmarshalListDnszones

func UnmarshalListDnszones(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalListDnszones unmarshals an instance of ListDnszones from the specified map of raw messages.

func UnmarshalListLoadBalancers

func UnmarshalListLoadBalancers(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalListLoadBalancers unmarshals an instance of ListLoadBalancers from the specified map of raw messages.

func UnmarshalListMonitors

func UnmarshalListMonitors(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalListMonitors unmarshals an instance of ListMonitors from the specified map of raw messages.

func UnmarshalListPermittedNetworks

func UnmarshalListPermittedNetworks(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalListPermittedNetworks unmarshals an instance of ListPermittedNetworks from the specified map of raw messages.

func UnmarshalListPools

func UnmarshalListPools(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalListPools unmarshals an instance of ListPools from the specified map of raw messages.

func UnmarshalListResourceRecords

func UnmarshalListResourceRecords(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalListResourceRecords unmarshals an instance of ListResourceRecords from the specified map of raw messages.

func UnmarshalLoadBalancer

func UnmarshalLoadBalancer(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalLoadBalancer unmarshals an instance of LoadBalancer from the specified map of raw messages.

func UnmarshalLoadBalancerAzPoolsItem

func UnmarshalLoadBalancerAzPoolsItem(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalLoadBalancerAzPoolsItem unmarshals an instance of LoadBalancerAzPoolsItem from the specified map of raw messages.

func UnmarshalMonitor

func UnmarshalMonitor(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalMonitor unmarshals an instance of Monitor from the specified map of raw messages.

func UnmarshalNextHref

func UnmarshalNextHref(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalNextHref unmarshals an instance of NextHref from the specified map of raw messages.

func UnmarshalOrigin

func UnmarshalOrigin(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalOrigin unmarshals an instance of Origin from the specified map of raw messages.

func UnmarshalOriginInput

func UnmarshalOriginInput(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalOriginInput unmarshals an instance of OriginInput from the specified map of raw messages.

func UnmarshalPermittedNetwork

func UnmarshalPermittedNetwork(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalPermittedNetwork unmarshals an instance of PermittedNetwork from the specified map of raw messages.

func UnmarshalPermittedNetworkVpc

func UnmarshalPermittedNetworkVpc(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalPermittedNetworkVpc unmarshals an instance of PermittedNetworkVpc from the specified map of raw messages.

func UnmarshalPool

func UnmarshalPool(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalPool unmarshals an instance of Pool from the specified map of raw messages.

func UnmarshalPoolHealthcheckVsisItem added in v0.12.2

func UnmarshalPoolHealthcheckVsisItem(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalPoolHealthcheckVsisItem unmarshals an instance of PoolHealthcheckVsisItem from the specified map of raw messages.

func UnmarshalResourceRecord

func UnmarshalResourceRecord(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResourceRecord unmarshals an instance of ResourceRecord from the specified map of raw messages.

func UnmarshalResourceRecordInputRdata

func UnmarshalResourceRecordInputRdata(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResourceRecordInputRdata unmarshals an instance of ResourceRecordInputRdata from the specified map of raw messages.

func UnmarshalResourceRecordInputRdataRdataARecord

func UnmarshalResourceRecordInputRdataRdataARecord(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResourceRecordInputRdataRdataARecord unmarshals an instance of ResourceRecordInputRdataRdataARecord from the specified map of raw messages.

func UnmarshalResourceRecordInputRdataRdataAaaaRecord

func UnmarshalResourceRecordInputRdataRdataAaaaRecord(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResourceRecordInputRdataRdataAaaaRecord unmarshals an instance of ResourceRecordInputRdataRdataAaaaRecord from the specified map of raw messages.

func UnmarshalResourceRecordInputRdataRdataCnameRecord

func UnmarshalResourceRecordInputRdataRdataCnameRecord(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResourceRecordInputRdataRdataCnameRecord unmarshals an instance of ResourceRecordInputRdataRdataCnameRecord from the specified map of raw messages.

func UnmarshalResourceRecordInputRdataRdataMxRecord

func UnmarshalResourceRecordInputRdataRdataMxRecord(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResourceRecordInputRdataRdataMxRecord unmarshals an instance of ResourceRecordInputRdataRdataMxRecord from the specified map of raw messages.

func UnmarshalResourceRecordInputRdataRdataPtrRecord

func UnmarshalResourceRecordInputRdataRdataPtrRecord(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResourceRecordInputRdataRdataPtrRecord unmarshals an instance of ResourceRecordInputRdataRdataPtrRecord from the specified map of raw messages.

func UnmarshalResourceRecordInputRdataRdataSrvRecord

func UnmarshalResourceRecordInputRdataRdataSrvRecord(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResourceRecordInputRdataRdataSrvRecord unmarshals an instance of ResourceRecordInputRdataRdataSrvRecord from the specified map of raw messages.

func UnmarshalResourceRecordInputRdataRdataTxtRecord

func UnmarshalResourceRecordInputRdataRdataTxtRecord(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResourceRecordInputRdataRdataTxtRecord unmarshals an instance of ResourceRecordInputRdataRdataTxtRecord from the specified map of raw messages.

func UnmarshalResourceRecordUpdateInputRdata

func UnmarshalResourceRecordUpdateInputRdata(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResourceRecordUpdateInputRdata unmarshals an instance of ResourceRecordUpdateInputRdata from the specified map of raw messages.

func UnmarshalResourceRecordUpdateInputRdataRdataARecord

func UnmarshalResourceRecordUpdateInputRdataRdataARecord(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResourceRecordUpdateInputRdataRdataARecord unmarshals an instance of ResourceRecordUpdateInputRdataRdataARecord from the specified map of raw messages.

func UnmarshalResourceRecordUpdateInputRdataRdataAaaaRecord

func UnmarshalResourceRecordUpdateInputRdataRdataAaaaRecord(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResourceRecordUpdateInputRdataRdataAaaaRecord unmarshals an instance of ResourceRecordUpdateInputRdataRdataAaaaRecord from the specified map of raw messages.

func UnmarshalResourceRecordUpdateInputRdataRdataCnameRecord

func UnmarshalResourceRecordUpdateInputRdataRdataCnameRecord(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResourceRecordUpdateInputRdataRdataCnameRecord unmarshals an instance of ResourceRecordUpdateInputRdataRdataCnameRecord from the specified map of raw messages.

func UnmarshalResourceRecordUpdateInputRdataRdataMxRecord

func UnmarshalResourceRecordUpdateInputRdataRdataMxRecord(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResourceRecordUpdateInputRdataRdataMxRecord unmarshals an instance of ResourceRecordUpdateInputRdataRdataMxRecord from the specified map of raw messages.

func UnmarshalResourceRecordUpdateInputRdataRdataPtrRecord

func UnmarshalResourceRecordUpdateInputRdataRdataPtrRecord(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResourceRecordUpdateInputRdataRdataPtrRecord unmarshals an instance of ResourceRecordUpdateInputRdataRdataPtrRecord from the specified map of raw messages.

func UnmarshalResourceRecordUpdateInputRdataRdataSrvRecord

func UnmarshalResourceRecordUpdateInputRdataRdataSrvRecord(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResourceRecordUpdateInputRdataRdataSrvRecord unmarshals an instance of ResourceRecordUpdateInputRdataRdataSrvRecord from the specified map of raw messages.

func UnmarshalResourceRecordUpdateInputRdataRdataTxtRecord

func UnmarshalResourceRecordUpdateInputRdataRdataTxtRecord(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResourceRecordUpdateInputRdataRdataTxtRecord unmarshals an instance of ResourceRecordUpdateInputRdataRdataTxtRecord from the specified map of raw messages.

Types

type CreateDnszoneOptions

type CreateDnszoneOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// Name of DNS zone.
	Name *string `json:"name,omitempty"`

	// The text describing the purpose of a DNS zone.
	Description *string `json:"description,omitempty"`

	// The label of a DNS zone.
	Label *string `json:"label,omitempty"`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

CreateDnszoneOptions : The CreateDnszone options.

func (*CreateDnszoneOptions) SetDescription

func (options *CreateDnszoneOptions) SetDescription(description string) *CreateDnszoneOptions

SetDescription : Allow user to set Description

func (*CreateDnszoneOptions) SetHeaders

func (options *CreateDnszoneOptions) SetHeaders(param map[string]string) *CreateDnszoneOptions

SetHeaders : Allow user to set Headers

func (*CreateDnszoneOptions) SetInstanceID

func (options *CreateDnszoneOptions) SetInstanceID(instanceID string) *CreateDnszoneOptions

SetInstanceID : Allow user to set InstanceID

func (*CreateDnszoneOptions) SetLabel

func (options *CreateDnszoneOptions) SetLabel(label string) *CreateDnszoneOptions

SetLabel : Allow user to set Label

func (*CreateDnszoneOptions) SetName

func (options *CreateDnszoneOptions) SetName(name string) *CreateDnszoneOptions

SetName : Allow user to set Name

func (*CreateDnszoneOptions) SetXCorrelationID

func (options *CreateDnszoneOptions) SetXCorrelationID(xCorrelationID string) *CreateDnszoneOptions

SetXCorrelationID : Allow user to set XCorrelationID

type CreateLoadBalancerOptions

type CreateLoadBalancerOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a DNS zone.
	DnszoneID *string `json:"dnszone_id" validate:"required,ne="`

	// Name of the load balancer.
	Name *string `json:"name,omitempty"`

	// Descriptive text of the load balancer.
	Description *string `json:"description,omitempty"`

	// Whether the load balancer is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Time to live in second.
	TTL *int64 `json:"ttl,omitempty"`

	// The pool ID to use when all other pools are detected as unhealthy.
	FallbackPool *string `json:"fallback_pool,omitempty"`

	// A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region_pools
	// are not configured for a given region.
	DefaultPools []string `json:"default_pools,omitempty"`

	// Map availability zones to pool IDs.
	AzPools []LoadBalancerAzPoolsItem `json:"az_pools,omitempty"`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

CreateLoadBalancerOptions : The CreateLoadBalancer options.

func (*CreateLoadBalancerOptions) SetAzPools

SetAzPools : Allow user to set AzPools

func (*CreateLoadBalancerOptions) SetDefaultPools

func (options *CreateLoadBalancerOptions) SetDefaultPools(defaultPools []string) *CreateLoadBalancerOptions

SetDefaultPools : Allow user to set DefaultPools

func (*CreateLoadBalancerOptions) SetDescription

func (options *CreateLoadBalancerOptions) SetDescription(description string) *CreateLoadBalancerOptions

SetDescription : Allow user to set Description

func (*CreateLoadBalancerOptions) SetDnszoneID

func (options *CreateLoadBalancerOptions) SetDnszoneID(dnszoneID string) *CreateLoadBalancerOptions

SetDnszoneID : Allow user to set DnszoneID

func (*CreateLoadBalancerOptions) SetEnabled

func (options *CreateLoadBalancerOptions) SetEnabled(enabled bool) *CreateLoadBalancerOptions

SetEnabled : Allow user to set Enabled

func (*CreateLoadBalancerOptions) SetFallbackPool

func (options *CreateLoadBalancerOptions) SetFallbackPool(fallbackPool string) *CreateLoadBalancerOptions

SetFallbackPool : Allow user to set FallbackPool

func (*CreateLoadBalancerOptions) SetHeaders

func (options *CreateLoadBalancerOptions) SetHeaders(param map[string]string) *CreateLoadBalancerOptions

SetHeaders : Allow user to set Headers

func (*CreateLoadBalancerOptions) SetInstanceID

func (options *CreateLoadBalancerOptions) SetInstanceID(instanceID string) *CreateLoadBalancerOptions

SetInstanceID : Allow user to set InstanceID

func (*CreateLoadBalancerOptions) SetName

SetName : Allow user to set Name

func (*CreateLoadBalancerOptions) SetTTL

SetTTL : Allow user to set TTL

func (*CreateLoadBalancerOptions) SetXCorrelationID

func (options *CreateLoadBalancerOptions) SetXCorrelationID(xCorrelationID string) *CreateLoadBalancerOptions

SetXCorrelationID : Allow user to set XCorrelationID

type CreateMonitorOptions

type CreateMonitorOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The name of the load balancer monitor.
	Name *string `json:"name,omitempty"`

	// Descriptive text of the load balancer monitor.
	Description *string `json:"description,omitempty"`

	// The protocol to use for the health check. Currently supported protocols are 'HTTP','HTTPS' and 'TCP'.
	Type *string `json:"type,omitempty"`

	// Port number to connect to for the health check. Required for TCP checks. HTTP and HTTPS checks should only define
	// the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).
	Port *int64 `json:"port,omitempty"`

	// The interval between each health check. Shorter intervals may improve failover time, but will increase load on the
	// origins as we check from multiple locations.
	Interval *int64 `json:"interval,omitempty"`

	// The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted
	// immediately.
	Retries *int64 `json:"retries,omitempty"`

	// The timeout (in seconds) before marking the health check as failed.
	Timeout *int64 `json:"timeout,omitempty"`

	// The method to use for the health check applicable to HTTP/HTTPS based checks, the default value is 'GET'.
	Method *string `json:"method,omitempty"`

	// The endpoint path to health check against. This parameter is only valid for HTTP and HTTPS monitors.
	Path *string `json:"path,omitempty"`

	// The HTTP request headers to send in the health check. It is recommended you set a Host header by default. The
	// User-Agent header cannot be overridden. This parameter is only valid for HTTP and HTTPS monitors.
	HeadersVar []HealthcheckHeader `json:"headers,omitempty"`

	// Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTPS monitors.
	AllowInsecure *bool `json:"allow_insecure,omitempty"`

	// The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS
	// monitors.
	ExpectedCodes *string `json:"expected_codes,omitempty"`

	// A case-insensitive sub-string to look for in the response body. If this string is not found, the origin will be
	// marked as unhealthy. This parameter is only valid for HTTP and HTTPS monitors.
	ExpectedBody *string `json:"expected_body,omitempty"`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

CreateMonitorOptions : The CreateMonitor options.

func (*CreateMonitorOptions) SetAllowInsecure

func (options *CreateMonitorOptions) SetAllowInsecure(allowInsecure bool) *CreateMonitorOptions

SetAllowInsecure : Allow user to set AllowInsecure

func (*CreateMonitorOptions) SetDescription

func (options *CreateMonitorOptions) SetDescription(description string) *CreateMonitorOptions

SetDescription : Allow user to set Description

func (*CreateMonitorOptions) SetExpectedBody

func (options *CreateMonitorOptions) SetExpectedBody(expectedBody string) *CreateMonitorOptions

SetExpectedBody : Allow user to set ExpectedBody

func (*CreateMonitorOptions) SetExpectedCodes

func (options *CreateMonitorOptions) SetExpectedCodes(expectedCodes string) *CreateMonitorOptions

SetExpectedCodes : Allow user to set ExpectedCodes

func (*CreateMonitorOptions) SetHeaders

func (options *CreateMonitorOptions) SetHeaders(param map[string]string) *CreateMonitorOptions

SetHeaders : Allow user to set Headers

func (*CreateMonitorOptions) SetHeadersVar

func (options *CreateMonitorOptions) SetHeadersVar(headersVar []HealthcheckHeader) *CreateMonitorOptions

SetHeadersVar : Allow user to set HeadersVar

func (*CreateMonitorOptions) SetInstanceID

func (options *CreateMonitorOptions) SetInstanceID(instanceID string) *CreateMonitorOptions

SetInstanceID : Allow user to set InstanceID

func (*CreateMonitorOptions) SetInterval

func (options *CreateMonitorOptions) SetInterval(interval int64) *CreateMonitorOptions

SetInterval : Allow user to set Interval

func (*CreateMonitorOptions) SetMethod

func (options *CreateMonitorOptions) SetMethod(method string) *CreateMonitorOptions

SetMethod : Allow user to set Method

func (*CreateMonitorOptions) SetName

func (options *CreateMonitorOptions) SetName(name string) *CreateMonitorOptions

SetName : Allow user to set Name

func (*CreateMonitorOptions) SetPath

func (options *CreateMonitorOptions) SetPath(path string) *CreateMonitorOptions

SetPath : Allow user to set Path

func (*CreateMonitorOptions) SetPort

func (options *CreateMonitorOptions) SetPort(port int64) *CreateMonitorOptions

SetPort : Allow user to set Port

func (*CreateMonitorOptions) SetRetries

func (options *CreateMonitorOptions) SetRetries(retries int64) *CreateMonitorOptions

SetRetries : Allow user to set Retries

func (*CreateMonitorOptions) SetTimeout

func (options *CreateMonitorOptions) SetTimeout(timeout int64) *CreateMonitorOptions

SetTimeout : Allow user to set Timeout

func (*CreateMonitorOptions) SetType

func (options *CreateMonitorOptions) SetType(typeVar string) *CreateMonitorOptions

SetType : Allow user to set Type

func (*CreateMonitorOptions) SetXCorrelationID

func (options *CreateMonitorOptions) SetXCorrelationID(xCorrelationID string) *CreateMonitorOptions

SetXCorrelationID : Allow user to set XCorrelationID

type CreatePermittedNetworkOptions

type CreatePermittedNetworkOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a DNS zone.
	DnszoneID *string `json:"dnszone_id" validate:"required,ne="`

	// The type of a permitted network.
	Type *string `json:"type,omitempty"`

	// Permitted network data for VPC.
	PermittedNetwork *PermittedNetworkVpc `json:"permitted_network,omitempty"`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

CreatePermittedNetworkOptions : The CreatePermittedNetwork options.

func (*CreatePermittedNetworkOptions) SetDnszoneID

func (options *CreatePermittedNetworkOptions) SetDnszoneID(dnszoneID string) *CreatePermittedNetworkOptions

SetDnszoneID : Allow user to set DnszoneID

func (*CreatePermittedNetworkOptions) SetHeaders

SetHeaders : Allow user to set Headers

func (*CreatePermittedNetworkOptions) SetInstanceID

func (options *CreatePermittedNetworkOptions) SetInstanceID(instanceID string) *CreatePermittedNetworkOptions

SetInstanceID : Allow user to set InstanceID

func (*CreatePermittedNetworkOptions) SetPermittedNetwork

func (options *CreatePermittedNetworkOptions) SetPermittedNetwork(permittedNetwork *PermittedNetworkVpc) *CreatePermittedNetworkOptions

SetPermittedNetwork : Allow user to set PermittedNetwork

func (*CreatePermittedNetworkOptions) SetType

SetType : Allow user to set Type

func (*CreatePermittedNetworkOptions) SetXCorrelationID

func (options *CreatePermittedNetworkOptions) SetXCorrelationID(xCorrelationID string) *CreatePermittedNetworkOptions

SetXCorrelationID : Allow user to set XCorrelationID

type CreatePoolOptions

type CreatePoolOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// Name of the load balancer pool.
	Name *string `json:"name,omitempty"`

	// Descriptive text of the load balancer pool.
	Description *string `json:"description,omitempty"`

	// Whether the load balancer pool is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins
	// falls below this number, the pool will be marked unhealthy and we will failover to the next available pool.
	HealthyOriginsThreshold *int64 `json:"healthy_origins_threshold,omitempty"`

	// The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy
	// origins, provided the pool itself is healthy.
	Origins []OriginInput `json:"origins,omitempty"`

	// The ID of the load balancer monitor to be associated to this pool.
	Monitor *string `json:"monitor,omitempty"`

	// The notification channel.
	NotificationChannel *string `json:"notification_channel,omitempty"`

	// Health check region of VSIs.
	HealthcheckRegion *string `json:"healthcheck_region,omitempty"`

	// Health check subnet CRN.
	HealthcheckSubnets []string `json:"healthcheck_subnets,omitempty"`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

CreatePoolOptions : The CreatePool options.

func (*CreatePoolOptions) SetDescription

func (options *CreatePoolOptions) SetDescription(description string) *CreatePoolOptions

SetDescription : Allow user to set Description

func (*CreatePoolOptions) SetEnabled

func (options *CreatePoolOptions) SetEnabled(enabled bool) *CreatePoolOptions

SetEnabled : Allow user to set Enabled

func (*CreatePoolOptions) SetHeaders

func (options *CreatePoolOptions) SetHeaders(param map[string]string) *CreatePoolOptions

SetHeaders : Allow user to set Headers

func (*CreatePoolOptions) SetHealthcheckRegion

func (options *CreatePoolOptions) SetHealthcheckRegion(healthcheckRegion string) *CreatePoolOptions

SetHealthcheckRegion : Allow user to set HealthcheckRegion

func (*CreatePoolOptions) SetHealthcheckSubnets

func (options *CreatePoolOptions) SetHealthcheckSubnets(healthcheckSubnets []string) *CreatePoolOptions

SetHealthcheckSubnets : Allow user to set HealthcheckSubnets

func (*CreatePoolOptions) SetHealthyOriginsThreshold

func (options *CreatePoolOptions) SetHealthyOriginsThreshold(healthyOriginsThreshold int64) *CreatePoolOptions

SetHealthyOriginsThreshold : Allow user to set HealthyOriginsThreshold

func (*CreatePoolOptions) SetInstanceID

func (options *CreatePoolOptions) SetInstanceID(instanceID string) *CreatePoolOptions

SetInstanceID : Allow user to set InstanceID

func (*CreatePoolOptions) SetMonitor

func (options *CreatePoolOptions) SetMonitor(monitor string) *CreatePoolOptions

SetMonitor : Allow user to set Monitor

func (*CreatePoolOptions) SetName

func (options *CreatePoolOptions) SetName(name string) *CreatePoolOptions

SetName : Allow user to set Name

func (*CreatePoolOptions) SetNotificationChannel

func (options *CreatePoolOptions) SetNotificationChannel(notificationChannel string) *CreatePoolOptions

SetNotificationChannel : Allow user to set NotificationChannel

func (*CreatePoolOptions) SetOrigins

func (options *CreatePoolOptions) SetOrigins(origins []OriginInput) *CreatePoolOptions

SetOrigins : Allow user to set Origins

func (*CreatePoolOptions) SetXCorrelationID

func (options *CreatePoolOptions) SetXCorrelationID(xCorrelationID string) *CreatePoolOptions

SetXCorrelationID : Allow user to set XCorrelationID

type CreateResourceRecordOptions

type CreateResourceRecordOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a DNS zone.
	DnszoneID *string `json:"dnszone_id" validate:"required,ne="`

	// Name of the resource record.
	Name *string `json:"name,omitempty"`

	// Type of the resource record.
	Type *string `json:"type,omitempty"`

	// Content of the resource record.
	Rdata ResourceRecordInputRdataIntf `json:"rdata,omitempty"`

	// Time to live in second.
	TTL *int64 `json:"ttl,omitempty"`

	// Only used for SRV record.
	Service *string `json:"service,omitempty"`

	// Only used for SRV record.
	Protocol *string `json:"protocol,omitempty"`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

CreateResourceRecordOptions : The CreateResourceRecord options.

func (*CreateResourceRecordOptions) SetDnszoneID

func (options *CreateResourceRecordOptions) SetDnszoneID(dnszoneID string) *CreateResourceRecordOptions

SetDnszoneID : Allow user to set DnszoneID

func (*CreateResourceRecordOptions) SetHeaders

func (options *CreateResourceRecordOptions) SetHeaders(param map[string]string) *CreateResourceRecordOptions

SetHeaders : Allow user to set Headers

func (*CreateResourceRecordOptions) SetInstanceID

func (options *CreateResourceRecordOptions) SetInstanceID(instanceID string) *CreateResourceRecordOptions

SetInstanceID : Allow user to set InstanceID

func (*CreateResourceRecordOptions) SetName

SetName : Allow user to set Name

func (*CreateResourceRecordOptions) SetProtocol

func (options *CreateResourceRecordOptions) SetProtocol(protocol string) *CreateResourceRecordOptions

SetProtocol : Allow user to set Protocol

func (*CreateResourceRecordOptions) SetRdata

SetRdata : Allow user to set Rdata

func (*CreateResourceRecordOptions) SetService

func (options *CreateResourceRecordOptions) SetService(service string) *CreateResourceRecordOptions

SetService : Allow user to set Service

func (*CreateResourceRecordOptions) SetTTL

SetTTL : Allow user to set TTL

func (*CreateResourceRecordOptions) SetType

SetType : Allow user to set Type

func (*CreateResourceRecordOptions) SetXCorrelationID

func (options *CreateResourceRecordOptions) SetXCorrelationID(xCorrelationID string) *CreateResourceRecordOptions

SetXCorrelationID : Allow user to set XCorrelationID

type DeleteDnszoneOptions

type DeleteDnszoneOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a DNS zone.
	DnszoneID *string `json:"dnszone_id" validate:"required,ne="`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

DeleteDnszoneOptions : The DeleteDnszone options.

func (*DeleteDnszoneOptions) SetDnszoneID

func (options *DeleteDnszoneOptions) SetDnszoneID(dnszoneID string) *DeleteDnszoneOptions

SetDnszoneID : Allow user to set DnszoneID

func (*DeleteDnszoneOptions) SetHeaders

func (options *DeleteDnszoneOptions) SetHeaders(param map[string]string) *DeleteDnszoneOptions

SetHeaders : Allow user to set Headers

func (*DeleteDnszoneOptions) SetInstanceID

func (options *DeleteDnszoneOptions) SetInstanceID(instanceID string) *DeleteDnszoneOptions

SetInstanceID : Allow user to set InstanceID

func (*DeleteDnszoneOptions) SetXCorrelationID

func (options *DeleteDnszoneOptions) SetXCorrelationID(xCorrelationID string) *DeleteDnszoneOptions

SetXCorrelationID : Allow user to set XCorrelationID

type DeleteLoadBalancerOptions

type DeleteLoadBalancerOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a DNS zone.
	DnszoneID *string `json:"dnszone_id" validate:"required,ne="`

	// The unique identifier of a load balancer.
	LbID *string `json:"lb_id" validate:"required,ne="`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

DeleteLoadBalancerOptions : The DeleteLoadBalancer options.

func (*DeleteLoadBalancerOptions) SetDnszoneID

func (options *DeleteLoadBalancerOptions) SetDnszoneID(dnszoneID string) *DeleteLoadBalancerOptions

SetDnszoneID : Allow user to set DnszoneID

func (*DeleteLoadBalancerOptions) SetHeaders

func (options *DeleteLoadBalancerOptions) SetHeaders(param map[string]string) *DeleteLoadBalancerOptions

SetHeaders : Allow user to set Headers

func (*DeleteLoadBalancerOptions) SetInstanceID

func (options *DeleteLoadBalancerOptions) SetInstanceID(instanceID string) *DeleteLoadBalancerOptions

SetInstanceID : Allow user to set InstanceID

func (*DeleteLoadBalancerOptions) SetLbID

SetLbID : Allow user to set LbID

func (*DeleteLoadBalancerOptions) SetXCorrelationID

func (options *DeleteLoadBalancerOptions) SetXCorrelationID(xCorrelationID string) *DeleteLoadBalancerOptions

SetXCorrelationID : Allow user to set XCorrelationID

type DeleteMonitorOptions

type DeleteMonitorOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a load balancer monitor.
	MonitorID *string `json:"monitor_id" validate:"required,ne="`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

DeleteMonitorOptions : The DeleteMonitor options.

func (*DeleteMonitorOptions) SetHeaders

func (options *DeleteMonitorOptions) SetHeaders(param map[string]string) *DeleteMonitorOptions

SetHeaders : Allow user to set Headers

func (*DeleteMonitorOptions) SetInstanceID

func (options *DeleteMonitorOptions) SetInstanceID(instanceID string) *DeleteMonitorOptions

SetInstanceID : Allow user to set InstanceID

func (*DeleteMonitorOptions) SetMonitorID

func (options *DeleteMonitorOptions) SetMonitorID(monitorID string) *DeleteMonitorOptions

SetMonitorID : Allow user to set MonitorID

func (*DeleteMonitorOptions) SetXCorrelationID

func (options *DeleteMonitorOptions) SetXCorrelationID(xCorrelationID string) *DeleteMonitorOptions

SetXCorrelationID : Allow user to set XCorrelationID

type DeletePermittedNetworkOptions

type DeletePermittedNetworkOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a DNS zone.
	DnszoneID *string `json:"dnszone_id" validate:"required,ne="`

	// The unique identifier of a permitted network.
	PermittedNetworkID *string `json:"permitted_network_id" validate:"required,ne="`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

DeletePermittedNetworkOptions : The DeletePermittedNetwork options.

func (*DeletePermittedNetworkOptions) SetDnszoneID

func (options *DeletePermittedNetworkOptions) SetDnszoneID(dnszoneID string) *DeletePermittedNetworkOptions

SetDnszoneID : Allow user to set DnszoneID

func (*DeletePermittedNetworkOptions) SetHeaders

SetHeaders : Allow user to set Headers

func (*DeletePermittedNetworkOptions) SetInstanceID

func (options *DeletePermittedNetworkOptions) SetInstanceID(instanceID string) *DeletePermittedNetworkOptions

SetInstanceID : Allow user to set InstanceID

func (*DeletePermittedNetworkOptions) SetPermittedNetworkID

func (options *DeletePermittedNetworkOptions) SetPermittedNetworkID(permittedNetworkID string) *DeletePermittedNetworkOptions

SetPermittedNetworkID : Allow user to set PermittedNetworkID

func (*DeletePermittedNetworkOptions) SetXCorrelationID

func (options *DeletePermittedNetworkOptions) SetXCorrelationID(xCorrelationID string) *DeletePermittedNetworkOptions

SetXCorrelationID : Allow user to set XCorrelationID

type DeletePoolOptions

type DeletePoolOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a load balancer pool.
	PoolID *string `json:"pool_id" validate:"required,ne="`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

DeletePoolOptions : The DeletePool options.

func (*DeletePoolOptions) SetHeaders

func (options *DeletePoolOptions) SetHeaders(param map[string]string) *DeletePoolOptions

SetHeaders : Allow user to set Headers

func (*DeletePoolOptions) SetInstanceID

func (options *DeletePoolOptions) SetInstanceID(instanceID string) *DeletePoolOptions

SetInstanceID : Allow user to set InstanceID

func (*DeletePoolOptions) SetPoolID

func (options *DeletePoolOptions) SetPoolID(poolID string) *DeletePoolOptions

SetPoolID : Allow user to set PoolID

func (*DeletePoolOptions) SetXCorrelationID

func (options *DeletePoolOptions) SetXCorrelationID(xCorrelationID string) *DeletePoolOptions

SetXCorrelationID : Allow user to set XCorrelationID

type DeleteResourceRecordOptions

type DeleteResourceRecordOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a DNS zone.
	DnszoneID *string `json:"dnszone_id" validate:"required,ne="`

	// The unique identifier of a resource record.
	RecordID *string `json:"record_id" validate:"required,ne="`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

DeleteResourceRecordOptions : The DeleteResourceRecord options.

func (*DeleteResourceRecordOptions) SetDnszoneID

func (options *DeleteResourceRecordOptions) SetDnszoneID(dnszoneID string) *DeleteResourceRecordOptions

SetDnszoneID : Allow user to set DnszoneID

func (*DeleteResourceRecordOptions) SetHeaders

func (options *DeleteResourceRecordOptions) SetHeaders(param map[string]string) *DeleteResourceRecordOptions

SetHeaders : Allow user to set Headers

func (*DeleteResourceRecordOptions) SetInstanceID

func (options *DeleteResourceRecordOptions) SetInstanceID(instanceID string) *DeleteResourceRecordOptions

SetInstanceID : Allow user to set InstanceID

func (*DeleteResourceRecordOptions) SetRecordID

func (options *DeleteResourceRecordOptions) SetRecordID(recordID string) *DeleteResourceRecordOptions

SetRecordID : Allow user to set RecordID

func (*DeleteResourceRecordOptions) SetXCorrelationID

func (options *DeleteResourceRecordOptions) SetXCorrelationID(xCorrelationID string) *DeleteResourceRecordOptions

SetXCorrelationID : Allow user to set XCorrelationID

type DnsSvcsV1

type DnsSvcsV1 struct {
	Service *core.BaseService
}

DnsSvcsV1 : DNS Services API

Version: 1.0.0

func NewDnsSvcsV1

func NewDnsSvcsV1(options *DnsSvcsV1Options) (service *DnsSvcsV1, err error)

NewDnsSvcsV1 : constructs an instance of DnsSvcsV1 with passed in options.

func NewDnsSvcsV1UsingExternalConfig

func NewDnsSvcsV1UsingExternalConfig(options *DnsSvcsV1Options) (dnsSvcs *DnsSvcsV1, err error)

NewDnsSvcsV1UsingExternalConfig : constructs an instance of DnsSvcsV1 with passed in options and external configuration.

func (*DnsSvcsV1) Clone added in v0.12.2

func (dnsSvcs *DnsSvcsV1) Clone() *DnsSvcsV1

Clone makes a copy of "dnsSvcs" suitable for processing requests.

func (*DnsSvcsV1) CreateDnszone

func (dnsSvcs *DnsSvcsV1) CreateDnszone(createDnszoneOptions *CreateDnszoneOptions) (result *Dnszone, response *core.DetailedResponse, err error)

CreateDnszone : Create a DNS zone Create a DNS zone for a given service instance.

func (*DnsSvcsV1) CreateDnszoneWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) CreateDnszoneWithContext(ctx context.Context, createDnszoneOptions *CreateDnszoneOptions) (result *Dnszone, response *core.DetailedResponse, err error)

CreateDnszoneWithContext is an alternate form of the CreateDnszone method which supports a Context parameter

func (*DnsSvcsV1) CreateLoadBalancer

func (dnsSvcs *DnsSvcsV1) CreateLoadBalancer(createLoadBalancerOptions *CreateLoadBalancerOptions) (result *LoadBalancer, response *core.DetailedResponse, err error)

CreateLoadBalancer : Create a load balancer Create a load balancer for a given DNS zone.

func (*DnsSvcsV1) CreateLoadBalancerWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) CreateLoadBalancerWithContext(ctx context.Context, createLoadBalancerOptions *CreateLoadBalancerOptions) (result *LoadBalancer, response *core.DetailedResponse, err error)

CreateLoadBalancerWithContext is an alternate form of the CreateLoadBalancer method which supports a Context parameter

func (*DnsSvcsV1) CreateMonitor

func (dnsSvcs *DnsSvcsV1) CreateMonitor(createMonitorOptions *CreateMonitorOptions) (result *Monitor, response *core.DetailedResponse, err error)

CreateMonitor : Create a load balancer monitor Create a load balancer monitor.

func (*DnsSvcsV1) CreateMonitorWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) CreateMonitorWithContext(ctx context.Context, createMonitorOptions *CreateMonitorOptions) (result *Monitor, response *core.DetailedResponse, err error)

CreateMonitorWithContext is an alternate form of the CreateMonitor method which supports a Context parameter

func (*DnsSvcsV1) CreatePermittedNetwork

func (dnsSvcs *DnsSvcsV1) CreatePermittedNetwork(createPermittedNetworkOptions *CreatePermittedNetworkOptions) (result *PermittedNetwork, response *core.DetailedResponse, err error)

CreatePermittedNetwork : Create a permitted network Create a permitted network for a given DNS zone.

func (*DnsSvcsV1) CreatePermittedNetworkWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) CreatePermittedNetworkWithContext(ctx context.Context, createPermittedNetworkOptions *CreatePermittedNetworkOptions) (result *PermittedNetwork, response *core.DetailedResponse, err error)

CreatePermittedNetworkWithContext is an alternate form of the CreatePermittedNetwork method which supports a Context parameter

func (*DnsSvcsV1) CreatePool

func (dnsSvcs *DnsSvcsV1) CreatePool(createPoolOptions *CreatePoolOptions) (result *Pool, response *core.DetailedResponse, err error)

CreatePool : Create a load balancer pool Create a load balancer pool.

func (*DnsSvcsV1) CreatePoolWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) CreatePoolWithContext(ctx context.Context, createPoolOptions *CreatePoolOptions) (result *Pool, response *core.DetailedResponse, err error)

CreatePoolWithContext is an alternate form of the CreatePool method which supports a Context parameter

func (*DnsSvcsV1) CreateResourceRecord

func (dnsSvcs *DnsSvcsV1) CreateResourceRecord(createResourceRecordOptions *CreateResourceRecordOptions) (result *ResourceRecord, response *core.DetailedResponse, err error)

CreateResourceRecord : Create a resource record Create a resource record for a given DNS zone.

func (*DnsSvcsV1) CreateResourceRecordWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) CreateResourceRecordWithContext(ctx context.Context, createResourceRecordOptions *CreateResourceRecordOptions) (result *ResourceRecord, response *core.DetailedResponse, err error)

CreateResourceRecordWithContext is an alternate form of the CreateResourceRecord method which supports a Context parameter

func (*DnsSvcsV1) DeleteDnszone

func (dnsSvcs *DnsSvcsV1) DeleteDnszone(deleteDnszoneOptions *DeleteDnszoneOptions) (response *core.DetailedResponse, err error)

DeleteDnszone : Delete a DNS zone Delete a DNS zone.

func (*DnsSvcsV1) DeleteDnszoneWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) DeleteDnszoneWithContext(ctx context.Context, deleteDnszoneOptions *DeleteDnszoneOptions) (response *core.DetailedResponse, err error)

DeleteDnszoneWithContext is an alternate form of the DeleteDnszone method which supports a Context parameter

func (*DnsSvcsV1) DeleteLoadBalancer

func (dnsSvcs *DnsSvcsV1) DeleteLoadBalancer(deleteLoadBalancerOptions *DeleteLoadBalancerOptions) (response *core.DetailedResponse, err error)

DeleteLoadBalancer : Delete a load balancer Delete a load balancer.

func (*DnsSvcsV1) DeleteLoadBalancerWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) DeleteLoadBalancerWithContext(ctx context.Context, deleteLoadBalancerOptions *DeleteLoadBalancerOptions) (response *core.DetailedResponse, err error)

DeleteLoadBalancerWithContext is an alternate form of the DeleteLoadBalancer method which supports a Context parameter

func (*DnsSvcsV1) DeleteMonitor

func (dnsSvcs *DnsSvcsV1) DeleteMonitor(deleteMonitorOptions *DeleteMonitorOptions) (response *core.DetailedResponse, err error)

DeleteMonitor : Delete a load balancer monitor Delete a load balancer monitor.

func (*DnsSvcsV1) DeleteMonitorWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) DeleteMonitorWithContext(ctx context.Context, deleteMonitorOptions *DeleteMonitorOptions) (response *core.DetailedResponse, err error)

DeleteMonitorWithContext is an alternate form of the DeleteMonitor method which supports a Context parameter

func (*DnsSvcsV1) DeletePermittedNetwork

func (dnsSvcs *DnsSvcsV1) DeletePermittedNetwork(deletePermittedNetworkOptions *DeletePermittedNetworkOptions) (result *PermittedNetwork, response *core.DetailedResponse, err error)

DeletePermittedNetwork : Remove a permitted network Remove a permitted network.

func (*DnsSvcsV1) DeletePermittedNetworkWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) DeletePermittedNetworkWithContext(ctx context.Context, deletePermittedNetworkOptions *DeletePermittedNetworkOptions) (result *PermittedNetwork, response *core.DetailedResponse, err error)

DeletePermittedNetworkWithContext is an alternate form of the DeletePermittedNetwork method which supports a Context parameter

func (*DnsSvcsV1) DeletePool

func (dnsSvcs *DnsSvcsV1) DeletePool(deletePoolOptions *DeletePoolOptions) (response *core.DetailedResponse, err error)

DeletePool : Delete a load balancer pool Delete a load balancer pool.

func (*DnsSvcsV1) DeletePoolWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) DeletePoolWithContext(ctx context.Context, deletePoolOptions *DeletePoolOptions) (response *core.DetailedResponse, err error)

DeletePoolWithContext is an alternate form of the DeletePool method which supports a Context parameter

func (*DnsSvcsV1) DeleteResourceRecord

func (dnsSvcs *DnsSvcsV1) DeleteResourceRecord(deleteResourceRecordOptions *DeleteResourceRecordOptions) (response *core.DetailedResponse, err error)

DeleteResourceRecord : Delete a resource record Delete a resource record.

func (*DnsSvcsV1) DeleteResourceRecordWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) DeleteResourceRecordWithContext(ctx context.Context, deleteResourceRecordOptions *DeleteResourceRecordOptions) (response *core.DetailedResponse, err error)

DeleteResourceRecordWithContext is an alternate form of the DeleteResourceRecord method which supports a Context parameter

func (*DnsSvcsV1) DisableRetries added in v0.12.2

func (dnsSvcs *DnsSvcsV1) DisableRetries()

DisableRetries disables automatic retries for requests invoked for this service instance.

func (*DnsSvcsV1) EnableRetries added in v0.12.2

func (dnsSvcs *DnsSvcsV1) EnableRetries(maxRetries int, maxRetryInterval time.Duration)

EnableRetries enables automatic retries for requests invoked for this service instance. If either parameter is specified as 0, then a default value is used instead.

func (*DnsSvcsV1) GetDnszone

func (dnsSvcs *DnsSvcsV1) GetDnszone(getDnszoneOptions *GetDnszoneOptions) (result *Dnszone, response *core.DetailedResponse, err error)

GetDnszone : Get a DNS zone Get details of a DNS zone.

func (*DnsSvcsV1) GetDnszoneWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) GetDnszoneWithContext(ctx context.Context, getDnszoneOptions *GetDnszoneOptions) (result *Dnszone, response *core.DetailedResponse, err error)

GetDnszoneWithContext is an alternate form of the GetDnszone method which supports a Context parameter

func (*DnsSvcsV1) GetEnableGzipCompression added in v0.12.2

func (dnsSvcs *DnsSvcsV1) GetEnableGzipCompression() bool

GetEnableGzipCompression returns the service's EnableGzipCompression field

func (*DnsSvcsV1) GetLoadBalancer

func (dnsSvcs *DnsSvcsV1) GetLoadBalancer(getLoadBalancerOptions *GetLoadBalancerOptions) (result *LoadBalancer, response *core.DetailedResponse, err error)

GetLoadBalancer : Get a load balancer Get details of a load balancer.

func (*DnsSvcsV1) GetLoadBalancerWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) GetLoadBalancerWithContext(ctx context.Context, getLoadBalancerOptions *GetLoadBalancerOptions) (result *LoadBalancer, response *core.DetailedResponse, err error)

GetLoadBalancerWithContext is an alternate form of the GetLoadBalancer method which supports a Context parameter

func (*DnsSvcsV1) GetMonitor

func (dnsSvcs *DnsSvcsV1) GetMonitor(getMonitorOptions *GetMonitorOptions) (result *Monitor, response *core.DetailedResponse, err error)

GetMonitor : Get a load balancer monitor Get details of a load balancer monitor.

func (*DnsSvcsV1) GetMonitorWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) GetMonitorWithContext(ctx context.Context, getMonitorOptions *GetMonitorOptions) (result *Monitor, response *core.DetailedResponse, err error)

GetMonitorWithContext is an alternate form of the GetMonitor method which supports a Context parameter

func (*DnsSvcsV1) GetPermittedNetwork

func (dnsSvcs *DnsSvcsV1) GetPermittedNetwork(getPermittedNetworkOptions *GetPermittedNetworkOptions) (result *PermittedNetwork, response *core.DetailedResponse, err error)

GetPermittedNetwork : Get a permitted network Get details of a permitted network.

func (*DnsSvcsV1) GetPermittedNetworkWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) GetPermittedNetworkWithContext(ctx context.Context, getPermittedNetworkOptions *GetPermittedNetworkOptions) (result *PermittedNetwork, response *core.DetailedResponse, err error)

GetPermittedNetworkWithContext is an alternate form of the GetPermittedNetwork method which supports a Context parameter

func (*DnsSvcsV1) GetPool

func (dnsSvcs *DnsSvcsV1) GetPool(getPoolOptions *GetPoolOptions) (result *Pool, response *core.DetailedResponse, err error)

GetPool : Get a load balancer pool Get details of a load balancer pool.

func (*DnsSvcsV1) GetPoolWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) GetPoolWithContext(ctx context.Context, getPoolOptions *GetPoolOptions) (result *Pool, response *core.DetailedResponse, err error)

GetPoolWithContext is an alternate form of the GetPool method which supports a Context parameter

func (*DnsSvcsV1) GetResourceRecord

func (dnsSvcs *DnsSvcsV1) GetResourceRecord(getResourceRecordOptions *GetResourceRecordOptions) (result *ResourceRecord, response *core.DetailedResponse, err error)

GetResourceRecord : Get a resource record Get details of a resource record.

func (*DnsSvcsV1) GetResourceRecordWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) GetResourceRecordWithContext(ctx context.Context, getResourceRecordOptions *GetResourceRecordOptions) (result *ResourceRecord, response *core.DetailedResponse, err error)

GetResourceRecordWithContext is an alternate form of the GetResourceRecord method which supports a Context parameter

func (*DnsSvcsV1) GetServiceURL added in v0.12.2

func (dnsSvcs *DnsSvcsV1) GetServiceURL() string

GetServiceURL returns the service URL

func (*DnsSvcsV1) ListDnszones

func (dnsSvcs *DnsSvcsV1) ListDnszones(listDnszonesOptions *ListDnszonesOptions) (result *ListDnszones, response *core.DetailedResponse, err error)

ListDnszones : List DNS zones List the DNS zones for a given service instance.

func (*DnsSvcsV1) ListDnszonesWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) ListDnszonesWithContext(ctx context.Context, listDnszonesOptions *ListDnszonesOptions) (result *ListDnszones, response *core.DetailedResponse, err error)

ListDnszonesWithContext is an alternate form of the ListDnszones method which supports a Context parameter

func (*DnsSvcsV1) ListLoadBalancers

func (dnsSvcs *DnsSvcsV1) ListLoadBalancers(listLoadBalancersOptions *ListLoadBalancersOptions) (result *ListLoadBalancers, response *core.DetailedResponse, err error)

ListLoadBalancers : List load balancers List the Global Load Balancers for a given DNS zone.

func (*DnsSvcsV1) ListLoadBalancersWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) ListLoadBalancersWithContext(ctx context.Context, listLoadBalancersOptions *ListLoadBalancersOptions) (result *ListLoadBalancers, response *core.DetailedResponse, err error)

ListLoadBalancersWithContext is an alternate form of the ListLoadBalancers method which supports a Context parameter

func (*DnsSvcsV1) ListMonitors

func (dnsSvcs *DnsSvcsV1) ListMonitors(listMonitorsOptions *ListMonitorsOptions) (result *ListMonitors, response *core.DetailedResponse, err error)

ListMonitors : List load balancer monitors List the load balancer monitors.

func (*DnsSvcsV1) ListMonitorsWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) ListMonitorsWithContext(ctx context.Context, listMonitorsOptions *ListMonitorsOptions) (result *ListMonitors, response *core.DetailedResponse, err error)

ListMonitorsWithContext is an alternate form of the ListMonitors method which supports a Context parameter

func (*DnsSvcsV1) ListPermittedNetworks

func (dnsSvcs *DnsSvcsV1) ListPermittedNetworks(listPermittedNetworksOptions *ListPermittedNetworksOptions) (result *ListPermittedNetworks, response *core.DetailedResponse, err error)

ListPermittedNetworks : List permitted networks List the permitted networks for a given DNS zone.

func (*DnsSvcsV1) ListPermittedNetworksWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) ListPermittedNetworksWithContext(ctx context.Context, listPermittedNetworksOptions *ListPermittedNetworksOptions) (result *ListPermittedNetworks, response *core.DetailedResponse, err error)

ListPermittedNetworksWithContext is an alternate form of the ListPermittedNetworks method which supports a Context parameter

func (*DnsSvcsV1) ListPools

func (dnsSvcs *DnsSvcsV1) ListPools(listPoolsOptions *ListPoolsOptions) (result *ListPools, response *core.DetailedResponse, err error)

ListPools : List load balancer pools List the load balancer pools.

func (*DnsSvcsV1) ListPoolsWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) ListPoolsWithContext(ctx context.Context, listPoolsOptions *ListPoolsOptions) (result *ListPools, response *core.DetailedResponse, err error)

ListPoolsWithContext is an alternate form of the ListPools method which supports a Context parameter

func (*DnsSvcsV1) ListResourceRecords

func (dnsSvcs *DnsSvcsV1) ListResourceRecords(listResourceRecordsOptions *ListResourceRecordsOptions) (result *ListResourceRecords, response *core.DetailedResponse, err error)

ListResourceRecords : List Resource Records List the Resource Records for a given DNS zone.

func (*DnsSvcsV1) ListResourceRecordsWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) ListResourceRecordsWithContext(ctx context.Context, listResourceRecordsOptions *ListResourceRecordsOptions) (result *ListResourceRecords, response *core.DetailedResponse, err error)

ListResourceRecordsWithContext is an alternate form of the ListResourceRecords method which supports a Context parameter

func (*DnsSvcsV1) NewCreateDnszoneOptions

func (*DnsSvcsV1) NewCreateDnszoneOptions(instanceID string) *CreateDnszoneOptions

NewCreateDnszoneOptions : Instantiate CreateDnszoneOptions

func (*DnsSvcsV1) NewCreateLoadBalancerOptions

func (*DnsSvcsV1) NewCreateLoadBalancerOptions(instanceID string, dnszoneID string) *CreateLoadBalancerOptions

NewCreateLoadBalancerOptions : Instantiate CreateLoadBalancerOptions

func (*DnsSvcsV1) NewCreateMonitorOptions

func (*DnsSvcsV1) NewCreateMonitorOptions(instanceID string) *CreateMonitorOptions

NewCreateMonitorOptions : Instantiate CreateMonitorOptions

func (*DnsSvcsV1) NewCreatePermittedNetworkOptions

func (*DnsSvcsV1) NewCreatePermittedNetworkOptions(instanceID string, dnszoneID string) *CreatePermittedNetworkOptions

NewCreatePermittedNetworkOptions : Instantiate CreatePermittedNetworkOptions

func (*DnsSvcsV1) NewCreatePoolOptions

func (*DnsSvcsV1) NewCreatePoolOptions(instanceID string) *CreatePoolOptions

NewCreatePoolOptions : Instantiate CreatePoolOptions

func (*DnsSvcsV1) NewCreateResourceRecordOptions

func (*DnsSvcsV1) NewCreateResourceRecordOptions(instanceID string, dnszoneID string) *CreateResourceRecordOptions

NewCreateResourceRecordOptions : Instantiate CreateResourceRecordOptions

func (*DnsSvcsV1) NewDeleteDnszoneOptions

func (*DnsSvcsV1) NewDeleteDnszoneOptions(instanceID string, dnszoneID string) *DeleteDnszoneOptions

NewDeleteDnszoneOptions : Instantiate DeleteDnszoneOptions

func (*DnsSvcsV1) NewDeleteLoadBalancerOptions

func (*DnsSvcsV1) NewDeleteLoadBalancerOptions(instanceID string, dnszoneID string, lbID string) *DeleteLoadBalancerOptions

NewDeleteLoadBalancerOptions : Instantiate DeleteLoadBalancerOptions

func (*DnsSvcsV1) NewDeleteMonitorOptions

func (*DnsSvcsV1) NewDeleteMonitorOptions(instanceID string, monitorID string) *DeleteMonitorOptions

NewDeleteMonitorOptions : Instantiate DeleteMonitorOptions

func (*DnsSvcsV1) NewDeletePermittedNetworkOptions

func (*DnsSvcsV1) NewDeletePermittedNetworkOptions(instanceID string, dnszoneID string, permittedNetworkID string) *DeletePermittedNetworkOptions

NewDeletePermittedNetworkOptions : Instantiate DeletePermittedNetworkOptions

func (*DnsSvcsV1) NewDeletePoolOptions

func (*DnsSvcsV1) NewDeletePoolOptions(instanceID string, poolID string) *DeletePoolOptions

NewDeletePoolOptions : Instantiate DeletePoolOptions

func (*DnsSvcsV1) NewDeleteResourceRecordOptions

func (*DnsSvcsV1) NewDeleteResourceRecordOptions(instanceID string, dnszoneID string, recordID string) *DeleteResourceRecordOptions

NewDeleteResourceRecordOptions : Instantiate DeleteResourceRecordOptions

func (*DnsSvcsV1) NewGetDnszoneOptions

func (*DnsSvcsV1) NewGetDnszoneOptions(instanceID string, dnszoneID string) *GetDnszoneOptions

NewGetDnszoneOptions : Instantiate GetDnszoneOptions

func (*DnsSvcsV1) NewGetLoadBalancerOptions

func (*DnsSvcsV1) NewGetLoadBalancerOptions(instanceID string, dnszoneID string, lbID string) *GetLoadBalancerOptions

NewGetLoadBalancerOptions : Instantiate GetLoadBalancerOptions

func (*DnsSvcsV1) NewGetMonitorOptions

func (*DnsSvcsV1) NewGetMonitorOptions(instanceID string, monitorID string) *GetMonitorOptions

NewGetMonitorOptions : Instantiate GetMonitorOptions

func (*DnsSvcsV1) NewGetPermittedNetworkOptions

func (*DnsSvcsV1) NewGetPermittedNetworkOptions(instanceID string, dnszoneID string, permittedNetworkID string) *GetPermittedNetworkOptions

NewGetPermittedNetworkOptions : Instantiate GetPermittedNetworkOptions

func (*DnsSvcsV1) NewGetPoolOptions

func (*DnsSvcsV1) NewGetPoolOptions(instanceID string, poolID string) *GetPoolOptions

NewGetPoolOptions : Instantiate GetPoolOptions

func (*DnsSvcsV1) NewGetResourceRecordOptions

func (*DnsSvcsV1) NewGetResourceRecordOptions(instanceID string, dnszoneID string, recordID string) *GetResourceRecordOptions

NewGetResourceRecordOptions : Instantiate GetResourceRecordOptions

func (*DnsSvcsV1) NewHealthcheckHeader

func (*DnsSvcsV1) NewHealthcheckHeader(name string, value []string) (model *HealthcheckHeader, err error)

NewHealthcheckHeader : Instantiate HealthcheckHeader (Generic Model Constructor)

func (*DnsSvcsV1) NewListDnszonesOptions

func (*DnsSvcsV1) NewListDnszonesOptions(instanceID string) *ListDnszonesOptions

NewListDnszonesOptions : Instantiate ListDnszonesOptions

func (*DnsSvcsV1) NewListLoadBalancersOptions

func (*DnsSvcsV1) NewListLoadBalancersOptions(instanceID string, dnszoneID string) *ListLoadBalancersOptions

NewListLoadBalancersOptions : Instantiate ListLoadBalancersOptions

func (*DnsSvcsV1) NewListMonitorsOptions

func (*DnsSvcsV1) NewListMonitorsOptions(instanceID string) *ListMonitorsOptions

NewListMonitorsOptions : Instantiate ListMonitorsOptions

func (*DnsSvcsV1) NewListPermittedNetworksOptions

func (*DnsSvcsV1) NewListPermittedNetworksOptions(instanceID string, dnszoneID string) *ListPermittedNetworksOptions

NewListPermittedNetworksOptions : Instantiate ListPermittedNetworksOptions

func (*DnsSvcsV1) NewListPoolsOptions

func (*DnsSvcsV1) NewListPoolsOptions(instanceID string) *ListPoolsOptions

NewListPoolsOptions : Instantiate ListPoolsOptions

func (*DnsSvcsV1) NewListResourceRecordsOptions

func (*DnsSvcsV1) NewListResourceRecordsOptions(instanceID string, dnszoneID string) *ListResourceRecordsOptions

NewListResourceRecordsOptions : Instantiate ListResourceRecordsOptions

func (*DnsSvcsV1) NewPermittedNetworkVpc

func (*DnsSvcsV1) NewPermittedNetworkVpc(vpcCrn string) (model *PermittedNetworkVpc, err error)

NewPermittedNetworkVpc : Instantiate PermittedNetworkVpc (Generic Model Constructor)

func (*DnsSvcsV1) NewResourceRecordInputRdataRdataARecord

func (*DnsSvcsV1) NewResourceRecordInputRdataRdataARecord(ip string) (model *ResourceRecordInputRdataRdataARecord, err error)

NewResourceRecordInputRdataRdataARecord : Instantiate ResourceRecordInputRdataRdataARecord (Generic Model Constructor)

func (*DnsSvcsV1) NewResourceRecordInputRdataRdataAaaaRecord

func (*DnsSvcsV1) NewResourceRecordInputRdataRdataAaaaRecord(ip string) (model *ResourceRecordInputRdataRdataAaaaRecord, err error)

NewResourceRecordInputRdataRdataAaaaRecord : Instantiate ResourceRecordInputRdataRdataAaaaRecord (Generic Model Constructor)

func (*DnsSvcsV1) NewResourceRecordInputRdataRdataCnameRecord

func (*DnsSvcsV1) NewResourceRecordInputRdataRdataCnameRecord(cname string) (model *ResourceRecordInputRdataRdataCnameRecord, err error)

NewResourceRecordInputRdataRdataCnameRecord : Instantiate ResourceRecordInputRdataRdataCnameRecord (Generic Model Constructor)

func (*DnsSvcsV1) NewResourceRecordInputRdataRdataMxRecord

func (*DnsSvcsV1) NewResourceRecordInputRdataRdataMxRecord(exchange string, preference int64) (model *ResourceRecordInputRdataRdataMxRecord, err error)

NewResourceRecordInputRdataRdataMxRecord : Instantiate ResourceRecordInputRdataRdataMxRecord (Generic Model Constructor)

func (*DnsSvcsV1) NewResourceRecordInputRdataRdataPtrRecord

func (*DnsSvcsV1) NewResourceRecordInputRdataRdataPtrRecord(ptrdname string) (model *ResourceRecordInputRdataRdataPtrRecord, err error)

NewResourceRecordInputRdataRdataPtrRecord : Instantiate ResourceRecordInputRdataRdataPtrRecord (Generic Model Constructor)

func (*DnsSvcsV1) NewResourceRecordInputRdataRdataSrvRecord

func (*DnsSvcsV1) NewResourceRecordInputRdataRdataSrvRecord(port int64, priority int64, target string, weight int64) (model *ResourceRecordInputRdataRdataSrvRecord, err error)

NewResourceRecordInputRdataRdataSrvRecord : Instantiate ResourceRecordInputRdataRdataSrvRecord (Generic Model Constructor)

func (*DnsSvcsV1) NewResourceRecordInputRdataRdataTxtRecord

func (*DnsSvcsV1) NewResourceRecordInputRdataRdataTxtRecord(text string) (model *ResourceRecordInputRdataRdataTxtRecord, err error)

NewResourceRecordInputRdataRdataTxtRecord : Instantiate ResourceRecordInputRdataRdataTxtRecord (Generic Model Constructor)

func (*DnsSvcsV1) NewResourceRecordUpdateInputRdataRdataARecord

func (*DnsSvcsV1) NewResourceRecordUpdateInputRdataRdataARecord(ip string) (model *ResourceRecordUpdateInputRdataRdataARecord, err error)

NewResourceRecordUpdateInputRdataRdataARecord : Instantiate ResourceRecordUpdateInputRdataRdataARecord (Generic Model Constructor)

func (*DnsSvcsV1) NewResourceRecordUpdateInputRdataRdataAaaaRecord

func (*DnsSvcsV1) NewResourceRecordUpdateInputRdataRdataAaaaRecord(ip string) (model *ResourceRecordUpdateInputRdataRdataAaaaRecord, err error)

NewResourceRecordUpdateInputRdataRdataAaaaRecord : Instantiate ResourceRecordUpdateInputRdataRdataAaaaRecord (Generic Model Constructor)

func (*DnsSvcsV1) NewResourceRecordUpdateInputRdataRdataCnameRecord

func (*DnsSvcsV1) NewResourceRecordUpdateInputRdataRdataCnameRecord(cname string) (model *ResourceRecordUpdateInputRdataRdataCnameRecord, err error)

NewResourceRecordUpdateInputRdataRdataCnameRecord : Instantiate ResourceRecordUpdateInputRdataRdataCnameRecord (Generic Model Constructor)

func (*DnsSvcsV1) NewResourceRecordUpdateInputRdataRdataMxRecord

func (*DnsSvcsV1) NewResourceRecordUpdateInputRdataRdataMxRecord(exchange string, preference int64) (model *ResourceRecordUpdateInputRdataRdataMxRecord, err error)

NewResourceRecordUpdateInputRdataRdataMxRecord : Instantiate ResourceRecordUpdateInputRdataRdataMxRecord (Generic Model Constructor)

func (*DnsSvcsV1) NewResourceRecordUpdateInputRdataRdataPtrRecord

func (*DnsSvcsV1) NewResourceRecordUpdateInputRdataRdataPtrRecord(ptrdname string) (model *ResourceRecordUpdateInputRdataRdataPtrRecord, err error)

NewResourceRecordUpdateInputRdataRdataPtrRecord : Instantiate ResourceRecordUpdateInputRdataRdataPtrRecord (Generic Model Constructor)

func (*DnsSvcsV1) NewResourceRecordUpdateInputRdataRdataSrvRecord

func (*DnsSvcsV1) NewResourceRecordUpdateInputRdataRdataSrvRecord(port int64, priority int64, target string, weight int64) (model *ResourceRecordUpdateInputRdataRdataSrvRecord, err error)

NewResourceRecordUpdateInputRdataRdataSrvRecord : Instantiate ResourceRecordUpdateInputRdataRdataSrvRecord (Generic Model Constructor)

func (*DnsSvcsV1) NewResourceRecordUpdateInputRdataRdataTxtRecord

func (*DnsSvcsV1) NewResourceRecordUpdateInputRdataRdataTxtRecord(text string) (model *ResourceRecordUpdateInputRdataRdataTxtRecord, err error)

NewResourceRecordUpdateInputRdataRdataTxtRecord : Instantiate ResourceRecordUpdateInputRdataRdataTxtRecord (Generic Model Constructor)

func (*DnsSvcsV1) NewUpdateDnszoneOptions

func (*DnsSvcsV1) NewUpdateDnszoneOptions(instanceID string, dnszoneID string) *UpdateDnszoneOptions

NewUpdateDnszoneOptions : Instantiate UpdateDnszoneOptions

func (*DnsSvcsV1) NewUpdateLoadBalancerOptions

func (*DnsSvcsV1) NewUpdateLoadBalancerOptions(instanceID string, dnszoneID string, lbID string) *UpdateLoadBalancerOptions

NewUpdateLoadBalancerOptions : Instantiate UpdateLoadBalancerOptions

func (*DnsSvcsV1) NewUpdateMonitorOptions

func (*DnsSvcsV1) NewUpdateMonitorOptions(instanceID string, monitorID string) *UpdateMonitorOptions

NewUpdateMonitorOptions : Instantiate UpdateMonitorOptions

func (*DnsSvcsV1) NewUpdatePoolOptions

func (*DnsSvcsV1) NewUpdatePoolOptions(instanceID string, poolID string) *UpdatePoolOptions

NewUpdatePoolOptions : Instantiate UpdatePoolOptions

func (*DnsSvcsV1) NewUpdateResourceRecordOptions

func (*DnsSvcsV1) NewUpdateResourceRecordOptions(instanceID string, dnszoneID string, recordID string) *UpdateResourceRecordOptions

NewUpdateResourceRecordOptions : Instantiate UpdateResourceRecordOptions

func (*DnsSvcsV1) SetDefaultHeaders added in v0.12.2

func (dnsSvcs *DnsSvcsV1) SetDefaultHeaders(headers http.Header)

SetDefaultHeaders sets HTTP headers to be sent in every request

func (*DnsSvcsV1) SetEnableGzipCompression added in v0.12.2

func (dnsSvcs *DnsSvcsV1) SetEnableGzipCompression(enableGzip bool)

SetEnableGzipCompression sets the service's EnableGzipCompression field

func (*DnsSvcsV1) SetServiceURL

func (dnsSvcs *DnsSvcsV1) SetServiceURL(url string) error

SetServiceURL sets the service URL

func (*DnsSvcsV1) UpdateDnszone

func (dnsSvcs *DnsSvcsV1) UpdateDnszone(updateDnszoneOptions *UpdateDnszoneOptions) (result *Dnszone, response *core.DetailedResponse, err error)

UpdateDnszone : Update the properties of a DNS zone Update the properties of a DNS zone.

func (*DnsSvcsV1) UpdateDnszoneWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) UpdateDnszoneWithContext(ctx context.Context, updateDnszoneOptions *UpdateDnszoneOptions) (result *Dnszone, response *core.DetailedResponse, err error)

UpdateDnszoneWithContext is an alternate form of the UpdateDnszone method which supports a Context parameter

func (*DnsSvcsV1) UpdateLoadBalancer

func (dnsSvcs *DnsSvcsV1) UpdateLoadBalancer(updateLoadBalancerOptions *UpdateLoadBalancerOptions) (result *LoadBalancer, response *core.DetailedResponse, err error)

UpdateLoadBalancer : Update the properties of a load balancer Update the properties of a load balancer.

func (*DnsSvcsV1) UpdateLoadBalancerWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) UpdateLoadBalancerWithContext(ctx context.Context, updateLoadBalancerOptions *UpdateLoadBalancerOptions) (result *LoadBalancer, response *core.DetailedResponse, err error)

UpdateLoadBalancerWithContext is an alternate form of the UpdateLoadBalancer method which supports a Context parameter

func (*DnsSvcsV1) UpdateMonitor

func (dnsSvcs *DnsSvcsV1) UpdateMonitor(updateMonitorOptions *UpdateMonitorOptions) (result *Monitor, response *core.DetailedResponse, err error)

UpdateMonitor : Update the properties of a load balancer monitor Update the properties of a load balancer monitor.

func (*DnsSvcsV1) UpdateMonitorWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) UpdateMonitorWithContext(ctx context.Context, updateMonitorOptions *UpdateMonitorOptions) (result *Monitor, response *core.DetailedResponse, err error)

UpdateMonitorWithContext is an alternate form of the UpdateMonitor method which supports a Context parameter

func (*DnsSvcsV1) UpdatePool

func (dnsSvcs *DnsSvcsV1) UpdatePool(updatePoolOptions *UpdatePoolOptions) (result *Pool, response *core.DetailedResponse, err error)

UpdatePool : Update the properties of a load balancer pool Update the properties of a load balancer pool.

func (*DnsSvcsV1) UpdatePoolWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) UpdatePoolWithContext(ctx context.Context, updatePoolOptions *UpdatePoolOptions) (result *Pool, response *core.DetailedResponse, err error)

UpdatePoolWithContext is an alternate form of the UpdatePool method which supports a Context parameter

func (*DnsSvcsV1) UpdateResourceRecord

func (dnsSvcs *DnsSvcsV1) UpdateResourceRecord(updateResourceRecordOptions *UpdateResourceRecordOptions) (result *ResourceRecord, response *core.DetailedResponse, err error)

UpdateResourceRecord : Update the properties of a resource record Update the properties of a resource record.

func (*DnsSvcsV1) UpdateResourceRecordWithContext added in v0.12.2

func (dnsSvcs *DnsSvcsV1) UpdateResourceRecordWithContext(ctx context.Context, updateResourceRecordOptions *UpdateResourceRecordOptions) (result *ResourceRecord, response *core.DetailedResponse, err error)

UpdateResourceRecordWithContext is an alternate form of the UpdateResourceRecord method which supports a Context parameter

type DnsSvcsV1Options

type DnsSvcsV1Options struct {
	ServiceName   string
	URL           string
	Authenticator core.Authenticator
}

DnsSvcsV1Options : Service options

type Dnszone

type Dnszone struct {
	// Unique identifier of a DNS zone.
	ID *string `json:"id,omitempty"`

	// the time when a DNS zone is created.
	CreatedOn *string `json:"created_on,omitempty"`

	// the recent time when a DNS zone is modified.
	ModifiedOn *string `json:"modified_on,omitempty"`

	// Unique identifier of a service instance.
	InstanceID *string `json:"instance_id,omitempty"`

	// Name of DNS zone.
	Name *string `json:"name,omitempty"`

	// The text describing the purpose of a DNS zone.
	Description *string `json:"description,omitempty"`

	// State of DNS zone.
	State *string `json:"state,omitempty"`

	// The label of a DNS zone.
	Label *string `json:"label,omitempty"`
}

Dnszone : DNS zone details.

type FirstHref

type FirstHref struct {
	// href.
	Href *string `json:"href,omitempty"`
}

FirstHref : href.

type GetDnszoneOptions

type GetDnszoneOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a DNS zone.
	DnszoneID *string `json:"dnszone_id" validate:"required,ne="`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

GetDnszoneOptions : The GetDnszone options.

func (*GetDnszoneOptions) SetDnszoneID

func (options *GetDnszoneOptions) SetDnszoneID(dnszoneID string) *GetDnszoneOptions

SetDnszoneID : Allow user to set DnszoneID

func (*GetDnszoneOptions) SetHeaders

func (options *GetDnszoneOptions) SetHeaders(param map[string]string) *GetDnszoneOptions

SetHeaders : Allow user to set Headers

func (*GetDnszoneOptions) SetInstanceID

func (options *GetDnszoneOptions) SetInstanceID(instanceID string) *GetDnszoneOptions

SetInstanceID : Allow user to set InstanceID

func (*GetDnszoneOptions) SetXCorrelationID

func (options *GetDnszoneOptions) SetXCorrelationID(xCorrelationID string) *GetDnszoneOptions

SetXCorrelationID : Allow user to set XCorrelationID

type GetLoadBalancerOptions

type GetLoadBalancerOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a DNS zone.
	DnszoneID *string `json:"dnszone_id" validate:"required,ne="`

	// The unique identifier of a load balancer.
	LbID *string `json:"lb_id" validate:"required,ne="`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

GetLoadBalancerOptions : The GetLoadBalancer options.

func (*GetLoadBalancerOptions) SetDnszoneID

func (options *GetLoadBalancerOptions) SetDnszoneID(dnszoneID string) *GetLoadBalancerOptions

SetDnszoneID : Allow user to set DnszoneID

func (*GetLoadBalancerOptions) SetHeaders

func (options *GetLoadBalancerOptions) SetHeaders(param map[string]string) *GetLoadBalancerOptions

SetHeaders : Allow user to set Headers

func (*GetLoadBalancerOptions) SetInstanceID

func (options *GetLoadBalancerOptions) SetInstanceID(instanceID string) *GetLoadBalancerOptions

SetInstanceID : Allow user to set InstanceID

func (*GetLoadBalancerOptions) SetLbID

func (options *GetLoadBalancerOptions) SetLbID(lbID string) *GetLoadBalancerOptions

SetLbID : Allow user to set LbID

func (*GetLoadBalancerOptions) SetXCorrelationID

func (options *GetLoadBalancerOptions) SetXCorrelationID(xCorrelationID string) *GetLoadBalancerOptions

SetXCorrelationID : Allow user to set XCorrelationID

type GetMonitorOptions

type GetMonitorOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a load balancer monitor.
	MonitorID *string `json:"monitor_id" validate:"required,ne="`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

GetMonitorOptions : The GetMonitor options.

func (*GetMonitorOptions) SetHeaders

func (options *GetMonitorOptions) SetHeaders(param map[string]string) *GetMonitorOptions

SetHeaders : Allow user to set Headers

func (*GetMonitorOptions) SetInstanceID

func (options *GetMonitorOptions) SetInstanceID(instanceID string) *GetMonitorOptions

SetInstanceID : Allow user to set InstanceID

func (*GetMonitorOptions) SetMonitorID

func (options *GetMonitorOptions) SetMonitorID(monitorID string) *GetMonitorOptions

SetMonitorID : Allow user to set MonitorID

func (*GetMonitorOptions) SetXCorrelationID

func (options *GetMonitorOptions) SetXCorrelationID(xCorrelationID string) *GetMonitorOptions

SetXCorrelationID : Allow user to set XCorrelationID

type GetPermittedNetworkOptions

type GetPermittedNetworkOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a DNS zone.
	DnszoneID *string `json:"dnszone_id" validate:"required,ne="`

	// The unique identifier of a permitted network.
	PermittedNetworkID *string `json:"permitted_network_id" validate:"required,ne="`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

GetPermittedNetworkOptions : The GetPermittedNetwork options.

func (*GetPermittedNetworkOptions) SetDnszoneID

func (options *GetPermittedNetworkOptions) SetDnszoneID(dnszoneID string) *GetPermittedNetworkOptions

SetDnszoneID : Allow user to set DnszoneID

func (*GetPermittedNetworkOptions) SetHeaders

func (options *GetPermittedNetworkOptions) SetHeaders(param map[string]string) *GetPermittedNetworkOptions

SetHeaders : Allow user to set Headers

func (*GetPermittedNetworkOptions) SetInstanceID

func (options *GetPermittedNetworkOptions) SetInstanceID(instanceID string) *GetPermittedNetworkOptions

SetInstanceID : Allow user to set InstanceID

func (*GetPermittedNetworkOptions) SetPermittedNetworkID

func (options *GetPermittedNetworkOptions) SetPermittedNetworkID(permittedNetworkID string) *GetPermittedNetworkOptions

SetPermittedNetworkID : Allow user to set PermittedNetworkID

func (*GetPermittedNetworkOptions) SetXCorrelationID

func (options *GetPermittedNetworkOptions) SetXCorrelationID(xCorrelationID string) *GetPermittedNetworkOptions

SetXCorrelationID : Allow user to set XCorrelationID

type GetPoolOptions

type GetPoolOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a load balancer pool.
	PoolID *string `json:"pool_id" validate:"required,ne="`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

GetPoolOptions : The GetPool options.

func (*GetPoolOptions) SetHeaders

func (options *GetPoolOptions) SetHeaders(param map[string]string) *GetPoolOptions

SetHeaders : Allow user to set Headers

func (*GetPoolOptions) SetInstanceID

func (options *GetPoolOptions) SetInstanceID(instanceID string) *GetPoolOptions

SetInstanceID : Allow user to set InstanceID

func (*GetPoolOptions) SetPoolID

func (options *GetPoolOptions) SetPoolID(poolID string) *GetPoolOptions

SetPoolID : Allow user to set PoolID

func (*GetPoolOptions) SetXCorrelationID

func (options *GetPoolOptions) SetXCorrelationID(xCorrelationID string) *GetPoolOptions

SetXCorrelationID : Allow user to set XCorrelationID

type GetResourceRecordOptions

type GetResourceRecordOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a DNS zone.
	DnszoneID *string `json:"dnszone_id" validate:"required,ne="`

	// The unique identifier of a resource record.
	RecordID *string `json:"record_id" validate:"required,ne="`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

GetResourceRecordOptions : The GetResourceRecord options.

func (*GetResourceRecordOptions) SetDnszoneID

func (options *GetResourceRecordOptions) SetDnszoneID(dnszoneID string) *GetResourceRecordOptions

SetDnszoneID : Allow user to set DnszoneID

func (*GetResourceRecordOptions) SetHeaders

func (options *GetResourceRecordOptions) SetHeaders(param map[string]string) *GetResourceRecordOptions

SetHeaders : Allow user to set Headers

func (*GetResourceRecordOptions) SetInstanceID

func (options *GetResourceRecordOptions) SetInstanceID(instanceID string) *GetResourceRecordOptions

SetInstanceID : Allow user to set InstanceID

func (*GetResourceRecordOptions) SetRecordID

func (options *GetResourceRecordOptions) SetRecordID(recordID string) *GetResourceRecordOptions

SetRecordID : Allow user to set RecordID

func (*GetResourceRecordOptions) SetXCorrelationID

func (options *GetResourceRecordOptions) SetXCorrelationID(xCorrelationID string) *GetResourceRecordOptions

SetXCorrelationID : Allow user to set XCorrelationID

type HealthcheckHeader

type HealthcheckHeader struct {
	// The name of HTTP request header.
	Name *string `json:"name" validate:"required"`

	// The value of HTTP request header.
	Value []string `json:"value" validate:"required"`
}

HealthcheckHeader : The HTTP header of health check request.

type ListDnszones

type ListDnszones struct {
	// An array of DNS zones.
	Dnszones []Dnszone `json:"dnszones" validate:"required"`

	// Specify how many DNS zones to skip over, the default value is 0.
	Offset *int64 `json:"offset" validate:"required"`

	// Specify how many DNS zones are returned, the default value is 10.
	Limit *int64 `json:"limit" validate:"required"`

	// Total number of DNS zones.
	TotalCount *int64 `json:"total_count" validate:"required"`

	// href.
	First *FirstHref `json:"first" validate:"required"`

	// href.
	Next *NextHref `json:"next,omitempty"`
}

ListDnszones : List DNS zones response.

type ListDnszonesOptions

type ListDnszonesOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Specify how many resource records to skip over, the default value is 0.
	Offset *int64 `json:"offset,omitempty"`

	// Specify how many resource records are returned, the default value is 200.
	Limit *int64 `json:"limit,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

ListDnszonesOptions : The ListDnszones options.

func (*ListDnszonesOptions) SetHeaders

func (options *ListDnszonesOptions) SetHeaders(param map[string]string) *ListDnszonesOptions

SetHeaders : Allow user to set Headers

func (*ListDnszonesOptions) SetInstanceID

func (options *ListDnszonesOptions) SetInstanceID(instanceID string) *ListDnszonesOptions

SetInstanceID : Allow user to set InstanceID

func (*ListDnszonesOptions) SetLimit

func (options *ListDnszonesOptions) SetLimit(limit int64) *ListDnszonesOptions

SetLimit : Allow user to set Limit

func (*ListDnszonesOptions) SetOffset

func (options *ListDnszonesOptions) SetOffset(offset int64) *ListDnszonesOptions

SetOffset : Allow user to set Offset

func (*ListDnszonesOptions) SetXCorrelationID

func (options *ListDnszonesOptions) SetXCorrelationID(xCorrelationID string) *ListDnszonesOptions

SetXCorrelationID : Allow user to set XCorrelationID

type ListLoadBalancers

type ListLoadBalancers struct {
	// An array of Global Load Balancers.
	LoadBalancers []LoadBalancer `json:"load_balancers" validate:"required"`

	// Page number.
	Offset *int64 `json:"offset" validate:"required"`

	// Number of Global Load Balancers per page.
	Limit *int64 `json:"limit" validate:"required"`

	// Number of Global Load Balancers.
	Count *int64 `json:"count" validate:"required"`

	// Total number of Global Load Balancers.
	TotalCount *int64 `json:"total_count" validate:"required"`

	// href.
	First *FirstHref `json:"first" validate:"required"`

	// href.
	Next *NextHref `json:"next" validate:"required"`
}

ListLoadBalancers : List Global Load Balancers response.

type ListLoadBalancersOptions

type ListLoadBalancersOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a DNS zone.
	DnszoneID *string `json:"dnszone_id" validate:"required,ne="`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

ListLoadBalancersOptions : The ListLoadBalancers options.

func (*ListLoadBalancersOptions) SetDnszoneID

func (options *ListLoadBalancersOptions) SetDnszoneID(dnszoneID string) *ListLoadBalancersOptions

SetDnszoneID : Allow user to set DnszoneID

func (*ListLoadBalancersOptions) SetHeaders

func (options *ListLoadBalancersOptions) SetHeaders(param map[string]string) *ListLoadBalancersOptions

SetHeaders : Allow user to set Headers

func (*ListLoadBalancersOptions) SetInstanceID

func (options *ListLoadBalancersOptions) SetInstanceID(instanceID string) *ListLoadBalancersOptions

SetInstanceID : Allow user to set InstanceID

func (*ListLoadBalancersOptions) SetXCorrelationID

func (options *ListLoadBalancersOptions) SetXCorrelationID(xCorrelationID string) *ListLoadBalancersOptions

SetXCorrelationID : Allow user to set XCorrelationID

type ListMonitors

type ListMonitors struct {
	// An array of load balancer monitors.
	Monitors []Monitor `json:"monitors" validate:"required"`

	// Page number.
	Offset *int64 `json:"offset" validate:"required"`

	// Number of load balancer monitors per page.
	Limit *int64 `json:"limit" validate:"required"`

	// Number of load balancers.
	Count *int64 `json:"count" validate:"required"`

	// Total number of load balancers.
	TotalCount *int64 `json:"total_count" validate:"required"`

	// href.
	First *FirstHref `json:"first" validate:"required"`

	// href.
	Next *NextHref `json:"next" validate:"required"`
}

ListMonitors : List load balancer monitors response.

type ListMonitorsOptions

type ListMonitorsOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

ListMonitorsOptions : The ListMonitors options.

func (*ListMonitorsOptions) SetHeaders

func (options *ListMonitorsOptions) SetHeaders(param map[string]string) *ListMonitorsOptions

SetHeaders : Allow user to set Headers

func (*ListMonitorsOptions) SetInstanceID

func (options *ListMonitorsOptions) SetInstanceID(instanceID string) *ListMonitorsOptions

SetInstanceID : Allow user to set InstanceID

func (*ListMonitorsOptions) SetXCorrelationID

func (options *ListMonitorsOptions) SetXCorrelationID(xCorrelationID string) *ListMonitorsOptions

SetXCorrelationID : Allow user to set XCorrelationID

type ListPermittedNetworks

type ListPermittedNetworks struct {
	// An array of permitted networks.
	PermittedNetworks []PermittedNetwork `json:"permitted_networks" validate:"required"`

	// Specify how many permitted networks to skip over, the default value is 0.
	Offset *int64 `json:"offset" validate:"required"`

	// Specify how many permitted networks are returned, the default value is 10.
	Limit *int64 `json:"limit" validate:"required"`

	// Total number of permitted networks.
	TotalCount *int64 `json:"total_count" validate:"required"`

	// href.
	First *FirstHref `json:"first" validate:"required"`

	// href.
	Next *NextHref `json:"next,omitempty"`
}

ListPermittedNetworks : List permitted networks response.

type ListPermittedNetworksOptions

type ListPermittedNetworksOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a DNS zone.
	DnszoneID *string `json:"dnszone_id" validate:"required,ne="`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Specify how many resource records to skip over, the default value is 0.
	Offset *int64 `json:"offset,omitempty"`

	// Specify how many resource records are returned, the default value is 200.
	Limit *int64 `json:"limit,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

ListPermittedNetworksOptions : The ListPermittedNetworks options.

func (*ListPermittedNetworksOptions) SetDnszoneID

func (options *ListPermittedNetworksOptions) SetDnszoneID(dnszoneID string) *ListPermittedNetworksOptions

SetDnszoneID : Allow user to set DnszoneID

func (*ListPermittedNetworksOptions) SetHeaders

SetHeaders : Allow user to set Headers

func (*ListPermittedNetworksOptions) SetInstanceID

func (options *ListPermittedNetworksOptions) SetInstanceID(instanceID string) *ListPermittedNetworksOptions

SetInstanceID : Allow user to set InstanceID

func (*ListPermittedNetworksOptions) SetLimit

SetLimit : Allow user to set Limit

func (*ListPermittedNetworksOptions) SetOffset

SetOffset : Allow user to set Offset

func (*ListPermittedNetworksOptions) SetXCorrelationID

func (options *ListPermittedNetworksOptions) SetXCorrelationID(xCorrelationID string) *ListPermittedNetworksOptions

SetXCorrelationID : Allow user to set XCorrelationID

type ListPools

type ListPools struct {
	// An array of load balancer pools.
	Pools []Pool `json:"pools" validate:"required"`

	// Page number.
	Offset *int64 `json:"offset" validate:"required"`

	// Number of load balancer pools per page.
	Limit *int64 `json:"limit" validate:"required"`

	// Number of load balancers.
	Count *int64 `json:"count" validate:"required"`

	// Total number of load balancers.
	TotalCount *int64 `json:"total_count" validate:"required"`

	// href.
	First *FirstHref `json:"first" validate:"required"`

	// href.
	Next *NextHref `json:"next" validate:"required"`
}

ListPools : List load balancer pools response.

type ListPoolsOptions

type ListPoolsOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

ListPoolsOptions : The ListPools options.

func (*ListPoolsOptions) SetHeaders

func (options *ListPoolsOptions) SetHeaders(param map[string]string) *ListPoolsOptions

SetHeaders : Allow user to set Headers

func (*ListPoolsOptions) SetInstanceID

func (options *ListPoolsOptions) SetInstanceID(instanceID string) *ListPoolsOptions

SetInstanceID : Allow user to set InstanceID

func (*ListPoolsOptions) SetXCorrelationID

func (options *ListPoolsOptions) SetXCorrelationID(xCorrelationID string) *ListPoolsOptions

SetXCorrelationID : Allow user to set XCorrelationID

type ListResourceRecords

type ListResourceRecords struct {
	// An array of resource records.
	ResourceRecords []ResourceRecord `json:"resource_records" validate:"required"`

	// Specify how many resource records to skip over, the default value is 0.
	Offset *int64 `json:"offset" validate:"required"`

	// Specify how many resource records are returned, the default value is 20.
	Limit *int64 `json:"limit" validate:"required"`

	// Total number of resource records.
	TotalCount *int64 `json:"total_count" validate:"required"`

	// href.
	First *FirstHref `json:"first" validate:"required"`

	// href.
	Next *NextHref `json:"next,omitempty"`
}

ListResourceRecords : List Resource Records response.

type ListResourceRecordsOptions

type ListResourceRecordsOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a DNS zone.
	DnszoneID *string `json:"dnszone_id" validate:"required,ne="`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Specify how many resource records to skip over, the default value is 0.
	Offset *int64 `json:"offset,omitempty"`

	// Specify how many resource records are returned, the default value is 200.
	Limit *int64 `json:"limit,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

ListResourceRecordsOptions : The ListResourceRecords options.

func (*ListResourceRecordsOptions) SetDnszoneID

func (options *ListResourceRecordsOptions) SetDnszoneID(dnszoneID string) *ListResourceRecordsOptions

SetDnszoneID : Allow user to set DnszoneID

func (*ListResourceRecordsOptions) SetHeaders

func (options *ListResourceRecordsOptions) SetHeaders(param map[string]string) *ListResourceRecordsOptions

SetHeaders : Allow user to set Headers

func (*ListResourceRecordsOptions) SetInstanceID

func (options *ListResourceRecordsOptions) SetInstanceID(instanceID string) *ListResourceRecordsOptions

SetInstanceID : Allow user to set InstanceID

func (*ListResourceRecordsOptions) SetLimit

SetLimit : Allow user to set Limit

func (*ListResourceRecordsOptions) SetOffset

func (options *ListResourceRecordsOptions) SetOffset(offset int64) *ListResourceRecordsOptions

SetOffset : Allow user to set Offset

func (*ListResourceRecordsOptions) SetXCorrelationID

func (options *ListResourceRecordsOptions) SetXCorrelationID(xCorrelationID string) *ListResourceRecordsOptions

SetXCorrelationID : Allow user to set XCorrelationID

type LoadBalancer

type LoadBalancer struct {
	// Identifier of the load balancer.
	ID *string `json:"id,omitempty"`

	// Name of the load balancer.
	Name *string `json:"name,omitempty"`

	// Descriptive text of the load balancer.
	Description *string `json:"description,omitempty"`

	// Whether the load balancer is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Time to live in second.
	TTL *int64 `json:"ttl,omitempty"`

	// Healthy state of the load balancer.
	Health *string `json:"health,omitempty"`

	// The pool ID to use when all other pools are detected as unhealthy.
	FallbackPool *string `json:"fallback_pool,omitempty"`

	// A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region_pools
	// are not configured for a given region.
	DefaultPools []string `json:"default_pools,omitempty"`

	// Map availability zones to pool IDs.
	AzPools []LoadBalancerAzPoolsItem `json:"az_pools,omitempty"`

	// The time when a load balancer is created.
	CreatedOn *string `json:"created_on,omitempty"`

	// The recent time when a load balancer is modified.
	ModifiedOn *string `json:"modified_on,omitempty"`
}

LoadBalancer : Load balancer details.

type LoadBalancerAzPoolsItem

type LoadBalancerAzPoolsItem struct {
	// Availability zone.
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// List of load balancer pools.
	Pools []string `json:"pools,omitempty"`
}

LoadBalancerAzPoolsItem : LoadBalancerAzPoolsItem struct

type Monitor

type Monitor struct {
	// Identifier of the load balancer monitor.
	ID *string `json:"id,omitempty"`

	// The name of the load balancer monitor.
	Name *string `json:"name,omitempty"`

	// Descriptive text of the load balancer monitor.
	Description *string `json:"description,omitempty"`

	// The protocol to use for the health check. Currently supported protocols are 'HTTP','HTTPS' and 'TCP'.
	Type *string `json:"type,omitempty"`

	// Port number to connect to for the health check. Required for TCP checks. HTTP and HTTPS checks should only define
	// the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).
	Port *int64 `json:"port,omitempty"`

	// The interval between each health check. Shorter intervals may improve failover time, but will increase load on the
	// origins as we check from multiple locations.
	Interval *int64 `json:"interval,omitempty"`

	// The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted
	// immediately.
	Retries *int64 `json:"retries,omitempty"`

	// The timeout (in seconds) before marking the health check as failed.
	Timeout *int64 `json:"timeout,omitempty"`

	// The method to use for the health check applicable to HTTP/HTTPS based checks, the default value is 'GET'.
	Method *string `json:"method,omitempty"`

	// The endpoint path to health check against. This parameter is only valid for HTTP and HTTPS monitors.
	Path *string `json:"path,omitempty"`

	// The HTTP request headers to send in the health check. It is recommended you set a Host header by default. The
	// User-Agent header cannot be overridden. This parameter is only valid for HTTP and HTTPS monitors.
	HeadersVar []HealthcheckHeader `json:"headers,omitempty"`

	// Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTPS monitors.
	AllowInsecure *bool `json:"allow_insecure,omitempty"`

	// The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS
	// monitors.
	ExpectedCodes *string `json:"expected_codes,omitempty"`

	// A case-insensitive sub-string to look for in the response body. If this string is not found, the origin will be
	// marked as unhealthy. This parameter is only valid for HTTP and HTTPS monitors.
	ExpectedBody *string `json:"expected_body,omitempty"`

	// the time when a load balancer monitor is created.
	CreatedOn *string `json:"created_on,omitempty"`

	// the recent time when a load balancer monitor is modified.
	ModifiedOn *string `json:"modified_on,omitempty"`
}

Monitor : Load balancer monitor details.

type NextHref

type NextHref struct {
	// href.
	Href *string `json:"href,omitempty"`
}

NextHref : href.

type Origin

type Origin struct {
	// The name of the origin server.
	Name *string `json:"name,omitempty"`

	// Description of the origin server.
	Description *string `json:"description,omitempty"`

	// The address of the origin server. It can be a hostname or an IP address.
	Address *string `json:"address,omitempty"`

	// Whether the origin server is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// The health state of the origin server.
	Health *bool `json:"health,omitempty"`

	// The failure reason of the origin server if it is unhealthy.
	HealthFailureReason *string `json:"health_failure_reason,omitempty"`
}

Origin : Origin server.

type OriginInput

type OriginInput struct {
	// The name of the origin server.
	Name *string `json:"name,omitempty"`

	// Description of the origin server.
	Description *string `json:"description,omitempty"`

	// The address of the origin server. It can be a hostname or an IP address.
	Address *string `json:"address,omitempty"`

	// Whether the origin server is enabled.
	Enabled *bool `json:"enabled,omitempty"`
}

OriginInput : The request data of origin server.

type PermittedNetwork

type PermittedNetwork struct {
	// Unique identifier of a permitted network.
	ID *string `json:"id,omitempty"`

	// The time when a permitted network is created.
	CreatedOn *string `json:"created_on,omitempty"`

	// The recent time when a permitted network is modified.
	ModifiedOn *string `json:"modified_on,omitempty"`

	// Permitted network data for VPC.
	PermittedNetwork *PermittedNetworkVpc `json:"permitted_network,omitempty"`

	// The type of a permitted network.
	Type *string `json:"type,omitempty"`

	// The state of a permitted network.
	State *string `json:"state,omitempty"`
}

PermittedNetwork : Permitted network details.

type PermittedNetworkVpc

type PermittedNetworkVpc struct {
	// CRN string uniquely identifies a VPC.
	VpcCrn *string `json:"vpc_crn" validate:"required"`
}

PermittedNetworkVpc : Permitted network data for VPC.

type Pool

type Pool struct {
	// Identifier of the load balancer pool.
	ID *string `json:"id,omitempty"`

	// Name of the load balancer pool.
	Name *string `json:"name,omitempty"`

	// Descriptive text of the load balancer pool.
	Description *string `json:"description,omitempty"`

	// Whether the load balancer pool is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins
	// falls below this number, the pool will be marked unhealthy and we will failover to the next available pool.
	HealthyOriginsThreshold *int64 `json:"healthy_origins_threshold,omitempty"`

	// The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy
	// origins, provided the pool itself is healthy.
	Origins []Origin `json:"origins,omitempty"`

	// The ID of the load balancer monitor to be associated to this pool.
	Monitor *string `json:"monitor,omitempty"`

	// The notification channel.
	NotificationChannel *string `json:"notification_channel,omitempty"`

	// Healthy state of the load balancer pool.
	Health *string `json:"health,omitempty"`

	// Health check region of VSIs.
	HealthcheckRegion *string `json:"healthcheck_region,omitempty"`

	// Health check subnet CRNs.
	HealthcheckSubnets []string `json:"healthcheck_subnets,omitempty"`

	// Health check VSI information.
	HealthcheckVsis []PoolHealthcheckVsisItem `json:"healthcheck_vsis,omitempty"`

	// the time when a load balancer pool is created.
	CreatedOn *string `json:"created_on,omitempty"`

	// the recent time when a load balancer pool is modified.
	ModifiedOn *string `json:"modified_on,omitempty"`
}

Pool : Load balancer pool details.

type PoolHealthcheckVsisItem added in v0.12.2

type PoolHealthcheckVsisItem struct {
	// Health check VSI subnet CRN.
	Subnet *string `json:"subnet,omitempty"`

	// healthcheck VSI ip address.
	Ipv4Address *string `json:"ipv4_address,omitempty"`

	// ipv4 cidr block.
	Ipv4CidrBlock *string `json:"ipv4_cidr_block,omitempty"`

	// vpc crn.
	Vpc *string `json:"vpc,omitempty"`
}

PoolHealthcheckVsisItem : PoolHealthcheckVsisItem struct

type ResourceRecord

type ResourceRecord struct {
	// Identifier of the resource record.
	ID *string `json:"id,omitempty"`

	// the time when a resource record is created.
	CreatedOn *string `json:"created_on,omitempty"`

	// the recent time when a resource record is modified.
	ModifiedOn *string `json:"modified_on,omitempty"`

	// Name of the resource record.
	Name *string `json:"name,omitempty"`

	// Type of the resource record.
	Type *string `json:"type,omitempty"`

	// Time to live in second.
	TTL *int64 `json:"ttl,omitempty"`

	// Content of the resource record.
	Rdata interface{} `json:"rdata,omitempty"`

	// Only used for SRV record.
	Service *string `json:"service,omitempty"`

	// Only used for SRV record.
	Protocol *string `json:"protocol,omitempty"`
}

ResourceRecord : Resource record details.

type ResourceRecordInputRdata

type ResourceRecordInputRdata struct {
	// IPv4 address.
	Ip *string `json:"ip,omitempty"`

	// Canonical name.
	Cname *string `json:"cname,omitempty"`

	// Hostname of Exchange server.
	Exchange *string `json:"exchange,omitempty"`

	// Preference of the MX record.
	Preference *int64 `json:"preference,omitempty"`

	// Port number of the target server.
	Port *int64 `json:"port,omitempty"`

	// Priority of the SRV record.
	Priority *int64 `json:"priority,omitempty"`

	// Hostname of the target server.
	Target *string `json:"target,omitempty"`

	// Weight of distributing queries among multiple target servers.
	Weight *int64 `json:"weight,omitempty"`

	// Human readable text.
	Text *string `json:"text,omitempty"`

	// Hostname of the relevant A or AAAA record.
	Ptrdname *string `json:"ptrdname,omitempty"`
}

ResourceRecordInputRdata : Content of the resource record. Models which "extend" this model: - ResourceRecordInputRdataRdataARecord - ResourceRecordInputRdataRdataAaaaRecord - ResourceRecordInputRdataRdataCnameRecord - ResourceRecordInputRdataRdataMxRecord - ResourceRecordInputRdataRdataSrvRecord - ResourceRecordInputRdataRdataTxtRecord - ResourceRecordInputRdataRdataPtrRecord

type ResourceRecordInputRdataIntf

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

type ResourceRecordInputRdataRdataARecord

type ResourceRecordInputRdataRdataARecord struct {
	// IPv4 address.
	Ip *string `json:"ip" validate:"required"`
}

ResourceRecordInputRdataRdataARecord : The content of type-A resource record. This model "extends" ResourceRecordInputRdata

type ResourceRecordInputRdataRdataAaaaRecord

type ResourceRecordInputRdataRdataAaaaRecord struct {
	// IPv6 address.
	Ip *string `json:"ip" validate:"required"`
}

ResourceRecordInputRdataRdataAaaaRecord : The content of type-AAAA resource record. This model "extends" ResourceRecordInputRdata

type ResourceRecordInputRdataRdataCnameRecord

type ResourceRecordInputRdataRdataCnameRecord struct {
	// Canonical name.
	Cname *string `json:"cname" validate:"required"`
}

ResourceRecordInputRdataRdataCnameRecord : The content of type-CNAME resource record. This model "extends" ResourceRecordInputRdata

type ResourceRecordInputRdataRdataMxRecord

type ResourceRecordInputRdataRdataMxRecord struct {
	// Hostname of Exchange server.
	Exchange *string `json:"exchange" validate:"required"`

	// Preference of the MX record.
	Preference *int64 `json:"preference" validate:"required"`
}

ResourceRecordInputRdataRdataMxRecord : The content of type-MX resource record. This model "extends" ResourceRecordInputRdata

type ResourceRecordInputRdataRdataPtrRecord

type ResourceRecordInputRdataRdataPtrRecord struct {
	// Hostname of the relevant A or AAAA record.
	Ptrdname *string `json:"ptrdname" validate:"required"`
}

ResourceRecordInputRdataRdataPtrRecord : The content of type-PTR resource record. This model "extends" ResourceRecordInputRdata

type ResourceRecordInputRdataRdataSrvRecord

type ResourceRecordInputRdataRdataSrvRecord struct {
	// Port number of the target server.
	Port *int64 `json:"port" validate:"required"`

	// Priority of the SRV record.
	Priority *int64 `json:"priority" validate:"required"`

	// Hostname of the target server.
	Target *string `json:"target" validate:"required"`

	// Weight of distributing queries among multiple target servers.
	Weight *int64 `json:"weight" validate:"required"`
}

ResourceRecordInputRdataRdataSrvRecord : The content of type-SRV resource record. This model "extends" ResourceRecordInputRdata

type ResourceRecordInputRdataRdataTxtRecord

type ResourceRecordInputRdataRdataTxtRecord struct {
	// Human readable text.
	Text *string `json:"text" validate:"required"`
}

ResourceRecordInputRdataRdataTxtRecord : The content of type-TXT resource record. This model "extends" ResourceRecordInputRdata

type ResourceRecordUpdateInputRdata

type ResourceRecordUpdateInputRdata struct {
	// IPv4 address.
	Ip *string `json:"ip,omitempty"`

	// Canonical name.
	Cname *string `json:"cname,omitempty"`

	// Hostname of Exchange server.
	Exchange *string `json:"exchange,omitempty"`

	// Preference of the MX record.
	Preference *int64 `json:"preference,omitempty"`

	// Port number of the target server.
	Port *int64 `json:"port,omitempty"`

	// Priority of the SRV record.
	Priority *int64 `json:"priority,omitempty"`

	// Hostname of the target server.
	Target *string `json:"target,omitempty"`

	// Weight of distributing queries among multiple target servers.
	Weight *int64 `json:"weight,omitempty"`

	// Human readable text.
	Text *string `json:"text,omitempty"`

	// Hostname of the relevant A or AAAA record.
	Ptrdname *string `json:"ptrdname,omitempty"`
}

ResourceRecordUpdateInputRdata : Content of the resource record. Models which "extend" this model: - ResourceRecordUpdateInputRdataRdataARecord - ResourceRecordUpdateInputRdataRdataAaaaRecord - ResourceRecordUpdateInputRdataRdataCnameRecord - ResourceRecordUpdateInputRdataRdataMxRecord - ResourceRecordUpdateInputRdataRdataSrvRecord - ResourceRecordUpdateInputRdataRdataTxtRecord - ResourceRecordUpdateInputRdataRdataPtrRecord

type ResourceRecordUpdateInputRdataIntf

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

type ResourceRecordUpdateInputRdataRdataARecord

type ResourceRecordUpdateInputRdataRdataARecord struct {
	// IPv4 address.
	Ip *string `json:"ip" validate:"required"`
}

ResourceRecordUpdateInputRdataRdataARecord : The content of type-A resource record. This model "extends" ResourceRecordUpdateInputRdata

type ResourceRecordUpdateInputRdataRdataAaaaRecord

type ResourceRecordUpdateInputRdataRdataAaaaRecord struct {
	// IPv6 address.
	Ip *string `json:"ip" validate:"required"`
}

ResourceRecordUpdateInputRdataRdataAaaaRecord : The content of type-AAAA resource record. This model "extends" ResourceRecordUpdateInputRdata

type ResourceRecordUpdateInputRdataRdataCnameRecord

type ResourceRecordUpdateInputRdataRdataCnameRecord struct {
	// Canonical name.
	Cname *string `json:"cname" validate:"required"`
}

ResourceRecordUpdateInputRdataRdataCnameRecord : The content of type-CNAME resource record. This model "extends" ResourceRecordUpdateInputRdata

type ResourceRecordUpdateInputRdataRdataMxRecord

type ResourceRecordUpdateInputRdataRdataMxRecord struct {
	// Hostname of Exchange server.
	Exchange *string `json:"exchange" validate:"required"`

	// Preference of the MX record.
	Preference *int64 `json:"preference" validate:"required"`
}

ResourceRecordUpdateInputRdataRdataMxRecord : The content of type-MX resource record. This model "extends" ResourceRecordUpdateInputRdata

type ResourceRecordUpdateInputRdataRdataPtrRecord

type ResourceRecordUpdateInputRdataRdataPtrRecord struct {
	// Hostname of the relevant A or AAAA record.
	Ptrdname *string `json:"ptrdname" validate:"required"`
}

ResourceRecordUpdateInputRdataRdataPtrRecord : The content of type-PTR resource record. This model "extends" ResourceRecordUpdateInputRdata

type ResourceRecordUpdateInputRdataRdataSrvRecord

type ResourceRecordUpdateInputRdataRdataSrvRecord struct {
	// Port number of the target server.
	Port *int64 `json:"port" validate:"required"`

	// Priority of the SRV record.
	Priority *int64 `json:"priority" validate:"required"`

	// Hostname of the target server.
	Target *string `json:"target" validate:"required"`

	// Weight of distributing queries among multiple target servers.
	Weight *int64 `json:"weight" validate:"required"`
}

ResourceRecordUpdateInputRdataRdataSrvRecord : The content of type-SRV resource record. This model "extends" ResourceRecordUpdateInputRdata

type ResourceRecordUpdateInputRdataRdataTxtRecord

type ResourceRecordUpdateInputRdataRdataTxtRecord struct {
	// Human readable text.
	Text *string `json:"text" validate:"required"`
}

ResourceRecordUpdateInputRdataRdataTxtRecord : The content of type-TXT resource record. This model "extends" ResourceRecordUpdateInputRdata

type UpdateDnszoneOptions

type UpdateDnszoneOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a DNS zone.
	DnszoneID *string `json:"dnszone_id" validate:"required,ne="`

	// The text describing the purpose of a DNS zone.
	Description *string `json:"description,omitempty"`

	// The label of a DNS zone.
	Label *string `json:"label,omitempty"`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

UpdateDnszoneOptions : The UpdateDnszone options.

func (*UpdateDnszoneOptions) SetDescription

func (options *UpdateDnszoneOptions) SetDescription(description string) *UpdateDnszoneOptions

SetDescription : Allow user to set Description

func (*UpdateDnszoneOptions) SetDnszoneID

func (options *UpdateDnszoneOptions) SetDnszoneID(dnszoneID string) *UpdateDnszoneOptions

SetDnszoneID : Allow user to set DnszoneID

func (*UpdateDnszoneOptions) SetHeaders

func (options *UpdateDnszoneOptions) SetHeaders(param map[string]string) *UpdateDnszoneOptions

SetHeaders : Allow user to set Headers

func (*UpdateDnszoneOptions) SetInstanceID

func (options *UpdateDnszoneOptions) SetInstanceID(instanceID string) *UpdateDnszoneOptions

SetInstanceID : Allow user to set InstanceID

func (*UpdateDnszoneOptions) SetLabel

func (options *UpdateDnszoneOptions) SetLabel(label string) *UpdateDnszoneOptions

SetLabel : Allow user to set Label

func (*UpdateDnszoneOptions) SetXCorrelationID

func (options *UpdateDnszoneOptions) SetXCorrelationID(xCorrelationID string) *UpdateDnszoneOptions

SetXCorrelationID : Allow user to set XCorrelationID

type UpdateLoadBalancerOptions

type UpdateLoadBalancerOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a DNS zone.
	DnszoneID *string `json:"dnszone_id" validate:"required,ne="`

	// The unique identifier of a load balancer.
	LbID *string `json:"lb_id" validate:"required,ne="`

	// Name of the load balancer.
	Name *string `json:"name,omitempty"`

	// Descriptive text of the load balancer.
	Description *string `json:"description,omitempty"`

	// Whether the load balancer is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Time to live in second.
	TTL *int64 `json:"ttl,omitempty"`

	// The pool ID to use when all other pools are detected as unhealthy.
	FallbackPool *string `json:"fallback_pool,omitempty"`

	// A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region_pools
	// are not configured for a given region.
	DefaultPools []string `json:"default_pools,omitempty"`

	// Map availability zones to pool IDs.
	AzPools []LoadBalancerAzPoolsItem `json:"az_pools,omitempty"`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

UpdateLoadBalancerOptions : The UpdateLoadBalancer options.

func (*UpdateLoadBalancerOptions) SetAzPools

SetAzPools : Allow user to set AzPools

func (*UpdateLoadBalancerOptions) SetDefaultPools

func (options *UpdateLoadBalancerOptions) SetDefaultPools(defaultPools []string) *UpdateLoadBalancerOptions

SetDefaultPools : Allow user to set DefaultPools

func (*UpdateLoadBalancerOptions) SetDescription

func (options *UpdateLoadBalancerOptions) SetDescription(description string) *UpdateLoadBalancerOptions

SetDescription : Allow user to set Description

func (*UpdateLoadBalancerOptions) SetDnszoneID

func (options *UpdateLoadBalancerOptions) SetDnszoneID(dnszoneID string) *UpdateLoadBalancerOptions

SetDnszoneID : Allow user to set DnszoneID

func (*UpdateLoadBalancerOptions) SetEnabled

func (options *UpdateLoadBalancerOptions) SetEnabled(enabled bool) *UpdateLoadBalancerOptions

SetEnabled : Allow user to set Enabled

func (*UpdateLoadBalancerOptions) SetFallbackPool

func (options *UpdateLoadBalancerOptions) SetFallbackPool(fallbackPool string) *UpdateLoadBalancerOptions

SetFallbackPool : Allow user to set FallbackPool

func (*UpdateLoadBalancerOptions) SetHeaders

func (options *UpdateLoadBalancerOptions) SetHeaders(param map[string]string) *UpdateLoadBalancerOptions

SetHeaders : Allow user to set Headers

func (*UpdateLoadBalancerOptions) SetInstanceID

func (options *UpdateLoadBalancerOptions) SetInstanceID(instanceID string) *UpdateLoadBalancerOptions

SetInstanceID : Allow user to set InstanceID

func (*UpdateLoadBalancerOptions) SetLbID

SetLbID : Allow user to set LbID

func (*UpdateLoadBalancerOptions) SetName

SetName : Allow user to set Name

func (*UpdateLoadBalancerOptions) SetTTL

SetTTL : Allow user to set TTL

func (*UpdateLoadBalancerOptions) SetXCorrelationID

func (options *UpdateLoadBalancerOptions) SetXCorrelationID(xCorrelationID string) *UpdateLoadBalancerOptions

SetXCorrelationID : Allow user to set XCorrelationID

type UpdateMonitorOptions

type UpdateMonitorOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a load balancer monitor.
	MonitorID *string `json:"monitor_id" validate:"required,ne="`

	// The name of the load balancer monitor.
	Name *string `json:"name,omitempty"`

	// Descriptive text of the load balancer monitor.
	Description *string `json:"description,omitempty"`

	// The protocol to use for the health check. Currently supported protocols are 'HTTP','HTTPS' and 'TCP'.
	Type *string `json:"type,omitempty"`

	// Port number to connect to for the health check. Required for TCP checks. HTTP and HTTPS checks should only define
	// the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).
	Port *int64 `json:"port,omitempty"`

	// The interval between each health check. Shorter intervals may improve failover time, but will increase load on the
	// origins as we check from multiple locations.
	Interval *int64 `json:"interval,omitempty"`

	// The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted
	// immediately.
	Retries *int64 `json:"retries,omitempty"`

	// The timeout (in seconds) before marking the health check as failed.
	Timeout *int64 `json:"timeout,omitempty"`

	// The method to use for the health check applicable to HTTP/HTTPS based checks, the default value is 'GET'.
	Method *string `json:"method,omitempty"`

	// The endpoint path to health check against. This parameter is only valid for HTTP and HTTPS monitors.
	Path *string `json:"path,omitempty"`

	// The HTTP request headers to send in the health check. It is recommended you set a Host header by default. The
	// User-Agent header cannot be overridden. This parameter is only valid for HTTP and HTTPS monitors.
	HeadersVar []HealthcheckHeader `json:"headers,omitempty"`

	// Do not validate the certificate when monitor use HTTPS. This parameter is currently only valid for HTTP and HTTPS
	// monitors.
	AllowInsecure *bool `json:"allow_insecure,omitempty"`

	// The expected HTTP response code or code range of the health check. This parameter is only valid for HTTP and HTTPS
	// monitors.
	ExpectedCodes *string `json:"expected_codes,omitempty"`

	// A case-insensitive sub-string to look for in the response body. If this string is not found, the origin will be
	// marked as unhealthy. This parameter is only valid for HTTP and HTTPS monitors.
	ExpectedBody *string `json:"expected_body,omitempty"`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

UpdateMonitorOptions : The UpdateMonitor options.

func (*UpdateMonitorOptions) SetAllowInsecure

func (options *UpdateMonitorOptions) SetAllowInsecure(allowInsecure bool) *UpdateMonitorOptions

SetAllowInsecure : Allow user to set AllowInsecure

func (*UpdateMonitorOptions) SetDescription

func (options *UpdateMonitorOptions) SetDescription(description string) *UpdateMonitorOptions

SetDescription : Allow user to set Description

func (*UpdateMonitorOptions) SetExpectedBody

func (options *UpdateMonitorOptions) SetExpectedBody(expectedBody string) *UpdateMonitorOptions

SetExpectedBody : Allow user to set ExpectedBody

func (*UpdateMonitorOptions) SetExpectedCodes

func (options *UpdateMonitorOptions) SetExpectedCodes(expectedCodes string) *UpdateMonitorOptions

SetExpectedCodes : Allow user to set ExpectedCodes

func (*UpdateMonitorOptions) SetHeaders

func (options *UpdateMonitorOptions) SetHeaders(param map[string]string) *UpdateMonitorOptions

SetHeaders : Allow user to set Headers

func (*UpdateMonitorOptions) SetHeadersVar

func (options *UpdateMonitorOptions) SetHeadersVar(headersVar []HealthcheckHeader) *UpdateMonitorOptions

SetHeadersVar : Allow user to set HeadersVar

func (*UpdateMonitorOptions) SetInstanceID

func (options *UpdateMonitorOptions) SetInstanceID(instanceID string) *UpdateMonitorOptions

SetInstanceID : Allow user to set InstanceID

func (*UpdateMonitorOptions) SetInterval

func (options *UpdateMonitorOptions) SetInterval(interval int64) *UpdateMonitorOptions

SetInterval : Allow user to set Interval

func (*UpdateMonitorOptions) SetMethod

func (options *UpdateMonitorOptions) SetMethod(method string) *UpdateMonitorOptions

SetMethod : Allow user to set Method

func (*UpdateMonitorOptions) SetMonitorID

func (options *UpdateMonitorOptions) SetMonitorID(monitorID string) *UpdateMonitorOptions

SetMonitorID : Allow user to set MonitorID

func (*UpdateMonitorOptions) SetName

func (options *UpdateMonitorOptions) SetName(name string) *UpdateMonitorOptions

SetName : Allow user to set Name

func (*UpdateMonitorOptions) SetPath

func (options *UpdateMonitorOptions) SetPath(path string) *UpdateMonitorOptions

SetPath : Allow user to set Path

func (*UpdateMonitorOptions) SetPort

func (options *UpdateMonitorOptions) SetPort(port int64) *UpdateMonitorOptions

SetPort : Allow user to set Port

func (*UpdateMonitorOptions) SetRetries

func (options *UpdateMonitorOptions) SetRetries(retries int64) *UpdateMonitorOptions

SetRetries : Allow user to set Retries

func (*UpdateMonitorOptions) SetTimeout

func (options *UpdateMonitorOptions) SetTimeout(timeout int64) *UpdateMonitorOptions

SetTimeout : Allow user to set Timeout

func (*UpdateMonitorOptions) SetType

func (options *UpdateMonitorOptions) SetType(typeVar string) *UpdateMonitorOptions

SetType : Allow user to set Type

func (*UpdateMonitorOptions) SetXCorrelationID

func (options *UpdateMonitorOptions) SetXCorrelationID(xCorrelationID string) *UpdateMonitorOptions

SetXCorrelationID : Allow user to set XCorrelationID

type UpdatePoolOptions

type UpdatePoolOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a load balancer pool.
	PoolID *string `json:"pool_id" validate:"required,ne="`

	// Name of the load balancer pool.
	Name *string `json:"name,omitempty"`

	// Descriptive text of the load balancer pool.
	Description *string `json:"description,omitempty"`

	// Whether the load balancer pool is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// The minimum number of origins that must be healthy for this pool to serve traffic. If the number of healthy origins
	// falls below this number, the pool will be marked unhealthy and we will failover to the next available pool.
	HealthyOriginsThreshold *int64 `json:"healthy_origins_threshold,omitempty"`

	// The list of origins within this pool. Traffic directed at this pool is balanced across all currently healthy
	// origins, provided the pool itself is healthy.
	Origins []OriginInput `json:"origins,omitempty"`

	// The ID of the load balancer monitor to be associated to this pool.
	Monitor *string `json:"monitor,omitempty"`

	// The notification channel.
	NotificationChannel *string `json:"notification_channel,omitempty"`

	// Health check region of VSIs.
	HealthcheckRegion *string `json:"healthcheck_region,omitempty"`

	// Health check subnet CRNs.
	HealthcheckSubnets []string `json:"healthcheck_subnets,omitempty"`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

UpdatePoolOptions : The UpdatePool options.

func (*UpdatePoolOptions) SetDescription

func (options *UpdatePoolOptions) SetDescription(description string) *UpdatePoolOptions

SetDescription : Allow user to set Description

func (*UpdatePoolOptions) SetEnabled

func (options *UpdatePoolOptions) SetEnabled(enabled bool) *UpdatePoolOptions

SetEnabled : Allow user to set Enabled

func (*UpdatePoolOptions) SetHeaders

func (options *UpdatePoolOptions) SetHeaders(param map[string]string) *UpdatePoolOptions

SetHeaders : Allow user to set Headers

func (*UpdatePoolOptions) SetHealthcheckRegion

func (options *UpdatePoolOptions) SetHealthcheckRegion(healthcheckRegion string) *UpdatePoolOptions

SetHealthcheckRegion : Allow user to set HealthcheckRegion

func (*UpdatePoolOptions) SetHealthcheckSubnets

func (options *UpdatePoolOptions) SetHealthcheckSubnets(healthcheckSubnets []string) *UpdatePoolOptions

SetHealthcheckSubnets : Allow user to set HealthcheckSubnets

func (*UpdatePoolOptions) SetHealthyOriginsThreshold

func (options *UpdatePoolOptions) SetHealthyOriginsThreshold(healthyOriginsThreshold int64) *UpdatePoolOptions

SetHealthyOriginsThreshold : Allow user to set HealthyOriginsThreshold

func (*UpdatePoolOptions) SetInstanceID

func (options *UpdatePoolOptions) SetInstanceID(instanceID string) *UpdatePoolOptions

SetInstanceID : Allow user to set InstanceID

func (*UpdatePoolOptions) SetMonitor

func (options *UpdatePoolOptions) SetMonitor(monitor string) *UpdatePoolOptions

SetMonitor : Allow user to set Monitor

func (*UpdatePoolOptions) SetName

func (options *UpdatePoolOptions) SetName(name string) *UpdatePoolOptions

SetName : Allow user to set Name

func (*UpdatePoolOptions) SetNotificationChannel

func (options *UpdatePoolOptions) SetNotificationChannel(notificationChannel string) *UpdatePoolOptions

SetNotificationChannel : Allow user to set NotificationChannel

func (*UpdatePoolOptions) SetOrigins

func (options *UpdatePoolOptions) SetOrigins(origins []OriginInput) *UpdatePoolOptions

SetOrigins : Allow user to set Origins

func (*UpdatePoolOptions) SetPoolID

func (options *UpdatePoolOptions) SetPoolID(poolID string) *UpdatePoolOptions

SetPoolID : Allow user to set PoolID

func (*UpdatePoolOptions) SetXCorrelationID

func (options *UpdatePoolOptions) SetXCorrelationID(xCorrelationID string) *UpdatePoolOptions

SetXCorrelationID : Allow user to set XCorrelationID

type UpdateResourceRecordOptions

type UpdateResourceRecordOptions struct {
	// The unique identifier of a service instance.
	InstanceID *string `json:"instance_id" validate:"required,ne="`

	// The unique identifier of a DNS zone.
	DnszoneID *string `json:"dnszone_id" validate:"required,ne="`

	// The unique identifier of a resource record.
	RecordID *string `json:"record_id" validate:"required,ne="`

	// Name of the resource record.
	Name *string `json:"name,omitempty"`

	// Content of the resource record.
	Rdata ResourceRecordUpdateInputRdataIntf `json:"rdata,omitempty"`

	// Time to live in second.
	TTL *int64 `json:"ttl,omitempty"`

	// Only used for SRV record.
	Service *string `json:"service,omitempty"`

	// Only used for SRV record.
	Protocol *string `json:"protocol,omitempty"`

	// Uniquely identifying a request.
	XCorrelationID *string `json:"X-Correlation-ID,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

UpdateResourceRecordOptions : The UpdateResourceRecord options.

func (*UpdateResourceRecordOptions) SetDnszoneID

func (options *UpdateResourceRecordOptions) SetDnszoneID(dnszoneID string) *UpdateResourceRecordOptions

SetDnszoneID : Allow user to set DnszoneID

func (*UpdateResourceRecordOptions) SetHeaders

func (options *UpdateResourceRecordOptions) SetHeaders(param map[string]string) *UpdateResourceRecordOptions

SetHeaders : Allow user to set Headers

func (*UpdateResourceRecordOptions) SetInstanceID

func (options *UpdateResourceRecordOptions) SetInstanceID(instanceID string) *UpdateResourceRecordOptions

SetInstanceID : Allow user to set InstanceID

func (*UpdateResourceRecordOptions) SetName

SetName : Allow user to set Name

func (*UpdateResourceRecordOptions) SetProtocol

func (options *UpdateResourceRecordOptions) SetProtocol(protocol string) *UpdateResourceRecordOptions

SetProtocol : Allow user to set Protocol

func (*UpdateResourceRecordOptions) SetRdata

SetRdata : Allow user to set Rdata

func (*UpdateResourceRecordOptions) SetRecordID

func (options *UpdateResourceRecordOptions) SetRecordID(recordID string) *UpdateResourceRecordOptions

SetRecordID : Allow user to set RecordID

func (*UpdateResourceRecordOptions) SetService

func (options *UpdateResourceRecordOptions) SetService(service string) *UpdateResourceRecordOptions

SetService : Allow user to set Service

func (*UpdateResourceRecordOptions) SetTTL

SetTTL : Allow user to set TTL

func (*UpdateResourceRecordOptions) SetXCorrelationID

func (options *UpdateResourceRecordOptions) SetXCorrelationID(xCorrelationID string) *UpdateResourceRecordOptions

SetXCorrelationID : Allow user to set XCorrelationID

Jump to

Keyboard shortcuts

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