1: <?php
2:
3: /**
4: * This class models a Haip
5: *
6: * @package Transip
7: * @class Haip
8: * @author TransIP (support@transip.nl)
9: */
10: class Transip_Haip
11: {
12: /**
13: * HA-IP name.
14: *
15: * @var string
16: */
17: public $name = '';
18:
19: /**
20: * HA-IP status.
21: *
22: * @var string
23: */
24: public $status = '';
25:
26: /**
27: * If the HA-IP is blocked.
28: *
29: * @var boolean
30: */
31: public $isBlocked = false;
32:
33: /**
34: * If load balancing is enabled for the HA-IP.
35: *
36: * This is a HA-IP Pro feature.
37: *
38: * @var boolean
39: */
40: public $isLoadBalancingEnabled = false;
41:
42: /**
43: * Load balancing mode that is configured for the HA-IP.
44: *
45: * This is a HA-IP Pro feature.
46: *
47: * @var string
48: */
49: public $loadBalancingMode = '';
50:
51: /**
52: * The cookie name that is used when the load balancing mode is set to 'cookie' HA-IP.
53: *
54: * This is a HA-IP Pro feature.
55: *
56: * @var string
57: */
58: public $stickyCookieName = '';
59:
60: /**
61: * The health check mode configured for the HA-IP.
62: *
63: * This is a HA-IP Pro feature.
64: *
65: * @var string
66: */
67: public $healthCheckMode = '';
68:
69: /**
70: * The HTTP path that will accessed for health checks when the health check mode is 'http'.
71: *
72: * This is a HA-IP Pro feature.
73: *
74: * @var string
75: */
76: public $httpHealthCheckPath = '';
77:
78: /**
79: * The port that will accessed for health checks when the health check mode is 'http'.
80: *
81: * This is a HA-IP Pro feature.
82: *
83: * @var string
84: */
85: public $httpHealthCheckPort = '';
86:
87: /**
88: * HA-IP IPv4 address.
89: *
90: * @var string
91: */
92: public $ipv4Address = '';
93:
94: /**
95: * HA-IP IPv6 address.
96: *
97: * @var string
98: */
99: public $ipv6Address = '';
100:
101: /**
102: * HA-IP IP setup.
103: *
104: * @var string
105: */
106: public $ipSetup = '';
107:
108: /**
109: * An array of Vpss attached to the HA-IP.
110: *
111: * @var Transip_Vps[]
112: */
113: public $attachedVpses = array();
114:
115: /**
116: * Name of Vps attached to the HA-IP.
117: *
118: * @deprecated Only shows data for one of the attached Vpss; use $attachedVpses instead.
119: * @var string
120: */
121: public $vpsName = '';
122:
123: /**
124: * IPv4 address of Vps attached to the HA-IP.
125: *
126: * @deprecated Only shows data for one of the attached Vpss; use $attachedVpses instead.
127: * @var string
128: */
129: public $vpsIpv4Address = '';
130:
131: /**
132: * IPv6 address of Vps attached to the HA-IP.
133: *
134: * @deprecated Only shows data for one of the attached Vpss; use $attachedVpses instead.
135: * @var string
136: */
137: public $vpsIpv6Address = '';
138: }
139:
140: ?>
141: