forked from virtuozzo/OnApp-PHP-Wrapper-External
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LoadBalancer.php
54 lines (51 loc) · 1.27 KB
/
LoadBalancer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* Managing Load Balancers
*
*
* @category API wrapper
* @package OnApp
* @author Yakubskiy Yuriy
* @copyright © 2011 OnApp
* @link http://www.onapp.com/
* @see OnApp
*/
/**
* Load Balancers
*
* The Load Balancer class represents the Load Balancers of the OnAPP installation.
*
* The OnApp_LoadBalancer class uses the following basic methods:
* {@link getList} and {@link load}.
*
* For full fields reference and curl request details visit: ( http://help.onapp.com/manual.php?m=2 )
*/
class OnApp_LoadBalancer extends OnApp_VirtualMachine {
/**
* root tag used in the API request
*
* @var string
*/
var $_tagRoot = 'load_balancer';
/**
* alias processing the object data
*
* @var string
*/
var $_resource = 'load_balancers';
/**
* Activates action performed with object
*
* @param string $action_name the name of action
*
* @access public
*/
function activate( $action_name ) {
switch( $action_name ) {
case ONAPP_ACTIVATE_SAVE:
exit( 'Call to undefined method ' . __CLASS__ . '::' . $action_name . '()' );
break;
}
}
}