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: * The connection logging feature allows logs to be delivered to a Cloud Files
16: * account every hour. For HTTP-based protocol traffic, these are Apache-style
17: * access logs. For all other traffic, this is connection and transfer logging.
18: */
19: class ConnectionLogging extends SubResource
20: {
21:
22: public $enabled;
23:
24: protected static $json_name = "connectionLogging";
25: protected static $url_resource = "connectionlogging";
26:
27: protected $createKeys = array('enabled');
28:
29: public function create($params = array())
30: {
31: return $this->update($params);
32: }
33:
34: public function delete()
35: {
36: return $this->noDelete();
37: }
38:
39: }
40: