globalloadbalancermonitorv1

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 4 Imported by: 5

Documentation

Overview

Package globalloadbalancermonitorv1 : Operations and models for the GlobalLoadBalancerMonitorV1 service

Index

Constants

View Source
const DefaultServiceName = "global_load_balancer_monitor"

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

View Source
const DefaultServiceURL = "https://api.cis.cloud.ibm.com"

DefaultServiceURL is the default URL to make service requests to.

Variables

This section is empty.

Functions

func UnmarshalDeleteMonitorResp

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

UnmarshalDeleteMonitorResp unmarshals an instance of DeleteMonitorResp from the specified map of raw messages.

func UnmarshalDeleteMonitorRespResult

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

UnmarshalDeleteMonitorRespResult unmarshals an instance of DeleteMonitorRespResult from the specified map of raw messages.

func UnmarshalListMonitorResp

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

UnmarshalListMonitorResp unmarshals an instance of ListMonitorResp from the specified map of raw messages.

func UnmarshalMonitorPack

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

UnmarshalMonitorPack unmarshals an instance of MonitorPack from the specified map of raw messages.

func UnmarshalMonitorResp

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

UnmarshalMonitorResp unmarshals an instance of MonitorResp from the specified map of raw messages.

func UnmarshalResultInfo

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

UnmarshalResultInfo unmarshals an instance of ResultInfo from the specified map of raw messages.

Types

type CreateLoadBalancerMonitorOptions

