addon

package
v2.14.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for addon API

func (*Client) CreateAddon

func (a *Client) CreateAddon(params *CreateAddonParams, authInfo runtime.ClientAuthInfoWriter) (*CreateAddonCreated, error)

CreateAddon Creates an addon that will belong to the given cluster

func (*Client) DeleteAddon

func (a *Client) DeleteAddon(params *DeleteAddonParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteAddonOK, error)

DeleteAddon deletes the given addon that belongs to the cluster

func (*Client) GetAddon

func (a *Client) GetAddon(params *GetAddonParams, authInfo runtime.ClientAuthInfoWriter) (*GetAddonOK, error)

GetAddon gets an addon that is assigned to the given cluster

func (*Client) ListAddons

func (a *Client) ListAddons(params *ListAddonsParams, authInfo runtime.ClientAuthInfoWriter) (*ListAddonsOK, error)

ListAddons Lists addons that belong to the given cluster

func (*Client) PatchAddon

func (a *Client) PatchAddon(params *PatchAddonParams, authInfo runtime.ClientAuthInfoWriter) (*PatchAddonOK, error)

PatchAddon patches an addon that is assigned to the given cluster

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	CreateAddon(params *CreateAddonParams, authInfo runtime.ClientAuthInfoWriter) (*CreateAddonCreated, error)

	DeleteAddon(params *DeleteAddonParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteAddonOK, error)

	GetAddon(params *GetAddonParams, authInfo runtime.ClientAuthInfoWriter) (*GetAddonOK, error)

	ListAddons(params *ListAddonsParams, authInfo runtime.ClientAuthInfoWriter) (*ListAddonsOK, error)

	PatchAddon(params *PatchAddonParams, authInfo runtime.ClientAuthInfoWriter) (*PatchAddonOK, 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 addon API client.

type CreateAddonCreated

type CreateAddonCreated struct {
	Payload *models.Addon
}

CreateAddonCreated handles this case with default header values.

Addon

func NewCreateAddonCreated

func NewCreateAddonCreated() *CreateAddonCreated

NewCreateAddonCreated creates a CreateAddonCreated with default headers values

func (*CreateAddonCreated) Error

func (o *CreateAddonCreated) Error() string

func (*CreateAddonCreated) GetPayload

func (o *CreateAddonCreated) GetPayload() *models.Addon

type CreateAddonDefault

type CreateAddonDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

CreateAddonDefault handles this case with default header values.

errorResponse

func NewCreateAddonDefault

func NewCreateAddonDefault(code int) *CreateAddonDefault

NewCreateAddonDefault creates a CreateAddonDefault with default headers values

func (*CreateAddonDefault) Code

func (o *CreateAddonDefault) Code() int

Code gets the status code for the create addon default response

func (*CreateAddonDefault) Error

func (o *CreateAddonDefault) Error() string

func (*CreateAddonDefault) GetPayload

func (o *CreateAddonDefault) GetPayload() *models.ErrorResponse

type CreateAddonForbidden

type CreateAddonForbidden struct {
}

CreateAddonForbidden handles this case with default header values.

EmptyResponse is a empty response

func NewCreateAddonForbidden

func NewCreateAddonForbidden() *CreateAddonForbidden

NewCreateAddonForbidden creates a CreateAddonForbidden with default headers values

func (*CreateAddonForbidden) Error

func (o *CreateAddonForbidden) Error() string

type CreateAddonParams

type CreateAddonParams struct {

	/*Body*/
	Body *models.Addon
	/*ClusterID*/
	ClusterID string
	/*Dc*/
	DC string
	/*ProjectID*/
	ProjectID string

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

CreateAddonParams contains all the parameters to send to the API endpoint for the create addon operation typically these are written to a http.Request

func NewCreateAddonParams

func NewCreateAddonParams() *CreateAddonParams

NewCreateAddonParams creates a new CreateAddonParams object with the default values initialized.

func NewCreateAddonParamsWithContext

func NewCreateAddonParamsWithContext(ctx context.Context) *CreateAddonParams

NewCreateAddonParamsWithContext creates a new CreateAddonParams object with the default values initialized, and the ability to set a context for a request

func NewCreateAddonParamsWithHTTPClient

func NewCreateAddonParamsWithHTTPClient(client *http.Client) *CreateAddonParams

NewCreateAddonParamsWithHTTPClient creates a new CreateAddonParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateAddonParamsWithTimeout

func NewCreateAddonParamsWithTimeout(timeout time.Duration) *CreateAddonParams

NewCreateAddonParamsWithTimeout creates a new CreateAddonParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateAddonParams) SetBody

func (o *CreateAddonParams) SetBody(body *models.Addon)

SetBody adds the body to the create addon params

func (*CreateAddonParams) SetClusterID

func (o *CreateAddonParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the create addon params

func (*CreateAddonParams) SetContext

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

SetContext adds the context to the create addon params

func (*CreateAddonParams) SetDC

func (o *CreateAddonParams) SetDC(dc string)

SetDC adds the dc to the create addon params

func (*CreateAddonParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create addon params

func (*CreateAddonParams) SetProjectID

func (o *CreateAddonParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the create addon params

func (*CreateAddonParams) SetTimeout

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

SetTimeout adds the timeout to the create addon params

func (*CreateAddonParams) WithBody

func (o *CreateAddonParams) WithBody(body *models.Addon) *CreateAddonParams

WithBody adds the body to the create addon params

func (*CreateAddonParams) WithClusterID

func (o *CreateAddonParams) WithClusterID(clusterID string) *CreateAddonParams

WithClusterID adds the clusterID to the create addon params

func (*CreateAddonParams) WithContext

func (o *CreateAddonParams) WithContext(ctx context.Context) *CreateAddonParams

WithContext adds the context to the create addon params

func (*CreateAddonParams) WithDC

WithDC adds the dc to the create addon params

func (*CreateAddonParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create addon params

func (*CreateAddonParams) WithProjectID

func (o *CreateAddonParams) WithProjectID(projectID string) *CreateAddonParams

WithProjectID adds the projectID to the create addon params

func (*CreateAddonParams) WithTimeout

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

WithTimeout adds the timeout to the create addon params

func (*CreateAddonParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateAddonReader

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

CreateAddonReader is a Reader for the CreateAddon structure.

func (*CreateAddonReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateAddonUnauthorized

type CreateAddonUnauthorized struct {
}

CreateAddonUnauthorized handles this case with default header values.

EmptyResponse is a empty response

func NewCreateAddonUnauthorized

func NewCreateAddonUnauthorized() *CreateAddonUnauthorized

NewCreateAddonUnauthorized creates a CreateAddonUnauthorized with default headers values

func (*CreateAddonUnauthorized) Error

func (o *CreateAddonUnauthorized) Error() string

type DeleteAddonDefault

type DeleteAddonDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

DeleteAddonDefault handles this case with default header values.

errorResponse

func NewDeleteAddonDefault

func NewDeleteAddonDefault(code int) *DeleteAddonDefault

NewDeleteAddonDefault creates a DeleteAddonDefault with default headers values

func (*DeleteAddonDefault) Code

func (o *DeleteAddonDefault) Code() int

Code gets the status code for the delete addon default response

func (*DeleteAddonDefault) Error

func (o *DeleteAddonDefault) Error() string

func (*DeleteAddonDefault) GetPayload

func (o *DeleteAddonDefault) GetPayload() *models.ErrorResponse

type DeleteAddonForbidden

type DeleteAddonForbidden struct {
}

DeleteAddonForbidden handles this case with default header values.

EmptyResponse is a empty response

func NewDeleteAddonForbidden

func NewDeleteAddonForbidden() *DeleteAddonForbidden

NewDeleteAddonForbidden creates a DeleteAddonForbidden with default headers values

func (*DeleteAddonForbidden) Error

func (o *DeleteAddonForbidden) Error() string

type DeleteAddonOK

type DeleteAddonOK struct {
}

DeleteAddonOK handles this case with default header values.

EmptyResponse is a empty response

func NewDeleteAddonOK

func NewDeleteAddonOK() *DeleteAddonOK

NewDeleteAddonOK creates a DeleteAddonOK with default headers values

func (*DeleteAddonOK) Error

func (o *DeleteAddonOK) Error() string

type DeleteAddonParams

type DeleteAddonParams struct {

	/*AddonID*/
	AddonID string
	/*ClusterID*/
	ClusterID string
	/*Dc*/
	DC string
	/*ProjectID*/
	ProjectID string

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

DeleteAddonParams contains all the parameters to send to the API endpoint for the delete addon operation typically these are written to a http.Request

func NewDeleteAddonParams

func NewDeleteAddonParams() *DeleteAddonParams

NewDeleteAddonParams creates a new DeleteAddonParams object with the default values initialized.

func NewDeleteAddonParamsWithContext

func NewDeleteAddonParamsWithContext(ctx context.Context) *DeleteAddonParams

NewDeleteAddonParamsWithContext creates a new DeleteAddonParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteAddonParamsWithHTTPClient

func NewDeleteAddonParamsWithHTTPClient(client *http.Client) *DeleteAddonParams

NewDeleteAddonParamsWithHTTPClient creates a new DeleteAddonParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteAddonParamsWithTimeout

func NewDeleteAddonParamsWithTimeout(timeout time.Duration) *DeleteAddonParams

NewDeleteAddonParamsWithTimeout creates a new DeleteAddonParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteAddonParams) SetAddonID

func (o *DeleteAddonParams) SetAddonID(addonID string)

SetAddonID adds the addonId to the delete addon params

func (*DeleteAddonParams) SetClusterID

func (o *DeleteAddonParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the delete addon params

func (*DeleteAddonParams) SetContext

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

SetContext adds the context to the delete addon params

func (*DeleteAddonParams) SetDC

func (o *DeleteAddonParams) SetDC(dc string)

SetDC adds the dc to the delete addon params

func (*DeleteAddonParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete addon params

func (*DeleteAddonParams) SetProjectID

func (o *DeleteAddonParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the delete addon params

func (*DeleteAddonParams) SetTimeout

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

SetTimeout adds the timeout to the delete addon params

func (*DeleteAddonParams) WithAddonID

func (o *DeleteAddonParams) WithAddonID(addonID string) *DeleteAddonParams

WithAddonID adds the addonID to the delete addon params

func (*DeleteAddonParams) WithClusterID

func (o *DeleteAddonParams) WithClusterID(clusterID string) *DeleteAddonParams

WithClusterID adds the clusterID to the delete addon params

func (*DeleteAddonParams) WithContext

func (o *DeleteAddonParams) WithContext(ctx context.Context) *DeleteAddonParams

WithContext adds the context to the delete addon params

func (*DeleteAddonParams) WithDC

WithDC adds the dc to the delete addon params

func (*DeleteAddonParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete addon params

func (*DeleteAddonParams) WithProjectID

func (o *DeleteAddonParams) WithProjectID(projectID string) *DeleteAddonParams

WithProjectID adds the projectID to the delete addon params

func (*DeleteAddonParams) WithTimeout

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

WithTimeout adds the timeout to the delete addon params

func (*DeleteAddonParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteAddonReader

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

DeleteAddonReader is a Reader for the DeleteAddon structure.

func (*DeleteAddonReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteAddonUnauthorized

type DeleteAddonUnauthorized struct {
}

DeleteAddonUnauthorized handles this case with default header values.

EmptyResponse is a empty response

func NewDeleteAddonUnauthorized

func NewDeleteAddonUnauthorized() *DeleteAddonUnauthorized

NewDeleteAddonUnauthorized creates a DeleteAddonUnauthorized with default headers values

func (*DeleteAddonUnauthorized) Error

func (o *DeleteAddonUnauthorized) Error() string

type GetAddonDefault

type GetAddonDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

GetAddonDefault handles this case with default header values.

errorResponse

func NewGetAddonDefault

func NewGetAddonDefault(code int) *GetAddonDefault

NewGetAddonDefault creates a GetAddonDefault with default headers values

func (*GetAddonDefault) Code

func (o *GetAddonDefault) Code() int

Code gets the status code for the get addon default response

func (*GetAddonDefault) Error

func (o *GetAddonDefault) Error() string

func (*GetAddonDefault) GetPayload

func (o *GetAddonDefault) GetPayload() *models.ErrorResponse

type GetAddonForbidden

type GetAddonForbidden struct {
}

GetAddonForbidden handles this case with default header values.

EmptyResponse is a empty response

func NewGetAddonForbidden

func NewGetAddonForbidden() *GetAddonForbidden

NewGetAddonForbidden creates a GetAddonForbidden with default headers values

func (*GetAddonForbidden) Error

func (o *GetAddonForbidden) Error() string

type GetAddonOK

type GetAddonOK struct {
	Payload *models.Addon
}

GetAddonOK handles this case with default header values.

Addon

func NewGetAddonOK

func NewGetAddonOK() *GetAddonOK

NewGetAddonOK creates a GetAddonOK with default headers values

func (*GetAddonOK) Error

func (o *GetAddonOK) Error() string

func (*GetAddonOK) GetPayload

func (o *GetAddonOK) GetPayload() *models.Addon

type GetAddonParams

type GetAddonParams struct {

	/*AddonID*/
	AddonID string
	/*ClusterID*/
	ClusterID string
	/*Dc*/
	DC string
	/*ProjectID*/
	ProjectID string

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

GetAddonParams contains all the parameters to send to the API endpoint for the get addon operation typically these are written to a http.Request

func NewGetAddonParams

func NewGetAddonParams() *GetAddonParams

NewGetAddonParams creates a new GetAddonParams object with the default values initialized.

func NewGetAddonParamsWithContext

func NewGetAddonParamsWithContext(ctx context.Context) *GetAddonParams

NewGetAddonParamsWithContext creates a new GetAddonParams object with the default values initialized, and the ability to set a context for a request

func NewGetAddonParamsWithHTTPClient

func NewGetAddonParamsWithHTTPClient(client *http.Client) *GetAddonParams

NewGetAddonParamsWithHTTPClient creates a new GetAddonParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetAddonParamsWithTimeout

func NewGetAddonParamsWithTimeout(timeout time.Duration) *GetAddonParams

NewGetAddonParamsWithTimeout creates a new GetAddonParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetAddonParams) SetAddonID

func (o *GetAddonParams) SetAddonID(addonID string)

SetAddonID adds the addonId to the get addon params

func (*GetAddonParams) SetClusterID

func (o *GetAddonParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the get addon params

func (*GetAddonParams) SetContext

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

SetContext adds the context to the get addon params

func (*GetAddonParams) SetDC

func (o *GetAddonParams) SetDC(dc string)

SetDC adds the dc to the get addon params

func (*GetAddonParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get addon params

func (*GetAddonParams) SetProjectID

func (o *GetAddonParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the get addon params

func (*GetAddonParams) SetTimeout

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

SetTimeout adds the timeout to the get addon params

func (*GetAddonParams) WithAddonID

func (o *GetAddonParams) WithAddonID(addonID string) *GetAddonParams

WithAddonID adds the addonID to the get addon params

func (*GetAddonParams) WithClusterID

func (o *GetAddonParams) WithClusterID(clusterID string) *GetAddonParams

WithClusterID adds the clusterID to the get addon params

func (*GetAddonParams) WithContext

func (o *GetAddonParams) WithContext(ctx context.Context) *GetAddonParams

WithContext adds the context to the get addon params

func (*GetAddonParams) WithDC

func (o *GetAddonParams) WithDC(dc string) *GetAddonParams

WithDC adds the dc to the get addon params

func (*GetAddonParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get addon params

func (*GetAddonParams) WithProjectID

func (o *GetAddonParams) WithProjectID(projectID string) *GetAddonParams

WithProjectID adds the projectID to the get addon params

func (*GetAddonParams) WithTimeout

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

WithTimeout adds the timeout to the get addon params

func (*GetAddonParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAddonReader

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

GetAddonReader is a Reader for the GetAddon structure.

func (*GetAddonReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAddonUnauthorized

type GetAddonUnauthorized struct {
}

GetAddonUnauthorized handles this case with default header values.

EmptyResponse is a empty response

func NewGetAddonUnauthorized

func NewGetAddonUnauthorized() *GetAddonUnauthorized

NewGetAddonUnauthorized creates a GetAddonUnauthorized with default headers values

func (*GetAddonUnauthorized) Error

func (o *GetAddonUnauthorized) Error() string

type ListAddonsDefault

type ListAddonsDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

ListAddonsDefault handles this case with default header values.

errorResponse

func NewListAddonsDefault

func NewListAddonsDefault(code int) *ListAddonsDefault

NewListAddonsDefault creates a ListAddonsDefault with default headers values

func (*ListAddonsDefault) Code

func (o *ListAddonsDefault) Code() int

Code gets the status code for the list addons default response

func (*ListAddonsDefault) Error

func (o *ListAddonsDefault) Error() string

func (*ListAddonsDefault) GetPayload

func (o *ListAddonsDefault) GetPayload() *models.ErrorResponse

type ListAddonsForbidden

type ListAddonsForbidden struct {
}

ListAddonsForbidden handles this case with default header values.

EmptyResponse is a empty response

func NewListAddonsForbidden

func NewListAddonsForbidden() *ListAddonsForbidden

NewListAddonsForbidden creates a ListAddonsForbidden with default headers values

func (*ListAddonsForbidden) Error

func (o *ListAddonsForbidden) Error() string

type ListAddonsOK

type ListAddonsOK struct {
	Payload []*models.Addon
}

ListAddonsOK handles this case with default header values.

Addon

func NewListAddonsOK

func NewListAddonsOK() *ListAddonsOK

NewListAddonsOK creates a ListAddonsOK with default headers values

func (*ListAddonsOK) Error

func (o *ListAddonsOK) Error() string

func (*ListAddonsOK) GetPayload

func (o *ListAddonsOK) GetPayload() []*models.Addon

type ListAddonsParams

type ListAddonsParams struct {

	/*ClusterID*/
	ClusterID string
	/*Dc*/
	DC string
	/*ProjectID*/
	ProjectID string

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

ListAddonsParams contains all the parameters to send to the API endpoint for the list addons operation typically these are written to a http.Request

func NewListAddonsParams

func NewListAddonsParams() *ListAddonsParams

NewListAddonsParams creates a new ListAddonsParams object with the default values initialized.

func NewListAddonsParamsWithContext

func NewListAddonsParamsWithContext(ctx context.Context) *ListAddonsParams

NewListAddonsParamsWithContext creates a new ListAddonsParams object with the default values initialized, and the ability to set a context for a request

func NewListAddonsParamsWithHTTPClient

func NewListAddonsParamsWithHTTPClient(client *http.Client) *ListAddonsParams

NewListAddonsParamsWithHTTPClient creates a new ListAddonsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListAddonsParamsWithTimeout

func NewListAddonsParamsWithTimeout(timeout time.Duration) *ListAddonsParams

NewListAddonsParamsWithTimeout creates a new ListAddonsParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListAddonsParams) SetClusterID

func (o *ListAddonsParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the list addons params

func (*ListAddonsParams) SetContext

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

SetContext adds the context to the list addons params

func (*ListAddonsParams) SetDC

func (o *ListAddonsParams) SetDC(dc string)

SetDC adds the dc to the list addons params

func (*ListAddonsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list addons params

func (*ListAddonsParams) SetProjectID

func (o *ListAddonsParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the list addons params

func (*ListAddonsParams) SetTimeout

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

SetTimeout adds the timeout to the list addons params

func (*ListAddonsParams) WithClusterID

func (o *ListAddonsParams) WithClusterID(clusterID string) *ListAddonsParams

WithClusterID adds the clusterID to the list addons params

func (*ListAddonsParams) WithContext

func (o *ListAddonsParams) WithContext(ctx context.Context) *ListAddonsParams

WithContext adds the context to the list addons params

func (*ListAddonsParams) WithDC

func (o *ListAddonsParams) WithDC(dc string) *ListAddonsParams

WithDC adds the dc to the list addons params

func (*ListAddonsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list addons params

func (*ListAddonsParams) WithProjectID

func (o *ListAddonsParams) WithProjectID(projectID string) *ListAddonsParams

WithProjectID adds the projectID to the list addons params

func (*ListAddonsParams) WithTimeout

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

WithTimeout adds the timeout to the list addons params

func (*ListAddonsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListAddonsReader

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

ListAddonsReader is a Reader for the ListAddons structure.

func (*ListAddonsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListAddonsUnauthorized

type ListAddonsUnauthorized struct {
}

ListAddonsUnauthorized handles this case with default header values.

EmptyResponse is a empty response

func NewListAddonsUnauthorized

func NewListAddonsUnauthorized() *ListAddonsUnauthorized

NewListAddonsUnauthorized creates a ListAddonsUnauthorized with default headers values

func (*ListAddonsUnauthorized) Error

func (o *ListAddonsUnauthorized) Error() string

type PatchAddonDefault

type PatchAddonDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

PatchAddonDefault handles this case with default header values.

errorResponse

func NewPatchAddonDefault

func NewPatchAddonDefault(code int) *PatchAddonDefault

NewPatchAddonDefault creates a PatchAddonDefault with default headers values

func (*PatchAddonDefault) Code

func (o *PatchAddonDefault) Code() int

Code gets the status code for the patch addon default response

func (*PatchAddonDefault) Error

func (o *PatchAddonDefault) Error() string

func (*PatchAddonDefault) GetPayload

func (o *PatchAddonDefault) GetPayload() *models.ErrorResponse

type PatchAddonForbidden

type PatchAddonForbidden struct {
}

PatchAddonForbidden handles this case with default header values.

EmptyResponse is a empty response

func NewPatchAddonForbidden

func NewPatchAddonForbidden() *PatchAddonForbidden

NewPatchAddonForbidden creates a PatchAddonForbidden with default headers values

func (*PatchAddonForbidden) Error

func (o *PatchAddonForbidden) Error() string

type PatchAddonOK

type PatchAddonOK struct {
	Payload *models.Addon
}

PatchAddonOK handles this case with default header values.

Addon

func NewPatchAddonOK

func NewPatchAddonOK() *PatchAddonOK

NewPatchAddonOK creates a PatchAddonOK with default headers values

func (*PatchAddonOK) Error

func (o *PatchAddonOK) Error() string

func (*PatchAddonOK) GetPayload

func (o *PatchAddonOK) GetPayload() *models.Addon

type PatchAddonParams

type PatchAddonParams struct {

	/*Body*/
	Body *models.Addon
	/*AddonID*/
	AddonID string
	/*ClusterID*/
	ClusterID string
	/*Dc*/
	DC string
	/*ProjectID*/
	ProjectID string

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

PatchAddonParams contains all the parameters to send to the API endpoint for the patch addon operation typically these are written to a http.Request

func NewPatchAddonParams

func NewPatchAddonParams() *PatchAddonParams

NewPatchAddonParams creates a new PatchAddonParams object with the default values initialized.

func NewPatchAddonParamsWithContext

func NewPatchAddonParamsWithContext(ctx context.Context) *PatchAddonParams

NewPatchAddonParamsWithContext creates a new PatchAddonParams object with the default values initialized, and the ability to set a context for a request

func NewPatchAddonParamsWithHTTPClient

func NewPatchAddonParamsWithHTTPClient(client *http.Client) *PatchAddonParams

NewPatchAddonParamsWithHTTPClient creates a new PatchAddonParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPatchAddonParamsWithTimeout

func NewPatchAddonParamsWithTimeout(timeout time.Duration) *PatchAddonParams

NewPatchAddonParamsWithTimeout creates a new PatchAddonParams object with the default values initialized, and the ability to set a timeout on a request

func (*PatchAddonParams) SetAddonID

func (o *PatchAddonParams) SetAddonID(addonID string)

SetAddonID adds the addonId to the patch addon params

func (*PatchAddonParams) SetBody

func (o *PatchAddonParams) SetBody(body *models.Addon)

SetBody adds the body to the patch addon params

func (*PatchAddonParams) SetClusterID

func (o *PatchAddonParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the patch addon params

func (*PatchAddonParams) SetContext

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

SetContext adds the context to the patch addon params

func (*PatchAddonParams) SetDC

func (o *PatchAddonParams) SetDC(dc string)

SetDC adds the dc to the patch addon params

func (*PatchAddonParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch addon params

func (*PatchAddonParams) SetProjectID

func (o *PatchAddonParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the patch addon params

func (*PatchAddonParams) SetTimeout

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

SetTimeout adds the timeout to the patch addon params

func (*PatchAddonParams) WithAddonID

func (o *PatchAddonParams) WithAddonID(addonID string) *PatchAddonParams

WithAddonID adds the addonID to the patch addon params

func (*PatchAddonParams) WithBody

func (o *PatchAddonParams) WithBody(body *models.Addon) *PatchAddonParams

WithBody adds the body to the patch addon params

func (*PatchAddonParams) WithClusterID

func (o *PatchAddonParams) WithClusterID(clusterID string) *PatchAddonParams

WithClusterID adds the clusterID to the patch addon params

func (*PatchAddonParams) WithContext

func (o *PatchAddonParams) WithContext(ctx context.Context) *PatchAddonParams

WithContext adds the context to the patch addon params

func (*PatchAddonParams) WithDC

func (o *PatchAddonParams) WithDC(dc string) *PatchAddonParams

WithDC adds the dc to the patch addon params

func (*PatchAddonParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch addon params

func (*PatchAddonParams) WithProjectID

func (o *PatchAddonParams) WithProjectID(projectID string) *PatchAddonParams

WithProjectID adds the projectID to the patch addon params

func (*PatchAddonParams) WithTimeout

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

WithTimeout adds the timeout to the patch addon params

func (*PatchAddonParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PatchAddonReader

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

PatchAddonReader is a Reader for the PatchAddon structure.

func (*PatchAddonReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchAddonUnauthorized

type PatchAddonUnauthorized struct {
}

PatchAddonUnauthorized handles this case with default header values.

EmptyResponse is a empty response

func NewPatchAddonUnauthorized

func NewPatchAddonUnauthorized() *PatchAddonUnauthorized

NewPatchAddonUnauthorized creates a PatchAddonUnauthorized with default headers values

func (*PatchAddonUnauthorized) Error

func (o *PatchAddonUnauthorized) Error() string

Jump to

Keyboard shortcuts

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