security

package
v0.0.0-...-6316459 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 11 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 API

func (*Client) GetSecurity

func (a *Client) GetSecurity(params *GetSecurityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSecurityOK, error)

GetSecurity gets security

Returns default security configuration

func (*Client) GetTenantSecurity

func (a *Client) GetTenantSecurity(params *GetTenantSecurityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantSecurityOK, error)

GetTenantSecurity gets tenant security

func (*Client) SetTenantSecurity

func (a *Client) SetTenantSecurity(params *SetTenantSecurityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetTenantSecurityNoContent, error)

SetTenantSecurity sets tenant security

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 may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	GetSecurity(params *GetSecurityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSecurityOK, error)

	GetTenantSecurity(params *GetTenantSecurityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantSecurityOK, error)

	SetTenantSecurity(params *SetTenantSecurityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetTenantSecurityNoContent, 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 API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new security API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new security API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type GetSecurityForbidden

type GetSecurityForbidden struct {
	Payload *models.Error
}

GetSecurityForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetSecurityForbidden

func NewGetSecurityForbidden() *GetSecurityForbidden

NewGetSecurityForbidden creates a GetSecurityForbidden with default headers values

func (*GetSecurityForbidden) Code

func (o *GetSecurityForbidden) Code() int

Code gets the status code for the get security forbidden response

func (*GetSecurityForbidden) Error

func (o *GetSecurityForbidden) Error() string

func (*GetSecurityForbidden) GetPayload

func (o *GetSecurityForbidden) GetPayload() *models.Error

func (*GetSecurityForbidden) IsClientError

func (o *GetSecurityForbidden) IsClientError() bool

IsClientError returns true when this get security forbidden response has a 4xx status code

func (*GetSecurityForbidden) IsCode

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

IsCode returns true when this get security forbidden response a status code equal to that given

func (*GetSecurityForbidden) IsRedirect

func (o *GetSecurityForbidden) IsRedirect() bool

IsRedirect returns true when this get security forbidden response has a 3xx status code

func (*GetSecurityForbidden) IsServerError

func (o *GetSecurityForbidden) IsServerError() bool

IsServerError returns true when this get security forbidden response has a 5xx status code

func (*GetSecurityForbidden) IsSuccess

func (o *GetSecurityForbidden) IsSuccess() bool

IsSuccess returns true when this get security forbidden response has a 2xx status code

func (*GetSecurityForbidden) String

func (o *GetSecurityForbidden) String() string

type GetSecurityNotFound

type GetSecurityNotFound struct {
	Payload *models.Error
}

GetSecurityNotFound describes a response with status code 404, with default header values.

Not found

func NewGetSecurityNotFound

func NewGetSecurityNotFound() *GetSecurityNotFound

NewGetSecurityNotFound creates a GetSecurityNotFound with default headers values

func (*GetSecurityNotFound) Code

func (o *GetSecurityNotFound) Code() int

Code gets the status code for the get security not found response

func (*GetSecurityNotFound) Error

func (o *GetSecurityNotFound) Error() string

func (*GetSecurityNotFound) GetPayload

func (o *GetSecurityNotFound) GetPayload() *models.Error

func (*GetSecurityNotFound) IsClientError

func (o *GetSecurityNotFound) IsClientError() bool

IsClientError returns true when this get security not found response has a 4xx status code

func (*GetSecurityNotFound) IsCode

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

IsCode returns true when this get security not found response a status code equal to that given

func (*GetSecurityNotFound) IsRedirect

func (o *GetSecurityNotFound) IsRedirect() bool

IsRedirect returns true when this get security not found response has a 3xx status code

func (*GetSecurityNotFound) IsServerError

func (o *GetSecurityNotFound) IsServerError() bool

IsServerError returns true when this get security not found response has a 5xx status code

func (*GetSecurityNotFound) IsSuccess

func (o *GetSecurityNotFound) IsSuccess() bool

IsSuccess returns true when this get security not found response has a 2xx status code

func (*GetSecurityNotFound) String

func (o *GetSecurityNotFound) String() string

type GetSecurityOK

type GetSecurityOK struct {
	Payload *models.SecureOptions
}

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

Get security

func NewGetSecurityOK

func NewGetSecurityOK() *GetSecurityOK

NewGetSecurityOK creates a GetSecurityOK with default headers values

func (*GetSecurityOK) Code

func (o *GetSecurityOK) Code() int

Code gets the status code for the get security o k response

func (*GetSecurityOK) Error

func (o *GetSecurityOK) Error() string

func (*GetSecurityOK) GetPayload

func (o *GetSecurityOK) GetPayload() *models.SecureOptions

func (*GetSecurityOK) IsClientError

func (o *GetSecurityOK) IsClientError() bool

IsClientError returns true when this get security o k response has a 4xx status code

func (*GetSecurityOK) IsCode

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

IsCode returns true when this get security o k response a status code equal to that given

func (*GetSecurityOK) IsRedirect

func (o *GetSecurityOK) IsRedirect() bool

IsRedirect returns true when this get security o k response has a 3xx status code

func (*GetSecurityOK) IsServerError

func (o *GetSecurityOK) IsServerError() bool

IsServerError returns true when this get security o k response has a 5xx status code

func (*GetSecurityOK) IsSuccess

func (o *GetSecurityOK) IsSuccess() bool

IsSuccess returns true when this get security o k response has a 2xx status code

func (*GetSecurityOK) String

func (o *GetSecurityOK) String() string

type GetSecurityParams

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

GetSecurityParams contains all the parameters to send to the API endpoint

for the get security operation.

Typically these are written to a http.Request.

func NewGetSecurityParams

func NewGetSecurityParams() *GetSecurityParams

NewGetSecurityParams creates a new GetSecurityParams 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 NewGetSecurityParamsWithContext

func NewGetSecurityParamsWithContext(ctx context.Context) *GetSecurityParams

NewGetSecurityParamsWithContext creates a new GetSecurityParams object with the ability to set a context for a request.

func NewGetSecurityParamsWithHTTPClient

func NewGetSecurityParamsWithHTTPClient(client *http.Client) *GetSecurityParams

NewGetSecurityParamsWithHTTPClient creates a new GetSecurityParams object with the ability to set a custom HTTPClient for a request.

func NewGetSecurityParamsWithTimeout

func NewGetSecurityParamsWithTimeout(timeout time.Duration) *GetSecurityParams

NewGetSecurityParamsWithTimeout creates a new GetSecurityParams object with the ability to set a timeout on a request.

func (*GetSecurityParams) SetContext

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

SetContext adds the context to the get security params

func (*GetSecurityParams) SetDefaults

func (o *GetSecurityParams) SetDefaults()

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

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

func (*GetSecurityParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get security params

func (*GetSecurityParams) SetTimeout

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

SetTimeout adds the timeout to the get security params

func (*GetSecurityParams) WithContext

func (o *GetSecurityParams) WithContext(ctx context.Context) *GetSecurityParams

WithContext adds the context to the get security params

func (*GetSecurityParams) WithDefaults

func (o *GetSecurityParams) WithDefaults() *GetSecurityParams

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

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

func (*GetSecurityParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get security params

func (*GetSecurityParams) WithTimeout

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

WithTimeout adds the timeout to the get security params

func (*GetSecurityParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSecurityReader

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

GetSecurityReader is a Reader for the GetSecurity structure.

func (*GetSecurityReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSecurityTooManyRequests

type GetSecurityTooManyRequests struct {
	Payload *models.Error
}

GetSecurityTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewGetSecurityTooManyRequests

func NewGetSecurityTooManyRequests() *GetSecurityTooManyRequests

NewGetSecurityTooManyRequests creates a GetSecurityTooManyRequests with default headers values

func (*GetSecurityTooManyRequests) Code

func (o *GetSecurityTooManyRequests) Code() int

Code gets the status code for the get security too many requests response

func (*GetSecurityTooManyRequests) Error

func (*GetSecurityTooManyRequests) GetPayload

func (o *GetSecurityTooManyRequests) GetPayload() *models.Error

func (*GetSecurityTooManyRequests) IsClientError

func (o *GetSecurityTooManyRequests) IsClientError() bool

IsClientError returns true when this get security too many requests response has a 4xx status code

func (*GetSecurityTooManyRequests) IsCode

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

IsCode returns true when this get security too many requests response a status code equal to that given

func (*GetSecurityTooManyRequests) IsRedirect

func (o *GetSecurityTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get security too many requests response has a 3xx status code

func (*GetSecurityTooManyRequests) IsServerError

func (o *GetSecurityTooManyRequests) IsServerError() bool

IsServerError returns true when this get security too many requests response has a 5xx status code

func (*GetSecurityTooManyRequests) IsSuccess

func (o *GetSecurityTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get security too many requests response has a 2xx status code

func (*GetSecurityTooManyRequests) String

func (o *GetSecurityTooManyRequests) String() string

type GetSecurityUnauthorized

type GetSecurityUnauthorized struct {
	Payload *models.Error
}

GetSecurityUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetSecurityUnauthorized

func NewGetSecurityUnauthorized() *GetSecurityUnauthorized

NewGetSecurityUnauthorized creates a GetSecurityUnauthorized with default headers values

func (*GetSecurityUnauthorized) Code

func (o *GetSecurityUnauthorized) Code() int

Code gets the status code for the get security unauthorized response

func (*GetSecurityUnauthorized) Error

func (o *GetSecurityUnauthorized) Error() string

func (*GetSecurityUnauthorized) GetPayload

func (o *GetSecurityUnauthorized) GetPayload() *models.Error

func (*GetSecurityUnauthorized) IsClientError

func (o *GetSecurityUnauthorized) IsClientError() bool

IsClientError returns true when this get security unauthorized response has a 4xx status code

func (*GetSecurityUnauthorized) IsCode

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

IsCode returns true when this get security unauthorized response a status code equal to that given

func (*GetSecurityUnauthorized) IsRedirect

func (o *GetSecurityUnauthorized) IsRedirect() bool

IsRedirect returns true when this get security unauthorized response has a 3xx status code

func (*GetSecurityUnauthorized) IsServerError

func (o *GetSecurityUnauthorized) IsServerError() bool

IsServerError returns true when this get security unauthorized response has a 5xx status code

func (*GetSecurityUnauthorized) IsSuccess

func (o *GetSecurityUnauthorized) IsSuccess() bool

IsSuccess returns true when this get security unauthorized response has a 2xx status code

func (*GetSecurityUnauthorized) String

func (o *GetSecurityUnauthorized) String() string

type GetTenantSecurityForbidden

type GetTenantSecurityForbidden struct {
	Payload *models.Error
}

GetTenantSecurityForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetTenantSecurityForbidden

func NewGetTenantSecurityForbidden() *GetTenantSecurityForbidden

NewGetTenantSecurityForbidden creates a GetTenantSecurityForbidden with default headers values

func (*GetTenantSecurityForbidden) Code

func (o *GetTenantSecurityForbidden) Code() int

Code gets the status code for the get tenant security forbidden response

func (*GetTenantSecurityForbidden) Error

func (*GetTenantSecurityForbidden) GetPayload

func (o *GetTenantSecurityForbidden) GetPayload() *models.Error

func (*GetTenantSecurityForbidden) IsClientError

func (o *GetTenantSecurityForbidden) IsClientError() bool

IsClientError returns true when this get tenant security forbidden response has a 4xx status code

func (*GetTenantSecurityForbidden) IsCode

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

IsCode returns true when this get tenant security forbidden response a status code equal to that given

func (*GetTenantSecurityForbidden) IsRedirect

func (o *GetTenantSecurityForbidden) IsRedirect() bool

IsRedirect returns true when this get tenant security forbidden response has a 3xx status code

func (*GetTenantSecurityForbidden) IsServerError

func (o *GetTenantSecurityForbidden) IsServerError() bool

IsServerError returns true when this get tenant security forbidden response has a 5xx status code

func (*GetTenantSecurityForbidden) IsSuccess

func (o *GetTenantSecurityForbidden) IsSuccess() bool

IsSuccess returns true when this get tenant security forbidden response has a 2xx status code

func (*GetTenantSecurityForbidden) String

func (o *GetTenantSecurityForbidden) String() string

type GetTenantSecurityNotFound

type GetTenantSecurityNotFound struct {
	Payload *models.Error
}

GetTenantSecurityNotFound describes a response with status code 404, with default header values.

Not found

func NewGetTenantSecurityNotFound

func NewGetTenantSecurityNotFound() *GetTenantSecurityNotFound

NewGetTenantSecurityNotFound creates a GetTenantSecurityNotFound with default headers values

func (*GetTenantSecurityNotFound) Code

func (o *GetTenantSecurityNotFound) Code() int

Code gets the status code for the get tenant security not found response

func (*GetTenantSecurityNotFound) Error

func (o *GetTenantSecurityNotFound) Error() string

func (*GetTenantSecurityNotFound) GetPayload

func (o *GetTenantSecurityNotFound) GetPayload() *models.Error

func (*GetTenantSecurityNotFound) IsClientError

func (o *GetTenantSecurityNotFound) IsClientError() bool

IsClientError returns true when this get tenant security not found response has a 4xx status code

func (*GetTenantSecurityNotFound) IsCode

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

IsCode returns true when this get tenant security not found response a status code equal to that given

func (*GetTenantSecurityNotFound) IsRedirect

func (o *GetTenantSecurityNotFound) IsRedirect() bool

IsRedirect returns true when this get tenant security not found response has a 3xx status code

func (*GetTenantSecurityNotFound) IsServerError

func (o *GetTenantSecurityNotFound) IsServerError() bool

IsServerError returns true when this get tenant security not found response has a 5xx status code

func (*GetTenantSecurityNotFound) IsSuccess

func (o *GetTenantSecurityNotFound) IsSuccess() bool

IsSuccess returns true when this get tenant security not found response has a 2xx status code

func (*GetTenantSecurityNotFound) String

func (o *GetTenantSecurityNotFound) String() string

type GetTenantSecurityOK

type GetTenantSecurityOK struct {
	Payload *models.SecureOptions
}

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

Get tenant security

func NewGetTenantSecurityOK

func NewGetTenantSecurityOK() *GetTenantSecurityOK

NewGetTenantSecurityOK creates a GetTenantSecurityOK with default headers values

func (*GetTenantSecurityOK) Code

func (o *GetTenantSecurityOK) Code() int

Code gets the status code for the get tenant security o k response

func (*GetTenantSecurityOK) Error

func (o *GetTenantSecurityOK) Error() string

func (*GetTenantSecurityOK) GetPayload

func (o *GetTenantSecurityOK) GetPayload() *models.SecureOptions

func (*GetTenantSecurityOK) IsClientError

func (o *GetTenantSecurityOK) IsClientError() bool

IsClientError returns true when this get tenant security o k response has a 4xx status code

func (*GetTenantSecurityOK) IsCode

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

IsCode returns true when this get tenant security o k response a status code equal to that given

func (*GetTenantSecurityOK) IsRedirect

func (o *GetTenantSecurityOK) IsRedirect() bool

IsRedirect returns true when this get tenant security o k response has a 3xx status code

func (*GetTenantSecurityOK) IsServerError

func (o *GetTenantSecurityOK) IsServerError() bool

IsServerError returns true when this get tenant security o k response has a 5xx status code

func (*GetTenantSecurityOK) IsSuccess

func (o *GetTenantSecurityOK) IsSuccess() bool

IsSuccess returns true when this get tenant security o k response has a 2xx status code

func (*GetTenantSecurityOK) String

func (o *GetTenantSecurityOK) String() string

type GetTenantSecurityParams

type GetTenantSecurityParams struct {

	/* Tid.

	   Tenant id

	   Default: "default"
	*/
	Tid string

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

GetTenantSecurityParams contains all the parameters to send to the API endpoint

for the get tenant security operation.

Typically these are written to a http.Request.

func NewGetTenantSecurityParams

func NewGetTenantSecurityParams() *GetTenantSecurityParams

NewGetTenantSecurityParams creates a new GetTenantSecurityParams 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 NewGetTenantSecurityParamsWithContext

func NewGetTenantSecurityParamsWithContext(ctx context.Context) *GetTenantSecurityParams

NewGetTenantSecurityParamsWithContext creates a new GetTenantSecurityParams object with the ability to set a context for a request.

func NewGetTenantSecurityParamsWithHTTPClient

func NewGetTenantSecurityParamsWithHTTPClient(client *http.Client) *GetTenantSecurityParams

NewGetTenantSecurityParamsWithHTTPClient creates a new GetTenantSecurityParams object with the ability to set a custom HTTPClient for a request.

func NewGetTenantSecurityParamsWithTimeout

func NewGetTenantSecurityParamsWithTimeout(timeout time.Duration) *GetTenantSecurityParams

NewGetTenantSecurityParamsWithTimeout creates a new GetTenantSecurityParams object with the ability to set a timeout on a request.

func (*GetTenantSecurityParams) SetContext

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

SetContext adds the context to the get tenant security params

func (*GetTenantSecurityParams) SetDefaults

func (o *GetTenantSecurityParams) SetDefaults()

SetDefaults hydrates default values in the get tenant security params (not the query body).

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

func (*GetTenantSecurityParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get tenant security params

func (*GetTenantSecurityParams) SetTid

func (o *GetTenantSecurityParams) SetTid(tid string)

SetTid adds the tid to the get tenant security params

func (*GetTenantSecurityParams) SetTimeout

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

SetTimeout adds the timeout to the get tenant security params

func (*GetTenantSecurityParams) WithContext

WithContext adds the context to the get tenant security params

func (*GetTenantSecurityParams) WithDefaults

WithDefaults hydrates default values in the get tenant security params (not the query body).

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

func (*GetTenantSecurityParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get tenant security params

func (*GetTenantSecurityParams) WithTid

WithTid adds the tid to the get tenant security params

func (*GetTenantSecurityParams) WithTimeout

WithTimeout adds the timeout to the get tenant security params

func (*GetTenantSecurityParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTenantSecurityReader

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

GetTenantSecurityReader is a Reader for the GetTenantSecurity structure.

func (*GetTenantSecurityReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTenantSecurityTooManyRequests

type GetTenantSecurityTooManyRequests struct {
	Payload *models.Error
}

GetTenantSecurityTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewGetTenantSecurityTooManyRequests

func NewGetTenantSecurityTooManyRequests() *GetTenantSecurityTooManyRequests

NewGetTenantSecurityTooManyRequests creates a GetTenantSecurityTooManyRequests with default headers values

func (*GetTenantSecurityTooManyRequests) Code

Code gets the status code for the get tenant security too many requests response

func (*GetTenantSecurityTooManyRequests) Error

func (*GetTenantSecurityTooManyRequests) GetPayload

func (*GetTenantSecurityTooManyRequests) IsClientError

func (o *GetTenantSecurityTooManyRequests) IsClientError() bool

IsClientError returns true when this get tenant security too many requests response has a 4xx status code

func (*GetTenantSecurityTooManyRequests) IsCode

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

IsCode returns true when this get tenant security too many requests response a status code equal to that given

func (*GetTenantSecurityTooManyRequests) IsRedirect

func (o *GetTenantSecurityTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get tenant security too many requests response has a 3xx status code

func (*GetTenantSecurityTooManyRequests) IsServerError

func (o *GetTenantSecurityTooManyRequests) IsServerError() bool

IsServerError returns true when this get tenant security too many requests response has a 5xx status code

func (*GetTenantSecurityTooManyRequests) IsSuccess

func (o *GetTenantSecurityTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get tenant security too many requests response has a 2xx status code

func (*GetTenantSecurityTooManyRequests) String

type GetTenantSecurityUnauthorized

type GetTenantSecurityUnauthorized struct {
	Payload *models.Error
}

GetTenantSecurityUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetTenantSecurityUnauthorized

func NewGetTenantSecurityUnauthorized() *GetTenantSecurityUnauthorized

NewGetTenantSecurityUnauthorized creates a GetTenantSecurityUnauthorized with default headers values

func (*GetTenantSecurityUnauthorized) Code

Code gets the status code for the get tenant security unauthorized response

func (*GetTenantSecurityUnauthorized) Error

func (*GetTenantSecurityUnauthorized) GetPayload

func (o *GetTenantSecurityUnauthorized) GetPayload() *models.Error

func (*GetTenantSecurityUnauthorized) IsClientError

func (o *GetTenantSecurityUnauthorized) IsClientError() bool

IsClientError returns true when this get tenant security unauthorized response has a 4xx status code

func (*GetTenantSecurityUnauthorized) IsCode

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

IsCode returns true when this get tenant security unauthorized response a status code equal to that given

func (*GetTenantSecurityUnauthorized) IsRedirect

func (o *GetTenantSecurityUnauthorized) IsRedirect() bool

IsRedirect returns true when this get tenant security unauthorized response has a 3xx status code

func (*GetTenantSecurityUnauthorized) IsServerError

func (o *GetTenantSecurityUnauthorized) IsServerError() bool

IsServerError returns true when this get tenant security unauthorized response has a 5xx status code

func (*GetTenantSecurityUnauthorized) IsSuccess

func (o *GetTenantSecurityUnauthorized) IsSuccess() bool

IsSuccess returns true when this get tenant security unauthorized response has a 2xx status code

func (*GetTenantSecurityUnauthorized) String

type SetTenantSecurityBadRequest

type SetTenantSecurityBadRequest struct {
	Payload *models.Error
}

SetTenantSecurityBadRequest describes a response with status code 400, with default header values.

Bad request

func NewSetTenantSecurityBadRequest

func NewSetTenantSecurityBadRequest() *SetTenantSecurityBadRequest

NewSetTenantSecurityBadRequest creates a SetTenantSecurityBadRequest with default headers values

func (*SetTenantSecurityBadRequest) Code

func (o *SetTenantSecurityBadRequest) Code() int

Code gets the status code for the set tenant security bad request response

func (*SetTenantSecurityBadRequest) Error

func (*SetTenantSecurityBadRequest) GetPayload

func (o *SetTenantSecurityBadRequest) GetPayload() *models.Error

func (*SetTenantSecurityBadRequest) IsClientError

func (o *SetTenantSecurityBadRequest) IsClientError() bool

IsClientError returns true when this set tenant security bad request response has a 4xx status code

func (*SetTenantSecurityBadRequest) IsCode

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

IsCode returns true when this set tenant security bad request response a status code equal to that given

func (*SetTenantSecurityBadRequest) IsRedirect

func (o *SetTenantSecurityBadRequest) IsRedirect() bool

IsRedirect returns true when this set tenant security bad request response has a 3xx status code

func (*SetTenantSecurityBadRequest) IsServerError

func (o *SetTenantSecurityBadRequest) IsServerError() bool

IsServerError returns true when this set tenant security bad request response has a 5xx status code

func (*SetTenantSecurityBadRequest) IsSuccess

func (o *SetTenantSecurityBadRequest) IsSuccess() bool

IsSuccess returns true when this set tenant security bad request response has a 2xx status code

func (*SetTenantSecurityBadRequest) String

func (o *SetTenantSecurityBadRequest) String() string

type SetTenantSecurityForbidden

type SetTenantSecurityForbidden struct {
	Payload *models.Error
}

SetTenantSecurityForbidden describes a response with status code 403, with default header values.

Forbidden

func NewSetTenantSecurityForbidden

func NewSetTenantSecurityForbidden() *SetTenantSecurityForbidden

NewSetTenantSecurityForbidden creates a SetTenantSecurityForbidden with default headers values

func (*SetTenantSecurityForbidden) Code

func (o *SetTenantSecurityForbidden) Code() int

Code gets the status code for the set tenant security forbidden response

func (*SetTenantSecurityForbidden) Error

func (*SetTenantSecurityForbidden) GetPayload

func (o *SetTenantSecurityForbidden) GetPayload() *models.Error

func (*SetTenantSecurityForbidden) IsClientError

func (o *SetTenantSecurityForbidden) IsClientError() bool

IsClientError returns true when this set tenant security forbidden response has a 4xx status code

func (*SetTenantSecurityForbidden) IsCode

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

IsCode returns true when this set tenant security forbidden response a status code equal to that given

func (*SetTenantSecurityForbidden) IsRedirect

func (o *SetTenantSecurityForbidden) IsRedirect() bool

IsRedirect returns true when this set tenant security forbidden response has a 3xx status code

func (*SetTenantSecurityForbidden) IsServerError

func (o *SetTenantSecurityForbidden) IsServerError() bool

IsServerError returns true when this set tenant security forbidden response has a 5xx status code

func (*SetTenantSecurityForbidden) IsSuccess

func (o *SetTenantSecurityForbidden) IsSuccess() bool

IsSuccess returns true when this set tenant security forbidden response has a 2xx status code

func (*SetTenantSecurityForbidden) String

func (o *SetTenantSecurityForbidden) String() string

type SetTenantSecurityNoContent

type SetTenantSecurityNoContent struct {
}

SetTenantSecurityNoContent describes a response with status code 204, with default header values.

tenant feature set

func NewSetTenantSecurityNoContent

func NewSetTenantSecurityNoContent() *SetTenantSecurityNoContent

NewSetTenantSecurityNoContent creates a SetTenantSecurityNoContent with default headers values

func (*SetTenantSecurityNoContent) Code

func (o *SetTenantSecurityNoContent) Code() int

Code gets the status code for the set tenant security no content response

func (*SetTenantSecurityNoContent) Error

func (*SetTenantSecurityNoContent) IsClientError

func (o *SetTenantSecurityNoContent) IsClientError() bool

IsClientError returns true when this set tenant security no content response has a 4xx status code

func (*SetTenantSecurityNoContent) IsCode

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

IsCode returns true when this set tenant security no content response a status code equal to that given

func (*SetTenantSecurityNoContent) IsRedirect

func (o *SetTenantSecurityNoContent) IsRedirect() bool

IsRedirect returns true when this set tenant security no content response has a 3xx status code

func (*SetTenantSecurityNoContent) IsServerError

func (o *SetTenantSecurityNoContent) IsServerError() bool

IsServerError returns true when this set tenant security no content response has a 5xx status code

func (*SetTenantSecurityNoContent) IsSuccess

func (o *SetTenantSecurityNoContent) IsSuccess() bool

IsSuccess returns true when this set tenant security no content response has a 2xx status code

func (*SetTenantSecurityNoContent) String

func (o *SetTenantSecurityNoContent) String() string

type SetTenantSecurityNotFound

type SetTenantSecurityNotFound struct {
	Payload *models.Error
}

SetTenantSecurityNotFound describes a response with status code 404, with default header values.

Not found

func NewSetTenantSecurityNotFound

func NewSetTenantSecurityNotFound() *SetTenantSecurityNotFound

NewSetTenantSecurityNotFound creates a SetTenantSecurityNotFound with default headers values

func (*SetTenantSecurityNotFound) Code

func (o *SetTenantSecurityNotFound) Code() int

Code gets the status code for the set tenant security not found response

func (*SetTenantSecurityNotFound) Error

func (o *SetTenantSecurityNotFound) Error() string

func (*SetTenantSecurityNotFound) GetPayload

func (o *SetTenantSecurityNotFound) GetPayload() *models.Error

func (*SetTenantSecurityNotFound) IsClientError

func (o *SetTenantSecurityNotFound) IsClientError() bool

IsClientError returns true when this set tenant security not found response has a 4xx status code

func (*SetTenantSecurityNotFound) IsCode

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

IsCode returns true when this set tenant security not found response a status code equal to that given

func (*SetTenantSecurityNotFound) IsRedirect

func (o *SetTenantSecurityNotFound) IsRedirect() bool

IsRedirect returns true when this set tenant security not found response has a 3xx status code

func (*SetTenantSecurityNotFound) IsServerError

func (o *SetTenantSecurityNotFound) IsServerError() bool

IsServerError returns true when this set tenant security not found response has a 5xx status code

func (*SetTenantSecurityNotFound) IsSuccess

func (o *SetTenantSecurityNotFound) IsSuccess() bool

IsSuccess returns true when this set tenant security not found response has a 2xx status code

func (*SetTenantSecurityNotFound) String

func (o *SetTenantSecurityNotFound) String() string

type SetTenantSecurityParams

type SetTenantSecurityParams struct {

	// SetTenantSecurity.
	SetTenantSecurity *models.SecureOptions

	/* Tid.

	   Tenant id

	   Default: "default"
	*/
	Tid string

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

SetTenantSecurityParams contains all the parameters to send to the API endpoint

for the set tenant security operation.

Typically these are written to a http.Request.

func NewSetTenantSecurityParams

func NewSetTenantSecurityParams() *SetTenantSecurityParams

NewSetTenantSecurityParams creates a new SetTenantSecurityParams 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 NewSetTenantSecurityParamsWithContext

func NewSetTenantSecurityParamsWithContext(ctx context.Context) *SetTenantSecurityParams

NewSetTenantSecurityParamsWithContext creates a new SetTenantSecurityParams object with the ability to set a context for a request.

func NewSetTenantSecurityParamsWithHTTPClient

func NewSetTenantSecurityParamsWithHTTPClient(client *http.Client) *SetTenantSecurityParams

NewSetTenantSecurityParamsWithHTTPClient creates a new SetTenantSecurityParams object with the ability to set a custom HTTPClient for a request.

func NewSetTenantSecurityParamsWithTimeout

func NewSetTenantSecurityParamsWithTimeout(timeout time.Duration) *SetTenantSecurityParams

NewSetTenantSecurityParamsWithTimeout creates a new SetTenantSecurityParams object with the ability to set a timeout on a request.

func (*SetTenantSecurityParams) SetContext

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

SetContext adds the context to the set tenant security params

func (*SetTenantSecurityParams) SetDefaults

func (o *SetTenantSecurityParams) SetDefaults()

SetDefaults hydrates default values in the set tenant security params (not the query body).

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

func (*SetTenantSecurityParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set tenant security params

func (*SetTenantSecurityParams) SetSetTenantSecurity

func (o *SetTenantSecurityParams) SetSetTenantSecurity(setTenantSecurity *models.SecureOptions)

SetSetTenantSecurity adds the setTenantSecurity to the set tenant security params

func (*SetTenantSecurityParams) SetTid

func (o *SetTenantSecurityParams) SetTid(tid string)

SetTid adds the tid to the set tenant security params

func (*SetTenantSecurityParams) SetTimeout

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

SetTimeout adds the timeout to the set tenant security params

func (*SetTenantSecurityParams) WithContext

WithContext adds the context to the set tenant security params

func (*SetTenantSecurityParams) WithDefaults

WithDefaults hydrates default values in the set tenant security params (not the query body).

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

func (*SetTenantSecurityParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set tenant security params

func (*SetTenantSecurityParams) WithSetTenantSecurity

func (o *SetTenantSecurityParams) WithSetTenantSecurity(setTenantSecurity *models.SecureOptions) *SetTenantSecurityParams

WithSetTenantSecurity adds the setTenantSecurity to the set tenant security params

func (*SetTenantSecurityParams) WithTid

WithTid adds the tid to the set tenant security params

func (*SetTenantSecurityParams) WithTimeout

WithTimeout adds the timeout to the set tenant security params

func (*SetTenantSecurityParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetTenantSecurityReader

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

SetTenantSecurityReader is a Reader for the SetTenantSecurity structure.

func (*SetTenantSecurityReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetTenantSecurityTooManyRequests

type SetTenantSecurityTooManyRequests struct {
	Payload *models.Error
}

SetTenantSecurityTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewSetTenantSecurityTooManyRequests

func NewSetTenantSecurityTooManyRequests() *SetTenantSecurityTooManyRequests

NewSetTenantSecurityTooManyRequests creates a SetTenantSecurityTooManyRequests with default headers values

func (*SetTenantSecurityTooManyRequests) Code

Code gets the status code for the set tenant security too many requests response

func (*SetTenantSecurityTooManyRequests) Error

func (*SetTenantSecurityTooManyRequests) GetPayload

func (*SetTenantSecurityTooManyRequests) IsClientError

func (o *SetTenantSecurityTooManyRequests) IsClientError() bool

IsClientError returns true when this set tenant security too many requests response has a 4xx status code

func (*SetTenantSecurityTooManyRequests) IsCode

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

IsCode returns true when this set tenant security too many requests response a status code equal to that given

func (*SetTenantSecurityTooManyRequests) IsRedirect

func (o *SetTenantSecurityTooManyRequests) IsRedirect() bool

IsRedirect returns true when this set tenant security too many requests response has a 3xx status code

func (*SetTenantSecurityTooManyRequests) IsServerError

func (o *SetTenantSecurityTooManyRequests) IsServerError() bool

IsServerError returns true when this set tenant security too many requests response has a 5xx status code

func (*SetTenantSecurityTooManyRequests) IsSuccess

func (o *SetTenantSecurityTooManyRequests) IsSuccess() bool

IsSuccess returns true when this set tenant security too many requests response has a 2xx status code

func (*SetTenantSecurityTooManyRequests) String

type SetTenantSecurityUnauthorized

type SetTenantSecurityUnauthorized struct {
	Payload *models.Error
}

SetTenantSecurityUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewSetTenantSecurityUnauthorized

func NewSetTenantSecurityUnauthorized() *SetTenantSecurityUnauthorized

NewSetTenantSecurityUnauthorized creates a SetTenantSecurityUnauthorized with default headers values

func (*SetTenantSecurityUnauthorized) Code

Code gets the status code for the set tenant security unauthorized response

func (*SetTenantSecurityUnauthorized) Error

func (*SetTenantSecurityUnauthorized) GetPayload

func (o *SetTenantSecurityUnauthorized) GetPayload() *models.Error

func (*SetTenantSecurityUnauthorized) IsClientError

func (o *SetTenantSecurityUnauthorized) IsClientError() bool

IsClientError returns true when this set tenant security unauthorized response has a 4xx status code

func (*SetTenantSecurityUnauthorized) IsCode

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

IsCode returns true when this set tenant security unauthorized response a status code equal to that given

func (*SetTenantSecurityUnauthorized) IsRedirect

func (o *SetTenantSecurityUnauthorized) IsRedirect() bool

IsRedirect returns true when this set tenant security unauthorized response has a 3xx status code

func (*SetTenantSecurityUnauthorized) IsServerError

func (o *SetTenantSecurityUnauthorized) IsServerError() bool

IsServerError returns true when this set tenant security unauthorized response has a 5xx status code

func (*SetTenantSecurityUnauthorized) IsSuccess

func (o *SetTenantSecurityUnauthorized) IsSuccess() bool

IsSuccess returns true when this set tenant security unauthorized response has a 2xx status code

func (*SetTenantSecurityUnauthorized) String

type SetTenantSecurityUnprocessableEntity

type SetTenantSecurityUnprocessableEntity struct {
	Payload *models.Error
}

SetTenantSecurityUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable entity

func NewSetTenantSecurityUnprocessableEntity

func NewSetTenantSecurityUnprocessableEntity() *SetTenantSecurityUnprocessableEntity

NewSetTenantSecurityUnprocessableEntity creates a SetTenantSecurityUnprocessableEntity with default headers values

func (*SetTenantSecurityUnprocessableEntity) Code

Code gets the status code for the set tenant security unprocessable entity response

func (*SetTenantSecurityUnprocessableEntity) Error

func (*SetTenantSecurityUnprocessableEntity) GetPayload

func (*SetTenantSecurityUnprocessableEntity) IsClientError

func (o *SetTenantSecurityUnprocessableEntity) IsClientError() bool

IsClientError returns true when this set tenant security unprocessable entity response has a 4xx status code

func (*SetTenantSecurityUnprocessableEntity) IsCode

IsCode returns true when this set tenant security unprocessable entity response a status code equal to that given

func (*SetTenantSecurityUnprocessableEntity) IsRedirect

IsRedirect returns true when this set tenant security unprocessable entity response has a 3xx status code

func (*SetTenantSecurityUnprocessableEntity) IsServerError

func (o *SetTenantSecurityUnprocessableEntity) IsServerError() bool

IsServerError returns true when this set tenant security unprocessable entity response has a 5xx status code

func (*SetTenantSecurityUnprocessableEntity) IsSuccess

IsSuccess returns true when this set tenant security unprocessable entity response has a 2xx status code

func (*SetTenantSecurityUnprocessableEntity) String

Jump to

Keyboard shortcuts

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