IamAuthenticationMode

class oci.redis.models.IamAuthenticationMode(**kwargs)

Bases: AuthenticationMode

child class of AuthenticationMode.

Attributes:

AUTHENTICATION_TYPE_IAM

A constant which can be used with the authentication_type property of a AuthenticationMode.

AUTHENTICATION_TYPE_PASSWORD

A constant which can be used with the authentication_type property of a AuthenticationMode.

authentication_type

[Required] Gets the authentication_type of this AuthenticationMode.

Methods:

__init__(**kwargs)

Initializes a new IamAuthenticationMode object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

AUTHENTICATION_TYPE_IAM = 'IAM'

A constant which can be used with the authentication_type property of a AuthenticationMode. This constant has a value of “IAM”

AUTHENTICATION_TYPE_PASSWORD = 'PASSWORD'

A constant which can be used with the authentication_type property of a AuthenticationMode. This constant has a value of “PASSWORD”

__init__(**kwargs)

Initializes a new IamAuthenticationMode object with values from keyword arguments. The default value of the authentication_type attribute of this class is IAM and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters

authentication_type (str) – The value to assign to the authentication_type property of this IamAuthenticationMode. Allowed values for this property are: “IAM”, “PASSWORD”

property authentication_type

[Required] Gets the authentication_type of this AuthenticationMode. This is Authentication Type of OCI cache user

Allowed values for this property are: “IAM”, “PASSWORD”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The authentication_type of this AuthenticationMode.

Return type

str

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.