pks_endpoints

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 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 p k s endpoints API

func (*Client) CreateClusterUsingPOST

func (a *Client) CreateClusterUsingPOST(params *CreateClusterUsingPOSTParams, opts ...ClientOption) (*CreateClusterUsingPOSTOK, error)

CreateClusterUsingPOST creates a k8 s cluster

Create a K8S cluster on PKS endpoint specified by endpoint id

func (*Client) DestroyClusterUsingDELETE1

func (a *Client) DestroyClusterUsingDELETE1(params *DestroyClusterUsingDELETE1Params, opts ...ClientOption) (*DestroyClusterUsingDELETE1OK, error)

DestroyClusterUsingDELETE1 destroys a k8 s cluster on a specific p k s endpoint

Destroy and unregister a K8S cluster on PKS endpoint

func (*Client) GetClustersUsingGET

func (a *Client) GetClustersUsingGET(params *GetClustersUsingGETParams, opts ...ClientOption) (*GetClustersUsingGETOK, error)

GetClustersUsingGET gets all k8 s clusters for a p k s endpoint

Get all K8S clusters for a PKS endpoint by provided PKS endpoint id

func (*Client) GetPlansUsingGET

func (a *Client) GetPlansUsingGET(params *GetPlansUsingGETParams, opts ...ClientOption) (*GetPlansUsingGETOK, error)

GetPlansUsingGET gets supported plans for a p k s endpoint

Get supported plans by providing PKS endpoint id

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateClusterUsingPUT

func (a *Client) UpdateClusterUsingPUT(params *UpdateClusterUsingPUTParams, opts ...ClientOption) (*UpdateClusterUsingPUTOK, error)

UpdateClusterUsingPUT updates a k8 s cluster on a specific endpoint id

