UserCredential¶
- class oci.database_tools_runtime.models.UserCredential(**kwargs)¶
Bases:
objectCredential information
Attributes:
A constant which can be used with the key_type property of a UserCredential.
A constant which can be used with the key_type property of a UserCredential.
[Required] Gets the enabled of this UserCredential.
[Required] Gets the key of this UserCredential.
Gets the key_type of this UserCredential.
[Required] Gets the owner of this UserCredential.
Gets the related_resource of this UserCredential.
[Required] Gets the user_name of this UserCredential.
Gets the windows_domain of this UserCredential.
Methods:
__init__(**kwargs)Initializes a new UserCredential object with values from keyword arguments.
- KEY_TYPE_CREDENTIAL_NAME = 'CREDENTIAL_NAME'¶
A constant which can be used with the key_type property of a UserCredential. This constant has a value of “CREDENTIAL_NAME”
- KEY_TYPE_PUBLIC_SYNONYM = 'PUBLIC_SYNONYM'¶
A constant which can be used with the key_type property of a UserCredential. This constant has a value of “PUBLIC_SYNONYM”
- __init__(**kwargs)¶
Initializes a new UserCredential object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
key (str) – The value to assign to the key property of this UserCredential.
user_name (str) – The value to assign to the user_name property of this UserCredential.
windows_domain (str) – The value to assign to the windows_domain property of this UserCredential.
enabled (str) – The value to assign to the enabled property of this UserCredential.
key_type (str) – The value to assign to the key_type property of this UserCredential. Allowed values for this property are: “CREDENTIAL_NAME”, “PUBLIC_SYNONYM”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
owner (str) – The value to assign to the owner property of this UserCredential.
related_resource (oci.database_tools_runtime.models.CredentialRelatedResource) – The value to assign to the related_resource property of this UserCredential.
- property enabled¶
[Required] Gets the enabled of this UserCredential. Indicates whether this credential is enabled (TRUE) or not (FALSE)
- Returns
The enabled of this UserCredential.
- Return type
str
- property key¶
[Required] Gets the key of this UserCredential. Name of the credential
- Returns
The key of this UserCredential.
- Return type
str
- property key_type¶
Gets the key_type of this UserCredential. Indicates whether this refers to a public synonym or not.
Allowed values for this property are: “CREDENTIAL_NAME”, “PUBLIC_SYNONYM”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The key_type of this UserCredential.
- Return type
str
- property owner¶
[Required] Gets the owner of this UserCredential. Owner of the credential
- Returns
The owner of this UserCredential.
- Return type
str
Gets the related_resource of this UserCredential.
- Returns
The related_resource of this UserCredential.
- Return type
- property user_name¶
[Required] Gets the user_name of this UserCredential. Name of the user that will be used to log in to the remote database or the remote or local operating system
- Returns
The user_name of this UserCredential.
- Return type
str
- property windows_domain¶
Gets the windows_domain of this UserCredential. For a Windows target, the Windows domain to use when logging in
- Returns
The windows_domain of this UserCredential.
- Return type
str