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) SetTransport(transport runtime.ClientTransport)
- 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) 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) 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 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) 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) 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) (*ListHetznerSizesOK, error)
ListHetznerSizes Lists sizes from hetzner
func (*Client) ListHetznerSizesNoCredentials ¶
func (a *Client) ListHetznerSizesNoCredentials(params *ListHetznerSizesNoCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*ListHetznerSizesNoCredentialsOK, error)
ListHetznerSizesNoCredentials Lists sizes from hetzner
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { ListHetznerSizes(params *ListHetznerSizesParams, authInfo runtime.ClientAuthInfoWriter) (*ListHetznerSizesOK, error) ListHetznerSizesNoCredentials(params *ListHetznerSizesNoCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*ListHetznerSizesNoCredentialsOK, 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 handles this case 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 handles this case 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 handles this case 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 values initialized.
func NewListHetznerSizesNoCredentialsParamsWithContext ¶
func NewListHetznerSizesNoCredentialsParamsWithContext(ctx context.Context) *ListHetznerSizesNoCredentialsParams
NewListHetznerSizesNoCredentialsParamsWithContext creates a new ListHetznerSizesNoCredentialsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 ListHetznerSizesOK ¶
type ListHetznerSizesOK struct {
Payload *models.HetznerSizeList
}
ListHetznerSizesOK handles this case 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 values initialized.
func NewListHetznerSizesParamsWithContext ¶
func NewListHetznerSizesParamsWithContext(ctx context.Context) *ListHetznerSizesParams
NewListHetznerSizesParamsWithContext creates a new ListHetznerSizesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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.