hetzner

package
v2.18.10 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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

Code gets the status code for the list hetzner sizes no credentials default response

func (*ListHetznerSizesNoCredentialsDefault) Error

func (*ListHetznerSizesNoCredentialsDefault) GetPayload

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 (*ListHetznerSizesNoCredentialsOK) GetPayload

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

SetContext adds the context to the list hetzner sizes no credentials params

func (*ListHetznerSizesNoCredentialsParams) SetDC

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

WithClusterID adds the clusterID to the list hetzner sizes no credentials params

func (*ListHetznerSizesNoCredentialsParams) WithContext

WithContext adds the context to the list hetzner sizes no credentials params

func (*ListHetznerSizesNoCredentialsParams) WithDC

WithDC adds the dc to the list hetzner sizes no credentials params

func (*ListHetznerSizesNoCredentialsParams) WithDefaults added in v2.18.0

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

WithHTTPClient adds the HTTPClient to the list hetzner sizes no credentials params

func (*ListHetznerSizesNoCredentialsParams) WithProjectID

WithProjectID adds the projectID to the list hetzner sizes no credentials params

func (*ListHetznerSizesNoCredentialsParams) WithTimeout

WithTimeout adds the timeout to the list hetzner sizes no credentials params

func (*ListHetznerSizesNoCredentialsParams) WriteToRequest

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

Code gets the status code for the list hetzner sizes no credentials v2 default response

func (*ListHetznerSizesNoCredentialsV2Default) Error

func (*ListHetznerSizesNoCredentialsV2Default) GetPayload

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 (*ListHetznerSizesNoCredentialsV2OK) GetPayload

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

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

WithClusterID adds the clusterID to the list hetzner sizes no credentials v2 params

func (*ListHetznerSizesNoCredentialsV2Params) WithContext

WithContext adds the context to the list hetzner sizes no credentials v2 params

func (*ListHetznerSizesNoCredentialsV2Params) WithDefaults added in v2.18.0

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

WithHTTPClient adds the HTTPClient to the list hetzner sizes no credentials v2 params

func (*ListHetznerSizesNoCredentialsV2Params) WithProjectID

WithProjectID adds the projectID to the list hetzner sizes no credentials v2 params

func (*ListHetznerSizesNoCredentialsV2Params) WithTimeout

WithTimeout adds the timeout to the list hetzner sizes no credentials v2 params

func (*ListHetznerSizesNoCredentialsV2Params) WriteToRequest

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

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

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

WithTimeout adds the timeout to the list hetzner sizes params

func (*ListHetznerSizesParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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