extensions

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 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) Code added in v1.13.0

func (o *CreateExtensionBadRequest) Code() int

Code gets the status code for the create extension bad request response

func (*CreateExtensionBadRequest) Error

func (o *CreateExtensionBadRequest) Error() string

func (*CreateExtensionBadRequest) GetPayload

func (*CreateExtensionBadRequest) IsClientError added in v1.13.0

func (o *CreateExtensionBadRequest) IsClientError() bool

IsClientError returns true when this create extension bad request response has a 4xx status code

func (*CreateExtensionBadRequest) IsCode added in v1.13.0

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

IsCode returns true when this create extension bad request response a status code equal to that given

func (*CreateExtensionBadRequest) IsRedirect added in v1.13.0

func (o *CreateExtensionBadRequest) IsRedirect() bool

IsRedirect returns true when this create extension bad request response has a 3xx status code

func (*CreateExtensionBadRequest) IsServerError added in v1.13.0

func (o *CreateExtensionBadRequest) IsServerError() bool

IsServerError returns true when this create extension bad request response has a 5xx status code

func (*CreateExtensionBadRequest) IsSuccess added in v1.13.0

func (o *CreateExtensionBadRequest) IsSuccess() bool

IsSuccess returns true when this create extension bad request response has a 2xx status code

func (*CreateExtensionBadRequest) String added in v1.13.0

func (o *CreateExtensionBadRequest) String() string

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) Code added in v1.13.0

func (o *CreateExtensionConflict) Code() int

Code gets the status code for the create extension conflict response

func (*CreateExtensionConflict) Error

func (o *CreateExtensionConflict) Error() string

func (*CreateExtensionConflict) GetPayload

func (*CreateExtensionConflict) IsClientError added in v1.13.0

func (o *CreateExtensionConflict) IsClientError() bool

IsClientError returns true when this create extension conflict response has a 4xx status code

func (*CreateExtensionConflict) IsCode added in v1.13.0

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

IsCode returns true when this create extension conflict response a status code equal to that given

func (*CreateExtensionConflict) IsRedirect added in v1.13.0

func (o *CreateExtensionConflict) IsRedirect() bool

IsRedirect returns true when this create extension conflict response has a 3xx status code

func (*CreateExtensionConflict) IsServerError added in v1.13.0

func (o *CreateExtensionConflict) IsServerError() bool

IsServerError returns true when this create extension conflict response has a 5xx status code

func (*CreateExtensionConflict) IsSuccess added in v1.13.0

func (o *CreateExtensionConflict) IsSuccess() bool

IsSuccess returns true when this create extension conflict response has a 2xx status code

func (*CreateExtensionConflict) String added in v1.13.0

func (o *CreateExtensionConflict) String() string

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) Code added in v1.13.0

func (o *CreateExtensionCreated) Code() int

Code gets the status code for the create extension created response

func (*CreateExtensionCreated) Error

func (o *CreateExtensionCreated) Error() string

func (*CreateExtensionCreated) GetPayload

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

func (*CreateExtensionCreated) IsClientError added in v1.13.0

func (o *CreateExtensionCreated) IsClientError() bool

IsClientError returns true when this create extension created response has a 4xx status code

func (*CreateExtensionCreated) IsCode added in v1.13.0

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

IsCode returns true when this create extension created response a status code equal to that given

func (*CreateExtensionCreated) IsRedirect added in v1.13.0

func (o *CreateExtensionCreated) IsRedirect() bool

IsRedirect returns true when this create extension created response has a 3xx status code

func (*CreateExtensionCreated) IsServerError added in v1.13.0

func (o *CreateExtensionCreated) IsServerError() bool

IsServerError returns true when this create extension created response has a 5xx status code

func (*CreateExtensionCreated) IsSuccess added in v1.13.0

func (o *CreateExtensionCreated) IsSuccess() bool

IsSuccess returns true when this create extension created response has a 2xx status code

func (*CreateExtensionCreated) String added in v1.13.0

func (o *CreateExtensionCreated) String() string

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) Code added in v1.13.0

func (o *CreateExtensionNotFound) Code() int

Code gets the status code for the create extension not found response

func (*CreateExtensionNotFound) Error

func (o *CreateExtensionNotFound) Error() string

func (*CreateExtensionNotFound) GetPayload

func (*CreateExtensionNotFound) IsClientError added in v1.13.0

func (o *CreateExtensionNotFound) IsClientError() bool

IsClientError returns true when this create extension not found response has a 4xx status code

func (*CreateExtensionNotFound) IsCode added in v1.13.0

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

IsCode returns true when this create extension not found response a status code equal to that given

func (*CreateExtensionNotFound) IsRedirect added in v1.13.0

func (o *CreateExtensionNotFound) IsRedirect() bool

IsRedirect returns true when this create extension not found response has a 3xx status code

func (*CreateExtensionNotFound) IsServerError added in v1.13.0

func (o *CreateExtensionNotFound) IsServerError() bool

IsServerError returns true when this create extension not found response has a 5xx status code

func (*CreateExtensionNotFound) IsSuccess added in v1.13.0

func (o *CreateExtensionNotFound) IsSuccess() bool

IsSuccess returns true when this create extension not found response has a 2xx status code

func (*CreateExtensionNotFound) String added in v1.13.0

func (o *CreateExtensionNotFound) String() string

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) Code added in v1.13.0

func (o *DeleteExtensionConflict) Code() int

Code gets the status code for the delete extension conflict response

func (*DeleteExtensionConflict) Error

func (o *DeleteExtensionConflict) Error() string

func (*DeleteExtensionConflict) GetPayload

func (*DeleteExtensionConflict) IsClientError added in v1.13.0

func (o *DeleteExtensionConflict) IsClientError() bool

IsClientError returns true when this delete extension conflict response has a 4xx status code

func (*DeleteExtensionConflict) IsCode added in v1.13.0

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

IsCode returns true when this delete extension conflict response a status code equal to that given

func (*DeleteExtensionConflict) IsRedirect added in v1.13.0

func (o *DeleteExtensionConflict) IsRedirect() bool

IsRedirect returns true when this delete extension conflict response has a 3xx status code

func (*DeleteExtensionConflict) IsServerError added in v1.13.0

func (o *DeleteExtensionConflict) IsServerError() bool

IsServerError returns true when this delete extension conflict response has a 5xx status code

func (*DeleteExtensionConflict) IsSuccess added in v1.13.0

func (o *DeleteExtensionConflict) IsSuccess() bool

IsSuccess returns true when this delete extension conflict response has a 2xx status code

func (*DeleteExtensionConflict) String added in v1.13.0

func (o *DeleteExtensionConflict) String() string

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) Code added in v1.13.0

func (o *DeleteExtensionNotFound) Code() int

Code gets the status code for the delete extension not found response

func (*DeleteExtensionNotFound) Error

func (o *DeleteExtensionNotFound) Error() string

func (*DeleteExtensionNotFound) GetPayload

func (*DeleteExtensionNotFound) IsClientError added in v1.13.0

func (o *DeleteExtensionNotFound) IsClientError() bool

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

func (*DeleteExtensionNotFound) IsCode added in v1.13.0

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

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

func (*DeleteExtensionNotFound) IsRedirect added in v1.13.0

func (o *DeleteExtensionNotFound) IsRedirect() bool

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

func (*DeleteExtensionNotFound) IsServerError added in v1.13.0

func (o *DeleteExtensionNotFound) IsServerError() bool

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

func (*DeleteExtensionNotFound) IsSuccess added in v1.13.0

func (o *DeleteExtensionNotFound) IsSuccess() bool

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

func (*DeleteExtensionNotFound) String added in v1.13.0

func (o *DeleteExtensionNotFound) String() string

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) Code added in v1.13.0

func (o *DeleteExtensionOK) Code() int

Code gets the status code for the delete extension o k response

func (*DeleteExtensionOK) Error

func (o *DeleteExtensionOK) Error() string

func (*DeleteExtensionOK) GetPayload

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

func (*DeleteExtensionOK) IsClientError added in v1.13.0

func (o *DeleteExtensionOK) IsClientError() bool

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

func (*DeleteExtensionOK) IsCode added in v1.13.0

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

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

