input_validations

package
v0.72.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 16 Imported by: 0

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 added in v0.31.0

func (*AdminGetInputValidationsForbidden) ToJSONString added in v0.31.0

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 added in v0.25.0

func (o *AdminGetInputValidationsOK) ToJSONString() string

type AdminGetInputValidationsParams

type AdminGetInputValidationsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// 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 added in v0.17.0

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) SetFlightId added in v0.63.0

func (o *AdminGetInputValidationsParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*AdminGetInputValidationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin get input validations params

func (*AdminGetInputValidationsParams) SetHTTPClientTransport added in v0.19.0

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 added in v0.31.0

func (*AdminGetInputValidationsUnauthorized) ToJSONString added in v0.31.0

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 added in v0.31.0

func (*AdminResetInputValidationsForbidden) ToJSONString added in v0.31.0

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.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>10188</td><td>input validation field not found</td></tr></table>

func NewAdminResetInputValidationsNotFound

func NewAdminResetInputValidationsNotFound() *AdminResetInputValidationsNotFound

NewAdminResetInputValidationsNotFound creates a AdminResetInputValidationsNotFound with default headers values

func (*AdminResetInputValidationsNotFound) Error

func (*AdminResetInputValidationsNotFound) GetPayload

func (*AdminResetInputValidationsNotFound) ToJSONString added in v0.25.0

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

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// 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 added in v0.17.0

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) SetFlightId added in v0.63.0

func (o *AdminResetInputValidationsParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*AdminResetInputValidationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin reset input validations params

func (*AdminResetInputValidationsParams) SetHTTPClientTransport added in v0.19.0

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 added in v0.31.0

func (*AdminResetInputValidationsUnauthorized) ToJSONString added in v0.31.0

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 added in v0.31.0

func (*AdminUpdateInputValidationsForbidden) ToJSONString added in v0.31.0

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.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>10188</td><td>input validation field not found</td></tr></table>

func NewAdminUpdateInputValidationsNotFound

func NewAdminUpdateInputValidationsNotFound() *AdminUpdateInputValidationsNotFound

NewAdminUpdateInputValidationsNotFound creates a AdminUpdateInputValidationsNotFound with default headers values

func (*AdminUpdateInputValidationsNotFound) Error

func (*AdminUpdateInputValidationsNotFound) GetPayload

func (*AdminUpdateInputValidationsNotFound) ToJSONString added in v0.25.0

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

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// 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 added in v0.17.0

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) SetFlightId added in v0.63.0

func (o *AdminUpdateInputValidationsParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*AdminUpdateInputValidationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin update input validations params

func (*AdminUpdateInputValidationsParams) SetHTTPClientTransport added in v0.19.0

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 added in v0.31.0

func (*AdminUpdateInputValidationsUnauthorized) ToJSONString added in v0.31.0

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 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 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 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 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 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 - any: 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 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 - any: 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 added in v0.47.0

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 added in v0.47.0

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 added in v0.47.0

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 added in v0.47.0

func NewPublicGetInputValidationByFieldInternalServerError() *PublicGetInputValidationByFieldInternalServerError

NewPublicGetInputValidationByFieldInternalServerError creates a PublicGetInputValidationByFieldInternalServerError with default headers values

func (*PublicGetInputValidationByFieldInternalServerError) Error added in v0.47.0

func (*PublicGetInputValidationByFieldInternalServerError) GetPayload added in v0.47.0

func (*PublicGetInputValidationByFieldInternalServerError) ToJSONString added in v0.47.0

type PublicGetInputValidationByFieldNotFound added in v0.47.0

type PublicGetInputValidationByFieldNotFound struct {
}

PublicGetInputValidationByFieldNotFound handles this case with default header values.

Data not found

func NewPublicGetInputValidationByFieldNotFound added in v0.47.0

func NewPublicGetInputValidationByFieldNotFound() *PublicGetInputValidationByFieldNotFound

NewPublicGetInputValidationByFieldNotFound creates a PublicGetInputValidationByFieldNotFound with default headers values

func (*PublicGetInputValidationByFieldNotFound) Error added in v0.47.0

type PublicGetInputValidationByFieldOK added in v0.47.0

type PublicGetInputValidationByFieldOK struct {
	Payload *iamclientmodels.ModelInputValidationConfigVersion
}

PublicGetInputValidationByFieldOK handles this case with default header values.

OK

func NewPublicGetInputValidationByFieldOK added in v0.47.0

func NewPublicGetInputValidationByFieldOK() *PublicGetInputValidationByFieldOK

NewPublicGetInputValidationByFieldOK creates a PublicGetInputValidationByFieldOK with default headers values

func (*PublicGetInputValidationByFieldOK) Error added in v0.47.0

func (*PublicGetInputValidationByFieldOK) GetPayload added in v0.47.0

func (*PublicGetInputValidationByFieldOK) ToJSONString added in v0.47.0

func (o *PublicGetInputValidationByFieldOK) ToJSONString() string

type PublicGetInputValidationByFieldParams added in v0.47.0

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

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// 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 added in v0.47.0

func NewPublicGetInputValidationByFieldParams() *PublicGetInputValidationByFieldParams

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

func NewPublicGetInputValidationByFieldParamsWithContext added in v0.47.0

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 added in v0.47.0

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 added in v0.47.0

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 added in v0.47.0

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

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

func (*PublicGetInputValidationByFieldParams) SetContext added in v0.47.0

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

func (*PublicGetInputValidationByFieldParams) SetField added in v0.47.0

func (o *PublicGetInputValidationByFieldParams) SetField(field string)

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

func (*PublicGetInputValidationByFieldParams) SetFlightId added in v0.63.0

func (o *PublicGetInputValidationByFieldParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*PublicGetInputValidationByFieldParams) SetHTTPClient added in v0.47.0

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

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

func (*PublicGetInputValidationByFieldParams) SetHTTPClientTransport added in v0.47.0

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

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

func (*PublicGetInputValidationByFieldParams) SetTimeout added in v0.47.0

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

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

func (*PublicGetInputValidationByFieldParams) WithContext added in v0.47.0

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

func (*PublicGetInputValidationByFieldParams) WithField added in v0.47.0

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

func (*PublicGetInputValidationByFieldParams) WithHTTPClient added in v0.47.0

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

func (*PublicGetInputValidationByFieldParams) WithTimeout added in v0.47.0

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

func (*PublicGetInputValidationByFieldParams) WriteToRequest added in v0.47.0

WriteToRequest writes these params to a swagger request

type PublicGetInputValidationByFieldReader added in v0.47.0

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

PublicGetInputValidationByFieldReader is a Reader for the PublicGetInputValidationByField structure.

func (*PublicGetInputValidationByFieldReader) ReadResponse added in v0.47.0

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 added in v0.31.0

func (*PublicGetInputValidationsInternalServerError) ToJSONString added in v0.31.0

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 added in v0.25.0

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

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// 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 added in v0.17.0

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) SetFlightId added in v0.63.0

func (o *PublicGetInputValidationsParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*PublicGetInputValidationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get input validations params

func (*PublicGetInputValidationsParams) SetHTTPClientTransport added in v0.19.0

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