logical_ports

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for logical ports API

func (*Client) LogicalPortGetUsingGET

func (a *Client) LogicalPortGetUsingGET(params *LogicalPortGetUsingGETParams, opts ...ClientOption) (*LogicalPortGetUsingGETOK, error)

LogicalPortGetUsingGET gets

Get logical port from NSX-T

func (*Client) LogicalPortListUsingGET1 added in v1.0.0

func (a *Client) LogicalPortListUsingGET1(params *LogicalPortListUsingGET1Params, opts ...ClientOption) (*LogicalPortListUsingGET1OK, error)

LogicalPortListUsingGET1 lists

List logical ports from NSX-T

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v1.2.4

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	LogicalPortGetUsingGET(params *LogicalPortGetUsingGETParams, opts ...ClientOption) (*LogicalPortGetUsingGETOK, error)

	LogicalPortListUsingGET1(params *LogicalPortListUsingGET1Params, opts ...ClientOption) (*LogicalPortListUsingGET1OK, 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 logical ports API client.

type LogicalPortGetUsingGETBadRequest

type LogicalPortGetUsingGETBadRequest struct {
	Payload *models.ProxyResponseMessage
}
LogicalPortGetUsingGETBadRequest describes a response with status code 400, with default header values.

Bad request, error occurred. For more details see log messages.

func NewLogicalPortGetUsingGETBadRequest

func NewLogicalPortGetUsingGETBadRequest() *LogicalPortGetUsingGETBadRequest

NewLogicalPortGetUsingGETBadRequest creates a LogicalPortGetUsingGETBadRequest with default headers values

func (*LogicalPortGetUsingGETBadRequest) Error

func (*LogicalPortGetUsingGETBadRequest) GetPayload added in v1.2.0

type LogicalPortGetUsingGETNotFound

type LogicalPortGetUsingGETNotFound struct {
}
LogicalPortGetUsingGETNotFound describes a response with status code 404, with default header values.

Entity not found.

func NewLogicalPortGetUsingGETNotFound

func NewLogicalPortGetUsingGETNotFound() *LogicalPortGetUsingGETNotFound

NewLogicalPortGetUsingGETNotFound creates a LogicalPortGetUsingGETNotFound with default headers values

func (*LogicalPortGetUsingGETNotFound) Error

type LogicalPortGetUsingGETOK

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

OK

func NewLogicalPortGetUsingGETOK

func NewLogicalPortGetUsingGETOK() *LogicalPortGetUsingGETOK

NewLogicalPortGetUsingGETOK creates a LogicalPortGetUsingGETOK with default headers values

func (*LogicalPortGetUsingGETOK) Error

func (o *LogicalPortGetUsingGETOK) Error() string

func (*LogicalPortGetUsingGETOK) GetPayload

type LogicalPortGetUsingGETParams

type LogicalPortGetUsingGETParams struct {

	/* LogicalPortID.

	   logicalPortId
	*/
	LogicalPortID string

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

LogicalPortGetUsingGETParams contains all the parameters to send to the API endpoint

for the logical port get using g e t operation.

Typically these are written to a http.Request.

func NewLogicalPortGetUsingGETParams

func NewLogicalPortGetUsingGETParams() *LogicalPortGetUsingGETParams

NewLogicalPortGetUsingGETParams creates a new LogicalPortGetUsingGETParams 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 NewLogicalPortGetUsingGETParamsWithContext

func NewLogicalPortGetUsingGETParamsWithContext(ctx context.Context) *LogicalPortGetUsingGETParams

NewLogicalPortGetUsingGETParamsWithContext creates a new LogicalPortGetUsingGETParams object with the ability to set a context for a request.

func NewLogicalPortGetUsingGETParamsWithHTTPClient

func NewLogicalPortGetUsingGETParamsWithHTTPClient(client *http.Client) *LogicalPortGetUsingGETParams

NewLogicalPortGetUsingGETParamsWithHTTPClient creates a new LogicalPortGetUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewLogicalPortGetUsingGETParamsWithTimeout

func NewLogicalPortGetUsingGETParamsWithTimeout(timeout time.Duration) *LogicalPortGetUsingGETParams

NewLogicalPortGetUsingGETParamsWithTimeout creates a new LogicalPortGetUsingGETParams object with the ability to set a timeout on a request.

func (*LogicalPortGetUsingGETParams) SetContext

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

SetContext adds the context to the logical port get using g e t params

func (*LogicalPortGetUsingGETParams) SetDefaults added in v1.2.4

func (o *LogicalPortGetUsingGETParams) SetDefaults()

SetDefaults hydrates default values in the logical port get using g e t params (not the query body).

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

func (*LogicalPortGetUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the logical port get using g e t params

func (*LogicalPortGetUsingGETParams) SetLogicalPortID

func (o *LogicalPortGetUsingGETParams) SetLogicalPortID(logicalPortID string)

SetLogicalPortID adds the logicalPortId to the logical port get using g e t params

func (*LogicalPortGetUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the logical port get using g e t params

func (*LogicalPortGetUsingGETParams) WithContext

WithContext adds the context to the logical port get using g e t params

func (*LogicalPortGetUsingGETParams) WithDefaults added in v1.2.4

WithDefaults hydrates default values in the logical port get using g e t params (not the query body).

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

func (*LogicalPortGetUsingGETParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the logical port get using g e t params

func (*LogicalPortGetUsingGETParams) WithLogicalPortID

func (o *LogicalPortGetUsingGETParams) WithLogicalPortID(logicalPortID string) *LogicalPortGetUsingGETParams

WithLogicalPortID adds the logicalPortID to the logical port get using g e t params

func (*LogicalPortGetUsingGETParams) WithTimeout

WithTimeout adds the timeout to the logical port get using g e t params

func (*LogicalPortGetUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type LogicalPortGetUsingGETReader

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

LogicalPortGetUsingGETReader is a Reader for the LogicalPortGetUsingGET structure.

func (*LogicalPortGetUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type LogicalPortListUsingGET1BadRequest added in v1.0.0

type LogicalPortListUsingGET1BadRequest struct {
	Payload *models.ProxyResponseMessage
}
LogicalPortListUsingGET1BadRequest describes a response with status code 400, with default header values.

Bad request, error occurred. For more details see log messages.

func NewLogicalPortListUsingGET1BadRequest added in v1.0.0

func NewLogicalPortListUsingGET1BadRequest() *LogicalPortListUsingGET1BadRequest

NewLogicalPortListUsingGET1BadRequest creates a LogicalPortListUsingGET1BadRequest with default headers values

func (*LogicalPortListUsingGET1BadRequest) Error added in v1.0.0

func (*LogicalPortListUsingGET1BadRequest) GetPayload added in v1.2.0

type LogicalPortListUsingGET1OK added in v1.0.0

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

OK

func NewLogicalPortListUsingGET1OK added in v1.0.0

func NewLogicalPortListUsingGET1OK() *LogicalPortListUsingGET1OK

NewLogicalPortListUsingGET1OK creates a LogicalPortListUsingGET1OK with default headers values

func (*LogicalPortListUsingGET1OK) Error added in v1.0.0

func (*LogicalPortListUsingGET1OK) GetPayload added in v1.0.0

type LogicalPortListUsingGET1Params added in v1.0.0

type LogicalPortListUsingGET1Params struct {

	/* DisplayName.

	   displayName
	*/
	DisplayName *string

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

LogicalPortListUsingGET1Params contains all the parameters to send to the API endpoint

for the logical port list using g e t 1 operation.

Typically these are written to a http.Request.

func NewLogicalPortListUsingGET1Params added in v1.0.0

func NewLogicalPortListUsingGET1Params() *LogicalPortListUsingGET1Params

NewLogicalPortListUsingGET1Params creates a new LogicalPortListUsingGET1Params 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 NewLogicalPortListUsingGET1ParamsWithContext added in v1.0.0

func NewLogicalPortListUsingGET1ParamsWithContext(ctx context.Context) *LogicalPortListUsingGET1Params

NewLogicalPortListUsingGET1ParamsWithContext creates a new LogicalPortListUsingGET1Params object with the ability to set a context for a request.

func NewLogicalPortListUsingGET1ParamsWithHTTPClient added in v1.0.0

func NewLogicalPortListUsingGET1ParamsWithHTTPClient(client *http.Client) *LogicalPortListUsingGET1Params

NewLogicalPortListUsingGET1ParamsWithHTTPClient creates a new LogicalPortListUsingGET1Params object with the ability to set a custom HTTPClient for a request.

func NewLogicalPortListUsingGET1ParamsWithTimeout added in v1.0.0

func NewLogicalPortListUsingGET1ParamsWithTimeout(timeout time.Duration) *LogicalPortListUsingGET1Params

NewLogicalPortListUsingGET1ParamsWithTimeout creates a new LogicalPortListUsingGET1Params object with the ability to set a timeout on a request.

func (*LogicalPortListUsingGET1Params) SetContext added in v1.0.0

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

SetContext adds the context to the logical port list using g e t 1 params

func (*LogicalPortListUsingGET1Params) SetDefaults added in v1.2.4

func (o *LogicalPortListUsingGET1Params) SetDefaults()

SetDefaults hydrates default values in the logical port list using g e t 1 params (not the query body).

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

func (*LogicalPortListUsingGET1Params) SetDisplayName added in v1.0.0

func (o *LogicalPortListUsingGET1Params) SetDisplayName(displayName *string)

SetDisplayName adds the displayName to the logical port list using g e t 1 params

func (*LogicalPortListUsingGET1Params) SetHTTPClient added in v1.0.0

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

SetHTTPClient adds the HTTPClient to the logical port list using g e t 1 params

func (*LogicalPortListUsingGET1Params) SetTimeout added in v1.0.0

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

SetTimeout adds the timeout to the logical port list using g e t 1 params

func (*LogicalPortListUsingGET1Params) WithContext added in v1.0.0

WithContext adds the context to the logical port list using g e t 1 params

func (*LogicalPortListUsingGET1Params) WithDefaults added in v1.2.4

WithDefaults hydrates default values in the logical port list using g e t 1 params (not the query body).

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

func (*LogicalPortListUsingGET1Params) WithDisplayName added in v1.0.0

func (o *LogicalPortListUsingGET1Params) WithDisplayName(displayName *string) *LogicalPortListUsingGET1Params

WithDisplayName adds the displayName to the logical port list using g e t 1 params

func (*LogicalPortListUsingGET1Params) WithHTTPClient added in v1.0.0

WithHTTPClient adds the HTTPClient to the logical port list using g e t 1 params

func (*LogicalPortListUsingGET1Params) WithTimeout added in v1.0.0

WithTimeout adds the timeout to the logical port list using g e t 1 params

func (*LogicalPortListUsingGET1Params) WriteToRequest added in v1.0.0

WriteToRequest writes these params to a swagger request

type LogicalPortListUsingGET1Reader added in v1.0.0

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

LogicalPortListUsingGET1Reader is a Reader for the LogicalPortListUsingGET1 structure.

func (*LogicalPortListUsingGET1Reader) ReadResponse added in v1.0.0

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