CredentialDetails¶
-
class
oci.opsi.models.CredentialDetails(**kwargs)¶ Bases:
objectUser credential details to connect to the database.
Attributes
CREDENTIAL_TYPE_CREDENTIALS_BY_IAMA constant which can be used with the credential_type property of a CredentialDetails. CREDENTIAL_TYPE_CREDENTIALS_BY_NAMED_CREDSA constant which can be used with the credential_type property of a CredentialDetails. CREDENTIAL_TYPE_CREDENTIALS_BY_SOURCEA constant which can be used with the credential_type property of a CredentialDetails. CREDENTIAL_TYPE_CREDENTIALS_BY_VAULTA constant which can be used with the credential_type property of a CredentialDetails. credential_source_nameGets the credential_source_name of this CredentialDetails. credential_type[Required] Gets the credential_type of this CredentialDetails. Methods
__init__(**kwargs)Initializes a new CredentialDetails 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. -
CREDENTIAL_TYPE_CREDENTIALS_BY_IAM= 'CREDENTIALS_BY_IAM'¶ A constant which can be used with the credential_type property of a CredentialDetails. This constant has a value of “CREDENTIALS_BY_IAM”
-
CREDENTIAL_TYPE_CREDENTIALS_BY_NAMED_CREDS= 'CREDENTIALS_BY_NAMED_CREDS'¶ A constant which can be used with the credential_type property of a CredentialDetails. This constant has a value of “CREDENTIALS_BY_NAMED_CREDS”
-
CREDENTIAL_TYPE_CREDENTIALS_BY_SOURCE= 'CREDENTIALS_BY_SOURCE'¶ A constant which can be used with the credential_type property of a CredentialDetails. This constant has a value of “CREDENTIALS_BY_SOURCE”
-
CREDENTIAL_TYPE_CREDENTIALS_BY_VAULT= 'CREDENTIALS_BY_VAULT'¶ A constant which can be used with the credential_type property of a CredentialDetails. This constant has a value of “CREDENTIALS_BY_VAULT”
-
__init__(**kwargs)¶ Initializes a new CredentialDetails 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: - credential_source_name (str) – The value to assign to the credential_source_name property of this CredentialDetails.
- credential_type (str) – The value to assign to the credential_type property of this CredentialDetails. Allowed values for this property are: “CREDENTIALS_BY_SOURCE”, “CREDENTIALS_BY_VAULT”, “CREDENTIALS_BY_IAM”, “CREDENTIALS_BY_NAMED_CREDS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
-
credential_source_name¶ Gets the credential_source_name of this CredentialDetails. Credential source name that had been added in Management Agent wallet. This value is only required when Credential set by CREDENTIALS_BY_SOURCE and is optional properties for ther others.
Returns: The credential_source_name of this CredentialDetails. Return type: str
-
credential_type¶ [Required] Gets the credential_type of this CredentialDetails. CREDENTIALS_BY_SOURCE is supplied via the External Database Service. CREDENTIALS_BY_VAULT is supplied by secret service to connection PE_COMANAGED_DATABASE and ADB as well. CREDENTIALS_BY_IAM is used db-token to connect only for Autonomous Database.
Allowed values for this property are: “CREDENTIALS_BY_SOURCE”, “CREDENTIALS_BY_VAULT”, “CREDENTIALS_BY_IAM”, “CREDENTIALS_BY_NAMED_CREDS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The credential_type of this CredentialDetails. 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.
-