type CreateLoadBalancerMonitorOptions struct {
	// http type.
	Type *string `json:"type,omitempty"`

	// login page monitor.
	Description *string `json:"description,omitempty"`

	// method.
	Method *string `json:"method,omitempty"`

	// port number.
	Port *int64 `json:"port,omitempty"`

	// path.
	Path *string `json:"path,omitempty"`

	// timeout count.
	Timeout *int64 `json:"timeout,omitempty"`

	// retry count.
	Retries *int64 `json:"retries,omitempty"`

	// interval.
	Interval *int64 `json:"interval,omitempty"`

	// expected codes.
	ExpectedCodes *string `json:"expected_codes,omitempty"`

	// follow redirects.
	FollowRedirects *bool `json:"follow_redirects,omitempty"`

	// expected body.
	ExpectedBody *string `json:"expected_body,omitempty"`

	// allow insecure.
	AllowInsecure *bool `json:"allow_insecure,omitempty"`

	// header.
	Header map[string][]string `json:"header,omitempty"`

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

CreateLoadBalancerMonitorOptions : The CreateLoadBalancerMonitor options.

func (*CreateLoadBalancerMonitorOptions) SetAllowInsecure

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

SetAllowInsecure : Allow user to set AllowInsecure

func (*CreateLoadBalancerMonitorOptions) SetDescription

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

SetDescription : Allow user to set Description

func (*CreateLoadBalancerMonitorOptions) SetExpectedBody

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

SetExpectedBody : Allow user to set ExpectedBody

func (*CreateLoadBalancerMonitorOptions) SetExpectedCodes

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

SetExpectedCodes : Allow user to set ExpectedCodes

func (*CreateLoadBalancerMonitorOptions) SetFollowRedirects

func (options *CreateLoadBalancerMonitorOptions) SetFollowRedirects(followRedirects bool) *CreateLoadBalancerMonitorOptions

SetFollowRedirects : Allow user to set FollowRedirects

func (*CreateLoadBalancerMonitorOptions) SetHeader added in v0.5.0

SetHeader : Allow user to set Header

func (*CreateLoadBalancerMonitorOptions) SetHeaders

SetHeaders : Allow user to set Headers

func (*CreateLoadBalancerMonitorOptions) SetInterval

SetInterval : Allow user to set Interval

func (*CreateLoadBalancerMonitorOptions) SetMethod

SetMethod : Allow user to set Method

func (*CreateLoadBalancerMonitorOptions) SetPath

SetPath : Allow user to set Path

func (*CreateLoadBalancerMonitorOptions) SetPort

SetPort : Allow user to set Port

func (*CreateLoadBalancerMonitorOptions) SetRetries

SetRetries : Allow user to set Retries

func (*CreateLoadBalancerMonitorOptions) SetTimeout

SetTimeout : Allow user to set Timeout

func (*CreateLoadBalancerMonitorOptions) SetType

SetType : Allow user to set Type

type DeleteLoadBalancerMonitorOptions

type DeleteLoadBalancerMonitorOptions struct {
	// monitor identifier.
	MonitorIdentifier *string `json:"monitor_identifier" validate:"required"`

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

DeleteLoadBalancerMonitorOptions : The DeleteLoadBalancerMonitor options.

func (*DeleteLoadBalancerMonitorOptions) SetHeaders

SetHeaders : Allow user to set Headers

func (*DeleteLoadBalancerMonitorOptions) SetMonitorIdentifier

func (options *DeleteLoadBalancerMonitorOptions) SetMonitorIdentifier(monitorIdentifier string) *DeleteLoadBalancerMonitorOptions

SetMonitorIdentifier : Allow user to set MonitorIdentifier

type DeleteMonitorResp

type DeleteMonitorResp struct {
	// success response.
	Success *bool `json:"success" validate:"required"`

	// errors.
	Errors [][]string `json:"errors" validate:"required"`

	// messages.
	Messages [][]string `json:"messages" validate:"required"`

	// result.
	Result *DeleteMonitorRespResult `json:"result" validate:"required"`
}

DeleteMonitorResp : delete monitor response object.

type DeleteMonitorRespResult

type DeleteMonitorRespResult struct {
	// identifier.
	ID *string `json:"id" validate:"required"`
}

DeleteMonitorRespResult : result.

type EditLoadBalancerMonitorOptions

type EditLoadBalancerMonitorOptions struct {
	// monitor identifier.
	MonitorIdentifier *string `json:"monitor_identifier" validate:"required"`

	// http type.
	Type *string `json:"type,omitempty"`

	// login page monitor.
	Description *string `json:"description,omitempty"`

	// method.
	Method *string `json:"method,omitempty"`

	// port number.
	Port *int64 `json:"port,omitempty"`

	// path.
	Path *string `json:"path,omitempty"`

	// timeout count.
	Timeout *int64 `json:"timeout,omitempty"`

	// retry count.
	Retries *int64 `json:"retries,omitempty"`

	// interval.
	Interval *int64 `json:"interval,omitempty"`

	// expected codes.
	ExpectedCodes *string `json:"expected_codes,omitempty"`

	// follow redirects.
	FollowRedirects *bool `json:"follow_redirects,omitempty"`

	// expected body.
	ExpectedBody *string `json:"expected_body,omitempty"`

	// allow insecure.
	AllowInsecure *bool `json:"allow_insecure,omitempty"`

	// header.
	Header map[string][]string `json:"header,omitempty"`

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

EditLoadBalancerMonitorOptions : The EditLoadBalancerMonitor options.

func (*EditLoadBalancerMonitorOptions) SetAllowInsecure

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

SetAllowInsecure : Allow user to set AllowInsecure

func (*EditLoadBalancerMonitorOptions) SetDescription

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

SetDescription : Allow user to set Description

func (*EditLoadBalancerMonitorOptions) SetExpectedBody

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

SetExpectedBody : Allow user to set ExpectedBody

func (*EditLoadBalancerMonitorOptions) SetExpectedCodes

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

SetExpectedCodes : Allow user to set ExpectedCodes

func (*EditLoadBalancerMonitorOptions) SetFollowRedirects

func (options *EditLoadBalancerMonitorOptions) SetFollowRedirects(followRedirects bool) *EditLoadBalancerMonitorOptions

SetFollowRedirects : Allow user to set FollowRedirects

func (*EditLoadBalancerMonitorOptions) SetHeader added in v0.5.0

SetHeader : Allow user to set Header

func (*EditLoadBalancerMonitorOptions) SetHeaders

SetHeaders : Allow user to set Headers

func (*EditLoadBalancerMonitorOptions) SetInterval

SetInterval : Allow user to set Interval

func (*EditLoadBalancerMonitorOptions) SetMethod

SetMethod : Allow user to set Method

func (*EditLoadBalancerMonitorOptions) SetMonitorIdentifier

func (options *EditLoadBalancerMonitorOptions) SetMonitorIdentifier(monitorIdentifier string) *EditLoadBalancerMonitorOptions

SetMonitorIdentifier : Allow user to set MonitorIdentifier

func (*EditLoadBalancerMonitorOptions) SetPath

SetPath : Allow user to set Path

func (*EditLoadBalancerMonitorOptions) SetPort

SetPort : Allow user to set Port

func (*EditLoadBalancerMonitorOptions) SetRetries

SetRetries : Allow user to set Retries

func (*EditLoadBalancerMonitorOptions) SetTimeout

SetTimeout : Allow user to set Timeout

func (*EditLoadBalancerMonitorOptions) SetType

SetType : Allow user to set Type

type GetLoadBalancerMonitorOptions

type GetLoadBalancerMonitorOptions struct {
	// monitor identifier.
	MonitorIdentifier *string `json:"monitor_identifier" validate:"required"`

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

GetLoadBalancerMonitorOptions : The GetLoadBalancerMonitor options.

func (*GetLoadBalancerMonitorOptions) SetHeaders

SetHeaders : Allow user to set Headers

func (*GetLoadBalancerMonitorOptions) SetMonitorIdentifier

func (options *GetLoadBalancerMonitorOptions) SetMonitorIdentifier(monitorIdentifier string) *GetLoadBalancerMonitorOptions

SetMonitorIdentifier : Allow user to set MonitorIdentifier

type GlobalLoadBalancerMonitorV1

type GlobalLoadBalancerMonitorV1 struct {
	Service *core.BaseService

	// Full CRN of the service instance.
	Crn *string
}

GlobalLoadBalancerMonitorV1 : Global Load Balancer Monitor

Version: 1.0.1

func NewGlobalLoadBalancerMonitorV1

func NewGlobalLoadBalancerMonitorV1(options *GlobalLoadBalancerMonitorV1Options) (service *GlobalLoadBalancerMonitorV1, err error)

NewGlobalLoadBalancerMonitorV1 : constructs an instance of GlobalLoadBalancerMonitorV1 with passed in options.

func NewGlobalLoadBalancerMonitorV1UsingExternalConfig

func NewGlobalLoadBalancerMonitorV1UsingExternalConfig(options *GlobalLoadBalancerMonitorV1Options) (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1, err error)

NewGlobalLoadBalancerMonitorV1UsingExternalConfig : constructs an instance of GlobalLoadBalancerMonitorV1 with passed in options and external configuration.

func (*GlobalLoadBalancerMonitorV1) CreateLoadBalancerMonitor

func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) CreateLoadBalancerMonitor(createLoadBalancerMonitorOptions *CreateLoadBalancerMonitorOptions) (result *MonitorResp, response *core.DetailedResponse, err error)

CreateLoadBalancerMonitor : Create load balancer monitor Create a load balancer monitor for a given service instance.

func (*GlobalLoadBalancerMonitorV1) DeleteLoadBalancerMonitor

func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) DeleteLoadBalancerMonitor(deleteLoadBalancerMonitorOptions *DeleteLoadBalancerMonitorOptions) (result *DeleteMonitorResp, response *core.DetailedResponse, err error)

DeleteLoadBalancerMonitor : Delete load balancer monitor Delete a load balancer monitor.

func (*GlobalLoadBalancerMonitorV1) EditLoadBalancerMonitor

func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) EditLoadBalancerMonitor(editLoadBalancerMonitorOptions *EditLoadBalancerMonitorOptions) (result *MonitorResp, response *core.DetailedResponse, err error)

EditLoadBalancerMonitor : Edit load balancer monitor Edit porperties of an existing load balancer monitor.

func (*GlobalLoadBalancerMonitorV1) GetLoadBalancerMonitor

func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) GetLoadBalancerMonitor(getLoadBalancerMonitorOptions *GetLoadBalancerMonitorOptions) (result *MonitorResp, response *core.DetailedResponse, err error)

