security_policy

package
v0.0.0-...-67cd95e Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT 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 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 (*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 (*GetSecurityPoliciesConnectionBadRequest) GetPayload

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 (*GetSecurityPoliciesConnectionOK) GetPayload

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

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

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

WithContext adds the context to the get security policies connection params

func (*GetSecurityPoliciesConnectionParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get security policies connection params

func (*GetSecurityPoliciesConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get security policies connection params

func (*GetSecurityPoliciesConnectionParams) WithTimeout

WithTimeout adds the timeout to the get security policies connection params

func (*GetSecurityPoliciesConnectionParams) WriteToRequest

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

WithContext adds the context to the get security policies params

func (*GetSecurityPoliciesParams) WithDefaults

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

WithRequestBody adds the requestBody to the get security policies params

func (*GetSecurityPoliciesParams) WithTimeout

WithTimeout adds the timeout to the get security policies params

func (*GetSecurityPoliciesParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL