Infoblox::Grid::ExpressionOp - An expression operand object.


NAME

Infoblox::Grid::ExpressionOp - An 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::Grid::ExpressionOp->new(
     op       => 'AND'| 'OR'| 'GT'| 'GE'| 'LT'| 'LE'| 'EQ'| 'NOT_EQ'| 'ENDLIST'| 'EXISTS'| 'MATCH_IP'| 'MATCH_RANGE'| 'MATCH_CIDR', # Required
     op1      => $string,                                                                                                           # Optional / Default is undefined
     op2      => $string,                                                                                                           # Optional / Default is undefined
     op1_type => 'FIELD' | 'LIST' | 'STRING',                                                                                       # Optional / Default is undefined
     op2_type => 'FIELD' | 'LIST' | 'STRING',                                                                                       # Optional / Default is undefined
 );


SESSION METHODS

The object does not support any session methods.


MODULE METHODS

Infoblox::Grid::DNS::ReclamationSetting->expression_list( )

Use this method to set or retrieve the expression list. See Infoblox::Grid::DNS::ReclamationSetting->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', 'ENDLIST', 'GT', 'LT', 'LE', 'GE', 'MATCH_IP', 'MATCH_RANGE', 'MATCH_CIDR', 'EQ', 'EXISTS', 'NOT_EQ', 'NOT_EXISTS' and 'OR'.

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('LE');

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 value is a string that contains the first 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 op1 value
 my $op1 = $object->op1();
 #Modify op1 value
 $object->op1('OP1_VAL');

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 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 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::Grid::DNS::ReclamationSetting, Infoblox::Grid::DNS::ReclamationSetting->expression_list(),


COPYRIGHT

Copyright (c) 2017 Infoblox Inc.