Infoblox::Grid::RestartBannerSetting - The restart banner setting.


NAME

Infoblox::Grid::RestartBannerSetting - The restart banner setting.


DESCRIPTION

The Restart Banner Setting object controls the banner displayed for Grid restart.


CONSTRUCTOR

 my $restart = Infoblox::Grid::RestartBannerSetting->new(
     enable                     => "true" | "false", #Mandatory
     enable_double_confirmation => "true" | "false", #Optional / Default is "false"
 );


MODULE METHODS

The following functions are available to apply to a restart banner setting object.

Infoblox::Grid->restart_banner_setting( )

Use this function to specify the restart banner settings for the Grid. See Infoblox::Grid->restart_banner_setting() for parameters and return values.

Example
 my $grid = $session->get(object => 'Infoblox::Grid');
 my $banner = Infoblox::Grid::RestartBannerSetting->new(enable => 'true');
 $grid->restart_banner_setting($banner);
 my $response = $session->modify($grid);
 unless($response) {
      die("Modify grid failed: ",
            session->status_code() . ":" . session->status_detail());
 }
 print "Grid banner setting modified successfully\n";


METHODS

This section describes all the methods that you can use to set and retrieve the attribute values of a Restart Banner Setting object.

enable( )

Use this method to set the enable flag.

Parameter

Specify "true" to enable the banner or "false" to disable it.

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 enable
 my $enable = $banner->enable();
 #Modify enable
 $banner->enable("true");

enable_double_confirmation( )

Use this method to set the enable_double_confirmation flag. If this flag is set to "true" the user is required to input name before restarting services.

Parameter

Specify "true" to enable double confirmation or "false" to disable it.

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 enable_double_confirmation
 my $enable_double_confirmation = $banner->enable_double_confirmation();
 #Modify enable_double_confirmation
 $banner->enable_double_confirmation("true");


AUTHOR

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


SEE ALSO

Infoblox::Grid


COPYRIGHT

Copyright (c) 2017 Infoblox Inc.