Documentation ¶
Index ¶
- type BulkCreateInterfacesBody
- func (o *BulkCreateInterfacesBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *BulkCreateInterfacesBody) MarshalBinary() ([]byte, error)
- func (o *BulkCreateInterfacesBody) UnmarshalBinary(b []byte) error
- func (o *BulkCreateInterfacesBody) Validate(formats strfmt.Registry) error
- type BulkCreateInterfacesOK
- type BulkCreateInterfacesOKBody
- func (o *BulkCreateInterfacesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *BulkCreateInterfacesOKBody) MarshalBinary() ([]byte, error)
- func (o *BulkCreateInterfacesOKBody) UnmarshalBinary(b []byte) error
- func (o *BulkCreateInterfacesOKBody) Validate(formats strfmt.Registry) error
- type BulkCreateInterfacesParams
- func NewBulkCreateInterfacesParams() *BulkCreateInterfacesParams
- func NewBulkCreateInterfacesParamsWithContext(ctx context.Context) *BulkCreateInterfacesParams
- func NewBulkCreateInterfacesParamsWithHTTPClient(client *http.Client) *BulkCreateInterfacesParams
- func NewBulkCreateInterfacesParamsWithTimeout(timeout time.Duration) *BulkCreateInterfacesParams
- func (o *BulkCreateInterfacesParams) SetContext(ctx context.Context)
- func (o *BulkCreateInterfacesParams) SetCreate(create BulkCreateInterfacesBody)
- func (o *BulkCreateInterfacesParams) SetDefaults()
- func (o *BulkCreateInterfacesParams) SetHTTPClient(client *http.Client)
- func (o *BulkCreateInterfacesParams) SetTimeout(timeout time.Duration)
- func (o *BulkCreateInterfacesParams) WithContext(ctx context.Context) *BulkCreateInterfacesParams
- func (o *BulkCreateInterfacesParams) WithCreate(create BulkCreateInterfacesBody) *BulkCreateInterfacesParams
- func (o *BulkCreateInterfacesParams) WithDefaults() *BulkCreateInterfacesParams
- func (o *BulkCreateInterfacesParams) WithHTTPClient(client *http.Client) *BulkCreateInterfacesParams
- func (o *BulkCreateInterfacesParams) WithTimeout(timeout time.Duration) *BulkCreateInterfacesParams
- func (o *BulkCreateInterfacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BulkCreateInterfacesReader
- type BulkDeleteInterfacesBody
- func (o *BulkDeleteInterfacesBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *BulkDeleteInterfacesBody) MarshalBinary() ([]byte, error)
- func (o *BulkDeleteInterfacesBody) UnmarshalBinary(b []byte) error
- func (o *BulkDeleteInterfacesBody) Validate(formats strfmt.Registry) error
- type BulkDeleteInterfacesNoContent
- type BulkDeleteInterfacesParams
- func NewBulkDeleteInterfacesParams() *BulkDeleteInterfacesParams
- func NewBulkDeleteInterfacesParamsWithContext(ctx context.Context) *BulkDeleteInterfacesParams
- func NewBulkDeleteInterfacesParamsWithHTTPClient(client *http.Client) *BulkDeleteInterfacesParams
- func NewBulkDeleteInterfacesParamsWithTimeout(timeout time.Duration) *BulkDeleteInterfacesParams
- func (o *BulkDeleteInterfacesParams) SetContext(ctx context.Context)
- func (o *BulkDeleteInterfacesParams) SetDefaults()
- func (o *BulkDeleteInterfacesParams) SetDelete(delete BulkDeleteInterfacesBody)
- func (o *BulkDeleteInterfacesParams) SetHTTPClient(client *http.Client)
- func (o *BulkDeleteInterfacesParams) SetTimeout(timeout time.Duration)
- func (o *BulkDeleteInterfacesParams) WithContext(ctx context.Context) *BulkDeleteInterfacesParams
- func (o *BulkDeleteInterfacesParams) WithDefaults() *BulkDeleteInterfacesParams
- func (o *BulkDeleteInterfacesParams) WithDelete(delete BulkDeleteInterfacesBody) *BulkDeleteInterfacesParams
- func (o *BulkDeleteInterfacesParams) WithHTTPClient(client *http.Client) *BulkDeleteInterfacesParams
- func (o *BulkDeleteInterfacesParams) WithTimeout(timeout time.Duration) *BulkDeleteInterfacesParams
- func (o *BulkDeleteInterfacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BulkDeleteInterfacesReader
- type Client
- func (a *Client) BulkCreateInterfaces(params *BulkCreateInterfacesParams, opts ...ClientOption) (*BulkCreateInterfacesOK, error)
- func (a *Client) BulkDeleteInterfaces(params *BulkDeleteInterfacesParams, opts ...ClientOption) (*BulkDeleteInterfacesNoContent, error)
- func (a *Client) CreateInterface(params *CreateInterfaceParams, opts ...ClientOption) (*CreateInterfaceCreated, error)
- func (a *Client) DeleteInterface(params *DeleteInterfaceParams, opts ...ClientOption) (*DeleteInterfaceNoContent, error)
- func (a *Client) GetInterface(params *GetInterfaceParams, opts ...ClientOption) (*GetInterfaceOK, error)
- func (a *Client) ListInterfaces(params *ListInterfacesParams, opts ...ClientOption) (*ListInterfacesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateInterfaceCreated
- type CreateInterfaceParams
- func NewCreateInterfaceParams() *CreateInterfaceParams
- func NewCreateInterfaceParamsWithContext(ctx context.Context) *CreateInterfaceParams
- func NewCreateInterfaceParamsWithHTTPClient(client *http.Client) *CreateInterfaceParams
- func NewCreateInterfaceParamsWithTimeout(timeout time.Duration) *CreateInterfaceParams
- func (o *CreateInterfaceParams) SetContext(ctx context.Context)
- func (o *CreateInterfaceParams) SetDefaults()
- func (o *CreateInterfaceParams) SetHTTPClient(client *http.Client)
- func (o *CreateInterfaceParams) SetInterface(interfaceVar *models.Interface)
- func (o *CreateInterfaceParams) SetTimeout(timeout time.Duration)
- func (o *CreateInterfaceParams) WithContext(ctx context.Context) *CreateInterfaceParams
- func (o *CreateInterfaceParams) WithDefaults() *CreateInterfaceParams
- func (o *CreateInterfaceParams) WithHTTPClient(client *http.Client) *CreateInterfaceParams
- func (o *CreateInterfaceParams) WithInterface(interfaceVar *models.Interface) *CreateInterfaceParams
- func (o *CreateInterfaceParams) WithTimeout(timeout time.Duration) *CreateInterfaceParams
- func (o *CreateInterfaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateInterfaceReader
- type DeleteInterfaceNoContent
- type DeleteInterfaceParams
- func NewDeleteInterfaceParams() *DeleteInterfaceParams
- func NewDeleteInterfaceParamsWithContext(ctx context.Context) *DeleteInterfaceParams
- func NewDeleteInterfaceParamsWithHTTPClient(client *http.Client) *DeleteInterfaceParams
- func NewDeleteInterfaceParamsWithTimeout(timeout time.Duration) *DeleteInterfaceParams
- func (o *DeleteInterfaceParams) SetContext(ctx context.Context)
- func (o *DeleteInterfaceParams) SetDefaults()
- func (o *DeleteInterfaceParams) SetHTTPClient(client *http.Client)
- func (o *DeleteInterfaceParams) SetID(id string)
- func (o *DeleteInterfaceParams) SetTimeout(timeout time.Duration)
- func (o *DeleteInterfaceParams) WithContext(ctx context.Context) *DeleteInterfaceParams
- func (o *DeleteInterfaceParams) WithDefaults() *DeleteInterfaceParams
- func (o *DeleteInterfaceParams) WithHTTPClient(client *http.Client) *DeleteInterfaceParams
- func (o *DeleteInterfaceParams) WithID(id string) *DeleteInterfaceParams
- func (o *DeleteInterfaceParams) WithTimeout(timeout time.Duration) *DeleteInterfaceParams
- func (o *DeleteInterfaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteInterfaceReader
- type GetInterfaceOK
- type GetInterfaceParams
- func (o *GetInterfaceParams) SetContext(ctx context.Context)
- func (o *GetInterfaceParams) SetDefaults()
- func (o *GetInterfaceParams) SetHTTPClient(client *http.Client)
- func (o *GetInterfaceParams) SetID(id string)
- func (o *GetInterfaceParams) SetTimeout(timeout time.Duration)
- func (o *GetInterfaceParams) WithContext(ctx context.Context) *GetInterfaceParams
- func (o *GetInterfaceParams) WithDefaults() *GetInterfaceParams
- func (o *GetInterfaceParams) WithHTTPClient(client *http.Client) *GetInterfaceParams
- func (o *GetInterfaceParams) WithID(id string) *GetInterfaceParams
- func (o *GetInterfaceParams) WithTimeout(timeout time.Duration) *GetInterfaceParams
- func (o *GetInterfaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetInterfaceReader
- type ListInterfacesOK
- type ListInterfacesParams
- func NewListInterfacesParams() *ListInterfacesParams
- func NewListInterfacesParamsWithContext(ctx context.Context) *ListInterfacesParams
- func NewListInterfacesParamsWithHTTPClient(client *http.Client) *ListInterfacesParams
- func NewListInterfacesParamsWithTimeout(timeout time.Duration) *ListInterfacesParams
- func (o *ListInterfacesParams) SetContext(ctx context.Context)
- func (o *ListInterfacesParams) SetDefaults()
- func (o *ListInterfacesParams) SetEthMacAddress(ethMacAddress *string)
- func (o *ListInterfacesParams) SetHTTPClient(client *http.Client)
- func (o *ListInterfacesParams) SetIPV4Address(iPV4Address *string)
- func (o *ListInterfacesParams) SetIPV6Address(iPV6Address *string)
- func (o *ListInterfacesParams) SetPortID(portID *string)
- func (o *ListInterfacesParams) SetTimeout(timeout time.Duration)
- func (o *ListInterfacesParams) WithContext(ctx context.Context) *ListInterfacesParams
- func (o *ListInterfacesParams) WithDefaults() *ListInterfacesParams
- func (o *ListInterfacesParams) WithEthMacAddress(ethMacAddress *string) *ListInterfacesParams
- func (o *ListInterfacesParams) WithHTTPClient(client *http.Client) *ListInterfacesParams
- func (o *ListInterfacesParams) WithIPV4Address(iPV4Address *string) *ListInterfacesParams
- func (o *ListInterfacesParams) WithIPV6Address(iPV6Address *string) *ListInterfacesParams
- func (o *ListInterfacesParams) WithPortID(portID *string) *ListInterfacesParams
- func (o *ListInterfacesParams) WithTimeout(timeout time.Duration) *ListInterfacesParams
- func (o *ListInterfacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListInterfacesReader
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
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 ¶
func (o *BulkCreateInterfacesOK) GetPayload() *BulkCreateInterfacesOKBody
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
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 ¶
func (o *BulkCreateInterfacesParams) SetCreate(create BulkCreateInterfacesBody)
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 ¶
func (o *BulkCreateInterfacesParams) WithContext(ctx context.Context) *BulkCreateInterfacesParams
WithContext adds the context to the bulk create interfaces params
func (*BulkCreateInterfacesParams) WithCreate ¶
func (o *BulkCreateInterfacesParams) WithCreate(create BulkCreateInterfacesBody) *BulkCreateInterfacesParams
WithCreate adds the create to the bulk create interfaces params
func (*BulkCreateInterfacesParams) WithDefaults ¶
func (o *BulkCreateInterfacesParams) WithDefaults() *BulkCreateInterfacesParams
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 ¶
func (o *BulkCreateInterfacesParams) WithHTTPClient(client *http.Client) *BulkCreateInterfacesParams
WithHTTPClient adds the HTTPClient to the bulk create interfaces params
func (*BulkCreateInterfacesParams) WithTimeout ¶
func (o *BulkCreateInterfacesParams) WithTimeout(timeout time.Duration) *BulkCreateInterfacesParams
WithTimeout adds the timeout to the bulk create interfaces params
func (*BulkCreateInterfacesParams) WriteToRequest ¶
func (o *BulkCreateInterfacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
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 ¶
func (o *BulkDeleteInterfacesNoContent) Error() string
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 ¶
func (o *BulkDeleteInterfacesParams) SetDelete(delete BulkDeleteInterfacesBody)
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 ¶
func (o *BulkDeleteInterfacesParams) WithContext(ctx context.Context) *BulkDeleteInterfacesParams
WithContext adds the context to the bulk delete interfaces params
func (*BulkDeleteInterfacesParams) WithDefaults ¶
func (o *BulkDeleteInterfacesParams) WithDefaults() *BulkDeleteInterfacesParams
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 ¶
func (o *BulkDeleteInterfacesParams) WithDelete(delete BulkDeleteInterfacesBody) *BulkDeleteInterfacesParams
WithDelete adds the delete to the bulk delete interfaces params
func (*BulkDeleteInterfacesParams) WithHTTPClient ¶
func (o *BulkDeleteInterfacesParams) WithHTTPClient(client *http.Client) *BulkDeleteInterfacesParams
WithHTTPClient adds the HTTPClient to the bulk delete interfaces params
func (*BulkDeleteInterfacesParams) WithTimeout ¶
func (o *BulkDeleteInterfacesParams) WithTimeout(timeout time.Duration) *BulkDeleteInterfacesParams
WithTimeout adds the timeout to the bulk delete interfaces params
func (*BulkDeleteInterfacesParams) WriteToRequest ¶
func (o *BulkDeleteInterfacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 ¶
func (o *CreateInterfaceParams) WithContext(ctx context.Context) *CreateInterfaceParams
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 ¶
func (o *DeleteInterfaceParams) WithContext(ctx context.Context) *DeleteInterfaceParams
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 ¶
func (o *DeleteInterfaceParams) WithID(id string) *DeleteInterfaceParams
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 ¶
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 ¶
func (o *GetInterfaceParams) WithContext(ctx context.Context) *GetInterfaceParams
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 ¶
func (o *GetInterfaceParams) WithID(id string) *GetInterfaceParams
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 ¶
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 ¶
func (o *ListInterfacesParams) WithContext(ctx context.Context) *ListInterfacesParams
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.
Source Files ¶
- bulk_create_interfaces_parameters.go
- bulk_create_interfaces_responses.go
- bulk_delete_interfaces_parameters.go
- bulk_delete_interfaces_responses.go
- create_interface_parameters.go
- create_interface_responses.go
- delete_interface_parameters.go
- delete_interface_responses.go
- get_interface_parameters.go
- get_interface_responses.go
- interfaces_client.go
- list_interfaces_parameters.go
- list_interfaces_responses.go