RackTables/0_20_9/Result/VSEnabledPorts.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 24 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« RackTables/0_20_9/Result/VSEnabledIPs.pm ↑ Summary RackTables/0_20_9/Result/VSIPs.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Schema::RackTables::0_20_9::Result::VSEnabledPorts;
3  
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6  
7 =head1 NAME
8  
9 Schema::RackTables::0_20_9::Result::VSEnabledPorts
10  
11 =cut
12  
13 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 1 ▶use base 'DBIx::Class::Core';
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 =head1 COMPONENTS LOADED
19  
20 =over 4
21  
22 =item * L<DBIx::Class::InflateColumn::DateTime>
23  
24 =back
25  
26 =cut
27  
28 1 __PACKAGE__->load_components("InflateColumn::DateTime");
29  
30 =head1 TABLE: C<VSEnabledPorts>
31  
32 =cut
33  
34 1 __PACKAGE__->table("VSEnabledPorts");
35  
36 =head1 ACCESSORS
37  
38 =head2 object_id
39  
40 data_type: 'integer'
41 extra: {unsigned => 1}
42 is_foreign_key: 1
43 is_nullable: 0
44  
45 =head2 vs_id
46  
47 data_type: 'integer'
48 extra: {unsigned => 1}
49 is_foreign_key: 1
50 is_nullable: 0
51  
52 =head2 proto
53  
54 data_type: 'enum'
55 extra: {list => ["TCP","UDP","MARK"]}
56 is_foreign_key: 1
57 is_nullable: 0
58  
59 =head2 vport
60  
61 data_type: 'integer'
62 extra: {unsigned => 1}
63 is_foreign_key: 1
64 is_nullable: 0
65  
66 =head2 rspool_id
67  
68 data_type: 'integer'
69 extra: {unsigned => 1}
70 is_foreign_key: 1
71 is_nullable: 0
72  
73 =head2 vsconfig
74  
75 data_type: 'text'
76 is_nullable: 1
77  
78 =head2 rsconfig
79  
80 data_type: 'text'
81 is_nullable: 1
82  
83 =cut
84  
85 1 __PACKAGE__->add_columns(
86 "object_id",
87 {
88 data_type => "integer",
89 extra => { unsigned => 1 },
90 is_foreign_key => 1,
91 is_nullable => 0,
92 },
93 "vs_id",
94 {
95 data_type => "integer",
96 extra => { unsigned => 1 },
97 is_foreign_key => 1,
98 is_nullable => 0,
99 },
100 "proto",
101 {
102 data_type => "enum",
103 extra => { list => ["TCP", "UDP", "MARK"] },
104 is_foreign_key => 1,
105 is_nullable => 0,
106 },
107 "vport",
108 {
109 data_type => "integer",
110 extra => { unsigned => 1 },
111 is_foreign_key => 1,
112 is_nullable => 0,
113 },
114 "rspool_id",
115 {
116 data_type => "integer",
117 extra => { unsigned => 1 },
118 is_foreign_key => 1,
119 is_nullable => 0,
120 },
121 "vsconfig",
122 { data_type => "text", is_nullable => 1 },
123 "rsconfig",
124 { data_type => "text", is_nullable => 1 },
125 );
126  
127 =head1 PRIMARY KEY
128  
129 =over 4
130  
131 =item * L</object_id>
132  
133 =item * L</vs_id>
134  
135 =item * L</proto>
136  
137 =item * L</vport>
138  
139 =item * L</rspool_id>
140  
141 =back
142  
143 =cut
144  
145 1 __PACKAGE__->set_primary_key("object_id", "vs_id", "proto", "vport", "rspool_id");
146  
147 =head1 RELATIONS
148  
149 =head2 object
150  
151 Type: belongs_to
152  
153 Related object: L<Schema::RackTables::0_20_9::Result::Object>
154  
155 =cut
156  
157 1 __PACKAGE__->belongs_to(
158 "object",
159 "Schema::RackTables::0_20_9::Result::Object",
160 { id => "object_id" },
161 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
162 );
163  
164 =head2 rspool
165  
166 Type: belongs_to
167  
168 Related object: L<Schema::RackTables::0_20_9::Result::IPv4RSPool>
169  
170 =cut
171  
172 1 __PACKAGE__->belongs_to(
173 "rspool",
174 "Schema::RackTables::0_20_9::Result::IPv4RSPool",
175 { id => "rspool_id" },
176 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
177 );
178  
179 =head2 vsport
180  
181 Type: belongs_to
182  
183 Related object: L<Schema::RackTables::0_20_9::Result::VSPorts>
184  
185 =cut
186  
187 1 __PACKAGE__->belongs_to(
188 "vsport",
189 "Schema::RackTables::0_20_9::Result::VSPorts",
190 { proto => "proto", vport => "vport", vs_id => "vs_id" },
191 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
192 );
193  
194  
195 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:01
196 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rhq5Tq5c5kqPQuwtr6Cfgg
197  
198  
199 # You can replace this text with custom code or comments, and it will be preserved on regeneration
200 1 1;
« RackTables/0_20_9/Result/VSEnabledIPs.pm ↑ Summary RackTables/0_20_9/Result/VSIPs.pm »