Infoblox::Grid::Discovery::AutoConversionSetting - Auto conversion setting.


NAME

Infoblox::Grid::Discovery::AutoConversionSetting - Auto conversion setting.


DESCRIPTION

The object contains settings for automatic conversion of discovered data to managed objects.


CONSTRUCTOR

 my $object = Infoblox::Grid::Discovery::AutoConversionSetting->new(
    'comment'          => $string,    # Optional
    'condition'        => $string,    # Optional
    'format'           => $string,    # Required
    'network_view'     => $string,    # Required
    'type'             => 'A_AND_PTR_RECORD' | 'HOST_RECORD' | 'FIXED_ADDRESS', # Required
 );


SESSION METHODS

The object does not support any session methods.


METHODS

This section describes all the methods that you can use to set or retrieve the attribute values of the object.

comment( )

Use this method to set or retrieve the comment for the automatic conversion setting.

Parameter

The comment in string format.

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 attribute value
 my $value = $object->comment();
 # Modify attribute value
 $object->comment('comment');

condition( )

Use this method to set or retrieve the condition for automatic conversion settings.

Parameter

The string contains the condition for automatic conversion settings.

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 attribute value
 my $value = $object->condition();
 # Modify attribute value
 $object->condition('${discovered_name} == "unknown"');

format( )

Use this method to set or retrieve the format of the template for conversion.

Parameter

Template string used to generate host names.

Note that using double quotes may lead to interpolation of variables. Instead, use single quotes or encapsulated '$' characters.

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 attribute value
 my $value = $object->format();
 # Modify attribute value
 $object->format('${discovered_name}.test.com');

network_view( )

Use this method to set or retrieve the name of the network view which contains discovered data for convert.

Parameter

The name of the network view.

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 attribute value
 my $value = $object->network_view();
 # Modify attribute value
 $object->network_view('default');

type( )

Use this method to set or retrieve the type of the converted object.

Parameter

The object type used to define the converted object. Valid value is one of the following object types: 'A_AND_PTR_RECORD', 'HOST_RECORD', 'FIXED_ADDRESS'.

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 attribute value
 my $value = $object->type();
 # Modify attribute value
 $object->type('FIXED_ADDRESS');


AUTHOR

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


COPYRIGHT

Copyright (c) 2017 Infoblox Inc.