NetApp...DGroup(3pm)

πŸ“¦
version 500.002 Β· 2 versions
  • 500.002 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 500.002 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

NetApp::Aggregate::RAIDGroup β€” okay so bestie, this is an OO class, and its whole job is representing NetApp raidgroups πŸ’… (it lives in the User Contributed Perl Documentation section of your 3pm man pages, iykyk)


πŸ¦‹ SYNOPSIS πŸ¦‹

Here's the vibe, literally copy-paste this energy:

use NetApp::Filer;
use NetApp::Aggregate;

my $aggregate       = $filer->get_aggregate( $name );

my $raidgroup       = $aggregate->get_raidgroup;

That's it, that's the whole intro. Slay. ✨


🌸 DESCRIPTION 🌸

So this class is used to encapsulate a NetApp raidgroup β€” like, it wraps the whole thing up in a cute little object β€” and it provides access to the name and the states of the raidgroup. That's the entire plot of this class, no cap. πŸŽ€


πŸ’– METHODS πŸ’–

🌈 get_name

Returns the name of the raidgroup, as a string. That's it. It gives you the name. Iconic behaviour honestly. πŸ‘‘

⭐ get_states

Returns a list of strings β€” and listen, each one of those strings represents a single state for the raidgroup. So it's giving you the whole state lineup, not just one. 🫢

πŸ’… get_state( $state )

Returns true if the raidgroup has the given state, false otherwise. So you pass in a $state, and it tells you whether that's a thing the raidgroup is currently doing. Yes/no, true/false, the duality of perl. 😭


Bestie reminder: every one of these is a method on the raidgroup object you got from $aggregate->get_raidgroup β€” don't go calling them on nothing, fr fr. πŸ’€

This lil page was brought to you by perl v5.36.0, dated 2022-11-19 β€” shoutout to the version and the date for making it official. Bye bestie, go read your raidgroups responsibly πŸ’œβœ¨

πŸ“¦ where this page comes from