Documentation ¶
Index ¶
- type Client
- func (a *Client) GetSecurityPolicies(params *GetSecurityPoliciesParams, opts ...ClientOption) (*GetSecurityPoliciesOK, error)
- func (a *Client) GetSecurityPoliciesConnection(params *GetSecurityPoliciesConnectionParams, opts ...ClientOption) (*GetSecurityPoliciesConnectionOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetSecurityPoliciesBadRequest
- type GetSecurityPoliciesConnectionBadRequest
- type GetSecurityPoliciesConnectionOK
- type GetSecurityPoliciesConnectionParams
- func NewGetSecurityPoliciesConnectionParams() *GetSecurityPoliciesConnectionParams
- func NewGetSecurityPoliciesConnectionParamsWithContext(ctx context.Context) *GetSecurityPoliciesConnectionParams
- func NewGetSecurityPoliciesConnectionParamsWithHTTPClient(client *http.Client) *GetSecurityPoliciesConnectionParams
- func NewGetSecurityPoliciesConnectionParamsWithTimeout(timeout time.Duration) *GetSecurityPoliciesConnectionParams
- func (o *GetSecurityPoliciesConnectionParams) SetContentLanguage(contentLanguage *string)
- func (o *GetSecurityPoliciesConnectionParams) SetContext(ctx context.Context)
- func (o *GetSecurityPoliciesConnectionParams) SetDefaults()
- func (o *GetSecurityPoliciesConnectionParams) SetHTTPClient(client *http.Client)
- func (o *GetSecurityPoliciesConnectionParams) SetRequestBody(requestBody *models.GetSecurityPoliciesConnectionRequestBody)
- func (o *GetSecurityPoliciesConnectionParams) SetTimeout(timeout time.Duration)
- func (o *GetSecurityPoliciesConnectionParams) WithContentLanguage(contentLanguage *string) *GetSecurityPoliciesConnectionParams
- func (o *GetSecurityPoliciesConnectionParams) WithContext(ctx context.Context) *GetSecurityPoliciesConnectionParams
- func (o *GetSecurityPoliciesConnectionParams) WithDefaults() *GetSecurityPoliciesConnectionParams
- func (o *GetSecurityPoliciesConnectionParams) WithHTTPClient(client *http.Client) *GetSecurityPoliciesConnectionParams
- func (o *GetSecurityPoliciesConnectionParams) WithRequestBody(requestBody *models.GetSecurityPoliciesConnectionRequestBody) *GetSecurityPoliciesConnectionParams
- func (o *GetSecurityPoliciesConnectionParams) WithTimeout(timeout time.Duration) *GetSecurityPoliciesConnectionParams
- func (o *GetSecurityPoliciesConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSecurityPoliciesConnectionReader
- type GetSecurityPoliciesOK
- type GetSecurityPoliciesParams
- func NewGetSecurityPoliciesParams() *GetSecurityPoliciesParams
- func NewGetSecurityPoliciesParamsWithContext(ctx context.Context) *GetSecurityPoliciesParams
- func NewGetSecurityPoliciesParamsWithHTTPClient(client *http.Client) *GetSecurityPoliciesParams
- func NewGetSecurityPoliciesParamsWithTimeout(timeout time.Duration) *GetSecurityPoliciesParams
- func (o *GetSecurityPoliciesParams) SetContentLanguage(contentLanguage *string)
- func (o *GetSecurityPoliciesParams) SetContext(ctx context.Context)
- func (o *GetSecurityPoliciesParams) SetDefaults()
- func (o *GetSecurityPoliciesParams) SetHTTPClient(client *http.Client)
- func (o *GetSecurityPoliciesParams) SetRequestBody(requestBody *models.GetSecurityPoliciesRequestBody)
- func (o *GetSecurityPoliciesParams) SetTimeout(timeout time.Duration)
- func (o *GetSecurityPoliciesParams) WithContentLanguage(contentLanguage *string) *GetSecurityPoliciesParams
- func (o *GetSecurityPoliciesParams) WithContext(ctx context.Context) *GetSecurityPoliciesParams
- func (o *GetSecurityPoliciesParams) WithDefaults() *GetSecurityPoliciesParams
- func (o *GetSecurityPoliciesParams) WithHTTPClient(client *http.Client) *GetSecurityPoliciesParams
- func (o *GetSecurityPoliciesParams) WithRequestBody(requestBody *models.GetSecurityPoliciesRequestBody) *GetSecurityPoliciesParams
- func (o *GetSecurityPoliciesParams) WithTimeout(timeout time.Duration) *GetSecurityPoliciesParams
- func (o *GetSecurityPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSecurityPoliciesReader
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 policy API
func (*Client) GetSecurityPolicies ¶
func (a *Client) GetSecurityPolicies(params *GetSecurityPoliciesParams, opts ...ClientOption) (*GetSecurityPoliciesOK, error)
GetSecurityPolicies get security policies API
func (*Client) GetSecurityPoliciesConnection ¶
func (a *Client) GetSecurityPoliciesConnection(params *GetSecurityPoliciesConnectionParams, opts ...ClientOption) (*GetSecurityPoliciesConnectionOK, error)
GetSecurityPoliciesConnection get security policies connection API
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 { GetSecurityPolicies(params *GetSecurityPoliciesParams, opts ...ClientOption) (*GetSecurityPoliciesOK, error) GetSecurityPoliciesConnection(params *GetSecurityPoliciesConnectionParams, opts ...ClientOption) (*GetSecurityPoliciesConnectionOK, 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 policy API client.
type GetSecurityPoliciesBadRequest ¶
type GetSecurityPoliciesBadRequest struct {
Payload string
}
GetSecurityPoliciesBadRequest describes a response with status code 400, with default header values.
GetSecurityPoliciesBadRequest get security policies bad request
func NewGetSecurityPoliciesBadRequest ¶
func NewGetSecurityPoliciesBadRequest() *GetSecurityPoliciesBadRequest
NewGetSecurityPoliciesBadRequest creates a GetSecurityPoliciesBadRequest with default headers values
func (*GetSecurityPoliciesBadRequest) Error ¶
func (o *GetSecurityPoliciesBadRequest) Error() string
func (*GetSecurityPoliciesBadRequest) GetPayload ¶
func (o *GetSecurityPoliciesBadRequest) GetPayload() string
type GetSecurityPoliciesConnectionBadRequest ¶
type GetSecurityPoliciesConnectionBadRequest struct {
Payload string
}
GetSecurityPoliciesConnectionBadRequest describes a response with status code 400, with default header values.
GetSecurityPoliciesConnectionBadRequest get security policies connection bad request
func NewGetSecurityPoliciesConnectionBadRequest ¶
func NewGetSecurityPoliciesConnectionBadRequest() *GetSecurityPoliciesConnectionBadRequest
NewGetSecurityPoliciesConnectionBadRequest creates a GetSecurityPoliciesConnectionBadRequest with default headers values
func (*GetSecurityPoliciesConnectionBadRequest) Error ¶
func (o *GetSecurityPoliciesConnectionBadRequest) Error() string
func (*GetSecurityPoliciesConnectionBadRequest) GetPayload ¶
func (o *GetSecurityPoliciesConnectionBadRequest) GetPayload() string
type GetSecurityPoliciesConnectionOK ¶
type GetSecurityPoliciesConnectionOK struct {
Payload *models.SecurityPolicyConnection
}
GetSecurityPoliciesConnectionOK describes a response with status code 200, with default header values.
Ok
func NewGetSecurityPoliciesConnectionOK ¶
func NewGetSecurityPoliciesConnectionOK() *GetSecurityPoliciesConnectionOK
NewGetSecurityPoliciesConnectionOK creates a GetSecurityPoliciesConnectionOK with default headers values
func (*GetSecurityPoliciesConnectionOK) Error ¶
func (o *GetSecurityPoliciesConnectionOK) Error() string
func (*GetSecurityPoliciesConnectionOK) GetPayload ¶
func (o *GetSecurityPoliciesConnectionOK) GetPayload() *models.SecurityPolicyConnection
type GetSecurityPoliciesConnectionParams ¶
type GetSecurityPoliciesConnectionParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetSecurityPoliciesConnectionRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSecurityPoliciesConnectionParams contains all the parameters to send to the API endpoint
for the get security policies connection operation. Typically these are written to a http.Request.
func NewGetSecurityPoliciesConnectionParams ¶
func NewGetSecurityPoliciesConnectionParams() *GetSecurityPoliciesConnectionParams
NewGetSecurityPoliciesConnectionParams creates a new GetSecurityPoliciesConnectionParams 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 NewGetSecurityPoliciesConnectionParamsWithContext ¶
func NewGetSecurityPoliciesConnectionParamsWithContext(ctx context.Context) *GetSecurityPoliciesConnectionParams
NewGetSecurityPoliciesConnectionParamsWithContext creates a new GetSecurityPoliciesConnectionParams object with the ability to set a context for a request.
func NewGetSecurityPoliciesConnectionParamsWithHTTPClient ¶
func NewGetSecurityPoliciesConnectionParamsWithHTTPClient(client *http.Client) *GetSecurityPoliciesConnectionParams
NewGetSecurityPoliciesConnectionParamsWithHTTPClient creates a new GetSecurityPoliciesConnectionParams object with the ability to set a custom HTTPClient for a request.
func NewGetSecurityPoliciesConnectionParamsWithTimeout ¶
func NewGetSecurityPoliciesConnectionParamsWithTimeout(timeout time.Duration) *GetSecurityPoliciesConnectionParams
NewGetSecurityPoliciesConnectionParamsWithTimeout creates a new GetSecurityPoliciesConnectionParams object with the ability to set a timeout on a request.
func (*GetSecurityPoliciesConnectionParams) SetContentLanguage ¶
func (o *GetSecurityPoliciesConnectionParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get security policies connection params
func (*GetSecurityPoliciesConnectionParams) SetContext ¶
func (o *GetSecurityPoliciesConnectionParams) SetContext(ctx context.Context)
SetContext adds the context to the get security policies connection params
func (*GetSecurityPoliciesConnectionParams) SetDefaults ¶
func (o *GetSecurityPoliciesConnectionParams) SetDefaults()
SetDefaults hydrates default values in the get security policies connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetSecurityPoliciesConnectionParams) SetHTTPClient ¶
func (o *GetSecurityPoliciesConnectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get security policies connection params
func (*GetSecurityPoliciesConnectionParams) SetRequestBody ¶
func (o *GetSecurityPoliciesConnectionParams) SetRequestBody(requestBody *models.GetSecurityPoliciesConnectionRequestBody)
SetRequestBody adds the requestBody to the get security policies connection params
func (*GetSecurityPoliciesConnectionParams) SetTimeout ¶
func (o *GetSecurityPoliciesConnectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get security policies connection params
func (*GetSecurityPoliciesConnectionParams) WithContentLanguage ¶
func (o *GetSecurityPoliciesConnectionParams) WithContentLanguage(contentLanguage *string) *GetSecurityPoliciesConnectionParams
WithContentLanguage adds the contentLanguage to the get security policies connection params
func (*GetSecurityPoliciesConnectionParams) WithContext ¶
func (o *GetSecurityPoliciesConnectionParams) WithContext(ctx context.Context) *GetSecurityPoliciesConnectionParams
WithContext adds the context to the get security policies connection params
func (*GetSecurityPoliciesConnectionParams) WithDefaults ¶
func (o *GetSecurityPoliciesConnectionParams) WithDefaults() *GetSecurityPoliciesConnectionParams
WithDefaults hydrates default values in the get security policies connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetSecurityPoliciesConnectionParams) WithHTTPClient ¶
func (o *GetSecurityPoliciesConnectionParams) WithHTTPClient(client *http.Client) *GetSecurityPoliciesConnectionParams
WithHTTPClient adds the HTTPClient to the get security policies connection params
func (*GetSecurityPoliciesConnectionParams) WithRequestBody ¶
func (o *GetSecurityPoliciesConnectionParams) WithRequestBody(requestBody *models.GetSecurityPoliciesConnectionRequestBody) *GetSecurityPoliciesConnectionParams
WithRequestBody adds the requestBody to the get security policies connection params
func (*GetSecurityPoliciesConnectionParams) WithTimeout ¶
func (o *GetSecurityPoliciesConnectionParams) WithTimeout(timeout time.Duration) *GetSecurityPoliciesConnectionParams
WithTimeout adds the timeout to the get security policies connection params
func (*GetSecurityPoliciesConnectionParams) WriteToRequest ¶
func (o *GetSecurityPoliciesConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSecurityPoliciesConnectionReader ¶
type GetSecurityPoliciesConnectionReader struct {
// contains filtered or unexported fields
}
GetSecurityPoliciesConnectionReader is a Reader for the GetSecurityPoliciesConnection structure.
func (*GetSecurityPoliciesConnectionReader) ReadResponse ¶
func (o *GetSecurityPoliciesConnectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSecurityPoliciesOK ¶
type GetSecurityPoliciesOK struct {
Payload []*models.SecurityPolicy
}
GetSecurityPoliciesOK describes a response with status code 200, with default header values.
Ok
func NewGetSecurityPoliciesOK ¶
func NewGetSecurityPoliciesOK() *GetSecurityPoliciesOK
NewGetSecurityPoliciesOK creates a GetSecurityPoliciesOK with default headers values
func (*GetSecurityPoliciesOK) Error ¶
func (o *GetSecurityPoliciesOK) Error() string
func (*GetSecurityPoliciesOK) GetPayload ¶
func (o *GetSecurityPoliciesOK) GetPayload() []*models.SecurityPolicy
type GetSecurityPoliciesParams ¶
type GetSecurityPoliciesParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetSecurityPoliciesRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSecurityPoliciesParams contains all the parameters to send to the API endpoint
for the get security policies operation. Typically these are written to a http.Request.
func NewGetSecurityPoliciesParams ¶
func NewGetSecurityPoliciesParams() *GetSecurityPoliciesParams
NewGetSecurityPoliciesParams creates a new GetSecurityPoliciesParams 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 NewGetSecurityPoliciesParamsWithContext ¶
func NewGetSecurityPoliciesParamsWithContext(ctx context.Context) *GetSecurityPoliciesParams
NewGetSecurityPoliciesParamsWithContext creates a new GetSecurityPoliciesParams object with the ability to set a context for a request.
func NewGetSecurityPoliciesParamsWithHTTPClient ¶
func NewGetSecurityPoliciesParamsWithHTTPClient(client *http.Client) *GetSecurityPoliciesParams
NewGetSecurityPoliciesParamsWithHTTPClient creates a new GetSecurityPoliciesParams object with the ability to set a custom HTTPClient for a request.
func NewGetSecurityPoliciesParamsWithTimeout ¶
func NewGetSecurityPoliciesParamsWithTimeout(timeout time.Duration) *GetSecurityPoliciesParams
NewGetSecurityPoliciesParamsWithTimeout creates a new GetSecurityPoliciesParams object with the ability to set a timeout on a request.
func (*GetSecurityPoliciesParams) SetContentLanguage ¶
func (o *GetSecurityPoliciesParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get security policies params
func (*GetSecurityPoliciesParams) SetContext ¶
func (o *GetSecurityPoliciesParams) SetContext(ctx context.Context)
SetContext adds the context to the get security policies params
func (*GetSecurityPoliciesParams) SetDefaults ¶
func (o *GetSecurityPoliciesParams) SetDefaults()
SetDefaults hydrates default values in the get security policies params (not the query body).
All values with no default are reset to their zero value.
func (*GetSecurityPoliciesParams) SetHTTPClient ¶
func (o *GetSecurityPoliciesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get security policies params
func (*GetSecurityPoliciesParams) SetRequestBody ¶
func (o *GetSecurityPoliciesParams) SetRequestBody(requestBody *models.GetSecurityPoliciesRequestBody)
SetRequestBody adds the requestBody to the get security policies params
func (*GetSecurityPoliciesParams) SetTimeout ¶
func (o *GetSecurityPoliciesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get security policies params
func (*GetSecurityPoliciesParams) WithContentLanguage ¶
func (o *GetSecurityPoliciesParams) WithContentLanguage(contentLanguage *string) *GetSecurityPoliciesParams
WithContentLanguage adds the contentLanguage to the get security policies params
func (*GetSecurityPoliciesParams) WithContext ¶
func (o *GetSecurityPoliciesParams) WithContext(ctx context.Context) *GetSecurityPoliciesParams
WithContext adds the context to the get security policies params
func (*GetSecurityPoliciesParams) WithDefaults ¶
func (o *GetSecurityPoliciesParams) WithDefaults() *GetSecurityPoliciesParams
WithDefaults hydrates default values in the get security policies params (not the query body).
All values with no default are reset to their zero value.
func (*GetSecurityPoliciesParams) WithHTTPClient ¶
func (o *GetSecurityPoliciesParams) WithHTTPClient(client *http.Client) *GetSecurityPoliciesParams
WithHTTPClient adds the HTTPClient to the get security policies params
func (*GetSecurityPoliciesParams) WithRequestBody ¶
func (o *GetSecurityPoliciesParams) WithRequestBody(requestBody *models.GetSecurityPoliciesRequestBody) *GetSecurityPoliciesParams
WithRequestBody adds the requestBody to the get security policies params
func (*GetSecurityPoliciesParams) WithTimeout ¶
func (o *GetSecurityPoliciesParams) WithTimeout(timeout time.Duration) *GetSecurityPoliciesParams
WithTimeout adds the timeout to the get security policies params
func (*GetSecurityPoliciesParams) WriteToRequest ¶
func (o *GetSecurityPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSecurityPoliciesReader ¶
type GetSecurityPoliciesReader struct {
// contains filtered or unexported fields
}
GetSecurityPoliciesReader is a Reader for the GetSecurityPolicies structure.
func (*GetSecurityPoliciesReader) ReadResponse ¶
func (o *GetSecurityPoliciesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.