Documentation ¶
Index ¶
- type Client
- func (a *Client) ListHetznerSizes(params *ListHetznerSizesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListHetznerSizesOK, error)
- func (a *Client) ListHetznerSizesNoCredentials(params *ListHetznerSizesNoCredentialsParams, ...) (*ListHetznerSizesNoCredentialsOK, error)
- func (a *Client) ListHetznerSizesNoCredentialsV2(params *ListHetznerSizesNoCredentialsV2Params, ...) (*ListHetznerSizesNoCredentialsV2OK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ListHetznerSizesDefault
- type ListHetznerSizesNoCredentialsDefault
- type ListHetznerSizesNoCredentialsOK
- type ListHetznerSizesNoCredentialsParams
- func NewListHetznerSizesNoCredentialsParams() *ListHetznerSizesNoCredentialsParams
- func NewListHetznerSizesNoCredentialsParamsWithContext(ctx context.Context) *ListHetznerSizesNoCredentialsParams
- func NewListHetznerSizesNoCredentialsParamsWithHTTPClient(client *http.Client) *ListHetznerSizesNoCredentialsParams
- func NewListHetznerSizesNoCredentialsParamsWithTimeout(timeout time.Duration) *ListHetznerSizesNoCredentialsParams
- func (o *ListHetznerSizesNoCredentialsParams) SetClusterID(clusterID string)
- func (o *ListHetznerSizesNoCredentialsParams) SetContext(ctx context.Context)
- func (o *ListHetznerSizesNoCredentialsParams) SetDC(dc string)
- func (o *ListHetznerSizesNoCredentialsParams) SetDefaults()
- func (o *ListHetznerSizesNoCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *ListHetznerSizesNoCredentialsParams) SetProjectID(projectID string)
- func (o *ListHetznerSizesNoCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *ListHetznerSizesNoCredentialsParams) WithClusterID(clusterID string) *ListHetznerSizesNoCredentialsParams
- func (o *ListHetznerSizesNoCredentialsParams) WithContext(ctx context.Context) *ListHetznerSizesNoCredentialsParams
- func (o *ListHetznerSizesNoCredentialsParams) WithDC(dc string) *ListHetznerSizesNoCredentialsParams
- func (o *ListHetznerSizesNoCredentialsParams) WithDefaults() *ListHetznerSizesNoCredentialsParams
- func (o *ListHetznerSizesNoCredentialsParams) WithHTTPClient(client *http.Client) *ListHetznerSizesNoCredentialsParams
- func (o *ListHetznerSizesNoCredentialsParams) WithProjectID(projectID string) *ListHetznerSizesNoCredentialsParams
- func (o *ListHetznerSizesNoCredentialsParams) WithTimeout(timeout time.Duration) *ListHetznerSizesNoCredentialsParams
- func (o *ListHetznerSizesNoCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListHetznerSizesNoCredentialsReader
- type ListHetznerSizesNoCredentialsV2Default
- type ListHetznerSizesNoCredentialsV2OK
- type ListHetznerSizesNoCredentialsV2Params
- func NewListHetznerSizesNoCredentialsV2Params() *ListHetznerSizesNoCredentialsV2Params
- func NewListHetznerSizesNoCredentialsV2ParamsWithContext(ctx context.Context) *ListHetznerSizesNoCredentialsV2Params
- func NewListHetznerSizesNoCredentialsV2ParamsWithHTTPClient(client *http.Client) *ListHetznerSizesNoCredentialsV2Params
- func NewListHetznerSizesNoCredentialsV2ParamsWithTimeout(timeout time.Duration) *ListHetznerSizesNoCredentialsV2Params
- func (o *ListHetznerSizesNoCredentialsV2Params) SetClusterID(clusterID string)
- func (o *ListHetznerSizesNoCredentialsV2Params) SetContext(ctx context.Context)
- func (o *ListHetznerSizesNoCredentialsV2Params) SetDefaults()
- func (o *ListHetznerSizesNoCredentialsV2Params) SetHTTPClient(client *http.Client)
- func (o *ListHetznerSizesNoCredentialsV2Params) SetProjectID(projectID string)
- func (o *ListHetznerSizesNoCredentialsV2Params) SetTimeout(timeout time.Duration)
- func (o *ListHetznerSizesNoCredentialsV2Params) WithClusterID(clusterID string) *ListHetznerSizesNoCredentialsV2Params
- func (o *ListHetznerSizesNoCredentialsV2Params) WithContext(ctx context.Context) *ListHetznerSizesNoCredentialsV2Params
- func (o *ListHetznerSizesNoCredentialsV2Params) WithDefaults() *ListHetznerSizesNoCredentialsV2Params
- func (o *ListHetznerSizesNoCredentialsV2Params) WithHTTPClient(client *http.Client) *ListHetznerSizesNoCredentialsV2Params
- func (o *ListHetznerSizesNoCredentialsV2Params) WithProjectID(projectID string) *ListHetznerSizesNoCredentialsV2Params
- func (o *ListHetznerSizesNoCredentialsV2Params) WithTimeout(timeout time.Duration) *ListHetznerSizesNoCredentialsV2Params
- func (o *ListHetznerSizesNoCredentialsV2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListHetznerSizesNoCredentialsV2Reader
- type ListHetznerSizesOK
- type ListHetznerSizesParams
- func NewListHetznerSizesParams() *ListHetznerSizesParams
- func NewListHetznerSizesParamsWithContext(ctx context.Context) *ListHetznerSizesParams
- func NewListHetznerSizesParamsWithHTTPClient(client *http.Client) *ListHetznerSizesParams
- func NewListHetznerSizesParamsWithTimeout(timeout time.Duration) *ListHetznerSizesParams
- func (o *ListHetznerSizesParams) SetContext(ctx context.Context)
- func (o *ListHetznerSizesParams) SetCredential(credential *string)
- func (o *ListHetznerSizesParams) SetDefaults()
- func (o *ListHetznerSizesParams) SetHTTPClient(client *http.Client)
- func (o *ListHetznerSizesParams) SetHetznerToken(hetznerToken *string)
- func (o *ListHetznerSizesParams) SetTimeout(timeout time.Duration)
- func (o *ListHetznerSizesParams) WithContext(ctx context.Context) *ListHetznerSizesParams
- func (o *ListHetznerSizesParams) WithCredential(credential *string) *ListHetznerSizesParams
- func (o *ListHetznerSizesParams) WithDefaults() *ListHetznerSizesParams
- func (o *ListHetznerSizesParams) WithHTTPClient(client *http.Client) *ListHetznerSizesParams
- func (o *ListHetznerSizesParams) WithHetznerToken(hetznerToken *string) *ListHetznerSizesParams
- func (o *ListHetznerSizesParams) WithTimeout(timeout time.Duration) *ListHetznerSizesParams
- func (o *ListHetznerSizesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListHetznerSizesReader
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 hetzner API
func (*Client) ListHetznerSizes ¶
func (a *Client) ListHetznerSizes(params *ListHetznerSizesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListHetznerSizesOK, error)
ListHetznerSizes Lists sizes from hetzner
func (*Client) ListHetznerSizesNoCredentials ¶
func (a *Client) ListHetznerSizesNoCredentials(params *ListHetznerSizesNoCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListHetznerSizesNoCredentialsOK, error)
ListHetznerSizesNoCredentials Lists sizes from hetzner
func (*Client) ListHetznerSizesNoCredentialsV2 ¶
func (a *Client) ListHetznerSizesNoCredentialsV2(params *ListHetznerSizesNoCredentialsV2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListHetznerSizesNoCredentialsV2OK, error)
ListHetznerSizesNoCredentialsV2 Lists sizes from hetzner
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶ added in v2.18.0
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { ListHetznerSizes(params *ListHetznerSizesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListHetznerSizesOK, error) ListHetznerSizesNoCredentials(params *ListHetznerSizesNoCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListHetznerSizesNoCredentialsOK, error) ListHetznerSizesNoCredentialsV2(params *ListHetznerSizesNoCredentialsV2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListHetznerSizesNoCredentialsV2OK, 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 hetzner API client.
type ListHetznerSizesDefault ¶
type ListHetznerSizesDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
ListHetznerSizesDefault describes a response with status code -1, with default header values.
errorResponse
func NewListHetznerSizesDefault ¶
func NewListHetznerSizesDefault(code int) *ListHetznerSizesDefault
NewListHetznerSizesDefault creates a ListHetznerSizesDefault with default headers values
func (*ListHetznerSizesDefault) Code ¶
func (o *ListHetznerSizesDefault) Code() int
Code gets the status code for the list hetzner sizes default response
func (*ListHetznerSizesDefault) Error ¶
func (o *ListHetznerSizesDefault) Error() string
func (*ListHetznerSizesDefault) GetPayload ¶
func (o *ListHetznerSizesDefault) GetPayload() *models.ErrorResponse
type ListHetznerSizesNoCredentialsDefault ¶
type ListHetznerSizesNoCredentialsDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
ListHetznerSizesNoCredentialsDefault describes a response with status code -1, with default header values.
errorResponse
func NewListHetznerSizesNoCredentialsDefault ¶
func NewListHetznerSizesNoCredentialsDefault(code int) *ListHetznerSizesNoCredentialsDefault
NewListHetznerSizesNoCredentialsDefault creates a ListHetznerSizesNoCredentialsDefault with default headers values
func (*ListHetznerSizesNoCredentialsDefault) Code ¶
func (o *ListHetznerSizesNoCredentialsDefault) Code() int
Code gets the status code for the list hetzner sizes no credentials default response
func (*ListHetznerSizesNoCredentialsDefault) Error ¶
func (o *ListHetznerSizesNoCredentialsDefault) Error() string
func (*ListHetznerSizesNoCredentialsDefault) GetPayload ¶
func (o *ListHetznerSizesNoCredentialsDefault) GetPayload() *models.ErrorResponse
type ListHetznerSizesNoCredentialsOK ¶
type ListHetznerSizesNoCredentialsOK struct {
Payload *models.HetznerSizeList
}
ListHetznerSizesNoCredentialsOK describes a response with status code 200, with default header values.
HetznerSizeList
func NewListHetznerSizesNoCredentialsOK ¶
func NewListHetznerSizesNoCredentialsOK() *ListHetznerSizesNoCredentialsOK
NewListHetznerSizesNoCredentialsOK creates a ListHetznerSizesNoCredentialsOK with default headers values
func (*ListHetznerSizesNoCredentialsOK) Error ¶
func (o *ListHetznerSizesNoCredentialsOK) Error() string
func (*ListHetznerSizesNoCredentialsOK) GetPayload ¶
func (o *ListHetznerSizesNoCredentialsOK) GetPayload() *models.HetznerSizeList
type ListHetznerSizesNoCredentialsParams ¶
type ListHetznerSizesNoCredentialsParams struct { // ClusterID. ClusterID string // Dc. DC string // ProjectID. ProjectID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListHetznerSizesNoCredentialsParams contains all the parameters to send to the API endpoint
for the list hetzner sizes no credentials operation. Typically these are written to a http.Request.
func NewListHetznerSizesNoCredentialsParams ¶
func NewListHetznerSizesNoCredentialsParams() *ListHetznerSizesNoCredentialsParams
NewListHetznerSizesNoCredentialsParams creates a new ListHetznerSizesNoCredentialsParams 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 NewListHetznerSizesNoCredentialsParamsWithContext ¶
func NewListHetznerSizesNoCredentialsParamsWithContext(ctx context.Context) *ListHetznerSizesNoCredentialsParams
NewListHetznerSizesNoCredentialsParamsWithContext creates a new ListHetznerSizesNoCredentialsParams object with the ability to set a context for a request.
func NewListHetznerSizesNoCredentialsParamsWithHTTPClient ¶
func NewListHetznerSizesNoCredentialsParamsWithHTTPClient(client *http.Client) *ListHetznerSizesNoCredentialsParams
NewListHetznerSizesNoCredentialsParamsWithHTTPClient creates a new ListHetznerSizesNoCredentialsParams object with the ability to set a custom HTTPClient for a request.
func NewListHetznerSizesNoCredentialsParamsWithTimeout ¶
func NewListHetznerSizesNoCredentialsParamsWithTimeout(timeout time.Duration) *ListHetznerSizesNoCredentialsParams
NewListHetznerSizesNoCredentialsParamsWithTimeout creates a new ListHetznerSizesNoCredentialsParams object with the ability to set a timeout on a request.
func (*ListHetznerSizesNoCredentialsParams) SetClusterID ¶
func (o *ListHetznerSizesNoCredentialsParams) SetClusterID(clusterID string)
SetClusterID adds the clusterId to the list hetzner sizes no credentials params
func (*ListHetznerSizesNoCredentialsParams) SetContext ¶
func (o *ListHetznerSizesNoCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the list hetzner sizes no credentials params
func (*ListHetznerSizesNoCredentialsParams) SetDC ¶
func (o *ListHetznerSizesNoCredentialsParams) SetDC(dc string)
SetDC adds the dc to the list hetzner sizes no credentials params
func (*ListHetznerSizesNoCredentialsParams) SetDefaults ¶ added in v2.18.0
func (o *ListHetznerSizesNoCredentialsParams) SetDefaults()
SetDefaults hydrates default values in the list hetzner sizes no credentials params (not the query body).
All values with no default are reset to their zero value.
func (*ListHetznerSizesNoCredentialsParams) SetHTTPClient ¶
func (o *ListHetznerSizesNoCredentialsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list hetzner sizes no credentials params
func (*ListHetznerSizesNoCredentialsParams) SetProjectID ¶
func (o *ListHetznerSizesNoCredentialsParams) SetProjectID(projectID string)
SetProjectID adds the projectId to the list hetzner sizes no credentials params
func (*ListHetznerSizesNoCredentialsParams) SetTimeout ¶
func (o *ListHetznerSizesNoCredentialsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list hetzner sizes no credentials params
func (*ListHetznerSizesNoCredentialsParams) WithClusterID ¶
func (o *ListHetznerSizesNoCredentialsParams) WithClusterID(clusterID string) *ListHetznerSizesNoCredentialsParams
WithClusterID adds the clusterID to the list hetzner sizes no credentials params
func (*ListHetznerSizesNoCredentialsParams) WithContext ¶
func (o *ListHetznerSizesNoCredentialsParams) WithContext(ctx context.Context) *ListHetznerSizesNoCredentialsParams
WithContext adds the context to the list hetzner sizes no credentials params
func (*ListHetznerSizesNoCredentialsParams) WithDC ¶
func (o *ListHetznerSizesNoCredentialsParams) WithDC(dc string) *ListHetznerSizesNoCredentialsParams
WithDC adds the dc to the list hetzner sizes no credentials params
func (*ListHetznerSizesNoCredentialsParams) WithDefaults ¶ added in v2.18.0
func (o *ListHetznerSizesNoCredentialsParams) WithDefaults() *ListHetznerSizesNoCredentialsParams
WithDefaults hydrates default values in the list hetzner sizes no credentials params (not the query body).
All values with no default are reset to their zero value.
func (*ListHetznerSizesNoCredentialsParams) WithHTTPClient ¶
func (o *ListHetznerSizesNoCredentialsParams) WithHTTPClient(client *http.Client) *ListHetznerSizesNoCredentialsParams
WithHTTPClient adds the HTTPClient to the list hetzner sizes no credentials params
func (*ListHetznerSizesNoCredentialsParams) WithProjectID ¶
func (o *ListHetznerSizesNoCredentialsParams) WithProjectID(projectID string) *ListHetznerSizesNoCredentialsParams
WithProjectID adds the projectID to the list hetzner sizes no credentials params
func (*ListHetznerSizesNoCredentialsParams) WithTimeout ¶
func (o *ListHetznerSizesNoCredentialsParams) WithTimeout(timeout time.Duration) *ListHetznerSizesNoCredentialsParams
WithTimeout adds the timeout to the list hetzner sizes no credentials params
func (*ListHetznerSizesNoCredentialsParams) WriteToRequest ¶
func (o *ListHetznerSizesNoCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListHetznerSizesNoCredentialsReader ¶
type ListHetznerSizesNoCredentialsReader struct {
// contains filtered or unexported fields
}
ListHetznerSizesNoCredentialsReader is a Reader for the ListHetznerSizesNoCredentials structure.
func (*ListHetznerSizesNoCredentialsReader) ReadResponse ¶
func (o *ListHetznerSizesNoCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListHetznerSizesNoCredentialsV2Default ¶
type ListHetznerSizesNoCredentialsV2Default struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
ListHetznerSizesNoCredentialsV2Default describes a response with status code -1, with default header values.
errorResponse
func NewListHetznerSizesNoCredentialsV2Default ¶
func NewListHetznerSizesNoCredentialsV2Default(code int) *ListHetznerSizesNoCredentialsV2Default
NewListHetznerSizesNoCredentialsV2Default creates a ListHetznerSizesNoCredentialsV2Default with default headers values
func (*ListHetznerSizesNoCredentialsV2Default) Code ¶
func (o *ListHetznerSizesNoCredentialsV2Default) Code() int
Code gets the status code for the list hetzner sizes no credentials v2 default response
func (*ListHetznerSizesNoCredentialsV2Default) Error ¶
func (o *ListHetznerSizesNoCredentialsV2Default) Error() string
func (*ListHetznerSizesNoCredentialsV2Default) GetPayload ¶
func (o *ListHetznerSizesNoCredentialsV2Default) GetPayload() *models.ErrorResponse
type ListHetznerSizesNoCredentialsV2OK ¶
type ListHetznerSizesNoCredentialsV2OK struct {
Payload *models.HetznerSizeList
}
ListHetznerSizesNoCredentialsV2OK describes a response with status code 200, with default header values.
HetznerSizeList
func NewListHetznerSizesNoCredentialsV2OK ¶
func NewListHetznerSizesNoCredentialsV2OK() *ListHetznerSizesNoCredentialsV2OK
NewListHetznerSizesNoCredentialsV2OK creates a ListHetznerSizesNoCredentialsV2OK with default headers values
func (*ListHetznerSizesNoCredentialsV2OK) Error ¶
func (o *ListHetznerSizesNoCredentialsV2OK) Error() string
func (*ListHetznerSizesNoCredentialsV2OK) GetPayload ¶
func (o *ListHetznerSizesNoCredentialsV2OK) GetPayload() *models.HetznerSizeList
type ListHetznerSizesNoCredentialsV2Params ¶
type ListHetznerSizesNoCredentialsV2Params struct { // ClusterID. ClusterID string // ProjectID. ProjectID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListHetznerSizesNoCredentialsV2Params contains all the parameters to send to the API endpoint
for the list hetzner sizes no credentials v2 operation. Typically these are written to a http.Request.
func NewListHetznerSizesNoCredentialsV2Params ¶
func NewListHetznerSizesNoCredentialsV2Params() *ListHetznerSizesNoCredentialsV2Params
NewListHetznerSizesNoCredentialsV2Params creates a new ListHetznerSizesNoCredentialsV2Params 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 NewListHetznerSizesNoCredentialsV2ParamsWithContext ¶
func NewListHetznerSizesNoCredentialsV2ParamsWithContext(ctx context.Context) *ListHetznerSizesNoCredentialsV2Params
NewListHetznerSizesNoCredentialsV2ParamsWithContext creates a new ListHetznerSizesNoCredentialsV2Params object with the ability to set a context for a request.
func NewListHetznerSizesNoCredentialsV2ParamsWithHTTPClient ¶
func NewListHetznerSizesNoCredentialsV2ParamsWithHTTPClient(client *http.Client) *ListHetznerSizesNoCredentialsV2Params
NewListHetznerSizesNoCredentialsV2ParamsWithHTTPClient creates a new ListHetznerSizesNoCredentialsV2Params object with the ability to set a custom HTTPClient for a request.
func NewListHetznerSizesNoCredentialsV2ParamsWithTimeout ¶
func NewListHetznerSizesNoCredentialsV2ParamsWithTimeout(timeout time.Duration) *ListHetznerSizesNoCredentialsV2Params
NewListHetznerSizesNoCredentialsV2ParamsWithTimeout creates a new ListHetznerSizesNoCredentialsV2Params object with the ability to set a timeout on a request.
func (*ListHetznerSizesNoCredentialsV2Params) SetClusterID ¶
func (o *ListHetznerSizesNoCredentialsV2Params) SetClusterID(clusterID string)
SetClusterID adds the clusterId to the list hetzner sizes no credentials v2 params
func (*ListHetznerSizesNoCredentialsV2Params) SetContext ¶
func (o *ListHetznerSizesNoCredentialsV2Params) SetContext(ctx context.Context)
SetContext adds the context to the list hetzner sizes no credentials v2 params
func (*ListHetznerSizesNoCredentialsV2Params) SetDefaults ¶ added in v2.18.0
func (o *ListHetznerSizesNoCredentialsV2Params) SetDefaults()
SetDefaults hydrates default values in the list hetzner sizes no credentials v2 params (not the query body).
All values with no default are reset to their zero value.
func (*ListHetznerSizesNoCredentialsV2Params) SetHTTPClient ¶
func (o *ListHetznerSizesNoCredentialsV2Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list hetzner sizes no credentials v2 params
func (*ListHetznerSizesNoCredentialsV2Params) SetProjectID ¶
func (o *ListHetznerSizesNoCredentialsV2Params) SetProjectID(projectID string)
SetProjectID adds the projectId to the list hetzner sizes no credentials v2 params
func (*ListHetznerSizesNoCredentialsV2Params) SetTimeout ¶
func (o *ListHetznerSizesNoCredentialsV2Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list hetzner sizes no credentials v2 params
func (*ListHetznerSizesNoCredentialsV2Params) WithClusterID ¶
func (o *ListHetznerSizesNoCredentialsV2Params) WithClusterID(clusterID string) *ListHetznerSizesNoCredentialsV2Params
WithClusterID adds the clusterID to the list hetzner sizes no credentials v2 params
func (*ListHetznerSizesNoCredentialsV2Params) WithContext ¶
func (o *ListHetznerSizesNoCredentialsV2Params) WithContext(ctx context.Context) *ListHetznerSizesNoCredentialsV2Params
WithContext adds the context to the list hetzner sizes no credentials v2 params
func (*ListHetznerSizesNoCredentialsV2Params) WithDefaults ¶ added in v2.18.0
func (o *ListHetznerSizesNoCredentialsV2Params) WithDefaults() *ListHetznerSizesNoCredentialsV2Params
WithDefaults hydrates default values in the list hetzner sizes no credentials v2 params (not the query body).
All values with no default are reset to their zero value.
func (*ListHetznerSizesNoCredentialsV2Params) WithHTTPClient ¶
func (o *ListHetznerSizesNoCredentialsV2Params) WithHTTPClient(client *http.Client) *ListHetznerSizesNoCredentialsV2Params
WithHTTPClient adds the HTTPClient to the list hetzner sizes no credentials v2 params
func (*ListHetznerSizesNoCredentialsV2Params) WithProjectID ¶
func (o *ListHetznerSizesNoCredentialsV2Params) WithProjectID(projectID string) *ListHetznerSizesNoCredentialsV2Params
WithProjectID adds the projectID to the list hetzner sizes no credentials v2 params
func (*ListHetznerSizesNoCredentialsV2Params) WithTimeout ¶
func (o *ListHetznerSizesNoCredentialsV2Params) WithTimeout(timeout time.Duration) *ListHetznerSizesNoCredentialsV2Params
WithTimeout adds the timeout to the list hetzner sizes no credentials v2 params
func (*ListHetznerSizesNoCredentialsV2Params) WriteToRequest ¶
func (o *ListHetznerSizesNoCredentialsV2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListHetznerSizesNoCredentialsV2Reader ¶
type ListHetznerSizesNoCredentialsV2Reader struct {
// contains filtered or unexported fields
}
ListHetznerSizesNoCredentialsV2Reader is a Reader for the ListHetznerSizesNoCredentialsV2 structure.
func (*ListHetznerSizesNoCredentialsV2Reader) ReadResponse ¶
func (o *ListHetznerSizesNoCredentialsV2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListHetznerSizesOK ¶
type ListHetznerSizesOK struct {
Payload *models.HetznerSizeList
}
ListHetznerSizesOK describes a response with status code 200, with default header values.
HetznerSizeList
func NewListHetznerSizesOK ¶
func NewListHetznerSizesOK() *ListHetznerSizesOK
NewListHetznerSizesOK creates a ListHetznerSizesOK with default headers values
func (*ListHetznerSizesOK) Error ¶
func (o *ListHetznerSizesOK) Error() string
func (*ListHetznerSizesOK) GetPayload ¶
func (o *ListHetznerSizesOK) GetPayload() *models.HetznerSizeList
type ListHetznerSizesParams ¶
type ListHetznerSizesParams struct { // Credential. Credential *string // HetznerToken. HetznerToken *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListHetznerSizesParams contains all the parameters to send to the API endpoint
for the list hetzner sizes operation. Typically these are written to a http.Request.
func NewListHetznerSizesParams ¶
func NewListHetznerSizesParams() *ListHetznerSizesParams
NewListHetznerSizesParams creates a new ListHetznerSizesParams 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 NewListHetznerSizesParamsWithContext ¶
func NewListHetznerSizesParamsWithContext(ctx context.Context) *ListHetznerSizesParams
NewListHetznerSizesParamsWithContext creates a new ListHetznerSizesParams object with the ability to set a context for a request.
func NewListHetznerSizesParamsWithHTTPClient ¶
func NewListHetznerSizesParamsWithHTTPClient(client *http.Client) *ListHetznerSizesParams
NewListHetznerSizesParamsWithHTTPClient creates a new ListHetznerSizesParams object with the ability to set a custom HTTPClient for a request.
func NewListHetznerSizesParamsWithTimeout ¶
func NewListHetznerSizesParamsWithTimeout(timeout time.Duration) *ListHetznerSizesParams
NewListHetznerSizesParamsWithTimeout creates a new ListHetznerSizesParams object with the ability to set a timeout on a request.
func (*ListHetznerSizesParams) SetContext ¶
func (o *ListHetznerSizesParams) SetContext(ctx context.Context)
SetContext adds the context to the list hetzner sizes params
func (*ListHetznerSizesParams) SetCredential ¶
func (o *ListHetznerSizesParams) SetCredential(credential *string)
SetCredential adds the credential to the list hetzner sizes params
func (*ListHetznerSizesParams) SetDefaults ¶ added in v2.18.0
func (o *ListHetznerSizesParams) SetDefaults()
SetDefaults hydrates default values in the list hetzner sizes params (not the query body).
All values with no default are reset to their zero value.
func (*ListHetznerSizesParams) SetHTTPClient ¶
func (o *ListHetznerSizesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list hetzner sizes params
func (*ListHetznerSizesParams) SetHetznerToken ¶
func (o *ListHetznerSizesParams) SetHetznerToken(hetznerToken *string)
SetHetznerToken adds the hetznerToken to the list hetzner sizes params
func (*ListHetznerSizesParams) SetTimeout ¶
func (o *ListHetznerSizesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list hetzner sizes params
func (*ListHetznerSizesParams) WithContext ¶
func (o *ListHetznerSizesParams) WithContext(ctx context.Context) *ListHetznerSizesParams
WithContext adds the context to the list hetzner sizes params
func (*ListHetznerSizesParams) WithCredential ¶
func (o *ListHetznerSizesParams) WithCredential(credential *string) *ListHetznerSizesParams
WithCredential adds the credential to the list hetzner sizes params
func (*ListHetznerSizesParams) WithDefaults ¶ added in v2.18.0
func (o *ListHetznerSizesParams) WithDefaults() *ListHetznerSizesParams
WithDefaults hydrates default values in the list hetzner sizes params (not the query body).
All values with no default are reset to their zero value.
func (*ListHetznerSizesParams) WithHTTPClient ¶
func (o *ListHetznerSizesParams) WithHTTPClient(client *http.Client) *ListHetznerSizesParams
WithHTTPClient adds the HTTPClient to the list hetzner sizes params
func (*ListHetznerSizesParams) WithHetznerToken ¶
func (o *ListHetznerSizesParams) WithHetznerToken(hetznerToken *string) *ListHetznerSizesParams
WithHetznerToken adds the hetznerToken to the list hetzner sizes params
func (*ListHetznerSizesParams) WithTimeout ¶
func (o *ListHetznerSizesParams) WithTimeout(timeout time.Duration) *ListHetznerSizesParams
WithTimeout adds the timeout to the list hetzner sizes params
func (*ListHetznerSizesParams) WriteToRequest ¶
func (o *ListHetznerSizesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListHetznerSizesReader ¶
type ListHetznerSizesReader struct {
// contains filtered or unexported fields
}
ListHetznerSizesReader is a Reader for the ListHetznerSizes structure.
func (*ListHetznerSizesReader) ReadResponse ¶
func (o *ListHetznerSizesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.