node_pools

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddNodePoolBadRequest

type AddNodePoolBadRequest struct {
	Payload *models.V4GenericResponse
}

AddNodePoolBadRequest handles this case with default header values.

Bad request

func NewAddNodePoolBadRequest

func NewAddNodePoolBadRequest() *AddNodePoolBadRequest

NewAddNodePoolBadRequest creates a AddNodePoolBadRequest with default headers values

func (*AddNodePoolBadRequest) Error

func (o *AddNodePoolBadRequest) Error() string

type AddNodePoolCreated

type AddNodePoolCreated struct {
	/*URI of the new node pool resource
	 */
	Location string

	Payload *models.V5GetNodePoolResponse
}

AddNodePoolCreated handles this case with default header values.

Node pool created

func NewAddNodePoolCreated

func NewAddNodePoolCreated() *AddNodePoolCreated

NewAddNodePoolCreated creates a AddNodePoolCreated with default headers values

func (*AddNodePoolCreated) Error

func (o *AddNodePoolCreated) Error() string

type AddNodePoolDefault

type AddNodePoolDefault struct {
	Payload *models.V4GenericResponse
	// contains filtered or unexported fields
}

AddNodePoolDefault handles this case with default header values.

error

func NewAddNodePoolDefault

func NewAddNodePoolDefault(code int) *AddNodePoolDefault

NewAddNodePoolDefault creates a AddNodePoolDefault with default headers values

func (*AddNodePoolDefault) Code

func (o *AddNodePoolDefault) Code() int

Code gets the status code for the add node pool default response

func (*AddNodePoolDefault) Error

func (o *AddNodePoolDefault) Error() string

type AddNodePoolNotFound

type AddNodePoolNotFound struct {
	Payload *models.V4GenericResponse
}

AddNodePoolNotFound handles this case with default header values.

Cluster not found

func NewAddNodePoolNotFound

func NewAddNodePoolNotFound() *AddNodePoolNotFound

NewAddNodePoolNotFound creates a AddNodePoolNotFound with default headers values

func (*AddNodePoolNotFound) Error

func (o *AddNodePoolNotFound) Error() string

type AddNodePoolParams

