autoprimary

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MPL-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 autoprimary API

func (*Client) CreateAutoprimary

func (a *Client) CreateAutoprimary(params *CreateAutoprimaryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAutoprimaryCreated, error)

CreateAutoprimary adds an autoprimary

This methods add a new autoprimary server.

func (*Client) DeleteAutoprimary

func (a *Client) DeleteAutoprimary(params *DeleteAutoprimaryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAutoprimaryNoContent, error)

DeleteAutoprimary deletes the autoprimary entry

func (*Client) GetAutoprimaries

func (a *Client) GetAutoprimaries(params *GetAutoprimariesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAutoprimariesOK, error)

GetAutoprimaries gets a list of autoprimaries

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateAutoprimary(params *CreateAutoprimaryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAutoprimaryCreated, error)

	DeleteAutoprimary(params *DeleteAutoprimaryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAutoprimaryNoContent, error)

	GetAutoprimaries(params *GetAutoprimariesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAutoprimariesOK, 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 autoprimary API client.

type CreateAutoprimaryCreated

type CreateAutoprimaryCreated struct {
}
CreateAutoprimaryCreated describes a response with status code 201, with default header values.

Created

func NewCreateAutoprimaryCreated

func NewCreateAutoprimaryCreated() *CreateAutoprimaryCreated

NewCreateAutoprimaryCreated creates a CreateAutoprimaryCreated with default headers values

func (*CreateAutoprimaryCreated) Error

func (o *CreateAutoprimaryCreated) Error() string

type CreateAutoprimaryParams

type CreateAutoprimaryParams struct {

	/* Autoprimary.

	   autoprimary entry to add
	*/
	Autoprimary *models.Autoprimary

	/* ServerID.

	   The id of the server to manage the list of autoprimaries on
	*/
	ServerID string

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

CreateAutoprimaryParams contains all the parameters to send to the API endpoint

for the create autoprimary operation.

Typically these are written to a http.Request.

func NewCreateAutoprimaryParams

func NewCreateAutoprimaryParams() *CreateAutoprimaryParams

NewCreateAutoprimaryParams creates a new CreateAutoprimaryParams 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 NewCreateAutoprimaryParamsWithContext

func NewCreateAutoprimaryParamsWithContext(ctx context.Context) *CreateAutoprimaryParams

NewCreateAutoprimaryParamsWithContext creates a new CreateAutoprimaryParams object with the ability to set a context for a request.

func NewCreateAutoprimaryParamsWithHTTPClient

func NewCreateAutoprimaryParamsWithHTTPClient(client *http.Client) *CreateAutoprimaryParams

NewCreateAutoprimaryParamsWithHTTPClient creates a new CreateAutoprimaryParams object with the ability to set a custom HTTPClient for a request.

func NewCreateAutoprimaryParamsWithTimeout

func NewCreateAutoprimaryParamsWithTimeout(timeout time.Duration) *CreateAutoprimaryParams

NewCreateAutoprimaryParamsWithTimeout creates a new CreateAutoprimaryParams object with the ability to set a timeout on a request.

func (*CreateAutoprimaryParams) SetAutoprimary

func (o *CreateAutoprimaryParams) SetAutoprimary(autoprimary *models.Autoprimary)

SetAutoprimary adds the autoprimary to the create autoprimary params

func (*CreateAutoprimaryParams) SetContext

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

SetContext adds the context to the create autoprimary params

func (*CreateAutoprimaryParams) SetDefaults

func (o *CreateAutoprimaryParams) SetDefaults()

SetDefaults hydrates default values in the create autoprimary params (not the query body).

All values with no default are reset to their zero value.

func (*CreateAutoprimaryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create autoprimary params

func (*CreateAutoprimaryParams) SetServerID

func (o *CreateAutoprimaryParams) SetServerID(serverID string)

SetServerID adds the serverId to the create autoprimary params

func (*CreateAutoprimaryParams) SetTimeout

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

SetTimeout adds the timeout to the create autoprimary params

func (*CreateAutoprimaryParams) WithAutoprimary

func (o *CreateAutoprimaryParams) WithAutoprimary(autoprimary *models.Autoprimary) *CreateAutoprimaryParams

WithAutoprimary adds the autoprimary to the create autoprimary params

func (*CreateAutoprimaryParams) WithContext

WithContext adds the context to the create autoprimary params

func (*CreateAutoprimaryParams) WithDefaults

WithDefaults hydrates default values in the create autoprimary params (not the query body).

All values with no default are reset to their zero value.

func (*CreateAutoprimaryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create autoprimary params

func (*CreateAutoprimaryParams) WithServerID

func (o *CreateAutoprimaryParams) WithServerID(serverID string) *CreateAutoprimaryParams

WithServerID adds the serverID to the create autoprimary params

func (*CreateAutoprimaryParams) WithTimeout

WithTimeout adds the timeout to the create autoprimary params

func (*CreateAutoprimaryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateAutoprimaryReader

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

CreateAutoprimaryReader is a Reader for the CreateAutoprimary structure.

func (*CreateAutoprimaryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteAutoprimaryNoContent

type DeleteAutoprimaryNoContent struct {
}
DeleteAutoprimaryNoContent describes a response with status code 204, with default header values.

OK, key was deleted

func NewDeleteAutoprimaryNoContent

func NewDeleteAutoprimaryNoContent() *DeleteAutoprimaryNoContent

NewDeleteAutoprimaryNoContent creates a DeleteAutoprimaryNoContent with default headers values

func (*DeleteAutoprimaryNoContent) Error

type DeleteAutoprimaryParams

type DeleteAutoprimaryParams struct {

	/* IP.

	   IP address of autoprimary
	*/
	IP string

	/* Nameserver.

	   DNS name of the autoprimary
	*/
	Nameserver string

	/* ServerID.

	   The id of the server to delete the autoprimary from
	*/
	ServerID string

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

DeleteAutoprimaryParams contains all the parameters to send to the API endpoint

for the delete autoprimary operation.

Typically these are written to a http.Request.

func NewDeleteAutoprimaryParams

func NewDeleteAutoprimaryParams() *DeleteAutoprimaryParams

NewDeleteAutoprimaryParams creates a new DeleteAutoprimaryParams 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 NewDeleteAutoprimaryParamsWithContext

func NewDeleteAutoprimaryParamsWithContext(ctx context.Context) *DeleteAutoprimaryParams

NewDeleteAutoprimaryParamsWithContext creates a new DeleteAutoprimaryParams object with the ability to set a context for a request.

func NewDeleteAutoprimaryParamsWithHTTPClient

func NewDeleteAutoprimaryParamsWithHTTPClient(client *http.Client) *DeleteAutoprimaryParams

NewDeleteAutoprimaryParamsWithHTTPClient creates a new DeleteAutoprimaryParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAutoprimaryParamsWithTimeout

func NewDeleteAutoprimaryParamsWithTimeout(timeout time.Duration) *DeleteAutoprimaryParams

NewDeleteAutoprimaryParamsWithTimeout creates a new DeleteAutoprimaryParams object with the ability to set a timeout on a request.

func (*DeleteAutoprimaryParams) SetContext

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

SetContext adds the context to the delete autoprimary params

func (*DeleteAutoprimaryParams) SetDefaults

func (o *DeleteAutoprimaryParams) SetDefaults()

SetDefaults hydrates default values in the delete autoprimary params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteAutoprimaryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete autoprimary params

func (*DeleteAutoprimaryParams) SetIP

func (o *DeleteAutoprimaryParams) SetIP(ip string)

SetIP adds the ip to the delete autoprimary params

func (*DeleteAutoprimaryParams) SetNameserver

func (o *DeleteAutoprimaryParams) SetNameserver(nameserver string)

SetNameserver adds the nameserver to the delete autoprimary params

func (*DeleteAutoprimaryParams) SetServerID

func (o *DeleteAutoprimaryParams) SetServerID(serverID string)

SetServerID adds the serverId to the delete autoprimary params

func (*DeleteAutoprimaryParams) SetTimeout

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

SetTimeout adds the timeout to the delete autoprimary params

func (*DeleteAutoprimaryParams) WithContext

WithContext adds the context to the delete autoprimary params

func (*DeleteAutoprimaryParams) WithDefaults

WithDefaults hydrates default values in the delete autoprimary params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteAutoprimaryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete autoprimary params

func (*DeleteAutoprimaryParams) WithIP

WithIP adds the ip to the delete autoprimary params

func (*DeleteAutoprimaryParams) WithNameserver

func (o *DeleteAutoprimaryParams) WithNameserver(nameserver string) *DeleteAutoprimaryParams

WithNameserver adds the nameserver to the delete autoprimary params

func (*DeleteAutoprimaryParams) WithServerID

func (o *DeleteAutoprimaryParams) WithServerID(serverID string) *DeleteAutoprimaryParams

WithServerID adds the serverID to the delete autoprimary params

func (*DeleteAutoprimaryParams) WithTimeout

WithTimeout adds the timeout to the delete autoprimary params

func (*DeleteAutoprimaryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteAutoprimaryReader

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

DeleteAutoprimaryReader is a Reader for the DeleteAutoprimary structure.

func (*DeleteAutoprimaryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAutoprimariesOK

type GetAutoprimariesOK struct {
	Payload *models.Autoprimary
}
GetAutoprimariesOK describes a response with status code 200, with default header values.

OK.

func NewGetAutoprimariesOK

func NewGetAutoprimariesOK() *GetAutoprimariesOK

NewGetAutoprimariesOK creates a GetAutoprimariesOK with default headers values

func (*GetAutoprimariesOK) Error

func (o *GetAutoprimariesOK) Error() string

func (*GetAutoprimariesOK) GetPayload

func (o *GetAutoprimariesOK) GetPayload() *models.Autoprimary

type GetAutoprimariesParams

type GetAutoprimariesParams struct {

	/* ServerID.

	   The id of the server to manage the list of autoprimaries on
	*/
	ServerID string

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

GetAutoprimariesParams contains all the parameters to send to the API endpoint

for the get autoprimaries operation.

Typically these are written to a http.Request.

func NewGetAutoprimariesParams

func NewGetAutoprimariesParams() *GetAutoprimariesParams

NewGetAutoprimariesParams creates a new GetAutoprimariesParams 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 NewGetAutoprimariesParamsWithContext

func NewGetAutoprimariesParamsWithContext(ctx context.Context) *GetAutoprimariesParams

NewGetAutoprimariesParamsWithContext creates a new GetAutoprimariesParams object with the ability to set a context for a request.

func NewGetAutoprimariesParamsWithHTTPClient

func NewGetAutoprimariesParamsWithHTTPClient(client *http.Client) *GetAutoprimariesParams

NewGetAutoprimariesParamsWithHTTPClient creates a new GetAutoprimariesParams object with the ability to set a custom HTTPClient for a request.

func NewGetAutoprimariesParamsWithTimeout

func NewGetAutoprimariesParamsWithTimeout(timeout time.Duration) *GetAutoprimariesParams

NewGetAutoprimariesParamsWithTimeout creates a new GetAutoprimariesParams object with the ability to set a timeout on a request.

func (*GetAutoprimariesParams) SetContext

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

SetContext adds the context to the get autoprimaries params

func (*GetAutoprimariesParams) SetDefaults

func (o *GetAutoprimariesParams) SetDefaults()

SetDefaults hydrates default values in the get autoprimaries params (not the query body).

All values with no default are reset to their zero value.

func (*GetAutoprimariesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get autoprimaries params

func (*GetAutoprimariesParams) SetServerID

func (o *GetAutoprimariesParams) SetServerID(serverID string)

SetServerID adds the serverId to the get autoprimaries params

func (*GetAutoprimariesParams) SetTimeout

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

SetTimeout adds the timeout to the get autoprimaries params

func (*GetAutoprimariesParams) WithContext

WithContext adds the context to the get autoprimaries params

func (*GetAutoprimariesParams) WithDefaults

WithDefaults hydrates default values in the get autoprimaries params (not the query body).

All values with no default are reset to their zero value.

func (*GetAutoprimariesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get autoprimaries params

func (*GetAutoprimariesParams) WithServerID

func (o *GetAutoprimariesParams) WithServerID(serverID string) *GetAutoprimariesParams

WithServerID adds the serverID to the get autoprimaries params

func (*GetAutoprimariesParams) WithTimeout

WithTimeout adds the timeout to the get autoprimaries params

func (*GetAutoprimariesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAutoprimariesReader

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

GetAutoprimariesReader is a Reader for the GetAutoprimaries structure.

func (*GetAutoprimariesReader) ReadResponse

func (o *GetAutoprimariesReader) 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