DifferenceColumn

class oci.data_safe.models.DifferenceColumn(**kwargs)

Bases: object

A SDM masking policy difference column. It can be one of the following three types: NEW: A new column in the sensitive data model that is not in the masking policy. DELETED: A column that is present in the masking policy but has been deleted from the sensitive data model. MODIFIED: A column that is present in the masking policy as well as the sensitive data model but some of its attributes have been modified.

Attributes

DIFFERENCE_TYPE_DELETED A constant which can be used with the difference_type property of a DifferenceColumn.
DIFFERENCE_TYPE_MODIFIED A constant which can be used with the difference_type property of a DifferenceColumn.
DIFFERENCE_TYPE_NEW A constant which can be used with the difference_type property of a DifferenceColumn.
PLANNED_ACTION_NO_SYNC A constant which can be used with the planned_action property of a DifferenceColumn.
PLANNED_ACTION_SYNC A constant which can be used with the planned_action property of a DifferenceColumn.
SYNC_STATUS_NOT_SYNCED A constant which can be used with the sync_status property of a DifferenceColumn.
SYNC_STATUS_SYNCED A constant which can be used with the sync_status property of a DifferenceColumn.
column_name [Required] Gets the column_name of this DifferenceColumn.
difference_type [Required] Gets the difference_type of this DifferenceColumn.
key [Required] Gets the key of this DifferenceColumn.
masking_columnkey Gets the masking_columnkey of this DifferenceColumn.
object_name [Required] Gets the object_name of this DifferenceColumn.
planned_action [Required] Gets the planned_action of this DifferenceColumn.
schema_name [Required] Gets the schema_name of this DifferenceColumn.
sensitive_columnkey Gets the sensitive_columnkey of this DifferenceColumn.
sensitive_type_id Gets the sensitive_type_id of this DifferenceColumn.
sync_status [Required] Gets the sync_status of this DifferenceColumn.
time_last_synced Gets the time_last_synced of this DifferenceColumn.

Methods

__init__(**kwargs) Initializes a new DifferenceColumn object with values from keyword arguments.
DIFFERENCE_TYPE_DELETED = 'DELETED'

A constant which can be used with the difference_type property of a DifferenceColumn. This constant has a value of “DELETED”

DIFFERENCE_TYPE_MODIFIED = 'MODIFIED'

A constant which can be used with the difference_type property of a DifferenceColumn. This constant has a value of “MODIFIED”

DIFFERENCE_TYPE_NEW = 'NEW'

A constant which can be used with the difference_type property of a DifferenceColumn. This constant has a value of “NEW”

PLANNED_ACTION_NO_SYNC = 'NO_SYNC'

A constant which can be used with the planned_action property of a DifferenceColumn. This constant has a value of “NO_SYNC”

PLANNED_ACTION_SYNC = 'SYNC'

A constant which can be used with the planned_action property of a DifferenceColumn. This constant has a value of “SYNC”

SYNC_STATUS_NOT_SYNCED = 'NOT_SYNCED'

A constant which can be used with the sync_status property of a DifferenceColumn. This constant has a value of “NOT_SYNCED”

SYNC_STATUS_SYNCED = 'SYNCED'

A constant which can be used with the sync_status property of a DifferenceColumn. This constant has a value of “SYNCED”

__init__(**kwargs)

Initializes a new DifferenceColumn 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 DifferenceColumn.
  • difference_type (str) – The value to assign to the difference_type property of this DifferenceColumn. Allowed values for this property are: “NEW”, “MODIFIED”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • sensitive_columnkey (str) – The value to assign to the sensitive_columnkey property of this DifferenceColumn.
  • masking_columnkey (str) – The value to assign to the masking_columnkey property of this DifferenceColumn.
  • schema_name (str) – The value to assign to the schema_name property of this DifferenceColumn.
  • object_name (str) – The value to assign to the object_name property of this DifferenceColumn.
  • column_name (str) – The value to assign to the column_name property of this DifferenceColumn.
  • sensitive_type_id (str) – The value to assign to the sensitive_type_id property of this DifferenceColumn.
  • planned_action (str) – The value to assign to the planned_action property of this DifferenceColumn. Allowed values for this property are: “SYNC”, “NO_SYNC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • sync_status (str) – The value to assign to the sync_status property of this DifferenceColumn. Allowed values for this property are: “SYNCED”, “NOT_SYNCED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • time_last_synced (datetime) – The value to assign to the time_last_synced property of this DifferenceColumn.
column_name

[Required] Gets the column_name of this DifferenceColumn. The name of the difference column.

Returns:The column_name of this DifferenceColumn.
Return type:str
difference_type

[Required] Gets the difference_type of this DifferenceColumn. The type of the SDM masking policy difference column. It can be one of the following three types: NEW: A new sensitive column in the sensitive data model that is not in the masking policy. DELETED: A column that is present in the masking policy but has been deleted from the sensitive data model. MODIFIED: A column that is present in the masking policy as well as the sensitive data model but some of its attributes have been modified.

Allowed values for this property are: “NEW”, “MODIFIED”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The difference_type of this DifferenceColumn.
Return type:str
key

[Required] Gets the key of this DifferenceColumn. The unique key that identifies the SDM masking policy difference column.

Returns:The key of this DifferenceColumn.
Return type:str
masking_columnkey

Gets the masking_columnkey of this DifferenceColumn. The unique key that identifies the masking column represented by the SDM masking policy difference column.

Returns:The masking_columnkey of this DifferenceColumn.
Return type:str
object_name

[Required] Gets the object_name of this DifferenceColumn. The database object that contains the difference column.

Returns:The object_name of this DifferenceColumn.
Return type:str
planned_action

[Required] Gets the planned_action of this DifferenceColumn. Specifies how to process the difference column. It’s set to SYNC by default. Use the PatchSdmMaskingPolicyDifferenceColumns operation to update this attribute. You can choose one of the following options: SYNC: To sync the difference column and update the masking policy to reflect the changes. NO_SYNC: To not sync the difference column so that it doesn’t change the masking policy. After specifying the planned action, you can use the ApplySdmMaskingPolicyDifference operation to automatically process the difference columns.

Allowed values for this property are: “SYNC”, “NO_SYNC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The planned_action of this DifferenceColumn.
Return type:str
schema_name

[Required] Gets the schema_name of this DifferenceColumn. The database schema that contains the difference column.

Returns:The schema_name of this DifferenceColumn.
Return type:str
sensitive_columnkey

Gets the sensitive_columnkey of this DifferenceColumn. The unique key that identifies the sensitive column represented by the SDM masking policy difference column.

Returns:The sensitive_columnkey of this DifferenceColumn.
Return type:str
sensitive_type_id

Gets the sensitive_type_id of this DifferenceColumn. The OCID of the sensitive type associated with the difference column.

Returns:The sensitive_type_id of this DifferenceColumn.
Return type:str
sync_status

[Required] Gets the sync_status of this DifferenceColumn. Indicates if the difference column has been processed. Use GetDifferenceColumn operation to track whether the difference column has already been processed and applied to the masking policy.

Allowed values for this property are: “SYNCED”, “NOT_SYNCED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The sync_status of this DifferenceColumn.
Return type:str
time_last_synced

Gets the time_last_synced of this DifferenceColumn. The date and time the SDM masking policy difference column was last synced, in the format defined by RFC3339.

Returns:The time_last_synced of this DifferenceColumn.
Return type:datetime