firewall

package
v0.24.3 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocateFirewallDefault

type AllocateFirewallDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}

AllocateFirewallDefault describes a response with status code -1, with default header values.

Error

func NewAllocateFirewallDefault

func NewAllocateFirewallDefault(code int) *AllocateFirewallDefault

NewAllocateFirewallDefault creates a AllocateFirewallDefault with default headers values

func (*AllocateFirewallDefault) Code

func (o *AllocateFirewallDefault) Code() int

Code gets the status code for the allocate firewall default response

func (*AllocateFirewallDefault) Error

func (o *AllocateFirewallDefault) Error() string

func (*AllocateFirewallDefault) GetPayload added in v0.11.0

func (*AllocateFirewallDefault) IsClientError added in v0.19.3

func (o *AllocateFirewallDefault) IsClientError() bool

IsClientError returns true when this allocate firewall default response has a 4xx status code

func (*AllocateFirewallDefault) IsCode added in v0.19.3

func (o *AllocateFirewallDefault) IsCode(code int) bool

IsCode returns true when this allocate firewall default response a status code equal to that given

func (*AllocateFirewallDefault) IsRedirect added in v0.19.3

func (o *AllocateFirewallDefault) IsRedirect() bool

IsRedirect returns true when this allocate firewall default response has a 3xx status code

func (*AllocateFirewallDefault) IsServerError added in v0.19.3

func (o *AllocateFirewallDefault) IsServerError() bool

IsServerError returns true when this allocate firewall default response has a 5xx status code

func (*AllocateFirewallDefault) IsSuccess added in v0.19.3

func (o *AllocateFirewallDefault) IsSuccess() bool

IsSuccess returns true when this allocate firewall default response has a 2xx status code

func (*AllocateFirewallDefault) String added in v0.19.3

func (o *AllocateFirewallDefault) String() string

type AllocateFirewallOK

type AllocateFirewallOK struct {
	Payload *models.V1FirewallResponse
}

AllocateFirewallOK describes a response with status code 200, with default header values.

OK

func NewAllocateFirewallOK

func NewAllocateFirewallOK() *AllocateFirewallOK

NewAllocateFirewallOK creates a AllocateFirewallOK with default headers values

func (*AllocateFirewallOK) Code added in v0.22.1

func (o *AllocateFirewallOK) Code() int

Code gets the status code for the allocate firewall o k response

func (*AllocateFirewallOK) Error

func (o *AllocateFirewallOK) Error() string

func (*AllocateFirewallOK) GetPayload added in v0.11.0

func (o *AllocateFirewallOK) GetPayload() *models.V1FirewallResponse

func (*AllocateFirewallOK) IsClientError added in v0.19.3

func (o *AllocateFirewallOK) IsClientError() bool

IsClientError returns true when this allocate firewall o k response has a 4xx status code

func (*AllocateFirewallOK) IsCode added in v0.19.3

func (o *AllocateFirewallOK) IsCode(code int) bool

IsCode returns true when this allocate firewall o k response a status code equal to that given

func (*AllocateFirewallOK) IsRedirect added in v0.19.3

func (o *AllocateFirewallOK) IsRedirect() bool

IsRedirect returns true when this allocate firewall o k response has a 3xx status code

func (*AllocateFirewallOK) IsServerError added in v0.19.3

func (o *AllocateFirewallOK) IsServerError() bool

IsServerError returns true when this allocate firewall o k response has a 5xx status code

func (*AllocateFirewallOK) IsSuccess added in v0.19.3

func (o *AllocateFirewallOK) IsSuccess() bool

IsSuccess returns true when this allocate firewall o k response has a 2xx status code

func (*AllocateFirewallOK) String added in v0.19.3

func (o *AllocateFirewallOK) String() string

type AllocateFirewallParams

