PreferredCredential

class oci.database_management.models.PreferredCredential(**kwargs)

Bases: object

The details of the preferred credential.

Attributes:

STATUS_NOT_SET

A constant which can be used with the status property of a PreferredCredential.

STATUS_SET

A constant which can be used with the status property of a PreferredCredential.

TYPE_BASIC

A constant which can be used with the type property of a PreferredCredential.

TYPE_NAMED_CREDENTIAL

A constant which can be used with the type property of a PreferredCredential.

credential_name

Gets the credential_name of this PreferredCredential.

is_accessible

Gets the is_accessible of this PreferredCredential.

status

Gets the status of this PreferredCredential.

type

Gets the type of this PreferredCredential.

Methods:

__init__(**kwargs)

Initializes a new PreferredCredential 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.

STATUS_NOT_SET = 'NOT_SET'

A constant which can be used with the status property of a PreferredCredential. This constant has a value of “NOT_SET”

STATUS_SET = 'SET'

A constant which can be used with the status property of a PreferredCredential. This constant has a value of “SET”

TYPE_BASIC = 'BASIC'

A constant which can be used with the type property of a PreferredCredential. This constant has a value of “BASIC”

TYPE_NAMED_CREDENTIAL = 'NAMED_CREDENTIAL'

A constant which can be used with the type property of a PreferredCredential. This constant has a value of “NAMED_CREDENTIAL”

__init__(**kwargs)

Initializes a new PreferredCredential object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • type (str) – The value to assign to the type property of this PreferredCredential. Allowed values for this property are: “BASIC”, “NAMED_CREDENTIAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • credential_name (str) – The value to assign to the credential_name property of this PreferredCredential.

  • status (str) – The value to assign to the status property of this PreferredCredential. Allowed values for this property are: “SET”, “NOT_SET”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • is_accessible (bool) – The value to assign to the is_accessible property of this PreferredCredential.

property credential_name

Gets the credential_name of this PreferredCredential. The name of the preferred credential.

Returns

The credential_name of this PreferredCredential.

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.

property is_accessible

Gets the is_accessible of this PreferredCredential. Indicates whether the preferred credential is accessible.

Returns

The is_accessible of this PreferredCredential.

Return type

bool

property status

Gets the status of this PreferredCredential. The status of the preferred credential.

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

Returns

The status of this PreferredCredential.

Return type

str

property type

Gets the type of this PreferredCredential. The type of preferred credential. Only ‘BASIC’ is supported currently.

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

Returns

The type of this PreferredCredential.

Return type

str