PercentSubsetRuleEntry

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

Bases: oci.data_safe.models.subset_rule_entry.SubsetRuleEntry

Defines a subsetting rule based on a percentage of the data to retain

Attributes

RULE_TYPE_CONDITION str(object=’’) -> str
RULE_TYPE_PARTITION str(object=’’) -> str
RULE_TYPE_PERCENT str(object=’’) -> str
percent [Required] Gets the percent of this PercentSubsetRuleEntry.
rule_type [Required] Gets the rule_type of this SubsetRuleEntry.

Methods

__init__(**kwargs) Initializes a new PercentSubsetRuleEntry 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.
RULE_TYPE_CONDITION = 'CONDITION'
RULE_TYPE_PARTITION = 'PARTITION'
RULE_TYPE_PERCENT = 'PERCENT'
__init__(**kwargs)

Initializes a new PercentSubsetRuleEntry object with values from keyword arguments. The default value of the rule_type attribute of this class is PERCENT and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • rule_type (str) – The value to assign to the rule_type property of this PercentSubsetRuleEntry. Allowed values for this property are: “PERCENT”, “CONDITION”, “PARTITION”
  • percent (int) – The value to assign to the percent property of this PercentSubsetRuleEntry.
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.

percent

[Required] Gets the percent of this PercentSubsetRuleEntry. The percentage of rows to retain in the subset (between 0 and 100)

Returns:The percent of this PercentSubsetRuleEntry.
Return type:int
rule_type

[Required] Gets the rule_type of this SubsetRuleEntry. type of subset rule

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

Returns:The rule_type of this SubsetRuleEntry.
Return type:str