Documentation
¶
Index ¶
- type Client
- func (a *Client) LogicalPortGetUsingGET(params *LogicalPortGetUsingGETParams, opts ...ClientOption) (*LogicalPortGetUsingGETOK, error)
- func (a *Client) LogicalPortListUsingGET1(params *LogicalPortListUsingGET1Params, opts ...ClientOption) (*LogicalPortListUsingGET1OK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type LogicalPortGetUsingGETBadRequest
- type LogicalPortGetUsingGETNotFound
- type LogicalPortGetUsingGETOK
- type LogicalPortGetUsingGETParams
- func NewLogicalPortGetUsingGETParams() *LogicalPortGetUsingGETParams
- func NewLogicalPortGetUsingGETParamsWithContext(ctx context.Context) *LogicalPortGetUsingGETParams
- func NewLogicalPortGetUsingGETParamsWithHTTPClient(client *http.Client) *LogicalPortGetUsingGETParams
- func NewLogicalPortGetUsingGETParamsWithTimeout(timeout time.Duration) *LogicalPortGetUsingGETParams
- func (o *LogicalPortGetUsingGETParams) SetContext(ctx context.Context)
- func (o *LogicalPortGetUsingGETParams) SetDefaults()
- func (o *LogicalPortGetUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *LogicalPortGetUsingGETParams) SetLogicalPortID(logicalPortID string)
- func (o *LogicalPortGetUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *LogicalPortGetUsingGETParams) WithContext(ctx context.Context) *LogicalPortGetUsingGETParams
- func (o *LogicalPortGetUsingGETParams) WithDefaults() *LogicalPortGetUsingGETParams
- func (o *LogicalPortGetUsingGETParams) WithHTTPClient(client *http.Client) *LogicalPortGetUsingGETParams
- func (o *LogicalPortGetUsingGETParams) WithLogicalPortID(logicalPortID string) *LogicalPortGetUsingGETParams
- func (o *LogicalPortGetUsingGETParams) WithTimeout(timeout time.Duration) *LogicalPortGetUsingGETParams
- func (o *LogicalPortGetUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LogicalPortGetUsingGETReader
- type LogicalPortListUsingGET1BadRequest
- type LogicalPortListUsingGET1OK
- type LogicalPortListUsingGET1Params
- func NewLogicalPortListUsingGET1Params() *LogicalPortListUsingGET1Params
- func NewLogicalPortListUsingGET1ParamsWithContext(ctx context.Context) *LogicalPortListUsingGET1Params
- func NewLogicalPortListUsingGET1ParamsWithHTTPClient(client *http.Client) *LogicalPortListUsingGET1Params
- func NewLogicalPortListUsingGET1ParamsWithTimeout(timeout time.Duration) *LogicalPortListUsingGET1Params
- func (o *LogicalPortListUsingGET1Params) SetContext(ctx context.Context)
- func (o *LogicalPortListUsingGET1Params) SetDefaults()
- func (o *LogicalPortListUsingGET1Params) SetDisplayName(displayName *string)
- func (o *LogicalPortListUsingGET1Params) SetHTTPClient(client *http.Client)
- func (o *LogicalPortListUsingGET1Params) SetTimeout(timeout time.Duration)
- func (o *LogicalPortListUsingGET1Params) WithContext(ctx context.Context) *LogicalPortListUsingGET1Params
- func (o *LogicalPortListUsingGET1Params) WithDefaults() *LogicalPortListUsingGET1Params
- func (o *LogicalPortListUsingGET1Params) WithDisplayName(displayName *string) *LogicalPortListUsingGET1Params
- func (o *LogicalPortListUsingGET1Params) WithHTTPClient(client *http.Client) *LogicalPortListUsingGET1Params
- func (o *LogicalPortListUsingGET1Params) WithTimeout(timeout time.Duration) *LogicalPortListUsingGET1Params
- func (o *LogicalPortListUsingGET1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LogicalPortListUsingGET1Reader
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 (o *LogicalPortGetUsingGETBadRequest) Error() string
func (*LogicalPortGetUsingGETBadRequest) GetPayload ¶ added in v1.2.0
func (o *LogicalPortGetUsingGETBadRequest) GetPayload() *models.ProxyResponseMessage
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 ¶
func (o *LogicalPortGetUsingGETNotFound) Error() string
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 ¶
func (o *LogicalPortGetUsingGETOK) GetPayload() *models.LogicalPortGetResponse
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 ¶
func (o *LogicalPortGetUsingGETParams) WithContext(ctx context.Context) *LogicalPortGetUsingGETParams
WithContext adds the context to the logical port get using g e t params
func (*LogicalPortGetUsingGETParams) WithDefaults ¶ added in v1.2.4
func (o *LogicalPortGetUsingGETParams) WithDefaults() *LogicalPortGetUsingGETParams
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 ¶
func (o *LogicalPortGetUsingGETParams) WithHTTPClient(client *http.Client) *LogicalPortGetUsingGETParams
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 ¶
func (o *LogicalPortGetUsingGETParams) WithTimeout(timeout time.Duration) *LogicalPortGetUsingGETParams
WithTimeout adds the timeout to the logical port get using g e t params
func (*LogicalPortGetUsingGETParams) WriteToRequest ¶
func (o *LogicalPortGetUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *LogicalPortListUsingGET1BadRequest) Error() string
func (*LogicalPortListUsingGET1BadRequest) GetPayload ¶ added in v1.2.0
func (o *LogicalPortListUsingGET1BadRequest) GetPayload() *models.ProxyResponseMessage
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 (o *LogicalPortListUsingGET1OK) Error() string
func (*LogicalPortListUsingGET1OK) GetPayload ¶ added in v1.0.0
func (o *LogicalPortListUsingGET1OK) GetPayload() *models.LogicalPortListResponse
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
func (o *LogicalPortListUsingGET1Params) WithContext(ctx context.Context) *LogicalPortListUsingGET1Params
WithContext adds the context to the logical port list using g e t 1 params
func (*LogicalPortListUsingGET1Params) WithDefaults ¶ added in v1.2.4
func (o *LogicalPortListUsingGET1Params) WithDefaults() *LogicalPortListUsingGET1Params
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
func (o *LogicalPortListUsingGET1Params) WithHTTPClient(client *http.Client) *LogicalPortListUsingGET1Params
WithHTTPClient adds the HTTPClient to the logical port list using g e t 1 params
func (*LogicalPortListUsingGET1Params) WithTimeout ¶ added in v1.0.0
func (o *LogicalPortListUsingGET1Params) WithTimeout(timeout time.Duration) *LogicalPortListUsingGET1Params
WithTimeout adds the timeout to the logical port list using g e t 1 params
func (*LogicalPortListUsingGET1Params) WriteToRequest ¶ added in v1.0.0
func (o *LogicalPortListUsingGET1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.