Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateClusterUsingPOST(params *CreateClusterUsingPOSTParams, opts ...ClientOption) (*CreateClusterUsingPOSTOK, error)
- func (a *Client) DestroyClusterUsingDELETE1(params *DestroyClusterUsingDELETE1Params, opts ...ClientOption) (*DestroyClusterUsingDELETE1OK, error)
- func (a *Client) GetClustersUsingGET(params *GetClustersUsingGETParams, opts ...ClientOption) (*GetClustersUsingGETOK, error)
- func (a *Client) GetPlansUsingGET(params *GetPlansUsingGETParams, opts ...ClientOption) (*GetPlansUsingGETOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateClusterUsingPUT(params *UpdateClusterUsingPUTParams, opts ...ClientOption) (*UpdateClusterUsingPUTOK, error)
- type ClientOption
- type ClientService
- type CreateClusterUsingPOSTForbidden
- func (o *CreateClusterUsingPOSTForbidden) Error() string
- func (o *CreateClusterUsingPOSTForbidden) IsClientError() bool
- func (o *CreateClusterUsingPOSTForbidden) IsCode(code int) bool
- func (o *CreateClusterUsingPOSTForbidden) IsRedirect() bool
- func (o *CreateClusterUsingPOSTForbidden) IsServerError() bool
- func (o *CreateClusterUsingPOSTForbidden) IsSuccess() bool
- func (o *CreateClusterUsingPOSTForbidden) String() string
- type CreateClusterUsingPOSTOK
- func (o *CreateClusterUsingPOSTOK) Error() string
- func (o *CreateClusterUsingPOSTOK) GetPayload() *models.K8SCluster
- func (o *CreateClusterUsingPOSTOK) IsClientError() bool
- func (o *CreateClusterUsingPOSTOK) IsCode(code int) bool
- func (o *CreateClusterUsingPOSTOK) IsRedirect() bool
- func (o *CreateClusterUsingPOSTOK) IsServerError() bool
- func (o *CreateClusterUsingPOSTOK) IsSuccess() bool
- func (o *CreateClusterUsingPOSTOK) String() string
- type CreateClusterUsingPOSTParams
- func NewCreateClusterUsingPOSTParams() *CreateClusterUsingPOSTParams
- func NewCreateClusterUsingPOSTParamsWithContext(ctx context.Context) *CreateClusterUsingPOSTParams
- func NewCreateClusterUsingPOSTParamsWithHTTPClient(client *http.Client) *CreateClusterUsingPOSTParams
- func NewCreateClusterUsingPOSTParamsWithTimeout(timeout time.Duration) *CreateClusterUsingPOSTParams
- func (o *CreateClusterUsingPOSTParams) SetContext(ctx context.Context)
- func (o *CreateClusterUsingPOSTParams) SetDefaults()
- func (o *CreateClusterUsingPOSTParams) SetHTTPClient(client *http.Client)
- func (o *CreateClusterUsingPOSTParams) SetID(id string)
- func (o *CreateClusterUsingPOSTParams) SetPksCluster(pksCluster *models.PKSCluster)
- func (o *CreateClusterUsingPOSTParams) SetTimeout(timeout time.Duration)
- func (o *CreateClusterUsingPOSTParams) WithContext(ctx context.Context) *CreateClusterUsingPOSTParams
- func (o *CreateClusterUsingPOSTParams) WithDefaults() *CreateClusterUsingPOSTParams
- func (o *CreateClusterUsingPOSTParams) WithHTTPClient(client *http.Client) *CreateClusterUsingPOSTParams
- func (o *CreateClusterUsingPOSTParams) WithID(id string) *CreateClusterUsingPOSTParams
- func (o *CreateClusterUsingPOSTParams) WithPksCluster(pksCluster *models.PKSCluster) *CreateClusterUsingPOSTParams
- func (o *CreateClusterUsingPOSTParams) WithTimeout(timeout time.Duration) *CreateClusterUsingPOSTParams
- func (o *CreateClusterUsingPOSTParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateClusterUsingPOSTReader
- type DestroyClusterUsingDELETE1Forbidden
- func (o *DestroyClusterUsingDELETE1Forbidden) Error() string
- func (o *DestroyClusterUsingDELETE1Forbidden) IsClientError() bool
- func (o *DestroyClusterUsingDELETE1Forbidden) IsCode(code int) bool
- func (o *DestroyClusterUsingDELETE1Forbidden) IsRedirect() bool
- func (o *DestroyClusterUsingDELETE1Forbidden) IsServerError() bool
- func (o *DestroyClusterUsingDELETE1Forbidden) IsSuccess() bool
- func (o *DestroyClusterUsingDELETE1Forbidden) String() string
- type DestroyClusterUsingDELETE1OK
- func (o *DestroyClusterUsingDELETE1OK) Error() string
- func (o *DestroyClusterUsingDELETE1OK) IsClientError() bool
- func (o *DestroyClusterUsingDELETE1OK) IsCode(code int) bool
- func (o *DestroyClusterUsingDELETE1OK) IsRedirect() bool
- func (o *DestroyClusterUsingDELETE1OK) IsServerError() bool
- func (o *DestroyClusterUsingDELETE1OK) IsSuccess() bool
- func (o *DestroyClusterUsingDELETE1OK) String() string
- type DestroyClusterUsingDELETE1Params
- func NewDestroyClusterUsingDELETE1Params() *DestroyClusterUsingDELETE1Params
- func NewDestroyClusterUsingDELETE1ParamsWithContext(ctx context.Context) *DestroyClusterUsingDELETE1Params
- func NewDestroyClusterUsingDELETE1ParamsWithHTTPClient(client *http.Client) *DestroyClusterUsingDELETE1Params
- func NewDestroyClusterUsingDELETE1ParamsWithTimeout(timeout time.Duration) *DestroyClusterUsingDELETE1Params
- func (o *DestroyClusterUsingDELETE1Params) SetClusterID(clusterID string)
- func (o *DestroyClusterUsingDELETE1Params) SetContext(ctx context.Context)
- func (o *DestroyClusterUsingDELETE1Params) SetDefaults()
- func (o *DestroyClusterUsingDELETE1Params) SetHTTPClient(client *http.Client)
- func (o *DestroyClusterUsingDELETE1Params) SetID(id string)
- func (o *DestroyClusterUsingDELETE1Params) SetTimeout(timeout time.Duration)
- func (o *DestroyClusterUsingDELETE1Params) WithClusterID(clusterID string) *DestroyClusterUsingDELETE1Params
- func (o *DestroyClusterUsingDELETE1Params) WithContext(ctx context.Context) *DestroyClusterUsingDELETE1Params
- func (o *DestroyClusterUsingDELETE1Params) WithDefaults() *DestroyClusterUsingDELETE1Params
- func (o *DestroyClusterUsingDELETE1Params) WithHTTPClient(client *http.Client) *DestroyClusterUsingDELETE1Params
- func (o *DestroyClusterUsingDELETE1Params) WithID(id string) *DestroyClusterUsingDELETE1Params
- func (o *DestroyClusterUsingDELETE1Params) WithTimeout(timeout time.Duration) *DestroyClusterUsingDELETE1Params
- func (o *DestroyClusterUsingDELETE1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DestroyClusterUsingDELETE1Reader
- type GetClustersUsingGETForbidden
- func (o *GetClustersUsingGETForbidden) Error() string
- func (o *GetClustersUsingGETForbidden) IsClientError() bool
- func (o *GetClustersUsingGETForbidden) IsCode(code int) bool
- func (o *GetClustersUsingGETForbidden) IsRedirect() bool
- func (o *GetClustersUsingGETForbidden) IsServerError() bool
- func (o *GetClustersUsingGETForbidden) IsSuccess() bool
- func (o *GetClustersUsingGETForbidden) String() string
- type GetClustersUsingGETOK
- func (o *GetClustersUsingGETOK) Error() string
- func (o *GetClustersUsingGETOK) GetPayload() []*models.PKSCluster
- func (o *GetClustersUsingGETOK) IsClientError() bool
- func (o *GetClustersUsingGETOK) IsCode(code int) bool
- func (o *GetClustersUsingGETOK) IsRedirect() bool
- func (o *GetClustersUsingGETOK) IsServerError() bool
- func (o *GetClustersUsingGETOK) IsSuccess() bool
- func (o *GetClustersUsingGETOK) String() string
- type GetClustersUsingGETParams
- func NewGetClustersUsingGETParams() *GetClustersUsingGETParams
- func NewGetClustersUsingGETParamsWithContext(ctx context.Context) *GetClustersUsingGETParams
- func NewGetClustersUsingGETParamsWithHTTPClient(client *http.Client) *GetClustersUsingGETParams
- func NewGetClustersUsingGETParamsWithTimeout(timeout time.Duration) *GetClustersUsingGETParams
- func (o *GetClustersUsingGETParams) SetContext(ctx context.Context)
- func (o *GetClustersUsingGETParams) SetDefaults()
- func (o *GetClustersUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *GetClustersUsingGETParams) SetID(id string)
- func (o *GetClustersUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *GetClustersUsingGETParams) WithContext(ctx context.Context) *GetClustersUsingGETParams
- func (o *GetClustersUsingGETParams) WithDefaults() *GetClustersUsingGETParams
- func (o *GetClustersUsingGETParams) WithHTTPClient(client *http.Client) *GetClustersUsingGETParams
- func (o *GetClustersUsingGETParams) WithID(id string) *GetClustersUsingGETParams
- func (o *GetClustersUsingGETParams) WithTimeout(timeout time.Duration) *GetClustersUsingGETParams
- func (o *GetClustersUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetClustersUsingGETReader
- type GetPlansUsingGETForbidden
- func (o *GetPlansUsingGETForbidden) Error() string
- func (o *GetPlansUsingGETForbidden) IsClientError() bool
- func (o *GetPlansUsingGETForbidden) IsCode(code int) bool
- func (o *GetPlansUsingGETForbidden) IsRedirect() bool
- func (o *GetPlansUsingGETForbidden) IsServerError() bool
- func (o *GetPlansUsingGETForbidden) IsSuccess() bool
- func (o *GetPlansUsingGETForbidden) String() string
- type GetPlansUsingGETOK
- func (o *GetPlansUsingGETOK) Error() string
- func (o *GetPlansUsingGETOK) GetPayload() []*models.PKSPlan
- func (o *GetPlansUsingGETOK) IsClientError() bool
- func (o *GetPlansUsingGETOK) IsCode(code int) bool
- func (o *GetPlansUsingGETOK) IsRedirect() bool
- func (o *GetPlansUsingGETOK) IsServerError() bool
- func (o *GetPlansUsingGETOK) IsSuccess() bool
- func (o *GetPlansUsingGETOK) String() string
- type GetPlansUsingGETParams
- func NewGetPlansUsingGETParams() *GetPlansUsingGETParams
- func NewGetPlansUsingGETParamsWithContext(ctx context.Context) *GetPlansUsingGETParams
- func NewGetPlansUsingGETParamsWithHTTPClient(client *http.Client) *GetPlansUsingGETParams
- func NewGetPlansUsingGETParamsWithTimeout(timeout time.Duration) *GetPlansUsingGETParams
- func (o *GetPlansUsingGETParams) SetContext(ctx context.Context)
- func (o *GetPlansUsingGETParams) SetDefaults()
- func (o *GetPlansUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *GetPlansUsingGETParams) SetID(id string)
- func (o *GetPlansUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *GetPlansUsingGETParams) WithContext(ctx context.Context) *GetPlansUsingGETParams
- func (o *GetPlansUsingGETParams) WithDefaults() *GetPlansUsingGETParams
- func (o *GetPlansUsingGETParams) WithHTTPClient(client *http.Client) *GetPlansUsingGETParams
- func (o *GetPlansUsingGETParams) WithID(id string) *GetPlansUsingGETParams
- func (o *GetPlansUsingGETParams) WithTimeout(timeout time.Duration) *GetPlansUsingGETParams
- func (o *GetPlansUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPlansUsingGETReader
- type UpdateClusterUsingPUTForbidden
- func (o *UpdateClusterUsingPUTForbidden) Error() string
- func (o *UpdateClusterUsingPUTForbidden) IsClientError() bool
- func (o *UpdateClusterUsingPUTForbidden) IsCode(code int) bool
- func (o *UpdateClusterUsingPUTForbidden) IsRedirect() bool
- func (o *UpdateClusterUsingPUTForbidden) IsServerError() bool
- func (o *UpdateClusterUsingPUTForbidden) IsSuccess() bool
- func (o *UpdateClusterUsingPUTForbidden) String() string
- type UpdateClusterUsingPUTOK
- func (o *UpdateClusterUsingPUTOK) Error() string
- func (o *UpdateClusterUsingPUTOK) GetPayload() *models.K8SCluster
- func (o *UpdateClusterUsingPUTOK) IsClientError() bool
- func (o *UpdateClusterUsingPUTOK) IsCode(code int) bool
- func (o *UpdateClusterUsingPUTOK) IsRedirect() bool
- func (o *UpdateClusterUsingPUTOK) IsServerError() bool
- func (o *UpdateClusterUsingPUTOK) IsSuccess() bool
- func (o *UpdateClusterUsingPUTOK) String() string
- type UpdateClusterUsingPUTParams
- func NewUpdateClusterUsingPUTParams() *UpdateClusterUsingPUTParams
- func NewUpdateClusterUsingPUTParamsWithContext(ctx context.Context) *UpdateClusterUsingPUTParams
- func NewUpdateClusterUsingPUTParamsWithHTTPClient(client *http.Client) *UpdateClusterUsingPUTParams
- func NewUpdateClusterUsingPUTParamsWithTimeout(timeout time.Duration) *UpdateClusterUsingPUTParams
- func (o *UpdateClusterUsingPUTParams) SetClusterID(clusterID string)
- func (o *UpdateClusterUsingPUTParams) SetContext(ctx context.Context)
- func (o *UpdateClusterUsingPUTParams) SetDefaults()
- func (o *UpdateClusterUsingPUTParams) SetHTTPClient(client *http.Client)
- func (o *UpdateClusterUsingPUTParams) SetID(id string)
- func (o *UpdateClusterUsingPUTParams) SetPksCluster(pksCluster *models.PKSCluster)
- func (o *UpdateClusterUsingPUTParams) SetTimeout(timeout time.Duration)
- func (o *UpdateClusterUsingPUTParams) WithClusterID(clusterID string) *UpdateClusterUsingPUTParams
- func (o *UpdateClusterUsingPUTParams) WithContext(ctx context.Context) *UpdateClusterUsingPUTParams
- func (o *UpdateClusterUsingPUTParams) WithDefaults() *UpdateClusterUsingPUTParams
- func (o *UpdateClusterUsingPUTParams) WithHTTPClient(client *http.Client) *UpdateClusterUsingPUTParams
- func (o *UpdateClusterUsingPUTParams) WithID(id string) *UpdateClusterUsingPUTParams
- func (o *UpdateClusterUsingPUTParams) WithPksCluster(pksCluster *models.PKSCluster) *UpdateClusterUsingPUTParams
- func (o *UpdateClusterUsingPUTParams) WithTimeout(timeout time.Duration) *UpdateClusterUsingPUTParams
- func (o *UpdateClusterUsingPUTParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateClusterUsingPUTReader
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 (o *CreateClusterUsingPOSTForbidden) Error() string
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 ¶
func (o *CreateClusterUsingPOSTForbidden) String() 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 ¶
func (o *CreateClusterUsingPOSTParams) WithContext(ctx context.Context) *CreateClusterUsingPOSTParams
WithContext adds the context to the create cluster using p o s t params
func (*CreateClusterUsingPOSTParams) WithDefaults ¶
func (o *CreateClusterUsingPOSTParams) WithDefaults() *CreateClusterUsingPOSTParams
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 ¶
func (o *CreateClusterUsingPOSTParams) WithHTTPClient(client *http.Client) *CreateClusterUsingPOSTParams
WithHTTPClient adds the HTTPClient to the create cluster using p o s t params
func (*CreateClusterUsingPOSTParams) WithID ¶
func (o *CreateClusterUsingPOSTParams) WithID(id string) *CreateClusterUsingPOSTParams
WithID adds the id to the create cluster using p o s t params
func (*CreateClusterUsingPOSTParams) WithPksCluster ¶
func (o *CreateClusterUsingPOSTParams) WithPksCluster(pksCluster *models.PKSCluster) *CreateClusterUsingPOSTParams
WithPksCluster adds the pksCluster to the create cluster using p o s t params
func (*CreateClusterUsingPOSTParams) WithTimeout ¶
func (o *CreateClusterUsingPOSTParams) WithTimeout(timeout time.Duration) *CreateClusterUsingPOSTParams
WithTimeout adds the timeout to the create cluster using p o s t params
func (*CreateClusterUsingPOSTParams) WriteToRequest ¶
func (o *CreateClusterUsingPOSTParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *DestroyClusterUsingDELETE1Forbidden) Error() string
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 ¶
func (o *DestroyClusterUsingDELETE1Forbidden) IsCode(code int) bool
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 ¶
func (o *DestroyClusterUsingDELETE1Forbidden) IsSuccess() bool
IsSuccess returns true when this destroy cluster using d e l e t e1 forbidden response has a 2xx status code
func (*DestroyClusterUsingDELETE1Forbidden) String ¶
func (o *DestroyClusterUsingDELETE1Forbidden) String() 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 (o *DestroyClusterUsingDELETE1OK) Error() string
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 ¶
func (o *DestroyClusterUsingDELETE1OK) String() 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 ¶
func (o *DestroyClusterUsingDELETE1Params) SetContext(ctx context.Context)
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 ¶
func (o *DestroyClusterUsingDELETE1Params) SetID(id string)
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 ¶
func (o *DestroyClusterUsingDELETE1Params) WithClusterID(clusterID string) *DestroyClusterUsingDELETE1Params
WithClusterID adds the clusterID to the destroy cluster using d e l e t e 1 params
func (*DestroyClusterUsingDELETE1Params) WithContext ¶
func (o *DestroyClusterUsingDELETE1Params) WithContext(ctx context.Context) *DestroyClusterUsingDELETE1Params
WithContext adds the context to the destroy cluster using d e l e t e 1 params
func (*DestroyClusterUsingDELETE1Params) WithDefaults ¶
func (o *DestroyClusterUsingDELETE1Params) WithDefaults() *DestroyClusterUsingDELETE1Params
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 ¶
func (o *DestroyClusterUsingDELETE1Params) WithHTTPClient(client *http.Client) *DestroyClusterUsingDELETE1Params
WithHTTPClient adds the HTTPClient to the destroy cluster using d e l e t e 1 params
func (*DestroyClusterUsingDELETE1Params) WithID ¶
func (o *DestroyClusterUsingDELETE1Params) WithID(id string) *DestroyClusterUsingDELETE1Params
WithID adds the id to the destroy cluster using d e l e t e 1 params
func (*DestroyClusterUsingDELETE1Params) WithTimeout ¶
func (o *DestroyClusterUsingDELETE1Params) WithTimeout(timeout time.Duration) *DestroyClusterUsingDELETE1Params
WithTimeout adds the timeout to the destroy cluster using d e l e t e 1 params
func (*DestroyClusterUsingDELETE1Params) WriteToRequest ¶
func (o *DestroyClusterUsingDELETE1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *GetClustersUsingGETForbidden) Error() string
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 ¶
func (o *GetClustersUsingGETForbidden) String() 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 ¶
func (o *GetClustersUsingGETParams) WithContext(ctx context.Context) *GetClustersUsingGETParams
WithContext adds the context to the get clusters using get params
func (*GetClustersUsingGETParams) WithDefaults ¶
func (o *GetClustersUsingGETParams) WithDefaults() *GetClustersUsingGETParams
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 ¶
func (o *GetClustersUsingGETParams) WithID(id string) *GetClustersUsingGETParams
WithID adds the id to the get clusters using get params
func (*GetClustersUsingGETParams) WithTimeout ¶
func (o *GetClustersUsingGETParams) WithTimeout(timeout time.Duration) *GetClustersUsingGETParams
WithTimeout adds the timeout to the get clusters using get params
func (*GetClustersUsingGETParams) WriteToRequest ¶
func (o *GetClustersUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 ¶
func (o *GetPlansUsingGETParams) WithContext(ctx context.Context) *GetPlansUsingGETParams
WithContext adds the context to the get plans using get params
func (*GetPlansUsingGETParams) WithDefaults ¶
func (o *GetPlansUsingGETParams) WithDefaults() *GetPlansUsingGETParams
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 ¶
func (o *GetPlansUsingGETParams) WithID(id string) *GetPlansUsingGETParams
WithID adds the id to the get plans using get params
func (*GetPlansUsingGETParams) WithTimeout ¶
func (o *GetPlansUsingGETParams) WithTimeout(timeout time.Duration) *GetPlansUsingGETParams
WithTimeout adds the timeout to the get plans using get params
func (*GetPlansUsingGETParams) WriteToRequest ¶
func (o *GetPlansUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *UpdateClusterUsingPUTForbidden) Error() string
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 ¶
func (o *UpdateClusterUsingPUTForbidden) String() 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 ¶
func (o *UpdateClusterUsingPUTParams) WithContext(ctx context.Context) *UpdateClusterUsingPUTParams
WithContext adds the context to the update cluster using p u t params
func (*UpdateClusterUsingPUTParams) WithDefaults ¶
func (o *UpdateClusterUsingPUTParams) WithDefaults() *UpdateClusterUsingPUTParams
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 ¶
func (o *UpdateClusterUsingPUTParams) WithHTTPClient(client *http.Client) *UpdateClusterUsingPUTParams
WithHTTPClient adds the HTTPClient to the update cluster using p u t params
func (*UpdateClusterUsingPUTParams) WithID ¶
func (o *UpdateClusterUsingPUTParams) WithID(id string) *UpdateClusterUsingPUTParams
WithID adds the id to the update cluster using p u t params
func (*UpdateClusterUsingPUTParams) WithPksCluster ¶
func (o *UpdateClusterUsingPUTParams) WithPksCluster(pksCluster *models.PKSCluster) *UpdateClusterUsingPUTParams
WithPksCluster adds the pksCluster to the update cluster using p u t params
func (*UpdateClusterUsingPUTParams) WithTimeout ¶
func (o *UpdateClusterUsingPUTParams) WithTimeout(timeout time.Duration) *UpdateClusterUsingPUTParams
WithTimeout adds the timeout to the update cluster using p u t params
func (*UpdateClusterUsingPUTParams) WriteToRequest ¶
func (o *UpdateClusterUsingPUTParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- create_cluster_using_post_parameters.go
- create_cluster_using_post_responses.go
- destroy_cluster_using_delete1_parameters.go
- destroy_cluster_using_delete1_responses.go
- get_clusters_using_get_parameters.go
- get_clusters_using_get_responses.go
- get_plans_using_get_parameters.go
- get_plans_using_get_responses.go
- pks_endpoints_client.go
- update_cluster_using_put_parameters.go
- update_cluster_using_put_responses.go