CreateDatabaseToolsIdentityOracleDatabaseResourcePrincipalDetails

class oci.database_tools.models.CreateDatabaseToolsIdentityOracleDatabaseResourcePrincipalDetails(**kwargs)

Bases: CreateDatabaseToolsIdentityDetails

Details for the new Database Tools identity for the Oracle Database resource principal identity type.

Attributes:

TYPE_ORACLE_DATABASE_RESOURCE_PRINCIPAL

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

compartment_id

[Required] Gets the compartment_id of this CreateDatabaseToolsIdentityDetails.

credential_key

[Required] Gets the credential_key of this CreateDatabaseToolsIdentityOracleDatabaseResourcePrincipalDetails.

database_tools_connection_id

[Required] Gets the database_tools_connection_id of this CreateDatabaseToolsIdentityDetails.

defined_tags

Gets the defined_tags of this CreateDatabaseToolsIdentityDetails.

display_name

[Required] Gets the display_name of this CreateDatabaseToolsIdentityDetails.

freeform_tags

Gets the freeform_tags of this CreateDatabaseToolsIdentityDetails.

locks

Gets the locks of this CreateDatabaseToolsIdentityDetails.

type

[Required] Gets the type of this CreateDatabaseToolsIdentityDetails.

Methods:

__init__(**kwargs)

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

TYPE_ORACLE_DATABASE_RESOURCE_PRINCIPAL = 'ORACLE_DATABASE_RESOURCE_PRINCIPAL'

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

__init__(**kwargs)

Initializes a new CreateDatabaseToolsIdentityOracleDatabaseResourcePrincipalDetails object with values from keyword arguments. The default value of the type attribute of this class is ORACLE_DATABASE_RESOURCE_PRINCIPAL and 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 CreateDatabaseToolsIdentityOracleDatabaseResourcePrincipalDetails. Allowed values for this property are: “ORACLE_DATABASE_RESOURCE_PRINCIPAL”

  • compartment_id (str) – The value to assign to the compartment_id property of this CreateDatabaseToolsIdentityOracleDatabaseResourcePrincipalDetails.

  • display_name (str) – The value to assign to the display_name property of this CreateDatabaseToolsIdentityOracleDatabaseResourcePrincipalDetails.

  • database_tools_connection_id (str) – The value to assign to the database_tools_connection_id property of this CreateDatabaseToolsIdentityOracleDatabaseResourcePrincipalDetails.

  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateDatabaseToolsIdentityOracleDatabaseResourcePrincipalDetails.

  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateDatabaseToolsIdentityOracleDatabaseResourcePrincipalDetails.

  • locks (list[oci.database_tools.models.ResourceLock]) – The value to assign to the locks property of this CreateDatabaseToolsIdentityOracleDatabaseResourcePrincipalDetails.

  • credential_key (str) – The value to assign to the credential_key property of this CreateDatabaseToolsIdentityOracleDatabaseResourcePrincipalDetails.

property compartment_id

[Required] Gets the compartment_id of this CreateDatabaseToolsIdentityDetails. The OCID of the compartment containing the Database Tools identity.

Returns

The compartment_id of this CreateDatabaseToolsIdentityDetails.

Return type

str

property credential_key

[Required] Gets the credential_key of this CreateDatabaseToolsIdentityOracleDatabaseResourcePrincipalDetails. The name of the credential object created in the Oracle Database.

Returns

The credential_key of this CreateDatabaseToolsIdentityOracleDatabaseResourcePrincipalDetails.

Return type

str

property database_tools_connection_id

[Required] Gets the database_tools_connection_id of this CreateDatabaseToolsIdentityDetails. The OCID of the related Database Tools connection.

Returns

The database_tools_connection_id of this CreateDatabaseToolsIdentityDetails.

Return type

str

property defined_tags

Gets the defined_tags of this CreateDatabaseToolsIdentityDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns

The defined_tags of this CreateDatabaseToolsIdentityDetails.

Return type

dict(str, dict(str, object))

property display_name

[Required] Gets the display_name of this CreateDatabaseToolsIdentityDetails. A user-friendly name. Does not have to be unique and can be updated. Avoid entering confidential information.

Returns

The display_name of this CreateDatabaseToolsIdentityDetails.

Return type

str

property freeform_tags

Gets the freeform_tags of this CreateDatabaseToolsIdentityDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}

Returns

The freeform_tags of this CreateDatabaseToolsIdentityDetails.

Return type

dict(str, 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 locks

Gets the locks of this CreateDatabaseToolsIdentityDetails. Locks associated with this resource.

Returns

The locks of this CreateDatabaseToolsIdentityDetails.

Return type

list[oci.database_tools.models.ResourceLock]

property type

[Required] Gets the type of this CreateDatabaseToolsIdentityDetails. The Database Tools identity type.

Allowed values for this property are: “ORACLE_DATABASE_RESOURCE_PRINCIPAL”

Returns

The type of this CreateDatabaseToolsIdentityDetails.

Return type

str