putautoscalingpolicy

package
v8.4.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Overview

Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.

Index

Constants

This section is empty.

Variables

View Source
var ErrBuildPath = errors.New("cannot build path, check for missing path parameters")

ErrBuildPath is returned in case of missing parameters within the build of the request.

Functions

This section is empty.

Types

type NewPutAutoscalingPolicy

type NewPutAutoscalingPolicy func(name string) *PutAutoscalingPolicy

NewPutAutoscalingPolicy type alias for index.

func NewPutAutoscalingPolicyFunc

func NewPutAutoscalingPolicyFunc(tp elastictransport.Interface) NewPutAutoscalingPolicy

NewPutAutoscalingPolicyFunc returns a new instance of PutAutoscalingPolicy with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.

type PutAutoscalingPolicy

type PutAutoscalingPolicy struct {
	// contains filtered or unexported fields
}

func New

Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.

https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/autoscaling-put-autoscaling-policy.html

func (PutAutoscalingPolicy) Do

Do runs the http.Request through the provided transport.

func (*PutAutoscalingPolicy) Header

func (r *PutAutoscalingPolicy) Header(key, value string) *PutAutoscalingPolicy

Header set a key, value pair in the PutAutoscalingPolicy headers map.

func (*PutAutoscalingPolicy) HttpRequest

func (r *PutAutoscalingPolicy) HttpRequest(ctx context.Context) (*http.Request, error)

HttpRequest returns the http.Request object built from the given parameters.

func (*PutAutoscalingPolicy) Name

Name the name of the autoscaling policy API Name: name

func (*PutAutoscalingPolicy) Raw

Raw takes a json payload as input which is then passed to the http.Request If specified Raw takes precedence on Request method.

func (*PutAutoscalingPolicy) Request

Request allows to set the request property with the appropriate payload.

Jump to

Keyboard shortcuts

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