ip

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocateIPCreated added in v0.8.1

type AllocateIPCreated struct {
	Payload *models.ModelsV1IPResponse
}

AllocateIPCreated handles this case with default header values.

Created

func NewAllocateIPCreated added in v0.8.1

func NewAllocateIPCreated() *AllocateIPCreated

NewAllocateIPCreated creates a AllocateIPCreated with default headers values

func (*AllocateIPCreated) Error added in v0.8.1

func (o *AllocateIPCreated) Error() string

func (*AllocateIPCreated) GetPayload added in v0.9.1

func (o *AllocateIPCreated) GetPayload() *models.ModelsV1IPResponse

type AllocateIPDefault added in v0.8.1

type AllocateIPDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}

AllocateIPDefault handles this case with default header values.

Error

func NewAllocateIPDefault added in v0.8.1

func NewAllocateIPDefault(code int) *AllocateIPDefault

NewAllocateIPDefault creates a AllocateIPDefault with default headers values

func (*AllocateIPDefault) Code added in v0.8.1

func (o *AllocateIPDefault) Code() int

Code gets the status code for the allocate IP default response

func (*AllocateIPDefault) Error added in v0.8.1

func (o *AllocateIPDefault) Error() string

func (*AllocateIPDefault) GetPayload added in v0.9.1

type AllocateIPParams added in v0.8.1

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 added in v0.8.1

func NewAllocateIPParams() *AllocateIPParams

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

func NewAllocateIPParamsWithContext added in v0.8.1

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 added in v0.8.1

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 added in v0.8.1

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 added in v0.8.1

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

SetBody adds the body to the allocate IP params

func (*AllocateIPParams) SetContext added in v0.8.1

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

SetContext adds the context to the allocate IP params

func (*AllocateIPParams) SetHTTPClient added in v0.8.1

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

SetHTTPClient adds the HTTPClient to the allocate IP params

func (*AllocateIPParams) SetTimeout added in v0.8.1

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

SetTimeout adds the timeout to the allocate IP params

func (*AllocateIPParams) WithBody added in v0.8.1

WithBody adds the body to the allocate IP params

func (*AllocateIPParams) WithContext added in v0.8.1

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

WithContext adds the context to the allocate IP params

func (*AllocateIPParams) WithHTTPClient added in v0.8.1

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

WithHTTPClient adds the HTTPClient to the allocate IP params

func (*AllocateIPParams) WithTimeout added in v0.8.1

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

WithTimeout adds the timeout to the allocate IP params

func (*AllocateIPParams) WriteToRequest added in v0.8.1

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

WriteToRequest writes these params to a swagger request

type AllocateIPReader added in v0.8.1

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

AllocateIPReader is a Reader for the AllocateIP structure.

func (*AllocateIPReader) ReadResponse added in v0.8.1

func (o *AllocateIPReader) 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 (*Client) AllocateIP added in v0.8.1

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

AllocateIP allocates an ip in a given network

func (*Client) FindIPs added in v0.9.1

func (a *Client) FindIPs(params *FindIPsParams, authInfo runtime.ClientAuthInfoWriter) (*FindIPsOK, error)

FindIPs finds ips by multiple criteria

func (*Client) FreeIP

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

FreeIP frees an ip and returns the freed entity

func (*Client) GetIP

func (a *Client) GetIP(params *GetIPParams, authInfo runtime.ClientAuthInfoWriter) (*GetIPOK, error)

GetIP gets ip by address

func (*Client) ListIPs added in v0.9.1

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

type ClientService added in v0.9.1

