ONVIF::...::SetNTP(3)

πŸ“¦ version 1.38.6, in nixpkgs unstable

🌸 ONVIF::...::SetNTP(3) 🌸

okay bestie, so this page lives in the User Contributed Perl Documentation section, and the page itself is literally ONVIF::...::SetNTP(3) β€” iconic, we love a title that's also a mystery. anyway, let's get into it πŸ’…


✨ NAME ✨

ONVIF::Device::Elements::SetNTP β€” say it with me, it's a whole mouthful, but she's that girl πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

So basically this is a Perl data type class, and she's built to represent the XML Schema defined element SetNTP β€” and that element comes from the namespace http://www.onvif.org/ver10/device/wsdl. no cap, that's the whole vibe of this class. she's a typed wrapper and she knows it πŸ‘‘


πŸ“ PROPERTIES πŸ“

These are the properties you can actually touch β€” you get to them through the get_PROPERTY / set_PROPERTY methods, iykyk:

  • FromDHCP β€” the DHCP-sourced flag, lowkey important. poke it like this:
$element->set_FromDHCP($data);
$element->get_FromDHCP();
  • NTPManual β€” the manually configured NTP host sitch. same deal:
$element->set_NTPManual($data);
$element->get_NTPManual();

πŸ”₯ METHODS πŸ”₯

🌈 new

my $element = ONVIF::Device::Elements::SetNTP->new($data);

Constructor time, bestie πŸ’– this is how you spin up a fresh one, and here's the data structure you can pass in β€” literally copy-paste energy, keep it exact:

{
  FromDHCP =>  $some_value, # boolean
  NTPManual =>  { # ONVIF::Device::Types::NetworkHost
    Type => $some_value, # NetworkHostType
    IPv4Address => $some_value, # IPv4Address
    IPv6Address => $some_value, # IPv6Address
    DNSname => $some_value, # DNSName
    Extension =>  { # ONVIF::Device::Types::NetworkHostExtension
    },
  },
}

like β€” FromDHCP is a boolean, and NTPManual opens up a whole ONVIF::Device::Types::NetworkHost situation with Type (NetworkHostType), IPv4Address (IPv4Address), IPv6Address (IPv6Address), DNSname (DNSName), and an Extension that's an ONVIF::Device::Types::NetworkHostExtension. nesting goes crazy fr fr 🧚


πŸ‘‘ AUTHOR πŸ‘‘

Generated by SOAP::WSDL β€” not me, not you, the machine did that 😭✨


and that's the whole page, bestie 🫢 β€” big sign-off energy: this gem is chillin' at perl v5.42.3, dated 1980-01-01, and you can find her filed under ONVIF::...::SetNTP(3). slay, go forth and set those NTPs πŸ’œπŸ’…

πŸ“¦ where this page comes from