NamedPreferredCredential¶
- class oci.database_management.models.NamedPreferredCredential(**kwargs)¶
Bases:
PreferredCredentialThe details of the ‘NAMED_CREDENTIAL’ preferred credential.
Attributes:
A constant which can be used with the status property of a PreferredCredential.
A constant which can be used with the status property of a PreferredCredential.
A constant which can be used with the type property of a PreferredCredential.
A constant which can be used with the type property of a PreferredCredential.
Gets the credential_name of this PreferredCredential.
Gets the is_accessible of this PreferredCredential.
Gets the named_credential_id of this NamedPreferredCredential.
Gets the status of this PreferredCredential.
Gets the type of this PreferredCredential.
Methods:
__init__(**kwargs)Initializes a new NamedPreferredCredential 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 NamedPreferredCredential object with values from keyword arguments. The default value of the
typeattribute of this class isNAMED_CREDENTIALand it should not be changed. 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 NamedPreferredCredential. Allowed values for this property are: “BASIC”, “NAMED_CREDENTIAL”
credential_name (str) – The value to assign to the credential_name property of this NamedPreferredCredential.
status (str) – The value to assign to the status property of this NamedPreferredCredential. Allowed values for this property are: “SET”, “NOT_SET”
is_accessible (bool) – The value to assign to the is_accessible property of this NamedPreferredCredential.
named_credential_id (str) – The value to assign to the named_credential_id property of this NamedPreferredCredential.
- 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 named_credential_id¶
Gets the named_credential_id of this NamedPreferredCredential. The OCID of the Named Credential that contains the database user password metadata.
- Returns
The named_credential_id of this NamedPreferredCredential.
- Return type
str
- 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