line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Cisco::ISE::IdentityGroup; |
2
|
1
|
|
|
1
|
|
10
|
use strict; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
41
|
|
3
|
1
|
|
|
1
|
|
10
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
9
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
BEGIN { |
6
|
1
|
|
|
1
|
|
10350
|
use Exporter (); |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
40
|
|
7
|
1
|
|
|
1
|
|
7
|
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS %actions); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
163
|
|
8
|
1
|
|
|
1
|
|
6
|
$VERSION = '0.05'; |
9
|
1
|
|
|
|
|
22
|
@ISA = qw(Exporter); |
10
|
1
|
|
|
|
|
5
|
@EXPORT = qw(); |
11
|
1
|
|
|
|
|
3
|
@EXPORT_OK = qw(); |
12
|
1
|
|
|
|
|
322
|
%EXPORT_TAGS = (); |
13
|
|
|
|
|
|
|
}; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
has 'description' => ( |
24
|
|
|
|
|
|
|
is => 'rw', |
25
|
|
|
|
|
|
|
isa => 'Any', |
26
|
|
|
|
|
|
|
); |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
has 'id' => ( |
29
|
|
|
|
|
|
|
is => 'rw', |
30
|
|
|
|
|
|
|
isa => 'Str', |
31
|
|
|
|
|
|
|
); |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
has 'name' => ( |
34
|
|
|
|
|
|
|
is => 'rw', |
35
|
|
|
|
|
|
|
isa => 'Str', |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
# No Moose |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub toXML |
41
|
0
|
|
|
0
|
0
|
|
{ my $self = shift; |
42
|
0
|
|
|
|
|
|
my $id = $self->id; |
43
|
0
|
|
0
|
|
|
|
my $description = $self->description || ""; |
44
|
0
|
|
0
|
|
|
|
my $name = $self->name || ""; |
45
|
0
|
|
|
|
|
|
my $result = ""; |
46
|
|
|
|
|
|
|
|
47
|
0
|
0
|
|
|
|
|
if ($id) { $result = " <id>$id</id>\n"; } |
|
0
|
|
|
|
|
|
|
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
|
|
|
0
|
0
|
|
{ my $self = shift; |
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
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable(); |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
1; |
66
|
|
|
|
|
|
|
# The preceding line will help the module return a true value |
67
|
|
|
|
|
|
|
|