| 1 | package Net::Cisco::ISE::IdentityGroup; | ||||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 3 | 1 | ▶ | use Moose; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | |||||||||||||
| 5 | BEGIN { | ||||||||||||
| 6 | 1 | ▶ | use Exporter (); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | 1 | ▶ | use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS %actions); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | 1 | ▶ | $VERSION = '0.01'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 9 | 1 | @ISA = qw(Exporter); | |||||||||||
| 10 | 1 | @EXPORT = qw(); | |||||||||||
| 11 | 1 | @EXPORT_OK = qw(); | |||||||||||
| 12 | 1 | %EXPORT_TAGS = (); | |||||||||||
| 13 | }; | ||||||||||||
| 14 | |||||||||||||
| 15 | 1 | %actions = ( "query" => "/ers/config/identitygroup/", | |||||||||||
| 16 | "create" => "/ers/config/identitygroup/", | ||||||||||||
| 17 | "update" => "/ers/config/identitygroup/", | ||||||||||||
| 18 | "getById" => "/ers/config/identitygroup/", | ||||||||||||
| 19 | ); | ||||||||||||
| 20 | |||||||||||||
| 21 | # MOOSE! | ||||||||||||
| 22 | |||||||||||||
| 23 | 1 | has 'description' => ( | |||||||||||
| 24 | is => 'rw', | ||||||||||||
| 25 | isa => 'Any', | ||||||||||||
| 26 | ); | ||||||||||||
| 27 | |||||||||||||
| 28 | 1 | has 'id' => ( | |||||||||||
| 29 | is => 'rw', | ||||||||||||
| 30 | isa => 'Str', | ||||||||||||
| 31 | ); | ||||||||||||
| 32 | |||||||||||||
| 33 | 1 | has 'name' => ( | |||||||||||
| 34 | is => 'rw', | ||||||||||||
| 35 | isa => 'Str', | ||||||||||||
| 36 | ); | ||||||||||||
| 37 | |||||||||||||
| 38 | # No Moose | ||||||||||||
| 39 | |||||||||||||
| 40 | sub toXML | ||||||||||||
| 41 | 0 | ▶ | { my $self = shift; | ||||||||||
|
Subroutine
toXML: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||||
| 42 | 0 | my $id = $self->id; | |||||||||||
| 43 | 0 | ▶ | my $description = $self->description || ""; | ||||||||||
|
Condition0%0/2
$self->description || ''
MC/DC0%0/1
$self->description || ''
$self->description
Truth table0%0/2
A
A= $self->description
| |||||||||||||
| 44 | 0 | ▶ | my $name = $self->name || ""; | ||||||||||
|
Condition0%0/2
$self->name || ''
MC/DC0%0/1
$self->name || ''
$self->name
Truth table0%0/2
A
A= $self->name
| |||||||||||||
| 45 | 0 | my $result = ""; | |||||||||||
| 46 | |||||||||||||
| 47 | 0 | ▶ | if ($id) { $result = " <id>$id</id>\n"; } | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 48 | 0 | $result .= <<XML; | |||||||||||
| 49 | <description>$description</description> | ||||||||||||
| 50 | <name>$name</name> | ||||||||||||
| 51 | XML | ||||||||||||
| 52 | |||||||||||||
| 53 | 0 | return $result; | |||||||||||
| 54 | } | ||||||||||||
| 55 | |||||||||||||
| 56 | sub header | ||||||||||||
| 57 | 0 | ▶ | { my $self = shift; | ||||||||||
|
Subroutine
header: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 58 | 0 | my $users = shift; | |||||||||||
| 59 | 0 | return qq{<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns2:identityGroups xmlns:ns2="identity.rest.mgmt.ise.nm.cisco.com">$users</ns2:identityGroups>}; | |||||||||||
| 60 | } | ||||||||||||
| 61 | |||||||||||||
| 62 | #################### main pod documentation end ################### | ||||||||||||
| 63 | 1 | __PACKAGE__->meta->make_immutable(); | |||||||||||
| 64 | |||||||||||||
| 65 | 1 | 1; | |||||||||||
| 66 | # The preceding line will help the module return a true value | ||||||||||||
| 67 | |||||||||||||