features

package
v0.0.0-...-7b99a6d Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 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 features API

func (*Client) GetTenantFeatures

func (a *Client) GetTenantFeatures(params *GetTenantFeaturesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantFeaturesOK, error)
GetTenantFeatures gets tenant features

Returns a map of all feature flags and their values.

To be able to set a tenant feature flag, you need to use an access token issued for a system tenant and admin workspace.

func (*Client) SetTenantFeature

func (a *Client) SetTenantFeature(params *SetTenantFeatureParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetTenantFeatureNoContent, error)
SetTenantFeature sets tenant feature

Enable or disable one of the tenant's features.

To be able to set a tenant feature flag, you need to use an access token issued for a system tenant and admin workspace.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetTenantFeatures(params *GetTenantFeaturesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantFeaturesOK, error)

	SetTenantFeature(params *SetTenantFeatureParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetTenantFeatureNoContent, 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 features API client.

type GetTenantFeaturesForbidden

type GetTenantFeaturesForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewGetTenantFeaturesForbidden

func NewGetTenantFeaturesForbidden() *GetTenantFeaturesForbidden

NewGetTenantFeaturesForbidden creates a GetTenantFeaturesForbidden with default headers values

func (*GetTenantFeaturesForbidden) Code

func (o *GetTenantFeaturesForbidden) Code() int

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

func (*GetTenantFeaturesForbidden) Error

func (*GetTenantFeaturesForbidden) GetPayload

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

func (*GetTenantFeaturesForbidden) IsClientError

func (o *GetTenantFeaturesForbidden) IsClientError() bool

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

func (*GetTenantFeaturesForbidden) IsCode

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

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

func (*GetTenantFeaturesForbidden) IsRedirect

func (o *GetTenantFeaturesForbidden) IsRedirect() bool

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

func (*GetTenantFeaturesForbidden) IsServerError

func (o *GetTenantFeaturesForbidden) IsServerError() bool

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

func (*GetTenantFeaturesForbidden) IsSuccess

func (o *GetTenantFeaturesForbidden) IsSuccess() bool

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

func (*GetTenantFeaturesForbidden) String

func (o *GetTenantFeaturesForbidden) String() string

type GetTenantFeaturesNotFound

type GetTenantFeaturesNotFound struct {
	Payload *models.Error
}

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

Not found

func NewGetTenantFeaturesNotFound

func NewGetTenantFeaturesNotFound() *GetTenantFeaturesNotFound

NewGetTenantFeaturesNotFound creates a GetTenantFeaturesNotFound with default headers values

func (*GetTenantFeaturesNotFound) Code

func (o *GetTenantFeaturesNotFound) Code() int

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

func (*GetTenantFeaturesNotFound) Error

func (o *GetTenantFeaturesNotFound) Error() string

func (*GetTenantFeaturesNotFound) GetPayload

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

func (*GetTenantFeaturesNotFound) IsClientError

func (o *GetTenantFeaturesNotFound) IsClientError() bool

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

func (*GetTenantFeaturesNotFound) IsCode

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

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

func (*GetTenantFeaturesNotFound) IsRedirect

func (o *GetTenantFeaturesNotFound) IsRedirect() bool

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

func (*GetTenantFeaturesNotFound) IsServerError

func (o *GetTenantFeaturesNotFound) IsServerError() bool

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

func (*GetTenantFeaturesNotFound) IsSuccess

func (o *GetTenantFeaturesNotFound) IsSuccess() bool

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

func (*GetTenantFeaturesNotFound) String

func (o *GetTenantFeaturesNotFound) String() string

type GetTenantFeaturesOK

type GetTenantFeaturesOK struct {
	Payload *models.FeaturesResponse
}

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

Get tenant features

func NewGetTenantFeaturesOK

func NewGetTenantFeaturesOK() *GetTenantFeaturesOK

NewGetTenantFeaturesOK creates a GetTenantFeaturesOK with default headers values

func (*GetTenantFeaturesOK) Code

func (o *GetTenantFeaturesOK) Code() int

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

func (*GetTenantFeaturesOK) Error

func (o *GetTenantFeaturesOK) Error() string

func (*GetTenantFeaturesOK) GetPayload

func (o *GetTenantFeaturesOK) GetPayload() *models.FeaturesResponse

func (*GetTenantFeaturesOK) IsClientError

func (o *GetTenantFeaturesOK) IsClientError() bool

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

func (*GetTenantFeaturesOK) IsCode

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

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

func (*GetTenantFeaturesOK) IsRedirect

func (o *GetTenantFeaturesOK) IsRedirect() bool

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

func (*GetTenantFeaturesOK) IsServerError

func (o *GetTenantFeaturesOK) IsServerError() bool

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

func (*GetTenantFeaturesOK) IsSuccess

func (o *GetTenantFeaturesOK) IsSuccess() bool

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

func (*GetTenantFeaturesOK) String

func (o *GetTenantFeaturesOK) String() string

type GetTenantFeaturesParams

type GetTenantFeaturesParams struct {

	/* Tid.

	   Tenant id

	   Default: "default"
	*/
	Tid string

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

GetTenantFeaturesParams contains all the parameters to send to the API endpoint

for the get tenant features operation.

Typically these are written to a http.Request.

func NewGetTenantFeaturesParams

func NewGetTenantFeaturesParams() *GetTenantFeaturesParams

NewGetTenantFeaturesParams creates a new GetTenantFeaturesParams 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 NewGetTenantFeaturesParamsWithContext

func NewGetTenantFeaturesParamsWithContext(ctx context.Context) *GetTenantFeaturesParams

NewGetTenantFeaturesParamsWithContext creates a new GetTenantFeaturesParams object with the ability to set a context for a request.

func NewGetTenantFeaturesParamsWithHTTPClient

func NewGetTenantFeaturesParamsWithHTTPClient(client *http.Client) *GetTenantFeaturesParams

NewGetTenantFeaturesParamsWithHTTPClient creates a new GetTenantFeaturesParams object with the ability to set a custom HTTPClient for a request.

func NewGetTenantFeaturesParamsWithTimeout

func NewGetTenantFeaturesParamsWithTimeout(timeout time.Duration) *GetTenantFeaturesParams

NewGetTenantFeaturesParamsWithTimeout creates a new GetTenantFeaturesParams object with the ability to set a timeout on a request.

func (*GetTenantFeaturesParams) SetContext

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

SetContext adds the context to the get tenant features params

func (*GetTenantFeaturesParams) SetDefaults

func (o *GetTenantFeaturesParams) SetDefaults()

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

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

func (*GetTenantFeaturesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get tenant features params

func (*GetTenantFeaturesParams) SetTid

func (o *GetTenantFeaturesParams) SetTid(tid string)

SetTid adds the tid to the get tenant features params

func (*GetTenantFeaturesParams) SetTimeout

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

SetTimeout adds the timeout to the get tenant features params

func (*GetTenantFeaturesParams) WithContext

WithContext adds the context to the get tenant features params

func (*GetTenantFeaturesParams) WithDefaults

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

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

func (*GetTenantFeaturesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get tenant features params

func (*GetTenantFeaturesParams) WithTid

WithTid adds the tid to the get tenant features params

func (*GetTenantFeaturesParams) WithTimeout

WithTimeout adds the timeout to the get tenant features params

func (*GetTenantFeaturesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTenantFeaturesReader

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

GetTenantFeaturesReader is a Reader for the GetTenantFeatures structure.

func (*GetTenantFeaturesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTenantFeaturesTooManyRequests

type GetTenantFeaturesTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewGetTenantFeaturesTooManyRequests

func NewGetTenantFeaturesTooManyRequests() *GetTenantFeaturesTooManyRequests

NewGetTenantFeaturesTooManyRequests creates a GetTenantFeaturesTooManyRequests with default headers values

func (*GetTenantFeaturesTooManyRequests) Code

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

func (*GetTenantFeaturesTooManyRequests) Error

func (*GetTenantFeaturesTooManyRequests) GetPayload

func (*GetTenantFeaturesTooManyRequests) IsClientError

func (o *GetTenantFeaturesTooManyRequests) IsClientError() bool

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

func (*GetTenantFeaturesTooManyRequests) IsCode

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

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

func (*GetTenantFeaturesTooManyRequests) IsRedirect

func (o *GetTenantFeaturesTooManyRequests) IsRedirect() bool

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

func (*GetTenantFeaturesTooManyRequests) IsServerError

func (o *GetTenantFeaturesTooManyRequests) IsServerError() bool

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

func (*GetTenantFeaturesTooManyRequests) IsSuccess

func (o *GetTenantFeaturesTooManyRequests) IsSuccess() bool

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

func (*GetTenantFeaturesTooManyRequests) String

type GetTenantFeaturesUnauthorized

type GetTenantFeaturesUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewGetTenantFeaturesUnauthorized

func NewGetTenantFeaturesUnauthorized() *GetTenantFeaturesUnauthorized

NewGetTenantFeaturesUnauthorized creates a GetTenantFeaturesUnauthorized with default headers values

func (*GetTenantFeaturesUnauthorized) Code

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

func (*GetTenantFeaturesUnauthorized) Error

func (*GetTenantFeaturesUnauthorized) GetPayload

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

func (*GetTenantFeaturesUnauthorized) IsClientError

func (o *GetTenantFeaturesUnauthorized) IsClientError() bool

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

func (*GetTenantFeaturesUnauthorized) IsCode

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

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

func (*GetTenantFeaturesUnauthorized) IsRedirect

func (o *GetTenantFeaturesUnauthorized) IsRedirect() bool

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

func (*GetTenantFeaturesUnauthorized) IsServerError

func (o *GetTenantFeaturesUnauthorized) IsServerError() bool

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

func (*GetTenantFeaturesUnauthorized) IsSuccess

func (o *GetTenantFeaturesUnauthorized) IsSuccess() bool

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

func (*GetTenantFeaturesUnauthorized) String

type SetTenantFeatureBadRequest

type SetTenantFeatureBadRequest struct {
	Payload *models.Error
}

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

Bad request

func NewSetTenantFeatureBadRequest

func NewSetTenantFeatureBadRequest() *SetTenantFeatureBadRequest

NewSetTenantFeatureBadRequest creates a SetTenantFeatureBadRequest with default headers values

func (*SetTenantFeatureBadRequest) Code

func (o *SetTenantFeatureBadRequest) Code() int

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

func (*SetTenantFeatureBadRequest) Error

func (*SetTenantFeatureBadRequest) GetPayload

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

func (*SetTenantFeatureBadRequest) IsClientError

func (o *SetTenantFeatureBadRequest) IsClientError() bool

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

func (*SetTenantFeatureBadRequest) IsCode

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

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

func (*SetTenantFeatureBadRequest) IsRedirect

func (o *SetTenantFeatureBadRequest) IsRedirect() bool

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

func (*SetTenantFeatureBadRequest) IsServerError

func (o *SetTenantFeatureBadRequest) IsServerError() bool

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

func (*SetTenantFeatureBadRequest) IsSuccess

func (o *SetTenantFeatureBadRequest) IsSuccess() bool

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

func (*SetTenantFeatureBadRequest) String

func (o *SetTenantFeatureBadRequest) String() string

type SetTenantFeatureForbidden

type SetTenantFeatureForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewSetTenantFeatureForbidden

func NewSetTenantFeatureForbidden() *SetTenantFeatureForbidden

NewSetTenantFeatureForbidden creates a SetTenantFeatureForbidden with default headers values

func (*SetTenantFeatureForbidden) Code

func (o *SetTenantFeatureForbidden) Code() int

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

func (*SetTenantFeatureForbidden) Error

func (o *SetTenantFeatureForbidden) Error() string

func (*SetTenantFeatureForbidden) GetPayload

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

func (*SetTenantFeatureForbidden) IsClientError

func (o *SetTenantFeatureForbidden) IsClientError() bool

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

func (*SetTenantFeatureForbidden) IsCode

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

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

func (*SetTenantFeatureForbidden) IsRedirect

func (o *SetTenantFeatureForbidden) IsRedirect() bool

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

func (*SetTenantFeatureForbidden) IsServerError

func (o *SetTenantFeatureForbidden) IsServerError() bool

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

func (*SetTenantFeatureForbidden) IsSuccess

func (o *SetTenantFeatureForbidden) IsSuccess() bool

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

func (*SetTenantFeatureForbidden) String

func (o *SetTenantFeatureForbidden) String() string

type SetTenantFeatureNoContent

type SetTenantFeatureNoContent struct {
}

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

tenant feature set

func NewSetTenantFeatureNoContent

func NewSetTenantFeatureNoContent() *SetTenantFeatureNoContent

NewSetTenantFeatureNoContent creates a SetTenantFeatureNoContent with default headers values

func (*SetTenantFeatureNoContent) Code

func (o *SetTenantFeatureNoContent) Code() int

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

func (*SetTenantFeatureNoContent) Error

func (o *SetTenantFeatureNoContent) Error() string

func (*SetTenantFeatureNoContent) IsClientError

func (o *SetTenantFeatureNoContent) IsClientError() bool

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

func (*SetTenantFeatureNoContent) IsCode

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

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

func (*SetTenantFeatureNoContent) IsRedirect

func (o *SetTenantFeatureNoContent) IsRedirect() bool

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

func (*SetTenantFeatureNoContent) IsServerError

func (o *SetTenantFeatureNoContent) IsServerError() bool

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

func (*SetTenantFeatureNoContent) IsSuccess

func (o *SetTenantFeatureNoContent) IsSuccess() bool

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

func (*SetTenantFeatureNoContent) String

func (o *SetTenantFeatureNoContent) String() string

type SetTenantFeatureNotFound

type SetTenantFeatureNotFound struct {
	Payload *models.Error
}

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

Not found

func NewSetTenantFeatureNotFound

func NewSetTenantFeatureNotFound() *SetTenantFeatureNotFound

NewSetTenantFeatureNotFound creates a SetTenantFeatureNotFound with default headers values

func (*SetTenantFeatureNotFound) Code

func (o *SetTenantFeatureNotFound) Code() int

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

func (*SetTenantFeatureNotFound) Error

func (o *SetTenantFeatureNotFound) Error() string

func (*SetTenantFeatureNotFound) GetPayload

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

func (*SetTenantFeatureNotFound) IsClientError

func (o *SetTenantFeatureNotFound) IsClientError() bool

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

func (*SetTenantFeatureNotFound) IsCode

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

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

func (*SetTenantFeatureNotFound) IsRedirect

func (o *SetTenantFeatureNotFound) IsRedirect() bool

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

func (*SetTenantFeatureNotFound) IsServerError

func (o *SetTenantFeatureNotFound) IsServerError() bool

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

func (*SetTenantFeatureNotFound) IsSuccess

func (o *SetTenantFeatureNotFound) IsSuccess() bool

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

func (*SetTenantFeatureNotFound) String

func (o *SetTenantFeatureNotFound) String() string

type SetTenantFeatureParams

type SetTenantFeatureParams struct {

	// SetTenantFeature.
	SetTenantFeature *models.SetTenantFeature

	/* Tid.

	   Tenant id

	   Default: "default"
	*/
	Tid string

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

SetTenantFeatureParams contains all the parameters to send to the API endpoint

for the set tenant feature operation.

Typically these are written to a http.Request.

func NewSetTenantFeatureParams

func NewSetTenantFeatureParams() *SetTenantFeatureParams

NewSetTenantFeatureParams creates a new SetTenantFeatureParams 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 NewSetTenantFeatureParamsWithContext

func NewSetTenantFeatureParamsWithContext(ctx context.Context) *SetTenantFeatureParams

NewSetTenantFeatureParamsWithContext creates a new SetTenantFeatureParams object with the ability to set a context for a request.

func NewSetTenantFeatureParamsWithHTTPClient

func NewSetTenantFeatureParamsWithHTTPClient(client *http.Client) *SetTenantFeatureParams

NewSetTenantFeatureParamsWithHTTPClient creates a new SetTenantFeatureParams object with the ability to set a custom HTTPClient for a request.

func NewSetTenantFeatureParamsWithTimeout

func NewSetTenantFeatureParamsWithTimeout(timeout time.Duration) *SetTenantFeatureParams

NewSetTenantFeatureParamsWithTimeout creates a new SetTenantFeatureParams object with the ability to set a timeout on a request.

func (*SetTenantFeatureParams) SetContext

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

SetContext adds the context to the set tenant feature params

func (*SetTenantFeatureParams) SetDefaults

func (o *SetTenantFeatureParams) SetDefaults()

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

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

func (*SetTenantFeatureParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set tenant feature params

func (*SetTenantFeatureParams) SetSetTenantFeature

func (o *SetTenantFeatureParams) SetSetTenantFeature(setTenantFeature *models.SetTenantFeature)

SetSetTenantFeature adds the setTenantFeature to the set tenant feature params

func (*SetTenantFeatureParams) SetTid

func (o *SetTenantFeatureParams) SetTid(tid string)

SetTid adds the tid to the set tenant feature params

func (*SetTenantFeatureParams) SetTimeout

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

SetTimeout adds the timeout to the set tenant feature params

func (*SetTenantFeatureParams) WithContext

WithContext adds the context to the set tenant feature params

func (*SetTenantFeatureParams) WithDefaults

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

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

func (*SetTenantFeatureParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set tenant feature params

func (*SetTenantFeatureParams) WithSetTenantFeature

func (o *SetTenantFeatureParams) WithSetTenantFeature(setTenantFeature *models.SetTenantFeature) *SetTenantFeatureParams

WithSetTenantFeature adds the setTenantFeature to the set tenant feature params

func (*SetTenantFeatureParams) WithTid

WithTid adds the tid to the set tenant feature params

func (*SetTenantFeatureParams) WithTimeout

WithTimeout adds the timeout to the set tenant feature params

func (*SetTenantFeatureParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetTenantFeatureReader

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

SetTenantFeatureReader is a Reader for the SetTenantFeature structure.

func (*SetTenantFeatureReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetTenantFeatureTooManyRequests

type SetTenantFeatureTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewSetTenantFeatureTooManyRequests

func NewSetTenantFeatureTooManyRequests() *SetTenantFeatureTooManyRequests

NewSetTenantFeatureTooManyRequests creates a SetTenantFeatureTooManyRequests with default headers values

func (*SetTenantFeatureTooManyRequests) Code

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

func (*SetTenantFeatureTooManyRequests) Error

func (*SetTenantFeatureTooManyRequests) GetPayload

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

func (*SetTenantFeatureTooManyRequests) IsClientError

func (o *SetTenantFeatureTooManyRequests) IsClientError() bool

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

func (*SetTenantFeatureTooManyRequests) IsCode

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

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

func (*SetTenantFeatureTooManyRequests) IsRedirect

func (o *SetTenantFeatureTooManyRequests) IsRedirect() bool

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

func (*SetTenantFeatureTooManyRequests) IsServerError

func (o *SetTenantFeatureTooManyRequests) IsServerError() bool

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

func (*SetTenantFeatureTooManyRequests) IsSuccess

func (o *SetTenantFeatureTooManyRequests) IsSuccess() bool

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

func (*SetTenantFeatureTooManyRequests) String

type SetTenantFeatureUnauthorized

type SetTenantFeatureUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewSetTenantFeatureUnauthorized

func NewSetTenantFeatureUnauthorized() *SetTenantFeatureUnauthorized

NewSetTenantFeatureUnauthorized creates a SetTenantFeatureUnauthorized with default headers values

func (*SetTenantFeatureUnauthorized) Code

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

func (*SetTenantFeatureUnauthorized) Error

func (*SetTenantFeatureUnauthorized) GetPayload

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

func (*SetTenantFeatureUnauthorized) IsClientError

func (o *SetTenantFeatureUnauthorized) IsClientError() bool

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

func (*SetTenantFeatureUnauthorized) IsCode

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

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

func (*SetTenantFeatureUnauthorized) IsRedirect

func (o *SetTenantFeatureUnauthorized) IsRedirect() bool

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

func (*SetTenantFeatureUnauthorized) IsServerError

func (o *SetTenantFeatureUnauthorized) IsServerError() bool

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

func (*SetTenantFeatureUnauthorized) IsSuccess

func (o *SetTenantFeatureUnauthorized) IsSuccess() bool

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

func (*SetTenantFeatureUnauthorized) String

type SetTenantFeatureUnprocessableEntity

type SetTenantFeatureUnprocessableEntity struct {
	Payload *models.Error
}

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

Unprocessable entity

func NewSetTenantFeatureUnprocessableEntity

func NewSetTenantFeatureUnprocessableEntity() *SetTenantFeatureUnprocessableEntity

NewSetTenantFeatureUnprocessableEntity creates a SetTenantFeatureUnprocessableEntity with default headers values

func (*SetTenantFeatureUnprocessableEntity) Code

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

func (*SetTenantFeatureUnprocessableEntity) Error

func (*SetTenantFeatureUnprocessableEntity) GetPayload

func (*SetTenantFeatureUnprocessableEntity) IsClientError

func (o *SetTenantFeatureUnprocessableEntity) IsClientError() bool

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

func (*SetTenantFeatureUnprocessableEntity) IsCode

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

func (*SetTenantFeatureUnprocessableEntity) IsRedirect

func (o *SetTenantFeatureUnprocessableEntity) IsRedirect() bool

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

func (*SetTenantFeatureUnprocessableEntity) IsServerError

func (o *SetTenantFeatureUnprocessableEntity) IsServerError() bool

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

func (*SetTenantFeatureUnprocessableEntity) IsSuccess

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

func (*SetTenantFeatureUnprocessableEntity) String

Jump to

Keyboard shortcuts

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