func (*DeleteExtensionOK) IsRedirect added in v1.13.0

func (o *DeleteExtensionOK) IsRedirect() bool

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

func (*DeleteExtensionOK) IsServerError added in v1.13.0

func (o *DeleteExtensionOK) IsServerError() bool

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

func (*DeleteExtensionOK) IsSuccess added in v1.13.0

func (o *DeleteExtensionOK) IsSuccess() bool

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

func (*DeleteExtensionOK) String added in v1.13.0

func (o *DeleteExtensionOK) String() string

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) Code added in v1.13.0

func (o *DeleteExtensionUnauthorized) Code() int

Code gets the status code for the delete extension unauthorized response

func (*DeleteExtensionUnauthorized) Error

func (*DeleteExtensionUnauthorized) GetPayload

func (*DeleteExtensionUnauthorized) IsClientError added in v1.13.0

func (o *DeleteExtensionUnauthorized) IsClientError() bool

IsClientError returns true when this delete extension unauthorized response has a 4xx status code

func (*DeleteExtensionUnauthorized) IsCode added in v1.13.0

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

IsCode returns true when this delete extension unauthorized response a status code equal to that given

func (*DeleteExtensionUnauthorized) IsRedirect added in v1.13.0

func (o *DeleteExtensionUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete extension unauthorized response has a 3xx status code

func (*DeleteExtensionUnauthorized) IsServerError added in v1.13.0

func (o *DeleteExtensionUnauthorized) IsServerError() bool

IsServerError returns true when this delete extension unauthorized response has a 5xx status code

func (*DeleteExtensionUnauthorized) IsSuccess added in v1.13.0

func (o *DeleteExtensionUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete extension unauthorized response has a 2xx status code

func (*DeleteExtensionUnauthorized) String added in v1.13.0

func (o *DeleteExtensionUnauthorized) String() string

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) Code added in v1.13.0

func (o *GetExtensionNotFound) Code() int

Code gets the status code for the get extension not found response

func (*GetExtensionNotFound) Error

func (o *GetExtensionNotFound) Error() string

func (*GetExtensionNotFound) GetPayload

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

func (*GetExtensionNotFound) IsClientError added in v1.13.0

func (o *GetExtensionNotFound) IsClientError() bool

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

func (*GetExtensionNotFound) IsCode added in v1.13.0

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

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

func (*GetExtensionNotFound) IsRedirect added in v1.13.0

func (o *GetExtensionNotFound) IsRedirect() bool

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

func (*GetExtensionNotFound) IsServerError added in v1.13.0

func (o *GetExtensionNotFound) IsServerError() bool

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

func (*GetExtensionNotFound) IsSuccess added in v1.13.0

func (o *GetExtensionNotFound) IsSuccess() bool

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

func (*GetExtensionNotFound) String added in v1.13.0

func (o *GetExtensionNotFound) String() string

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) Code added in v1.13.0

func (o *GetExtensionOK) Code() int

Code gets the status code for the get extension o k response

func (*GetExtensionOK) Error

func (o *GetExtensionOK) Error() string

func (*GetExtensionOK) GetPayload

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

func (*GetExtensionOK) IsClientError added in v1.13.0

func (o *GetExtensionOK) IsClientError() bool

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

func (*GetExtensionOK) IsCode added in v1.13.0

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

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

func (*GetExtensionOK) IsRedirect added in v1.13.0

func (o *GetExtensionOK) IsRedirect() bool

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

func (*GetExtensionOK) IsServerError added in v1.13.0

func (o *GetExtensionOK) IsServerError() bool

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

func (*GetExtensionOK) IsSuccess added in v1.13.0

func (o *GetExtensionOK) IsSuccess() bool

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

func (*GetExtensionOK) String added in v1.13.0

func (o *GetExtensionOK) String() string

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) Code added in v1.13.0

func (o *ListExtensionsOK) Code() int

Code gets the status code for the list extensions o k response

func (*ListExtensionsOK) Error

func (o *ListExtensionsOK) Error() string

func (*ListExtensionsOK) GetPayload

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

func (*ListExtensionsOK) IsClientError added in v1.13.0

func (o *ListExtensionsOK) IsClientError() bool

