stack

package
v1.2.30 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

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) Code

func (o *DeleteVersionStackNotFound) Code() int

Code gets the status code for the delete version stack not found response

func (*DeleteVersionStackNotFound) Error

func (*DeleteVersionStackNotFound) GetPayload

func (*DeleteVersionStackNotFound) IsClientError

func (o *DeleteVersionStackNotFound) IsClientError() bool

IsClientError returns true when this delete version stack not found response has a 4xx status code

func (*DeleteVersionStackNotFound) IsCode

func (o *DeleteVersionStackNotFound) IsCode(code int) bool

IsCode returns true when this delete version stack not found response a status code equal to that given

func (*DeleteVersionStackNotFound) IsRedirect

func (o *DeleteVersionStackNotFound) IsRedirect() bool

IsRedirect returns true when this delete version stack not found response has a 3xx status code

func (*DeleteVersionStackNotFound) IsServerError

func (o *DeleteVersionStackNotFound) IsServerError() bool

IsServerError returns true when this delete version stack not found response has a 5xx status code

func (*DeleteVersionStackNotFound) IsSuccess

func (o *DeleteVersionStackNotFound) IsSuccess() bool

IsSuccess returns true when this delete version stack not found response has a 2xx status code

func (*DeleteVersionStackNotFound) String

func (o *DeleteVersionStackNotFound) String() string

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) Code

func (o *DeleteVersionStackOK) Code() int

Code gets the status code for the delete version stack o k response

func (*DeleteVersionStackOK) Error

func (o *DeleteVersionStackOK) Error() string

func (*DeleteVersionStackOK) GetPayload

func (o *DeleteVersionStackOK) GetPayload() models.EmptyResponse

func (*DeleteVersionStackOK) IsClientError

func (o *DeleteVersionStackOK) IsClientError() bool

IsClientError returns true when this delete version stack o k response has a 4xx status code

func (*DeleteVersionStackOK) IsCode

func (o *DeleteVersionStackOK) IsCode(code int) bool

IsCode returns true when this delete version stack o k response a status code equal to that given

func (*DeleteVersionStackOK) IsRedirect

func (o *DeleteVersionStackOK) IsRedirect() bool

IsRedirect returns true when this delete version stack o k response has a 3xx status code

func (*DeleteVersionStackOK) IsServerError

func (o *DeleteVersionStackOK) IsServerError() bool

IsServerError returns true when this delete version stack o k response has a 5xx status code

func (*DeleteVersionStackOK) IsSuccess

func (o *DeleteVersionStackOK) IsSuccess() bool

IsSuccess returns true when this delete version stack o k response has a 2xx status code

func (*DeleteVersionStackOK) String

func (o *DeleteVersionStackOK) String() string

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

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

WithContext adds the context to the delete version stack params

func (*DeleteVersionStackParams) WithDefaults

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

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

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 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) Code

func (o *GetInstanceTypesOK) Code() int

Code gets the status code for the get instance types o k response

func (*GetInstanceTypesOK) Error

func (o *GetInstanceTypesOK) Error() string

func (*GetInstanceTypesOK) GetPayload

func (o *GetInstanceTypesOK) GetPayload() []*models.InstanceTypeResource

func (*GetInstanceTypesOK) IsClientError

func (o *GetInstanceTypesOK) IsClientError() bool

IsClientError returns true when this get instance types o k response has a 4xx status code

func (*GetInstanceTypesOK) IsCode

func (o *GetInstanceTypesOK) IsCode(code int) bool

IsCode returns true when this get instance types o k response a status code equal to that given

func (*GetInstanceTypesOK) IsRedirect

func (o *GetInstanceTypesOK) IsRedirect() bool

IsRedirect returns true when this get instance types o k response has a 3xx status code

func (*GetInstanceTypesOK) IsServerError

func (o *GetInstanceTypesOK) IsServerError() bool

IsServerError returns true when this get instance types o k response has a 5xx status code

func (*GetInstanceTypesOK) IsSuccess

func (o *GetInstanceTypesOK) IsSuccess() bool

IsSuccess returns true when this get instance types o k response has a 2xx status code

func (*GetInstanceTypesOK) String

func (o *GetInstanceTypesOK) String() string

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

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

WithContext adds the context to the get instance types params

func (*GetInstanceTypesParams) WithDefaults

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

WithTimeout adds the timeout to the get instance types params

func (*GetInstanceTypesParams) WriteToRequest

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) Code

func (o *GetVersionStackNotFound) Code() int

Code gets the status code for the get version stack not found response

func (*GetVersionStackNotFound) Error

func (o *GetVersionStackNotFound) Error() string

func (*GetVersionStackNotFound) GetPayload

func (*GetVersionStackNotFound) IsClientError

