Documentation
¶
Index ¶
- type Client
- func (a *Client) GatewayPolicyGetUsingGET(params *GatewayPolicyGetUsingGETParams, opts ...ClientOption) (*GatewayPolicyGetUsingGETOK, error)
- func (a *Client) GatewayPolicyListUsingGET(params *GatewayPolicyListUsingGETParams, opts ...ClientOption) (*GatewayPolicyListUsingGETOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GatewayPolicyGetUsingGETBadRequest
- type GatewayPolicyGetUsingGETNotFound
- type GatewayPolicyGetUsingGETOK
- type GatewayPolicyGetUsingGETParams
- func NewGatewayPolicyGetUsingGETParams() *GatewayPolicyGetUsingGETParams
- func NewGatewayPolicyGetUsingGETParamsWithContext(ctx context.Context) *GatewayPolicyGetUsingGETParams
- func NewGatewayPolicyGetUsingGETParamsWithHTTPClient(client *http.Client) *GatewayPolicyGetUsingGETParams
- func NewGatewayPolicyGetUsingGETParamsWithTimeout(timeout time.Duration) *GatewayPolicyGetUsingGETParams
- func (o *GatewayPolicyGetUsingGETParams) SetContext(ctx context.Context)
- func (o *GatewayPolicyGetUsingGETParams) SetDefaults()
- func (o *GatewayPolicyGetUsingGETParams) SetGatewayPolicyID(gatewayPolicyID string)
- func (o *GatewayPolicyGetUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *GatewayPolicyGetUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *GatewayPolicyGetUsingGETParams) WithContext(ctx context.Context) *GatewayPolicyGetUsingGETParams
- func (o *GatewayPolicyGetUsingGETParams) WithDefaults() *GatewayPolicyGetUsingGETParams
- func (o *GatewayPolicyGetUsingGETParams) WithGatewayPolicyID(gatewayPolicyID string) *GatewayPolicyGetUsingGETParams
- func (o *GatewayPolicyGetUsingGETParams) WithHTTPClient(client *http.Client) *GatewayPolicyGetUsingGETParams
- func (o *GatewayPolicyGetUsingGETParams) WithTimeout(timeout time.Duration) *GatewayPolicyGetUsingGETParams
- func (o *GatewayPolicyGetUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GatewayPolicyGetUsingGETReader
- type GatewayPolicyListUsingGETBadRequest
- type GatewayPolicyListUsingGETOK
- type GatewayPolicyListUsingGETParams
- func NewGatewayPolicyListUsingGETParams() *GatewayPolicyListUsingGETParams
- func NewGatewayPolicyListUsingGETParamsWithContext(ctx context.Context) *GatewayPolicyListUsingGETParams
- func NewGatewayPolicyListUsingGETParamsWithHTTPClient(client *http.Client) *GatewayPolicyListUsingGETParams
- func NewGatewayPolicyListUsingGETParamsWithTimeout(timeout time.Duration) *GatewayPolicyListUsingGETParams
- func (o *GatewayPolicyListUsingGETParams) SetContext(ctx context.Context)
- func (o *GatewayPolicyListUsingGETParams) SetDefaults()
- func (o *GatewayPolicyListUsingGETParams) SetDisplayName(displayName *string)
- func (o *GatewayPolicyListUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *GatewayPolicyListUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *GatewayPolicyListUsingGETParams) WithContext(ctx context.Context) *GatewayPolicyListUsingGETParams
- func (o *GatewayPolicyListUsingGETParams) WithDefaults() *GatewayPolicyListUsingGETParams
- func (o *GatewayPolicyListUsingGETParams) WithDisplayName(displayName *string) *GatewayPolicyListUsingGETParams
- func (o *GatewayPolicyListUsingGETParams) WithHTTPClient(client *http.Client) *GatewayPolicyListUsingGETParams
- func (o *GatewayPolicyListUsingGETParams) WithTimeout(timeout time.Duration) *GatewayPolicyListUsingGETParams
- func (o *GatewayPolicyListUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GatewayPolicyListUsingGETReader
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 gateway policies API
func (*Client) GatewayPolicyGetUsingGET ¶
func (a *Client) GatewayPolicyGetUsingGET(params *GatewayPolicyGetUsingGETParams, opts ...ClientOption) (*GatewayPolicyGetUsingGETOK, error)
GatewayPolicyGetUsingGET gets
Get gateway policies from NSX-T
func (*Client) GatewayPolicyListUsingGET ¶
func (a *Client) GatewayPolicyListUsingGET(params *GatewayPolicyListUsingGETParams, opts ...ClientOption) (*GatewayPolicyListUsingGETOK, error)
GatewayPolicyListUsingGET lists
List gateway policies 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 { GatewayPolicyGetUsingGET(params *GatewayPolicyGetUsingGETParams, opts ...ClientOption) (*GatewayPolicyGetUsingGETOK, error) GatewayPolicyListUsingGET(params *GatewayPolicyListUsingGETParams, opts ...ClientOption) (*GatewayPolicyListUsingGETOK, 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 gateway policies API client.
type GatewayPolicyGetUsingGETBadRequest ¶
type GatewayPolicyGetUsingGETBadRequest struct {
Payload *models.ProxyResponseMessage
}
GatewayPolicyGetUsingGETBadRequest describes a response with status code 400, with default header values.
Bad request, error occurred. For more details see log messages.
func NewGatewayPolicyGetUsingGETBadRequest ¶
func NewGatewayPolicyGetUsingGETBadRequest() *GatewayPolicyGetUsingGETBadRequest
NewGatewayPolicyGetUsingGETBadRequest creates a GatewayPolicyGetUsingGETBadRequest with default headers values
func (*GatewayPolicyGetUsingGETBadRequest) Error ¶
func (o *GatewayPolicyGetUsingGETBadRequest) Error() string
func (*GatewayPolicyGetUsingGETBadRequest) GetPayload ¶ added in v1.2.0
func (o *GatewayPolicyGetUsingGETBadRequest) GetPayload() *models.ProxyResponseMessage
type GatewayPolicyGetUsingGETNotFound ¶
type GatewayPolicyGetUsingGETNotFound struct { }
GatewayPolicyGetUsingGETNotFound describes a response with status code 404, with default header values.
Entity not found.
func NewGatewayPolicyGetUsingGETNotFound ¶
func NewGatewayPolicyGetUsingGETNotFound() *GatewayPolicyGetUsingGETNotFound
NewGatewayPolicyGetUsingGETNotFound creates a GatewayPolicyGetUsingGETNotFound with default headers values
func (*GatewayPolicyGetUsingGETNotFound) Error ¶
func (o *GatewayPolicyGetUsingGETNotFound) Error() string
type GatewayPolicyGetUsingGETOK ¶
type GatewayPolicyGetUsingGETOK struct {
Payload *models.GatewayPolicyGetResponse
}
GatewayPolicyGetUsingGETOK describes a response with status code 200, with default header values.
OK
func NewGatewayPolicyGetUsingGETOK ¶
func NewGatewayPolicyGetUsingGETOK() *GatewayPolicyGetUsingGETOK
NewGatewayPolicyGetUsingGETOK creates a GatewayPolicyGetUsingGETOK with default headers values
func (*GatewayPolicyGetUsingGETOK) Error ¶
func (o *GatewayPolicyGetUsingGETOK) Error() string
func (*GatewayPolicyGetUsingGETOK) GetPayload ¶
func (o *GatewayPolicyGetUsingGETOK) GetPayload() *models.GatewayPolicyGetResponse
type GatewayPolicyGetUsingGETParams ¶
type GatewayPolicyGetUsingGETParams struct { /* GatewayPolicyID. gatewayPolicyId */ GatewayPolicyID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GatewayPolicyGetUsingGETParams contains all the parameters to send to the API endpoint
for the gateway policy get using g e t operation. Typically these are written to a http.Request.
func NewGatewayPolicyGetUsingGETParams ¶
func NewGatewayPolicyGetUsingGETParams() *GatewayPolicyGetUsingGETParams
NewGatewayPolicyGetUsingGETParams creates a new GatewayPolicyGetUsingGETParams 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 NewGatewayPolicyGetUsingGETParamsWithContext ¶
func NewGatewayPolicyGetUsingGETParamsWithContext(ctx context.Context) *GatewayPolicyGetUsingGETParams
NewGatewayPolicyGetUsingGETParamsWithContext creates a new GatewayPolicyGetUsingGETParams object with the ability to set a context for a request.
func NewGatewayPolicyGetUsingGETParamsWithHTTPClient ¶
func NewGatewayPolicyGetUsingGETParamsWithHTTPClient(client *http.Client) *GatewayPolicyGetUsingGETParams
NewGatewayPolicyGetUsingGETParamsWithHTTPClient creates a new GatewayPolicyGetUsingGETParams object with the ability to set a custom HTTPClient for a request.
func NewGatewayPolicyGetUsingGETParamsWithTimeout ¶
func NewGatewayPolicyGetUsingGETParamsWithTimeout(timeout time.Duration) *GatewayPolicyGetUsingGETParams
NewGatewayPolicyGetUsingGETParamsWithTimeout creates a new GatewayPolicyGetUsingGETParams object with the ability to set a timeout on a request.
func (*GatewayPolicyGetUsingGETParams) SetContext ¶
func (o *GatewayPolicyGetUsingGETParams) SetContext(ctx context.Context)
SetContext adds the context to the gateway policy get using g e t params
func (*GatewayPolicyGetUsingGETParams) SetDefaults ¶ added in v1.2.4
func (o *GatewayPolicyGetUsingGETParams) SetDefaults()
SetDefaults hydrates default values in the gateway policy get using g e t params (not the query body).
All values with no default are reset to their zero value.
func (*GatewayPolicyGetUsingGETParams) SetGatewayPolicyID ¶
func (o *GatewayPolicyGetUsingGETParams) SetGatewayPolicyID(gatewayPolicyID string)
SetGatewayPolicyID adds the gatewayPolicyId to the gateway policy get using g e t params
func (*GatewayPolicyGetUsingGETParams) SetHTTPClient ¶
func (o *GatewayPolicyGetUsingGETParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the gateway policy get using g e t params
func (*GatewayPolicyGetUsingGETParams) SetTimeout ¶
func (o *GatewayPolicyGetUsingGETParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the gateway policy get using g e t params
func (*GatewayPolicyGetUsingGETParams) WithContext ¶
func (o *GatewayPolicyGetUsingGETParams) WithContext(ctx context.Context) *GatewayPolicyGetUsingGETParams
WithContext adds the context to the gateway policy get using g e t params
func (*GatewayPolicyGetUsingGETParams) WithDefaults ¶ added in v1.2.4
func (o *GatewayPolicyGetUsingGETParams) WithDefaults() *GatewayPolicyGetUsingGETParams
WithDefaults hydrates default values in the gateway policy get using g e t params (not the query body).
All values with no default are reset to their zero value.
func (*GatewayPolicyGetUsingGETParams) WithGatewayPolicyID ¶
func (o *GatewayPolicyGetUsingGETParams) WithGatewayPolicyID(gatewayPolicyID string) *GatewayPolicyGetUsingGETParams
WithGatewayPolicyID adds the gatewayPolicyID to the gateway policy get using g e t params
func (*GatewayPolicyGetUsingGETParams) WithHTTPClient ¶
func (o *GatewayPolicyGetUsingGETParams) WithHTTPClient(client *http.Client) *GatewayPolicyGetUsingGETParams
WithHTTPClient adds the HTTPClient to the gateway policy get using g e t params
func (*GatewayPolicyGetUsingGETParams) WithTimeout ¶
func (o *GatewayPolicyGetUsingGETParams) WithTimeout(timeout time.Duration) *GatewayPolicyGetUsingGETParams
WithTimeout adds the timeout to the gateway policy get using g e t params
func (*GatewayPolicyGetUsingGETParams) WriteToRequest ¶
func (o *GatewayPolicyGetUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GatewayPolicyGetUsingGETReader ¶
type GatewayPolicyGetUsingGETReader struct {
// contains filtered or unexported fields
}
GatewayPolicyGetUsingGETReader is a Reader for the GatewayPolicyGetUsingGET structure.
func (*GatewayPolicyGetUsingGETReader) ReadResponse ¶
func (o *GatewayPolicyGetUsingGETReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GatewayPolicyListUsingGETBadRequest ¶
type GatewayPolicyListUsingGETBadRequest struct {
Payload *models.ProxyResponseMessage
}
GatewayPolicyListUsingGETBadRequest describes a response with status code 400, with default header values.
Bad request, error occurred. For more details see log messages.
func NewGatewayPolicyListUsingGETBadRequest ¶
func NewGatewayPolicyListUsingGETBadRequest() *GatewayPolicyListUsingGETBadRequest
NewGatewayPolicyListUsingGETBadRequest creates a GatewayPolicyListUsingGETBadRequest with default headers values
func (*GatewayPolicyListUsingGETBadRequest) Error ¶
func (o *GatewayPolicyListUsingGETBadRequest) Error() string
func (*GatewayPolicyListUsingGETBadRequest) GetPayload ¶ added in v1.2.0
func (o *GatewayPolicyListUsingGETBadRequest) GetPayload() *models.ProxyResponseMessage
type GatewayPolicyListUsingGETOK ¶
type GatewayPolicyListUsingGETOK struct {
Payload *models.GatewayPolicyListResponse
}
GatewayPolicyListUsingGETOK describes a response with status code 200, with default header values.
OK
func NewGatewayPolicyListUsingGETOK ¶
func NewGatewayPolicyListUsingGETOK() *GatewayPolicyListUsingGETOK
NewGatewayPolicyListUsingGETOK creates a GatewayPolicyListUsingGETOK with default headers values
func (*GatewayPolicyListUsingGETOK) Error ¶
func (o *GatewayPolicyListUsingGETOK) Error() string
func (*GatewayPolicyListUsingGETOK) GetPayload ¶
func (o *GatewayPolicyListUsingGETOK) GetPayload() *models.GatewayPolicyListResponse
type GatewayPolicyListUsingGETParams ¶
type GatewayPolicyListUsingGETParams struct { /* DisplayName. displayName */ DisplayName *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GatewayPolicyListUsingGETParams contains all the parameters to send to the API endpoint
for the gateway policy list using g e t operation. Typically these are written to a http.Request.
func NewGatewayPolicyListUsingGETParams ¶
func NewGatewayPolicyListUsingGETParams() *GatewayPolicyListUsingGETParams
NewGatewayPolicyListUsingGETParams creates a new GatewayPolicyListUsingGETParams 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 NewGatewayPolicyListUsingGETParamsWithContext ¶
func NewGatewayPolicyListUsingGETParamsWithContext(ctx context.Context) *GatewayPolicyListUsingGETParams
NewGatewayPolicyListUsingGETParamsWithContext creates a new GatewayPolicyListUsingGETParams object with the ability to set a context for a request.
func NewGatewayPolicyListUsingGETParamsWithHTTPClient ¶
func NewGatewayPolicyListUsingGETParamsWithHTTPClient(client *http.Client) *GatewayPolicyListUsingGETParams
NewGatewayPolicyListUsingGETParamsWithHTTPClient creates a new GatewayPolicyListUsingGETParams object with the ability to set a custom HTTPClient for a request.
func NewGatewayPolicyListUsingGETParamsWithTimeout ¶
func NewGatewayPolicyListUsingGETParamsWithTimeout(timeout time.Duration) *GatewayPolicyListUsingGETParams
NewGatewayPolicyListUsingGETParamsWithTimeout creates a new GatewayPolicyListUsingGETParams object with the ability to set a timeout on a request.
func (*GatewayPolicyListUsingGETParams) SetContext ¶
func (o *GatewayPolicyListUsingGETParams) SetContext(ctx context.Context)
SetContext adds the context to the gateway policy list using g e t params
func (*GatewayPolicyListUsingGETParams) SetDefaults ¶ added in v1.2.4
func (o *GatewayPolicyListUsingGETParams) SetDefaults()
SetDefaults hydrates default values in the gateway policy list using g e t params (not the query body).
All values with no default are reset to their zero value.
func (*GatewayPolicyListUsingGETParams) SetDisplayName ¶
func (o *GatewayPolicyListUsingGETParams) SetDisplayName(displayName *string)
SetDisplayName adds the displayName to the gateway policy list using g e t params
func (*GatewayPolicyListUsingGETParams) SetHTTPClient ¶
func (o *GatewayPolicyListUsingGETParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the gateway policy list using g e t params
func (*GatewayPolicyListUsingGETParams) SetTimeout ¶
func (o *GatewayPolicyListUsingGETParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the gateway policy list using g e t params
func (*GatewayPolicyListUsingGETParams) WithContext ¶
func (o *GatewayPolicyListUsingGETParams) WithContext(ctx context.Context) *GatewayPolicyListUsingGETParams
WithContext adds the context to the gateway policy list using g e t params
func (*GatewayPolicyListUsingGETParams) WithDefaults ¶ added in v1.2.4
func (o *GatewayPolicyListUsingGETParams) WithDefaults() *GatewayPolicyListUsingGETParams
WithDefaults hydrates default values in the gateway policy list using g e t params (not the query body).
All values with no default are reset to their zero value.
func (*GatewayPolicyListUsingGETParams) WithDisplayName ¶
func (o *GatewayPolicyListUsingGETParams) WithDisplayName(displayName *string) *GatewayPolicyListUsingGETParams
WithDisplayName adds the displayName to the gateway policy list using g e t params
func (*GatewayPolicyListUsingGETParams) WithHTTPClient ¶
func (o *GatewayPolicyListUsingGETParams) WithHTTPClient(client *http.Client) *GatewayPolicyListUsingGETParams
WithHTTPClient adds the HTTPClient to the gateway policy list using g e t params
func (*GatewayPolicyListUsingGETParams) WithTimeout ¶
func (o *GatewayPolicyListUsingGETParams) WithTimeout(timeout time.Duration) *GatewayPolicyListUsingGETParams
WithTimeout adds the timeout to the gateway policy list using g e t params
func (*GatewayPolicyListUsingGETParams) WriteToRequest ¶
func (o *GatewayPolicyListUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GatewayPolicyListUsingGETReader ¶
type GatewayPolicyListUsingGETReader struct {
// contains filtered or unexported fields
}
GatewayPolicyListUsingGETReader is a Reader for the GatewayPolicyListUsingGET structure.
func (*GatewayPolicyListUsingGETReader) ReadResponse ¶
func (o *GatewayPolicyListUsingGETReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.