type AllocateFirewallParams struct {

	// Body.
	Body *models.V1FirewallCreateRequest

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

AllocateFirewallParams contains all the parameters to send to the API endpoint

for the allocate firewall operation.

Typically these are written to a http.Request.

func NewAllocateFirewallParams

func NewAllocateFirewallParams() *AllocateFirewallParams

NewAllocateFirewallParams creates a new AllocateFirewallParams 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 NewAllocateFirewallParamsWithContext

func NewAllocateFirewallParamsWithContext(ctx context.Context) *AllocateFirewallParams

NewAllocateFirewallParamsWithContext creates a new AllocateFirewallParams object with the ability to set a context for a request.

func NewAllocateFirewallParamsWithHTTPClient

func NewAllocateFirewallParamsWithHTTPClient(client *http.Client) *AllocateFirewallParams

NewAllocateFirewallParamsWithHTTPClient creates a new AllocateFirewallParams object with the ability to set a custom HTTPClient for a request.

func NewAllocateFirewallParamsWithTimeout

func NewAllocateFirewallParamsWithTimeout(timeout time.Duration) *AllocateFirewallParams

NewAllocateFirewallParamsWithTimeout creates a new AllocateFirewallParams object with the ability to set a timeout on a request.

func (*AllocateFirewallParams) SetBody

SetBody adds the body to the allocate firewall params

func (*AllocateFirewallParams) SetContext

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

SetContext adds the context to the allocate firewall params

func (*AllocateFirewallParams) SetDefaults added in v0.12.1

func (o *AllocateFirewallParams) SetDefaults()

SetDefaults hydrates default values in the allocate firewall params (not the query body).

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

func (*AllocateFirewallParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the allocate firewall params

func (*AllocateFirewallParams) SetTimeout

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

SetTimeout adds the timeout to the allocate firewall params

func (*AllocateFirewallParams) WithBody

WithBody adds the body to the allocate firewall params

func (*AllocateFirewallParams) WithContext

WithContext adds the context to the allocate firewall params

func (*AllocateFirewallParams) WithDefaults added in v0.12.1

WithDefaults hydrates default values in the allocate firewall params (not the query body).

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

func (*AllocateFirewallParams) WithHTTPClient

func (o *AllocateFirewallParams) WithHTTPClient(client *http.Client) *AllocateFirewallParams

WithHTTPClient adds the HTTPClient to the allocate firewall params

func (*AllocateFirewallParams) WithTimeout

WithTimeout adds the timeout to the allocate firewall params

func (*AllocateFirewallParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AllocateFirewallReader

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

AllocateFirewallReader is a Reader for the AllocateFirewall structure.

func (*AllocateFirewallReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for firewall API

func (*Client) AllocateFirewall

func (a *Client) AllocateFirewall(params *AllocateFirewallParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AllocateFirewallOK, error)

AllocateFirewall allocates a firewall

func (*Client) FindFirewall

func (a *Client) FindFirewall(params *FindFirewallParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindFirewallOK, error)

FindFirewall gets firewall by id

func (*Client) FindFirewalls

func (a *Client) FindFirewalls(params *FindFirewallsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindFirewallsOK, error)

FindFirewalls finds firewalls by multiple criteria

func (*Client) ListFirewalls

func (a *Client) ListFirewalls(params *ListFirewallsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListFirewallsOK, error)

ListFirewalls gets all known firewalls

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption added in v0.13.1

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.11.0

type ClientService interface {
	AllocateFirewall(params *AllocateFirewallParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AllocateFirewallOK, error)

	FindFirewall(params *FindFirewallParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindFirewallOK, error)

	FindFirewalls(params *FindFirewallsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindFirewallsOK, error)

	ListFirewalls(params *ListFirewallsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListFirewallsOK, 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 firewall API client.

type FindFirewallDefault

type FindFirewallDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}

FindFirewallDefault describes a response with status code -1, with default header values.

Error

func NewFindFirewallDefault

func NewFindFirewallDefault(code int) *FindFirewallDefault

NewFindFirewallDefault creates a FindFirewallDefault with default headers values

func (*FindFirewallDefault) Code

func (o *FindFirewallDefault) Code() int

Code gets the status code for the find firewall default response

func (*FindFirewallDefault) Error

func (o *FindFirewallDefault) Error() string

func (*FindFirewallDefault) GetPayload added in v0.11.0

func (*FindFirewallDefault) IsClientError added in v0.19.3

func (o *FindFirewallDefault) IsClientError() bool

IsClientError returns true when this find firewall default response has a 4xx status code

func (*FindFirewallDefault) IsCode added in v0.19.3

func (o *FindFirewallDefault) IsCode(code int) bool

IsCode returns true when this find firewall default response a status code equal to that given

func (*FindFirewallDefault) IsRedirect added in v0.19.3

func (o *FindFirewallDefault) IsRedirect() bool

IsRedirect returns true when this find firewall default response has a 3xx status code

func (*FindFirewallDefault) IsServerError added in v0.19.3

func (o *FindFirewallDefault) IsServerError() bool

IsServerError returns true when this find firewall default response has a 5xx status code

func (*FindFirewallDefault) IsSuccess added in v0.19.3

func (o *FindFirewallDefault) IsSuccess() bool

IsSuccess returns true when this find firewall default response has a 2xx status code

func (*FindFirewallDefault) String added in v0.19.3

func (o *FindFirewallDefault) String() string

type FindFirewallOK

type FindFirewallOK struct {
	Payload *models.V1FirewallResponse
}

FindFirewallOK describes a response with status code 200, with default header values.

OK

func NewFindFirewallOK

func NewFindFirewallOK() *FindFirewallOK

NewFindFirewallOK creates a FindFirewallOK with default headers values

func (*FindFirewallOK) Code added in v0.22.1

func (o *FindFirewallOK) Code() int

Code gets the status code for the find firewall o k response

func (*FindFirewallOK) Error

func (o *FindFirewallOK) Error() string

func (*FindFirewallOK) GetPayload added in v0.11.0

func (o *FindFirewallOK) GetPayload() *models.V1FirewallResponse

func (*FindFirewallOK) IsClientError added in v0.19.3

func (o *FindFirewallOK) IsClientError() bool

IsClientError returns true when this find firewall o k response has a 4xx status code

func (*FindFirewallOK) IsCode added in v0.19.3

func (o *FindFirewallOK) IsCode(code int) bool

IsCode returns true when this find firewall o k response a status code equal to that given

func (*FindFirewallOK) IsRedirect added in v0.19.3

func (o *FindFirewallOK) IsRedirect() bool

IsRedirect returns true when this find firewall o k response has a 3xx status code

func (*FindFirewallOK) IsServerError added in v0.19.3

func (o *FindFirewallOK) IsServerError() bool

IsServerError returns true when this find firewall o k response has a 5xx status code

func (*FindFirewallOK) IsSuccess added in v0.19.3

func (o *FindFirewallOK) IsSuccess() bool

IsSuccess returns true when this find firewall o k response has a 2xx status code

func (*FindFirewallOK) String added in v0.19.3

func (o *FindFirewallOK) String() string

type FindFirewallParams

type FindFirewallParams struct {

	/* ID.

	   identifier of the firewall
	*/
	ID string

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

FindFirewallParams contains all the parameters to send to the API endpoint

for the find firewall operation.

Typically these are written to a http.Request.

func NewFindFirewallParams

func NewFindFirewallParams() *FindFirewallParams

NewFindFirewallParams creates a new FindFirewallParams 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 NewFindFirewallParamsWithContext

func NewFindFirewallParamsWithContext(ctx context.Context) *FindFirewallParams

NewFindFirewallParamsWithContext creates a new FindFirewallParams object with the ability to set a context for a request.

func NewFindFirewallParamsWithHTTPClient

func NewFindFirewallParamsWithHTTPClient(client *http.Client) *FindFirewallParams

NewFindFirewallParamsWithHTTPClient creates a new FindFirewallParams object with the ability to set a custom HTTPClient for a request.

func NewFindFirewallParamsWithTimeout

func NewFindFirewallParamsWithTimeout(timeout time.Duration) *FindFirewallParams

NewFindFirewallParamsWithTimeout creates a new FindFirewallParams object with the ability to set a timeout on a request.

func (*FindFirewallParams) SetContext

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

SetContext adds the context to the find firewall params

func (*FindFirewallParams) SetDefaults added in v0.12.1

func (o *FindFirewallParams) SetDefaults()

SetDefaults hydrates default values in the find firewall params (not the query body).

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

func (*FindFirewallParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the find firewall params

func (*FindFirewallParams) SetID

func (o *FindFirewallParams) SetID(id string)

SetID adds the id to the find firewall params

func (*FindFirewallParams) SetTimeout

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

SetTimeout adds the timeout to the find firewall params

func (*FindFirewallParams) WithContext

WithContext adds the context to the find firewall params

func (*FindFirewallParams) WithDefaults added in v0.12.1

func (o *FindFirewallParams) WithDefaults() *FindFirewallParams

WithDefaults hydrates default values in the find firewall params (not the query body).

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

func (*FindFirewallParams) WithHTTPClient

func (o *FindFirewallParams) WithHTTPClient(client *http.Client) *FindFirewallParams

WithHTTPClient adds the HTTPClient to the find firewall params

func (*FindFirewallParams) WithID

WithID adds the id to the find firewall params

func (*FindFirewallParams) WithTimeout

func (o *FindFirewallParams) WithTimeout(timeout time.Duration) *FindFirewallParams

WithTimeout adds the timeout to the find firewall params

func (*FindFirewallParams) WriteToRequest

func (o *FindFirewallParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type FindFirewallReader

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

FindFirewallReader is a Reader for the FindFirewall structure.

func (*FindFirewallReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type FindFirewallsDefault

type FindFirewallsDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}

FindFirewallsDefault describes a response with status code -1, with default header values.

Error

func NewFindFirewallsDefault

func NewFindFirewallsDefault(code int) *FindFirewallsDefault

NewFindFirewallsDefault creates a FindFirewallsDefault with default headers values

func (*FindFirewallsDefault) Code

func (o *FindFirewallsDefault) Code() int

Code gets the status code for the find firewalls default response

func (*FindFirewallsDefault) Error

func (o *FindFirewallsDefault) Error() string

func (*FindFirewallsDefault) GetPayload added in v0.11.0

func (*FindFirewallsDefault) IsClientError added in v0.19.3

func (o *FindFirewallsDefault) IsClientError() bool

IsClientError returns true when this find firewalls default response has a 4xx status code

func (*FindFirewallsDefault) IsCode added in v0.19.3

func (o *FindFirewallsDefault) IsCode(code int) bool

IsCode returns true when this find firewalls default response a status code equal to that given

func (*FindFirewallsDefault) IsRedirect added in v0.19.3

func (o *FindFirewallsDefault) IsRedirect() bool

IsRedirect returns true when this find firewalls default response has a 3xx status code

func (*FindFirewallsDefault) IsServerError added in v0.19.3

func (o *FindFirewallsDefault) IsServerError() bool

IsServerError returns true when this find firewalls default response has a 5xx status code

func (*FindFirewallsDefault) IsSuccess added in v0.19.3

func (o *FindFirewallsDefault) IsSuccess() bool

IsSuccess returns true when this find firewalls default response has a 2xx status code

func (*FindFirewallsDefault) String added in v0.19.3

func (o *FindFirewallsDefault) String() string

type FindFirewallsOK

type FindFirewallsOK struct {
	Payload []*models.V1FirewallResponse
}

FindFirewallsOK describes a response with status code 200, with default header values.

OK

func NewFindFirewallsOK

func NewFindFirewallsOK() *FindFirewallsOK

NewFindFirewallsOK creates a FindFirewallsOK with default headers values

func (*FindFirewallsOK) Code added in v0.22.1

func (o *FindFirewallsOK) Code() int

Code gets the status code for the find firewalls o k response

func (*FindFirewallsOK) Error

func (o *FindFirewallsOK) Error() string

func (*FindFirewallsOK) GetPayload added in v0.11.0

func (o *FindFirewallsOK) GetPayload() []*models.V1FirewallResponse

func (*FindFirewallsOK) IsClientError added in v0.19.3

func (o *FindFirewallsOK) IsClientError() bool

IsClientError returns true when this find firewalls o k response has a 4xx status code

func (*FindFirewallsOK) IsCode added in v0.19.3

func (o *FindFirewallsOK) IsCode(code int) bool

IsCode returns true when this find firewalls o k response a status code equal to that given

func (*FindFirewallsOK) IsRedirect added in v0.19.3

func (o *FindFirewallsOK) IsRedirect() bool

IsRedirect returns true when this find firewalls o k response has a 3xx status code

func (*FindFirewallsOK) IsServerError added in v0.19.3

func (o *FindFirewallsOK) IsServerError() bool

IsServerError returns true when this find firewalls o k response has a 5xx status code

func (*FindFirewallsOK) IsSuccess added in v0.19.3

func (o *FindFirewallsOK) IsSuccess() bool

IsSuccess returns true when this find firewalls o k response has a 2xx status code

func (*FindFirewallsOK) String added in v0.19.3

func (o *FindFirewallsOK) String() string

type FindFirewallsParams

type FindFirewallsParams struct {

	// Body.
	Body *models.V1FirewallFindRequest

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

FindFirewallsParams contains all the parameters to send to the API endpoint

for the find firewalls operation.

Typically these are written to a http.Request.

func NewFindFirewallsParams

func NewFindFirewallsParams() *FindFirewallsParams

NewFindFirewallsParams creates a new FindFirewallsParams 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 NewFindFirewallsParamsWithContext

func NewFindFirewallsParamsWithContext(ctx context.Context) *FindFirewallsParams

NewFindFirewallsParamsWithContext creates a new FindFirewallsParams object with the ability to set a context for a request.

func NewFindFirewallsParamsWithHTTPClient

func NewFindFirewallsParamsWithHTTPClient(client *http.Client) *FindFirewallsParams

NewFindFirewallsParamsWithHTTPClient creates a new FindFirewallsParams object with the ability to set a custom HTTPClient for a request.

func NewFindFirewallsParamsWithTimeout

func NewFindFirewallsParamsWithTimeout(timeout time.Duration) *FindFirewallsParams

NewFindFirewallsParamsWithTimeout creates a new FindFirewallsParams object with the ability to set a timeout on a request.

func (*FindFirewallsParams) SetBody

SetBody adds the body to the find firewalls params

func (*FindFirewallsParams) SetContext

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

SetContext adds the context to the find firewalls params

func (*FindFirewallsParams) SetDefaults added in v0.12.1

func (o *FindFirewallsParams) SetDefaults()

SetDefaults hydrates default values in the find firewalls params (not the query body).

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

func (*FindFirewallsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the find firewalls params

func (*FindFirewallsParams) SetTimeout

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

SetTimeout adds the timeout to the find firewalls params

func (*FindFirewallsParams) WithBody

WithBody adds the body to the find firewalls params

func (*FindFirewallsParams) WithContext

WithContext adds the context to the find firewalls params

func (*FindFirewallsParams) WithDefaults added in v0.12.1

func (o *FindFirewallsParams) WithDefaults() *FindFirewallsParams

WithDefaults hydrates default values in the find firewalls params (not the query body).

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

func (*FindFirewallsParams) WithHTTPClient

func (o *FindFirewallsParams) WithHTTPClient(client *http.Client) *FindFirewallsParams

WithHTTPClient adds the HTTPClient to the find firewalls params

func (*FindFirewallsParams) WithTimeout

func (o *FindFirewallsParams) WithTimeout(timeout time.Duration) *FindFirewallsParams

WithTimeout adds the timeout to the find firewalls params

func (*FindFirewallsParams) WriteToRequest

func (o *FindFirewallsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type FindFirewallsReader

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

FindFirewallsReader is a Reader for the FindFirewalls structure.

func (*FindFirewallsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListFirewallsDefault

type ListFirewallsDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}

ListFirewallsDefault describes a response with status code -1, with default header values.

Error

func NewListFirewallsDefault

func NewListFirewallsDefault(code int) *ListFirewallsDefault

NewListFirewallsDefault creates a ListFirewallsDefault with default headers values

func (*ListFirewallsDefault) Code

func (o *ListFirewallsDefault) Code() int

Code gets the status code for the list firewalls default response

func (*ListFirewallsDefault) Error

func (o *ListFirewallsDefault) Error() string

func (*ListFirewallsDefault) GetPayload added in v0.11.0

func (*ListFirewallsDefault) IsClientError added in v0.19.3

func (o *ListFirewallsDefault) IsClientError() bool

IsClientError returns true when this list firewalls default response has a 4xx status code

func (*ListFirewallsDefault) IsCode added in v0.19.3

func (o *ListFirewallsDefault) IsCode(code int) bool

IsCode returns true when this list firewalls default response a status code equal to that given

func (*ListFirewallsDefault) IsRedirect added in v0.19.3

func (o *ListFirewallsDefault) IsRedirect() bool

IsRedirect returns true when this list firewalls default response has a 3xx status code

func (*ListFirewallsDefault) IsServerError added in v0.19.3

func (o *ListFirewallsDefault) IsServerError() bool

IsServerError returns true when this list firewalls default response has a 5xx status code

func (*ListFirewallsDefault) IsSuccess added in v0.19.3

func (o *ListFirewallsDefault) IsSuccess() bool

IsSuccess returns true when this list firewalls default response has a 2xx status code

func (*ListFirewallsDefault) String added in v0.19.3

func (o *ListFirewallsDefault) String() string

type ListFirewallsOK

type ListFirewallsOK struct {
	Payload []*models.V1FirewallResponse
}

ListFirewallsOK describes a response with status code 200, with default header values.

OK

func NewListFirewallsOK

func NewListFirewallsOK() *ListFirewallsOK

NewListFirewallsOK creates a ListFirewallsOK with default headers values

func (*ListFirewallsOK) Code added in v0.22.1

func (o *ListFirewallsOK) Code() int

Code gets the status code for the list firewalls o k response

func (*ListFirewallsOK) Error

func (o *ListFirewallsOK) Error() string

func (*ListFirewallsOK) GetPayload added in v0.11.0

func (o *ListFirewallsOK) GetPayload() []*models.V1FirewallResponse

func (*ListFirewallsOK) IsClientError added in v0.19.3

func (o *ListFirewallsOK) IsClientError() bool

IsClientError returns true when this list firewalls o k response has a 4xx status code

func (*ListFirewallsOK) IsCode added in v0.19.3

func (o *ListFirewallsOK) IsCode(code int) bool

IsCode returns true when this list firewalls o k response a status code equal to that given

func (*ListFirewallsOK) IsRedirect added in v0.19.3

func (o *ListFirewallsOK) IsRedirect() bool

IsRedirect returns true when this list firewalls o k response has a 3xx status code

func (*ListFirewallsOK) IsServerError added in v0.19.3

func (o *ListFirewallsOK) IsServerError() bool

IsServerError returns true when this list firewalls o k response has a 5xx status code

func (*ListFirewallsOK) IsSuccess added in v0.19.3

func (o *ListFirewallsOK) IsSuccess() bool

IsSuccess returns true when this list firewalls o k response has a 2xx status code

func (*ListFirewallsOK) String added in v0.19.3

func (o *ListFirewallsOK) String() string

type ListFirewallsParams

type ListFirewallsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListFirewallsParams contains all the parameters to send to the API endpoint

for the list firewalls operation.

Typically these are written to a http.Request.

func NewListFirewallsParams

func NewListFirewallsParams() *ListFirewallsParams

NewListFirewallsParams creates a new ListFirewallsParams 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 NewListFirewallsParamsWithContext

func NewListFirewallsParamsWithContext(ctx context.Context) *ListFirewallsParams

NewListFirewallsParamsWithContext creates a new ListFirewallsParams object with the ability to set a context for a request.

func NewListFirewallsParamsWithHTTPClient

func NewListFirewallsParamsWithHTTPClient(client *http.Client) *ListFirewallsParams

NewListFirewallsParamsWithHTTPClient creates a new ListFirewallsParams object with the ability to set a custom HTTPClient for a request.

func NewListFirewallsParamsWithTimeout

func NewListFirewallsParamsWithTimeout(timeout time.Duration) *ListFirewallsParams

NewListFirewallsParamsWithTimeout creates a new ListFirewallsParams object with the ability to set a timeout on a request.

func (*ListFirewallsParams) SetContext

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

SetContext adds the context to the list firewalls params

func (*ListFirewallsParams) SetDefaults added in v0.12.1

func (o *ListFirewallsParams) SetDefaults()

SetDefaults hydrates default values in the list firewalls params (not the query body).

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

func (*ListFirewallsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list firewalls params

func (*ListFirewallsParams) SetTimeout

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

SetTimeout adds the timeout to the list firewalls params

func (*ListFirewallsParams) WithContext

WithContext adds the context to the list firewalls params

func (*ListFirewallsParams) WithDefaults added in v0.12.1

func (o *ListFirewallsParams) WithDefaults() *ListFirewallsParams

WithDefaults hydrates default values in the list firewalls params (not the query body).

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

func (*ListFirewallsParams) WithHTTPClient

func (o *ListFirewallsParams) WithHTTPClient(client *http.Client) *ListFirewallsParams

WithHTTPClient adds the HTTPClient to the list firewalls params

func (*ListFirewallsParams) WithTimeout

func (o *ListFirewallsParams) WithTimeout(timeout time.Duration) *ListFirewallsParams

WithTimeout adds the timeout to the list firewalls params

func (*ListFirewallsParams) WriteToRequest

func (o *ListFirewallsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListFirewallsReader

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

ListFirewallsReader is a Reader for the ListFirewalls structure.

func (*ListFirewallsReader) ReadResponse

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