IsClientError returns true when this list extensions o k response has a 4xx status code

func (*ListExtensionsOK) IsCode added in v1.13.0

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

IsCode returns true when this list extensions o k response a status code equal to that given

func (*ListExtensionsOK) IsRedirect added in v1.13.0

func (o *ListExtensionsOK) IsRedirect() bool

IsRedirect returns true when this list extensions o k response has a 3xx status code

func (*ListExtensionsOK) IsServerError added in v1.13.0

func (o *ListExtensionsOK) IsServerError() bool

IsServerError returns true when this list extensions o k response has a 5xx status code

func (*ListExtensionsOK) IsSuccess added in v1.13.0

func (o *ListExtensionsOK) IsSuccess() bool

IsSuccess returns true when this list extensions o k response has a 2xx status code

func (*ListExtensionsOK) String added in v1.13.0

func (o *ListExtensionsOK) String() string

type ListExtensionsParams

type ListExtensionsParams struct {
	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) 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) 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) Code added in v1.13.0

func (o *UpdateExtensionBadRequest) Code() int

Code gets the status code for the update extension bad request response

func (*UpdateExtensionBadRequest) Error

func (o *UpdateExtensionBadRequest) Error() string

func (*UpdateExtensionBadRequest) GetPayload

func (*UpdateExtensionBadRequest) IsClientError added in v1.13.0

func (o *UpdateExtensionBadRequest) IsClientError() bool

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

func (*UpdateExtensionBadRequest) IsCode added in v1.13.0

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

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

func (*UpdateExtensionBadRequest) IsRedirect added in v1.13.0

func (o *UpdateExtensionBadRequest) IsRedirect() bool

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

func (*UpdateExtensionBadRequest) IsServerError added in v1.13.0

func (o *UpdateExtensionBadRequest) IsServerError() bool

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

func (*UpdateExtensionBadRequest) IsSuccess added in v1.13.0

func (o *UpdateExtensionBadRequest) IsSuccess() bool

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

func (*UpdateExtensionBadRequest) String added in v1.13.0

func (o *UpdateExtensionBadRequest) String() string

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) Code added in v1.13.0

func (o *UpdateExtensionConflict) Code() int

Code gets the status code for the update extension conflict response

func (*UpdateExtensionConflict) Error

func (o *UpdateExtensionConflict) Error() string

func (*UpdateExtensionConflict) GetPayload

func (*UpdateExtensionConflict) IsClientError added in v1.13.0

func (o *UpdateExtensionConflict) IsClientError() bool

IsClientError returns true when this update extension conflict response has a 4xx status code

func (*UpdateExtensionConflict) IsCode added in v1.13.0

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

IsCode returns true when this update extension conflict response a status code equal to that given

func (*UpdateExtensionConflict) IsRedirect added in v1.13.0

func (o *UpdateExtensionConflict) IsRedirect() bool

IsRedirect returns true when this update extension conflict response has a 3xx status code

func (*UpdateExtensionConflict) IsServerError added in v1.13.0

func (o *UpdateExtensionConflict) IsServerError() bool

IsServerError returns true when this update extension conflict response has a 5xx status code

func (*UpdateExtensionConflict) IsSuccess added in v1.13.0

func (o *UpdateExtensionConflict) IsSuccess() bool

IsSuccess returns true when this update extension conflict response has a 2xx status code

func (*UpdateExtensionConflict) String added in v1.13.0

func (o *UpdateExtensionConflict) String() string

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) Code added in v1.13.0

func (o *UpdateExtensionNotFound) Code() int

Code gets the status code for the update extension not found response

func (*UpdateExtensionNotFound) Error

func (o *UpdateExtensionNotFound) Error() string

func (*UpdateExtensionNotFound) GetPayload

func (*UpdateExtensionNotFound) IsClientError added in v1.13.0

func (o *UpdateExtensionNotFound) IsClientError() bool

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

func (*UpdateExtensionNotFound) IsCode added in v1.13.0

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

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

func (*UpdateExtensionNotFound) IsRedirect added in v1.13.0

func (o *UpdateExtensionNotFound) IsRedirect() bool

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

func (*UpdateExtensionNotFound) IsServerError added in v1.13.0

