« Edgecast/auto/RealTime/Interface/EdgeCastWebServices/EdgeCastWebServicesSoap.pm
↑ Summary
Edgecast/auto/MediaManager/Interface/EdgeCastWebServices/EdgeCastWebServicesSoap.pm »
| 1 | package WebService::Edgecast::auto::Reporting::Interface::EdgeCastWebServices::EdgeCastWebServicesSoap; | ||
| 2 | BEGIN { | ||
| 3 | $WebService::Edgecast::auto::Reporting::Interface::EdgeCastWebServices::EdgeCastWebServicesSoap::VERSION = '0.01.00'; | ||
| 4 | } | ||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | use Class::Std::Fast::Storable; | ||
| 8 | use Scalar::Util qw(blessed); | ||
| 9 | use base qw(SOAP::WSDL::Client::Base); | ||
| 10 | |||
| 11 | # only load if it hasn't been loaded before | ||
| 12 | require WebService::Edgecast::auto::Reporting::Typemap::EdgeCastWebServices | ||
| 13 | if not WebService::Edgecast::auto::Reporting::Typemap::EdgeCastWebServices->can('get_class'); | ||
| 14 | |||
| 15 | sub START { | ||
| 16 | $_[0]->set_proxy('https://api.edgecast.com/v1/Reporting.asmx') if not $_[2]->{proxy}; | ||
| 17 | $_[0]->set_class_resolver('WebService::Edgecast::auto::Reporting::Typemap::EdgeCastWebServices') | ||
| 18 | if not $_[2]->{class_resolver}; | ||
| 19 | |||
| 20 | $_[0]->set_prefix($_[2]->{use_prefix}) if exists $_[2]->{use_prefix}; | ||
| 21 | } | ||
| 22 | |||
| 23 | sub CustomerBytesTransferredGet { | ||
| 24 | my ($self, $body, $header) = @_; | ||
| 25 | die "CustomerBytesTransferredGet must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 26 | return $self->SUPER::call({ | ||
| 27 | operation => 'CustomerBytesTransferredGet', | ||
| 28 | soap_action => 'EC:WebServices/CustomerBytesTransferredGet', | ||
| 29 | style => 'document', | ||
| 30 | body => { | ||
| 31 | |||
| 32 | |||
| 33 | 'use' => 'literal', | ||
| 34 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 35 | encodingStyle => '', | ||
| 36 | parts => [qw( WebService::Edgecast::auto::Reporting::Element::CustomerBytesTransferredGet )], | ||
| 37 | }, | ||
| 38 | header => { | ||
| 39 | |||
| 40 | }, | ||
| 41 | headerfault => { | ||
| 42 | |||
| 43 | } | ||
| 44 | }, $body, $header); | ||
| 45 | } | ||
| 46 | |||
| 47 | |||
| 48 | sub CustomerBytesTransferredByMediaTypeGet { | ||
| 49 | my ($self, $body, $header) = @_; | ||
| 50 | die "CustomerBytesTransferredByMediaTypeGet must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 51 | return $self->SUPER::call({ | ||
| 52 | operation => 'CustomerBytesTransferredByMediaTypeGet', | ||
| 53 | soap_action => 'EC:WebServices/CustomerBytesTransferredByMediaTypeGet', | ||
| 54 | style => 'document', | ||
| 55 | body => { | ||
| 56 | |||
| 57 | |||
| 58 | 'use' => 'literal', | ||
| 59 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 60 | encodingStyle => '', | ||
| 61 | parts => [qw( WebService::Edgecast::auto::Reporting::Element::CustomerBytesTransferredByMediaTypeGet )], | ||
| 62 | }, | ||
| 63 | header => { | ||
| 64 | |||
| 65 | }, | ||
| 66 | headerfault => { | ||
| 67 | |||
| 68 | } | ||
| 69 | }, $body, $header); | ||
| 70 | } | ||
| 71 | |||
| 72 | |||
| 73 | sub FileStatsGet { | ||
| 74 | my ($self, $body, $header) = @_; | ||
| 75 | die "FileStatsGet must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 76 | return $self->SUPER::call({ | ||
| 77 | operation => 'FileStatsGet', | ||
| 78 | soap_action => 'EC:WebServices/FileStatsGet', | ||
| 79 | style => 'document', | ||
| 80 | body => { | ||
| 81 | |||
| 82 | |||
| 83 | 'use' => 'literal', | ||
| 84 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 85 | encodingStyle => '', | ||
| 86 | parts => [qw( WebService::Edgecast::auto::Reporting::Element::FileStatsGet )], | ||
| 87 | }, | ||
| 88 | header => { | ||
| 89 | |||
| 90 | }, | ||
| 91 | headerfault => { | ||
| 92 | |||
| 93 | } | ||
| 94 | }, $body, $header); | ||
| 95 | } | ||
| 96 | |||
| 97 | |||
| 98 | sub DirStatsGet { | ||
| 99 | my ($self, $body, $header) = @_; | ||
| 100 | die "DirStatsGet must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 101 | return $self->SUPER::call({ | ||
| 102 | operation => 'DirStatsGet', | ||
| 103 | soap_action => 'EC:WebServices/DirStatsGet', | ||
| 104 | style => 'document', | ||
| 105 | body => { | ||
| 106 | |||
| 107 | |||
| 108 | 'use' => 'literal', | ||
| 109 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 110 | encodingStyle => '', | ||
| 111 | parts => [qw( WebService::Edgecast::auto::Reporting::Element::DirStatsGet )], | ||
| 112 | }, | ||
| 113 | header => { | ||
| 114 | |||
| 115 | }, | ||
| 116 | headerfault => { | ||
| 117 | |||
| 118 | } | ||
| 119 | }, $body, $header); | ||
| 120 | } | ||
| 121 | |||
| 122 | |||
| 123 | sub CompleteDownloadsGet { | ||
| 124 | my ($self, $body, $header) = @_; | ||
| 125 | die "CompleteDownloadsGet must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 126 | return $self->SUPER::call({ | ||
| 127 | operation => 'CompleteDownloadsGet', | ||
| 128 | soap_action => 'EC:WebServices/CompleteDownloadsGet', | ||
| 129 | style => 'document', | ||
| 130 | body => { | ||
| 131 | |||
| 132 | |||
| 133 | 'use' => 'literal', | ||
| 134 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 135 | encodingStyle => '', | ||
| 136 | parts => [qw( WebService::Edgecast::auto::Reporting::Element::CompleteDownloadsGet )], | ||
| 137 | }, | ||
| 138 | header => { | ||
| 139 | |||
| 140 | }, | ||
| 141 | headerfault => { | ||
| 142 | |||
| 143 | } | ||
| 144 | }, $body, $header); | ||
| 145 | } | ||
| 146 | |||
| 147 | |||
| 148 | sub CnameStatsGet { | ||
| 149 | my ($self, $body, $header) = @_; | ||
| 150 | die "CnameStatsGet must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 151 | return $self->SUPER::call({ | ||
| 152 | operation => 'CnameStatsGet', | ||
| 153 | soap_action => 'EC:WebServices/CnameStatsGet', | ||
| 154 | style => 'document', | ||
| 155 | body => { | ||
| 156 | |||
| 157 | |||
| 158 | 'use' => 'literal', | ||
| 159 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 160 | encodingStyle => '', | ||
| 161 | parts => [qw( WebService::Edgecast::auto::Reporting::Element::CnameStatsGet )], | ||
| 162 | }, | ||
| 163 | header => { | ||
| 164 | |||
| 165 | }, | ||
| 166 | headerfault => { | ||
| 167 | |||
| 168 | } | ||
| 169 | }, $body, $header); | ||
| 170 | } | ||
| 171 | |||
| 172 | |||
| 173 | sub CacheStatusStatsGet { | ||
| 174 | my ($self, $body, $header) = @_; | ||
| 175 | die "CacheStatusStatsGet must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 176 | return $self->SUPER::call({ | ||
| 177 | operation => 'CacheStatusStatsGet', | ||
| 178 | soap_action => 'EC:WebServices/CacheStatusStatsGet', | ||
| 179 | style => 'document', | ||
| 180 | body => { | ||
| 181 | |||
| 182 | |||
| 183 | 'use' => 'literal', | ||
| 184 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 185 | encodingStyle => '', | ||
| 186 | parts => [qw( WebService::Edgecast::auto::Reporting::Element::CacheStatusStatsGet )], | ||
| 187 | }, | ||
| 188 | header => { | ||
| 189 | |||
| 190 | }, | ||
| 191 | headerfault => { | ||
| 192 | |||
| 193 | } | ||
| 194 | }, $body, $header); | ||
| 195 | } | ||
| 196 | |||
| 197 | |||
| 198 | sub TrafficUsageGet { | ||
| 199 | my ($self, $body, $header) = @_; | ||
| 200 | die "TrafficUsageGet must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 201 | return $self->SUPER::call({ | ||
| 202 | operation => 'TrafficUsageGet', | ||
| 203 | soap_action => 'EC:WebServices/TrafficUsageGet', | ||
| 204 | style => 'document', | ||
| 205 | body => { | ||
| 206 | |||
| 207 | |||
| 208 | 'use' => 'literal', | ||
| 209 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 210 | encodingStyle => '', | ||
| 211 | parts => [qw( WebService::Edgecast::auto::Reporting::Element::TrafficUsageGet )], | ||
| 212 | }, | ||
| 213 | header => { | ||
| 214 | |||
| 215 | }, | ||
| 216 | headerfault => { | ||
| 217 | |||
| 218 | } | ||
| 219 | }, $body, $header); | ||
| 220 | } | ||
| 221 | |||
| 222 | |||
| 223 | sub StorageUsageGetMax { | ||
| 224 | my ($self, $body, $header) = @_; | ||
| 225 | die "StorageUsageGetMax must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 226 | return $self->SUPER::call({ | ||
| 227 | operation => 'StorageUsageGetMax', | ||
| 228 | soap_action => 'EC:WebServices/StorageUsageGetMax', | ||
| 229 | style => 'document', | ||
| 230 | body => { | ||
| 231 | |||
| 232 | |||
| 233 | 'use' => 'literal', | ||
| 234 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 235 | encodingStyle => '', | ||
| 236 | parts => [qw( WebService::Edgecast::auto::Reporting::Element::StorageUsageGetMax )], | ||
| 237 | }, | ||
| 238 | header => { | ||
| 239 | |||
| 240 | }, | ||
| 241 | headerfault => { | ||
| 242 | |||
| 243 | } | ||
| 244 | }, $body, $header); | ||
| 245 | } | ||
| 246 | |||
| 247 | |||
| 248 | sub StorageUsageGetLatest { | ||
| 249 | my ($self, $body, $header) = @_; | ||
| 250 | die "StorageUsageGetLatest must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 251 | return $self->SUPER::call({ | ||
| 252 | operation => 'StorageUsageGetLatest', | ||
| 253 | soap_action => 'EC:WebServices/StorageUsageGetLatest', | ||
| 254 | style => 'document', | ||
| 255 | body => { | ||
| 256 | |||
| 257 | |||
| 258 | 'use' => 'literal', | ||
| 259 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 260 | encodingStyle => '', | ||
| 261 | parts => [qw( WebService::Edgecast::auto::Reporting::Element::StorageUsageGetLatest )], | ||
| 262 | }, | ||
| 263 | header => { | ||
| 264 | |||
| 265 | }, | ||
| 266 | headerfault => { | ||
| 267 | |||
| 268 | } | ||
| 269 | }, $body, $header); | ||
| 270 | } | ||
| 271 | |||
| 272 | |||
| 273 | |||
| 274 | |||
| 275 | 1; | ||
| 276 | |||
| 277 | |||
| 278 | |||
| 279 | __END__ |