extensions

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 11 Imported by: 3

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 extensions API

func (*Client) CreateExtension

func (a *Client) CreateExtension(params *CreateExtensionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateExtensionCreated, error)
CreateExtension creates an extension

Creates the extension.

The extensions API supports two types of usage patterns. A). Specify a `download_url`, http or https URL, where the extension is currently hosted. This will result in extension being copied to elastic repository. B). Create only the extension metadata using the `POST` endpoint and then use `PUT` to upload the extension file. Leave the `download_url` unspecified in this case.

func (*Client) DeleteExtension

func (a *Client) DeleteExtension(params *DeleteExtensionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteExtensionOK, error)

DeleteExtension deletes extension

Deletes a Extension.

func (*Client) GetExtension

func (a *Client) GetExtension(params *GetExtensionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetExtensionOK, error)

GetExtension gets extension

Retrieves an extension.

func (*Client) ListExtensions

func (a *Client) ListExtensions(params *ListExtensionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListExtensionsOK, error)

ListExtensions lists extensions

Retrieves all of the available extensions.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateExtension

func (a *Client) UpdateExtension(params *UpdateExtensionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateExtensionOK, error)

UpdateExtension updates extension

Updates an extension.

func (*Client) UploadExtension

func (a *Client) UploadExtension(params *UploadExtensionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadExtensionOK, error)

UploadExtension uploads the extension

Uploads archive for an extension.

