1: <?php
2: /**
3: * PHP OpenCloud library.
4: *
5: * @copyright Copyright 2013 Rackspace US, Inc. See COPYING for licensing information.
6: * @license https://www.apache.org/licenses/LICENSE-2.0 Apache 2.0
7: * @version 1.6.0
8: * @author Glen Campbell <glen.campbell@rackspace.com>
9: * @author Jamie Hannaford <jamie.hannaford@rackspace.com>
10: */
11:
12: namespace OpenCloud\LoadBalancer\Resources;
13:
14: /**
15: * All load balancers must define the protocol of the service which is being
16: * load balanced. The protocol selection should be based on the protocol of the
17: * back-end nodes. When configuring a load balancer, the default port for the
18: * given protocol will be selected unless otherwise specified.
19: *
20: * @link http://docs.rackspace.com/loadbalancers/api/v1.0/clb-devguide/content/List_Load_Balancing_Protocols-d1e4269.html
21: */
22: class Protocol extends ReadOnly
23: {
24:
25: public $name;
26: public $port;
27: protected static $json_name = 'protocol';
28: protected static $url_resource = 'loadbalancers/protocols';
29:
30: }
31: