Infoblox::Grid::ConsentBannerSetting - The consent banner setting.
The consent banner setting object controls the banner displayed on the login page of Grid Manager.
my $consent = Infoblox::Grid::ConsentBannerSetting->new( enable => "true" | "false", #Mandatory message => $string, #Optional / Default is empty );
The following functions are available to apply to a consent banner setting object.
Use this function to specify the consent banner settings for the Grid. See Infoblox::Grid->consent_banner_setting() for parameters and return values.
my $grid = $session->get(object => 'Infoblox::Grid');
my $banner = Infoblox::Grid::ConsentBannerSetting->new(enable => 'true', message => 'Consent message'); $grid->consent_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";
This section describes all the methods that you can use to set and retrieve the attribute values of a consent banner setting object.
Use this method to set the enable flag.
Specify "true" to enable the banner or "false" to disable it.
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 enable my $enable = $banner->enable(); #Modify enable $banner->enable("true");
Use this method to set the message that will be displayed on the login page of Grid Manager.
A string containing the message.
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 message my $message = $banner->message(); #Modify message $banner->message("Test message");
Infoblox Inc. http://www.infoblox.com/
Copyright (c) 2017 Infoblox Inc.