RackTables/0_20_11/Result/VSPorts.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« RackTables/0_20_11/Result/VSIPs.pm ↑ Summary RackTables/0_20_9.pm »
1 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Schema::RackTables::0_20_11::Result::VSPorts;
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_11::Result::VSPorts
10  
11 =cut
12  
13 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 2 ▶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 2 __PACKAGE__->load_components("InflateColumn::DateTime");
29  
30 =head1 TABLE: C<VSPorts>
31  
32 =cut
33  
34 2 __PACKAGE__->table("VSPorts");
35  
36 =head1 ACCESSORS
37  
38 =head2 vs_id
39  
40 data_type: 'integer'
41 extra: {unsigned => 1}
42 is_foreign_key: 1
43 is_nullable: 0
44  
45 =head2 proto
46  
47 data_type: 'enum'
48 extra: {list => ["TCP","UDP","MARK"]}
49 is_nullable: 0
50  
51 =head2 vport
52  
53 data_type: 'integer'
54 extra: {unsigned => 1}
55 is_nullable: 0
56  
57 =head2 vsconfig
58  
59 data_type: 'text'
60 is_nullable: 1
61  
62 =head2 rsconfig
63  
64 data_type: 'text'
65 is_nullable: 1
66  
67 =cut
68  
69 2 __PACKAGE__->add_columns(
70 "vs_id",
71 {
72 data_type => "integer",
73 extra => { unsigned => 1 },
74 is_foreign_key => 1,
75 is_nullable => 0,
76 },
77 "proto",
78 {
79 data_type => "enum",
80 extra => { list => ["TCP", "UDP", "MARK"] },
81 is_nullable => 0,
82 },
83 "vport",
84 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
85 "vsconfig",
86 { data_type => "text", is_nullable => 1 },
87 "rsconfig",
88 { data_type => "text", is_nullable => 1 },
89 );
90  
91 =head1 PRIMARY KEY
92  
93 =over 4
94  
95 =item * L</vs_id>
96  
97 =item * L</proto>
98  
99 =item * L</vport>
100  
101 =back
102  
103 =cut
104  
105 2 __PACKAGE__->set_primary_key("vs_id", "proto", "vport");
106  
107 =head1 RELATIONS
108  
109 =head2 v
110  
111 Type: belongs_to
112  
113 Related object: L<Schema::RackTables::0_20_11::Result::VS>
114  
115 =cut
116  
117 2 __PACKAGE__->belongs_to(
118 "v",
119 "Schema::RackTables::0_20_11::Result::VS",
120 { id => "vs_id" },
121 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
122 );
123  
124 =head2 vsenabled_ports
125  
126 Type: has_many
127  
128 Related object: L<Schema::RackTables::0_20_11::Result::VSEnabledPorts>
129  
130 =cut
131  
132 2 __PACKAGE__->has_many(
133 "vsenabled_ports",
134 "Schema::RackTables::0_20_11::Result::VSEnabledPorts",
135 {
136 "foreign.proto" => "self.proto",
137 "foreign.vport" => "self.vport",
138 "foreign.vs_id" => "self.vs_id",
139 },
140 { cascade_copy => 0, cascade_delete => 0 },
141 );
142  
143  
144 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2016-05-12 22:07:10
145 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:97gvT7BGwe212WbloaPT3A
146  
147  
148 # You can replace this text with custom code or comments, and it will be preserved on regeneration
149 2 1;
« RackTables/0_20_11/Result/VSIPs.pm ↑ Summary RackTables/0_20_9.pm »