GetLoadBalancerMonitor : Get load balancer monitor For a given service instance and load balancer monitor id, get the monitor details.

func (*GlobalLoadBalancerMonitorV1) ListAllLoadBalancerMonitors

func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) ListAllLoadBalancerMonitors(listAllLoadBalancerMonitorsOptions *ListAllLoadBalancerMonitorsOptions) (result *ListMonitorResp, response *core.DetailedResponse, err error)

ListAllLoadBalancerMonitors : List all load balancer monitors List configured load balancer monitors for a user.

func (*GlobalLoadBalancerMonitorV1) NewCreateLoadBalancerMonitorOptions

func (*GlobalLoadBalancerMonitorV1) NewCreateLoadBalancerMonitorOptions() *CreateLoadBalancerMonitorOptions

NewCreateLoadBalancerMonitorOptions : Instantiate CreateLoadBalancerMonitorOptions

func (*GlobalLoadBalancerMonitorV1) NewDeleteLoadBalancerMonitorOptions

func (*GlobalLoadBalancerMonitorV1) NewDeleteLoadBalancerMonitorOptions(monitorIdentifier string) *DeleteLoadBalancerMonitorOptions

NewDeleteLoadBalancerMonitorOptions : Instantiate DeleteLoadBalancerMonitorOptions

