Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteVersionStack(params *DeleteVersionStackParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteVersionStackOK, error)
- func (a *Client) GetInstanceTypes(params *GetInstanceTypesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetInstanceTypesOK, error)
- func (a *Client) GetVersionStack(params *GetVersionStackParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetVersionStackOK, error)
- func (a *Client) GetVersionStacks(params *GetVersionStacksParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetVersionStacksOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateStackPacks(params *UpdateStackPacksParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateStackPacksOK, error)
- func (a *Client) UpdateVersionStack(params *UpdateVersionStackParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateVersionStackOK, error)
- type ClientOption
- type ClientService
- type DeleteVersionStackNotFound
- type DeleteVersionStackOK
- type DeleteVersionStackParams
- func NewDeleteVersionStackParams() *DeleteVersionStackParams
- func NewDeleteVersionStackParamsWithContext(ctx context.Context) *DeleteVersionStackParams
- func NewDeleteVersionStackParamsWithHTTPClient(client *http.Client) *DeleteVersionStackParams
- func NewDeleteVersionStackParamsWithTimeout(timeout time.Duration) *DeleteVersionStackParams
- func (o *DeleteVersionStackParams) SetContext(ctx context.Context)
- func (o *DeleteVersionStackParams) SetDefaults()
- func (o *DeleteVersionStackParams) SetHTTPClient(client *http.Client)
- func (o *DeleteVersionStackParams) SetTimeout(timeout time.Duration)
- func (o *DeleteVersionStackParams) SetVersion(version string)
- func (o *DeleteVersionStackParams) WithContext(ctx context.Context) *DeleteVersionStackParams
- func (o *DeleteVersionStackParams) WithDefaults() *DeleteVersionStackParams
- func (o *DeleteVersionStackParams) WithHTTPClient(client *http.Client) *DeleteVersionStackParams
- func (o *DeleteVersionStackParams) WithTimeout(timeout time.Duration) *DeleteVersionStackParams
- func (o *DeleteVersionStackParams) WithVersion(version string) *DeleteVersionStackParams
- func (o *DeleteVersionStackParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteVersionStackReader
- type DeleteVersionStackRetryWith
- type GetInstanceTypesOK
- type GetInstanceTypesParams
- func NewGetInstanceTypesParams() *GetInstanceTypesParams
- func NewGetInstanceTypesParamsWithContext(ctx context.Context) *GetInstanceTypesParams
- func NewGetInstanceTypesParamsWithHTTPClient(client *http.Client) *GetInstanceTypesParams
- func NewGetInstanceTypesParamsWithTimeout(timeout time.Duration) *GetInstanceTypesParams
- func (o *GetInstanceTypesParams) SetContext(ctx context.Context)
- func (o *GetInstanceTypesParams) SetDefaults()
- func (o *GetInstanceTypesParams) SetHTTPClient(client *http.Client)
- func (o *GetInstanceTypesParams) SetTimeout(timeout time.Duration)
- func (o *GetInstanceTypesParams) WithContext(ctx context.Context) *GetInstanceTypesParams
- func (o *GetInstanceTypesParams) WithDefaults() *GetInstanceTypesParams
- func (o *GetInstanceTypesParams) WithHTTPClient(client *http.Client) *GetInstanceTypesParams
- func (o *GetInstanceTypesParams) WithTimeout(timeout time.Duration) *GetInstanceTypesParams
- func (o *GetInstanceTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetInstanceTypesReader
- type GetVersionStackNotFound
- type GetVersionStackOK
- type GetVersionStackParams
- func NewGetVersionStackParams() *GetVersionStackParams
- func NewGetVersionStackParamsWithContext(ctx context.Context) *GetVersionStackParams
- func NewGetVersionStackParamsWithHTTPClient(client *http.Client) *GetVersionStackParams
- func NewGetVersionStackParamsWithTimeout(timeout time.Duration) *GetVersionStackParams
- func (o *GetVersionStackParams) SetContext(ctx context.Context)
- func (o *GetVersionStackParams) SetDefaults()
- func (o *GetVersionStackParams) SetHTTPClient(client *http.Client)
- func (o *GetVersionStackParams) SetTimeout(timeout time.Duration)
- func (o *GetVersionStackParams) SetVersion(version string)
- func (o *GetVersionStackParams) WithContext(ctx context.Context) *GetVersionStackParams
- func (o *GetVersionStackParams) WithDefaults() *GetVersionStackParams
- func (o *GetVersionStackParams) WithHTTPClient(client *http.Client) *GetVersionStackParams
- func (o *GetVersionStackParams) WithTimeout(timeout time.Duration) *GetVersionStackParams
- func (o *GetVersionStackParams) WithVersion(version string) *GetVersionStackParams
- func (o *GetVersionStackParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetVersionStackReader
- type GetVersionStacksOK
- type GetVersionStacksParams
- func NewGetVersionStacksParams() *GetVersionStacksParams
- func NewGetVersionStacksParamsWithContext(ctx context.Context) *GetVersionStacksParams
- func NewGetVersionStacksParamsWithHTTPClient(client *http.Client) *GetVersionStacksParams
- func NewGetVersionStacksParamsWithTimeout(timeout time.Duration) *GetVersionStacksParams
- func (o *GetVersionStacksParams) SetContext(ctx context.Context)
- func (o *GetVersionStacksParams) SetDefaults()
- func (o *GetVersionStacksParams) SetHTTPClient(client *http.Client)
- func (o *GetVersionStacksParams) SetShowDeleted(showDeleted *bool)
- func (o *GetVersionStacksParams) SetShowUnusable(showUnusable *bool)
- func (o *GetVersionStacksParams) SetTimeout(timeout time.Duration)
- func (o *GetVersionStacksParams) WithContext(ctx context.Context) *GetVersionStacksParams
- func (o *GetVersionStacksParams) WithDefaults() *GetVersionStacksParams
- func (o *GetVersionStacksParams) WithHTTPClient(client *http.Client) *GetVersionStacksParams
- func (o *GetVersionStacksParams) WithShowDeleted(showDeleted *bool) *GetVersionStacksParams
- func (o *GetVersionStacksParams) WithShowUnusable(showUnusable *bool) *GetVersionStacksParams
- func (o *GetVersionStacksParams) WithTimeout(timeout time.Duration) *GetVersionStacksParams
- func (o *GetVersionStacksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetVersionStacksReader
- type UpdateStackPacksBadRequest
- type UpdateStackPacksOK
- type UpdateStackPacksParams
- func NewUpdateStackPacksParams() *UpdateStackPacksParams
- func NewUpdateStackPacksParamsWithContext(ctx context.Context) *UpdateStackPacksParams
- func NewUpdateStackPacksParamsWithHTTPClient(client *http.Client) *UpdateStackPacksParams
- func NewUpdateStackPacksParamsWithTimeout(timeout time.Duration) *UpdateStackPacksParams
- func (o *UpdateStackPacksParams) SetContext(ctx context.Context)
- func (o *UpdateStackPacksParams) SetDefaults()
- func (o *UpdateStackPacksParams) SetFile(file runtime.NamedReadCloser)
- func (o *UpdateStackPacksParams) SetHTTPClient(client *http.Client)
- func (o *UpdateStackPacksParams) SetTimeout(timeout time.Duration)
- func (o *UpdateStackPacksParams) WithContext(ctx context.Context) *UpdateStackPacksParams
- func (o *UpdateStackPacksParams) WithDefaults() *UpdateStackPacksParams
- func (o *UpdateStackPacksParams) WithFile(file runtime.NamedReadCloser) *UpdateStackPacksParams
- func (o *UpdateStackPacksParams) WithHTTPClient(client *http.Client) *UpdateStackPacksParams
- func (o *UpdateStackPacksParams) WithTimeout(timeout time.Duration) *UpdateStackPacksParams
- func (o *UpdateStackPacksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateStackPacksReader
- type UpdateVersionStackNotFound
- type UpdateVersionStackOK
- type UpdateVersionStackParams
- func NewUpdateVersionStackParams() *UpdateVersionStackParams
- func NewUpdateVersionStackParamsWithContext(ctx context.Context) *UpdateVersionStackParams
- func NewUpdateVersionStackParamsWithHTTPClient(client *http.Client) *UpdateVersionStackParams
- func NewUpdateVersionStackParamsWithTimeout(timeout time.Duration) *UpdateVersionStackParams
- func (o *UpdateVersionStackParams) SetBody(body *models.StackVersionConfigPost)
- func (o *UpdateVersionStackParams) SetContext(ctx context.Context)
- func (o *UpdateVersionStackParams) SetDefaults()
- func (o *UpdateVersionStackParams) SetHTTPClient(client *http.Client)
- func (o *UpdateVersionStackParams) SetTimeout(timeout time.Duration)
- func (o *UpdateVersionStackParams) SetVersion(version string)
- func (o *UpdateVersionStackParams) WithBody(body *models.StackVersionConfigPost) *UpdateVersionStackParams
- func (o *UpdateVersionStackParams) WithContext(ctx context.Context) *UpdateVersionStackParams
- func (o *UpdateVersionStackParams) WithDefaults() *UpdateVersionStackParams
- func (o *UpdateVersionStackParams) WithHTTPClient(client *http.Client) *UpdateVersionStackParams
- func (o *UpdateVersionStackParams) WithTimeout(timeout time.Duration) *UpdateVersionStackParams
- func (o *UpdateVersionStackParams) WithVersion(version string) *UpdateVersionStackParams
- func (o *UpdateVersionStackParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateVersionStackReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for stack API
func (*Client) DeleteVersionStack ¶
func (a *Client) DeleteVersionStack(params *DeleteVersionStackParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteVersionStackOK, error)
DeleteVersionStack deletes stack version
Uses the `deleted` flag, which removes only that version of the Elastic Stack from the list of available versions. To restore the version, send an update request. For more information, see the PUT request.
func (*Client) GetInstanceTypes ¶
func (a *Client) GetInstanceTypes(params *GetInstanceTypesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInstanceTypesOK, error)
GetInstanceTypes gets instance types
Retrieves a list of all instance types.
func (*Client) GetVersionStack ¶
func (a *Client) GetVersionStack(params *GetVersionStackParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVersionStackOK, error)
GetVersionStack gets stack version
Retrieves the Elastic Stack version and template.
func (*Client) GetVersionStacks ¶
func (a *Client) GetVersionStacks(params *GetVersionStacksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVersionStacksOK, error)
GetVersionStacks gets stack versions
By default, retrieves only the available Elastic Stack versions. To retrieve all of the Elastic Stack versions, use the `show_deleted parameter`.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateStackPacks ¶
func (a *Client) UpdateStackPacks(params *UpdateStackPacksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateStackPacksOK, error)
UpdateStackPacks uploads stack pack Creates or updates an Elastic Stack pack and template.
The endpoint supports `multipart/form-data` requests, as well as `application/zip` and `application/octet-stream` requests with a binary body. The maximum size of the payload is 1Mb. When the archive contains an Elastic Stack configuration that is available through the API, the configuration and template are overwritten.
func (*Client) UpdateVersionStack ¶
func (a *Client) UpdateVersionStack(params *UpdateVersionStackParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateVersionStackOK, error)
UpdateVersionStack updates stack version
Updates the Elastic Stack version configuration.
type ClientOption ¶ added in v1.3.0
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { DeleteVersionStack(params *DeleteVersionStackParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteVersionStackOK, error) GetInstanceTypes(params *GetInstanceTypesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInstanceTypesOK, error) GetVersionStack(params *GetVersionStackParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVersionStackOK, error) GetVersionStacks(params *GetVersionStacksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetVersionStacksOK, error) UpdateStackPacks(params *UpdateStackPacksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateStackPacksOK, error) UpdateVersionStack(params *UpdateVersionStackParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateVersionStackOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new stack API client.
type DeleteVersionStackNotFound ¶
type DeleteVersionStackNotFound struct { /* The error codes associated with the response */ XCloudErrorCodes string Payload *models.BasicFailedReply }
DeleteVersionStackNotFound describes a response with status code 404, with default header values.
The Elastic Stack version can't be found. (code: `stackpack.version_not_found`)
func NewDeleteVersionStackNotFound ¶
func NewDeleteVersionStackNotFound() *DeleteVersionStackNotFound
NewDeleteVersionStackNotFound creates a DeleteVersionStackNotFound with default headers values
func (*DeleteVersionStackNotFound) Error ¶
func (o *DeleteVersionStackNotFound) Error() string
func (*DeleteVersionStackNotFound) GetPayload ¶
func (o *DeleteVersionStackNotFound) GetPayload() *models.BasicFailedReply
type DeleteVersionStackOK ¶
type DeleteVersionStackOK struct {
Payload models.EmptyResponse
}
DeleteVersionStackOK describes a response with status code 200, with default header values.
The `deleted` flag is applied to the specified Elastic Stack version.
func NewDeleteVersionStackOK ¶
func NewDeleteVersionStackOK() *DeleteVersionStackOK
NewDeleteVersionStackOK creates a DeleteVersionStackOK with default headers values
func (*DeleteVersionStackOK) Error ¶
func (o *DeleteVersionStackOK) Error() string
func (*DeleteVersionStackOK) GetPayload ¶
func (o *DeleteVersionStackOK) GetPayload() models.EmptyResponse
type DeleteVersionStackParams ¶
type DeleteVersionStackParams struct { /* Version. The Elastic Stack version. For example, `5.3.1` or `5.0.0-RC4`. */ Version string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteVersionStackParams contains all the parameters to send to the API endpoint
for the delete version stack operation. Typically these are written to a http.Request.
func NewDeleteVersionStackParams ¶
func NewDeleteVersionStackParams() *DeleteVersionStackParams
NewDeleteVersionStackParams creates a new DeleteVersionStackParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDeleteVersionStackParamsWithContext ¶
func NewDeleteVersionStackParamsWithContext(ctx context.Context) *DeleteVersionStackParams
NewDeleteVersionStackParamsWithContext creates a new DeleteVersionStackParams object with the ability to set a context for a request.
func NewDeleteVersionStackParamsWithHTTPClient ¶
func NewDeleteVersionStackParamsWithHTTPClient(client *http.Client) *DeleteVersionStackParams
NewDeleteVersionStackParamsWithHTTPClient creates a new DeleteVersionStackParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteVersionStackParamsWithTimeout ¶
func NewDeleteVersionStackParamsWithTimeout(timeout time.Duration) *DeleteVersionStackParams
NewDeleteVersionStackParamsWithTimeout creates a new DeleteVersionStackParams object with the ability to set a timeout on a request.
func (*DeleteVersionStackParams) SetContext ¶
func (o *DeleteVersionStackParams) SetContext(ctx context.Context)
SetContext adds the context to the delete version stack params
func (*DeleteVersionStackParams) SetDefaults ¶ added in v1.3.0
func (o *DeleteVersionStackParams) SetDefaults()
SetDefaults hydrates default values in the delete version stack params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteVersionStackParams) SetHTTPClient ¶
func (o *DeleteVersionStackParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete version stack params
func (*DeleteVersionStackParams) SetTimeout ¶
func (o *DeleteVersionStackParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete version stack params
func (*DeleteVersionStackParams) SetVersion ¶
func (o *DeleteVersionStackParams) SetVersion(version string)
SetVersion adds the version to the delete version stack params
func (*DeleteVersionStackParams) WithContext ¶
func (o *DeleteVersionStackParams) WithContext(ctx context.Context) *DeleteVersionStackParams
WithContext adds the context to the delete version stack params
func (*DeleteVersionStackParams) WithDefaults ¶ added in v1.3.0
func (o *DeleteVersionStackParams) WithDefaults() *DeleteVersionStackParams
WithDefaults hydrates default values in the delete version stack params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteVersionStackParams) WithHTTPClient ¶
func (o *DeleteVersionStackParams) WithHTTPClient(client *http.Client) *DeleteVersionStackParams
WithHTTPClient adds the HTTPClient to the delete version stack params
func (*DeleteVersionStackParams) WithTimeout ¶
func (o *DeleteVersionStackParams) WithTimeout(timeout time.Duration) *DeleteVersionStackParams
WithTimeout adds the timeout to the delete version stack params
func (*DeleteVersionStackParams) WithVersion ¶
func (o *DeleteVersionStackParams) WithVersion(version string) *DeleteVersionStackParams
WithVersion adds the version to the delete version stack params
func (*DeleteVersionStackParams) WriteToRequest ¶
func (o *DeleteVersionStackParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteVersionStackReader ¶
type DeleteVersionStackReader struct {
// contains filtered or unexported fields
}
DeleteVersionStackReader is a Reader for the DeleteVersionStack structure.
func (*DeleteVersionStackReader) ReadResponse ¶
func (o *DeleteVersionStackReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteVersionStackRetryWith ¶
type DeleteVersionStackRetryWith struct { /* The error codes associated with the response */ XCloudErrorCodes string Payload *models.BasicFailedReply }
DeleteVersionStackRetryWith describes a response with status code 449, with default header values.
Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`)
func NewDeleteVersionStackRetryWith ¶
func NewDeleteVersionStackRetryWith() *DeleteVersionStackRetryWith
NewDeleteVersionStackRetryWith creates a DeleteVersionStackRetryWith with default headers values
func (*DeleteVersionStackRetryWith) Error ¶
func (o *DeleteVersionStackRetryWith) Error() string
func (*DeleteVersionStackRetryWith) GetPayload ¶
func (o *DeleteVersionStackRetryWith) GetPayload() *models.BasicFailedReply
type GetInstanceTypesOK ¶
type GetInstanceTypesOK struct {
Payload []*models.InstanceTypeResource
}
GetInstanceTypesOK describes a response with status code 200, with default header values.
List of node types
func NewGetInstanceTypesOK ¶
func NewGetInstanceTypesOK() *GetInstanceTypesOK
NewGetInstanceTypesOK creates a GetInstanceTypesOK with default headers values
func (*GetInstanceTypesOK) Error ¶
func (o *GetInstanceTypesOK) Error() string
func (*GetInstanceTypesOK) GetPayload ¶
func (o *GetInstanceTypesOK) GetPayload() []*models.InstanceTypeResource
type GetInstanceTypesParams ¶
type GetInstanceTypesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetInstanceTypesParams contains all the parameters to send to the API endpoint
for the get instance types operation. Typically these are written to a http.Request.
func NewGetInstanceTypesParams ¶
func NewGetInstanceTypesParams() *GetInstanceTypesParams
NewGetInstanceTypesParams creates a new GetInstanceTypesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetInstanceTypesParamsWithContext ¶
func NewGetInstanceTypesParamsWithContext(ctx context.Context) *GetInstanceTypesParams
NewGetInstanceTypesParamsWithContext creates a new GetInstanceTypesParams object with the ability to set a context for a request.
func NewGetInstanceTypesParamsWithHTTPClient ¶
func NewGetInstanceTypesParamsWithHTTPClient(client *http.Client) *GetInstanceTypesParams
NewGetInstanceTypesParamsWithHTTPClient creates a new GetInstanceTypesParams object with the ability to set a custom HTTPClient for a request.
func NewGetInstanceTypesParamsWithTimeout ¶
func NewGetInstanceTypesParamsWithTimeout(timeout time.Duration) *GetInstanceTypesParams
NewGetInstanceTypesParamsWithTimeout creates a new GetInstanceTypesParams object with the ability to set a timeout on a request.
func (*GetInstanceTypesParams) SetContext ¶
func (o *GetInstanceTypesParams) SetContext(ctx context.Context)
SetContext adds the context to the get instance types params
func (*GetInstanceTypesParams) SetDefaults ¶ added in v1.3.0
func (o *GetInstanceTypesParams) SetDefaults()
SetDefaults hydrates default values in the get instance types params (not the query body).
All values with no default are reset to their zero value.
func (*GetInstanceTypesParams) SetHTTPClient ¶
func (o *GetInstanceTypesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get instance types params
func (*GetInstanceTypesParams) SetTimeout ¶
func (o *GetInstanceTypesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get instance types params
func (*GetInstanceTypesParams) WithContext ¶
func (o *GetInstanceTypesParams) WithContext(ctx context.Context) *GetInstanceTypesParams
WithContext adds the context to the get instance types params
func (*GetInstanceTypesParams) WithDefaults ¶ added in v1.3.0
func (o *GetInstanceTypesParams) WithDefaults() *GetInstanceTypesParams
WithDefaults hydrates default values in the get instance types params (not the query body).
All values with no default are reset to their zero value.
func (*GetInstanceTypesParams) WithHTTPClient ¶
func (o *GetInstanceTypesParams) WithHTTPClient(client *http.Client) *GetInstanceTypesParams
WithHTTPClient adds the HTTPClient to the get instance types params
func (*GetInstanceTypesParams) WithTimeout ¶
func (o *GetInstanceTypesParams) WithTimeout(timeout time.Duration) *GetInstanceTypesParams
WithTimeout adds the timeout to the get instance types params
func (*GetInstanceTypesParams) WriteToRequest ¶
func (o *GetInstanceTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetInstanceTypesReader ¶
type GetInstanceTypesReader struct {
// contains filtered or unexported fields
}
GetInstanceTypesReader is a Reader for the GetInstanceTypes structure.
func (*GetInstanceTypesReader) ReadResponse ¶
func (o *GetInstanceTypesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetVersionStackNotFound ¶
type GetVersionStackNotFound struct { /* The error codes associated with the response */ XCloudErrorCodes string Payload *models.BasicFailedReply }
GetVersionStackNotFound describes a response with status code 404, with default header values.
The Elastic Stack version can't be found. (code: `stackpack.version_not_found`)
func NewGetVersionStackNotFound ¶
func NewGetVersionStackNotFound() *GetVersionStackNotFound
NewGetVersionStackNotFound creates a GetVersionStackNotFound with default headers values
func (*GetVersionStackNotFound) Error ¶
func (o *GetVersionStackNotFound) Error() string
func (*GetVersionStackNotFound) GetPayload ¶
func (o *GetVersionStackNotFound) GetPayload() *models.BasicFailedReply
type GetVersionStackOK ¶
type GetVersionStackOK struct {
Payload *models.StackVersionConfig
}
GetVersionStackOK describes a response with status code 200, with default header values.
The Elastic Stack version is found.
func NewGetVersionStackOK ¶
func NewGetVersionStackOK() *GetVersionStackOK
NewGetVersionStackOK creates a GetVersionStackOK with default headers values
func (*GetVersionStackOK) Error ¶
func (o *GetVersionStackOK) Error() string
func (*GetVersionStackOK) GetPayload ¶
func (o *GetVersionStackOK) GetPayload() *models.StackVersionConfig
type GetVersionStackParams ¶
type GetVersionStackParams struct { /* Version. The Elastic Stack version. For example, `5.3.1` or `5.0.0-RC4`. */ Version string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetVersionStackParams contains all the parameters to send to the API endpoint
for the get version stack operation. Typically these are written to a http.Request.
func NewGetVersionStackParams ¶
func NewGetVersionStackParams() *GetVersionStackParams
NewGetVersionStackParams creates a new GetVersionStackParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetVersionStackParamsWithContext ¶
func NewGetVersionStackParamsWithContext(ctx context.Context) *GetVersionStackParams
NewGetVersionStackParamsWithContext creates a new GetVersionStackParams object with the ability to set a context for a request.
func NewGetVersionStackParamsWithHTTPClient ¶
func NewGetVersionStackParamsWithHTTPClient(client *http.Client) *GetVersionStackParams
NewGetVersionStackParamsWithHTTPClient creates a new GetVersionStackParams object with the ability to set a custom HTTPClient for a request.
func NewGetVersionStackParamsWithTimeout ¶
func NewGetVersionStackParamsWithTimeout(timeout time.Duration) *GetVersionStackParams
NewGetVersionStackParamsWithTimeout creates a new GetVersionStackParams object with the ability to set a timeout on a request.
func (*GetVersionStackParams) SetContext ¶
func (o *GetVersionStackParams) SetContext(ctx context.Context)
SetContext adds the context to the get version stack params
func (*GetVersionStackParams) SetDefaults ¶ added in v1.3.0
func (o *GetVersionStackParams) SetDefaults()
SetDefaults hydrates default values in the get version stack params (not the query body).
All values with no default are reset to their zero value.
func (*GetVersionStackParams) SetHTTPClient ¶
func (o *GetVersionStackParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get version stack params
func (*GetVersionStackParams) SetTimeout ¶
func (o *GetVersionStackParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get version stack params
func (*GetVersionStackParams) SetVersion ¶
func (o *GetVersionStackParams) SetVersion(version string)
SetVersion adds the version to the get version stack params
func (*GetVersionStackParams) WithContext ¶
func (o *GetVersionStackParams) WithContext(ctx context.Context) *GetVersionStackParams
WithContext adds the context to the get version stack params
func (*GetVersionStackParams) WithDefaults ¶ added in v1.3.0
func (o *GetVersionStackParams) WithDefaults() *GetVersionStackParams
WithDefaults hydrates default values in the get version stack params (not the query body).
All values with no default are reset to their zero value.
func (*GetVersionStackParams) WithHTTPClient ¶
func (o *GetVersionStackParams) WithHTTPClient(client *http.Client) *GetVersionStackParams
WithHTTPClient adds the HTTPClient to the get version stack params
func (*GetVersionStackParams) WithTimeout ¶
func (o *GetVersionStackParams) WithTimeout(timeout time.Duration) *GetVersionStackParams
WithTimeout adds the timeout to the get version stack params
func (*GetVersionStackParams) WithVersion ¶
func (o *GetVersionStackParams) WithVersion(version string) *GetVersionStackParams
WithVersion adds the version to the get version stack params
func (*GetVersionStackParams) WriteToRequest ¶
func (o *GetVersionStackParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetVersionStackReader ¶
type GetVersionStackReader struct {
// contains filtered or unexported fields
}
GetVersionStackReader is a Reader for the GetVersionStack structure.
func (*GetVersionStackReader) ReadResponse ¶
func (o *GetVersionStackReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetVersionStacksOK ¶
type GetVersionStacksOK struct {
Payload *models.StackVersionConfigs
}
GetVersionStacksOK describes a response with status code 200, with default header values.
The list of all available Elastic Stack versions are retrieved, including the template version and structure.
func NewGetVersionStacksOK ¶
func NewGetVersionStacksOK() *GetVersionStacksOK
NewGetVersionStacksOK creates a GetVersionStacksOK with default headers values
func (*GetVersionStacksOK) Error ¶
func (o *GetVersionStacksOK) Error() string
func (*GetVersionStacksOK) GetPayload ¶
func (o *GetVersionStacksOK) GetPayload() *models.StackVersionConfigs
type GetVersionStacksParams ¶
type GetVersionStacksParams struct { /* ShowDeleted. Whether to show deleted stack versions or not */ ShowDeleted *bool /* ShowUnusable. Whether to show versions that are unusable by the authenticated user */ ShowUnusable *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetVersionStacksParams contains all the parameters to send to the API endpoint
for the get version stacks operation. Typically these are written to a http.Request.
func NewGetVersionStacksParams ¶
func NewGetVersionStacksParams() *GetVersionStacksParams
NewGetVersionStacksParams creates a new GetVersionStacksParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetVersionStacksParamsWithContext ¶
func NewGetVersionStacksParamsWithContext(ctx context.Context) *GetVersionStacksParams
NewGetVersionStacksParamsWithContext creates a new GetVersionStacksParams object with the ability to set a context for a request.
func NewGetVersionStacksParamsWithHTTPClient ¶
func NewGetVersionStacksParamsWithHTTPClient(client *http.Client) *GetVersionStacksParams
NewGetVersionStacksParamsWithHTTPClient creates a new GetVersionStacksParams object with the ability to set a custom HTTPClient for a request.
func NewGetVersionStacksParamsWithTimeout ¶
func NewGetVersionStacksParamsWithTimeout(timeout time.Duration) *GetVersionStacksParams
NewGetVersionStacksParamsWithTimeout creates a new GetVersionStacksParams object with the ability to set a timeout on a request.
func (*GetVersionStacksParams) SetContext ¶
func (o *GetVersionStacksParams) SetContext(ctx context.Context)
SetContext adds the context to the get version stacks params
func (*GetVersionStacksParams) SetDefaults ¶ added in v1.3.0
func (o *GetVersionStacksParams) SetDefaults()
SetDefaults hydrates default values in the get version stacks params (not the query body).
All values with no default are reset to their zero value.
func (*GetVersionStacksParams) SetHTTPClient ¶
func (o *GetVersionStacksParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get version stacks params
func (*GetVersionStacksParams) SetShowDeleted ¶
func (o *GetVersionStacksParams) SetShowDeleted(showDeleted *bool)
SetShowDeleted adds the showDeleted to the get version stacks params
func (*GetVersionStacksParams) SetShowUnusable ¶
func (o *GetVersionStacksParams) SetShowUnusable(showUnusable *bool)
SetShowUnusable adds the showUnusable to the get version stacks params
func (*GetVersionStacksParams) SetTimeout ¶
func (o *GetVersionStacksParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get version stacks params
func (*GetVersionStacksParams) WithContext ¶
func (o *GetVersionStacksParams) WithContext(ctx context.Context) *GetVersionStacksParams
WithContext adds the context to the get version stacks params
func (*GetVersionStacksParams) WithDefaults ¶ added in v1.3.0
func (o *GetVersionStacksParams) WithDefaults() *GetVersionStacksParams
WithDefaults hydrates default values in the get version stacks params (not the query body).
All values with no default are reset to their zero value.
func (*GetVersionStacksParams) WithHTTPClient ¶
func (o *GetVersionStacksParams) WithHTTPClient(client *http.Client) *GetVersionStacksParams
WithHTTPClient adds the HTTPClient to the get version stacks params
func (*GetVersionStacksParams) WithShowDeleted ¶
func (o *GetVersionStacksParams) WithShowDeleted(showDeleted *bool) *GetVersionStacksParams
WithShowDeleted adds the showDeleted to the get version stacks params
func (*GetVersionStacksParams) WithShowUnusable ¶
func (o *GetVersionStacksParams) WithShowUnusable(showUnusable *bool) *GetVersionStacksParams
WithShowUnusable adds the showUnusable to the get version stacks params
func (*GetVersionStacksParams) WithTimeout ¶
func (o *GetVersionStacksParams) WithTimeout(timeout time.Duration) *GetVersionStacksParams
WithTimeout adds the timeout to the get version stacks params
func (*GetVersionStacksParams) WriteToRequest ¶
func (o *GetVersionStacksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetVersionStacksReader ¶
type GetVersionStacksReader struct {
// contains filtered or unexported fields
}
GetVersionStacksReader is a Reader for the GetVersionStacks structure.
func (*GetVersionStacksReader) ReadResponse ¶
func (o *GetVersionStacksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateStackPacksBadRequest ¶
type UpdateStackPacksBadRequest struct { /* The error codes associated with the response */ XCloudErrorCodes string Payload *models.StackVersionArchiveProcessingResult }
UpdateStackPacksBadRequest describes a response with status code 400, with default header values. * There is an error in the file. Choose a different file, then try again. (code: `stackpack.bad_archive`)
* Some unexpected error occurred. (code: `stackpack.unknown_internal_error`)
func NewUpdateStackPacksBadRequest ¶
func NewUpdateStackPacksBadRequest() *UpdateStackPacksBadRequest
NewUpdateStackPacksBadRequest creates a UpdateStackPacksBadRequest with default headers values
func (*UpdateStackPacksBadRequest) Error ¶
func (o *UpdateStackPacksBadRequest) Error() string
func (*UpdateStackPacksBadRequest) GetPayload ¶
func (o *UpdateStackPacksBadRequest) GetPayload() *models.StackVersionArchiveProcessingResult
type UpdateStackPacksOK ¶
type UpdateStackPacksOK struct {
Payload *models.StackVersionArchiveProcessingResult
}
UpdateStackPacksOK describes a response with status code 200, with default header values.
The Elastic Stack pack successfully processed.
func NewUpdateStackPacksOK ¶
func NewUpdateStackPacksOK() *UpdateStackPacksOK
NewUpdateStackPacksOK creates a UpdateStackPacksOK with default headers values
func (*UpdateStackPacksOK) Error ¶
func (o *UpdateStackPacksOK) Error() string
func (*UpdateStackPacksOK) GetPayload ¶
func (o *UpdateStackPacksOK) GetPayload() *models.StackVersionArchiveProcessingResult
type UpdateStackPacksParams ¶
type UpdateStackPacksParams struct { /* File. Zip file that contains one or multiple stack configurations */ File runtime.NamedReadCloser Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateStackPacksParams contains all the parameters to send to the API endpoint
for the update stack packs operation. Typically these are written to a http.Request.
func NewUpdateStackPacksParams ¶
func NewUpdateStackPacksParams() *UpdateStackPacksParams
NewUpdateStackPacksParams creates a new UpdateStackPacksParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewUpdateStackPacksParamsWithContext ¶
func NewUpdateStackPacksParamsWithContext(ctx context.Context) *UpdateStackPacksParams
NewUpdateStackPacksParamsWithContext creates a new UpdateStackPacksParams object with the ability to set a context for a request.
func NewUpdateStackPacksParamsWithHTTPClient ¶
func NewUpdateStackPacksParamsWithHTTPClient(client *http.Client) *UpdateStackPacksParams
NewUpdateStackPacksParamsWithHTTPClient creates a new UpdateStackPacksParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateStackPacksParamsWithTimeout ¶
func NewUpdateStackPacksParamsWithTimeout(timeout time.Duration) *UpdateStackPacksParams
NewUpdateStackPacksParamsWithTimeout creates a new UpdateStackPacksParams object with the ability to set a timeout on a request.
func (*UpdateStackPacksParams) SetContext ¶
func (o *UpdateStackPacksParams) SetContext(ctx context.Context)
SetContext adds the context to the update stack packs params
func (*UpdateStackPacksParams) SetDefaults ¶ added in v1.3.0
func (o *UpdateStackPacksParams) SetDefaults()
SetDefaults hydrates default values in the update stack packs params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateStackPacksParams) SetFile ¶
func (o *UpdateStackPacksParams) SetFile(file runtime.NamedReadCloser)
SetFile adds the file to the update stack packs params
func (*UpdateStackPacksParams) SetHTTPClient ¶
func (o *UpdateStackPacksParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update stack packs params
func (*UpdateStackPacksParams) SetTimeout ¶
func (o *UpdateStackPacksParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update stack packs params
func (*UpdateStackPacksParams) WithContext ¶
func (o *UpdateStackPacksParams) WithContext(ctx context.Context) *UpdateStackPacksParams
WithContext adds the context to the update stack packs params
func (*UpdateStackPacksParams) WithDefaults ¶ added in v1.3.0
func (o *UpdateStackPacksParams) WithDefaults() *UpdateStackPacksParams
WithDefaults hydrates default values in the update stack packs params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateStackPacksParams) WithFile ¶
func (o *UpdateStackPacksParams) WithFile(file runtime.NamedReadCloser) *UpdateStackPacksParams
WithFile adds the file to the update stack packs params
func (*UpdateStackPacksParams) WithHTTPClient ¶
func (o *UpdateStackPacksParams) WithHTTPClient(client *http.Client) *UpdateStackPacksParams
WithHTTPClient adds the HTTPClient to the update stack packs params
func (*UpdateStackPacksParams) WithTimeout ¶
func (o *UpdateStackPacksParams) WithTimeout(timeout time.Duration) *UpdateStackPacksParams
WithTimeout adds the timeout to the update stack packs params
func (*UpdateStackPacksParams) WriteToRequest ¶
func (o *UpdateStackPacksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateStackPacksReader ¶
type UpdateStackPacksReader struct {
// contains filtered or unexported fields
}
UpdateStackPacksReader is a Reader for the UpdateStackPacks structure.
func (*UpdateStackPacksReader) ReadResponse ¶
func (o *UpdateStackPacksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateVersionStackNotFound ¶
type UpdateVersionStackNotFound struct { /* The error codes associated with the response */ XCloudErrorCodes string Payload *models.BasicFailedReply }
UpdateVersionStackNotFound describes a response with status code 404, with default header values.
The Elastic Stack version can't be found. (code: `stackpack.missing_platform_version`)
func NewUpdateVersionStackNotFound ¶
func NewUpdateVersionStackNotFound() *UpdateVersionStackNotFound
NewUpdateVersionStackNotFound creates a UpdateVersionStackNotFound with default headers values
func (*UpdateVersionStackNotFound) Error ¶
func (o *UpdateVersionStackNotFound) Error() string
func (*UpdateVersionStackNotFound) GetPayload ¶
func (o *UpdateVersionStackNotFound) GetPayload() *models.BasicFailedReply
type UpdateVersionStackOK ¶
type UpdateVersionStackOK struct {
Payload *models.StackVersionConfig
}
UpdateVersionStackOK describes a response with status code 200, with default header values.
The Elastic Stack version successfully updated.
func NewUpdateVersionStackOK ¶
func NewUpdateVersionStackOK() *UpdateVersionStackOK
NewUpdateVersionStackOK creates a UpdateVersionStackOK with default headers values
func (*UpdateVersionStackOK) Error ¶
func (o *UpdateVersionStackOK) Error() string
func (*UpdateVersionStackOK) GetPayload ¶
func (o *UpdateVersionStackOK) GetPayload() *models.StackVersionConfig
type UpdateVersionStackParams ¶
type UpdateVersionStackParams struct { /* Body. Elastic Stack configuration object */ Body *models.StackVersionConfigPost /* Version. The Elastic Stack version. For example, `5.3.1` or `5.0.0-RC4`. */ Version string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateVersionStackParams contains all the parameters to send to the API endpoint
for the update version stack operation. Typically these are written to a http.Request.
func NewUpdateVersionStackParams ¶
func NewUpdateVersionStackParams() *UpdateVersionStackParams
NewUpdateVersionStackParams creates a new UpdateVersionStackParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewUpdateVersionStackParamsWithContext ¶
func NewUpdateVersionStackParamsWithContext(ctx context.Context) *UpdateVersionStackParams
NewUpdateVersionStackParamsWithContext creates a new UpdateVersionStackParams object with the ability to set a context for a request.
func NewUpdateVersionStackParamsWithHTTPClient ¶
func NewUpdateVersionStackParamsWithHTTPClient(client *http.Client) *UpdateVersionStackParams
NewUpdateVersionStackParamsWithHTTPClient creates a new UpdateVersionStackParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateVersionStackParamsWithTimeout ¶
func NewUpdateVersionStackParamsWithTimeout(timeout time.Duration) *UpdateVersionStackParams
NewUpdateVersionStackParamsWithTimeout creates a new UpdateVersionStackParams object with the ability to set a timeout on a request.
func (*UpdateVersionStackParams) SetBody ¶
func (o *UpdateVersionStackParams) SetBody(body *models.StackVersionConfigPost)
SetBody adds the body to the update version stack params
func (*UpdateVersionStackParams) SetContext ¶
func (o *UpdateVersionStackParams) SetContext(ctx context.Context)
SetContext adds the context to the update version stack params
func (*UpdateVersionStackParams) SetDefaults ¶ added in v1.3.0
func (o *UpdateVersionStackParams) SetDefaults()
SetDefaults hydrates default values in the update version stack params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateVersionStackParams) SetHTTPClient ¶
func (o *UpdateVersionStackParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update version stack params
func (*UpdateVersionStackParams) SetTimeout ¶
func (o *UpdateVersionStackParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update version stack params
func (*UpdateVersionStackParams) SetVersion ¶
func (o *UpdateVersionStackParams) SetVersion(version string)
SetVersion adds the version to the update version stack params
func (*UpdateVersionStackParams) WithBody ¶
func (o *UpdateVersionStackParams) WithBody(body *models.StackVersionConfigPost) *UpdateVersionStackParams
WithBody adds the body to the update version stack params
func (*UpdateVersionStackParams) WithContext ¶
func (o *UpdateVersionStackParams) WithContext(ctx context.Context) *UpdateVersionStackParams
WithContext adds the context to the update version stack params
func (*UpdateVersionStackParams) WithDefaults ¶ added in v1.3.0
func (o *UpdateVersionStackParams) WithDefaults() *UpdateVersionStackParams
WithDefaults hydrates default values in the update version stack params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateVersionStackParams) WithHTTPClient ¶
func (o *UpdateVersionStackParams) WithHTTPClient(client *http.Client) *UpdateVersionStackParams
WithHTTPClient adds the HTTPClient to the update version stack params
func (*UpdateVersionStackParams) WithTimeout ¶
func (o *UpdateVersionStackParams) WithTimeout(timeout time.Duration) *UpdateVersionStackParams
WithTimeout adds the timeout to the update version stack params
func (*UpdateVersionStackParams) WithVersion ¶
func (o *UpdateVersionStackParams) WithVersion(version string) *UpdateVersionStackParams
WithVersion adds the version to the update version stack params
func (*UpdateVersionStackParams) WriteToRequest ¶
func (o *UpdateVersionStackParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateVersionStackReader ¶
type UpdateVersionStackReader struct {
// contains filtered or unexported fields
}
UpdateVersionStackReader is a Reader for the UpdateVersionStack structure.
func (*UpdateVersionStackReader) ReadResponse ¶
func (o *UpdateVersionStackReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- delete_version_stack_parameters.go
- delete_version_stack_responses.go
- get_instance_types_parameters.go
- get_instance_types_responses.go
- get_version_stack_parameters.go
- get_version_stack_responses.go
- get_version_stacks_parameters.go
- get_version_stacks_responses.go
- stack_client.go
- update_stack_packs_parameters.go
- update_stack_packs_responses.go
- update_version_stack_parameters.go
- update_version_stack_responses.go