Documentation ¶
Index ¶
- type Client
- func (a *Client) SecurityPolicyGetUsingGET(params *SecurityPolicyGetUsingGETParams, opts ...ClientOption) (*SecurityPolicyGetUsingGETOK, error)
- func (a *Client) SecurityPolicyListUsingGET(params *SecurityPolicyListUsingGETParams, opts ...ClientOption) (*SecurityPolicyListUsingGETOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type SecurityPolicyGetUsingGETBadRequest
- type SecurityPolicyGetUsingGETNotFound
- type SecurityPolicyGetUsingGETOK
- type SecurityPolicyGetUsingGETParams
- func NewSecurityPolicyGetUsingGETParams() *SecurityPolicyGetUsingGETParams
- func NewSecurityPolicyGetUsingGETParamsWithContext(ctx context.Context) *SecurityPolicyGetUsingGETParams
- func NewSecurityPolicyGetUsingGETParamsWithHTTPClient(client *http.Client) *SecurityPolicyGetUsingGETParams
- func NewSecurityPolicyGetUsingGETParamsWithTimeout(timeout time.Duration) *SecurityPolicyGetUsingGETParams
- func (o *SecurityPolicyGetUsingGETParams) SetContext(ctx context.Context)
- func (o *SecurityPolicyGetUsingGETParams) SetDefaults()
- func (o *SecurityPolicyGetUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *SecurityPolicyGetUsingGETParams) SetSecurityPolicyID(securityPolicyID string)
- func (o *SecurityPolicyGetUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *SecurityPolicyGetUsingGETParams) WithContext(ctx context.Context) *SecurityPolicyGetUsingGETParams
- func (o *SecurityPolicyGetUsingGETParams) WithDefaults() *SecurityPolicyGetUsingGETParams
- func (o *SecurityPolicyGetUsingGETParams) WithHTTPClient(client *http.Client) *SecurityPolicyGetUsingGETParams
- func (o *SecurityPolicyGetUsingGETParams) WithSecurityPolicyID(securityPolicyID string) *SecurityPolicyGetUsingGETParams
- func (o *SecurityPolicyGetUsingGETParams) WithTimeout(timeout time.Duration) *SecurityPolicyGetUsingGETParams
- func (o *SecurityPolicyGetUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SecurityPolicyGetUsingGETReader
- type SecurityPolicyListUsingGETBadRequest
- type SecurityPolicyListUsingGETOK
- type SecurityPolicyListUsingGETParams
- func NewSecurityPolicyListUsingGETParams() *SecurityPolicyListUsingGETParams
- func NewSecurityPolicyListUsingGETParamsWithContext(ctx context.Context) *SecurityPolicyListUsingGETParams
- func NewSecurityPolicyListUsingGETParamsWithHTTPClient(client *http.Client) *SecurityPolicyListUsingGETParams
- func NewSecurityPolicyListUsingGETParamsWithTimeout(timeout time.Duration) *SecurityPolicyListUsingGETParams
- func (o *SecurityPolicyListUsingGETParams) SetContext(ctx context.Context)
- func (o *SecurityPolicyListUsingGETParams) SetDefaults()
- func (o *SecurityPolicyListUsingGETParams) SetDisplayName(displayName *string)
- func (o *SecurityPolicyListUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *SecurityPolicyListUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *SecurityPolicyListUsingGETParams) WithContext(ctx context.Context) *SecurityPolicyListUsingGETParams
- func (o *SecurityPolicyListUsingGETParams) WithDefaults() *SecurityPolicyListUsingGETParams
- func (o *SecurityPolicyListUsingGETParams) WithDisplayName(displayName *string) *SecurityPolicyListUsingGETParams
- func (o *SecurityPolicyListUsingGETParams) WithHTTPClient(client *http.Client) *SecurityPolicyListUsingGETParams
- func (o *SecurityPolicyListUsingGETParams) WithTimeout(timeout time.Duration) *SecurityPolicyListUsingGETParams
- func (o *SecurityPolicyListUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SecurityPolicyListUsingGETReader
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 security policies API
func (*Client) SecurityPolicyGetUsingGET ¶
func (a *Client) SecurityPolicyGetUsingGET(params *SecurityPolicyGetUsingGETParams, opts ...ClientOption) (*SecurityPolicyGetUsingGETOK, error)
SecurityPolicyGetUsingGET gets
Get security policy from NSX-T
func (*Client) SecurityPolicyListUsingGET ¶
func (a *Client) SecurityPolicyListUsingGET(params *SecurityPolicyListUsingGETParams, opts ...ClientOption) (*SecurityPolicyListUsingGETOK, error)
SecurityPolicyListUsingGET lists
List security 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 { SecurityPolicyGetUsingGET(params *SecurityPolicyGetUsingGETParams, opts ...ClientOption) (*SecurityPolicyGetUsingGETOK, error) SecurityPolicyListUsingGET(params *SecurityPolicyListUsingGETParams, opts ...ClientOption) (*SecurityPolicyListUsingGETOK, 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 security policies API client.
type SecurityPolicyGetUsingGETBadRequest ¶
type SecurityPolicyGetUsingGETBadRequest struct {
Payload *models.ProxyResponseMessage
}
SecurityPolicyGetUsingGETBadRequest describes a response with status code 400, with default header values.
Bad request, error occurred. For more details see log messages.
func NewSecurityPolicyGetUsingGETBadRequest ¶
func NewSecurityPolicyGetUsingGETBadRequest() *SecurityPolicyGetUsingGETBadRequest
NewSecurityPolicyGetUsingGETBadRequest creates a SecurityPolicyGetUsingGETBadRequest with default headers values
func (*SecurityPolicyGetUsingGETBadRequest) Error ¶
func (o *SecurityPolicyGetUsingGETBadRequest) Error() string
func (*SecurityPolicyGetUsingGETBadRequest) GetPayload ¶ added in v1.2.0
func (o *SecurityPolicyGetUsingGETBadRequest) GetPayload() *models.ProxyResponseMessage
type SecurityPolicyGetUsingGETNotFound ¶
type SecurityPolicyGetUsingGETNotFound struct { }
SecurityPolicyGetUsingGETNotFound describes a response with status code 404, with default header values.
Entity not found.
func NewSecurityPolicyGetUsingGETNotFound ¶
func NewSecurityPolicyGetUsingGETNotFound() *SecurityPolicyGetUsingGETNotFound
NewSecurityPolicyGetUsingGETNotFound creates a SecurityPolicyGetUsingGETNotFound with default headers values
func (*SecurityPolicyGetUsingGETNotFound) Error ¶
func (o *SecurityPolicyGetUsingGETNotFound) Error() string
type SecurityPolicyGetUsingGETOK ¶
type SecurityPolicyGetUsingGETOK struct {
Payload *models.SecurityPolicyGetResponse
}
SecurityPolicyGetUsingGETOK describes a response with status code 200, with default header values.
OK
func NewSecurityPolicyGetUsingGETOK ¶
func NewSecurityPolicyGetUsingGETOK() *SecurityPolicyGetUsingGETOK
NewSecurityPolicyGetUsingGETOK creates a SecurityPolicyGetUsingGETOK with default headers values
func (*SecurityPolicyGetUsingGETOK) Error ¶
func (o *SecurityPolicyGetUsingGETOK) Error() string
func (*SecurityPolicyGetUsingGETOK) GetPayload ¶
func (o *SecurityPolicyGetUsingGETOK) GetPayload() *models.SecurityPolicyGetResponse
type SecurityPolicyGetUsingGETParams ¶
type SecurityPolicyGetUsingGETParams struct { /* SecurityPolicyID. SecurityPolicyId */ SecurityPolicyID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SecurityPolicyGetUsingGETParams contains all the parameters to send to the API endpoint
for the security policy get using g e t operation. Typically these are written to a http.Request.
func NewSecurityPolicyGetUsingGETParams ¶
func NewSecurityPolicyGetUsingGETParams() *SecurityPolicyGetUsingGETParams
NewSecurityPolicyGetUsingGETParams creates a new SecurityPolicyGetUsingGETParams 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 NewSecurityPolicyGetUsingGETParamsWithContext ¶
func NewSecurityPolicyGetUsingGETParamsWithContext(ctx context.Context) *SecurityPolicyGetUsingGETParams
NewSecurityPolicyGetUsingGETParamsWithContext creates a new SecurityPolicyGetUsingGETParams object with the ability to set a context for a request.
func NewSecurityPolicyGetUsingGETParamsWithHTTPClient ¶
func NewSecurityPolicyGetUsingGETParamsWithHTTPClient(client *http.Client) *SecurityPolicyGetUsingGETParams
NewSecurityPolicyGetUsingGETParamsWithHTTPClient creates a new SecurityPolicyGetUsingGETParams object with the ability to set a custom HTTPClient for a request.
func NewSecurityPolicyGetUsingGETParamsWithTimeout ¶
func NewSecurityPolicyGetUsingGETParamsWithTimeout(timeout time.Duration) *SecurityPolicyGetUsingGETParams
NewSecurityPolicyGetUsingGETParamsWithTimeout creates a new SecurityPolicyGetUsingGETParams object with the ability to set a timeout on a request.
func (*SecurityPolicyGetUsingGETParams) SetContext ¶
func (o *SecurityPolicyGetUsingGETParams) SetContext(ctx context.Context)
SetContext adds the context to the security policy get using g e t params
func (*SecurityPolicyGetUsingGETParams) SetDefaults ¶ added in v1.2.4
func (o *SecurityPolicyGetUsingGETParams) SetDefaults()
SetDefaults hydrates default values in the security policy get using g e t params (not the query body).
All values with no default are reset to their zero value.
func (*SecurityPolicyGetUsingGETParams) SetHTTPClient ¶
func (o *SecurityPolicyGetUsingGETParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the security policy get using g e t params
func (*SecurityPolicyGetUsingGETParams) SetSecurityPolicyID ¶
func (o *SecurityPolicyGetUsingGETParams) SetSecurityPolicyID(securityPolicyID string)
SetSecurityPolicyID adds the securityPolicyId to the security policy get using g e t params
func (*SecurityPolicyGetUsingGETParams) SetTimeout ¶
func (o *SecurityPolicyGetUsingGETParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the security policy get using g e t params
func (*SecurityPolicyGetUsingGETParams) WithContext ¶
func (o *SecurityPolicyGetUsingGETParams) WithContext(ctx context.Context) *SecurityPolicyGetUsingGETParams
WithContext adds the context to the security policy get using g e t params
func (*SecurityPolicyGetUsingGETParams) WithDefaults ¶ added in v1.2.4
func (o *SecurityPolicyGetUsingGETParams) WithDefaults() *SecurityPolicyGetUsingGETParams
WithDefaults hydrates default values in the security policy get using g e t params (not the query body).
All values with no default are reset to their zero value.
func (*SecurityPolicyGetUsingGETParams) WithHTTPClient ¶
func (o *SecurityPolicyGetUsingGETParams) WithHTTPClient(client *http.Client) *SecurityPolicyGetUsingGETParams
WithHTTPClient adds the HTTPClient to the security policy get using g e t params
func (*SecurityPolicyGetUsingGETParams) WithSecurityPolicyID ¶
func (o *SecurityPolicyGetUsingGETParams) WithSecurityPolicyID(securityPolicyID string) *SecurityPolicyGetUsingGETParams
WithSecurityPolicyID adds the securityPolicyID to the security policy get using g e t params
func (*SecurityPolicyGetUsingGETParams) WithTimeout ¶
func (o *SecurityPolicyGetUsingGETParams) WithTimeout(timeout time.Duration) *SecurityPolicyGetUsingGETParams
WithTimeout adds the timeout to the security policy get using g e t params
func (*SecurityPolicyGetUsingGETParams) WriteToRequest ¶
func (o *SecurityPolicyGetUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SecurityPolicyGetUsingGETReader ¶
type SecurityPolicyGetUsingGETReader struct {
// contains filtered or unexported fields
}
SecurityPolicyGetUsingGETReader is a Reader for the SecurityPolicyGetUsingGET structure.
func (*SecurityPolicyGetUsingGETReader) ReadResponse ¶
func (o *SecurityPolicyGetUsingGETReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SecurityPolicyListUsingGETBadRequest ¶
type SecurityPolicyListUsingGETBadRequest struct {
Payload *models.ProxyResponseMessage
}
SecurityPolicyListUsingGETBadRequest describes a response with status code 400, with default header values.
Bad request, error occurred. For more details see log messages.
func NewSecurityPolicyListUsingGETBadRequest ¶
func NewSecurityPolicyListUsingGETBadRequest() *SecurityPolicyListUsingGETBadRequest
NewSecurityPolicyListUsingGETBadRequest creates a SecurityPolicyListUsingGETBadRequest with default headers values
func (*SecurityPolicyListUsingGETBadRequest) Error ¶
func (o *SecurityPolicyListUsingGETBadRequest) Error() string
func (*SecurityPolicyListUsingGETBadRequest) GetPayload ¶ added in v1.2.0
func (o *SecurityPolicyListUsingGETBadRequest) GetPayload() *models.ProxyResponseMessage
type SecurityPolicyListUsingGETOK ¶
type SecurityPolicyListUsingGETOK struct {
Payload *models.SecurityPolicyListResponse
}
SecurityPolicyListUsingGETOK describes a response with status code 200, with default header values.
OK
func NewSecurityPolicyListUsingGETOK ¶
func NewSecurityPolicyListUsingGETOK() *SecurityPolicyListUsingGETOK
NewSecurityPolicyListUsingGETOK creates a SecurityPolicyListUsingGETOK with default headers values
func (*SecurityPolicyListUsingGETOK) Error ¶
func (o *SecurityPolicyListUsingGETOK) Error() string
func (*SecurityPolicyListUsingGETOK) GetPayload ¶
func (o *SecurityPolicyListUsingGETOK) GetPayload() *models.SecurityPolicyListResponse
type SecurityPolicyListUsingGETParams ¶
type SecurityPolicyListUsingGETParams struct { /* DisplayName. displayName */ DisplayName *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SecurityPolicyListUsingGETParams contains all the parameters to send to the API endpoint
for the security policy list using g e t operation. Typically these are written to a http.Request.
func NewSecurityPolicyListUsingGETParams ¶
func NewSecurityPolicyListUsingGETParams() *SecurityPolicyListUsingGETParams
NewSecurityPolicyListUsingGETParams creates a new SecurityPolicyListUsingGETParams 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 NewSecurityPolicyListUsingGETParamsWithContext ¶
func NewSecurityPolicyListUsingGETParamsWithContext(ctx context.Context) *SecurityPolicyListUsingGETParams
NewSecurityPolicyListUsingGETParamsWithContext creates a new SecurityPolicyListUsingGETParams object with the ability to set a context for a request.
func NewSecurityPolicyListUsingGETParamsWithHTTPClient ¶
func NewSecurityPolicyListUsingGETParamsWithHTTPClient(client *http.Client) *SecurityPolicyListUsingGETParams
NewSecurityPolicyListUsingGETParamsWithHTTPClient creates a new SecurityPolicyListUsingGETParams object with the ability to set a custom HTTPClient for a request.
func NewSecurityPolicyListUsingGETParamsWithTimeout ¶
func NewSecurityPolicyListUsingGETParamsWithTimeout(timeout time.Duration) *SecurityPolicyListUsingGETParams
NewSecurityPolicyListUsingGETParamsWithTimeout creates a new SecurityPolicyListUsingGETParams object with the ability to set a timeout on a request.
func (*SecurityPolicyListUsingGETParams) SetContext ¶
func (o *SecurityPolicyListUsingGETParams) SetContext(ctx context.Context)
SetContext adds the context to the security policy list using g e t params
func (*SecurityPolicyListUsingGETParams) SetDefaults ¶ added in v1.2.4
func (o *SecurityPolicyListUsingGETParams) SetDefaults()
SetDefaults hydrates default values in the security policy list using g e t params (not the query body).
All values with no default are reset to their zero value.
func (*SecurityPolicyListUsingGETParams) SetDisplayName ¶
func (o *SecurityPolicyListUsingGETParams) SetDisplayName(displayName *string)
SetDisplayName adds the displayName to the security policy list using g e t params
func (*SecurityPolicyListUsingGETParams) SetHTTPClient ¶
func (o *SecurityPolicyListUsingGETParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the security policy list using g e t params
func (*SecurityPolicyListUsingGETParams) SetTimeout ¶
func (o *SecurityPolicyListUsingGETParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the security policy list using g e t params
func (*SecurityPolicyListUsingGETParams) WithContext ¶
func (o *SecurityPolicyListUsingGETParams) WithContext(ctx context.Context) *SecurityPolicyListUsingGETParams
WithContext adds the context to the security policy list using g e t params
func (*SecurityPolicyListUsingGETParams) WithDefaults ¶ added in v1.2.4
func (o *SecurityPolicyListUsingGETParams) WithDefaults() *SecurityPolicyListUsingGETParams
WithDefaults hydrates default values in the security policy list using g e t params (not the query body).
All values with no default are reset to their zero value.
func (*SecurityPolicyListUsingGETParams) WithDisplayName ¶
func (o *SecurityPolicyListUsingGETParams) WithDisplayName(displayName *string) *SecurityPolicyListUsingGETParams
WithDisplayName adds the displayName to the security policy list using g e t params
func (*SecurityPolicyListUsingGETParams) WithHTTPClient ¶
func (o *SecurityPolicyListUsingGETParams) WithHTTPClient(client *http.Client) *SecurityPolicyListUsingGETParams
WithHTTPClient adds the HTTPClient to the security policy list using g e t params
func (*SecurityPolicyListUsingGETParams) WithTimeout ¶
func (o *SecurityPolicyListUsingGETParams) WithTimeout(timeout time.Duration) *SecurityPolicyListUsingGETParams
WithTimeout adds the timeout to the security policy list using g e t params
func (*SecurityPolicyListUsingGETParams) WriteToRequest ¶
func (o *SecurityPolicyListUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SecurityPolicyListUsingGETReader ¶
type SecurityPolicyListUsingGETReader struct {
// contains filtered or unexported fields
}
SecurityPolicyListUsingGETReader is a Reader for the SecurityPolicyListUsingGET structure.
func (*SecurityPolicyListUsingGETReader) ReadResponse ¶
func (o *SecurityPolicyListUsingGETReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.