func (*GlobalLoadBalancerMonitorV1) NewEditLoadBalancerMonitorOptions

func (*GlobalLoadBalancerMonitorV1) NewEditLoadBalancerMonitorOptions(monitorIdentifier string) *EditLoadBalancerMonitorOptions

NewEditLoadBalancerMonitorOptions : Instantiate EditLoadBalancerMonitorOptions

func (*GlobalLoadBalancerMonitorV1) NewGetLoadBalancerMonitorOptions

func (*GlobalLoadBalancerMonitorV1) NewGetLoadBalancerMonitorOptions(monitorIdentifier string) *GetLoadBalancerMonitorOptions

NewGetLoadBalancerMonitorOptions : Instantiate GetLoadBalancerMonitorOptions

func (*GlobalLoadBalancerMonitorV1) NewListAllLoadBalancerMonitorsOptions

func (*GlobalLoadBalancerMonitorV1) NewListAllLoadBalancerMonitorsOptions() *ListAllLoadBalancerMonitorsOptions

NewListAllLoadBalancerMonitorsOptions : Instantiate ListAllLoadBalancerMonitorsOptions

func (*GlobalLoadBalancerMonitorV1) SetServiceURL

func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) SetServiceURL(url string) error

SetServiceURL sets the service URL

type GlobalLoadBalancerMonitorV1Options

type GlobalLoadBalancerMonitorV1Options struct {
	ServiceName   string
	URL           string
	Authenticator core.Authenticator

	// Full CRN of the service instance.
	Crn *string `validate:"required"`
}

GlobalLoadBalancerMonitorV1Options : Service options

type ListAllLoadBalancerMonitorsOptions

type ListAllLoadBalancerMonitorsOptions struct {

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

ListAllLoadBalancerMonitorsOptions : The ListAllLoadBalancerMonitors options.

func (*ListAllLoadBalancerMonitorsOptions) SetHeaders

SetHeaders : Allow user to set Headers

type ListMonitorResp

type ListMonitorResp struct {
	// success response.
	Success *bool `json:"success" validate:"required"`

	// errors.
	Errors [][]string `json:"errors" validate:"required"`

	// messages.
	Messages [][]string `json:"messages" validate:"required"`

	// result.
	Result []MonitorPack `json:"result" validate:"required"`

	// result information.
	ResultInfo *ResultInfo `json:"result_info" validate:"required"`
}

ListMonitorResp : monitor list response.

type MonitorPack

type MonitorPack struct {
	// identifier.
	ID *string `json:"id,omitempty"`

	// created date.
	CreatedOn *string `json:"created_on,omitempty"`

	// modified date.
	ModifiedOn *string `json:"modified_on,omitempty"`

	// type.
	Type *string `json:"type,omitempty"`

	// login page.
	Description *string `json:"description,omitempty"`

	// method name.
	Method *string `json:"method,omitempty"`

	// port number.
	Port *int64 `json:"port,omitempty"`

	// path.
	Path *string `json:"path,omitempty"`

	// timeout count.
	Timeout *int64 `json:"timeout,omitempty"`

	// retries count.
	Retries *int64 `json:"retries,omitempty"`

	// interval.
	Interval *int64 `json:"interval,omitempty"`

	// expected body.
	ExpectedBody *string `json:"expected_body" validate:"required"`

	// expected codes.
	ExpectedCodes *string `json:"expected_codes" validate:"required"`

	// follow redirects.
	FollowRedirects *bool `json:"follow_redirects,omitempty"`

	// allow insecure.
	AllowInsecure *bool `json:"allow_insecure,omitempty"`

	// header.
	Header map[string][]string `json:"header,omitempty"`
}

MonitorPack : monitor package.

type MonitorResp

type MonitorResp struct {
	// success response.
	Success *bool `json:"success" validate:"required"`

	// errors.
	Errors [][]string `json:"errors" validate:"required"`

	// messages.
	Messages [][]string `json:"messages" validate:"required"`

	// monitor package.
	Result *MonitorPack `json:"result" validate:"required"`
}

MonitorResp : monitor response.

type ResultInfo

type ResultInfo struct {
	// page number.
	Page *int64 `json:"page" validate:"required"`

	// per page number.
	PerPage *int64 `json:"per_page" validate:"required"`

	// count.
	Count *int64 `json:"count" validate:"required"`

	// total count.
	TotalCount *int64 `json:"total_count" validate:"required"`
}

ResultInfo : result information.

Jump to

Keyboard shortcuts

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