func (o *GetVersionStackNotFound) IsClientError() bool

IsClientError returns true when this get version stack not found response has a 4xx status code

func (*GetVersionStackNotFound) IsCode

func (o *GetVersionStackNotFound) IsCode(code int) bool

IsCode returns true when this get version stack not found response a status code equal to that given

func (*GetVersionStackNotFound) IsRedirect

func (o *GetVersionStackNotFound) IsRedirect() bool

IsRedirect returns true when this get version stack not found response has a 3xx status code

func (*GetVersionStackNotFound) IsServerError

func (o *GetVersionStackNotFound) IsServerError() bool

IsServerError returns true when this get version stack not found response has a 5xx status code

func (*GetVersionStackNotFound) IsSuccess

func (o *GetVersionStackNotFound) IsSuccess() bool

IsSuccess returns true when this get version stack not found response has a 2xx status code

func (*GetVersionStackNotFound) String

func (o *GetVersionStackNotFound) String() string

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) Code

func (o *GetVersionStackOK) Code() int

Code gets the status code for the get version stack o k response

func (*GetVersionStackOK) Error

func (o *GetVersionStackOK) Error() string

func (*GetVersionStackOK) GetPayload

func (o *GetVersionStackOK) GetPayload() *models.StackVersionConfig

func (*GetVersionStackOK) IsClientError

func (o *GetVersionStackOK) IsClientError() bool

IsClientError returns true when this get version stack o k response has a 4xx status code

func (*GetVersionStackOK) IsCode

func (o *GetVersionStackOK) IsCode(code int) bool

IsCode returns true when this get version stack o k response a status code equal to that given

func (*GetVersionStackOK) IsRedirect

func (o *GetVersionStackOK) IsRedirect() bool

IsRedirect returns true when this get version stack o k response has a 3xx status code

func (*GetVersionStackOK) IsServerError

func (o *GetVersionStackOK) IsServerError() bool

IsServerError returns true when this get version stack o k response has a 5xx status code

func (*GetVersionStackOK) IsSuccess

func (o *GetVersionStackOK) IsSuccess() bool

IsSuccess returns true when this get version stack o k response has a 2xx status code

func (*GetVersionStackOK) String

func (o *GetVersionStackOK) String() string

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

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

WithContext adds the context to the get version stack params

func (*GetVersionStackParams) WithDefaults

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) Code

func (o *GetVersionStacksOK) Code() int

Code gets the status code for the get version stacks o k response

func (*GetVersionStacksOK) Error

func (o *GetVersionStacksOK) Error() string

func (*GetVersionStacksOK) GetPayload

func (*GetVersionStacksOK) IsClientError

func (o *GetVersionStacksOK) IsClientError() bool

IsClientError returns true when this get version stacks o k response has a 4xx status code

func (*GetVersionStacksOK) IsCode

func (o *GetVersionStacksOK) IsCode(code int) bool

IsCode returns true when this get version stacks o k response a status code equal to that given

func (*GetVersionStacksOK) IsRedirect

func (o *GetVersionStacksOK) IsRedirect() bool

IsRedirect returns true when this get version stacks o k response has a 3xx status code

func (*GetVersionStacksOK) IsServerError

func (o *GetVersionStacksOK) IsServerError() bool

IsServerError returns true when this get version stacks o k response has a 5xx status code

func (*GetVersionStacksOK) IsSuccess

func (o *GetVersionStacksOK) IsSuccess() bool

IsSuccess returns true when this get version stacks o k response has a 2xx status code

func (*GetVersionStacksOK) String

func (o *GetVersionStacksOK) String() string

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

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

WithContext adds the context to the get version stacks params

func (*GetVersionStacksParams) WithDefaults

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

WithTimeout adds the timeout to the get version stacks params

func (*GetVersionStacksParams) WriteToRequest

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) Code

func (o *UpdateStackPacksBadRequest) Code() int

Code gets the status code for the update stack packs bad request response

func (*UpdateStackPacksBadRequest) Error

func (*UpdateStackPacksBadRequest) GetPayload

func (*UpdateStackPacksBadRequest) IsClientError

func (o *UpdateStackPacksBadRequest) IsClientError() bool

IsClientError returns true when this update stack packs bad request response has a 4xx status code

func (*UpdateStackPacksBadRequest) IsCode

func (o *UpdateStackPacksBadRequest) IsCode(code int) bool

IsCode returns true when this update stack packs bad request response a status code equal to that given

func (*UpdateStackPacksBadRequest) IsRedirect

func (o *UpdateStackPacksBadRequest) IsRedirect() bool

IsRedirect returns true when this update stack packs bad request response has a 3xx status code

func (*UpdateStackPacksBadRequest) IsServerError

func (o *UpdateStackPacksBadRequest) IsServerError() bool

