| 1 | package CDP::host; | ||
| 2 | |||
| 3 | use Frontier::Client; | ||
| 4 | |||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | |||
| 8 | our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS, ); | ||
| 9 | require Exporter; | ||
| 10 | require DynaLoader; | ||
| 11 | require AutoLoader; | ||
| 12 | |||
| 13 | @ISA = qw(Exporter DynaLoader AutoLoader); | ||
| 14 | # Items to export into callers namespace by default. Note: do not export | ||
| 15 | # names by default without a very good reason. Use EXPORT_OK instead. | ||
| 16 | # Do not simply export all your public functions/methods/constants. | ||
| 17 | @EXPORT =qw//; | ||
| 18 | |||
| 19 | @EXPORT_OK = | ||
| 20 | qw/ | ||
| 21 | addAdmin | ||
| 22 | addBackupUser | ||
| 23 | addFullControlUser | ||
| 24 | addHost | ||
| 25 | addHostWithDescription | ||
| 26 | addLinuxControlPanelHost | ||
| 27 | addLinuxHost | ||
| 28 | addLinuxHostWithDescription | ||
| 29 | addRestoreUser | ||
| 30 | addUnknownHost | ||
| 31 | addUnknownHostWithDescription | ||
| 32 | addUser | ||
| 33 | addWindowsHost | ||
| 34 | addWindowsHostWithDescription | ||
| 35 | deleteHost | ||
| 36 | getDescription | ||
| 37 | getHost | ||
| 38 | getHostAsMap | ||
| 39 | getHostByDescription | ||
| 40 | getHostByHostname | ||
| 41 | getHostIds | ||
| 42 | getHostIdsByVolume | ||
| 43 | getHostname | ||
| 44 | getHostType | ||
| 45 | getLastFinishedBackupTaskInfo | ||
| 46 | getQuota | ||
| 47 | getRemotePort | ||
| 48 | getTimeout | ||
| 49 | isCdpForMySqlAddonEnabled | ||
| 50 | isControlPanelModuleEnabled | ||
| 51 | isEnabled | ||
| 52 | isHostDiscoveryFinished | ||
| 53 | removeUser | ||
| 54 | runHostDiscovery | ||
| 55 | setDescription | ||
| 56 | setEnabled | ||
| 57 | setHostname | ||
| 58 | setHostType | ||
| 59 | setLinuxHostType | ||
| 60 | setQuota | ||
| 61 | setRemotePort | ||
| 62 | setsCdpForMySqlAddonEnabled | ||
| 63 | setsControlPanelModuleEnabled | ||
| 64 | setTimeout | ||
| 65 | setWindowsHostType | ||
| 66 | /; | ||
| 67 | |||
| 68 | %EXPORT_TAGS = ( | ||
| 69 | 'ALL' => \@EXPORT_OK, | ||
| 70 | 'CONST' => [qw//], | ||
| 71 | ); | ||
| 72 | |||
| 73 | Exporter::export_ok_tags(keys %EXPORT_TAGS); | ||
| 74 | |||
| 75 | |||
| 76 | sub addAdmin { | ||
| 77 | my $client = shift; | ||
| 78 | $client->call('host.addAdmin',@_); | ||
| 79 | } | ||
| 80 | |||
| 81 | sub addBackupUser { | ||
| 82 | my $client = shift; | ||
| 83 | $client->call('host.addBackupUser',@_); | ||
| 84 | } | ||
| 85 | |||
| 86 | sub addFullControlUser { | ||
| 87 | my $client = shift; | ||
| 88 | $client->call('host.addFullControlUser',@_); | ||
| 89 | } | ||
| 90 | |||
| 91 | sub addHost { | ||
| 92 | my $client = shift; | ||
| 93 | $client->call('host.addHost',@_); | ||
| 94 | } | ||
| 95 | |||
| 96 | sub addHostWithDescription { | ||
| 97 | my $client = shift; | ||
| 98 | $client->call('host.addHostWithDescription',@_); | ||
| 99 | } | ||
| 100 | |||
| 101 | sub addLinuxControlPanelHost { | ||
| 102 | my $client = shift; | ||
| 103 | $client->call('host.addLinuxControlPanelHost',@_); | ||
| 104 | } | ||
| 105 | |||
| 106 | sub addLinuxHost { | ||
| 107 | my $client = shift; | ||
| 108 | $client->call('host.addLinuxHost',@_); | ||
| 109 | } | ||
| 110 | |||
| 111 | sub addLinuxHostWithDescription { | ||
| 112 | my $client = shift; | ||
| 113 | $client->call('host.addLinuxHostWithDescription',@_); | ||
| 114 | } | ||
| 115 | |||
| 116 | sub addRestoreUser { | ||
| 117 | my $client = shift; | ||
| 118 | $client->call('host.addRestoreUser',@_); | ||
| 119 | } | ||
| 120 | |||
| 121 | sub addUnknownHost { | ||
| 122 | my $client = shift; | ||
| 123 | $client->call('host.addUnknownHost',@_); | ||
| 124 | } | ||
| 125 | |||
| 126 | sub addUnknownHostWithDescription { | ||
| 127 | my $client = shift; | ||
| 128 | $client->call('host.addUnknownHostWithDescription',@_); | ||
| 129 | } | ||
| 130 | |||
| 131 | sub addUser { | ||
| 132 | my $client = shift; | ||
| 133 | $client->call('host.addUser',@_); | ||
| 134 | } | ||
| 135 | |||
| 136 | sub addWindowsHost { | ||
| 137 | my $client = shift; | ||
| 138 | $client->call('host.addWindowsHost',@_); | ||
| 139 | } | ||
| 140 | |||
| 141 | sub addWindowsHostWithDescription { | ||
| 142 | my $client = shift; | ||
| 143 | $client->call('host.addWindowsHostWithDescription',@_); | ||
| 144 | } | ||
| 145 | |||
| 146 | sub deleteHost { | ||
| 147 | my $client = shift; | ||
| 148 | $client->call('host.deleteHost',@_); | ||
| 149 | } | ||
| 150 | |||
| 151 | sub getDescription { | ||
| 152 | my $client = shift; | ||
| 153 | $client->call('host.getDescription',@_); | ||
| 154 | } | ||
| 155 | |||
| 156 | sub getHost { | ||
| 157 | my $client = shift; | ||
| 158 | $client->call('host.getHost',@_); | ||
| 159 | } | ||
| 160 | |||
| 161 | sub getHostAsMap { | ||
| 162 | my $client = shift; | ||
| 163 | $client->call('host.getHostAsMap',@_); | ||
| 164 | } | ||
| 165 | |||
| 166 | sub getHostByDescription { | ||
| 167 | my $client = shift; | ||
| 168 | $client->call('host.getHostByDescription',@_); | ||
| 169 | } | ||
| 170 | |||
| 171 | sub getHostByHostname { | ||
| 172 | my $client = shift; | ||
| 173 | $client->call('host.getHostByHostname',@_); | ||
| 174 | } | ||
| 175 | |||
| 176 | sub getHostIds { | ||
| 177 | my $client = shift; | ||
| 178 | $client->call('host.getHostIds',@_); | ||
| 179 | } | ||
| 180 | |||
| 181 | sub getHostIdsByVolume { | ||
| 182 | my $client = shift; | ||
| 183 | $client->call('host.getHostIdsByVolume',@_); | ||
| 184 | } | ||
| 185 | |||
| 186 | sub getHostname { | ||
| 187 | my $client = shift; | ||
| 188 | $client->call('host.getHostname',@_); | ||
| 189 | } | ||
| 190 | |||
| 191 | sub getHostType { | ||
| 192 | my $client = shift; | ||
| 193 | $client->call('host.getHostType',@_); | ||
| 194 | } | ||
| 195 | |||
| 196 | sub getLastFinishedBackupTaskInfo { | ||
| 197 | my $client = shift; | ||
| 198 | $client->call('host.getLastFinishedBackupTaskInfo',@_); | ||
| 199 | } | ||
| 200 | |||
| 201 | sub getQuota { | ||
| 202 | my $client = shift; | ||
| 203 | $client->call('host.getQuota',@_); | ||
| 204 | } | ||
| 205 | |||
| 206 | sub getRemotePort { | ||
| 207 | my $client = shift; | ||
| 208 | $client->call('host.getRemotePort',@_); | ||
| 209 | } | ||
| 210 | |||
| 211 | sub getTimeout { | ||
| 212 | my $client = shift; | ||
| 213 | $client->call('host.getTimeout',@_); | ||
| 214 | } | ||
| 215 | |||
| 216 | sub isCdpForMySqlAddonEnabled { | ||
| 217 | my $client = shift; | ||
| 218 | $client->call('host.isCdpForMySqlAddonEnabled',@_); | ||
| 219 | } | ||
| 220 | |||
| 221 | sub isControlPanelModuleEnabled { | ||
| 222 | my $client = shift; | ||
| 223 | $client->call('host.isControlPanelModuleEnabled',@_); | ||
| 224 | } | ||
| 225 | |||
| 226 | sub isEnabled { | ||
| 227 | my $client = shift; | ||
| 228 | $client->call('host.isEnabled',@_); | ||
| 229 | } | ||
| 230 | |||
| 231 | sub isHostDiscoveryFinished { | ||
| 232 | my $client = shift; | ||
| 233 | $client->call('host.isHostDiscoveryFinished',@_); | ||
| 234 | } | ||
| 235 | |||
| 236 | sub removeUser { | ||
| 237 | my $client = shift; | ||
| 238 | $client->call('host.removeUser',@_); | ||
| 239 | } | ||
| 240 | |||
| 241 | sub runHostDiscovery { | ||
| 242 | my $client = shift; | ||
| 243 | $client->call('host.runHostDiscovery',@_); | ||
| 244 | } | ||
| 245 | |||
| 246 | sub setDescription { | ||
| 247 | my $client = shift; | ||
| 248 | $client->call('host.setDescription',@_); | ||
| 249 | } | ||
| 250 | |||
| 251 | sub setEnabled { | ||
| 252 | my $client = shift; | ||
| 253 | $client->call('host.setEnabled',@_); | ||
| 254 | } | ||
| 255 | |||
| 256 | sub setHostname { | ||
| 257 | my $client = shift; | ||
| 258 | $client->call('host.setHostname',@_); | ||
| 259 | } | ||
| 260 | |||
| 261 | sub setHostType { | ||
| 262 | my $client = shift; | ||
| 263 | $client->call('host.setHostType',@_); | ||
| 264 | } | ||
| 265 | |||
| 266 | sub setLinuxHostType { | ||
| 267 | my $client = shift; | ||
| 268 | $client->call('host.setLinuxHostType',@_); | ||
| 269 | } | ||
| 270 | |||
| 271 | sub setQuota { | ||
| 272 | my $client = shift; | ||
| 273 | $client->call('host.setQuota',@_); | ||
| 274 | } | ||
| 275 | |||
| 276 | sub setRemotePort { | ||
| 277 | my $client = shift; | ||
| 278 | $client->call('host.setRemotePort',@_); | ||
| 279 | } | ||
| 280 | |||
| 281 | sub setsCdpForMySqlAddonEnabled { | ||
| 282 | my $client = shift; | ||
| 283 | $client->call('host.setsCdpForMySqlAddonEnabled',@_); | ||
| 284 | } | ||
| 285 | |||
| 286 | sub setsControlPanelModuleEnabled { | ||
| 287 | my $client = shift; | ||
| 288 | $client->call('host.setsControlPanelModuleEnabled',@_); | ||
| 289 | } | ||
| 290 | |||
| 291 | sub setTimeout { | ||
| 292 | my $client = shift; | ||
| 293 | $client->call('host.setTimeout',@_); | ||
| 294 | } | ||
| 295 | |||
| 296 | sub setWindowsHostType { | ||
| 297 | my $client = shift; | ||
| 298 | $client->call('host.setWindowsHostType',@_); | ||
| 299 | } | ||
| 300 | |||
| 301 | |||
| 302 | 1; | ||
| 303 | __END__ |