type ClientService interface {
	AllocateIP(params *AllocateIPParams, authInfo runtime.ClientAuthInfoWriter) (*AllocateIPCreated, error)

	FindIPs(params *FindIPsParams, authInfo runtime.ClientAuthInfoWriter) (*FindIPsOK, error)

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

	GetIP(params *GetIPParams, authInfo runtime.ClientAuthInfoWriter) (*GetIPOK, error)

	ListIPs(params *ListIPsParams, authInfo runtime.ClientAuthInfoWriter) (*ListIPsOK, error)

	UpdateIP(params *UpdateIPParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateIPOK, 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 ip API client.

type FindIPsDefault added in v0.9.1

type FindIPsDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}

FindIPsDefault handles this case with default header values.

Error

func NewFindIPsDefault added in v0.9.1

func NewFindIPsDefault(code int) *FindIPsDefault

NewFindIPsDefault creates a FindIPsDefault with default headers values

func (*FindIPsDefault) Code added in v0.9.1

func (o *FindIPsDefault) Code() int

Code gets the status code for the find i ps default response

func (*FindIPsDefault) Error added in v0.9.1

func (o *FindIPsDefault) Error() string

func (*FindIPsDefault) GetPayload added in v0.9.1

func (o *FindIPsDefault) GetPayload() *httperrors.HTTPErrorResponse

type FindIPsOK added in v0.9.1

type FindIPsOK struct {
	Payload []*models.ModelsV1IPResponse
}

FindIPsOK handles this case with default header values.

OK

func NewFindIPsOK added in v0.9.1

func NewFindIPsOK() *FindIPsOK

NewFindIPsOK creates a FindIPsOK with default headers values

func (*FindIPsOK) Error added in v0.9.1

func (o *FindIPsOK) Error() string

func (*FindIPsOK) GetPayload added in v0.9.1

func (o *FindIPsOK) GetPayload() []*models.ModelsV1IPResponse

type FindIPsParams added in v0.9.1

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 i ps operation typically these are written to a http.Request

func NewFindIPsParams added in v0.9.1

func NewFindIPsParams() *FindIPsParams

NewFindIPsParams creates a new FindIPsParams object with the default values initialized.

func NewFindIPsParamsWithContext added in v0.9.1

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 added in v0.9.1

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 added in v0.9.1

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 added in v0.9.1

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

SetBody adds the body to the find i ps params

func (*FindIPsParams) SetContext added in v0.9.1

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

SetContext adds the context to the find i ps params

func (*FindIPsParams) SetHTTPClient added in v0.9.1

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

SetHTTPClient adds the HTTPClient to the find i ps params

func (*FindIPsParams) SetTimeout added in v0.9.1

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

SetTimeout adds the timeout to the find i ps params

func (*FindIPsParams) WithBody added in v0.9.1

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

WithBody adds the body to the find i ps params

func (*FindIPsParams) WithContext added in v0.9.1

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

WithContext adds the context to the find i ps params

func (*FindIPsParams) WithHTTPClient added in v0.9.1

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

WithHTTPClient adds the HTTPClient to the find i ps params

func (*FindIPsParams) WithTimeout added in v0.9.1

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

WithTimeout adds the timeout to the find i ps params

func (*FindIPsParams) WriteToRequest added in v0.9.1

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

WriteToRequest writes these params to a swagger request

type FindIPsReader added in v0.9.1

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

FindIPsReader is a Reader for the FindIPs structure.

func (*FindIPsReader) ReadResponse added in v0.9.1

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 *httperrors.HTTPErrorResponse
	// 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

func (*FreeIPDefault) GetPayload added in v0.9.1

func (o *FreeIPDefault) GetPayload() *httperrors.HTTPErrorResponse

type FreeIPOK

type FreeIPOK struct {
	Payload *models.ModelsV1IPResponse
}

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

func (*FreeIPOK) GetPayload added in v0.9.1

func (o *FreeIPOK) GetPayload() *models.ModelsV1IPResponse

type FreeIPParams

type FreeIPParams struct {

	/*IP
	  address of the ip

	*/
	IP 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) SetIP

func (o *FreeIPParams) SetIP(ip string)

SetIP adds the ip 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) WithIP

func (o *FreeIPParams) WithIP(ip string) *FreeIPParams

WithIP adds the ip 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 GetIPDefault

type GetIPDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}

GetIPDefault handles this case with default header values.

Error

func NewGetIPDefault

func NewGetIPDefault(code int) *GetIPDefault

NewGetIPDefault creates a GetIPDefault with default headers values

func (*GetIPDefault) Code

func (o *GetIPDefault) Code() int

Code gets the status code for the get IP default response

func (*GetIPDefault) Error

func (o *GetIPDefault) Error() string

func (*GetIPDefault) GetPayload added in v0.9.1

func (o *GetIPDefault) GetPayload() *httperrors.HTTPErrorResponse

type GetIPOK

type GetIPOK struct {
	Payload *models.ModelsV1IPResponse
}

GetIPOK handles this case with default header values.

OK

func NewGetIPOK

func NewGetIPOK() *GetIPOK

NewGetIPOK creates a GetIPOK with default headers values

func (*GetIPOK) Error

func (o *GetIPOK) Error() string

func (*GetIPOK) GetPayload added in v0.9.1

func (o *GetIPOK) GetPayload() *models.ModelsV1IPResponse

type GetIPParams

