1<?xml version="1.0" encoding="ascii"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 3 "DTD/xhtml1-transitional.dtd"> 4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 5<head> 6 <title>googleapiclient.http.MediaDownloadProgress</title> 7 <link rel="stylesheet" href="epydoc.css" type="text/css" /> 8 <script type="text/javascript" src="epydoc.js"></script> 9</head> 10 11<body bgcolor="white" text="black" link="blue" vlink="#204080" 12 alink="#204080"> 13<!-- ==================== NAVIGATION BAR ==================== --> 14<table class="navbar" border="0" width="100%" cellpadding="0" 15 bgcolor="#a0c0ff" cellspacing="0"> 16 <tr valign="middle"> 17 <!-- Home link --> 18 <th> <a 19 href="googleapiclient-module.html">Home</a> </th> 20 21 <!-- Tree link --> 22 <th> <a 23 href="module-tree.html">Trees</a> </th> 24 25 <!-- Index link --> 26 <th> <a 27 href="identifier-index.html">Indices</a> </th> 28 29 <!-- Help link --> 30 <th> <a 31 href="help.html">Help</a> </th> 32 33 <th class="navbar" width="100%"></th> 34 </tr> 35</table> 36<table width="100%" cellpadding="0" cellspacing="0"> 37 <tr valign="top"> 38 <td width="100%"> 39 <span class="breadcrumbs"> 40 <a href="googleapiclient-module.html">Package googleapiclient</a> :: 41 <a href="googleapiclient.http-module.html">Module http</a> :: 42 Class MediaDownloadProgress 43 </span> 44 </td> 45 <td> 46 <table cellpadding="0" cellspacing="0"> 47 <!-- hide/show private --> 48 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink" 49 onclick="toggle_private();">hide private</a>]</span></td></tr> 50 <tr><td align="right"><span class="options" 51 >[<a href="frames.html" target="_top">frames</a 52 >] | <a href="googleapiclient.http.MediaDownloadProgress-class.html" 53 target="_top">no frames</a>]</span></td></tr> 54 </table> 55 </td> 56 </tr> 57</table> 58<!-- ==================== CLASS DESCRIPTION ==================== --> 59<h1 class="epydoc">Class MediaDownloadProgress</h1><p class="nomargin-top"><span class="codelink"><a href="googleapiclient.http-pysrc.html#MediaDownloadProgress">source code</a></span></p> 60<center> 61 62</center> 63<hr /> 64<pre class="literalblock"> 65Status of a resumable download. 66 67</pre> 68 69<!-- ==================== INSTANCE METHODS ==================== --> 70<a name="section-InstanceMethods"></a> 71<table class="summary" border="1" cellpadding="3" 72 cellspacing="0" width="100%" bgcolor="white"> 73<tr bgcolor="#70b0f0" class="table-header"> 74 <td colspan="2" class="table-header"> 75 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 76 <tr valign="top"> 77 <td align="left"><span class="table-header">Instance Methods</span></td> 78 <td align="right" valign="top" 79 ><span class="options">[<a href="#section-InstanceMethods" 80 class="privatelink" onclick="toggle_private();" 81 >hide private</a>]</span></td> 82 </tr> 83 </table> 84 </td> 85</tr> 86<tr> 87 <td width="15%" align="right" valign="top" class="summary"> 88 <span class="summary-type"> </span> 89 </td><td class="summary"> 90 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 91 <tr> 92 <td><span class="summary-sig"><a href="googleapiclient.http.MediaDownloadProgress-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>, 93 <span class="summary-sig-arg">resumable_progress</span>, 94 <span class="summary-sig-arg">total_size</span>)</span><br /> 95 Constructor.</td> 96 <td align="right" valign="top"> 97 <span class="codelink"><a href="googleapiclient.http-pysrc.html#MediaDownloadProgress.__init__">source code</a></span> 98 99 </td> 100 </tr> 101 </table> 102 103 </td> 104 </tr> 105<tr> 106 <td width="15%" align="right" valign="top" class="summary"> 107 <span class="summary-type"> </span> 108 </td><td class="summary"> 109 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 110 <tr> 111 <td><span class="summary-sig"><a href="googleapiclient.http.MediaDownloadProgress-class.html#progress" class="summary-sig-name">progress</a>(<span class="summary-sig-arg">self</span>)</span><br /> 112 Percent of download completed, as a float.</td> 113 <td align="right" valign="top"> 114 <span class="codelink"><a href="googleapiclient.http-pysrc.html#MediaDownloadProgress.progress">source code</a></span> 115 116 </td> 117 </tr> 118 </table> 119 120 </td> 121 </tr> 122 <tr> 123 <td colspan="2" class="summary"> 124 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>: 125 <code>__delattr__</code>, 126 <code>__format__</code>, 127 <code>__getattribute__</code>, 128 <code>__hash__</code>, 129 <code>__new__</code>, 130 <code>__reduce__</code>, 131 <code>__reduce_ex__</code>, 132 <code>__repr__</code>, 133 <code>__setattr__</code>, 134 <code>__sizeof__</code>, 135 <code>__str__</code>, 136 <code>__subclasshook__</code> 137 </p> 138 </td> 139 </tr> 140</table> 141<!-- ==================== PROPERTIES ==================== --> 142<a name="section-Properties"></a> 143<table class="summary" border="1" cellpadding="3" 144 cellspacing="0" width="100%" bgcolor="white"> 145<tr bgcolor="#70b0f0" class="table-header"> 146 <td colspan="2" class="table-header"> 147 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 148 <tr valign="top"> 149 <td align="left"><span class="table-header">Properties</span></td> 150 <td align="right" valign="top" 151 ><span class="options">[<a href="#section-Properties" 152 class="privatelink" onclick="toggle_private();" 153 >hide private</a>]</span></td> 154 </tr> 155 </table> 156 </td> 157</tr> 158 <tr> 159 <td colspan="2" class="summary"> 160 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>: 161 <code>__class__</code> 162 </p> 163 </td> 164 </tr> 165</table> 166<!-- ==================== METHOD DETAILS ==================== --> 167<a name="section-MethodDetails"></a> 168<table class="details" border="1" cellpadding="3" 169 cellspacing="0" width="100%" bgcolor="white"> 170<tr bgcolor="#70b0f0" class="table-header"> 171 <td colspan="2" class="table-header"> 172 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 173 <tr valign="top"> 174 <td align="left"><span class="table-header">Method Details</span></td> 175 <td align="right" valign="top" 176 ><span class="options">[<a href="#section-MethodDetails" 177 class="privatelink" onclick="toggle_private();" 178 >hide private</a>]</span></td> 179 </tr> 180 </table> 181 </td> 182</tr> 183</table> 184<a name="__init__"></a> 185<div> 186<table class="details" border="1" cellpadding="3" 187 cellspacing="0" width="100%" bgcolor="white"> 188<tr><td> 189 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 190 <tr valign="top"><td> 191 <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>, 192 <span class="sig-arg">resumable_progress</span>, 193 <span class="sig-arg">total_size</span>)</span> 194 <br /><em class="fname">(Constructor)</em> 195 </h3> 196 </td><td align="right" valign="top" 197 ><span class="codelink"><a href="googleapiclient.http-pysrc.html#MediaDownloadProgress.__init__">source code</a></span> 198 </td> 199 </tr></table> 200 201 <pre class="literalblock"> 202Constructor. 203 204Args: 205 resumable_progress: int, bytes received so far. 206 total_size: int, total bytes in complete download. 207 208</pre> 209 <dl class="fields"> 210 <dt>Overrides: 211 object.__init__ 212 </dt> 213 </dl> 214</td></tr></table> 215</div> 216<a name="progress"></a> 217<div> 218<table class="details" border="1" cellpadding="3" 219 cellspacing="0" width="100%" bgcolor="white"> 220<tr><td> 221 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 222 <tr valign="top"><td> 223 <h3 class="epydoc"><span class="sig"><span class="sig-name">progress</span>(<span class="sig-arg">self</span>)</span> 224 </h3> 225 </td><td align="right" valign="top" 226 ><span class="codelink"><a href="googleapiclient.http-pysrc.html#MediaDownloadProgress.progress">source code</a></span> 227 </td> 228 </tr></table> 229 230 <pre class="literalblock"> 231Percent of download completed, as a float. 232 233Returns: 234 the percentage complete as a float, returning 0.0 if the total size of 235 the download is unknown. 236 237</pre> 238 <dl class="fields"> 239 </dl> 240</td></tr></table> 241</div> 242<br /> 243<!-- ==================== NAVIGATION BAR ==================== --> 244<table class="navbar" border="0" width="100%" cellpadding="0" 245 bgcolor="#a0c0ff" cellspacing="0"> 246 <tr valign="middle"> 247 <!-- Home link --> 248 <th> <a 249 href="googleapiclient-module.html">Home</a> </th> 250 251 <!-- Tree link --> 252 <th> <a 253 href="module-tree.html">Trees</a> </th> 254 255 <!-- Index link --> 256 <th> <a 257 href="identifier-index.html">Indices</a> </th> 258 259 <!-- Help link --> 260 <th> <a 261 href="help.html">Help</a> </th> 262 263 <th class="navbar" width="100%"></th> 264 </tr> 265</table> 266<table border="0" cellpadding="0" cellspacing="0" width="100%%"> 267 <tr> 268 <td align="left" class="footer"> 269 Generated by Epydoc 3.0.1 on Mon Jun 5 13:38:40 2017 270 </td> 271 <td align="right" class="footer"> 272 <a target="mainFrame" href="http://epydoc.sourceforge.net" 273 >http://epydoc.sourceforge.net</a> 274 </td> 275 </tr> 276</table> 277 278<script type="text/javascript"> 279 <!-- 280 // Private objects are initially displayed (because if 281 // javascript is turned off then we want them to be 282 // visible); but by default, we want to hide them. So hide 283 // them unless we have a cookie that says to show them. 284 checkCookie(); 285 // --> 286</script> 287</body> 288</html> 289