input_validations

package
v0.1.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminGetInputValidationsForbidden

type AdminGetInputValidationsForbidden struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminGetInputValidationsForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permissions</td></tr></table>

func NewAdminGetInputValidationsForbidden

func NewAdminGetInputValidationsForbidden() *AdminGetInputValidationsForbidden

NewAdminGetInputValidationsForbidden creates a AdminGetInputValidationsForbidden with default headers values

func (*AdminGetInputValidationsForbidden) Error

func (*AdminGetInputValidationsForbidden) GetPayload

func (*AdminGetInputValidationsForbidden) ToJSONString

func (o *AdminGetInputValidationsForbidden) ToJSONString() string

type AdminGetInputValidationsOK

type AdminGetInputValidationsOK struct {
	Payload *iamclientmodels.ModelInputValidationsResponse
}

AdminGetInputValidationsOK handles this case with default header values.

OK

func NewAdminGetInputValidationsOK

func NewAdminGetInputValidationsOK() *AdminGetInputValidationsOK

NewAdminGetInputValidationsOK creates a AdminGetInputValidationsOK with default headers values

func (*AdminGetInputValidationsOK) Error

func (*AdminGetInputValidationsOK) GetPayload

func (*AdminGetInputValidationsOK) ToJSONString

func (o *AdminGetInputValidationsOK) ToJSONString() string

type AdminGetInputValidationsParams

type AdminGetInputValidationsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry

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

AdminGetInputValidationsParams contains all the parameters to send to the API endpoint for the admin get input validations operation typically these are written to a http.Request

func NewAdminGetInputValidationsParams

func NewAdminGetInputValidationsParams() *AdminGetInputValidationsParams

NewAdminGetInputValidationsParams creates a new AdminGetInputValidationsParams object with the default values initialized.

func NewAdminGetInputValidationsParamsWithContext

func NewAdminGetInputValidationsParamsWithContext(ctx context.Context) *AdminGetInputValidationsParams

NewAdminGetInputValidationsParamsWithContext creates a new AdminGetInputValidationsParams object with the default values initialized, and the ability to set a context for a request

func NewAdminGetInputValidationsParamsWithHTTPClient

func NewAdminGetInputValidationsParamsWithHTTPClient(client *http.Client) *AdminGetInputValidationsParams

NewAdminGetInputValidationsParamsWithHTTPClient creates a new AdminGetInputValidationsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAdminGetInputValidationsParamsWithTimeout

func NewAdminGetInputValidationsParamsWithTimeout(timeout time.Duration) *AdminGetInputValidationsParams

NewAdminGetInputValidationsParamsWithTimeout creates a new AdminGetInputValidationsParams object with the default values initialized, and the ability to set a timeout on a request

func (*AdminGetInputValidationsParams) SetAuthInfoWriter

