Documentation ¶
Overview ¶
Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
Index ¶
- Variables
- type DeleteAutoscalingPolicy
- func (r DeleteAutoscalingPolicy) Do(ctx context.Context) (*Response, error)
- func (r *DeleteAutoscalingPolicy) Header(key, value string) *DeleteAutoscalingPolicy
- func (r *DeleteAutoscalingPolicy) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r DeleteAutoscalingPolicy) IsSuccess(ctx context.Context) (bool, error)
- func (r *DeleteAutoscalingPolicy) Name(v string) *DeleteAutoscalingPolicy
- func (r DeleteAutoscalingPolicy) Perform(ctx context.Context) (*http.Response, error)
- type NewDeleteAutoscalingPolicy
- type Response
Constants ¶
This section is empty.
Variables ¶
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 DeleteAutoscalingPolicy ¶
type DeleteAutoscalingPolicy struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *DeleteAutoscalingPolicy
Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
func (DeleteAutoscalingPolicy) Do ¶
func (r DeleteAutoscalingPolicy) Do(ctx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a deleteautoscalingpolicy.Response
func (*DeleteAutoscalingPolicy) Header ¶
func (r *DeleteAutoscalingPolicy) Header(key, value string) *DeleteAutoscalingPolicy
Header set a key, value pair in the DeleteAutoscalingPolicy headers map.
func (*DeleteAutoscalingPolicy) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (DeleteAutoscalingPolicy) IsSuccess ¶
func (r DeleteAutoscalingPolicy) IsSuccess(ctx context.Context) (bool, error)
IsSuccess allows to run a query with a context and retrieve the result as a boolean. This only exists for endpoints without a request payload and allows for quick control flow.
func (*DeleteAutoscalingPolicy) Name ¶
func (r *DeleteAutoscalingPolicy) Name(v string) *DeleteAutoscalingPolicy
Name the name of the autoscaling policy API Name: name
type NewDeleteAutoscalingPolicy ¶
type NewDeleteAutoscalingPolicy func(name string) *DeleteAutoscalingPolicy
NewDeleteAutoscalingPolicy type alias for index.
func NewDeleteAutoscalingPolicyFunc ¶
func NewDeleteAutoscalingPolicyFunc(tp elastictransport.Interface) NewDeleteAutoscalingPolicy
NewDeleteAutoscalingPolicyFunc returns a new instance of DeleteAutoscalingPolicy with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.