func (o *UpdateExtensionNotFound) IsServerError() bool

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

func (*UpdateExtensionNotFound) IsSuccess added in v1.13.0

func (o *UpdateExtensionNotFound) IsSuccess() bool

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

func (*UpdateExtensionNotFound) String added in v1.13.0

func (o *UpdateExtensionNotFound) String() string

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) Code added in v1.13.0

func (o *UpdateExtensionOK) Code() int

Code gets the status code for the update extension o k response

func (*UpdateExtensionOK) Error

func (o *UpdateExtensionOK) Error() string

func (*UpdateExtensionOK) GetPayload

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

func (*UpdateExtensionOK) IsClientError added in v1.13.0

func (o *UpdateExtensionOK) IsClientError() bool

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

func (*UpdateExtensionOK) IsCode added in v1.13.0

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

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

func (*UpdateExtensionOK) IsRedirect added in v1.13.0

func (o *UpdateExtensionOK) IsRedirect() bool

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

func (*UpdateExtensionOK) IsServerError added in v1.13.0

func (o *UpdateExtensionOK) IsServerError() bool

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

func (*UpdateExtensionOK) IsSuccess added in v1.13.0

func (o *UpdateExtensionOK) IsSuccess() bool

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

func (*UpdateExtensionOK) String added in v1.13.0

func (o *UpdateExtensionOK) String() string

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) Code added in v1.13.0

func (o *UpdateExtensionUnauthorized) Code() int

Code gets the status code for the update extension unauthorized response

func (*UpdateExtensionUnauthorized) Error

func (*UpdateExtensionUnauthorized) GetPayload

func (*UpdateExtensionUnauthorized) IsClientError added in v1.13.0

func (o *UpdateExtensionUnauthorized) IsClientError() bool

IsClientError returns true when this update extension unauthorized response has a 4xx status code

func (*UpdateExtensionUnauthorized) IsCode added in v1.13.0

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

IsCode returns true when this update extension unauthorized response a status code equal to that given

func (*UpdateExtensionUnauthorized) IsRedirect added in v1.13.0

func (o *UpdateExtensionUnauthorized) IsRedirect() bool

IsRedirect returns true when this update extension unauthorized response has a 3xx status code

func (*UpdateExtensionUnauthorized) IsServerError added in v1.13.0

func (o *UpdateExtensionUnauthorized) IsServerError() bool

IsServerError returns true when this update extension unauthorized response has a 5xx status code

func (*UpdateExtensionUnauthorized) IsSuccess added in v1.13.0

func (o *UpdateExtensionUnauthorized) IsSuccess() bool

IsSuccess returns true when this update extension unauthorized response has a 2xx status code

func (*UpdateExtensionUnauthorized) String added in v1.13.0

func (o *UpdateExtensionUnauthorized) String() string

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) Code added in v1.13.0

func (o *UploadExtensionBadRequest) Code() int

Code gets the status code for the upload extension bad request response

func (*UploadExtensionBadRequest) Error

func (o *UploadExtensionBadRequest) Error() string

func (*UploadExtensionBadRequest) GetPayload

func (*UploadExtensionBadRequest) IsClientError added in v1.13.0

func (o *UploadExtensionBadRequest) IsClientError() bool

IsClientError returns true when this upload extension bad request response has a 4xx status code

func (*UploadExtensionBadRequest) IsCode added in v1.13.0

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

IsCode returns true when this upload extension bad request response a status code equal to that given

func (*UploadExtensionBadRequest) IsRedirect added in v1.13.0

func (o *UploadExtensionBadRequest) IsRedirect() bool

IsRedirect returns true when this upload extension bad request response has a 3xx status code

func (*UploadExtensionBadRequest) IsServerError added in v1.13.0

func (o *UploadExtensionBadRequest) IsServerError() bool

IsServerError returns true when this upload extension bad request response has a 5xx status code

func (*UploadExtensionBadRequest) IsSuccess added in v1.13.0

func (o *UploadExtensionBadRequest) IsSuccess() bool

IsSuccess returns true when this upload extension bad request response has a 2xx status code

func (*UploadExtensionBadRequest) String added in v1.13.0