func (o *AdminGetInputValidationsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the admin get input validations params

func (*AdminGetInputValidationsParams) SetContext

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

SetContext adds the context to the admin get input validations params

func (*AdminGetInputValidationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin get input validations params

func (*AdminGetInputValidationsParams) SetHTTPClientTransport

func (o *AdminGetInputValidationsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the admin get input validations params

func (*AdminGetInputValidationsParams) SetTimeout

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

SetTimeout adds the timeout to the admin get input validations params

func (*AdminGetInputValidationsParams) WithContext

WithContext adds the context to the admin get input validations params

func (*AdminGetInputValidationsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin get input validations params

func (*AdminGetInputValidationsParams) WithTimeout

WithTimeout adds the timeout to the admin get input validations params

func (*AdminGetInputValidationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminGetInputValidationsReader

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

AdminGetInputValidationsReader is a Reader for the AdminGetInputValidations structure.

func (*AdminGetInputValidationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminGetInputValidationsUnauthorized

type AdminGetInputValidationsUnauthorized struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminGetInputValidationsUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>

func NewAdminGetInputValidationsUnauthorized

func NewAdminGetInputValidationsUnauthorized() *AdminGetInputValidationsUnauthorized

NewAdminGetInputValidationsUnauthorized creates a AdminGetInputValidationsUnauthorized with default headers values

func (*AdminGetInputValidationsUnauthorized) Error

func (*AdminGetInputValidationsUnauthorized) GetPayload

func (*AdminGetInputValidationsUnauthorized) ToJSONString

func (o *AdminGetInputValidationsUnauthorized) ToJSONString() string

type AdminResetInputValidationsForbidden

type AdminResetInputValidationsForbidden struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminResetInputValidationsForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permissions</td></tr></table>

func NewAdminResetInputValidationsForbidden

func NewAdminResetInputValidationsForbidden() *AdminResetInputValidationsForbidden

NewAdminResetInputValidationsForbidden creates a AdminResetInputValidationsForbidden with default headers values

func (*AdminResetInputValidationsForbidden) Error

func (*AdminResetInputValidationsForbidden) GetPayload

func (*AdminResetInputValidationsForbidden) ToJSONString

func (o *AdminResetInputValidationsForbidden) ToJSONString() string

type AdminResetInputValidationsNoContent

type AdminResetInputValidationsNoContent struct {
}

AdminResetInputValidationsNoContent handles this case with default header values.

No Content

func NewAdminResetInputValidationsNoContent

func NewAdminResetInputValidationsNoContent() *AdminResetInputValidationsNoContent

NewAdminResetInputValidationsNoContent creates a AdminResetInputValidationsNoContent with default headers values

func (*AdminResetInputValidationsNoContent) Error

type AdminResetInputValidationsNotFound

type AdminResetInputValidationsNotFound struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminResetInputValidationsNotFound handles this case with default header values.

func NewAdminResetInputValidationsNotFound

func NewAdminResetInputValidationsNotFound() *AdminResetInputValidationsNotFound

NewAdminResetInputValidationsNotFound creates a AdminResetInputValidationsNotFound with default headers values

func (*AdminResetInputValidationsNotFound) Error

func (*AdminResetInputValidationsNotFound) GetPayload

func (*AdminResetInputValidationsNotFound) ToJSONString

func (o *AdminResetInputValidationsNotFound) ToJSONString() string

type AdminResetInputValidationsParams

type AdminResetInputValidationsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Field
	  Name of the input validation field to reset: email, username, displayName, password, avatar

	*/
	Field string

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

AdminResetInputValidationsParams contains all the parameters to send to the API endpoint for the admin reset input validations operation typically these are written to a http.Request

func NewAdminResetInputValidationsParams

func NewAdminResetInputValidationsParams() *AdminResetInputValidationsParams

NewAdminResetInputValidationsParams creates a new AdminResetInputValidationsParams object with the default values initialized.

func NewAdminResetInputValidationsParamsWithContext

func NewAdminResetInputValidationsParamsWithContext(ctx context.Context) *AdminResetInputValidationsParams

NewAdminResetInputValidationsParamsWithContext creates a new AdminResetInputValidationsParams object with the default values initialized, and the ability to set a context for a request

func NewAdminResetInputValidationsParamsWithHTTPClient

func NewAdminResetInputValidationsParamsWithHTTPClient(client *http.Client) *AdminResetInputValidationsParams

NewAdminResetInputValidationsParamsWithHTTPClient creates a new AdminResetInputValidationsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAdminResetInputValidationsParamsWithTimeout

func NewAdminResetInputValidationsParamsWithTimeout(timeout time.Duration) *AdminResetInputValidationsParams

NewAdminResetInputValidationsParamsWithTimeout creates a new AdminResetInputValidationsParams object with the default values initialized, and the ability to set a timeout on a request

func (*AdminResetInputValidationsParams) SetAuthInfoWriter

func (o *AdminResetInputValidationsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the admin reset input validations params

func (*AdminResetInputValidationsParams) SetContext

SetContext adds the context to the admin reset input validations params

func (*AdminResetInputValidationsParams) SetField

func (o *AdminResetInputValidationsParams) SetField(field string)

SetField adds the field to the admin reset input validations params

func (*AdminResetInputValidationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin reset input validations params

func (*AdminResetInputValidationsParams) SetHTTPClientTransport

func (o *AdminResetInputValidationsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the admin reset input validations params

func (*AdminResetInputValidationsParams) SetTimeout

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

SetTimeout adds the timeout to the admin reset input validations params

func (*AdminResetInputValidationsParams) WithContext

WithContext adds the context to the admin reset input validations params

func (*AdminResetInputValidationsParams) WithField

WithField adds the field to the admin reset input validations params

func (*AdminResetInputValidationsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin reset input validations params

func (*AdminResetInputValidationsParams) WithTimeout

WithTimeout adds the timeout to the admin reset input validations params

func (*AdminResetInputValidationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminResetInputValidationsReader

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

AdminResetInputValidationsReader is a Reader for the AdminResetInputValidations structure.

func (*AdminResetInputValidationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminResetInputValidationsUnauthorized

type AdminResetInputValidationsUnauthorized struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminResetInputValidationsUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>

func NewAdminResetInputValidationsUnauthorized

func NewAdminResetInputValidationsUnauthorized() *AdminResetInputValidationsUnauthorized

NewAdminResetInputValidationsUnauthorized creates a AdminResetInputValidationsUnauthorized with default headers values

func (*AdminResetInputValidationsUnauthorized) Error

func (*AdminResetInputValidationsUnauthorized) GetPayload

func (*AdminResetInputValidationsUnauthorized) ToJSONString

type AdminUpdateInputValidationsForbidden

type AdminUpdateInputValidationsForbidden struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminUpdateInputValidationsForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permissions</td></tr></table>

func NewAdminUpdateInputValidationsForbidden

func NewAdminUpdateInputValidationsForbidden() *AdminUpdateInputValidationsForbidden

NewAdminUpdateInputValidationsForbidden creates a AdminUpdateInputValidationsForbidden with default headers values

func (*AdminUpdateInputValidationsForbidden) Error

func (*AdminUpdateInputValidationsForbidden) GetPayload

func (*AdminUpdateInputValidationsForbidden) ToJSONString

func (o *AdminUpdateInputValidationsForbidden) ToJSONString() string

type AdminUpdateInputValidationsNoContent

type AdminUpdateInputValidationsNoContent struct {
}

AdminUpdateInputValidationsNoContent handles this case with default header values.

No Content

func NewAdminUpdateInputValidationsNoContent

func NewAdminUpdateInputValidationsNoContent() *AdminUpdateInputValidationsNoContent

NewAdminUpdateInputValidationsNoContent creates a AdminUpdateInputValidationsNoContent with default headers values

func (*AdminUpdateInputValidationsNoContent) Error

type AdminUpdateInputValidationsNotFound

type AdminUpdateInputValidationsNotFound struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminUpdateInputValidationsNotFound handles this case with default header values.

func NewAdminUpdateInputValidationsNotFound

func NewAdminUpdateInputValidationsNotFound() *AdminUpdateInputValidationsNotFound

NewAdminUpdateInputValidationsNotFound creates a AdminUpdateInputValidationsNotFound with default headers values

func (*AdminUpdateInputValidationsNotFound) Error

func (*AdminUpdateInputValidationsNotFound) GetPayload

func (*AdminUpdateInputValidationsNotFound) ToJSONString

func (o *AdminUpdateInputValidationsNotFound) ToJSONString() string

type AdminUpdateInputValidationsParams

type AdminUpdateInputValidationsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body []*iamclientmodels.ModelInputValidationUpdatePayload

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

AdminUpdateInputValidationsParams contains all the parameters to send to the API endpoint for the admin update input validations operation typically these are written to a http.Request

func NewAdminUpdateInputValidationsParams

func NewAdminUpdateInputValidationsParams() *AdminUpdateInputValidationsParams

NewAdminUpdateInputValidationsParams creates a new AdminUpdateInputValidationsParams object with the default values initialized.

func NewAdminUpdateInputValidationsParamsWithContext

func NewAdminUpdateInputValidationsParamsWithContext(ctx context.Context) *AdminUpdateInputValidationsParams

NewAdminUpdateInputValidationsParamsWithContext creates a new AdminUpdateInputValidationsParams object with the default values initialized, and the ability to set a context for a request

func NewAdminUpdateInputValidationsParamsWithHTTPClient

func NewAdminUpdateInputValidationsParamsWithHTTPClient(client *http.Client) *AdminUpdateInputValidationsParams

NewAdminUpdateInputValidationsParamsWithHTTPClient creates a new AdminUpdateInputValidationsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAdminUpdateInputValidationsParamsWithTimeout

func NewAdminUpdateInputValidationsParamsWithTimeout(timeout time.Duration) *AdminUpdateInputValidationsParams

NewAdminUpdateInputValidationsParamsWithTimeout creates a new AdminUpdateInputValidationsParams object with the default values initialized, and the ability to set a timeout on a request

func (*AdminUpdateInputValidationsParams) SetAuthInfoWriter

func (o *AdminUpdateInputValidationsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the admin update input validations params

func (*AdminUpdateInputValidationsParams) SetBody

SetBody adds the body to the admin update input validations params

func (*AdminUpdateInputValidationsParams) SetContext

SetContext adds the context to the admin update input validations params

func (*AdminUpdateInputValidationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin update input validations params

func (*AdminUpdateInputValidationsParams) SetHTTPClientTransport

func (o *AdminUpdateInputValidationsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the admin update input validations params

func (*AdminUpdateInputValidationsParams) SetTimeout

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

SetTimeout adds the timeout to the admin update input validations params

func (*AdminUpdateInputValidationsParams) WithBody

WithBody adds the body to the admin update input validations params

func (*AdminUpdateInputValidationsParams) WithContext

WithContext adds the context to the admin update input validations params

func (*AdminUpdateInputValidationsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin update input validations params

func (*AdminUpdateInputValidationsParams) WithTimeout

WithTimeout adds the timeout to the admin update input validations params

func (*AdminUpdateInputValidationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminUpdateInputValidationsReader

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

AdminUpdateInputValidationsReader is a Reader for the AdminUpdateInputValidations structure.

func (*AdminUpdateInputValidationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminUpdateInputValidationsUnauthorized

type AdminUpdateInputValidationsUnauthorized struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminUpdateInputValidationsUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>

func NewAdminUpdateInputValidationsUnauthorized

func NewAdminUpdateInputValidationsUnauthorized() *AdminUpdateInputValidationsUnauthorized

NewAdminUpdateInputValidationsUnauthorized creates a AdminUpdateInputValidationsUnauthorized with default headers values

func (*AdminUpdateInputValidationsUnauthorized) Error

func (*AdminUpdateInputValidationsUnauthorized) GetPayload

func (*AdminUpdateInputValidationsUnauthorized) ToJSONString

type Client

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

Client for input validations API

func (*Client) AdminGetInputValidations deprecated

Deprecated: 2022-08-10 - Use AdminGetInputValidationsShort instead.

AdminGetInputValidations admin get input validations

Required permission 'ADMIN:CONFIGURATION'[READ]

This endpoint is to get list of input validation configuration.

`regex` parameter will be returned if `isCustomRegex` is true. Otherwise, it will be empty.

func (*Client) AdminGetInputValidationsShort

func (a *Client) AdminGetInputValidationsShort(params *AdminGetInputValidationsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetInputValidationsOK, error)

AdminGetInputValidationsShort admin get input validations

Required permission 'ADMIN:CONFIGURATION'[READ]

This endpoint is to get list of input validation configuration.

`regex` parameter will be returned if `isCustomRegex` is true. Otherwise, it will be empty.

func (*Client) AdminResetInputValidations deprecated

Deprecated: 2022-08-10 - Use AdminResetInputValidationsShort instead.

AdminResetInputValidations admin reset input validations

Required permission 'ADMIN:CONFIGURATION' [DELETE]

This endpoint is used to reset input validation to the default input validation configurations

func (*Client) AdminResetInputValidationsShort

func (a *Client) AdminResetInputValidationsShort(params *AdminResetInputValidationsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminResetInputValidationsNoContent, error)

AdminResetInputValidationsShort admin reset input validations

Required permission 'ADMIN:CONFIGURATION' [DELETE]

This endpoint is used to reset input validation to the default input validation configurations

func (*Client) AdminUpdateInputValidations deprecated

Deprecated: 2022-08-10 - Use AdminUpdateInputValidationsShort instead.

AdminUpdateInputValidations admin update input validations

Required permission 'ADMIN:CONFIGURATION' [UPDATE]

This endpoint is used to update input validation configuration.

Supported `field`:

  • displayName

  • password

  • username

  • email

  • avatar

If `isCustomRegex` is set to true, `regex` parameter will be used as input validation and the other parameters will be ignored. Otherwise, `regex` parameter will be ignored and regex for input validation will be generated based on the combination of the other parameters.

If `allowUnicode` is set to true, unicode regex pattern will be use as the input validation and the other parameters will be ignored.

Supported `letterCase`:

  • lowercase

  • uppercase

  • mixed: uppercase and lowercase

  • mixed: uppercase and/or lowercase

flexible special character non words with `allowAllSpecialCharacters`

if `allowAllSpecialCharacters` is set to true `specialCharacters` will forced to empty.

Supported `specialCharacterLocation`:

  • anywhere

  • middle

If `specialCharacters` is empty, `specialCharacterLocation` and `maxRepeatingSpecialCharacter` will be ignored.

`minCharType` is used to identify how many required criteria in the regex. The supported criteria are number, letter, special character, and letter case. If set to 0 or 1 means all criteria are optional. It can be set as much as the number of criteria enabled.

If `blockedWord` is set by admin, any input from user which contain kind of blocked word(s) will be blocked for create/upgrade/update account

If `avatarConfig` is set, will use this config and skip all the other validation conditions

func (*Client) AdminUpdateInputValidationsShort

func (a *Client) AdminUpdateInputValidationsShort(params *AdminUpdateInputValidationsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminUpdateInputValidationsNoContent, error)

AdminUpdateInputValidationsShort admin update input validations

Required permission 'ADMIN:CONFIGURATION' [UPDATE]

This endpoint is used to update input validation configuration.

Supported `field`:

  • displayName

  • password

  • username

  • email

  • avatar

If `isCustomRegex` is set to true, `regex` parameter will be used as input validation and the other parameters will be ignored. Otherwise, `regex` parameter will be ignored and regex for input validation will be generated based on the combination of the other parameters.

If `allowUnicode` is set to true, unicode regex pattern will be use as the input validation and the other parameters will be ignored.

Supported `letterCase`:

  • lowercase

  • uppercase

  • mixed: uppercase and lowercase

  • mixed: uppercase and/or lowercase

flexible special character non words with `allowAllSpecialCharacters`

if `allowAllSpecialCharacters` is set to true `specialCharacters` will forced to empty.

Supported `specialCharacterLocation`:

  • anywhere

  • middle

If `specialCharacters` is empty, `specialCharacterLocation` and `maxRepeatingSpecialCharacter` will be ignored.

`minCharType` is used to identify how many required criteria in the regex. The supported criteria are number, letter, special character, and letter case. If set to 0 or 1 means all criteria are optional. It can be set as much as the number of criteria enabled.

If `blockedWord` is set by admin, any input from user which contain kind of blocked word(s) will be blocked for create/upgrade/update account

If `avatarConfig` is set, will use this config and skip all the other validation conditions

func (*Client) PublicGetInputValidationByField deprecated

Deprecated: 2022-08-10 - Use PublicGetInputValidationByFieldShort instead.

PublicGetInputValidationByField public get input validation by field

This endpoint is to get input validation configuration by field.

func (*Client) PublicGetInputValidationByFieldShort

func (a *Client) PublicGetInputValidationByFieldShort(params *PublicGetInputValidationByFieldParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetInputValidationByFieldOK, error)

PublicGetInputValidationByFieldShort public get input validation by field

This endpoint is to get input validation configuration by field.

func (*Client) PublicGetInputValidations deprecated

Deprecated: 2022-08-10 - Use PublicGetInputValidationsShort instead.

PublicGetInputValidations public get input validations

No role required

This endpoint is to get list of input validation configuration.

`regex` parameter will be returned if `isCustomRegex` is true. Otherwise, it will be empty.

func (*Client) PublicGetInputValidationsShort

func (a *Client) PublicGetInputValidationsShort(params *PublicGetInputValidationsParams) (*PublicGetInputValidationsOK, error)

PublicGetInputValidationsShort public get input validations

No role required

This endpoint is to get list of input validation configuration.

`regex` parameter will be returned if `isCustomRegex` is true. Otherwise, it will be empty.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	AdminGetInputValidations(params *AdminGetInputValidationsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetInputValidationsOK, *AdminGetInputValidationsUnauthorized, *AdminGetInputValidationsForbidden, error)
	AdminGetInputValidationsShort(params *AdminGetInputValidationsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetInputValidationsOK, error)
	AdminUpdateInputValidations(params *AdminUpdateInputValidationsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminUpdateInputValidationsNoContent, *AdminUpdateInputValidationsUnauthorized, *AdminUpdateInputValidationsForbidden, *AdminUpdateInputValidationsNotFound, error)
	AdminUpdateInputValidationsShort(params *AdminUpdateInputValidationsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminUpdateInputValidationsNoContent, error)
	AdminResetInputValidations(params *AdminResetInputValidationsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminResetInputValidationsNoContent, *AdminResetInputValidationsUnauthorized, *AdminResetInputValidationsForbidden, *AdminResetInputValidationsNotFound, error)
	AdminResetInputValidationsShort(params *AdminResetInputValidationsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminResetInputValidationsNoContent, error)
	PublicGetInputValidations(params *PublicGetInputValidationsParams) (*PublicGetInputValidationsOK, *PublicGetInputValidationsNotFound, *PublicGetInputValidationsInternalServerError, error)
	PublicGetInputValidationsShort(params *PublicGetInputValidationsParams) (*PublicGetInputValidationsOK, error)
	PublicGetInputValidationByField(params *PublicGetInputValidationByFieldParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetInputValidationByFieldOK, *PublicGetInputValidationByFieldNotFound, *PublicGetInputValidationByFieldInternalServerError, error)
	PublicGetInputValidationByFieldShort(params *PublicGetInputValidationByFieldParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetInputValidationByFieldOK, 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 input validations API client.

type PublicGetInputValidationByFieldInternalServerError

type PublicGetInputValidationByFieldInternalServerError struct {
	Payload *iamclientmodels.RestErrorResponse
}

PublicGetInputValidationByFieldInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error</td></tr></table>

func NewPublicGetInputValidationByFieldInternalServerError

func NewPublicGetInputValidationByFieldInternalServerError() *PublicGetInputValidationByFieldInternalServerError

NewPublicGetInputValidationByFieldInternalServerError creates a PublicGetInputValidationByFieldInternalServerError with default headers values

func (*PublicGetInputValidationByFieldInternalServerError) Error

func (*PublicGetInputValidationByFieldInternalServerError) GetPayload

func (*PublicGetInputValidationByFieldInternalServerError) ToJSONString

type PublicGetInputValidationByFieldNotFound

type PublicGetInputValidationByFieldNotFound struct {
}

PublicGetInputValidationByFieldNotFound handles this case with default header values.

Data not found

func NewPublicGetInputValidationByFieldNotFound

func NewPublicGetInputValidationByFieldNotFound() *PublicGetInputValidationByFieldNotFound

NewPublicGetInputValidationByFieldNotFound creates a PublicGetInputValidationByFieldNotFound with default headers values

func (*PublicGetInputValidationByFieldNotFound) Error

type PublicGetInputValidationByFieldOK

type PublicGetInputValidationByFieldOK struct {
	Payload *iamclientmodels.ModelInputValidationConfigVersion
}

PublicGetInputValidationByFieldOK handles this case with default header values.

OK

func NewPublicGetInputValidationByFieldOK

func NewPublicGetInputValidationByFieldOK() *PublicGetInputValidationByFieldOK

NewPublicGetInputValidationByFieldOK creates a PublicGetInputValidationByFieldOK with default headers values

func (*PublicGetInputValidationByFieldOK) Error

func (*PublicGetInputValidationByFieldOK) GetPayload

func (*PublicGetInputValidationByFieldOK) ToJSONString

func (o *PublicGetInputValidationByFieldOK) ToJSONString() string

type PublicGetInputValidationByFieldParams

type PublicGetInputValidationByFieldParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Field
	  Name of the input validation field to get: email, username, displayName, password or avatar

	*/
	Field string

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

PublicGetInputValidationByFieldParams contains all the parameters to send to the API endpoint for the public get input validation by field operation typically these are written to a http.Request

func NewPublicGetInputValidationByFieldParams

func NewPublicGetInputValidationByFieldParams() *PublicGetInputValidationByFieldParams

NewPublicGetInputValidationByFieldParams creates a new PublicGetInputValidationByFieldParams object with the default values initialized.

func NewPublicGetInputValidationByFieldParamsWithContext

func NewPublicGetInputValidationByFieldParamsWithContext(ctx context.Context) *PublicGetInputValidationByFieldParams

NewPublicGetInputValidationByFieldParamsWithContext creates a new PublicGetInputValidationByFieldParams object with the default values initialized, and the ability to set a context for a request

func NewPublicGetInputValidationByFieldParamsWithHTTPClient

func NewPublicGetInputValidationByFieldParamsWithHTTPClient(client *http.Client) *PublicGetInputValidationByFieldParams

NewPublicGetInputValidationByFieldParamsWithHTTPClient creates a new PublicGetInputValidationByFieldParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPublicGetInputValidationByFieldParamsWithTimeout

func NewPublicGetInputValidationByFieldParamsWithTimeout(timeout time.Duration) *PublicGetInputValidationByFieldParams

NewPublicGetInputValidationByFieldParamsWithTimeout creates a new PublicGetInputValidationByFieldParams object with the default values initialized, and the ability to set a timeout on a request

func (*PublicGetInputValidationByFieldParams) SetAuthInfoWriter

func (o *PublicGetInputValidationByFieldParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the public get input validation by field params

func (*PublicGetInputValidationByFieldParams) SetContext

SetContext adds the context to the public get input validation by field params

func (*PublicGetInputValidationByFieldParams) SetField

func (o *PublicGetInputValidationByFieldParams) SetField(field string)

SetField adds the field to the public get input validation by field params

func (*PublicGetInputValidationByFieldParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get input validation by field params

func (*PublicGetInputValidationByFieldParams) SetHTTPClientTransport

func (o *PublicGetInputValidationByFieldParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the public get input validation by field params

func (*PublicGetInputValidationByFieldParams) SetTimeout

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

SetTimeout adds the timeout to the public get input validation by field params

func (*PublicGetInputValidationByFieldParams) WithContext

WithContext adds the context to the public get input validation by field params

func (*PublicGetInputValidationByFieldParams) WithField

WithField adds the field to the public get input validation by field params

func (*PublicGetInputValidationByFieldParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public get input validation by field params

func (*PublicGetInputValidationByFieldParams) WithTimeout

WithTimeout adds the timeout to the public get input validation by field params

func (*PublicGetInputValidationByFieldParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicGetInputValidationByFieldReader

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

PublicGetInputValidationByFieldReader is a Reader for the PublicGetInputValidationByField structure.

func (*PublicGetInputValidationByFieldReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicGetInputValidationsInternalServerError

type PublicGetInputValidationsInternalServerError struct {
	Payload *iamclientmodels.RestErrorResponse
}

PublicGetInputValidationsInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error</td></tr></table>

func NewPublicGetInputValidationsInternalServerError

func NewPublicGetInputValidationsInternalServerError() *PublicGetInputValidationsInternalServerError

NewPublicGetInputValidationsInternalServerError creates a PublicGetInputValidationsInternalServerError with default headers values

func (*PublicGetInputValidationsInternalServerError) Error

func (*PublicGetInputValidationsInternalServerError) GetPayload

func (*PublicGetInputValidationsInternalServerError) ToJSONString

type PublicGetInputValidationsNotFound

type PublicGetInputValidationsNotFound struct {
}

PublicGetInputValidationsNotFound handles this case with default header values.

Data not found

func NewPublicGetInputValidationsNotFound

func NewPublicGetInputValidationsNotFound() *PublicGetInputValidationsNotFound

NewPublicGetInputValidationsNotFound creates a PublicGetInputValidationsNotFound with default headers values

func (*PublicGetInputValidationsNotFound) Error

type PublicGetInputValidationsOK

type PublicGetInputValidationsOK struct {
	Payload *iamclientmodels.ModelInputValidationsPublicResponse
}

PublicGetInputValidationsOK handles this case with default header values.

OK

func NewPublicGetInputValidationsOK

func NewPublicGetInputValidationsOK() *PublicGetInputValidationsOK

NewPublicGetInputValidationsOK creates a PublicGetInputValidationsOK with default headers values

func (*PublicGetInputValidationsOK) Error

func (*PublicGetInputValidationsOK) GetPayload

func (*PublicGetInputValidationsOK) ToJSONString

func (o *PublicGetInputValidationsOK) ToJSONString() string

type PublicGetInputValidationsParams

type PublicGetInputValidationsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*DefaultOnEmpty
	  default true, will return default language if languageCode is empty or language not available

	*/
	DefaultOnEmpty *bool
	/*LanguageCode
	  Language Code for description

	*/
	LanguageCode *string

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

PublicGetInputValidationsParams contains all the parameters to send to the API endpoint for the public get input validations operation typically these are written to a http.Request

func NewPublicGetInputValidationsParams

func NewPublicGetInputValidationsParams() *PublicGetInputValidationsParams

NewPublicGetInputValidationsParams creates a new PublicGetInputValidationsParams object with the default values initialized.

func NewPublicGetInputValidationsParamsWithContext

func NewPublicGetInputValidationsParamsWithContext(ctx context.Context) *PublicGetInputValidationsParams

NewPublicGetInputValidationsParamsWithContext creates a new PublicGetInputValidationsParams object with the default values initialized, and the ability to set a context for a request

func NewPublicGetInputValidationsParamsWithHTTPClient

func NewPublicGetInputValidationsParamsWithHTTPClient(client *http.Client) *PublicGetInputValidationsParams

NewPublicGetInputValidationsParamsWithHTTPClient creates a new PublicGetInputValidationsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPublicGetInputValidationsParamsWithTimeout

func NewPublicGetInputValidationsParamsWithTimeout(timeout time.Duration) *PublicGetInputValidationsParams

NewPublicGetInputValidationsParamsWithTimeout creates a new PublicGetInputValidationsParams object with the default values initialized, and the ability to set a timeout on a request

func (*PublicGetInputValidationsParams) SetAuthInfoWriter

func (o *PublicGetInputValidationsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the public get input validations params

func (*PublicGetInputValidationsParams) SetContext

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

SetContext adds the context to the public get input validations params

func (*PublicGetInputValidationsParams) SetDefaultOnEmpty

func (o *PublicGetInputValidationsParams) SetDefaultOnEmpty(defaultOnEmpty *bool)

SetDefaultOnEmpty adds the defaultOnEmpty to the public get input validations params

func (*PublicGetInputValidationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get input validations params

func (*PublicGetInputValidationsParams) SetHTTPClientTransport

func (o *PublicGetInputValidationsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the public get input validations params

func (*PublicGetInputValidationsParams) SetLanguageCode

func (o *PublicGetInputValidationsParams) SetLanguageCode(languageCode *string)

SetLanguageCode adds the languageCode to the public get input validations params

func (*PublicGetInputValidationsParams) SetTimeout

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

SetTimeout adds the timeout to the public get input validations params

func (*PublicGetInputValidationsParams) WithContext

WithContext adds the context to the public get input validations params

func (*PublicGetInputValidationsParams) WithDefaultOnEmpty

func (o *PublicGetInputValidationsParams) WithDefaultOnEmpty(defaultOnEmpty *bool) *PublicGetInputValidationsParams

WithDefaultOnEmpty adds the defaultOnEmpty to the public get input validations params

func (*PublicGetInputValidationsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public get input validations params

func (*PublicGetInputValidationsParams) WithLanguageCode

func (o *PublicGetInputValidationsParams) WithLanguageCode(languageCode *string) *PublicGetInputValidationsParams

WithLanguageCode adds the languageCode to the public get input validations params

func (*PublicGetInputValidationsParams) WithTimeout

WithTimeout adds the timeout to the public get input validations params

func (*PublicGetInputValidationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicGetInputValidationsReader

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

PublicGetInputValidationsReader is a Reader for the PublicGetInputValidations structure.

func (*PublicGetInputValidationsReader) ReadResponse

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