| 1 | package CDP::volume; | ||
| 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 | addUser | ||
| 22 | addVolume | ||
| 23 | deleteVolume | ||
| 24 | getAllowedScheduleFrequencies | ||
| 25 | getVolume | ||
| 26 | getVolumeByName | ||
| 27 | getVolumeIds | ||
| 28 | removeUser | ||
| 29 | setAllowedScheduleFrequencies | ||
| 30 | setControlPanelModuleEnabled | ||
| 31 | setMaxCdpForMySqlAddons | ||
| 32 | setMaxLinuxHosts | ||
| 33 | setMaxWindowsHosts | ||
| 34 | setQuota | ||
| 35 | setStoragePool | ||
| 36 | setVolumeName | ||
| 37 | /; | ||
| 38 | |||
| 39 | %EXPORT_TAGS = ( | ||
| 40 | 'ALL' => \@EXPORT_OK, | ||
| 41 | 'CONST' => [qw//], | ||
| 42 | ); | ||
| 43 | |||
| 44 | Exporter::export_ok_tags(keys %EXPORT_TAGS); | ||
| 45 | |||
| 46 | |||
| 47 | sub addUser { | ||
| 48 | my $client = shift; | ||
| 49 | $client->call('volume.addUser',@_); | ||
| 50 | } | ||
| 51 | |||
| 52 | sub addVolume { | ||
| 53 | my $client = shift; | ||
| 54 | $client->call('volume.addVolume',@_); | ||
| 55 | } | ||
| 56 | |||
| 57 | sub deleteVolume { | ||
| 58 | my $client = shift; | ||
| 59 | $client->call('volume.deleteVolume',@_); | ||
| 60 | } | ||
| 61 | |||
| 62 | sub getAllowedScheduleFrequencies { | ||
| 63 | my $client = shift; | ||
| 64 | $client->call('volume.getAllowedScheduleFrequencies',@_); | ||
| 65 | } | ||
| 66 | |||
| 67 | sub getVolume { | ||
| 68 | my $client = shift; | ||
| 69 | $client->call('volume.getVolume',@_); | ||
| 70 | } | ||
| 71 | |||
| 72 | sub getVolumeByName { | ||
| 73 | my $client = shift; | ||
| 74 | $client->call('volume.getVolumeByName',@_); | ||
| 75 | } | ||
| 76 | |||
| 77 | sub getVolumeIds { | ||
| 78 | my $client = shift; | ||
| 79 | $client->call('volume.getVolumeIds',@_); | ||
| 80 | } | ||
| 81 | |||
| 82 | sub removeUser { | ||
| 83 | my $client = shift; | ||
| 84 | $client->call('volume.removeUser',@_); | ||
| 85 | } | ||
| 86 | |||
| 87 | sub setAllowedScheduleFrequencies { | ||
| 88 | my $client = shift; | ||
| 89 | $client->call('volume.setAllowedScheduleFrequencies',@_); | ||
| 90 | } | ||
| 91 | |||
| 92 | sub setControlPanelModuleEnabled { | ||
| 93 | my $client = shift; | ||
| 94 | $client->call('volume.setControlPanelModuleEnabled',@_); | ||
| 95 | } | ||
| 96 | |||
| 97 | sub setMaxCdpForMySqlAddons { | ||
| 98 | my $client = shift; | ||
| 99 | $client->call('volume.setMaxCdpForMySqlAddons',@_); | ||
| 100 | } | ||
| 101 | |||
| 102 | sub setMaxLinuxHosts { | ||
| 103 | my $client = shift; | ||
| 104 | $client->call('volume.setMaxLinuxHosts',@_); | ||
| 105 | } | ||
| 106 | |||
| 107 | sub setMaxWindowsHosts { | ||
| 108 | my $client = shift; | ||
| 109 | $client->call('volume.setMaxWindowsHosts',@_); | ||
| 110 | } | ||
| 111 | |||
| 112 | sub setQuota { | ||
| 113 | my $client = shift; | ||
| 114 | $client->call('volume.setQuota',@_); | ||
| 115 | } | ||
| 116 | |||
| 117 | sub setStoragePool { | ||
| 118 | my $client = shift; | ||
| 119 | $client->call('volume.setStoragePool',@_); | ||
| 120 | } | ||
| 121 | |||
| 122 | sub setVolumeName { | ||
| 123 | my $client = shift; | ||
| 124 | $client->call('volume.setVolumeName',@_); | ||
| 125 | } | ||
| 126 | |||
| 127 | |||
| 128 | 1; | ||
| 129 | __END__ |