type GetIPParams struct {

	/*IP
	  address of the ip

	*/
	IP string

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

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

func NewGetIPParams

func NewGetIPParams() *GetIPParams

NewGetIPParams creates a new GetIPParams object with the default values initialized.

func NewGetIPParamsWithContext

func NewGetIPParamsWithContext(ctx context.Context) *GetIPParams

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

func NewGetIPParamsWithHTTPClient

func NewGetIPParamsWithHTTPClient(client *http.Client) *GetIPParams

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

func NewGetIPParamsWithTimeout

func NewGetIPParamsWithTimeout(timeout time.Duration) *GetIPParams

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

func (*GetIPParams) SetContext

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

SetContext adds the context to the get IP params

func (*GetIPParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get IP params

func (*GetIPParams) SetIP

func (o *GetIPParams) SetIP(ip string)

SetIP adds the ip to the get IP params

func (*GetIPParams) SetTimeout

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

SetTimeout adds the timeout to the get IP params

func (*GetIPParams) WithContext

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

WithContext adds the context to the get IP params

func (*GetIPParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get IP params

func (*GetIPParams) WithIP

func (o *GetIPParams) WithIP(ip string) *GetIPParams

WithIP adds the ip to the get IP params

func (*GetIPParams) WithTimeout

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

WithTimeout adds the timeout to the get IP params

func (*GetIPParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetIPReader

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

GetIPReader is a Reader for the GetIP structure.

func (*GetIPReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListIPsDefault added in v0.9.1

type ListIPsDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}

ListIPsDefault handles this case with default header values.

Error

func NewListIPsDefault added in v0.9.1

func NewListIPsDefault(code int) *ListIPsDefault

NewListIPsDefault creates a ListIPsDefault with default headers values

func (*ListIPsDefault) Code added in v0.9.1

func (o *ListIPsDefault) Code() int

Code gets the status code for the list i ps default response

func (*ListIPsDefault) Error added in v0.9.1

func (o *ListIPsDefault) Error() string

func (*ListIPsDefault) GetPayload added in v0.9.1

func (o *ListIPsDefault) GetPayload() *httperrors.HTTPErrorResponse

type ListIPsOK added in v0.9.1

type ListIPsOK struct {
	Payload []*models.ModelsV1IPResponse
}

ListIPsOK handles this case with default header values.

OK

func NewListIPsOK added in v0.9.1

func NewListIPsOK() *ListIPsOK

NewListIPsOK creates a ListIPsOK with default headers values

func (*ListIPsOK) Error added in v0.9.1

func (o *ListIPsOK) Error() string

func (*ListIPsOK) GetPayload added in v0.9.1

func (o *ListIPsOK) GetPayload() []*models.ModelsV1IPResponse

type ListIPsParams added in v0.9.1

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 i ps operation typically these are written to a http.Request

func NewListIPsParams added in v0.9.1

func NewListIPsParams() *ListIPsParams

NewListIPsParams creates a new ListIPsParams object with the default values initialized.

func NewListIPsParamsWithContext added in v0.9.1

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 added in v0.9.1

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 added in v0.9.1

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 added in v0.9.1

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

SetContext adds the context to the list i ps params

func (*ListIPsParams) SetHTTPClient added in v0.9.1

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

SetHTTPClient adds the HTTPClient to the list i ps params

func (*ListIPsParams) SetTimeout added in v0.9.1

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

SetTimeout adds the timeout to the list i ps params

func (*ListIPsParams) WithContext added in v0.9.1

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

WithContext adds the context to the list i ps params

func (*ListIPsParams) WithHTTPClient added in v0.9.1

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

WithHTTPClient adds the HTTPClient to the list i ps params

func (*ListIPsParams) WithTimeout added in v0.9.1

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

WithTimeout adds the timeout to the list i ps params

func (*ListIPsParams) WriteToRequest added in v0.9.1

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

WriteToRequest writes these params to a swagger request

type ListIPsReader added in v0.9.1

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

ListIPsReader is a Reader for the ListIPs structure.

func (*ListIPsReader) ReadResponse added in v0.9.1

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

ReadResponse reads a server response into the received o.

type UpdateIPDefault

type UpdateIPDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// 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

func (*UpdateIPDefault) GetPayload added in v0.9.1

func (o *UpdateIPDefault) GetPayload() *httperrors.HTTPErrorResponse

type UpdateIPOK

type UpdateIPOK struct {
	Payload *models.ModelsV1IPResponse
}

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

func (*UpdateIPOK) GetPayload added in v0.9.1

func (o *UpdateIPOK) GetPayload() *models.ModelsV1IPResponse

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