func (o *UploadExtensionBadRequest) String() string

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) Code added in v1.13.0

func (o *UploadExtensionNotFound) Code() int

Code gets the status code for the upload extension not found response

func (*UploadExtensionNotFound) Error

func (o *UploadExtensionNotFound) Error() string

func (*UploadExtensionNotFound) GetPayload

func (*UploadExtensionNotFound) IsClientError added in v1.13.0

func (o *UploadExtensionNotFound) IsClientError() bool

IsClientError returns true when this upload extension not found response has a 4xx status code

func (*UploadExtensionNotFound) IsCode added in v1.13.0

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

IsCode returns true when this upload extension not found response a status code equal to that given

func (*UploadExtensionNotFound) IsRedirect added in v1.13.0

func (o *UploadExtensionNotFound) IsRedirect() bool

IsRedirect returns true when this upload extension not found response has a 3xx status code

func (*UploadExtensionNotFound) IsServerError added in v1.13.0

func (o *UploadExtensionNotFound) IsServerError() bool

IsServerError returns true when this upload extension not found response has a 5xx status code

func (*UploadExtensionNotFound) IsSuccess added in v1.13.0

func (o *UploadExtensionNotFound) IsSuccess() bool

IsSuccess returns true when this upload extension not found response has a 2xx status code

func (*UploadExtensionNotFound) String added in v1.13.0

func (o *UploadExtensionNotFound) String() string

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) Code added in v1.13.0

func (o *UploadExtensionOK) Code() int

Code gets the status code for the upload extension o k response

func (*UploadExtensionOK) Error

func (o *UploadExtensionOK) Error() string

func (*UploadExtensionOK) GetPayload

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

func (*UploadExtensionOK) IsClientError added in v1.13.0

func (o *UploadExtensionOK) IsClientError() bool

IsClientError returns true when this upload extension o k response has a 4xx status code

func (*UploadExtensionOK) IsCode added in v1.13.0

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

IsCode returns true when this upload extension o k response a status code equal to that given

func (*UploadExtensionOK) IsRedirect added in v1.13.0

func (o *UploadExtensionOK) IsRedirect() bool

IsRedirect returns true when this upload extension o k response has a 3xx status code

func (*UploadExtensionOK) IsServerError added in v1.13.0

func (o *UploadExtensionOK) IsServerError() bool

IsServerError returns true when this upload extension o k response has a 5xx status code

func (*UploadExtensionOK) IsSuccess added in v1.13.0

func (o *UploadExtensionOK) IsSuccess() bool

IsSuccess returns true when this upload extension o k response has a 2xx status code

func (*UploadExtensionOK) String added in v1.13.0

func (o *UploadExtensionOK) String() string

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) Code added in v1.13.0

func (o *UploadExtensionUnauthorized) Code() int

Code gets the status code for the upload extension unauthorized response

func (*UploadExtensionUnauthorized) Error

func (*UploadExtensionUnauthorized) GetPayload

func (*UploadExtensionUnauthorized) IsClientError added in v1.13.0

func (o *UploadExtensionUnauthorized) IsClientError() bool

IsClientError returns true when this upload extension unauthorized response has a 4xx status code

func (*UploadExtensionUnauthorized) IsCode added in v1.13.0

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

IsCode returns true when this upload extension unauthorized response a status code equal to that given

func (*UploadExtensionUnauthorized) IsRedirect added in v1.13.0

func (o *UploadExtensionUnauthorized) IsRedirect() bool

IsRedirect returns true when this upload extension unauthorized response has a 3xx status code

func (*UploadExtensionUnauthorized) IsServerError added in v1.13.0

func (o *UploadExtensionUnauthorized) IsServerError() bool

IsServerError returns true when this upload extension unauthorized response has a 5xx status code

func (*UploadExtensionUnauthorized) IsSuccess added in v1.13.0

func (o *UploadExtensionUnauthorized) IsSuccess() bool

IsSuccess returns true when this upload extension unauthorized response has a 2xx status code

func (*UploadExtensionUnauthorized) String added in v1.13.0

func (o *UploadExtensionUnauthorized) String() string

Jump to

Keyboard shortcuts

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