interfaces

package
v0.0.0-...-8fe3866 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulkCreateInterfacesBody

type BulkCreateInterfacesBody struct {

	// List of network interfaces
	// Required: true
	// Min Items: 1
	Items []*models.Interface `json:"items"`
}

BulkCreateInterfacesBody BulkCreateInterfacesRequest // // Parameters for the bulk create operation swagger:model BulkCreateInterfacesBody

func (*BulkCreateInterfacesBody) ContextValidate

func (o *BulkCreateInterfacesBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this bulk create interfaces body based on the context it is used

func (*BulkCreateInterfacesBody) MarshalBinary

func (o *BulkCreateInterfacesBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BulkCreateInterfacesBody) UnmarshalBinary

func (o *BulkCreateInterfacesBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BulkCreateInterfacesBody) Validate

func (o *BulkCreateInterfacesBody) Validate(formats strfmt.Registry) error

Validate validates this bulk create interfaces body

type BulkCreateInterfacesOK

type BulkCreateInterfacesOK struct {
	Payload *BulkCreateInterfacesOKBody
}
BulkCreateInterfacesOK describes a response with status code 200, with default header values.

Success

func NewBulkCreateInterfacesOK

func NewBulkCreateInterfacesOK() *BulkCreateInterfacesOK

NewBulkCreateInterfacesOK creates a BulkCreateInterfacesOK with default headers values

func (*BulkCreateInterfacesOK) Error

func (o *BulkCreateInterfacesOK) Error() string

func (*BulkCreateInterfacesOK) GetPayload

type BulkCreateInterfacesOKBody

type BulkCreateInterfacesOKBody struct {

	// List of network interfaces
	// Required: true
	// Min Items: 1
	Items []*models.Interface `json:"items"`
}

BulkCreateInterfacesOKBody BulkCreateInterfacesResponse swagger:model BulkCreateInterfacesOKBody

func (*BulkCreateInterfacesOKBody) ContextValidate

func (o *BulkCreateInterfacesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this bulk create interfaces o k body based on the context it is used

func (*BulkCreateInterfacesOKBody) MarshalBinary

func (o *BulkCreateInterfacesOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BulkCreateInterfacesOKBody) UnmarshalBinary

func (o *BulkCreateInterfacesOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BulkCreateInterfacesOKBody) Validate

func (o *BulkCreateInterfacesOKBody) Validate(formats strfmt.Registry) error

Validate validates this bulk create interfaces o k body

type BulkCreateInterfacesParams

type BulkCreateInterfacesParams struct {

	/* Create.

	   Bulk creation
	*/
	Create BulkCreateInterfacesBody

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

BulkCreateInterfacesParams contains all the parameters to send to the API endpoint

for the bulk create interfaces operation.

Typically these are written to a http.Request.

func NewBulkCreateInterfacesParams

func NewBulkCreateInterfacesParams() *BulkCreateInterfacesParams

NewBulkCreateInterfacesParams creates a new BulkCreateInterfacesParams 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 NewBulkCreateInterfacesParamsWithContext

func NewBulkCreateInterfacesParamsWithContext(ctx context.Context) *BulkCreateInterfacesParams

NewBulkCreateInterfacesParamsWithContext creates a new BulkCreateInterfacesParams object with the ability to set a context for a request.

func NewBulkCreateInterfacesParamsWithHTTPClient

func NewBulkCreateInterfacesParamsWithHTTPClient(client *http.Client) *BulkCreateInterfacesParams

NewBulkCreateInterfacesParamsWithHTTPClient creates a new BulkCreateInterfacesParams object with the ability to set a custom HTTPClient for a request.

func NewBulkCreateInterfacesParamsWithTimeout

func NewBulkCreateInterfacesParamsWithTimeout(timeout time.Duration) *BulkCreateInterfacesParams

NewBulkCreateInterfacesParamsWithTimeout creates a new BulkCreateInterfacesParams object with the ability to set a timeout on a request.

func (*BulkCreateInterfacesParams) SetContext

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

SetContext adds the context to the bulk create interfaces params

func (*BulkCreateInterfacesParams) SetCreate

SetCreate adds the create to the bulk create interfaces params

func (*BulkCreateInterfacesParams) SetDefaults

func (o *BulkCreateInterfacesParams) SetDefaults()

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

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

func (*BulkCreateInterfacesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the bulk create interfaces params

func (*BulkCreateInterfacesParams) SetTimeout

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

SetTimeout adds the timeout to the bulk create interfaces params

func (*BulkCreateInterfacesParams) WithContext

WithContext adds the context to the bulk create interfaces params

func (*BulkCreateInterfacesParams) WithCreate

WithCreate adds the create to the bulk create interfaces params

func (*BulkCreateInterfacesParams) WithDefaults

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

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

func (*BulkCreateInterfacesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the bulk create interfaces params

func (*BulkCreateInterfacesParams) WithTimeout

WithTimeout adds the timeout to the bulk create interfaces params

func (*BulkCreateInterfacesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BulkCreateInterfacesReader

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

BulkCreateInterfacesReader is a Reader for the BulkCreateInterfaces structure.

func (*BulkCreateInterfacesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BulkDeleteInterfacesBody

type BulkDeleteInterfacesBody struct {

	// List of interface identifiers
	// Required: true
	// Min Items: 1
	Ids []string `json:"ids"`
}

BulkDeleteInterfacesBody BulkDeleteInterfacesRequest // // Parameters for the bulk delete operation swagger:model BulkDeleteInterfacesBody

func (*BulkDeleteInterfacesBody) ContextValidate

func (o *BulkDeleteInterfacesBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this bulk delete interfaces body based on context it is used

func (*BulkDeleteInterfacesBody) MarshalBinary

func (o *BulkDeleteInterfacesBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BulkDeleteInterfacesBody) UnmarshalBinary

func (o *BulkDeleteInterfacesBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BulkDeleteInterfacesBody) Validate

func (o *BulkDeleteInterfacesBody) Validate(formats strfmt.Registry) error

Validate validates this bulk delete interfaces body

type BulkDeleteInterfacesNoContent

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

No Content

func NewBulkDeleteInterfacesNoContent

func NewBulkDeleteInterfacesNoContent() *BulkDeleteInterfacesNoContent

NewBulkDeleteInterfacesNoContent creates a BulkDeleteInterfacesNoContent with default headers values

func (*BulkDeleteInterfacesNoContent) Error

type BulkDeleteInterfacesParams

type BulkDeleteInterfacesParams struct {

	/* Delete.

	   Bulk delete
	*/
	Delete BulkDeleteInterfacesBody

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

BulkDeleteInterfacesParams contains all the parameters to send to the API endpoint

for the bulk delete interfaces operation.

Typically these are written to a http.Request.

func NewBulkDeleteInterfacesParams

func NewBulkDeleteInterfacesParams() *BulkDeleteInterfacesParams

NewBulkDeleteInterfacesParams creates a new BulkDeleteInterfacesParams 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 NewBulkDeleteInterfacesParamsWithContext

func NewBulkDeleteInterfacesParamsWithContext(ctx context.Context) *BulkDeleteInterfacesParams

NewBulkDeleteInterfacesParamsWithContext creates a new BulkDeleteInterfacesParams object with the ability to set a context for a request.

func NewBulkDeleteInterfacesParamsWithHTTPClient

func NewBulkDeleteInterfacesParamsWithHTTPClient(client *http.Client) *BulkDeleteInterfacesParams

NewBulkDeleteInterfacesParamsWithHTTPClient creates a new BulkDeleteInterfacesParams object with the ability to set a custom HTTPClient for a request.

func NewBulkDeleteInterfacesParamsWithTimeout

func NewBulkDeleteInterfacesParamsWithTimeout(timeout time.Duration) *BulkDeleteInterfacesParams

NewBulkDeleteInterfacesParamsWithTimeout creates a new BulkDeleteInterfacesParams object with the ability to set a timeout on a request.

func (*BulkDeleteInterfacesParams) SetContext

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

SetContext adds the context to the bulk delete interfaces params

func (*BulkDeleteInterfacesParams) SetDefaults

func (o *BulkDeleteInterfacesParams) SetDefaults()

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

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

func (*BulkDeleteInterfacesParams) SetDelete

SetDelete adds the delete to the bulk delete interfaces params

func (*BulkDeleteInterfacesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the bulk delete interfaces params

func (*BulkDeleteInterfacesParams) SetTimeout

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

SetTimeout adds the timeout to the bulk delete interfaces params

func (*BulkDeleteInterfacesParams) WithContext

WithContext adds the context to the bulk delete interfaces params

func (*BulkDeleteInterfacesParams) WithDefaults

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

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

func (*BulkDeleteInterfacesParams) WithDelete

WithDelete adds the delete to the bulk delete interfaces params

func (*BulkDeleteInterfacesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the bulk delete interfaces params

func (*BulkDeleteInterfacesParams) WithTimeout

WithTimeout adds the timeout to the bulk delete interfaces params

func (*BulkDeleteInterfacesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BulkDeleteInterfacesReader

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

BulkDeleteInterfacesReader is a Reader for the BulkDeleteInterfaces structure.

func (*BulkDeleteInterfacesReader) ReadResponse

func (o *BulkDeleteInterfacesReader) 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 interfaces API

func (*Client) BulkCreateInterfaces

func (a *Client) BulkCreateInterfaces(params *BulkCreateInterfacesParams, opts ...ClientOption) (*BulkCreateInterfacesOK, error)

BulkCreateInterfaces bulks create network interfaces

Create multiple network interfaces. Requests are processed in an all-or-nothing manner, i.e. a single network interface creation failure causes all network interface creations for this request to fail.

func (*Client) BulkDeleteInterfaces

func (a *Client) BulkDeleteInterfaces(params *BulkDeleteInterfacesParams, opts ...ClientOption) (*BulkDeleteInterfacesNoContent, error)

BulkDeleteInterfaces bulks delete network interfaces

Best-effort delete multiple network interfaces. Non-existent interface ids do not cause errors. Idempotent.

func (*Client) CreateInterface

func (a *Client) CreateInterface(params *CreateInterfaceParams, opts ...ClientOption) (*CreateInterfaceCreated, error)

CreateInterface creates a network interface

Create a new network interface.

func (*Client) DeleteInterface

func (a *Client) DeleteInterface(params *DeleteInterfaceParams, opts ...ClientOption) (*DeleteInterfaceNoContent, error)

DeleteInterface deletes a network interface

Deletes an existing interface. Idempotent.

func (*Client) GetInterface

func (a *Client) GetInterface(params *GetInterfaceParams, opts ...ClientOption) (*GetInterfaceOK, error)

GetInterface gets a network interface

Returns a network interface, by id.

func (*Client) ListInterfaces

func (a *Client) ListInterfaces(params *ListInterfacesParams, opts ...ClientOption) (*ListInterfacesOK, error)

ListInterfaces lists network interfaces

The `interfaces` endpoint returns all network interfaces that are available for use as stack entry/exit points.

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 {
	BulkCreateInterfaces(params *BulkCreateInterfacesParams, opts ...ClientOption) (*BulkCreateInterfacesOK, error)

	BulkDeleteInterfaces(params *BulkDeleteInterfacesParams, opts ...ClientOption) (*BulkDeleteInterfacesNoContent, error)

	CreateInterface(params *CreateInterfaceParams, opts ...ClientOption) (*CreateInterfaceCreated, error)

	DeleteInterface(params *DeleteInterfaceParams, opts ...ClientOption) (*DeleteInterfaceNoContent, error)

	GetInterface(params *GetInterfaceParams, opts ...ClientOption) (*GetInterfaceOK, error)

	ListInterfaces(params *ListInterfacesParams, opts ...ClientOption) (*ListInterfacesOK, 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 interfaces API client.

type CreateInterfaceCreated

type CreateInterfaceCreated struct {
	Payload *models.Interface
}
CreateInterfaceCreated describes a response with status code 201, with default header values.

Success

func NewCreateInterfaceCreated

func NewCreateInterfaceCreated() *CreateInterfaceCreated

NewCreateInterfaceCreated creates a CreateInterfaceCreated with default headers values

func (*CreateInterfaceCreated) Error

func (o *CreateInterfaceCreated) Error() string

func (*CreateInterfaceCreated) GetPayload

func (o *CreateInterfaceCreated) GetPayload() *models.Interface

type CreateInterfaceParams

type CreateInterfaceParams struct {

	/* Interface.

	   New network interface
	*/
	Interface *models.Interface

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

CreateInterfaceParams contains all the parameters to send to the API endpoint

for the create interface operation.

Typically these are written to a http.Request.

func NewCreateInterfaceParams

func NewCreateInterfaceParams() *CreateInterfaceParams

NewCreateInterfaceParams creates a new CreateInterfaceParams 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 NewCreateInterfaceParamsWithContext

func NewCreateInterfaceParamsWithContext(ctx context.Context) *CreateInterfaceParams

NewCreateInterfaceParamsWithContext creates a new CreateInterfaceParams object with the ability to set a context for a request.

func NewCreateInterfaceParamsWithHTTPClient

func NewCreateInterfaceParamsWithHTTPClient(client *http.Client) *CreateInterfaceParams

NewCreateInterfaceParamsWithHTTPClient creates a new CreateInterfaceParams object with the ability to set a custom HTTPClient for a request.

func NewCreateInterfaceParamsWithTimeout

func NewCreateInterfaceParamsWithTimeout(timeout time.Duration) *CreateInterfaceParams

NewCreateInterfaceParamsWithTimeout creates a new CreateInterfaceParams object with the ability to set a timeout on a request.

func (*CreateInterfaceParams) SetContext

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

SetContext adds the context to the create interface params

func (*CreateInterfaceParams) SetDefaults

func (o *CreateInterfaceParams) SetDefaults()

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

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

func (*CreateInterfaceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create interface params

func (*CreateInterfaceParams) SetInterface

func (o *CreateInterfaceParams) SetInterface(interfaceVar *models.Interface)

SetInterface adds the interface to the create interface params

func (*CreateInterfaceParams) SetTimeout

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

SetTimeout adds the timeout to the create interface params

func (*CreateInterfaceParams) WithContext

WithContext adds the context to the create interface params

func (*CreateInterfaceParams) WithDefaults

func (o *CreateInterfaceParams) WithDefaults() *CreateInterfaceParams

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

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

func (*CreateInterfaceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create interface params

func (*CreateInterfaceParams) WithInterface

func (o *CreateInterfaceParams) WithInterface(interfaceVar *models.Interface) *CreateInterfaceParams

WithInterface adds the interfaceVar to the create interface params

func (*CreateInterfaceParams) WithTimeout

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

WithTimeout adds the timeout to the create interface params

func (*CreateInterfaceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateInterfaceReader

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

CreateInterfaceReader is a Reader for the CreateInterface structure.

func (*CreateInterfaceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteInterfaceNoContent

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

No Content

func NewDeleteInterfaceNoContent

func NewDeleteInterfaceNoContent() *DeleteInterfaceNoContent

NewDeleteInterfaceNoContent creates a DeleteInterfaceNoContent with default headers values

func (*DeleteInterfaceNoContent) Error

func (o *DeleteInterfaceNoContent) Error() string

type DeleteInterfaceParams

type DeleteInterfaceParams struct {

	/* ID.

	   Unique resource identifier

	   Format: string
	*/
	ID string

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

DeleteInterfaceParams contains all the parameters to send to the API endpoint

for the delete interface operation.

Typically these are written to a http.Request.

func NewDeleteInterfaceParams

func NewDeleteInterfaceParams() *DeleteInterfaceParams

NewDeleteInterfaceParams creates a new DeleteInterfaceParams 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 NewDeleteInterfaceParamsWithContext

func NewDeleteInterfaceParamsWithContext(ctx context.Context) *DeleteInterfaceParams

NewDeleteInterfaceParamsWithContext creates a new DeleteInterfaceParams object with the ability to set a context for a request.

func NewDeleteInterfaceParamsWithHTTPClient

func NewDeleteInterfaceParamsWithHTTPClient(client *http.Client) *DeleteInterfaceParams

NewDeleteInterfaceParamsWithHTTPClient creates a new DeleteInterfaceParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteInterfaceParamsWithTimeout

func NewDeleteInterfaceParamsWithTimeout(timeout time.Duration) *DeleteInterfaceParams

NewDeleteInterfaceParamsWithTimeout creates a new DeleteInterfaceParams object with the ability to set a timeout on a request.

func (*DeleteInterfaceParams) SetContext

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

SetContext adds the context to the delete interface params

func (*DeleteInterfaceParams) SetDefaults

func (o *DeleteInterfaceParams) SetDefaults()

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

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

func (*DeleteInterfaceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete interface params

func (*DeleteInterfaceParams) SetID

func (o *DeleteInterfaceParams) SetID(id string)

SetID adds the id to the delete interface params

func (*DeleteInterfaceParams) SetTimeout

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

SetTimeout adds the timeout to the delete interface params

func (*DeleteInterfaceParams) WithContext

WithContext adds the context to the delete interface params

func (*DeleteInterfaceParams) WithDefaults

func (o *DeleteInterfaceParams) WithDefaults() *DeleteInterfaceParams

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

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

func (*DeleteInterfaceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete interface params

func (*DeleteInterfaceParams) WithID

WithID adds the id to the delete interface params

func (*DeleteInterfaceParams) WithTimeout

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

WithTimeout adds the timeout to the delete interface params

func (*DeleteInterfaceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteInterfaceReader

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

DeleteInterfaceReader is a Reader for the DeleteInterface structure.

func (*DeleteInterfaceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetInterfaceOK

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

Success

func NewGetInterfaceOK

func NewGetInterfaceOK() *GetInterfaceOK

NewGetInterfaceOK creates a GetInterfaceOK with default headers values

func (*GetInterfaceOK) Error

func (o *GetInterfaceOK) Error() string

func (*GetInterfaceOK) GetPayload

func (o *GetInterfaceOK) GetPayload() *models.Interface

type GetInterfaceParams

type GetInterfaceParams struct {

	/* ID.

	   Unique resource identifier

	   Format: string
	*/
	ID string

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

GetInterfaceParams contains all the parameters to send to the API endpoint

for the get interface operation.

Typically these are written to a http.Request.

func NewGetInterfaceParams

func NewGetInterfaceParams() *GetInterfaceParams

NewGetInterfaceParams creates a new GetInterfaceParams 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 NewGetInterfaceParamsWithContext

func NewGetInterfaceParamsWithContext(ctx context.Context) *GetInterfaceParams

NewGetInterfaceParamsWithContext creates a new GetInterfaceParams object with the ability to set a context for a request.

func NewGetInterfaceParamsWithHTTPClient

func NewGetInterfaceParamsWithHTTPClient(client *http.Client) *GetInterfaceParams

NewGetInterfaceParamsWithHTTPClient creates a new GetInterfaceParams object with the ability to set a custom HTTPClient for a request.

func NewGetInterfaceParamsWithTimeout

func NewGetInterfaceParamsWithTimeout(timeout time.Duration) *GetInterfaceParams

NewGetInterfaceParamsWithTimeout creates a new GetInterfaceParams object with the ability to set a timeout on a request.

func (*GetInterfaceParams) SetContext

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

SetContext adds the context to the get interface params

func (*GetInterfaceParams) SetDefaults

func (o *GetInterfaceParams) SetDefaults()

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

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

func (*GetInterfaceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get interface params

func (*GetInterfaceParams) SetID

func (o *GetInterfaceParams) SetID(id string)

SetID adds the id to the get interface params

func (*GetInterfaceParams) SetTimeout

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

SetTimeout adds the timeout to the get interface params

func (*GetInterfaceParams) WithContext

WithContext adds the context to the get interface params

func (*GetInterfaceParams) WithDefaults

func (o *GetInterfaceParams) WithDefaults() *GetInterfaceParams

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

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

func (*GetInterfaceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get interface params

func (*GetInterfaceParams) WithID

WithID adds the id to the get interface params

func (*GetInterfaceParams) WithTimeout

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

WithTimeout adds the timeout to the get interface params

func (*GetInterfaceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetInterfaceReader

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

GetInterfaceReader is a Reader for the GetInterface structure.

func (*GetInterfaceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListInterfacesOK

type ListInterfacesOK struct {
	Payload []*models.Interface
}
ListInterfacesOK describes a response with status code 200, with default header values.

Success

func NewListInterfacesOK

func NewListInterfacesOK() *ListInterfacesOK

NewListInterfacesOK creates a ListInterfacesOK with default headers values

func (*ListInterfacesOK) Error

func (o *ListInterfacesOK) Error() string

func (*ListInterfacesOK) GetPayload

func (o *ListInterfacesOK) GetPayload() []*models.Interface

type ListInterfacesParams

type ListInterfacesParams struct {

	/* EthMacAddress.

	   Filter by Ethernet MAC address
	*/
	EthMacAddress *string

	/* IPV4Address.

	   Filter by IPv4 address
	*/
	IPV4Address *string

	/* IPV6Address.

	   Filter by IPv6 address
	*/
	IPV6Address *string

	/* PortID.

	   Filter by port id
	*/
	PortID *string

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

ListInterfacesParams contains all the parameters to send to the API endpoint

for the list interfaces operation.

Typically these are written to a http.Request.

func NewListInterfacesParams

func NewListInterfacesParams() *ListInterfacesParams

NewListInterfacesParams creates a new ListInterfacesParams 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 NewListInterfacesParamsWithContext

func NewListInterfacesParamsWithContext(ctx context.Context) *ListInterfacesParams

NewListInterfacesParamsWithContext creates a new ListInterfacesParams object with the ability to set a context for a request.

func NewListInterfacesParamsWithHTTPClient

func NewListInterfacesParamsWithHTTPClient(client *http.Client) *ListInterfacesParams

NewListInterfacesParamsWithHTTPClient creates a new ListInterfacesParams object with the ability to set a custom HTTPClient for a request.

func NewListInterfacesParamsWithTimeout

func NewListInterfacesParamsWithTimeout(timeout time.Duration) *ListInterfacesParams

NewListInterfacesParamsWithTimeout creates a new ListInterfacesParams object with the ability to set a timeout on a request.

func (*ListInterfacesParams) SetContext

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

SetContext adds the context to the list interfaces params

func (*ListInterfacesParams) SetDefaults

func (o *ListInterfacesParams) SetDefaults()

SetDefaults hydrates default values in the list interfaces params (not the query body).

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

func (*ListInterfacesParams) SetEthMacAddress

func (o *ListInterfacesParams) SetEthMacAddress(ethMacAddress *string)

SetEthMacAddress adds the ethMacAddress to the list interfaces params

func (*ListInterfacesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list interfaces params

func (*ListInterfacesParams) SetIPV4Address

func (o *ListInterfacesParams) SetIPV4Address(iPV4Address *string)

SetIPV4Address adds the ipv4Address to the list interfaces params

func (*ListInterfacesParams) SetIPV6Address

func (o *ListInterfacesParams) SetIPV6Address(iPV6Address *string)

SetIPV6Address adds the ipv6Address to the list interfaces params

func (*ListInterfacesParams) SetPortID

func (o *ListInterfacesParams) SetPortID(portID *string)

SetPortID adds the portId to the list interfaces params

func (*ListInterfacesParams) SetTimeout

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

SetTimeout adds the timeout to the list interfaces params

func (*ListInterfacesParams) WithContext

WithContext adds the context to the list interfaces params

func (*ListInterfacesParams) WithDefaults

func (o *ListInterfacesParams) WithDefaults() *ListInterfacesParams

WithDefaults hydrates default values in the list interfaces params (not the query body).

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

func (*ListInterfacesParams) WithEthMacAddress

func (o *ListInterfacesParams) WithEthMacAddress(ethMacAddress *string) *ListInterfacesParams

WithEthMacAddress adds the ethMacAddress to the list interfaces params

func (*ListInterfacesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list interfaces params

func (*ListInterfacesParams) WithIPV4Address

func (o *ListInterfacesParams) WithIPV4Address(iPV4Address *string) *ListInterfacesParams

WithIPV4Address adds the iPV4Address to the list interfaces params

func (*ListInterfacesParams) WithIPV6Address

func (o *ListInterfacesParams) WithIPV6Address(iPV6Address *string) *ListInterfacesParams

WithIPV6Address adds the iPV6Address to the list interfaces params

func (*ListInterfacesParams) WithPortID

func (o *ListInterfacesParams) WithPortID(portID *string) *ListInterfacesParams

WithPortID adds the portID to the list interfaces params

func (*ListInterfacesParams) WithTimeout

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

WithTimeout adds the timeout to the list interfaces params

func (*ListInterfacesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListInterfacesReader

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

ListInterfacesReader is a Reader for the ListInterfaces structure.

func (*ListInterfacesReader) ReadResponse

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