Update a K8S cluster on a PKS endpoint identified by id

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateClusterUsingPOST(params *CreateClusterUsingPOSTParams, opts ...ClientOption) (*CreateClusterUsingPOSTOK, error)

	DestroyClusterUsingDELETE1(params *DestroyClusterUsingDELETE1Params, opts ...ClientOption) (*DestroyClusterUsingDELETE1OK, error)

	GetClustersUsingGET(params *GetClustersUsingGETParams, opts ...ClientOption) (*GetClustersUsingGETOK, error)

	GetPlansUsingGET(params *GetPlansUsingGETParams, opts ...ClientOption) (*GetPlansUsingGETOK, error)

	UpdateClusterUsingPUT(params *UpdateClusterUsingPUTParams, opts ...ClientOption) (*UpdateClusterUsingPUTOK, 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 p k s endpoints API client.

type CreateClusterUsingPOSTForbidden

type CreateClusterUsingPOSTForbidden struct {
}

CreateClusterUsingPOSTForbidden describes a response with status code 403, with default header values.

Forbidden, the user lacks permissions

func NewCreateClusterUsingPOSTForbidden

func NewCreateClusterUsingPOSTForbidden() *CreateClusterUsingPOSTForbidden

NewCreateClusterUsingPOSTForbidden creates a CreateClusterUsingPOSTForbidden with default headers values

func (*CreateClusterUsingPOSTForbidden) Error

func (*CreateClusterUsingPOSTForbidden) IsClientError

func (o *CreateClusterUsingPOSTForbidden) IsClientError() bool

IsClientError returns true when this create cluster using p o s t forbidden response has a 4xx status code

func (*CreateClusterUsingPOSTForbidden) IsCode

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

IsCode returns true when this create cluster using p o s t forbidden response a status code equal to that given

func (*CreateClusterUsingPOSTForbidden) IsRedirect

func (o *CreateClusterUsingPOSTForbidden) IsRedirect() bool

IsRedirect returns true when this create cluster using p o s t forbidden response has a 3xx status code

func (*CreateClusterUsingPOSTForbidden) IsServerError

func (o *CreateClusterUsingPOSTForbidden) IsServerError() bool

IsServerError returns true when this create cluster using p o s t forbidden response has a 5xx status code

func (*CreateClusterUsingPOSTForbidden) IsSuccess

func (o *CreateClusterUsingPOSTForbidden) IsSuccess() bool

IsSuccess returns true when this create cluster using p o s t forbidden response has a 2xx status code

func (*CreateClusterUsingPOSTForbidden) String

type CreateClusterUsingPOSTOK

type CreateClusterUsingPOSTOK struct {
	Payload *models.K8SCluster
}

CreateClusterUsingPOSTOK describes a response with status code 200, with default header values.

OK

func NewCreateClusterUsingPOSTOK

func NewCreateClusterUsingPOSTOK() *CreateClusterUsingPOSTOK

NewCreateClusterUsingPOSTOK creates a CreateClusterUsingPOSTOK with default headers values

func (*CreateClusterUsingPOSTOK) Error

func (o *CreateClusterUsingPOSTOK) Error() string

func (*CreateClusterUsingPOSTOK) GetPayload

func (o *CreateClusterUsingPOSTOK) GetPayload() *models.K8SCluster

func (*CreateClusterUsingPOSTOK) IsClientError

func (o *CreateClusterUsingPOSTOK) IsClientError() bool

IsClientError returns true when this create cluster using p o s t o k response has a 4xx status code

func (*CreateClusterUsingPOSTOK) IsCode

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

IsCode returns true when this create cluster using p o s t o k response a status code equal to that given

func (*CreateClusterUsingPOSTOK) IsRedirect

func (o *CreateClusterUsingPOSTOK) IsRedirect() bool

IsRedirect returns true when this create cluster using p o s t o k response has a 3xx status code

func (*CreateClusterUsingPOSTOK) IsServerError

func (o *CreateClusterUsingPOSTOK) IsServerError() bool

IsServerError returns true when this create cluster using p o s t o k response has a 5xx status code

func (*CreateClusterUsingPOSTOK) IsSuccess

func (o *CreateClusterUsingPOSTOK) IsSuccess() bool

IsSuccess returns true when this create cluster using p o s t o k response has a 2xx status code

func (*CreateClusterUsingPOSTOK) String

func (o *CreateClusterUsingPOSTOK) String() string

type CreateClusterUsingPOSTParams

type CreateClusterUsingPOSTParams struct {

	/* ID.

	   id
	*/
	ID string

	/* PksCluster.

	   pksCluster
	*/
	PksCluster *models.PKSCluster

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

CreateClusterUsingPOSTParams contains all the parameters to send to the API endpoint

for the create cluster using p o s t operation.

Typically these are written to a http.Request.

func NewCreateClusterUsingPOSTParams

func NewCreateClusterUsingPOSTParams() *CreateClusterUsingPOSTParams

NewCreateClusterUsingPOSTParams creates a new CreateClusterUsingPOSTParams 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 NewCreateClusterUsingPOSTParamsWithContext

func NewCreateClusterUsingPOSTParamsWithContext(ctx context.Context) *CreateClusterUsingPOSTParams

NewCreateClusterUsingPOSTParamsWithContext creates a new CreateClusterUsingPOSTParams object with the ability to set a context for a request.

func NewCreateClusterUsingPOSTParamsWithHTTPClient

func NewCreateClusterUsingPOSTParamsWithHTTPClient(client *http.Client) *CreateClusterUsingPOSTParams

NewCreateClusterUsingPOSTParamsWithHTTPClient creates a new CreateClusterUsingPOSTParams object with the ability to set a custom HTTPClient for a request.

func NewCreateClusterUsingPOSTParamsWithTimeout

func NewCreateClusterUsingPOSTParamsWithTimeout(timeout time.Duration) *CreateClusterUsingPOSTParams

NewCreateClusterUsingPOSTParamsWithTimeout creates a new CreateClusterUsingPOSTParams object with the ability to set a timeout on a request.

func (*CreateClusterUsingPOSTParams) SetContext

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

SetContext adds the context to the create cluster using p o s t params

func (*CreateClusterUsingPOSTParams) SetDefaults

func (o *CreateClusterUsingPOSTParams) SetDefaults()

SetDefaults hydrates default values in the create cluster using p o s t params (not the query body).

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

func (*CreateClusterUsingPOSTParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create cluster using p o s t params

func (*CreateClusterUsingPOSTParams) SetID

func (o *CreateClusterUsingPOSTParams) SetID(id string)

SetID adds the id to the create cluster using p o s t params

func (*CreateClusterUsingPOSTParams) SetPksCluster

func (o *CreateClusterUsingPOSTParams) SetPksCluster(pksCluster *models.PKSCluster)

SetPksCluster adds the pksCluster to the create cluster using p o s t params

func (*CreateClusterUsingPOSTParams) SetTimeout

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

SetTimeout adds the timeout to the create cluster using p o s t params

func (*CreateClusterUsingPOSTParams) WithContext

WithContext adds the context to the create cluster using p o s t params

func (*CreateClusterUsingPOSTParams) WithDefaults

WithDefaults hydrates default values in the create cluster using p o s t params (not the query body).

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

func (*CreateClusterUsingPOSTParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create cluster using p o s t params

func (*CreateClusterUsingPOSTParams) WithID

WithID adds the id to the create cluster using p o s t params

func (*CreateClusterUsingPOSTParams) WithPksCluster

WithPksCluster adds the pksCluster to the create cluster using p o s t params

func (*CreateClusterUsingPOSTParams) WithTimeout

WithTimeout adds the timeout to the create cluster using p o s t params

func (*CreateClusterUsingPOSTParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateClusterUsingPOSTReader

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

CreateClusterUsingPOSTReader is a Reader for the CreateClusterUsingPOST structure.

func (*CreateClusterUsingPOSTReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DestroyClusterUsingDELETE1Forbidden

type DestroyClusterUsingDELETE1Forbidden struct {
}

DestroyClusterUsingDELETE1Forbidden describes a response with status code 403, with default header values.

Forbidden, the user lacks permissions

func NewDestroyClusterUsingDELETE1Forbidden

func NewDestroyClusterUsingDELETE1Forbidden() *DestroyClusterUsingDELETE1Forbidden

NewDestroyClusterUsingDELETE1Forbidden creates a DestroyClusterUsingDELETE1Forbidden with default headers values

func (*DestroyClusterUsingDELETE1Forbidden) Error

func (*DestroyClusterUsingDELETE1Forbidden) IsClientError

func (o *DestroyClusterUsingDELETE1Forbidden) IsClientError() bool

IsClientError returns true when this destroy cluster using d e l e t e1 forbidden response has a 4xx status code

func (*DestroyClusterUsingDELETE1Forbidden) IsCode

IsCode returns true when this destroy cluster using d e l e t e1 forbidden response a status code equal to that given

func (*DestroyClusterUsingDELETE1Forbidden) IsRedirect

func (o *DestroyClusterUsingDELETE1Forbidden) IsRedirect() bool

IsRedirect returns true when this destroy cluster using d e l e t e1 forbidden response has a 3xx status code

func (*DestroyClusterUsingDELETE1Forbidden) IsServerError

func (o *DestroyClusterUsingDELETE1Forbidden) IsServerError() bool

IsServerError returns true when this destroy cluster using d e l e t e1 forbidden response has a 5xx status code

func (*DestroyClusterUsingDELETE1Forbidden) IsSuccess

IsSuccess returns true when this destroy cluster using d e l e t e1 forbidden response has a 2xx status code

func (*DestroyClusterUsingDELETE1Forbidden) String

type DestroyClusterUsingDELETE1OK

type DestroyClusterUsingDELETE1OK struct {
}

DestroyClusterUsingDELETE1OK describes a response with status code 200, with default header values.

OK

func NewDestroyClusterUsingDELETE1OK

func NewDestroyClusterUsingDELETE1OK() *DestroyClusterUsingDELETE1OK

NewDestroyClusterUsingDELETE1OK creates a DestroyClusterUsingDELETE1OK with default headers values

func (*DestroyClusterUsingDELETE1OK) Error

func (*DestroyClusterUsingDELETE1OK) IsClientError

func (o *DestroyClusterUsingDELETE1OK) IsClientError() bool

IsClientError returns true when this destroy cluster using d e l e t e1 o k response has a 4xx status code

func (*DestroyClusterUsingDELETE1OK) IsCode

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

IsCode returns true when this destroy cluster using d e l e t e1 o k response a status code equal to that given

func (*DestroyClusterUsingDELETE1OK) IsRedirect

func (o *DestroyClusterUsingDELETE1OK) IsRedirect() bool

IsRedirect returns true when this destroy cluster using d e l e t e1 o k response has a 3xx status code

func (*DestroyClusterUsingDELETE1OK) IsServerError

func (o *DestroyClusterUsingDELETE1OK) IsServerError() bool

IsServerError returns true when this destroy cluster using d e l e t e1 o k response has a 5xx status code

func (*DestroyClusterUsingDELETE1OK) IsSuccess

func (o *DestroyClusterUsingDELETE1OK) IsSuccess() bool

IsSuccess returns true when this destroy cluster using d e l e t e1 o k response has a 2xx status code

func (*DestroyClusterUsingDELETE1OK) String

type DestroyClusterUsingDELETE1Params

type DestroyClusterUsingDELETE1Params struct {

	/* ClusterID.

	   clusterId
	*/
	ClusterID string

	/* ID.

	   id
	*/
	ID string

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

DestroyClusterUsingDELETE1Params contains all the parameters to send to the API endpoint

for the destroy cluster using d e l e t e 1 operation.

Typically these are written to a http.Request.

func NewDestroyClusterUsingDELETE1Params

func NewDestroyClusterUsingDELETE1Params() *DestroyClusterUsingDELETE1Params

NewDestroyClusterUsingDELETE1Params creates a new DestroyClusterUsingDELETE1Params 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 NewDestroyClusterUsingDELETE1ParamsWithContext

func NewDestroyClusterUsingDELETE1ParamsWithContext(ctx context.Context) *DestroyClusterUsingDELETE1Params

NewDestroyClusterUsingDELETE1ParamsWithContext creates a new DestroyClusterUsingDELETE1Params object with the ability to set a context for a request.

func NewDestroyClusterUsingDELETE1ParamsWithHTTPClient

func NewDestroyClusterUsingDELETE1ParamsWithHTTPClient(client *http.Client) *DestroyClusterUsingDELETE1Params

NewDestroyClusterUsingDELETE1ParamsWithHTTPClient creates a new DestroyClusterUsingDELETE1Params object with the ability to set a custom HTTPClient for a request.

func NewDestroyClusterUsingDELETE1ParamsWithTimeout

func NewDestroyClusterUsingDELETE1ParamsWithTimeout(timeout time.Duration) *DestroyClusterUsingDELETE1Params

NewDestroyClusterUsingDELETE1ParamsWithTimeout creates a new DestroyClusterUsingDELETE1Params object with the ability to set a timeout on a request.

func (*DestroyClusterUsingDELETE1Params) SetClusterID

func (o *DestroyClusterUsingDELETE1Params) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the destroy cluster using d e l e t e 1 params

func (*DestroyClusterUsingDELETE1Params) SetContext

SetContext adds the context to the destroy cluster using d e l e t e 1 params

func (*DestroyClusterUsingDELETE1Params) SetDefaults

func (o *DestroyClusterUsingDELETE1Params) SetDefaults()

SetDefaults hydrates default values in the destroy cluster using d e l e t e 1 params (not the query body).

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

func (*DestroyClusterUsingDELETE1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the destroy cluster using d e l e t e 1 params

func (*DestroyClusterUsingDELETE1Params) SetID

SetID adds the id to the destroy cluster using d e l e t e 1 params

func (*DestroyClusterUsingDELETE1Params) SetTimeout

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

SetTimeout adds the timeout to the destroy cluster using d e l e t e 1 params

func (*DestroyClusterUsingDELETE1Params) WithClusterID

WithClusterID adds the clusterID to the destroy cluster using d e l e t e 1 params

func (*DestroyClusterUsingDELETE1Params) WithContext

WithContext adds the context to the destroy cluster using d e l e t e 1 params

func (*DestroyClusterUsingDELETE1Params) WithDefaults

WithDefaults hydrates default values in the destroy cluster using d e l e t e 1 params (not the query body).

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

func (*DestroyClusterUsingDELETE1Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the destroy cluster using d e l e t e 1 params

func (*DestroyClusterUsingDELETE1Params) WithID

WithID adds the id to the destroy cluster using d e l e t e 1 params

func (*DestroyClusterUsingDELETE1Params) WithTimeout

WithTimeout adds the timeout to the destroy cluster using d e l e t e 1 params

func (*DestroyClusterUsingDELETE1Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type DestroyClusterUsingDELETE1Reader

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

DestroyClusterUsingDELETE1Reader is a Reader for the DestroyClusterUsingDELETE1 structure.

func (*DestroyClusterUsingDELETE1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetClustersUsingGETForbidden

type GetClustersUsingGETForbidden struct {
}

GetClustersUsingGETForbidden describes a response with status code 403, with default header values.

Forbidden, the user lacks permissions

func NewGetClustersUsingGETForbidden

func NewGetClustersUsingGETForbidden() *GetClustersUsingGETForbidden

NewGetClustersUsingGETForbidden creates a GetClustersUsingGETForbidden with default headers values

func (*GetClustersUsingGETForbidden) Error

func (*GetClustersUsingGETForbidden) IsClientError

func (o *GetClustersUsingGETForbidden) IsClientError() bool

IsClientError returns true when this get clusters using g e t forbidden response has a 4xx status code

func (*GetClustersUsingGETForbidden) IsCode

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

IsCode returns true when this get clusters using g e t forbidden response a status code equal to that given

func (*GetClustersUsingGETForbidden) IsRedirect

func (o *GetClustersUsingGETForbidden) IsRedirect() bool

IsRedirect returns true when this get clusters using g e t forbidden response has a 3xx status code

func (*GetClustersUsingGETForbidden) IsServerError

func (o *GetClustersUsingGETForbidden) IsServerError() bool

IsServerError returns true when this get clusters using g e t forbidden response has a 5xx status code

func (*GetClustersUsingGETForbidden) IsSuccess

func (o *GetClustersUsingGETForbidden) IsSuccess() bool

IsSuccess returns true when this get clusters using g e t forbidden response has a 2xx status code

func (*GetClustersUsingGETForbidden) String

type GetClustersUsingGETOK

type GetClustersUsingGETOK struct {
	Payload []*models.PKSCluster
}

GetClustersUsingGETOK describes a response with status code 200, with default header values.

OK

func NewGetClustersUsingGETOK

func NewGetClustersUsingGETOK() *GetClustersUsingGETOK

NewGetClustersUsingGETOK creates a GetClustersUsingGETOK with default headers values

func (*GetClustersUsingGETOK) Error

func (o *GetClustersUsingGETOK) Error() string

func (*GetClustersUsingGETOK) GetPayload

func (o *GetClustersUsingGETOK) GetPayload() []*models.PKSCluster

func (*GetClustersUsingGETOK) IsClientError

func (o *GetClustersUsingGETOK) IsClientError() bool

IsClientError returns true when this get clusters using g e t o k response has a 4xx status code

func (*GetClustersUsingGETOK) IsCode

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

IsCode returns true when this get clusters using g e t o k response a status code equal to that given

func (*GetClustersUsingGETOK) IsRedirect

func (o *GetClustersUsingGETOK) IsRedirect() bool

IsRedirect returns true when this get clusters using g e t o k response has a 3xx status code

func (*GetClustersUsingGETOK) IsServerError

func (o *GetClustersUsingGETOK) IsServerError() bool

IsServerError returns true when this get clusters using g e t o k response has a 5xx status code

func (*GetClustersUsingGETOK) IsSuccess

func (o *GetClustersUsingGETOK) IsSuccess() bool

IsSuccess returns true when this get clusters using g e t o k response has a 2xx status code

func (*GetClustersUsingGETOK) String

func (o *GetClustersUsingGETOK) String() string

type GetClustersUsingGETParams

type GetClustersUsingGETParams struct {

	/* ID.

	   id
	*/
	ID string

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

GetClustersUsingGETParams contains all the parameters to send to the API endpoint

for the get clusters using g e t operation.

Typically these are written to a http.Request.

func NewGetClustersUsingGETParams

func NewGetClustersUsingGETParams() *GetClustersUsingGETParams

NewGetClustersUsingGETParams creates a new GetClustersUsingGETParams 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 NewGetClustersUsingGETParamsWithContext

func NewGetClustersUsingGETParamsWithContext(ctx context.Context) *GetClustersUsingGETParams

NewGetClustersUsingGETParamsWithContext creates a new GetClustersUsingGETParams object with the ability to set a context for a request.

func NewGetClustersUsingGETParamsWithHTTPClient

func NewGetClustersUsingGETParamsWithHTTPClient(client *http.Client) *GetClustersUsingGETParams

NewGetClustersUsingGETParamsWithHTTPClient creates a new GetClustersUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewGetClustersUsingGETParamsWithTimeout

func NewGetClustersUsingGETParamsWithTimeout(timeout time.Duration) *GetClustersUsingGETParams

NewGetClustersUsingGETParamsWithTimeout creates a new GetClustersUsingGETParams object with the ability to set a timeout on a request.

func (*GetClustersUsingGETParams) SetContext

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

SetContext adds the context to the get clusters using get params

func (*GetClustersUsingGETParams) SetDefaults

func (o *GetClustersUsingGETParams) SetDefaults()

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

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

func (*GetClustersUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get clusters using get params

func (*GetClustersUsingGETParams) SetID

func (o *GetClustersUsingGETParams) SetID(id string)

SetID adds the id to the get clusters using get params

func (*GetClustersUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the get clusters using get params

func (*GetClustersUsingGETParams) WithContext

WithContext adds the context to the get clusters using get params

func (*GetClustersUsingGETParams) WithDefaults

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

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

func (*GetClustersUsingGETParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get clusters using get params

func (*GetClustersUsingGETParams) WithID

WithID adds the id to the get clusters using get params

func (*GetClustersUsingGETParams) WithTimeout

WithTimeout adds the timeout to the get clusters using get params

func (*GetClustersUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetClustersUsingGETReader

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

GetClustersUsingGETReader is a Reader for the GetClustersUsingGET structure.

func (*GetClustersUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPlansUsingGETForbidden

type GetPlansUsingGETForbidden struct {
}

GetPlansUsingGETForbidden describes a response with status code 403, with default header values.

Forbidden, the user lacks permissions

func NewGetPlansUsingGETForbidden

func NewGetPlansUsingGETForbidden() *GetPlansUsingGETForbidden

NewGetPlansUsingGETForbidden creates a GetPlansUsingGETForbidden with default headers values

func (*GetPlansUsingGETForbidden) Error

func (o *GetPlansUsingGETForbidden) Error() string

func (*GetPlansUsingGETForbidden) IsClientError

func (o *GetPlansUsingGETForbidden) IsClientError() bool

IsClientError returns true when this get plans using g e t forbidden response has a 4xx status code

func (*GetPlansUsingGETForbidden) IsCode

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

IsCode returns true when this get plans using g e t forbidden response a status code equal to that given

func (*GetPlansUsingGETForbidden) IsRedirect

func (o *GetPlansUsingGETForbidden) IsRedirect() bool

IsRedirect returns true when this get plans using g e t forbidden response has a 3xx status code

func (*GetPlansUsingGETForbidden) IsServerError

func (o *GetPlansUsingGETForbidden) IsServerError() bool

IsServerError returns true when this get plans using g e t forbidden response has a 5xx status code

func (*GetPlansUsingGETForbidden) IsSuccess

func (o *GetPlansUsingGETForbidden) IsSuccess() bool

IsSuccess returns true when this get plans using g e t forbidden response has a 2xx status code

func (*GetPlansUsingGETForbidden) String

func (o *GetPlansUsingGETForbidden) String() string

type GetPlansUsingGETOK

type GetPlansUsingGETOK struct {
	Payload []*models.PKSPlan
}

GetPlansUsingGETOK describes a response with status code 200, with default header values.

OK

func NewGetPlansUsingGETOK

func NewGetPlansUsingGETOK() *GetPlansUsingGETOK

NewGetPlansUsingGETOK creates a GetPlansUsingGETOK with default headers values

func (*GetPlansUsingGETOK) Error

func (o *GetPlansUsingGETOK) Error() string

func (*GetPlansUsingGETOK) GetPayload

func (o *GetPlansUsingGETOK) GetPayload() []*models.PKSPlan

func (*GetPlansUsingGETOK) IsClientError

func (o *GetPlansUsingGETOK) IsClientError() bool

IsClientError returns true when this get plans using g e t o k response has a 4xx status code

func (*GetPlansUsingGETOK) IsCode

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

IsCode returns true when this get plans using g e t o k response a status code equal to that given

func (*GetPlansUsingGETOK) IsRedirect

func (o *GetPlansUsingGETOK) IsRedirect() bool

IsRedirect returns true when this get plans using g e t o k response has a 3xx status code

func (*GetPlansUsingGETOK) IsServerError

func (o *GetPlansUsingGETOK) IsServerError() bool

IsServerError returns true when this get plans using g e t o k response has a 5xx status code

func (*GetPlansUsingGETOK) IsSuccess

func (o *GetPlansUsingGETOK) IsSuccess() bool

IsSuccess returns true when this get plans using g e t o k response has a 2xx status code

func (*GetPlansUsingGETOK) String

func (o *GetPlansUsingGETOK) String() string

type GetPlansUsingGETParams

type GetPlansUsingGETParams struct {

	/* ID.

	   id
	*/
	ID string

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

GetPlansUsingGETParams contains all the parameters to send to the API endpoint

for the get plans using g e t operation.

Typically these are written to a http.Request.

func NewGetPlansUsingGETParams

func NewGetPlansUsingGETParams() *GetPlansUsingGETParams

NewGetPlansUsingGETParams creates a new GetPlansUsingGETParams 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 NewGetPlansUsingGETParamsWithContext

func NewGetPlansUsingGETParamsWithContext(ctx context.Context) *GetPlansUsingGETParams

NewGetPlansUsingGETParamsWithContext creates a new GetPlansUsingGETParams object with the ability to set a context for a request.

func NewGetPlansUsingGETParamsWithHTTPClient

func NewGetPlansUsingGETParamsWithHTTPClient(client *http.Client) *GetPlansUsingGETParams

NewGetPlansUsingGETParamsWithHTTPClient creates a new GetPlansUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewGetPlansUsingGETParamsWithTimeout

func NewGetPlansUsingGETParamsWithTimeout(timeout time.Duration) *GetPlansUsingGETParams

NewGetPlansUsingGETParamsWithTimeout creates a new GetPlansUsingGETParams object with the ability to set a timeout on a request.

func (*GetPlansUsingGETParams) SetContext

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

SetContext adds the context to the get plans using get params

func (*GetPlansUsingGETParams) SetDefaults

func (o *GetPlansUsingGETParams) SetDefaults()

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

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

func (*GetPlansUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get plans using get params

func (*GetPlansUsingGETParams) SetID

func (o *GetPlansUsingGETParams) SetID(id string)

SetID adds the id to the get plans using get params

func (*GetPlansUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the get plans using get params

func (*GetPlansUsingGETParams) WithContext

WithContext adds the context to the get plans using get params

func (*GetPlansUsingGETParams) WithDefaults

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

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

func (*GetPlansUsingGETParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get plans using get params

func (*GetPlansUsingGETParams) WithID

WithID adds the id to the get plans using get params

func (*GetPlansUsingGETParams) WithTimeout

WithTimeout adds the timeout to the get plans using get params

func (*GetPlansUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPlansUsingGETReader

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

GetPlansUsingGETReader is a Reader for the GetPlansUsingGET structure.

func (*GetPlansUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateClusterUsingPUTForbidden

type UpdateClusterUsingPUTForbidden struct {
}

UpdateClusterUsingPUTForbidden describes a response with status code 403, with default header values.

Forbidden, the user lacks permissions

func NewUpdateClusterUsingPUTForbidden

func NewUpdateClusterUsingPUTForbidden() *UpdateClusterUsingPUTForbidden

NewUpdateClusterUsingPUTForbidden creates a UpdateClusterUsingPUTForbidden with default headers values

func (*UpdateClusterUsingPUTForbidden) Error

func (*UpdateClusterUsingPUTForbidden) IsClientError

func (o *UpdateClusterUsingPUTForbidden) IsClientError() bool

IsClientError returns true when this update cluster using p u t forbidden response has a 4xx status code

func (*UpdateClusterUsingPUTForbidden) IsCode

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

IsCode returns true when this update cluster using p u t forbidden response a status code equal to that given

func (*UpdateClusterUsingPUTForbidden) IsRedirect

func (o *UpdateClusterUsingPUTForbidden) IsRedirect() bool

IsRedirect returns true when this update cluster using p u t forbidden response has a 3xx status code

func (*UpdateClusterUsingPUTForbidden) IsServerError

func (o *UpdateClusterUsingPUTForbidden) IsServerError() bool

IsServerError returns true when this update cluster using p u t forbidden response has a 5xx status code

func (*UpdateClusterUsingPUTForbidden) IsSuccess

func (o *UpdateClusterUsingPUTForbidden) IsSuccess() bool

IsSuccess returns true when this update cluster using p u t forbidden response has a 2xx status code

func (*UpdateClusterUsingPUTForbidden) String

type UpdateClusterUsingPUTOK

type UpdateClusterUsingPUTOK struct {
	Payload *models.K8SCluster
}

UpdateClusterUsingPUTOK describes a response with status code 200, with default header values.

OK

func NewUpdateClusterUsingPUTOK

func NewUpdateClusterUsingPUTOK() *UpdateClusterUsingPUTOK

NewUpdateClusterUsingPUTOK creates a UpdateClusterUsingPUTOK with default headers values

func (*UpdateClusterUsingPUTOK) Error

func (o *UpdateClusterUsingPUTOK) Error() string

func (*UpdateClusterUsingPUTOK) GetPayload

func (o *UpdateClusterUsingPUTOK) GetPayload() *models.K8SCluster

func (*UpdateClusterUsingPUTOK) IsClientError

func (o *UpdateClusterUsingPUTOK) IsClientError() bool

IsClientError returns true when this update cluster using p u t o k response has a 4xx status code

func (*UpdateClusterUsingPUTOK) IsCode

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

IsCode returns true when this update cluster using p u t o k response a status code equal to that given

func (*UpdateClusterUsingPUTOK) IsRedirect

func (o *UpdateClusterUsingPUTOK) IsRedirect() bool

IsRedirect returns true when this update cluster using p u t o k response has a 3xx status code

func (*UpdateClusterUsingPUTOK) IsServerError

func (o *UpdateClusterUsingPUTOK) IsServerError() bool

IsServerError returns true when this update cluster using p u t o k response has a 5xx status code

func (*UpdateClusterUsingPUTOK) IsSuccess

func (o *UpdateClusterUsingPUTOK) IsSuccess() bool

IsSuccess returns true when this update cluster using p u t o k response has a 2xx status code

func (*UpdateClusterUsingPUTOK) String

func (o *UpdateClusterUsingPUTOK) String() string

type UpdateClusterUsingPUTParams

type UpdateClusterUsingPUTParams struct {

	/* ClusterID.

	   clusterId
	*/
	ClusterID string

	/* ID.

	   id
	*/
	ID string

	/* PksCluster.

	   pksCluster
	*/
	PksCluster *models.PKSCluster

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

UpdateClusterUsingPUTParams contains all the parameters to send to the API endpoint

for the update cluster using p u t operation.

Typically these are written to a http.Request.

func NewUpdateClusterUsingPUTParams

func NewUpdateClusterUsingPUTParams() *UpdateClusterUsingPUTParams

NewUpdateClusterUsingPUTParams creates a new UpdateClusterUsingPUTParams 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 NewUpdateClusterUsingPUTParamsWithContext

func NewUpdateClusterUsingPUTParamsWithContext(ctx context.Context) *UpdateClusterUsingPUTParams

NewUpdateClusterUsingPUTParamsWithContext creates a new UpdateClusterUsingPUTParams object with the ability to set a context for a request.

func NewUpdateClusterUsingPUTParamsWithHTTPClient

func NewUpdateClusterUsingPUTParamsWithHTTPClient(client *http.Client) *UpdateClusterUsingPUTParams

NewUpdateClusterUsingPUTParamsWithHTTPClient creates a new UpdateClusterUsingPUTParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateClusterUsingPUTParamsWithTimeout

func NewUpdateClusterUsingPUTParamsWithTimeout(timeout time.Duration) *UpdateClusterUsingPUTParams

NewUpdateClusterUsingPUTParamsWithTimeout creates a new UpdateClusterUsingPUTParams object with the ability to set a timeout on a request.

func (*UpdateClusterUsingPUTParams) SetClusterID

func (o *UpdateClusterUsingPUTParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the update cluster using p u t params

func (*UpdateClusterUsingPUTParams) SetContext

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

SetContext adds the context to the update cluster using p u t params

func (*UpdateClusterUsingPUTParams) SetDefaults

func (o *UpdateClusterUsingPUTParams) SetDefaults()

SetDefaults hydrates default values in the update cluster using p u t params (not the query body).

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

func (*UpdateClusterUsingPUTParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update cluster using p u t params

func (*UpdateClusterUsingPUTParams) SetID

func (o *UpdateClusterUsingPUTParams) SetID(id string)

SetID adds the id to the update cluster using p u t params

func (*UpdateClusterUsingPUTParams) SetPksCluster

func (o *UpdateClusterUsingPUTParams) SetPksCluster(pksCluster *models.PKSCluster)

SetPksCluster adds the pksCluster to the update cluster using p u t params

func (*UpdateClusterUsingPUTParams) SetTimeout

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

SetTimeout adds the timeout to the update cluster using p u t params

func (*UpdateClusterUsingPUTParams) WithClusterID

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

WithClusterID adds the clusterID to the update cluster using p u t params

func (*UpdateClusterUsingPUTParams) WithContext

WithContext adds the context to the update cluster using p u t params

func (*UpdateClusterUsingPUTParams) WithDefaults

WithDefaults hydrates default values in the update cluster using p u t params (not the query body).

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

func (*UpdateClusterUsingPUTParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update cluster using p u t params

func (*UpdateClusterUsingPUTParams) WithID

WithID adds the id to the update cluster using p u t params

func (*UpdateClusterUsingPUTParams) WithPksCluster

WithPksCluster adds the pksCluster to the update cluster using p u t params

func (*UpdateClusterUsingPUTParams) WithTimeout

WithTimeout adds the timeout to the update cluster using p u t params

func (*UpdateClusterUsingPUTParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateClusterUsingPUTReader

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

UpdateClusterUsingPUTReader is a Reader for the UpdateClusterUsingPUT structure.

func (*UpdateClusterUsingPUTReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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