type ClientOption added in v1.3.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateExtension(params *CreateExtensionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateExtensionCreated, error)

	DeleteExtension(params *DeleteExtensionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteExtensionOK, error)

	GetExtension(params *GetExtensionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetExtensionOK, error)

	ListExtensions(params *ListExtensionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListExtensionsOK, error)

	UpdateExtension(params *UpdateExtensionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateExtensionOK, error)

	UploadExtension(params *UploadExtensionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadExtensionOK, 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 extensions API client.

type CreateExtensionBadRequest

type CreateExtensionBadRequest struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
CreateExtensionBadRequest describes a response with status code 400, with default header values.

Could not download the extension from the specified URL. (code: `extensions.request_execution_failed`)

func NewCreateExtensionBadRequest

func NewCreateExtensionBadRequest() *CreateExtensionBadRequest

NewCreateExtensionBadRequest creates a CreateExtensionBadRequest with default headers values

func (*CreateExtensionBadRequest) Error

func (o *CreateExtensionBadRequest) Error() string

func (*CreateExtensionBadRequest) GetPayload

type CreateExtensionConflict

type CreateExtensionConflict struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
CreateExtensionConflict describes a response with status code 409, with default header values.

An extension already exists with the generated id. Please try again. (code: `extensions.id_already_exists`)

func NewCreateExtensionConflict

func NewCreateExtensionConflict() *CreateExtensionConflict

NewCreateExtensionConflict creates a CreateExtensionConflict with default headers values

func (*CreateExtensionConflict) Error

func (o *CreateExtensionConflict) Error() string

func (*CreateExtensionConflict) GetPayload

type CreateExtensionCreated

type CreateExtensionCreated struct {

	/* The date-time when the resource was created (ISO format relative to UTC)
	 */
	XCloudResourceCreated string

	/* The date-time when the resource was last modified (ISO format relative to UTC)
	 */
	XCloudResourceLastModified string

	/* The resource version, which is used to avoid update conflicts with concurrent operations
	 */
	XCloudResourceVersion string

	Payload *models.Extension
}
CreateExtensionCreated describes a response with status code 201, with default header values.

The extension that was just created.

func NewCreateExtensionCreated

func NewCreateExtensionCreated() *CreateExtensionCreated

NewCreateExtensionCreated creates a CreateExtensionCreated with default headers values

func (*CreateExtensionCreated) Error

func (o *CreateExtensionCreated) Error() string

func (*CreateExtensionCreated) GetPayload

func (o *CreateExtensionCreated) GetPayload() *models.Extension

type CreateExtensionNotFound

type CreateExtensionNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
CreateExtensionNotFound describes a response with status code 404, with default header values.

Your current session does not have a user id associated with it. (code: `extensions.no_user_id`)

func NewCreateExtensionNotFound

func NewCreateExtensionNotFound() *CreateExtensionNotFound

NewCreateExtensionNotFound creates a CreateExtensionNotFound with default headers values

func (*CreateExtensionNotFound) Error

func (o *CreateExtensionNotFound) Error() string

func (*CreateExtensionNotFound) GetPayload

type CreateExtensionParams

type CreateExtensionParams struct {

	/* Body.

	   the data that creates the extension
	*/
	Body *models.CreateExtensionRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateExtensionParams contains all the parameters to send to the API endpoint

for the create extension operation.

Typically these are written to a http.Request.

func NewCreateExtensionParams

func NewCreateExtensionParams() *CreateExtensionParams

NewCreateExtensionParams creates a new CreateExtensionParams 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 NewCreateExtensionParamsWithContext

func NewCreateExtensionParamsWithContext(ctx context.Context) *CreateExtensionParams

NewCreateExtensionParamsWithContext creates a new CreateExtensionParams object with the ability to set a context for a request.

func NewCreateExtensionParamsWithHTTPClient

func NewCreateExtensionParamsWithHTTPClient(client *http.Client) *CreateExtensionParams

NewCreateExtensionParamsWithHTTPClient creates a new CreateExtensionParams object with the ability to set a custom HTTPClient for a request.

func NewCreateExtensionParamsWithTimeout

func NewCreateExtensionParamsWithTimeout(timeout time.Duration) *CreateExtensionParams

NewCreateExtensionParamsWithTimeout creates a new CreateExtensionParams object with the ability to set a timeout on a request.

func (*CreateExtensionParams) SetBody

SetBody adds the body to the create extension params

func (*CreateExtensionParams) SetContext

func (o *CreateExtensionParams) SetContext(ctx context.Context)

SetContext adds the context to the create extension params

func (*CreateExtensionParams) SetDefaults added in v1.3.0

func (o *CreateExtensionParams) SetDefaults()

SetDefaults hydrates default values in the create extension params (not the query body).

All values with no default are reset to their zero value.

func (*CreateExtensionParams) SetHTTPClient

func (o *CreateExtensionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create extension params

func (*CreateExtensionParams) SetTimeout

func (o *CreateExtensionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create extension params

func (*CreateExtensionParams) WithBody

WithBody adds the body to the create extension params

func (*CreateExtensionParams) WithContext

WithContext adds the context to the create extension params

func (*CreateExtensionParams) WithDefaults added in v1.3.0

func (o *CreateExtensionParams) WithDefaults() *CreateExtensionParams

WithDefaults hydrates default values in the create extension params (not the query body).

All values with no default are reset to their zero value.

func (*CreateExtensionParams) WithHTTPClient

func (o *CreateExtensionParams) WithHTTPClient(client *http.Client) *CreateExtensionParams

WithHTTPClient adds the HTTPClient to the create extension params

func (*CreateExtensionParams) WithTimeout

func (o *CreateExtensionParams) WithTimeout(timeout time.Duration) *CreateExtensionParams

WithTimeout adds the timeout to the create extension params

func (*CreateExtensionParams) WriteToRequest

func (o *CreateExtensionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateExtensionReader

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

CreateExtensionReader is a Reader for the CreateExtension structure.

func (*CreateExtensionReader) ReadResponse

func (o *CreateExtensionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteExtensionConflict

type DeleteExtensionConflict struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
DeleteExtensionConflict describes a response with status code 409, with default header values.

The version you sent does not match the persisted version. (code: `extensions.version_conflict`)

func NewDeleteExtensionConflict

func NewDeleteExtensionConflict() *DeleteExtensionConflict

NewDeleteExtensionConflict creates a DeleteExtensionConflict with default headers values

func (*DeleteExtensionConflict) Error

func (o *DeleteExtensionConflict) Error() string

func (*DeleteExtensionConflict) GetPayload

type DeleteExtensionNotFound

type DeleteExtensionNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
DeleteExtensionNotFound describes a response with status code 404, with default header values.

The extension requested does not exist. (code: `extensions.not_found`)

func NewDeleteExtensionNotFound

func NewDeleteExtensionNotFound() *DeleteExtensionNotFound

NewDeleteExtensionNotFound creates a DeleteExtensionNotFound with default headers values

func (*DeleteExtensionNotFound) Error

func (o *DeleteExtensionNotFound) Error() string

func (*DeleteExtensionNotFound) GetPayload

type DeleteExtensionOK

type DeleteExtensionOK struct {

	/* The date-time when the resource was created (ISO format relative to UTC)
	 */
	XCloudResourceCreated string

	/* The date-time when the resource was last modified (ISO format relative to UTC)
	 */
	XCloudResourceLastModified string

	/* The resource version, which is used to avoid update conflicts with concurrent operations
	 */
	XCloudResourceVersion string

	Payload models.EmptyResponse
}
DeleteExtensionOK describes a response with status code 200, with default header values.

Extension deleted successfully.

func NewDeleteExtensionOK

func NewDeleteExtensionOK() *DeleteExtensionOK

NewDeleteExtensionOK creates a DeleteExtensionOK with default headers values

func (*DeleteExtensionOK) Error

func (o *DeleteExtensionOK) Error() string

func (*DeleteExtensionOK) GetPayload

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

type DeleteExtensionParams

type DeleteExtensionParams struct {

	/* ExtensionID.

	   Id of an extension
	*/
	ExtensionID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteExtensionParams contains all the parameters to send to the API endpoint

for the delete extension operation.

Typically these are written to a http.Request.

func NewDeleteExtensionParams

func NewDeleteExtensionParams() *DeleteExtensionParams

NewDeleteExtensionParams creates a new DeleteExtensionParams 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 NewDeleteExtensionParamsWithContext

func NewDeleteExtensionParamsWithContext(ctx context.Context) *DeleteExtensionParams

NewDeleteExtensionParamsWithContext creates a new DeleteExtensionParams object with the ability to set a context for a request.

func NewDeleteExtensionParamsWithHTTPClient

func NewDeleteExtensionParamsWithHTTPClient(client *http.Client) *DeleteExtensionParams

NewDeleteExtensionParamsWithHTTPClient creates a new DeleteExtensionParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteExtensionParamsWithTimeout

func NewDeleteExtensionParamsWithTimeout(timeout time.Duration) *DeleteExtensionParams

NewDeleteExtensionParamsWithTimeout creates a new DeleteExtensionParams object with the ability to set a timeout on a request.

func (*DeleteExtensionParams) SetContext

func (o *DeleteExtensionParams) SetContext(ctx context.Context)

SetContext adds the context to the delete extension params

func (*DeleteExtensionParams) SetDefaults added in v1.3.0

func (o *DeleteExtensionParams) SetDefaults()

SetDefaults hydrates default values in the delete extension params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteExtensionParams) SetExtensionID

func (o *DeleteExtensionParams) SetExtensionID(extensionID string)

SetExtensionID adds the extensionId to the delete extension params

func (*DeleteExtensionParams) SetHTTPClient

func (o *DeleteExtensionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete extension params

func (*DeleteExtensionParams) SetTimeout

func (o *DeleteExtensionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete extension params

func (*DeleteExtensionParams) WithContext

WithContext adds the context to the delete extension params

func (*DeleteExtensionParams) WithDefaults added in v1.3.0

func (o *DeleteExtensionParams) WithDefaults() *DeleteExtensionParams

WithDefaults hydrates default values in the delete extension params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteExtensionParams) WithExtensionID

func (o *DeleteExtensionParams) WithExtensionID(extensionID string) *DeleteExtensionParams

WithExtensionID adds the extensionID to the delete extension params

func (*DeleteExtensionParams) WithHTTPClient

func (o *DeleteExtensionParams) WithHTTPClient(client *http.Client) *DeleteExtensionParams

WithHTTPClient adds the HTTPClient to the delete extension params

func (*DeleteExtensionParams) WithTimeout

func (o *DeleteExtensionParams) WithTimeout(timeout time.Duration) *DeleteExtensionParams

WithTimeout adds the timeout to the delete extension params

func (*DeleteExtensionParams) WriteToRequest

func (o *DeleteExtensionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteExtensionReader

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

DeleteExtensionReader is a Reader for the DeleteExtension structure.

func (*DeleteExtensionReader) ReadResponse

func (o *DeleteExtensionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteExtensionUnauthorized

type DeleteExtensionUnauthorized struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
DeleteExtensionUnauthorized describes a response with status code 401, with default header values.

* The extension does not belong to you. (code: `extensions.unauthorised`)

* Your current session does not have a user id associated with it. (code: `extensions.no_user_id`)

func NewDeleteExtensionUnauthorized

func NewDeleteExtensionUnauthorized() *DeleteExtensionUnauthorized

NewDeleteExtensionUnauthorized creates a DeleteExtensionUnauthorized with default headers values

func (*DeleteExtensionUnauthorized) Error

func (*DeleteExtensionUnauthorized) GetPayload

type GetExtensionNotFound

type GetExtensionNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
GetExtensionNotFound describes a response with status code 404, with default header values.

The extension requested does not exist. (code: `extensions.not_found`)

func NewGetExtensionNotFound

func NewGetExtensionNotFound() *GetExtensionNotFound

NewGetExtensionNotFound creates a GetExtensionNotFound with default headers values

func (*GetExtensionNotFound) Error

func (o *GetExtensionNotFound) Error() string

func (*GetExtensionNotFound) GetPayload

func (o *GetExtensionNotFound) GetPayload() *models.BasicFailedReply

type GetExtensionOK

type GetExtensionOK struct {

	/* The date-time when the resource was created (ISO format relative to UTC)
	 */
	XCloudResourceCreated string

	/* The date-time when the resource was last modified (ISO format relative to UTC)
	 */
	XCloudResourceLastModified string

	/* The resource version, which is used to avoid update conflicts with concurrent operations
	 */
	XCloudResourceVersion string

	Payload *models.Extension
}
GetExtensionOK describes a response with status code 200, with default header values.

The Extension

func NewGetExtensionOK

func NewGetExtensionOK() *GetExtensionOK

NewGetExtensionOK creates a GetExtensionOK with default headers values

func (*GetExtensionOK) Error

func (o *GetExtensionOK) Error() string

func (*GetExtensionOK) GetPayload

func (o *GetExtensionOK) GetPayload() *models.Extension

type GetExtensionParams

type GetExtensionParams struct {

	/* ExtensionID.

	   Id of an extension
	*/
	ExtensionID string

	/* IncludeDeployments.

	   Include deployments referencing this extension. Up to only 10000 deployments will be included.
	*/
	IncludeDeployments *bool

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetExtensionParams contains all the parameters to send to the API endpoint

for the get extension operation.

Typically these are written to a http.Request.

func NewGetExtensionParams

func NewGetExtensionParams() *GetExtensionParams

NewGetExtensionParams creates a new GetExtensionParams 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 NewGetExtensionParamsWithContext

func NewGetExtensionParamsWithContext(ctx context.Context) *GetExtensionParams

NewGetExtensionParamsWithContext creates a new GetExtensionParams object with the ability to set a context for a request.

func NewGetExtensionParamsWithHTTPClient

func NewGetExtensionParamsWithHTTPClient(client *http.Client) *GetExtensionParams

NewGetExtensionParamsWithHTTPClient creates a new GetExtensionParams object with the ability to set a custom HTTPClient for a request.

func NewGetExtensionParamsWithTimeout

func NewGetExtensionParamsWithTimeout(timeout time.Duration) *GetExtensionParams

NewGetExtensionParamsWithTimeout creates a new GetExtensionParams object with the ability to set a timeout on a request.

func (*GetExtensionParams) SetContext

func (o *GetExtensionParams) SetContext(ctx context.Context)

SetContext adds the context to the get extension params

func (*GetExtensionParams) SetDefaults added in v1.3.0

func (o *GetExtensionParams) SetDefaults()

SetDefaults hydrates default values in the get extension params (not the query body).

All values with no default are reset to their zero value.

func (*GetExtensionParams) SetExtensionID

func (o *GetExtensionParams) SetExtensionID(extensionID string)

SetExtensionID adds the extensionId to the get extension params

func (*GetExtensionParams) SetHTTPClient

func (o *GetExtensionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get extension params

func (*GetExtensionParams) SetIncludeDeployments

func (o *GetExtensionParams) SetIncludeDeployments(includeDeployments *bool)

SetIncludeDeployments adds the includeDeployments to the get extension params

func (*GetExtensionParams) SetTimeout

func (o *GetExtensionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get extension params

func (*GetExtensionParams) WithContext

WithContext adds the context to the get extension params

func (*GetExtensionParams) WithDefaults added in v1.3.0

func (o *GetExtensionParams) WithDefaults() *GetExtensionParams

WithDefaults hydrates default values in the get extension params (not the query body).

All values with no default are reset to their zero value.

func (*GetExtensionParams) WithExtensionID

func (o *GetExtensionParams) WithExtensionID(extensionID string) *GetExtensionParams

WithExtensionID adds the extensionID to the get extension params

func (*GetExtensionParams) WithHTTPClient

func (o *GetExtensionParams) WithHTTPClient(client *http.Client) *GetExtensionParams

WithHTTPClient adds the HTTPClient to the get extension params

func (*GetExtensionParams) WithIncludeDeployments

func (o *GetExtensionParams) WithIncludeDeployments(includeDeployments *bool) *GetExtensionParams

WithIncludeDeployments adds the includeDeployments to the get extension params

func (*GetExtensionParams) WithTimeout

func (o *GetExtensionParams) WithTimeout(timeout time.Duration) *GetExtensionParams

WithTimeout adds the timeout to the get extension params

func (*GetExtensionParams) WriteToRequest

func (o *GetExtensionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetExtensionReader

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

GetExtensionReader is a Reader for the GetExtension structure.

func (*GetExtensionReader) ReadResponse

func (o *GetExtensionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListExtensionsOK

type ListExtensionsOK struct {
	Payload *models.Extensions
}
ListExtensionsOK describes a response with status code 200, with default header values.

The extensions that are available

func NewListExtensionsOK

func NewListExtensionsOK() *ListExtensionsOK

NewListExtensionsOK creates a ListExtensionsOK with default headers values

func (*ListExtensionsOK) Error

func (o *ListExtensionsOK) Error() string

func (*ListExtensionsOK) GetPayload

func (o *ListExtensionsOK) GetPayload() *models.Extensions

type ListExtensionsParams

type ListExtensionsParams struct {

	/* IncludeDeployments.

	     Include deployments referencing this extension.
	DEPRECATED: To get the list of deployments that reference an extension, use the Get Extension API.

	*/
	IncludeDeployments *bool

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListExtensionsParams contains all the parameters to send to the API endpoint

for the list extensions operation.

Typically these are written to a http.Request.

func NewListExtensionsParams

func NewListExtensionsParams() *ListExtensionsParams

NewListExtensionsParams creates a new ListExtensionsParams 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 NewListExtensionsParamsWithContext

func NewListExtensionsParamsWithContext(ctx context.Context) *ListExtensionsParams

NewListExtensionsParamsWithContext creates a new ListExtensionsParams object with the ability to set a context for a request.

func NewListExtensionsParamsWithHTTPClient

func NewListExtensionsParamsWithHTTPClient(client *http.Client) *ListExtensionsParams

NewListExtensionsParamsWithHTTPClient creates a new ListExtensionsParams object with the ability to set a custom HTTPClient for a request.

func NewListExtensionsParamsWithTimeout

func NewListExtensionsParamsWithTimeout(timeout time.Duration) *ListExtensionsParams

NewListExtensionsParamsWithTimeout creates a new ListExtensionsParams object with the ability to set a timeout on a request.

func (*ListExtensionsParams) SetContext

func (o *ListExtensionsParams) SetContext(ctx context.Context)

SetContext adds the context to the list extensions params

func (*ListExtensionsParams) SetDefaults added in v1.3.0

func (o *ListExtensionsParams) SetDefaults()

SetDefaults hydrates default values in the list extensions params (not the query body).

All values with no default are reset to their zero value.

func (*ListExtensionsParams) SetHTTPClient

func (o *ListExtensionsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list extensions params

func (*ListExtensionsParams) SetIncludeDeployments

func (o *ListExtensionsParams) SetIncludeDeployments(includeDeployments *bool)

SetIncludeDeployments adds the includeDeployments to the list extensions params

func (*ListExtensionsParams) SetTimeout

func (o *ListExtensionsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list extensions params

func (*ListExtensionsParams) WithContext

WithContext adds the context to the list extensions params

func (*ListExtensionsParams) WithDefaults added in v1.3.0

func (o *ListExtensionsParams) WithDefaults() *ListExtensionsParams

WithDefaults hydrates default values in the list extensions params (not the query body).

All values with no default are reset to their zero value.

func (*ListExtensionsParams) WithHTTPClient

func (o *ListExtensionsParams) WithHTTPClient(client *http.Client) *ListExtensionsParams

WithHTTPClient adds the HTTPClient to the list extensions params

func (*ListExtensionsParams) WithIncludeDeployments

func (o *ListExtensionsParams) WithIncludeDeployments(includeDeployments *bool) *ListExtensionsParams

WithIncludeDeployments adds the includeDeployments to the list extensions params

func (*ListExtensionsParams) WithTimeout

func (o *ListExtensionsParams) WithTimeout(timeout time.Duration) *ListExtensionsParams

WithTimeout adds the timeout to the list extensions params

func (*ListExtensionsParams) WriteToRequest

func (o *ListExtensionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListExtensionsReader

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

ListExtensionsReader is a Reader for the ListExtensions structure.

func (*ListExtensionsReader) ReadResponse

func (o *ListExtensionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateExtensionBadRequest

type UpdateExtensionBadRequest struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
UpdateExtensionBadRequest describes a response with status code 400, with default header values.

Could not download the extension from the specified URL. (code: `extensions.request_execution_failed`)

func NewUpdateExtensionBadRequest

func NewUpdateExtensionBadRequest() *UpdateExtensionBadRequest

NewUpdateExtensionBadRequest creates a UpdateExtensionBadRequest with default headers values

func (*UpdateExtensionBadRequest) Error

func (o *UpdateExtensionBadRequest) Error() string

func (*UpdateExtensionBadRequest) GetPayload

type UpdateExtensionConflict

type UpdateExtensionConflict struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
UpdateExtensionConflict describes a response with status code 409, with default header values.

The version you sent does not match the persisted version. (code: `extensions.version_conflict`)

func NewUpdateExtensionConflict

func NewUpdateExtensionConflict() *UpdateExtensionConflict

NewUpdateExtensionConflict creates a UpdateExtensionConflict with default headers values

func (*UpdateExtensionConflict) Error

func (o *UpdateExtensionConflict) Error() string

func (*UpdateExtensionConflict) GetPayload

type UpdateExtensionNotFound

type UpdateExtensionNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
UpdateExtensionNotFound describes a response with status code 404, with default header values.

The extension you want does not exist. (code: `extensions.not_found`)

func NewUpdateExtensionNotFound

func NewUpdateExtensionNotFound() *UpdateExtensionNotFound

NewUpdateExtensionNotFound creates a UpdateExtensionNotFound with default headers values

func (*UpdateExtensionNotFound) Error

func (o *UpdateExtensionNotFound) Error() string

func (*UpdateExtensionNotFound) GetPayload

type UpdateExtensionOK

type UpdateExtensionOK struct {

	/* The date-time when the resource was created (ISO format relative to UTC)
	 */
	XCloudResourceCreated string

	/* The date-time when the resource was last modified (ISO format relative to UTC)
	 */
	XCloudResourceLastModified string

	/* The resource version, which is used to avoid update conflicts with concurrent operations
	 */
	XCloudResourceVersion string

	Payload *models.Extension
}
UpdateExtensionOK describes a response with status code 200, with default header values.

Extension updated successfully.

func NewUpdateExtensionOK

func NewUpdateExtensionOK() *UpdateExtensionOK

NewUpdateExtensionOK creates a UpdateExtensionOK with default headers values

func (*UpdateExtensionOK) Error

func (o *UpdateExtensionOK) Error() string

func (*UpdateExtensionOK) GetPayload

func (o *UpdateExtensionOK) GetPayload() *models.Extension

type UpdateExtensionParams

type UpdateExtensionParams struct {

	/* Body.

	   The extension update data.
	*/
	Body *models.UpdateExtensionRequest

	/* ExtensionID.

	   Id of an extension
	*/
	ExtensionID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateExtensionParams contains all the parameters to send to the API endpoint

for the update extension operation.

Typically these are written to a http.Request.

func NewUpdateExtensionParams

func NewUpdateExtensionParams() *UpdateExtensionParams

NewUpdateExtensionParams creates a new UpdateExtensionParams 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 NewUpdateExtensionParamsWithContext

func NewUpdateExtensionParamsWithContext(ctx context.Context) *UpdateExtensionParams

NewUpdateExtensionParamsWithContext creates a new UpdateExtensionParams object with the ability to set a context for a request.

func NewUpdateExtensionParamsWithHTTPClient

func NewUpdateExtensionParamsWithHTTPClient(client *http.Client) *UpdateExtensionParams

NewUpdateExtensionParamsWithHTTPClient creates a new UpdateExtensionParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateExtensionParamsWithTimeout

func NewUpdateExtensionParamsWithTimeout(timeout time.Duration) *UpdateExtensionParams

NewUpdateExtensionParamsWithTimeout creates a new UpdateExtensionParams object with the ability to set a timeout on a request.

func (*UpdateExtensionParams) SetBody

SetBody adds the body to the update extension params

func (*UpdateExtensionParams) SetContext

func (o *UpdateExtensionParams) SetContext(ctx context.Context)

SetContext adds the context to the update extension params

func (*UpdateExtensionParams) SetDefaults added in v1.3.0

func (o *UpdateExtensionParams) SetDefaults()

SetDefaults hydrates default values in the update extension params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateExtensionParams) SetExtensionID

func (o *UpdateExtensionParams) SetExtensionID(extensionID string)

SetExtensionID adds the extensionId to the update extension params

func (*UpdateExtensionParams) SetHTTPClient

func (o *UpdateExtensionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update extension params

func (*UpdateExtensionParams) SetTimeout

func (o *UpdateExtensionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update extension params

func (*UpdateExtensionParams) WithBody

WithBody adds the body to the update extension params

func (*UpdateExtensionParams) WithContext

WithContext adds the context to the update extension params

func (*UpdateExtensionParams) WithDefaults added in v1.3.0

func (o *UpdateExtensionParams) WithDefaults() *UpdateExtensionParams

WithDefaults hydrates default values in the update extension params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateExtensionParams) WithExtensionID

func (o *UpdateExtensionParams) WithExtensionID(extensionID string) *UpdateExtensionParams

WithExtensionID adds the extensionID to the update extension params

func (*UpdateExtensionParams) WithHTTPClient

func (o *UpdateExtensionParams) WithHTTPClient(client *http.Client) *UpdateExtensionParams

WithHTTPClient adds the HTTPClient to the update extension params

func (*UpdateExtensionParams) WithTimeout

func (o *UpdateExtensionParams) WithTimeout(timeout time.Duration) *UpdateExtensionParams

WithTimeout adds the timeout to the update extension params

func (*UpdateExtensionParams) WriteToRequest

func (o *UpdateExtensionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateExtensionReader

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

UpdateExtensionReader is a Reader for the UpdateExtension structure.

func (*UpdateExtensionReader) ReadResponse

func (o *UpdateExtensionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateExtensionUnauthorized

type UpdateExtensionUnauthorized struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
UpdateExtensionUnauthorized describes a response with status code 401, with default header values.

* The extension does not belong to you. (code: `extensions.unauthorised`)

* Your current session does not have a user id associated with it. (code: `extensions.no_user_id`)

func NewUpdateExtensionUnauthorized

func NewUpdateExtensionUnauthorized() *UpdateExtensionUnauthorized

NewUpdateExtensionUnauthorized creates a UpdateExtensionUnauthorized with default headers values

func (*UpdateExtensionUnauthorized) Error

func (*UpdateExtensionUnauthorized) GetPayload

type UploadExtensionBadRequest

type UploadExtensionBadRequest struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
UploadExtensionBadRequest describes a response with status code 400, with default header values.

Could not accept the extensions file. (code: `extensions.request_execution_failed`)

func NewUploadExtensionBadRequest

func NewUploadExtensionBadRequest() *UploadExtensionBadRequest

NewUploadExtensionBadRequest creates a UploadExtensionBadRequest with default headers values

func (*UploadExtensionBadRequest) Error

func (o *UploadExtensionBadRequest) Error() string

func (*UploadExtensionBadRequest) GetPayload

type UploadExtensionNotFound

type UploadExtensionNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
UploadExtensionNotFound describes a response with status code 404, with default header values.

The extension you want does not exist. (code: `extensions.not_found`)

func NewUploadExtensionNotFound

func NewUploadExtensionNotFound() *UploadExtensionNotFound

NewUploadExtensionNotFound creates a UploadExtensionNotFound with default headers values

func (*UploadExtensionNotFound) Error

func (o *UploadExtensionNotFound) Error() string

func (*UploadExtensionNotFound) GetPayload

type UploadExtensionOK

type UploadExtensionOK struct {

	/* The date-time when the resource was created (ISO format relative to UTC)
	 */
	XCloudResourceCreated string

	/* The date-time when the resource was last modified (ISO format relative to UTC)
	 */
	XCloudResourceLastModified string

	/* The resource version, which is used to avoid update conflicts with concurrent operations
	 */
	XCloudResourceVersion string

	Payload *models.Extension
}
UploadExtensionOK describes a response with status code 200, with default header values.

Archive uploaded successfully.

func NewUploadExtensionOK

func NewUploadExtensionOK() *UploadExtensionOK

NewUploadExtensionOK creates a UploadExtensionOK with default headers values

func (*UploadExtensionOK) Error

func (o *UploadExtensionOK) Error() string

func (*UploadExtensionOK) GetPayload

func (o *UploadExtensionOK) GetPayload() *models.Extension

type UploadExtensionParams

type UploadExtensionParams struct {

	/* ExtensionID.

	   Id of an extension
	*/
	ExtensionID string

	/* File.

	   Zip file that contains the extension
	*/
	File runtime.NamedReadCloser

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UploadExtensionParams contains all the parameters to send to the API endpoint

for the upload extension operation.

Typically these are written to a http.Request.

func NewUploadExtensionParams

func NewUploadExtensionParams() *UploadExtensionParams

NewUploadExtensionParams creates a new UploadExtensionParams 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 NewUploadExtensionParamsWithContext

func NewUploadExtensionParamsWithContext(ctx context.Context) *UploadExtensionParams

NewUploadExtensionParamsWithContext creates a new UploadExtensionParams object with the ability to set a context for a request.

func NewUploadExtensionParamsWithHTTPClient

func NewUploadExtensionParamsWithHTTPClient(client *http.Client) *UploadExtensionParams

NewUploadExtensionParamsWithHTTPClient creates a new UploadExtensionParams object with the ability to set a custom HTTPClient for a request.

func NewUploadExtensionParamsWithTimeout

func NewUploadExtensionParamsWithTimeout(timeout time.Duration) *UploadExtensionParams

NewUploadExtensionParamsWithTimeout creates a new UploadExtensionParams object with the ability to set a timeout on a request.

func (*UploadExtensionParams) SetContext

func (o *UploadExtensionParams) SetContext(ctx context.Context)

SetContext adds the context to the upload extension params

func (*UploadExtensionParams) SetDefaults added in v1.3.0

func (o *UploadExtensionParams) SetDefaults()

SetDefaults hydrates default values in the upload extension params (not the query body).

All values with no default are reset to their zero value.

func (*UploadExtensionParams) SetExtensionID

func (o *UploadExtensionParams) SetExtensionID(extensionID string)

SetExtensionID adds the extensionId to the upload extension params

func (*UploadExtensionParams) SetFile

SetFile adds the file to the upload extension params

func (*UploadExtensionParams) SetHTTPClient

func (o *UploadExtensionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the upload extension params

func (*UploadExtensionParams) SetTimeout

func (o *UploadExtensionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the upload extension params

func (*UploadExtensionParams) WithContext

WithContext adds the context to the upload extension params

func (*UploadExtensionParams) WithDefaults added in v1.3.0

func (o *UploadExtensionParams) WithDefaults() *UploadExtensionParams

WithDefaults hydrates default values in the upload extension params (not the query body).

All values with no default are reset to their zero value.

func (*UploadExtensionParams) WithExtensionID

func (o *UploadExtensionParams) WithExtensionID(extensionID string) *UploadExtensionParams

WithExtensionID adds the extensionID to the upload extension params

func (*UploadExtensionParams) WithFile

WithFile adds the file to the upload extension params

func (*UploadExtensionParams) WithHTTPClient

func (o *UploadExtensionParams) WithHTTPClient(client *http.Client) *UploadExtensionParams

WithHTTPClient adds the HTTPClient to the upload extension params

func (*UploadExtensionParams) WithTimeout

func (o *UploadExtensionParams) WithTimeout(timeout time.Duration) *UploadExtensionParams

WithTimeout adds the timeout to the upload extension params

func (*UploadExtensionParams) WriteToRequest

func (o *UploadExtensionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UploadExtensionReader

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

UploadExtensionReader is a Reader for the UploadExtension structure.

func (*UploadExtensionReader) ReadResponse

func (o *UploadExtensionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UploadExtensionUnauthorized

type UploadExtensionUnauthorized struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
UploadExtensionUnauthorized describes a response with status code 401, with default header values.

* The extension does not belong to you. (code: `extensions.unauthorised`)

* Your current session does not have a user id associated with it. (code: `extensions.no_user_id`)

func NewUploadExtensionUnauthorized

func NewUploadExtensionUnauthorized() *UploadExtensionUnauthorized

NewUploadExtensionUnauthorized creates a UploadExtensionUnauthorized with default headers values

func (*UploadExtensionUnauthorized) Error

func (*UploadExtensionUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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