Infoblox::Notification::RuleExpressionOp - A notification rule expression operand object.


NAME

Infoblox::Notification::RuleExpressionOp - A notification rule expression operand object.


DESCRIPTION

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.


CONSTRUCTOR

 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
 );


SESSION METHODS

The object does not support any session methods.


MODULE METHODS

Infoblox::Notification::Rule->expression_list( )

Use this method to set or retrieve the notification rule condition expression. See Infoblox::Notification::Rule->expression_list() for parameters and return values.

Example
 #Get expression_list value
 my $expression_list = $object->expression_list();
 #Modify expression_list value
 $object->expression_list([$start_list, $op1, $op2, $end_list]);


METHODS

op( )

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.

Parameter

The valid values are 'AND', 'OR', 'ENDLIST', 'EQ', 'NOT_EQ', 'LE', 'REGEX', 'GE', 'CONTAINED_IN', 'MATCH_CIDR' and 'MATCH_RANGE'.

Returns

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.

Example
 #Get op value
 my $op = $object->op();
 #Modify op value
 $object->op('OR');

op1( )

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.

Parameter

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'.

Returns

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.

Example
 #Get op1 value
 my $op1 = $object->op1();
 #Modify op1 value
 $object->op1('SOURCE_IP');

op1_type( )

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.

Parameter

The valid values are 'FIELD', 'LIST' and 'STRING'.

Returns

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.

Example
 #Get op1_type value
 my $op1_type = $object->op1_type();
 #Modify op1_type value
 $object->op1_type('LIST');

op2( )

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.

Parameter

The valid value is a string that contains the second operand value.

Returns

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.

Example
 #Get op2 value
 my $op2 = $object->op2();
 #Modify op2 value
 $object->op2('OP2_VAL');

op2_type( )

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.

Parameter

The valid value is 'STRING'.

Returns

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.

Example
 #Get op2_type value
 my $op2_type = $object->op2_type();
 #Modify op2_type value
 $object->op2_type('STRING');


AUTHOR

Infoblox Inc. http://www.infoblox.com/


SEE ALSO

Infoblox::Notification::Rule, Infoblox::Notification::Rule->expression_list(),


COPYRIGHT

Copyright (c) 2017 Infoblox Inc.