CreateSubsettingPolicyDetails¶
-
class
oci.data_safe.models.CreateSubsettingPolicyDetails(**kwargs)¶ Bases:
objectDetails to create a new subsetting policy. Use either a sensitive data model or a target database as the source of schemas for subsetting. To use a sensitive data model as the source of schemas, set the schemaSource attribute to SENSITIVE_DATA_MODEL and provide the sensitiveDataModelId attribute. The schemas from the SDM will be used for subsetting. To use a target database as the source of schemas, set the schemaSource attribute to TARGET and provide the targetId attribute along with the schemasForSubsetting list. The schema list can also be provided or updated later using the UpdateSubsettingPolicy operation. After creating a subsetting policy, you can use operations to add or modify subsetting rules as needed
Methods
__init__(**kwargs)Initializes a new CreateSubsettingPolicyDetails object with values from keyword arguments. Attributes
compartment_id[Required] Gets the compartment_id of this CreateSubsettingPolicyDetails. defined_tagsGets the defined_tags of this CreateSubsettingPolicyDetails. descriptionGets the description of this CreateSubsettingPolicyDetails. display_nameGets the display_name of this CreateSubsettingPolicyDetails. freeform_tagsGets the freeform_tags of this CreateSubsettingPolicyDetails. is_redo_logging_enabledGets the is_redo_logging_enabled of this CreateSubsettingPolicyDetails. is_refresh_stats_enabledGets the is_refresh_stats_enabled of this CreateSubsettingPolicyDetails. masking_policy_idGets the masking_policy_id of this CreateSubsettingPolicyDetails. parallel_degreeGets the parallel_degree of this CreateSubsettingPolicyDetails. post_subsetting_scriptGets the post_subsetting_script of this CreateSubsettingPolicyDetails. pre_subsetting_scriptGets the pre_subsetting_script of this CreateSubsettingPolicyDetails. recompileGets the recompile of this CreateSubsettingPolicyDetails. schema_source[Required] Gets the schema_source of this CreateSubsettingPolicyDetails. unrelated_tables_actionGets the unrelated_tables_action of this CreateSubsettingPolicyDetails. -
__init__(**kwargs)¶ Initializes a new CreateSubsettingPolicyDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - display_name (str) – The value to assign to the display_name property of this CreateSubsettingPolicyDetails.
- compartment_id (str) – The value to assign to the compartment_id property of this CreateSubsettingPolicyDetails.
- description (str) – The value to assign to the description property of this CreateSubsettingPolicyDetails.
- is_redo_logging_enabled (bool) – The value to assign to the is_redo_logging_enabled property of this CreateSubsettingPolicyDetails.
- is_refresh_stats_enabled (bool) – The value to assign to the is_refresh_stats_enabled property of this CreateSubsettingPolicyDetails.
- parallel_degree (str) – The value to assign to the parallel_degree property of this CreateSubsettingPolicyDetails.
- recompile (str) – The value to assign to the recompile property of this CreateSubsettingPolicyDetails.
- unrelated_tables_action (str) – The value to assign to the unrelated_tables_action property of this CreateSubsettingPolicyDetails.
- pre_subsetting_script (str) – The value to assign to the pre_subsetting_script property of this CreateSubsettingPolicyDetails.
- post_subsetting_script (str) – The value to assign to the post_subsetting_script property of this CreateSubsettingPolicyDetails.
- schema_source (oci.data_safe.models.CreateSchemaSourceDetails) – The value to assign to the schema_source property of this CreateSubsettingPolicyDetails.
- masking_policy_id (str) – The value to assign to the masking_policy_id property of this CreateSubsettingPolicyDetails.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateSubsettingPolicyDetails.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateSubsettingPolicyDetails.
-
compartment_id¶ [Required] Gets the compartment_id of this CreateSubsettingPolicyDetails. The OCID of the compartment where the subsetting policy should be created
Returns: The compartment_id of this CreateSubsettingPolicyDetails. Return type: str
Gets the defined_tags of this CreateSubsettingPolicyDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {“Operations”: {“CostCenter”: “42”}}
Returns: The defined_tags of this CreateSubsettingPolicyDetails. Return type: dict(str, dict(str, object))
-
description¶ Gets the description of this CreateSubsettingPolicyDetails. The description of the subsetting policy
Returns: The description of this CreateSubsettingPolicyDetails. Return type: str
-
display_name¶ Gets the display_name of this CreateSubsettingPolicyDetails. The display name of the subsetting policy. The name does not have to be unique, and it’s changeable
Returns: The display_name of this CreateSubsettingPolicyDetails. Return type: str
Gets the freeform_tags of this CreateSubsettingPolicyDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags
Example: {“Department”: “Finance”}
Returns: The freeform_tags of this CreateSubsettingPolicyDetails. Return type: dict(str, str)
-
is_redo_logging_enabled¶ Gets the is_redo_logging_enabled of this CreateSubsettingPolicyDetails. Indicates if redo logging is enabled during a subsetting operation. It’s disabled by default. Set this attribute to true to enable redo logging. By default, subsetting disables redo logging and flashback logging to purge any original data from logs. However, in certain circumstances when you only want to test subsetting, rollback changes, and retry subsetting, you could enable logging and use a flashback database to retrieve the original data after it has been subsetted
Returns: The is_redo_logging_enabled of this CreateSubsettingPolicyDetails. Return type: bool
-
is_refresh_stats_enabled¶ Gets the is_refresh_stats_enabled of this CreateSubsettingPolicyDetails. Indicates if statistics gathering is enabled. It’s enabled by default. Set this attribute to false to disable statistics gathering. The subsetting process gathers statistics on subsetted database tables after subsetting completes
Returns: The is_refresh_stats_enabled of this CreateSubsettingPolicyDetails. Return type: bool
-
masking_policy_id¶ Gets the masking_policy_id of this CreateSubsettingPolicyDetails. The OCID of the masking policy to associate with this subsetting policy
Returns: The masking_policy_id of this CreateSubsettingPolicyDetails. Return type: str
-
parallel_degree¶ Gets the parallel_degree of this CreateSubsettingPolicyDetails. Specifies options to enable parallel execution when running data subsetting. Allowed values are ‘NONE’ (no parallelism), ‘DEFAULT’ (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve subsetting performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism
Returns: The parallel_degree of this CreateSubsettingPolicyDetails. Return type: str
-
post_subsetting_script¶ Gets the post_subsetting_script of this CreateSubsettingPolicyDetails. A post-subsetting script, which can contain SQL and PL/SQL statements. It’s executed after the subsetting process. It’s usually used to perform additional transformation or cleanup work after subsetting data.
Returns: The post_subsetting_script of this CreateSubsettingPolicyDetails. Return type: str
-
pre_subsetting_script¶ Gets the pre_subsetting_script of this CreateSubsettingPolicyDetails. A pre-subsetting script, which can contain SQL and PL/SQL statements. It’s executed before the subsetting process. It’s usually used to perform any preparation or prerequisite work before subsetting data.
Returns: The pre_subsetting_script of this CreateSubsettingPolicyDetails. Return type: str
-
recompile¶ Gets the recompile of this CreateSubsettingPolicyDetails. Specifies how to recompile invalid objects post data subsetting. Allowed values are ‘SERIAL’ (recompile in serial), ‘PARALLEL’ (recompile in parallel), ‘NONE’ (do not recompile). If it’s set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after subsetting completes
Returns: The recompile of this CreateSubsettingPolicyDetails. Return type: str
-
schema_source¶ [Required] Gets the schema_source of this CreateSubsettingPolicyDetails.
Returns: The schema_source of this CreateSubsettingPolicyDetails. Return type: oci.data_safe.models.CreateSchemaSourceDetails
Gets the unrelated_tables_action of this CreateSubsettingPolicyDetails. Strategy to be applied for tables which are not impacted by any of the subsetting rules
Returns: The unrelated_tables_action of this CreateSubsettingPolicyDetails. Return type: str
-