security_policy

package
v2.15.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: ISC 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) CreateSecurityPolicy added in v2.9.0

func (a *Client) CreateSecurityPolicy(params *CreateSecurityPolicyParams, opts ...ClientOption) (*CreateSecurityPolicyOK, error)

CreateSecurityPolicy create security policy API

func (*Client) DeleteSecurityPolicy added in v2.9.0

func (a *Client) DeleteSecurityPolicy(params *DeleteSecurityPolicyParams, opts ...ClientOption) (*DeleteSecurityPolicyOK, error)

DeleteSecurityPolicy delete 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

func (*Client) UpdateSecurityPolicy added in v2.9.0

func (a *Client) UpdateSecurityPolicy(params *UpdateSecurityPolicyParams, opts ...ClientOption) (*UpdateSecurityPolicyOK, error)

UpdateSecurityPolicy update security policy API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateSecurityPolicy(params *CreateSecurityPolicyParams, opts ...ClientOption) (*CreateSecurityPolicyOK, error)

	DeleteSecurityPolicy(params *DeleteSecurityPolicyParams, opts ...ClientOption) (*DeleteSecurityPolicyOK, error)

	GetSecurityPolicies(params *GetSecurityPoliciesParams, opts ...ClientOption) (*GetSecurityPoliciesOK, error)

	GetSecurityPoliciesConnection(params *GetSecurityPoliciesConnectionParams, opts ...ClientOption) (*GetSecurityPoliciesConnectionOK, error)

	UpdateSecurityPolicy(params *UpdateSecurityPolicyParams, opts ...ClientOption) (*UpdateSecurityPolicyOK, 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 CreateSecurityPolicyBadRequest added in v2.9.0

type CreateSecurityPolicyBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateSecurityPolicyBadRequest describes a response with status code 400, with default header values.

Bad request

func NewCreateSecurityPolicyBadRequest added in v2.9.0

func NewCreateSecurityPolicyBadRequest() *CreateSecurityPolicyBadRequest

NewCreateSecurityPolicyBadRequest creates a CreateSecurityPolicyBadRequest with default headers values

func (*CreateSecurityPolicyBadRequest) Error added in v2.9.0

func (*CreateSecurityPolicyBadRequest) GetPayload added in v2.9.0

type CreateSecurityPolicyInternalServerError added in v2.9.0

type CreateSecurityPolicyInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateSecurityPolicyInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCreateSecurityPolicyInternalServerError added in v2.9.0

func NewCreateSecurityPolicyInternalServerError() *CreateSecurityPolicyInternalServerError

NewCreateSecurityPolicyInternalServerError creates a CreateSecurityPolicyInternalServerError with default headers values

func (*CreateSecurityPolicyInternalServerError) Error added in v2.9.0

func (*CreateSecurityPolicyInternalServerError) GetPayload added in v2.9.0

type CreateSecurityPolicyNotFound added in v2.9.0

type CreateSecurityPolicyNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateSecurityPolicyNotFound describes a response with status code 404, with default header values.

Not found

func NewCreateSecurityPolicyNotFound added in v2.9.0

func NewCreateSecurityPolicyNotFound() *CreateSecurityPolicyNotFound

NewCreateSecurityPolicyNotFound creates a CreateSecurityPolicyNotFound with default headers values

func (*CreateSecurityPolicyNotFound) Error added in v2.9.0

func (*CreateSecurityPolicyNotFound) GetPayload added in v2.9.0

type CreateSecurityPolicyOK added in v2.9.0

type CreateSecurityPolicyOK struct {
	XTowerRequestID string

	Payload *models.WithTaskSecurityPolicy
}
CreateSecurityPolicyOK describes a response with status code 200, with default header values.

CreateSecurityPolicyOK create security policy o k

func NewCreateSecurityPolicyOK added in v2.9.0

func NewCreateSecurityPolicyOK() *CreateSecurityPolicyOK

NewCreateSecurityPolicyOK creates a CreateSecurityPolicyOK with default headers values

func (*CreateSecurityPolicyOK) Error added in v2.9.0

func (o *CreateSecurityPolicyOK) Error() string

func (*CreateSecurityPolicyOK) GetPayload added in v2.9.0

type CreateSecurityPolicyParams added in v2.9.0

type CreateSecurityPolicyParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.SecurityPolicyCreateParams

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateSecurityPolicyParams contains all the parameters to send to the API endpoint

for the create security policy operation.

Typically these are written to a http.Request.

func NewCreateSecurityPolicyParams added in v2.9.0

func NewCreateSecurityPolicyParams() *CreateSecurityPolicyParams

NewCreateSecurityPolicyParams creates a new CreateSecurityPolicyParams 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 NewCreateSecurityPolicyParamsWithContext added in v2.9.0

func NewCreateSecurityPolicyParamsWithContext(ctx context.Context) *CreateSecurityPolicyParams

NewCreateSecurityPolicyParamsWithContext creates a new CreateSecurityPolicyParams object with the ability to set a context for a request.

func NewCreateSecurityPolicyParamsWithHTTPClient added in v2.9.0

func NewCreateSecurityPolicyParamsWithHTTPClient(client *http.Client) *CreateSecurityPolicyParams

NewCreateSecurityPolicyParamsWithHTTPClient creates a new CreateSecurityPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewCreateSecurityPolicyParamsWithTimeout added in v2.9.0

func NewCreateSecurityPolicyParamsWithTimeout(timeout time.Duration) *CreateSecurityPolicyParams

NewCreateSecurityPolicyParamsWithTimeout creates a new CreateSecurityPolicyParams object with the ability to set a timeout on a request.

func (*CreateSecurityPolicyParams) SetContentLanguage added in v2.9.0

func (o *CreateSecurityPolicyParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the create security policy params

func (*CreateSecurityPolicyParams) SetContext added in v2.9.0

func (o *CreateSecurityPolicyParams) SetContext(ctx context.Context)

SetContext adds the context to the create security policy params

func (*CreateSecurityPolicyParams) SetDefaults added in v2.9.0

func (o *CreateSecurityPolicyParams) SetDefaults()

SetDefaults hydrates default values in the create security policy params (not the query body).

All values with no default are reset to their zero value.

func (*CreateSecurityPolicyParams) SetHTTPClient added in v2.9.0

func (o *CreateSecurityPolicyParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create security policy params

func (*CreateSecurityPolicyParams) SetRequestBody added in v2.9.0

func (o *CreateSecurityPolicyParams) SetRequestBody(requestBody *models.SecurityPolicyCreateParams)

SetRequestBody adds the requestBody to the create security policy params

func (*CreateSecurityPolicyParams) SetTimeout added in v2.9.0

func (o *CreateSecurityPolicyParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create security policy params

func (*CreateSecurityPolicyParams) WithContentLanguage added in v2.9.0

func (o *CreateSecurityPolicyParams) WithContentLanguage(contentLanguage *string) *CreateSecurityPolicyParams

WithContentLanguage adds the contentLanguage to the create security policy params

func (*CreateSecurityPolicyParams) WithContext added in v2.9.0

WithContext adds the context to the create security policy params

func (*CreateSecurityPolicyParams) WithDefaults added in v2.9.0

WithDefaults hydrates default values in the create security policy params (not the query body).

All values with no default are reset to their zero value.

func (*CreateSecurityPolicyParams) WithHTTPClient added in v2.9.0

WithHTTPClient adds the HTTPClient to the create security policy params

func (*CreateSecurityPolicyParams) WithRequestBody added in v2.9.0

WithRequestBody adds the requestBody to the create security policy params

func (*CreateSecurityPolicyParams) WithTimeout added in v2.9.0

WithTimeout adds the timeout to the create security policy params

func (*CreateSecurityPolicyParams) WriteToRequest added in v2.9.0

WriteToRequest writes these params to a swagger request

type CreateSecurityPolicyReader added in v2.9.0

type CreateSecurityPolicyReader struct {
	// contains filtered or unexported fields
}

CreateSecurityPolicyReader is a Reader for the CreateSecurityPolicy structure.

func (*CreateSecurityPolicyReader) ReadResponse added in v2.9.0

func (o *CreateSecurityPolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteSecurityPolicyBadRequest added in v2.9.0

type DeleteSecurityPolicyBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
DeleteSecurityPolicyBadRequest describes a response with status code 400, with default header values.

Bad request

func NewDeleteSecurityPolicyBadRequest added in v2.9.0

func NewDeleteSecurityPolicyBadRequest() *DeleteSecurityPolicyBadRequest

NewDeleteSecurityPolicyBadRequest creates a DeleteSecurityPolicyBadRequest with default headers values

func (*DeleteSecurityPolicyBadRequest) Error added in v2.9.0

func (*DeleteSecurityPolicyBadRequest) GetPayload added in v2.9.0

type DeleteSecurityPolicyInternalServerError added in v2.9.0

type DeleteSecurityPolicyInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
DeleteSecurityPolicyInternalServerError describes a response with status code 500, with default header values.

Server error

func NewDeleteSecurityPolicyInternalServerError added in v2.9.0

func NewDeleteSecurityPolicyInternalServerError() *DeleteSecurityPolicyInternalServerError

NewDeleteSecurityPolicyInternalServerError creates a DeleteSecurityPolicyInternalServerError with default headers values

func (*DeleteSecurityPolicyInternalServerError) Error added in v2.9.0

func (*DeleteSecurityPolicyInternalServerError) GetPayload added in v2.9.0

type DeleteSecurityPolicyNotFound added in v2.9.0

type DeleteSecurityPolicyNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
DeleteSecurityPolicyNotFound describes a response with status code 404, with default header values.

Not found

func NewDeleteSecurityPolicyNotFound added in v2.9.0

func NewDeleteSecurityPolicyNotFound() *DeleteSecurityPolicyNotFound

NewDeleteSecurityPolicyNotFound creates a DeleteSecurityPolicyNotFound with default headers values

func (*DeleteSecurityPolicyNotFound) Error added in v2.9.0

func (*DeleteSecurityPolicyNotFound) GetPayload added in v2.9.0

type DeleteSecurityPolicyOK added in v2.9.0

type DeleteSecurityPolicyOK struct {
	XTowerRequestID string

	Payload []*models.WithTaskDeleteSecurityPolicy
}
DeleteSecurityPolicyOK describes a response with status code 200, with default header values.

DeleteSecurityPolicyOK delete security policy o k

func NewDeleteSecurityPolicyOK added in v2.9.0

func NewDeleteSecurityPolicyOK() *DeleteSecurityPolicyOK

NewDeleteSecurityPolicyOK creates a DeleteSecurityPolicyOK with default headers values

func (*DeleteSecurityPolicyOK) Error added in v2.9.0

func (o *DeleteSecurityPolicyOK) Error() string

func (*DeleteSecurityPolicyOK) GetPayload added in v2.9.0

type DeleteSecurityPolicyParams added in v2.9.0

type DeleteSecurityPolicyParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.SecurityPolicyDeleteParams

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteSecurityPolicyParams contains all the parameters to send to the API endpoint

for the delete security policy operation.

Typically these are written to a http.Request.

func NewDeleteSecurityPolicyParams added in v2.9.0

func NewDeleteSecurityPolicyParams() *DeleteSecurityPolicyParams

NewDeleteSecurityPolicyParams creates a new DeleteSecurityPolicyParams 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 NewDeleteSecurityPolicyParamsWithContext added in v2.9.0

func NewDeleteSecurityPolicyParamsWithContext(ctx context.Context) *DeleteSecurityPolicyParams

NewDeleteSecurityPolicyParamsWithContext creates a new DeleteSecurityPolicyParams object with the ability to set a context for a request.

func NewDeleteSecurityPolicyParamsWithHTTPClient added in v2.9.0

func NewDeleteSecurityPolicyParamsWithHTTPClient(client *http.Client) *DeleteSecurityPolicyParams

NewDeleteSecurityPolicyParamsWithHTTPClient creates a new DeleteSecurityPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteSecurityPolicyParamsWithTimeout added in v2.9.0

func NewDeleteSecurityPolicyParamsWithTimeout(timeout time.Duration) *DeleteSecurityPolicyParams

NewDeleteSecurityPolicyParamsWithTimeout creates a new DeleteSecurityPolicyParams object with the ability to set a timeout on a request.

func (*DeleteSecurityPolicyParams) SetContentLanguage added in v2.9.0

func (o *DeleteSecurityPolicyParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the delete security policy params

func (*DeleteSecurityPolicyParams) SetContext added in v2.9.0

func (o *DeleteSecurityPolicyParams) SetContext(ctx context.Context)

SetContext adds the context to the delete security policy params

func (*DeleteSecurityPolicyParams) SetDefaults added in v2.9.0

func (o *DeleteSecurityPolicyParams) SetDefaults()

SetDefaults hydrates default values in the delete security policy params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteSecurityPolicyParams) SetHTTPClient added in v2.9.0

func (o *DeleteSecurityPolicyParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete security policy params

func (*DeleteSecurityPolicyParams) SetRequestBody added in v2.9.0

func (o *DeleteSecurityPolicyParams) SetRequestBody(requestBody *models.SecurityPolicyDeleteParams)

SetRequestBody adds the requestBody to the delete security policy params

func (*DeleteSecurityPolicyParams) SetTimeout added in v2.9.0

func (o *DeleteSecurityPolicyParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete security policy params

func (*DeleteSecurityPolicyParams) WithContentLanguage added in v2.9.0

func (o *DeleteSecurityPolicyParams) WithContentLanguage(contentLanguage *string) *DeleteSecurityPolicyParams

WithContentLanguage adds the contentLanguage to the delete security policy params

func (*DeleteSecurityPolicyParams) WithContext added in v2.9.0

WithContext adds the context to the delete security policy params

func (*DeleteSecurityPolicyParams) WithDefaults added in v2.9.0

WithDefaults hydrates default values in the delete security policy params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteSecurityPolicyParams) WithHTTPClient added in v2.9.0

WithHTTPClient adds the HTTPClient to the delete security policy params

func (*DeleteSecurityPolicyParams) WithRequestBody added in v2.9.0

WithRequestBody adds the requestBody to the delete security policy params

func (*DeleteSecurityPolicyParams) WithTimeout added in v2.9.0

WithTimeout adds the timeout to the delete security policy params

func (*DeleteSecurityPolicyParams) WriteToRequest added in v2.9.0

WriteToRequest writes these params to a swagger request

type DeleteSecurityPolicyReader added in v2.9.0

type DeleteSecurityPolicyReader struct {
	// contains filtered or unexported fields
}

DeleteSecurityPolicyReader is a Reader for the DeleteSecurityPolicy structure.

func (*DeleteSecurityPolicyReader) ReadResponse added in v2.9.0

func (o *DeleteSecurityPolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetSecurityPoliciesBadRequest

type GetSecurityPoliciesBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetSecurityPoliciesBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetSecurityPoliciesBadRequest

func NewGetSecurityPoliciesBadRequest() *GetSecurityPoliciesBadRequest

NewGetSecurityPoliciesBadRequest creates a GetSecurityPoliciesBadRequest with default headers values

func (*GetSecurityPoliciesBadRequest) Error

func (*GetSecurityPoliciesBadRequest) GetPayload

type GetSecurityPoliciesConnectionBadRequest

type GetSecurityPoliciesConnectionBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetSecurityPoliciesConnectionBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetSecurityPoliciesConnectionBadRequest

func NewGetSecurityPoliciesConnectionBadRequest() *GetSecurityPoliciesConnectionBadRequest

NewGetSecurityPoliciesConnectionBadRequest creates a GetSecurityPoliciesConnectionBadRequest with default headers values

func (*GetSecurityPoliciesConnectionBadRequest) Error

func (*GetSecurityPoliciesConnectionBadRequest) GetPayload

type GetSecurityPoliciesConnectionInternalServerError

type GetSecurityPoliciesConnectionInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetSecurityPoliciesConnectionInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetSecurityPoliciesConnectionInternalServerError

func NewGetSecurityPoliciesConnectionInternalServerError() *GetSecurityPoliciesConnectionInternalServerError

NewGetSecurityPoliciesConnectionInternalServerError creates a GetSecurityPoliciesConnectionInternalServerError with default headers values

func (*GetSecurityPoliciesConnectionInternalServerError) Error

func (*GetSecurityPoliciesConnectionInternalServerError) GetPayload

type GetSecurityPoliciesConnectionNotFound

type GetSecurityPoliciesConnectionNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetSecurityPoliciesConnectionNotFound describes a response with status code 404, with default header values.

Not found

func NewGetSecurityPoliciesConnectionNotFound

func NewGetSecurityPoliciesConnectionNotFound() *GetSecurityPoliciesConnectionNotFound

NewGetSecurityPoliciesConnectionNotFound creates a GetSecurityPoliciesConnectionNotFound with default headers values

func (*GetSecurityPoliciesConnectionNotFound) Error

func (*GetSecurityPoliciesConnectionNotFound) GetPayload

type GetSecurityPoliciesConnectionOK

type GetSecurityPoliciesConnectionOK struct {
	XTowerRequestID string

	Payload *models.SecurityPolicyConnection
}
GetSecurityPoliciesConnectionOK describes a response with status code 200, with default header values.

GetSecurityPoliciesConnectionOK get security policies connection o k

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 GetSecurityPoliciesInternalServerError

type GetSecurityPoliciesInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetSecurityPoliciesInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetSecurityPoliciesInternalServerError

func NewGetSecurityPoliciesInternalServerError() *GetSecurityPoliciesInternalServerError

NewGetSecurityPoliciesInternalServerError creates a GetSecurityPoliciesInternalServerError with default headers values

func (*GetSecurityPoliciesInternalServerError) Error

func (*GetSecurityPoliciesInternalServerError) GetPayload

type GetSecurityPoliciesNotFound

type GetSecurityPoliciesNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetSecurityPoliciesNotFound describes a response with status code 404, with default header values.

Not found

func NewGetSecurityPoliciesNotFound

func NewGetSecurityPoliciesNotFound() *GetSecurityPoliciesNotFound

NewGetSecurityPoliciesNotFound creates a GetSecurityPoliciesNotFound with default headers values

func (*GetSecurityPoliciesNotFound) Error

func (*GetSecurityPoliciesNotFound) GetPayload

func (o *GetSecurityPoliciesNotFound) GetPayload() *models.ErrorBody

type GetSecurityPoliciesOK

type GetSecurityPoliciesOK struct {
	XTowerRequestID string

	Payload []*models.SecurityPolicy
}
GetSecurityPoliciesOK describes a response with status code 200, with default header values.

GetSecurityPoliciesOK get security policies o k

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.

type UpdateSecurityPolicyBadRequest added in v2.9.0

type UpdateSecurityPolicyBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateSecurityPolicyBadRequest describes a response with status code 400, with default header values.

Bad request

func NewUpdateSecurityPolicyBadRequest added in v2.9.0

func NewUpdateSecurityPolicyBadRequest() *UpdateSecurityPolicyBadRequest

NewUpdateSecurityPolicyBadRequest creates a UpdateSecurityPolicyBadRequest with default headers values

func (*UpdateSecurityPolicyBadRequest) Error added in v2.9.0

func (*UpdateSecurityPolicyBadRequest) GetPayload added in v2.9.0

type UpdateSecurityPolicyInternalServerError added in v2.9.0

type UpdateSecurityPolicyInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateSecurityPolicyInternalServerError describes a response with status code 500, with default header values.

Server error

func NewUpdateSecurityPolicyInternalServerError added in v2.9.0

func NewUpdateSecurityPolicyInternalServerError() *UpdateSecurityPolicyInternalServerError

NewUpdateSecurityPolicyInternalServerError creates a UpdateSecurityPolicyInternalServerError with default headers values

func (*UpdateSecurityPolicyInternalServerError) Error added in v2.9.0

func (*UpdateSecurityPolicyInternalServerError) GetPayload added in v2.9.0

type UpdateSecurityPolicyNotFound added in v2.9.0

type UpdateSecurityPolicyNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateSecurityPolicyNotFound describes a response with status code 404, with default header values.

Not found

func NewUpdateSecurityPolicyNotFound added in v2.9.0

func NewUpdateSecurityPolicyNotFound() *UpdateSecurityPolicyNotFound

NewUpdateSecurityPolicyNotFound creates a UpdateSecurityPolicyNotFound with default headers values

func (*UpdateSecurityPolicyNotFound) Error added in v2.9.0

func (*UpdateSecurityPolicyNotFound) GetPayload added in v2.9.0

type UpdateSecurityPolicyOK added in v2.9.0

type UpdateSecurityPolicyOK struct {
	XTowerRequestID string

	Payload []*models.WithTaskSecurityPolicy
}
UpdateSecurityPolicyOK describes a response with status code 200, with default header values.

UpdateSecurityPolicyOK update security policy o k

func NewUpdateSecurityPolicyOK added in v2.9.0

func NewUpdateSecurityPolicyOK() *UpdateSecurityPolicyOK

NewUpdateSecurityPolicyOK creates a UpdateSecurityPolicyOK with default headers values

func (*UpdateSecurityPolicyOK) Error added in v2.9.0

func (o *UpdateSecurityPolicyOK) Error() string

func (*UpdateSecurityPolicyOK) GetPayload added in v2.9.0

type UpdateSecurityPolicyParams added in v2.9.0

type UpdateSecurityPolicyParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.SecurityPolicyUpdateBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateSecurityPolicyParams contains all the parameters to send to the API endpoint

for the update security policy operation.

Typically these are written to a http.Request.

func NewUpdateSecurityPolicyParams added in v2.9.0

func NewUpdateSecurityPolicyParams() *UpdateSecurityPolicyParams

NewUpdateSecurityPolicyParams creates a new UpdateSecurityPolicyParams 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 NewUpdateSecurityPolicyParamsWithContext added in v2.9.0

func NewUpdateSecurityPolicyParamsWithContext(ctx context.Context) *UpdateSecurityPolicyParams

NewUpdateSecurityPolicyParamsWithContext creates a new UpdateSecurityPolicyParams object with the ability to set a context for a request.

func NewUpdateSecurityPolicyParamsWithHTTPClient added in v2.9.0

func NewUpdateSecurityPolicyParamsWithHTTPClient(client *http.Client) *UpdateSecurityPolicyParams

NewUpdateSecurityPolicyParamsWithHTTPClient creates a new UpdateSecurityPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateSecurityPolicyParamsWithTimeout added in v2.9.0

func NewUpdateSecurityPolicyParamsWithTimeout(timeout time.Duration) *UpdateSecurityPolicyParams

NewUpdateSecurityPolicyParamsWithTimeout creates a new UpdateSecurityPolicyParams object with the ability to set a timeout on a request.

func (*UpdateSecurityPolicyParams) SetContentLanguage added in v2.9.0

func (o *UpdateSecurityPolicyParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the update security policy params

func (*UpdateSecurityPolicyParams) SetContext added in v2.9.0

func (o *UpdateSecurityPolicyParams) SetContext(ctx context.Context)

SetContext adds the context to the update security policy params

func (*UpdateSecurityPolicyParams) SetDefaults added in v2.9.0

func (o *UpdateSecurityPolicyParams) SetDefaults()

SetDefaults hydrates default values in the update security policy params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateSecurityPolicyParams) SetHTTPClient added in v2.9.0

func (o *UpdateSecurityPolicyParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update security policy params

func (*UpdateSecurityPolicyParams) SetRequestBody added in v2.9.0

func (o *UpdateSecurityPolicyParams) SetRequestBody(requestBody *models.SecurityPolicyUpdateBody)

SetRequestBody adds the requestBody to the update security policy params

func (*UpdateSecurityPolicyParams) SetTimeout added in v2.9.0

func (o *UpdateSecurityPolicyParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update security policy params

func (*UpdateSecurityPolicyParams) WithContentLanguage added in v2.9.0

func (o *UpdateSecurityPolicyParams) WithContentLanguage(contentLanguage *string) *UpdateSecurityPolicyParams

WithContentLanguage adds the contentLanguage to the update security policy params

func (*UpdateSecurityPolicyParams) WithContext added in v2.9.0

WithContext adds the context to the update security policy params

func (*UpdateSecurityPolicyParams) WithDefaults added in v2.9.0

WithDefaults hydrates default values in the update security policy params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateSecurityPolicyParams) WithHTTPClient added in v2.9.0

WithHTTPClient adds the HTTPClient to the update security policy params

func (*UpdateSecurityPolicyParams) WithRequestBody added in v2.9.0

WithRequestBody adds the requestBody to the update security policy params

func (*UpdateSecurityPolicyParams) WithTimeout added in v2.9.0

WithTimeout adds the timeout to the update security policy params

func (*UpdateSecurityPolicyParams) WriteToRequest added in v2.9.0

WriteToRequest writes these params to a swagger request

type UpdateSecurityPolicyReader added in v2.9.0

type UpdateSecurityPolicyReader struct {
	// contains filtered or unexported fields
}

UpdateSecurityPolicyReader is a Reader for the UpdateSecurityPolicy structure.

func (*UpdateSecurityPolicyReader) ReadResponse added in v2.9.0

func (o *UpdateSecurityPolicyReader) 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