blib/lib/RackTables/Schema/Result/RackObject.pm

filter: Statementstmt 100% 36 / 36 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 41 / 41 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/RackTables/Schema/Result/RackHistory.pm ↑ Summary blib/lib/RackTables/Schema/Result/RackObjectHistory.pm »
1 package RackTables::Schema::Result::RackObject;
2  
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5  
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use MooseX::NonMoose;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 extends 'DBIx::Class::Core';
13  
14  
15 =head1 NAME
16  
17 RackTables::Schema::Result::RackObject
18  
19 =cut
20  
21 1 __PACKAGE__->table("RackObject");
22  
23 =head1 ACCESSORS
24  
25 =head2 id
26  
27 data_type: 'integer'
28 extra: {unsigned => 1}
29 is_auto_increment: 1
30 is_nullable: 0
31  
32 =head2 name
33  
34 data_type: 'char'
35 is_nullable: 1
36 size: 255
37  
38 =head2 label
39  
40 data_type: 'char'
41 is_nullable: 1
42 size: 255
43  
44 =head2 objtype_id
45  
46 data_type: 'integer'
47 default_value: 1
48 extra: {unsigned => 1}
49 is_nullable: 0
50  
51 =head2 asset_no
52  
53 data_type: 'char'
54 is_nullable: 1
55 size: 64
56  
57 =head2 has_problems
58  
59 data_type: 'enum'
60 default_value: 'no'
61 extra: {list => ["yes","no"]}
62 is_nullable: 0
63  
64 =head2 comment
65  
66 data_type: 'text'
67 is_nullable: 1
68  
69 =cut
70  
71 1 __PACKAGE__->add_columns(
72 "id",
73 {
74 data_type => "integer",
75 extra => { unsigned => 1 },
76 is_auto_increment => 1,
77 is_nullable => 0,
78 },
79 "name",
80 { data_type => "char", is_nullable => 1, size => 255 },
81 "label",
82 { data_type => "char", is_nullable => 1, size => 255 },
83 "objtype_id",
84 {
85 data_type => "integer",
86 default_value => 1,
87 extra => { unsigned => 1 },
88 is_nullable => 0,
89 },
90 "asset_no",
91 { data_type => "char", is_nullable => 1, size => 64 },
92 "has_problems",
93 {
94 data_type => "enum",
95 default_value => "no",
96 extra => { list => ["yes", "no"] },
97 is_nullable => 0,
98 },
99 "comment",
100 { data_type => "text", is_nullable => 1 },
101 );
102 1 __PACKAGE__->set_primary_key("id");
103 1 __PACKAGE__->add_unique_constraint("RackObject_asset_no", ["asset_no"]);
104 1 __PACKAGE__->add_unique_constraint("name", ["name"]);
105  
106 =head1 RELATIONS
107  
108 =head2 attribute_values
109  
110 Type: has_many
111  
112 Related object: L<RackTables::Schema::Result::AttributeValue>
113  
114 =cut
115  
116 1 __PACKAGE__->has_many(
117 "attribute_values",
118 "RackTables::Schema::Result::AttributeValue",
119 { "foreign.object_id" => "self.id" },
120 { cascade_copy => 0, cascade_delete => 0 },
121 );
122  
123 =head2 cached_pvms
124  
125 Type: has_many
126  
127 Related object: L<RackTables::Schema::Result::CachedPVM>
128  
129 =cut
130  
131 1 __PACKAGE__->has_many(
132 "cached_pvms",
133 "RackTables::Schema::Result::CachedPVM",
134 { "foreign.object_id" => "self.id" },
135 { cascade_copy => 0, cascade_delete => 0 },
136 );
137  
138 =head2 cacti_graphs
139  
140 Type: has_many
141  
142 Related object: L<RackTables::Schema::Result::CactiGraph>
143  
144 =cut
145  
146 1 __PACKAGE__->has_many(
147 "cacti_graphs",
148 "RackTables::Schema::Result::CactiGraph",
149 { "foreign.object_id" => "self.id" },
150 { cascade_copy => 0, cascade_delete => 0 },
151 );
152  
153 =head2 ipv4_allocations
154  
155 Type: has_many
156  
157 Related object: L<RackTables::Schema::Result::IPv4Allocation>
158  
159 =cut
160  
161 1 __PACKAGE__->has_many(
162 "ipv4_allocations",
163 "RackTables::Schema::Result::IPv4Allocation",
164 { "foreign.object_id" => "self.id" },
165 { cascade_copy => 0, cascade_delete => 0 },
166 );
167  
168 =head2 ipv4_lbs
169  
170 Type: has_many
171  
172 Related object: L<RackTables::Schema::Result::IPv4LB>
173  
174 =cut
175  
176 1 __PACKAGE__->has_many(
177 "ipv4_lbs",
178 "RackTables::Schema::Result::IPv4LB",
179 { "foreign.object_id" => "self.id" },
180 { cascade_copy => 0, cascade_delete => 0 },
181 );
182  
183 =head2 ipv4_nats
184  
185 Type: has_many
186  
187 Related object: L<RackTables::Schema::Result::IPv4NAT>
188  
189 =cut
190  
191 1 __PACKAGE__->has_many(
192 "ipv4_nats",
193 "RackTables::Schema::Result::IPv4NAT",
194 { "foreign.object_id" => "self.id" },
195 { cascade_copy => 0, cascade_delete => 0 },
196 );
197  
198 =head2 ipv6_allocations
199  
200 Type: has_many
201  
202 Related object: L<RackTables::Schema::Result::IPv6Allocation>
203  
204 =cut
205  
206 1 __PACKAGE__->has_many(
207 "ipv6_allocations",
208 "RackTables::Schema::Result::IPv6Allocation",
209 { "foreign.object_id" => "self.id" },
210 { cascade_copy => 0, cascade_delete => 0 },
211 );
212  
213 =head2 mount_operations
214  
215 Type: has_many
216  
217 Related object: L<RackTables::Schema::Result::MountOperation>
218  
219 =cut
220  
221 1 __PACKAGE__->has_many(
222 "mount_operations",
223 "RackTables::Schema::Result::MountOperation",
224 { "foreign.object_id" => "self.id" },
225 { cascade_copy => 0, cascade_delete => 0 },
226 );
227  
228 =head2 object_logs
229  
230 Type: has_many
231  
232 Related object: L<RackTables::Schema::Result::ObjectLog>
233  
234 =cut
235  
236 1 __PACKAGE__->has_many(
237 "object_logs",
238 "RackTables::Schema::Result::ObjectLog",
239 { "foreign.object_id" => "self.id" },
240 { cascade_copy => 0, cascade_delete => 0 },
241 );
242  
243 =head2 ports
244  
245 Type: has_many
246  
247 Related object: L<RackTables::Schema::Result::Port>
248  
249 =cut
250  
251 1 __PACKAGE__->has_many(
252 "ports",
253 "RackTables::Schema::Result::Port",
254 { "foreign.object_id" => "self.id" },
255 { cascade_copy => 0, cascade_delete => 0 },
256 );
257  
258 =head2 rack_object_histories
259  
260 Type: has_many
261  
262 Related object: L<RackTables::Schema::Result::RackObjectHistory>
263  
264 =cut
265  
266 1 __PACKAGE__->has_many(
267 "rack_object_histories",
268 "RackTables::Schema::Result::RackObjectHistory",
269 { "foreign.id" => "self.id" },
270 { cascade_copy => 0, cascade_delete => 0 },
271 );
272  
273 =head2 rack_spaces
274  
275 Type: has_many
276  
277 Related object: L<RackTables::Schema::Result::RackSpace>
278  
279 =cut
280  
281 1 __PACKAGE__->has_many(
282 "rack_spaces",
283 "RackTables::Schema::Result::RackSpace",
284 { "foreign.object_id" => "self.id" },
285 { cascade_copy => 0, cascade_delete => 0 },
286 );
287  
288 =head2 vlanswitch
289  
290 Type: might_have
291  
292 Related object: L<RackTables::Schema::Result::VLANSwitch>
293  
294 =cut
295  
296 1 __PACKAGE__->might_have(
297 "vlanswitch",
298 "RackTables::Schema::Result::VLANSwitch",
299 { "foreign.object_id" => "self.id" },
300 { cascade_copy => 0, cascade_delete => 0 },
301 );
302  
303  
304 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
305 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vkWqX2fqXph1z2wJkuhB4w
306  
307  
308 # You can replace this text with custom code or comments, and it will be preserved on regeneration
309  
310 =head2 dictionary
311  
312 Type: might_have
313  
314 Related object: L<RackTables::Schema::Result::Dictionary>
315  
316 =cut
317  
318 1 __PACKAGE__->might_have(dictionary =>
319 "RackTables::Schema::Result::Dictionary",
320 { "foreign.dict_key" => "self.objtype_id" },
321 { cascade_copy => 0, cascade_delete => 0 },
322 );
323  
324  
325 1 __PACKAGE__->meta->make_immutable;
326  
« blib/lib/RackTables/Schema/Result/RackHistory.pm ↑ Summary blib/lib/RackTables/Schema/Result/RackObjectHistory.pm »