Edgecast/auto/RealTime/Interface/EdgeCastWebServices/EdgeCastWebServicesSoap.pm untested

filter: Statementstmt 0.0% 0 / 53 Branchbran 0.0% 0 / 18 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 13 Podpod 0.0% 0 / 7 totaltotal 0.0% 0 / 91 CC 9 SCAR 19.9
CC
9
Cov
0%
START
20.0
BandwidthGet
6.0
ConnectionsGet
6.0
CRAP 7.3
1 package WebService::Edgecast::auto::RealTime::Interface::EdgeCastWebServices::EdgeCastWebServicesSoap;
2 BEGIN {
3 $WebService::Edgecast::auto::RealTime::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::RealTime::Typemap::EdgeCastWebServices
13 if not WebService::Edgecast::auto::RealTime::Typemap::EdgeCastWebServices->can('get_class');
14  
15 sub START {
16 $_[0]->set_proxy('https://api.edgecast.com/v1/RealTime.asmx') if not $_[2]->{proxy};
17 $_[0]->set_class_resolver('WebService::Edgecast::auto::RealTime::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 BandwidthGet {
24 my ($self, $body, $header) = @_;
25 die "BandwidthGet must be called as object method (\$self is <$self>)" if not blessed($self);
26 return $self->SUPER::call({
27 operation => 'BandwidthGet',
28 soap_action => 'EC:WebServices/BandwidthGet',
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::RealTime::Element::BandwidthGet )],
37 },
38 header => {
39
40 },
41 headerfault => {
42
43 }
44 }, $body, $header);
45 }
46  
47  
48 sub ConnectionsGet {
49 my ($self, $body, $header) = @_;
50 die "ConnectionsGet must be called as object method (\$self is <$self>)" if not blessed($self);
51 return $self->SUPER::call({
52 operation => 'ConnectionsGet',
53 soap_action => 'EC:WebServices/ConnectionsGet',
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::RealTime::Element::ConnectionsGet )],
62 },
63 header => {
64
65 },
66 headerfault => {
67
68 }
69 }, $body, $header);
70 }
71  
72  
73 sub StreamsGet {
74 my ($self, $body, $header) = @_;
75 die "StreamsGet must be called as object method (\$self is <$self>)" if not blessed($self);
76 return $self->SUPER::call({
77 operation => 'StreamsGet',
78 soap_action => 'EC:WebServices/StreamsGet',
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::RealTime::Element::StreamsGet )],
87 },
88 header => {
89
90 },
91 headerfault => {
92
93 }
94 }, $body, $header);
95 }
96  
97  
98 sub CacheStatusesGet {
99 my ($self, $body, $header) = @_;
100 die "CacheStatusesGet must be called as object method (\$self is <$self>)" if not blessed($self);
101 return $self->SUPER::call({
102 operation => 'CacheStatusesGet',
103 soap_action => 'EC:WebServices/CacheStatusesGet',
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::RealTime::Element::CacheStatusesGet )],
112 },
113 header => {
114
115 },
116 headerfault => {
117
118 }
119 }, $body, $header);
120 }
121  
122  
123 sub StatusCodesGet {
124 my ($self, $body, $header) = @_;
125 die "StatusCodesGet must be called as object method (\$self is <$self>)" if not blessed($self);
126 return $self->SUPER::call({
127 operation => 'StatusCodesGet',
128 soap_action => 'EC:WebServices/StatusCodesGet',
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::RealTime::Element::StatusCodesGet )],
137 },
138 header => {
139
140 },
141 headerfault => {
142
143 }
144 }, $body, $header);
145 }
146  
147  
148  
149  
150 1;
151  
152  
153  
154 __END__