NamedPreferredCredential¶
-
class
oci.database_management.models.NamedPreferredCredential(**kwargs)¶ Bases:
oci.database_management.models.preferred_credential.PreferredCredentialThe details of the ‘NAMED_CREDENTIAL’ preferred credential.
Attributes
STATUS_NOT_SETstr(object=’’) -> str STATUS_SETstr(object=’’) -> str TYPE_BASICstr(object=’’) -> str TYPE_NAMED_CREDENTIALstr(object=’’) -> str credential_nameGets the credential_name of this PreferredCredential. is_accessibleGets the is_accessible of this PreferredCredential. named_credential_idGets the named_credential_id of this NamedPreferredCredential. statusGets the status of this PreferredCredential. typeGets 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'¶
-
STATUS_SET= 'SET'¶
-
TYPE_BASIC= 'BASIC'¶
-
TYPE_NAMED_CREDENTIAL= '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.
-
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.
-
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
-
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
-
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
-
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
-