SteeringPolicyWeightedRuleCase¶
-
class
oci.dns.models.
SteeringPolicyWeightedRuleCase
(**kwargs)¶ Bases:
object
SteeringPolicyWeightedRuleCase model.
Methods
__init__
(**kwargs)Initializes a new SteeringPolicyWeightedRuleCase object with values from keyword arguments. Attributes
answer_data
Gets the answer_data of this SteeringPolicyWeightedRuleCase. case_condition
Gets the case_condition of this SteeringPolicyWeightedRuleCase. -
__init__
(**kwargs)¶ Initializes a new SteeringPolicyWeightedRuleCase object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - case_condition (str) – The value to assign to the case_condition property of this SteeringPolicyWeightedRuleCase.
- answer_data (list[oci.dns.models.SteeringPolicyWeightedAnswerData]) – The value to assign to the answer_data property of this SteeringPolicyWeightedRuleCase.
-
answer_data
¶ Gets the answer_data of this SteeringPolicyWeightedRuleCase. An array of SteeringPolicyWeightedAnswerData objects.
Returns: The answer_data of this SteeringPolicyWeightedRuleCase. Return type: list[oci.dns.models.SteeringPolicyWeightedAnswerData]
-
case_condition
¶ Gets the case_condition of this SteeringPolicyWeightedRuleCase. An expression that uses conditions at the time of a DNS query to indicate whether a case matches. Conditions may include the geographical location, IP subnet, or ASN the DNS query originated. Example: If you have an office that uses the subnet 192.0.2.0/24 you could use a caseCondition expression query.client.address in (‘192.0.2.0/24’) to define a case that matches queries from that office.
Returns: The case_condition of this SteeringPolicyWeightedRuleCase. Return type: str
-