IsServerError returns true when this update stack packs bad request response has a 5xx status code

func (*UpdateStackPacksBadRequest) IsSuccess

func (o *UpdateStackPacksBadRequest) IsSuccess() bool

IsSuccess returns true when this update stack packs bad request response has a 2xx status code

func (*UpdateStackPacksBadRequest) String

func (o *UpdateStackPacksBadRequest) String() string

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) Code

func (o *UpdateStackPacksOK) Code() int

Code gets the status code for the update stack packs o k response

func (*UpdateStackPacksOK) Error

func (o *UpdateStackPacksOK) Error() string

func (*UpdateStackPacksOK) GetPayload

func (*UpdateStackPacksOK) IsClientError

func (o *UpdateStackPacksOK) IsClientError() bool

IsClientError returns true when this update stack packs o k response has a 4xx status code

func (*UpdateStackPacksOK) IsCode

func (o *UpdateStackPacksOK) IsCode(code int) bool

IsCode returns true when this update stack packs o k response a status code equal to that given

func (*UpdateStackPacksOK) IsRedirect

func (o *UpdateStackPacksOK) IsRedirect() bool

IsRedirect returns true when this update stack packs o k response has a 3xx status code

func (*UpdateStackPacksOK) IsServerError

func (o *UpdateStackPacksOK) IsServerError() bool

IsServerError returns true when this update stack packs o k response has a 5xx status code

func (*UpdateStackPacksOK) IsSuccess

func (o *UpdateStackPacksOK) IsSuccess() bool

IsSuccess returns true when this update stack packs o k response has a 2xx status code

func (*UpdateStackPacksOK) String

func (o *UpdateStackPacksOK) String() string

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

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

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

WithContext adds the context to the update stack packs params

func (*UpdateStackPacksParams) WithDefaults

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

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

WithTimeout adds the timeout to the update stack packs params

func (*UpdateStackPacksParams) WriteToRequest

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) Code

func (o *UpdateVersionStackNotFound) Code() int

Code gets the status code for the update version stack not found response

func (*UpdateVersionStackNotFound) Error

func (*UpdateVersionStackNotFound) GetPayload

func (*UpdateVersionStackNotFound) IsClientError

func (o *UpdateVersionStackNotFound) IsClientError() bool

IsClientError returns true when this update version stack not found response has a 4xx status code

func (*UpdateVersionStackNotFound) IsCode

func (o *UpdateVersionStackNotFound) IsCode(code int) bool

IsCode returns true when this update version stack not found response a status code equal to that given

func (*UpdateVersionStackNotFound) IsRedirect

func (o *UpdateVersionStackNotFound) IsRedirect() bool

IsRedirect returns true when this update version stack not found response has a 3xx status code

func (*UpdateVersionStackNotFound) IsServerError

func (o *UpdateVersionStackNotFound) IsServerError() bool

IsServerError returns true when this update version stack not found response has a 5xx status code

func (*UpdateVersionStackNotFound) IsSuccess

func (o *UpdateVersionStackNotFound) IsSuccess() bool

IsSuccess returns true when this update version stack not found response has a 2xx status code

func (*UpdateVersionStackNotFound) String

func (o *UpdateVersionStackNotFound) String() string

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) Code

func (o *UpdateVersionStackOK) Code() int

Code gets the status code for the update version stack o k response

func (*UpdateVersionStackOK) Error

func (o *UpdateVersionStackOK) Error() string

func (*UpdateVersionStackOK) GetPayload

func (*UpdateVersionStackOK) IsClientError

func (o *UpdateVersionStackOK) IsClientError() bool

IsClientError returns true when this update version stack o k response has a 4xx status code

func (*UpdateVersionStackOK) IsCode

func (o *UpdateVersionStackOK) IsCode(code int) bool

IsCode returns true when this update version stack o k response a status code equal to that given

func (*UpdateVersionStackOK) IsRedirect

func (o *UpdateVersionStackOK) IsRedirect() bool

IsRedirect returns true when this update version stack o k response has a 3xx status code

func (*UpdateVersionStackOK) IsServerError

func (o *UpdateVersionStackOK) IsServerError() bool

IsServerError returns true when this update version stack o k response has a 5xx status code

func (*UpdateVersionStackOK) IsSuccess

func (o *UpdateVersionStackOK) IsSuccess() bool

IsSuccess returns true when this update version stack o k response has a 2xx status code

func (*UpdateVersionStackOK) String

func (o *UpdateVersionStackOK) String() string

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

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

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

WithBody adds the body to the update version stack params

func (*UpdateVersionStackParams) WithContext

WithContext adds the context to the update version stack params

func (*UpdateVersionStackParams) WithDefaults

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

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

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.

Jump to

Keyboard shortcuts

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