NetApp...::Delta(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 ✨

okay so bestie, welcome to NetApp::Snapshot::Delta β€” it's an OO class, and it represents a single snapshot delta πŸ’… that's literally the whole job. it lives in the NetApp...::Delta(3pm) corner of the perl doc-verse (User Contributed Perl Documentation, iykyk) and it's lowkey iconic at doing exactly one thing.


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the vibe, copy it exactly, no cap:

use NetApp::Filer;
use NetApp::Snapshot;

my $filer = NetApp::Filer->new({ .... });

my $volume = $filer->get_volume( $volname );

my @deltas = $volume->get_snapshot_deltas;

foreach my $snapshot ( $volume->get_snapshots ) {

    my @deltas = $snapshot->get_snapshot_deltas;

}

see how it's giving? you get a filer, you grab a volume, and then deltas just ✨appear✨ β€” either straight off the volume or per-snapshot in a loop. obsessed. 🫢


🌸 DESCRIPTION 🌸

this class encapsulates a single snapshot delta. that's it. that's the girl. she holds one delta and she holds it well. no extra lore, periodt.


πŸ‘‘ INSTANCE METHODS πŸ‘‘

there are 5 key instance methods, and every single one of them returns the data from the column of the same name in the snap delta table. like, the name of the method IS the column name. the way that is so efficient of her.

  • get_from
  • get_to
  • get_changed
  • get_time
  • get_rate

πŸ’– is_summary πŸ’–

this method returns true or false, indicating that the delta was a summary, as opposed to an individual delta. so like… is she the whole group chat or just one message? that's the question this answers. πŸŽ€


and that's the whole page, bestie β€” you're a snapshot delta expert now, fr fr. this gem of a doc is from perl v5.36.0, dated 2022-11-19, and it was served up in the NetApp...::Delta(3pm) section. go forth and read those deltas. slay πŸ’…βœ¨

πŸ“¦ where this page comes from