Documentation ¶
Overview ¶
Deletes a model alias that refers to the trained model
Index ¶
- Variables
- type DeleteTrainedModelAlias
- func (r DeleteTrainedModelAlias) Do(ctx context.Context) (*Response, error)
- func (r *DeleteTrainedModelAlias) Header(key, value string) *DeleteTrainedModelAlias
- func (r *DeleteTrainedModelAlias) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r DeleteTrainedModelAlias) IsSuccess(ctx context.Context) (bool, error)
- func (r *DeleteTrainedModelAlias) ModelAlias(v string) *DeleteTrainedModelAlias
- func (r *DeleteTrainedModelAlias) ModelId(v string) *DeleteTrainedModelAlias
- func (r DeleteTrainedModelAlias) Perform(ctx context.Context) (*http.Response, error)
- type NewDeleteTrainedModelAlias
- 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 DeleteTrainedModelAlias ¶
type DeleteTrainedModelAlias struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *DeleteTrainedModelAlias
Deletes a model alias that refers to the trained model
https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models-aliases.html
func (DeleteTrainedModelAlias) Do ¶
func (r DeleteTrainedModelAlias) Do(ctx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a deletetrainedmodelalias.Response
func (*DeleteTrainedModelAlias) Header ¶
func (r *DeleteTrainedModelAlias) Header(key, value string) *DeleteTrainedModelAlias
Header set a key, value pair in the DeleteTrainedModelAlias headers map.
func (*DeleteTrainedModelAlias) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (DeleteTrainedModelAlias) IsSuccess ¶
func (r DeleteTrainedModelAlias) 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 (*DeleteTrainedModelAlias) ModelAlias ¶
func (r *DeleteTrainedModelAlias) ModelAlias(v string) *DeleteTrainedModelAlias
ModelAlias The model alias to delete. API Name: modelalias
func (*DeleteTrainedModelAlias) ModelId ¶
func (r *DeleteTrainedModelAlias) ModelId(v string) *DeleteTrainedModelAlias
ModelId The trained model ID to which the model alias refers. API Name: modelid
type NewDeleteTrainedModelAlias ¶
type NewDeleteTrainedModelAlias func(modelid, modelalias string) *DeleteTrainedModelAlias
NewDeleteTrainedModelAlias type alias for index.
func NewDeleteTrainedModelAliasFunc ¶
func NewDeleteTrainedModelAliasFunc(tp elastictransport.Interface) NewDeleteTrainedModelAlias
NewDeleteTrainedModelAliasFunc returns a new instance of DeleteTrainedModelAlias with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.