deletesynonymrule

package
v8.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Overview

Deletes a synonym rule in a synonym set

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 DeleteSynonymRule

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

func (DeleteSynonymRule) Do

Do runs the request through the transport, handle the response and returns a deletesynonymrule.Response

func (*DeleteSynonymRule) Header

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

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

func (*DeleteSynonymRule) HttpRequest

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

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

func (DeleteSynonymRule) IsSuccess

func (r DeleteSynonymRule) 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 (DeleteSynonymRule) Perform

func (r DeleteSynonymRule) Perform(ctx context.Context) (*http.Response, error)

Perform runs the http.Request through the provided transport and returns an http.Response.

func (*DeleteSynonymRule) RuleId

func (r *DeleteSynonymRule) RuleId(ruleid string) *DeleteSynonymRule

RuleId The id of the synonym rule to be deleted API Name: ruleid

func (*DeleteSynonymRule) SetId

func (r *DeleteSynonymRule) SetId(setid string) *DeleteSynonymRule

SetId The id of the synonym set to be updated API Name: setid

type NewDeleteSynonymRule

type NewDeleteSynonymRule func(setid, ruleid string) *DeleteSynonymRule

NewDeleteSynonymRule type alias for index.

func NewDeleteSynonymRuleFunc

func NewDeleteSynonymRuleFunc(tp elastictransport.Interface) NewDeleteSynonymRule

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

type Response

type Response struct {

	// ReloadAnalyzersDetails Updating synonyms in a synonym set reloads the associated analyzers.
	// This is the analyzers reloading result
	ReloadAnalyzersDetails types.ReloadResult `json:"reload_analyzers_details"`
	// Result Update operation result
	Result result.Result `json:"result"`
}

func NewResponse

func NewResponse() *Response

NewResponse returns a Response

Jump to

Keyboard shortcuts

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