ip

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocateIPCreated

type AllocateIPCreated struct {
	Payload *models.V1IPResponse
}

AllocateIPCreated handles this case with default header values.

Created

func NewAllocateIPCreated

func NewAllocateIPCreated() *AllocateIPCreated

NewAllocateIPCreated creates a AllocateIPCreated with default headers values

func (*AllocateIPCreated) Error

func (o *AllocateIPCreated) Error() string

type AllocateIPDefault

type AllocateIPDefault struct {
	Payload *models.HttperrorsHTTPErrorResponse
	// contains filtered or unexported fields
}

AllocateIPDefault handles this case with default header values.

Error

func NewAllocateIPDefault

func NewAllocateIPDefault(code int) *AllocateIPDefault

NewAllocateIPDefault creates a AllocateIPDefault with default headers values

func (*AllocateIPDefault) Code

func (o *AllocateIPDefault) Code() int

Code gets the status code for the allocate IP default response

func (*AllocateIPDefault) Error

func (o *AllocateIPDefault) Error() string

type AllocateIPParams

type AllocateIPParams struct {

	/*Body*/
	Body *models.V1IPAllocateRequest

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

AllocateIPParams contains all the parameters to send to the API endpoint for the allocate IP operation typically these are written to a http.Request

func NewAllocateIPParams

func NewAllocateIPParams() *AllocateIPParams

NewAllocateIPParams creates a new AllocateIPParams object with the default values initialized.

func NewAllocateIPParamsWithContext

func NewAllocateIPParamsWithContext(ctx context.Context) *AllocateIPParams

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

func NewAllocateIPParamsWithHTTPClient

func NewAllocateIPParamsWithHTTPClient(client *http.Client) *AllocateIPParams

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

func NewAllocateIPParamsWithTimeout

func NewAllocateIPParamsWithTimeout(timeout time.Duration) *AllocateIPParams

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

func (*AllocateIPParams) SetBody

func (o *AllocateIPParams) SetBody(body *models.V1IPAllocateRequest)

SetBody adds the body to the allocate IP params

func (*AllocateIPParams) SetContext

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

SetContext adds the context to the allocate IP params

func (*AllocateIPParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the allocate IP params

func (*AllocateIPParams) SetTimeout

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

SetTimeout adds the timeout to the allocate IP params

func (*AllocateIPParams) WithBody

WithBody adds the body to the allocate IP params

func (*AllocateIPParams) WithContext

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

WithContext adds the context to the allocate IP params

func (*AllocateIPParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the allocate IP params

func (*AllocateIPParams) WithTimeout

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

WithTimeout adds the timeout to the allocate IP params

func (*AllocateIPParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AllocateIPReader

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

AllocateIPReader is a Reader for the AllocateIP structure.

func (*AllocateIPReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AllocateSpecificIPCreated

type AllocateSpecificIPCreated struct {
	Payload *models.V1IPResponse
}

AllocateSpecificIPCreated handles this case with default header values.

Created

func NewAllocateSpecificIPCreated

func NewAllocateSpecificIPCreated() *AllocateSpecificIPCreated

NewAllocateSpecificIPCreated creates a AllocateSpecificIPCreated with default headers values

func (*AllocateSpecificIPCreated) Error

func (o *AllocateSpecificIPCreated) Error() string

type AllocateSpecificIPDefault

type AllocateSpecificIPDefault struct {
	Payload *models.HttperrorsHTTPErrorResponse
	// contains filtered or unexported fields
}

AllocateSpecificIPDefault handles this case with default header values.

Error

func NewAllocateSpecificIPDefault

func NewAllocateSpecificIPDefault(code int) *AllocateSpecificIPDefault

NewAllocateSpecificIPDefault creates a AllocateSpecificIPDefault with default headers values

func (*AllocateSpecificIPDefault) Code

func (o *AllocateSpecificIPDefault) Code() int

Code gets the status code for the allocate specific IP default response

func (*AllocateSpecificIPDefault) Error

func (o *AllocateSpecificIPDefault) Error() string

type AllocateSpecificIPParams

type AllocateSpecificIPParams struct {

	/*Body*/
	Body *models.V1IPAllocateRequest
	/*IP
	  ip to try to allocate

	*/
	IP string

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

AllocateSpecificIPParams contains all the parameters to send to the API endpoint for the allocate specific IP operation typically these are written to a http.Request

func NewAllocateSpecificIPParams

func NewAllocateSpecificIPParams() *AllocateSpecificIPParams

NewAllocateSpecificIPParams creates a new AllocateSpecificIPParams object with the default values initialized.

func NewAllocateSpecificIPParamsWithContext

func NewAllocateSpecificIPParamsWithContext(ctx context.Context) *AllocateSpecificIPParams

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

func NewAllocateSpecificIPParamsWithHTTPClient

func NewAllocateSpecificIPParamsWithHTTPClient(client *http.Client) *AllocateSpecificIPParams

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

func NewAllocateSpecificIPParamsWithTimeout

func NewAllocateSpecificIPParamsWithTimeout(timeout time.Duration) *AllocateSpecificIPParams

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

func (*AllocateSpecificIPParams) SetBody

SetBody adds the body to the allocate specific IP params

func (*AllocateSpecificIPParams) SetContext

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

SetContext adds the context to the allocate specific IP params

func (*AllocateSpecificIPParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the allocate specific IP params

func (*AllocateSpecificIPParams) SetIP

func (o *AllocateSpecificIPParams) SetIP(ip string)

SetIP adds the ip to the allocate specific IP params

func (*AllocateSpecificIPParams) SetTimeout

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

SetTimeout adds the timeout to the allocate specific IP params

func (*AllocateSpecificIPParams) WithBody

WithBody adds the body to the allocate specific IP params

func (*AllocateSpecificIPParams) WithContext

WithContext adds the context to the allocate specific IP params

func (*AllocateSpecificIPParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the allocate specific IP params

func (*AllocateSpecificIPParams) WithIP

WithIP adds the ip to the allocate specific IP params

func (*AllocateSpecificIPParams) WithTimeout

WithTimeout adds the timeout to the allocate specific IP params

func (*AllocateSpecificIPParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AllocateSpecificIPReader

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

AllocateSpecificIPReader is a Reader for the AllocateSpecificIP structure.

func (*AllocateSpecificIPReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for ip API

func New

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

New creates a new ip API client.

func (*Client) AllocateIP

func (a *Client) AllocateIP(params *AllocateIPParams, authInfo runtime.ClientAuthInfoWriter) (*AllocateIPCreated, error)

AllocateIP allocates an ip in the given network

func (*Client) AllocateSpecificIP

func (a *Client) AllocateSpecificIP(params *AllocateSpecificIPParams, authInfo runtime.ClientAuthInfoWriter) (*AllocateSpecificIPCreated, error)

AllocateSpecificIP allocates a specific ip in the given network

func (*Client) FindIP

func (a *Client) FindIP(params *FindIPParams, authInfo runtime.ClientAuthInfoWriter) (*FindIPOK, error)

FindIP gets ip by id

func (*Client) FindIps

func (a *Client) FindIps(params *FindIpsParams, authInfo runtime.ClientAuthInfoWriter) (*FindIpsOK, error)

FindIps gets all ips that match given properties

func (*Client) FreeIP

func (a *Client) FreeIP(params *FreeIPParams, authInfo runtime.ClientAuthInfoWriter) (*FreeIPOK, error)

FreeIP frees an ip

func (*Client) ListIps

func (a *Client) ListIps(params *ListIpsParams, authInfo runtime.ClientAuthInfoWriter) (*ListIpsOK, error)

ListIps gets all ips

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateIP

func (a *Client) UpdateIP(params *UpdateIPParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateIPOK, error)

UpdateIP updates an ip if the ip was changed since this one was read a conflict is returned

type FindIPDefault

type FindIPDefault struct {
	Payload *models.HttperrorsHTTPErrorResponse
	// contains filtered or unexported fields
}

FindIPDefault handles this case with default header values.

Error

func NewFindIPDefault

func NewFindIPDefault(code int) *FindIPDefault

NewFindIPDefault creates a FindIPDefault with default headers values

func (*FindIPDefault) Code

func (o *FindIPDefault) Code() int

Code gets the status code for the find IP default response

func (*FindIPDefault) Error

func (o *FindIPDefault) Error() string

type FindIPOK

type FindIPOK struct {
	Payload *models.V1IPResponse
}

FindIPOK handles this case with default header values.

OK

func NewFindIPOK

func NewFindIPOK() *FindIPOK

NewFindIPOK creates a FindIPOK with default headers values

func (*FindIPOK) Error

func (o *FindIPOK) Error() string

type FindIPParams

type FindIPParams struct {

	/*ID
	  identifier of the ip

	*/
	ID string

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

FindIPParams contains all the parameters to send to the API endpoint for the find IP operation typically these are written to a http.Request

func NewFindIPParams

func NewFindIPParams() *FindIPParams

NewFindIPParams creates a new FindIPParams object with the default values initialized.

func NewFindIPParamsWithContext

func NewFindIPParamsWithContext(ctx context.Context) *FindIPParams

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

func NewFindIPParamsWithHTTPClient

func NewFindIPParamsWithHTTPClient(client *http.Client) *FindIPParams

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

func NewFindIPParamsWithTimeout

func NewFindIPParamsWithTimeout(timeout time.Duration) *FindIPParams

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

func (*FindIPParams) SetContext

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

SetContext adds the context to the find IP params

func (*FindIPParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the find IP params

func (*FindIPParams) SetID

func (o *FindIPParams) SetID(id string)

SetID adds the id to the find IP params

func (*FindIPParams) SetTimeout

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

SetTimeout adds the timeout to the find IP params

func (*FindIPParams) WithContext

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

WithContext adds the context to the find IP params

func (*FindIPParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the find IP params

func (*FindIPParams) WithID

func (o *FindIPParams) WithID(id string) *FindIPParams

WithID adds the id to the find IP params

func (*FindIPParams) WithTimeout

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

WithTimeout adds the timeout to the find IP params

func (*FindIPParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type FindIPReader

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

FindIPReader is a Reader for the FindIP structure.

func (*FindIPReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type FindIpsDefault

type FindIpsDefault struct {
	Payload *models.HttperrorsHTTPErrorResponse
	// contains filtered or unexported fields
}

FindIpsDefault handles this case with default header values.

Error

func NewFindIpsDefault

func NewFindIpsDefault(code int) *FindIpsDefault

NewFindIpsDefault creates a FindIpsDefault with default headers values

func (*FindIpsDefault) Code

func (o *FindIpsDefault) Code() int

Code gets the status code for the find ips default response

func (*FindIpsDefault) Error

func (o *FindIpsDefault) Error() string

type FindIpsOK

type FindIpsOK struct {
	Payload []*models.V1IPResponse
}

FindIpsOK handles this case with default header values.

OK

func NewFindIpsOK

func NewFindIpsOK() *FindIpsOK

NewFindIpsOK creates a FindIpsOK with default headers values

func (*FindIpsOK) Error

func (o *FindIpsOK) Error() string

type FindIpsParams

type FindIpsParams struct {

	/*Body*/
	Body *models.V1IPFindRequest

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

FindIpsParams contains all the parameters to send to the API endpoint for the find ips operation typically these are written to a http.Request

func NewFindIpsParams

func NewFindIpsParams() *FindIpsParams

NewFindIpsParams creates a new FindIpsParams object with the default values initialized.

func NewFindIpsParamsWithContext

func NewFindIpsParamsWithContext(ctx context.Context) *FindIpsParams

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

func NewFindIpsParamsWithHTTPClient

func NewFindIpsParamsWithHTTPClient(client *http.Client) *FindIpsParams

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

func NewFindIpsParamsWithTimeout

func NewFindIpsParamsWithTimeout(timeout time.Duration) *FindIpsParams

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

func (*FindIpsParams) SetBody

func (o *FindIpsParams) SetBody(body *models.V1IPFindRequest)

SetBody adds the body to the find ips params

func (*FindIpsParams) SetContext

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

SetContext adds the context to the find ips params

func (*FindIpsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the find ips params

func (*FindIpsParams) SetTimeout

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

SetTimeout adds the timeout to the find ips params

func (*FindIpsParams) WithBody

func (o *FindIpsParams) WithBody(body *models.V1IPFindRequest) *FindIpsParams

WithBody adds the body to the find ips params

func (*FindIpsParams) WithContext

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

WithContext adds the context to the find ips params

func (*FindIpsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the find ips params

func (*FindIpsParams) WithTimeout

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

WithTimeout adds the timeout to the find ips params

func (*FindIpsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type FindIpsReader

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

FindIpsReader is a Reader for the FindIps structure.

func (*FindIpsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type FreeIPDefault

type FreeIPDefault struct {
	Payload *models.HttperrorsHTTPErrorResponse
	// contains filtered or unexported fields
}

FreeIPDefault handles this case with default header values.

Error

func NewFreeIPDefault

func NewFreeIPDefault(code int) *FreeIPDefault

NewFreeIPDefault creates a FreeIPDefault with default headers values

func (*FreeIPDefault) Code

func (o *FreeIPDefault) Code() int

Code gets the status code for the free IP default response

func (*FreeIPDefault) Error

func (o *FreeIPDefault) Error() string

type FreeIPOK

type FreeIPOK struct {
	Payload *models.V1IPResponse
}

FreeIPOK handles this case with default header values.

OK

func NewFreeIPOK

func NewFreeIPOK() *FreeIPOK

NewFreeIPOK creates a FreeIPOK with default headers values

func (*FreeIPOK) Error

func (o *FreeIPOK) Error() string

type FreeIPParams

type FreeIPParams struct {

	/*ID
	  identifier of the ip

	*/
	ID string

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

FreeIPParams contains all the parameters to send to the API endpoint for the free IP operation typically these are written to a http.Request

func NewFreeIPParams

func NewFreeIPParams() *FreeIPParams

NewFreeIPParams creates a new FreeIPParams object with the default values initialized.

func NewFreeIPParamsWithContext

func NewFreeIPParamsWithContext(ctx context.Context) *FreeIPParams

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

func NewFreeIPParamsWithHTTPClient

func NewFreeIPParamsWithHTTPClient(client *http.Client) *FreeIPParams

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

func NewFreeIPParamsWithTimeout

func NewFreeIPParamsWithTimeout(timeout time.Duration) *FreeIPParams

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

func (*FreeIPParams) SetContext

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

SetContext adds the context to the free IP params

func (*FreeIPParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the free IP params

func (*FreeIPParams) SetID

func (o *FreeIPParams) SetID(id string)

SetID adds the id to the free IP params

func (*FreeIPParams) SetTimeout

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

SetTimeout adds the timeout to the free IP params

func (*FreeIPParams) WithContext

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

WithContext adds the context to the free IP params

func (*FreeIPParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the free IP params

func (*FreeIPParams) WithID

func (o *FreeIPParams) WithID(id string) *FreeIPParams

WithID adds the id to the free IP params

func (*FreeIPParams) WithTimeout

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

WithTimeout adds the timeout to the free IP params

func (*FreeIPParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type FreeIPReader

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

FreeIPReader is a Reader for the FreeIP structure.

func (*FreeIPReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListIpsDefault

type ListIpsDefault struct {
	Payload *models.HttperrorsHTTPErrorResponse
	// contains filtered or unexported fields
}

ListIpsDefault handles this case with default header values.

Error

func NewListIpsDefault

func NewListIpsDefault(code int) *ListIpsDefault

NewListIpsDefault creates a ListIpsDefault with default headers values

func (*ListIpsDefault) Code

func (o *ListIpsDefault) Code() int

Code gets the status code for the list ips default response

func (*ListIpsDefault) Error

func (o *ListIpsDefault) Error() string

type ListIpsOK

type ListIpsOK struct {
	Payload []*models.V1IPResponse
}

ListIpsOK handles this case with default header values.

OK

func NewListIpsOK

func NewListIpsOK() *ListIpsOK

NewListIpsOK creates a ListIpsOK with default headers values

func (*ListIpsOK) Error

func (o *ListIpsOK) Error() string

type ListIpsParams

type ListIpsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListIpsParams contains all the parameters to send to the API endpoint for the list ips operation typically these are written to a http.Request

func NewListIpsParams

func NewListIpsParams() *ListIpsParams

NewListIpsParams creates a new ListIpsParams object with the default values initialized.

func NewListIpsParamsWithContext

func NewListIpsParamsWithContext(ctx context.Context) *ListIpsParams

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

func NewListIpsParamsWithHTTPClient

func NewListIpsParamsWithHTTPClient(client *http.Client) *ListIpsParams

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

func NewListIpsParamsWithTimeout

func NewListIpsParamsWithTimeout(timeout time.Duration) *ListIpsParams

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

func (*ListIpsParams) SetContext

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

SetContext adds the context to the list ips params

func (*ListIpsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list ips params

func (*ListIpsParams) SetTimeout

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

SetTimeout adds the timeout to the list ips params

func (*ListIpsParams) WithContext

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

WithContext adds the context to the list ips params

func (*ListIpsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list ips params

func (*ListIpsParams) WithTimeout

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

WithTimeout adds the timeout to the list ips params

func (*ListIpsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListIpsReader

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

ListIpsReader is a Reader for the ListIps structure.

func (*ListIpsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateIPConflict

type UpdateIPConflict struct {
	Payload *models.HttperrorsHTTPErrorResponse
}

UpdateIPConflict handles this case with default header values.

Conflict

func NewUpdateIPConflict

func NewUpdateIPConflict() *UpdateIPConflict

NewUpdateIPConflict creates a UpdateIPConflict with default headers values

func (*UpdateIPConflict) Error

func (o *UpdateIPConflict) Error() string

type UpdateIPDefault

type UpdateIPDefault struct {
	Payload *models.HttperrorsHTTPErrorResponse
	// contains filtered or unexported fields
}

UpdateIPDefault handles this case with default header values.

Error

func NewUpdateIPDefault

func NewUpdateIPDefault(code int) *UpdateIPDefault

NewUpdateIPDefault creates a UpdateIPDefault with default headers values

func (*UpdateIPDefault) Code

func (o *UpdateIPDefault) Code() int

Code gets the status code for the update IP default response

func (*UpdateIPDefault) Error

func (o *UpdateIPDefault) Error() string

type UpdateIPOK

type UpdateIPOK struct {
	Payload *models.V1IPResponse
}

UpdateIPOK handles this case with default header values.

OK

func NewUpdateIPOK

func NewUpdateIPOK() *UpdateIPOK

NewUpdateIPOK creates a UpdateIPOK with default headers values

func (*UpdateIPOK) Error

func (o *UpdateIPOK) Error() string

type UpdateIPParams

type UpdateIPParams struct {

	/*Body*/
	Body *models.V1IPUpdateRequest

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

UpdateIPParams contains all the parameters to send to the API endpoint for the update IP operation typically these are written to a http.Request

func NewUpdateIPParams

func NewUpdateIPParams() *UpdateIPParams

NewUpdateIPParams creates a new UpdateIPParams object with the default values initialized.

func NewUpdateIPParamsWithContext

func NewUpdateIPParamsWithContext(ctx context.Context) *UpdateIPParams

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

func NewUpdateIPParamsWithHTTPClient

func NewUpdateIPParamsWithHTTPClient(client *http.Client) *UpdateIPParams

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

func NewUpdateIPParamsWithTimeout

func NewUpdateIPParamsWithTimeout(timeout time.Duration) *UpdateIPParams

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

func (*UpdateIPParams) SetBody

func (o *UpdateIPParams) SetBody(body *models.V1IPUpdateRequest)

SetBody adds the body to the update IP params

func (*UpdateIPParams) SetContext

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

SetContext adds the context to the update IP params

func (*UpdateIPParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update IP params

func (*UpdateIPParams) SetTimeout

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

SetTimeout adds the timeout to the update IP params

func (*UpdateIPParams) WithBody

WithBody adds the body to the update IP params

func (*UpdateIPParams) WithContext

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

WithContext adds the context to the update IP params

func (*UpdateIPParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update IP params

func (*UpdateIPParams) WithTimeout

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

WithTimeout adds the timeout to the update IP params

func (*UpdateIPParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateIPReader

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

UpdateIPReader is a Reader for the UpdateIP structure.

func (*UpdateIPReader) ReadResponse

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