ONVIF::...Response(3)

πŸ“¦ version 1.38.6, in nixpkgs unstable

🌸 ONVIF::...Response(3) 🌸

okay bestie, so this page is from the User Contributed Perl Documentation section, and the actual module we're stanning here is ONVIF::PTZ::Elements::GetConfigurationsResponse. yes the header abbreviates it to ONVIF::...Response(3) β€” she's shy, it's fine πŸ’…


✨ NAME ✨

ONVIF::PTZ::Elements::GetConfigurationsResponse β€” say that five times fast, i cannot, but she's iconic πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

Bestie. This is a Perl data type class. That's it, that's the vibe πŸ’–

It's the class for the XML Schema defined element GetConfigurationsResponse, and it lives in the namespace http://www.onvif.org/ver20/ptz/wsdl. No cap, that's the whole namespace β€” copy it exactly if you're typing it, do not freestyle it πŸ™ˆ


πŸŽ€ PROPERTIES πŸŽ€

So you've got these properties, and you access them with the get_PROPERTY / set_PROPERTY methods. Classic. Lowkey elegant.

  • PTZConfiguration β€” the one and only property, and she's got feelings (a whole nested type situation, we'll get there). Get and set her like this:
$element->set_PTZConfiguration($data);
$element->get_PTZConfiguration();

πŸ”₯ METHODS πŸ”₯

🧚 new

my $element = ONVIF::PTZ::Elements::GetConfigurationsResponse->new($data);

Constructor, obviously. She builds the element for you, main character energy.

The following data structure may be passed to new(). Fair warning bestie, this is a big one β€” I'm keeping every single line exactly, so don't come for me 😭

{
  PTZConfiguration =>  { # ONVIF::PTZ::Types::PTZConfiguration
    NodeToken => $some_value, # ReferenceToken
    DefaultAbsolutePantTiltPositionSpace =>  $some_value, # anyURI
    DefaultAbsoluteZoomPositionSpace =>  $some_value, # anyURI
    DefaultRelativePanTiltTranslationSpace =>  $some_value, # anyURI
    DefaultRelativeZoomTranslationSpace =>  $some_value, # anyURI
    DefaultContinuousPanTiltVelocitySpace =>  $some_value, # anyURI
    DefaultContinuousZoomVelocitySpace =>  $some_value, # anyURI
    DefaultPTZSpeed =>  { # ONVIF::PTZ::Types::PTZSpeed
      PanTilt => ,
      Zoom => ,
    },
    DefaultPTZTimeout =>  $some_value, # duration
    PanTiltLimits =>  { # ONVIF::PTZ::Types::PanTiltLimits
      Range =>  { # ONVIF::PTZ::Types::Space2DDescription
        URI =>  $some_value, # anyURI
        XRange =>  { # ONVIF::PTZ::Types::FloatRange
          Min =>  $some_value, # float
          Max =>  $some_value, # float
        },
        YRange =>  { # ONVIF::PTZ::Types::FloatRange
          Min =>  $some_value, # float
          Max =>  $some_value, # float
        },
      },
    },
    ZoomLimits =>  { # ONVIF::PTZ::Types::ZoomLimits
      Range =>  { # ONVIF::PTZ::Types::Space1DDescription
        URI =>  $some_value, # anyURI
        XRange =>  { # ONVIF::PTZ::Types::FloatRange
          Min =>  $some_value, # float
          Max =>  $some_value, # float
        },
      },
    },
    Extension =>  { # ONVIF::PTZ::Types::PTZConfigurationExtension
      PTControlDirection =>  { # ONVIF::PTZ::Types::PTControlDirection
        EFlip =>  { # ONVIF::PTZ::Types::EFlip
          Mode => $some_value, # EFlipMode
        },
        Reverse =>  { # ONVIF::PTZ::Types::Reverse
          Mode => $some_value, # ReverseMode
        },
        Extension =>  { # ONVIF::PTZ::Types::PTControlDirectionExtension
        },
      },
      Extension =>  { # ONVIF::PTZ::Types::PTZConfigurationExtension2
      },
    },
  },
},

yes. that's the whole thing. breathe. it's giving nested-struct realness and honestly? she ate 🌈

Heads up bestie: PTZConfiguration, DefaultPTZSpeed, PanTilt and Zoom have no $some_value placeholder on those lines, and both Extension blocks are totally empty {} β€” that's exactly how the original rolls, so don't go "fixing" it, i'm begging πŸ™

πŸ’œ AUTHOR πŸ’œ

Generated by SOAP::WSDL. It's literally in the author field. We didn't write this, a machine did, and honestly? slay πŸ€–βœ¨


okay that's the page!! sign-off time 🫢 β€” this beauty is documented for perl v5.42.3 and stamped 1980-01-01, so she's technically vintage but emotionally a fresh-faced baddie. bye bestie, go configure those PTZ configs πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from