Infoblox::Notification::RuleExpressionOp - A notification rule expression operand object.
The expression operand object is used to build expression lists. The allowed values for the expression operand object depend on the object they appear to be a part of.
my $expression = Infoblox::Notification::RuleExpressionOp->new( op => 'AND' | 'OR' | 'ENDLIST' | 'EQ' | 'REGEX' | | 'MATCH_CIDR' | 'MATCH_RANGE' | 'LE' | 'GE' | 'CONTAINED_IN' # Required op1 => 'ADDRESS_TYPE' | 'DHCP_FINGERPRINT' | 'DHCP_LEASE_STATE' | 'DHCP_IP_ADDRESS' | 'DISABLE' | 'DNS_RPZ_ACTION_POLICY' | 'DNS_RPZ_NAME' | 'DNS_RPZ_RULE_NAME' | 'DNS_RPZ_TYPE' | 'DUID' | 'HOST' | 'IPV4_ADDRESS' | 'IPV6_ADDRESS' | 'IPV6_PREFIX' | 'IPV6_PREFIX_BITS' | 'MAC' | 'NAME' | 'NETWORK' | 'NETWORK_VIEW' | 'SECURITY_ADP_RULE_MESSAGE' | 'SECURITY_ADP_RULE_SEVERITY' | 'SECURITY_ADP_SID' | 'SERVER_ASSOC_TYPE_IPV4', 'SERVER_ASSOC_TYPE_IPV6' | 'SOURCE_IP', # Optional / Default is undefined op2 => $string, # Optional / Default is undefined op1_type => 'FIELD' | 'LIST', # Optional / Default is undefined op2_type => 'STRING', # Optional / Default is undefined );
The object does not support any session methods.
Use this method to set or retrieve the notification rule condition expression. See Infoblox::Notification::Rule->expression_list() for parameters and return values.
#Get expression_list value my $expression_list = $object->expression_list();
#Modify expression_list value $object->expression_list([$start_list, $op1, $op2, $end_list]);
Use this method to set or retrieve the operation name.
Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.
The valid values are 'AND', 'OR', 'ENDLIST', 'EQ', 'NOT_EQ', 'LE', 'REGEX', 'GE', 'CONTAINED_IN', 'MATCH_CIDR' and 'MATCH_RANGE'.
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get op value my $op = $object->op();
#Modify op value $object->op('OR');
Use this method to set or retrieve the first operand value.
Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.
The valid values are 'ADDRESS_TYPE', 'DHCP_FINGERPRINT' , 'DHCP_LEASE_STATE', 'DHCP_IP_ADDRESS', 'DISABLE' , 'DNS_RPZ_ACTION_POLICY', 'DNS_RPZ_NAME', 'DNS_RPZ_RULE_NAME' , 'DNS_RPZ_TYPE', 'DUID', 'HOST', 'IPV4_ADDRESS' , 'IPV6_ADDRESS', 'IPV6_PREFIX', 'IPV6_PREFIX_BITS', 'MAC' , 'NAME', 'NETWORK', 'NETWORK_VIEW', 'SECURITY_ADP_RULE_MESSAGE' , 'SECURITY_ADP_RULE_SEVERITY', 'SECURITY_ADP_SID' , 'SERVER_ASSOC_TYPE_IPV4', 'SERVER_ASSOC_TYPE_IPV6', 'SOURCE_IP'.
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get op1 value my $op1 = $object->op1();
#Modify op1 value $object->op1('SOURCE_IP');
Use this method to set or retrieve the first operand type.
Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.
The valid values are 'FIELD', 'LIST' and 'STRING'.
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get op1_type value my $op1_type = $object->op1_type();
#Modify op1_type value $object->op1_type('LIST');
Use this method to set or retrieve the second operand value.
Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.
The valid value is a string that contains the second operand value.
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get op2 value my $op2 = $object->op2();
#Modify op2 value $object->op2('OP2_VAL');
Use this method to set or retrieve the second operand type.
Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.
The valid value is 'STRING'.
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get op2_type value my $op2_type = $object->op2_type();
#Modify op2_type value $object->op2_type('STRING');
Infoblox Inc. http://www.infoblox.com/
Infoblox::Notification::Rule, Infoblox::Notification::Rule->expression_list(),
Copyright (c) 2017 Infoblox Inc.