type AddNodePoolParams struct {

	/*XGiantSwarmActivity
	  Name of an activity to track, like "list-clusters". This allows to
	analyze several API requests sent in context and gives an idea on
	the purpose.


	*/
	XGiantSwarmActivity *string
	/*XGiantSwarmCmdLine
	  If activity has been issued by a CLI, this header can contain the
	command line


	*/
	XGiantSwarmCmdLine *string
	/*XRequestID
	  A randomly generated key that can be used to track a request throughout
	services of Giant Swarm.


	*/
	XRequestID *string
	/*Body*/
	Body *models.V5AddNodePoolRequest
	/*ClusterID
	  Cluster ID

	*/
	ClusterID string

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

AddNodePoolParams contains all the parameters to send to the API endpoint for the add node pool operation typically these are written to a http.Request

func NewAddNodePoolParams

func NewAddNodePoolParams() *AddNodePoolParams

NewAddNodePoolParams creates a new AddNodePoolParams object with the default values initialized.

func NewAddNodePoolParamsWithContext

func NewAddNodePoolParamsWithContext(ctx context.Context) *AddNodePoolParams

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

func NewAddNodePoolParamsWithHTTPClient

func NewAddNodePoolParamsWithHTTPClient(client *http.Client) *AddNodePoolParams

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

func NewAddNodePoolParamsWithTimeout

func NewAddNodePoolParamsWithTimeout(timeout time.Duration) *AddNodePoolParams

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

func (*AddNodePoolParams) SetBody

func (o *AddNodePoolParams) SetBody(body *models.V5AddNodePoolRequest)

SetBody adds the body to the add node pool params

func (*AddNodePoolParams) SetClusterID

func (o *AddNodePoolParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the add node pool params

func (*AddNodePoolParams) SetContext

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

SetContext adds the context to the add node pool params

func (*AddNodePoolParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add node pool params

func (*AddNodePoolParams) SetTimeout

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

SetTimeout adds the timeout to the add node pool params

func (*AddNodePoolParams) SetXGiantSwarmActivity

func (o *AddNodePoolParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the add node pool params

func (*AddNodePoolParams) SetXGiantSwarmCmdLine

func (o *AddNodePoolParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the add node pool params

func (*AddNodePoolParams) SetXRequestID

func (o *AddNodePoolParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the add node pool params

func (*AddNodePoolParams) WithBody

WithBody adds the body to the add node pool params

func (*AddNodePoolParams) WithClusterID

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

WithClusterID adds the clusterID to the add node pool params

func (*AddNodePoolParams) WithContext

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

WithContext adds the context to the add node pool params

func (*AddNodePoolParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add node pool params

func (*AddNodePoolParams) WithTimeout

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

WithTimeout adds the timeout to the add node pool params

func (*AddNodePoolParams) WithXGiantSwarmActivity

func (o *AddNodePoolParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *AddNodePoolParams

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the add node pool params

func (*AddNodePoolParams) WithXGiantSwarmCmdLine

func (o *AddNodePoolParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *AddNodePoolParams

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the add node pool params

func (*AddNodePoolParams) WithXRequestID

func (o *AddNodePoolParams) WithXRequestID(xRequestID *string) *AddNodePoolParams

WithXRequestID adds the xRequestID to the add node pool params

func (*AddNodePoolParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddNodePoolReader

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

AddNodePoolReader is a Reader for the AddNodePool structure.

func (*AddNodePoolReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddNodePoolUnauthorized

type AddNodePoolUnauthorized struct {
	Payload *models.V4GenericResponse
}

AddNodePoolUnauthorized handles this case with default header values.

Permission denied

func NewAddNodePoolUnauthorized

func NewAddNodePoolUnauthorized() *AddNodePoolUnauthorized

NewAddNodePoolUnauthorized creates a AddNodePoolUnauthorized with default headers values

func (*AddNodePoolUnauthorized) Error

func (o *AddNodePoolUnauthorized) Error() string

type Client

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

Client for node pools API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new node pools API client.

func (*Client) AddNodePool

func (a *Client) AddNodePool(params *AddNodePoolParams, authInfo runtime.ClientAuthInfoWriter) (*AddNodePoolCreated, error)

AddNodePool creates node pool

This allows to add a node pool to a cluster.

Some, but not all, node pool configuration can be changed after creation. The following settings will have a permanent effect:

- `availability_zones` - `node_spec.aws.instance_type`

func (*Client) DeleteNodePool

func (a *Client) DeleteNodePool(params *DeleteNodePoolParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteNodePoolAccepted, error)

DeleteNodePool deletes node pool

Triggers the deletion of a node pool.

Nodes in the pool will first be cordoned and drained. Note that it is your responsibililty to make sure that workloads using the node pool can be scheduled elsewhere. We recommend to double-check the available capacity of remaining node pools, as well as any node selectors and taints. Also you can do the draining yourself before issuing the delete request, to observe the outcome. Use

``` kubectl drain nodes -l giantswarm.io/machine-deployment=<nodepool_id> ... ```

func (*Client) GetNodePool

func (a *Client) GetNodePool(params *GetNodePoolParams, authInfo runtime.ClientAuthInfoWriter) (*GetNodePoolOK, error)

GetNodePool gets node pool details

Returns all available details on a specific node pool.

func (*Client) GetNodePools

func (a *Client) GetNodePools(params *GetNodePoolsParams, authInfo runtime.ClientAuthInfoWriter) (*GetNodePoolsOK, error)

GetNodePools gets node pools

Returns a list of node pools from a given cluster.

func (*Client) ModifyNodePool

func (a *Client) ModifyNodePool(params *ModifyNodePoolParams, authInfo runtime.ClientAuthInfoWriter) (*ModifyNodePoolOK, error)

ModifyNodePool modifies node pool

Allows to rename a node pool or change its scaling settings.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteNodePoolAccepted

type DeleteNodePoolAccepted struct {
	Payload *models.V4GenericResponse
}

DeleteNodePoolAccepted handles this case with default header values.

Deleting node pool

func NewDeleteNodePoolAccepted

func NewDeleteNodePoolAccepted() *DeleteNodePoolAccepted

NewDeleteNodePoolAccepted creates a DeleteNodePoolAccepted with default headers values

func (*DeleteNodePoolAccepted) Error

func (o *DeleteNodePoolAccepted) Error() string

type DeleteNodePoolDefault

type DeleteNodePoolDefault struct {
	Payload *models.V4GenericResponse
	// contains filtered or unexported fields
}

DeleteNodePoolDefault handles this case with default header values.

error

func NewDeleteNodePoolDefault

func NewDeleteNodePoolDefault(code int) *DeleteNodePoolDefault

NewDeleteNodePoolDefault creates a DeleteNodePoolDefault with default headers values

func (*DeleteNodePoolDefault) Code

func (o *DeleteNodePoolDefault) Code() int

Code gets the status code for the delete node pool default response

func (*DeleteNodePoolDefault) Error

func (o *DeleteNodePoolDefault) Error() string

type DeleteNodePoolNotFound

type DeleteNodePoolNotFound struct {
	Payload *models.V4GenericResponse
}

DeleteNodePoolNotFound handles this case with default header values.

Not found

func NewDeleteNodePoolNotFound

func NewDeleteNodePoolNotFound() *DeleteNodePoolNotFound

NewDeleteNodePoolNotFound creates a DeleteNodePoolNotFound with default headers values

func (*DeleteNodePoolNotFound) Error

func (o *DeleteNodePoolNotFound) Error() string

type DeleteNodePoolParams

type DeleteNodePoolParams struct {

	/*XGiantSwarmActivity
	  Name of an activity to track, like "list-clusters". This allows to
	analyze several API requests sent in context and gives an idea on
	the purpose.


	*/
	XGiantSwarmActivity *string
	/*XGiantSwarmCmdLine
	  If activity has been issued by a CLI, this header can contain the
	command line


	*/
	XGiantSwarmCmdLine *string
	/*XRequestID
	  A randomly generated key that can be used to track a request throughout
	services of Giant Swarm.


	*/
	XRequestID *string
	/*ClusterID
	  Cluster ID

	*/
	ClusterID string
	/*NodepoolID
	  Node Pool ID

	*/
	NodepoolID string

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

DeleteNodePoolParams contains all the parameters to send to the API endpoint for the delete node pool operation typically these are written to a http.Request

func NewDeleteNodePoolParams

func NewDeleteNodePoolParams() *DeleteNodePoolParams

NewDeleteNodePoolParams creates a new DeleteNodePoolParams object with the default values initialized.

func NewDeleteNodePoolParamsWithContext

func NewDeleteNodePoolParamsWithContext(ctx context.Context) *DeleteNodePoolParams

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

func NewDeleteNodePoolParamsWithHTTPClient

func NewDeleteNodePoolParamsWithHTTPClient(client *http.Client) *DeleteNodePoolParams

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

func NewDeleteNodePoolParamsWithTimeout

func NewDeleteNodePoolParamsWithTimeout(timeout time.Duration) *DeleteNodePoolParams

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

func (*DeleteNodePoolParams) SetClusterID

func (o *DeleteNodePoolParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the delete node pool params

func (*DeleteNodePoolParams) SetContext

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

SetContext adds the context to the delete node pool params

func (*DeleteNodePoolParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete node pool params

func (*DeleteNodePoolParams) SetNodepoolID

func (o *DeleteNodePoolParams) SetNodepoolID(nodepoolID string)

SetNodepoolID adds the nodepoolId to the delete node pool params

func (*DeleteNodePoolParams) SetTimeout

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

SetTimeout adds the timeout to the delete node pool params

func (*DeleteNodePoolParams) SetXGiantSwarmActivity

func (o *DeleteNodePoolParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the delete node pool params

func (*DeleteNodePoolParams) SetXGiantSwarmCmdLine

func (o *DeleteNodePoolParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the delete node pool params

func (*DeleteNodePoolParams) SetXRequestID

func (o *DeleteNodePoolParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the delete node pool params

func (*DeleteNodePoolParams) WithClusterID

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

WithClusterID adds the clusterID to the delete node pool params

func (*DeleteNodePoolParams) WithContext

WithContext adds the context to the delete node pool params

func (*DeleteNodePoolParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete node pool params

func (*DeleteNodePoolParams) WithNodepoolID

func (o *DeleteNodePoolParams) WithNodepoolID(nodepoolID string) *DeleteNodePoolParams

WithNodepoolID adds the nodepoolID to the delete node pool params

func (*DeleteNodePoolParams) WithTimeout

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

WithTimeout adds the timeout to the delete node pool params

func (*DeleteNodePoolParams) WithXGiantSwarmActivity

func (o *DeleteNodePoolParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *DeleteNodePoolParams

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the delete node pool params

func (*DeleteNodePoolParams) WithXGiantSwarmCmdLine

func (o *DeleteNodePoolParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *DeleteNodePoolParams

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the delete node pool params

func (*DeleteNodePoolParams) WithXRequestID

func (o *DeleteNodePoolParams) WithXRequestID(xRequestID *string) *DeleteNodePoolParams

WithXRequestID adds the xRequestID to the delete node pool params

func (*DeleteNodePoolParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteNodePoolReader

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

DeleteNodePoolReader is a Reader for the DeleteNodePool structure.

func (*DeleteNodePoolReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteNodePoolUnauthorized

type DeleteNodePoolUnauthorized struct {
	Payload *models.V4GenericResponse
}

DeleteNodePoolUnauthorized handles this case with default header values.

Permission denied

func NewDeleteNodePoolUnauthorized

func NewDeleteNodePoolUnauthorized() *DeleteNodePoolUnauthorized

NewDeleteNodePoolUnauthorized creates a DeleteNodePoolUnauthorized with default headers values

func (*DeleteNodePoolUnauthorized) Error

type GetNodePoolDefault

type GetNodePoolDefault struct {
	Payload *models.V4GenericResponse
	// contains filtered or unexported fields
}

GetNodePoolDefault handles this case with default header values.

error

func NewGetNodePoolDefault

func NewGetNodePoolDefault(code int) *GetNodePoolDefault

NewGetNodePoolDefault creates a GetNodePoolDefault with default headers values

func (*GetNodePoolDefault) Code

func (o *GetNodePoolDefault) Code() int

Code gets the status code for the get node pool default response

func (*GetNodePoolDefault) Error

func (o *GetNodePoolDefault) Error() string

type GetNodePoolNotFound

type GetNodePoolNotFound struct {
	Payload *models.V4GenericResponse
}

GetNodePoolNotFound handles this case with default header values.

Cluster not found

func NewGetNodePoolNotFound

func NewGetNodePoolNotFound() *GetNodePoolNotFound

NewGetNodePoolNotFound creates a GetNodePoolNotFound with default headers values

func (*GetNodePoolNotFound) Error

func (o *GetNodePoolNotFound) Error() string

type GetNodePoolOK

type GetNodePoolOK struct {
	Payload *models.V5GetNodePoolResponse
}

GetNodePoolOK handles this case with default header values.

Node pool details

func NewGetNodePoolOK

func NewGetNodePoolOK() *GetNodePoolOK

NewGetNodePoolOK creates a GetNodePoolOK with default headers values

func (*GetNodePoolOK) Error

func (o *GetNodePoolOK) Error() string

type GetNodePoolParams

type GetNodePoolParams struct {

	/*XGiantSwarmActivity
	  Name of an activity to track, like "list-clusters". This allows to
	analyze several API requests sent in context and gives an idea on
	the purpose.


	*/
	XGiantSwarmActivity *string
	/*XGiantSwarmCmdLine
	  If activity has been issued by a CLI, this header can contain the
	command line


	*/
	XGiantSwarmCmdLine *string
	/*XRequestID
	  A randomly generated key that can be used to track a request throughout
	services of Giant Swarm.


	*/
	XRequestID *string
	/*ClusterID
	  Cluster ID

	*/
	ClusterID string
	/*NodepoolID
	  Node Pool ID

	*/
	NodepoolID string

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

GetNodePoolParams contains all the parameters to send to the API endpoint for the get node pool operation typically these are written to a http.Request

func NewGetNodePoolParams

func NewGetNodePoolParams() *GetNodePoolParams

NewGetNodePoolParams creates a new GetNodePoolParams object with the default values initialized.

func NewGetNodePoolParamsWithContext

func NewGetNodePoolParamsWithContext(ctx context.Context) *GetNodePoolParams

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

func NewGetNodePoolParamsWithHTTPClient

func NewGetNodePoolParamsWithHTTPClient(client *http.Client) *GetNodePoolParams

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

func NewGetNodePoolParamsWithTimeout

func NewGetNodePoolParamsWithTimeout(timeout time.Duration) *GetNodePoolParams

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

func (*GetNodePoolParams) SetClusterID

func (o *GetNodePoolParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the get node pool params

func (*GetNodePoolParams) SetContext

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

SetContext adds the context to the get node pool params

func (*GetNodePoolParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get node pool params

func (*GetNodePoolParams) SetNodepoolID

func (o *GetNodePoolParams) SetNodepoolID(nodepoolID string)

SetNodepoolID adds the nodepoolId to the get node pool params

func (*GetNodePoolParams) SetTimeout

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

SetTimeout adds the timeout to the get node pool params

func (*GetNodePoolParams) SetXGiantSwarmActivity

func (o *GetNodePoolParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get node pool params

func (*GetNodePoolParams) SetXGiantSwarmCmdLine

func (o *GetNodePoolParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get node pool params

func (*GetNodePoolParams) SetXRequestID

func (o *GetNodePoolParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get node pool params

func (*GetNodePoolParams) WithClusterID

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

WithClusterID adds the clusterID to the get node pool params

func (*GetNodePoolParams) WithContext

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

WithContext adds the context to the get node pool params

func (*GetNodePoolParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get node pool params

func (*GetNodePoolParams) WithNodepoolID

func (o *GetNodePoolParams) WithNodepoolID(nodepoolID string) *GetNodePoolParams

WithNodepoolID adds the nodepoolID to the get node pool params

func (*GetNodePoolParams) WithTimeout

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

WithTimeout adds the timeout to the get node pool params

func (*GetNodePoolParams) WithXGiantSwarmActivity

func (o *GetNodePoolParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetNodePoolParams

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get node pool params

func (*GetNodePoolParams) WithXGiantSwarmCmdLine

func (o *GetNodePoolParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetNodePoolParams

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get node pool params

func (*GetNodePoolParams) WithXRequestID

func (o *GetNodePoolParams) WithXRequestID(xRequestID *string) *GetNodePoolParams

WithXRequestID adds the xRequestID to the get node pool params

func (*GetNodePoolParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetNodePoolReader

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

GetNodePoolReader is a Reader for the GetNodePool structure.

func (*GetNodePoolReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNodePoolUnauthorized

type GetNodePoolUnauthorized struct {
	Payload *models.V4GenericResponse
}

GetNodePoolUnauthorized handles this case with default header values.

Permission denied

func NewGetNodePoolUnauthorized

func NewGetNodePoolUnauthorized() *GetNodePoolUnauthorized

NewGetNodePoolUnauthorized creates a GetNodePoolUnauthorized with default headers values

func (*GetNodePoolUnauthorized) Error

func (o *GetNodePoolUnauthorized) Error() string

type GetNodePoolsDefault

type GetNodePoolsDefault struct {
	Payload *models.V4GenericResponse
	// contains filtered or unexported fields
}

GetNodePoolsDefault handles this case with default header values.

error

func NewGetNodePoolsDefault

func NewGetNodePoolsDefault(code int) *GetNodePoolsDefault

NewGetNodePoolsDefault creates a GetNodePoolsDefault with default headers values

func (*GetNodePoolsDefault) Code

func (o *GetNodePoolsDefault) Code() int

Code gets the status code for the get node pools default response

func (*GetNodePoolsDefault) Error

func (o *GetNodePoolsDefault) Error() string

type GetNodePoolsNotFound

type GetNodePoolsNotFound struct {
	Payload *models.V4GenericResponse
}

GetNodePoolsNotFound handles this case with default header values.

Cluster not found

func NewGetNodePoolsNotFound

func NewGetNodePoolsNotFound() *GetNodePoolsNotFound

NewGetNodePoolsNotFound creates a GetNodePoolsNotFound with default headers values

func (*GetNodePoolsNotFound) Error

func (o *GetNodePoolsNotFound) Error() string

type GetNodePoolsOK

type GetNodePoolsOK struct {
	Payload models.V5GetNodePoolsResponse
}

GetNodePoolsOK handles this case with default header values.

Node pools list

func NewGetNodePoolsOK

func NewGetNodePoolsOK() *GetNodePoolsOK

NewGetNodePoolsOK creates a GetNodePoolsOK with default headers values

func (*GetNodePoolsOK) Error

func (o *GetNodePoolsOK) Error() string

type GetNodePoolsParams

type GetNodePoolsParams struct {

	/*XGiantSwarmActivity
	  Name of an activity to track, like "list-clusters". This allows to
	analyze several API requests sent in context and gives an idea on
	the purpose.


	*/
	XGiantSwarmActivity *string
	/*XGiantSwarmCmdLine
	  If activity has been issued by a CLI, this header can contain the
	command line


	*/
	XGiantSwarmCmdLine *string
	/*XRequestID
	  A randomly generated key that can be used to track a request throughout
	services of Giant Swarm.


	*/
	XRequestID *string
	/*ClusterID
	  Cluster ID

	*/
	ClusterID string

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

GetNodePoolsParams contains all the parameters to send to the API endpoint for the get node pools operation typically these are written to a http.Request

func NewGetNodePoolsParams

func NewGetNodePoolsParams() *GetNodePoolsParams

NewGetNodePoolsParams creates a new GetNodePoolsParams object with the default values initialized.

func NewGetNodePoolsParamsWithContext

func NewGetNodePoolsParamsWithContext(ctx context.Context) *GetNodePoolsParams

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

func NewGetNodePoolsParamsWithHTTPClient

func NewGetNodePoolsParamsWithHTTPClient(client *http.Client) *GetNodePoolsParams

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

func NewGetNodePoolsParamsWithTimeout

func NewGetNodePoolsParamsWithTimeout(timeout time.Duration) *GetNodePoolsParams

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

func (*GetNodePoolsParams) SetClusterID

func (o *GetNodePoolsParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the get node pools params

func (*GetNodePoolsParams) SetContext

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

SetContext adds the context to the get node pools params

func (*GetNodePoolsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get node pools params

func (*GetNodePoolsParams) SetTimeout

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

SetTimeout adds the timeout to the get node pools params

func (*GetNodePoolsParams) SetXGiantSwarmActivity

func (o *GetNodePoolsParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get node pools params

func (*GetNodePoolsParams) SetXGiantSwarmCmdLine

func (o *GetNodePoolsParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get node pools params

func (*GetNodePoolsParams) SetXRequestID

func (o *GetNodePoolsParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get node pools params

func (*GetNodePoolsParams) WithClusterID

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

WithClusterID adds the clusterID to the get node pools params

func (*GetNodePoolsParams) WithContext

WithContext adds the context to the get node pools params

func (*GetNodePoolsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get node pools params

func (*GetNodePoolsParams) WithTimeout

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

WithTimeout adds the timeout to the get node pools params

func (*GetNodePoolsParams) WithXGiantSwarmActivity

func (o *GetNodePoolsParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetNodePoolsParams

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get node pools params

func (*GetNodePoolsParams) WithXGiantSwarmCmdLine

func (o *GetNodePoolsParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetNodePoolsParams

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get node pools params

func (*GetNodePoolsParams) WithXRequestID

func (o *GetNodePoolsParams) WithXRequestID(xRequestID *string) *GetNodePoolsParams

WithXRequestID adds the xRequestID to the get node pools params

func (*GetNodePoolsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetNodePoolsReader

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

GetNodePoolsReader is a Reader for the GetNodePools structure.

func (*GetNodePoolsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNodePoolsUnauthorized

type GetNodePoolsUnauthorized struct {
	Payload *models.V4GenericResponse
}

GetNodePoolsUnauthorized handles this case with default header values.

Permission denied

func NewGetNodePoolsUnauthorized

func NewGetNodePoolsUnauthorized() *GetNodePoolsUnauthorized

NewGetNodePoolsUnauthorized creates a GetNodePoolsUnauthorized with default headers values

func (*GetNodePoolsUnauthorized) Error

func (o *GetNodePoolsUnauthorized) Error() string

type ModifyNodePoolDefault

type ModifyNodePoolDefault struct {
	Payload *models.V4GenericResponse
	// contains filtered or unexported fields
}

ModifyNodePoolDefault handles this case with default header values.

error

func NewModifyNodePoolDefault

func NewModifyNodePoolDefault(code int) *ModifyNodePoolDefault

NewModifyNodePoolDefault creates a ModifyNodePoolDefault with default headers values

func (*ModifyNodePoolDefault) Code

func (o *ModifyNodePoolDefault) Code() int

Code gets the status code for the modify node pool default response

func (*ModifyNodePoolDefault) Error

func (o *ModifyNodePoolDefault) Error() string

type ModifyNodePoolNotFound

type ModifyNodePoolNotFound struct {
	Payload *models.V4GenericResponse
}

ModifyNodePoolNotFound handles this case with default header values.

Cluster not found

func NewModifyNodePoolNotFound

func NewModifyNodePoolNotFound() *ModifyNodePoolNotFound

NewModifyNodePoolNotFound creates a ModifyNodePoolNotFound with default headers values

func (*ModifyNodePoolNotFound) Error

func (o *ModifyNodePoolNotFound) Error() string

type ModifyNodePoolOK

type ModifyNodePoolOK struct {
	Payload *models.V5GetNodePoolResponse
}

ModifyNodePoolOK handles this case with default header values.

Success

func NewModifyNodePoolOK

func NewModifyNodePoolOK() *ModifyNodePoolOK

NewModifyNodePoolOK creates a ModifyNodePoolOK with default headers values

func (*ModifyNodePoolOK) Error

func (o *ModifyNodePoolOK) Error() string

type ModifyNodePoolParams

type ModifyNodePoolParams struct {

	/*XGiantSwarmActivity
	  Name of an activity to track, like "list-clusters". This allows to
	analyze several API requests sent in context and gives an idea on
	the purpose.


	*/
	XGiantSwarmActivity *string
	/*XGiantSwarmCmdLine
	  If activity has been issued by a CLI, this header can contain the
	command line


	*/
	XGiantSwarmCmdLine *string
	/*XRequestID
	  A randomly generated key that can be used to track a request throughout
	services of Giant Swarm.


	*/
	XRequestID *string
	/*Body
	  Merge-patch body

	*/
	Body *models.V5ModifyNodePoolRequest
	/*ClusterID
	  Cluster ID

	*/
	ClusterID string
	/*NodepoolID
	  Node Pool ID

	*/
	NodepoolID string

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

ModifyNodePoolParams contains all the parameters to send to the API endpoint for the modify node pool operation typically these are written to a http.Request

func NewModifyNodePoolParams

func NewModifyNodePoolParams() *ModifyNodePoolParams

NewModifyNodePoolParams creates a new ModifyNodePoolParams object with the default values initialized.

func NewModifyNodePoolParamsWithContext

func NewModifyNodePoolParamsWithContext(ctx context.Context) *ModifyNodePoolParams

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

func NewModifyNodePoolParamsWithHTTPClient

func NewModifyNodePoolParamsWithHTTPClient(client *http.Client) *ModifyNodePoolParams

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

func NewModifyNodePoolParamsWithTimeout

func NewModifyNodePoolParamsWithTimeout(timeout time.Duration) *ModifyNodePoolParams

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

func (*ModifyNodePoolParams) SetBody

SetBody adds the body to the modify node pool params

func (*ModifyNodePoolParams) SetClusterID

func (o *ModifyNodePoolParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the modify node pool params

func (*ModifyNodePoolParams) SetContext

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

SetContext adds the context to the modify node pool params

func (*ModifyNodePoolParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the modify node pool params

func (*ModifyNodePoolParams) SetNodepoolID

func (o *ModifyNodePoolParams) SetNodepoolID(nodepoolID string)

SetNodepoolID adds the nodepoolId to the modify node pool params

func (*ModifyNodePoolParams) SetTimeout

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

SetTimeout adds the timeout to the modify node pool params

func (*ModifyNodePoolParams) SetXGiantSwarmActivity

func (o *ModifyNodePoolParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the modify node pool params

func (*ModifyNodePoolParams) SetXGiantSwarmCmdLine

func (o *ModifyNodePoolParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the modify node pool params

func (*ModifyNodePoolParams) SetXRequestID

func (o *ModifyNodePoolParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the modify node pool params

func (*ModifyNodePoolParams) WithBody

WithBody adds the body to the modify node pool params

func (*ModifyNodePoolParams) WithClusterID

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

WithClusterID adds the clusterID to the modify node pool params

func (*ModifyNodePoolParams) WithContext

WithContext adds the context to the modify node pool params

func (*ModifyNodePoolParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the modify node pool params

func (*ModifyNodePoolParams) WithNodepoolID

func (o *ModifyNodePoolParams) WithNodepoolID(nodepoolID string) *ModifyNodePoolParams

WithNodepoolID adds the nodepoolID to the modify node pool params

func (*ModifyNodePoolParams) WithTimeout

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

WithTimeout adds the timeout to the modify node pool params

func (*ModifyNodePoolParams) WithXGiantSwarmActivity

func (o *ModifyNodePoolParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *ModifyNodePoolParams

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the modify node pool params

func (*ModifyNodePoolParams) WithXGiantSwarmCmdLine

func (o *ModifyNodePoolParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *ModifyNodePoolParams

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the modify node pool params

func (*ModifyNodePoolParams) WithXRequestID

func (o *ModifyNodePoolParams) WithXRequestID(xRequestID *string) *ModifyNodePoolParams

WithXRequestID adds the xRequestID to the modify node pool params

func (*ModifyNodePoolParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ModifyNodePoolReader

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

ModifyNodePoolReader is a Reader for the ModifyNodePool structure.

func (*ModifyNodePoolReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ModifyNodePoolUnauthorized

type ModifyNodePoolUnauthorized struct {
	Payload *models.V4GenericResponse
}

ModifyNodePoolUnauthorized handles this case with default header values.

Permission denied

func NewModifyNodePoolUnauthorized

func NewModifyNodePoolUnauthorized() *ModifyNodePoolUnauthorized

NewModifyNodePoolUnauthorized creates a ModifyNodePoolUnauthorized with default headers values

func (*ModifyNodePoolUnauthorized) Error

Jump to

Keyboard shortcuts

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