Home | History | Annotate | Download | only in epy
      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.model.MediaModel</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>&nbsp;&nbsp;&nbsp;<a
     19         href="googleapiclient-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
     20 
     21   <!-- Tree link -->
     22       <th>&nbsp;&nbsp;&nbsp;<a
     23         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
     24 
     25   <!-- Index link -->
     26       <th>&nbsp;&nbsp;&nbsp;<a
     27         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
     28 
     29   <!-- Help link -->
     30       <th>&nbsp;&nbsp;&nbsp;<a
     31         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</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&nbsp;googleapiclient</a> ::
     41         <a href="googleapiclient.model-module.html">Module&nbsp;model</a> ::
     42         Class&nbsp;MediaModel
     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&nbsp;private</a>]</span></td></tr>
     50         <tr><td align="right"><span class="options"
     51             >[<a href="frames.html" target="_top">frames</a
     52             >]&nbsp;|&nbsp;<a href="googleapiclient.model.MediaModel-class.html"
     53             target="_top">no&nbsp;frames</a>]</span></td></tr>
     54       </table>
     55     </td>
     56   </tr>
     57 </table>
     58 <!-- ==================== CLASS DESCRIPTION ==================== -->
     59 <h1 class="epydoc">Class MediaModel</h1><p class="nomargin-top"><span class="codelink"><a href="googleapiclient.model-pysrc.html#MediaModel">source&nbsp;code</a></span></p>
     60 <center>
     61 
     62 </center>
     63 <hr />
     64 <pre class="literalblock">
     65 Model class for requests that return Media.
     66 
     67 Serializes and de-serializes between JSON and the Python
     68 object representation of HTTP request, and returns the raw bytes
     69 of the response body.
     70 
     71 </pre>
     72 
     73 <!-- ==================== INSTANCE METHODS ==================== -->
     74 <a name="section-InstanceMethods"></a>
     75 <table class="summary" border="1" cellpadding="3"
     76        cellspacing="0" width="100%" bgcolor="white">
     77 <tr bgcolor="#70b0f0" class="table-header">
     78   <td colspan="2" class="table-header">
     79     <table border="0" cellpadding="0" cellspacing="0" width="100%">
     80       <tr valign="top">
     81         <td align="left"><span class="table-header">Instance Methods</span></td>
     82         <td align="right" valign="top"
     83          ><span class="options">[<a href="#section-InstanceMethods"
     84          class="privatelink" onclick="toggle_private();"
     85          >hide private</a>]</span></td>
     86       </tr>
     87     </table>
     88   </td>
     89 </tr>
     90 <tr>
     91     <td width="15%" align="right" valign="top" class="summary">
     92       <span class="summary-type">&nbsp;</span>
     93     </td><td class="summary">
     94       <table width="100%" cellpadding="0" cellspacing="0" border="0">
     95         <tr>
     96           <td><span class="summary-sig"><a href="googleapiclient.model.MediaModel-class.html#deserialize" class="summary-sig-name">deserialize</a>(<span class="summary-sig-arg">self</span>,
     97         <span class="summary-sig-arg">content</span>)</span><br />
     98       Perform the actual deserialization from response string to Python
     99 object.</td>
    100           <td align="right" valign="top">
    101             <span class="codelink"><a href="googleapiclient.model-pysrc.html#MediaModel.deserialize">source&nbsp;code</a></span>
    102             
    103           </td>
    104         </tr>
    105       </table>
    106       
    107     </td>
    108   </tr>
    109 <tr>
    110     <td width="15%" align="right" valign="top" class="summary">
    111       <span class="summary-type">&nbsp;</span>
    112     </td><td class="summary">
    113       <table width="100%" cellpadding="0" cellspacing="0" border="0">
    114         <tr>
    115           <td><span class="summary-sig"><a href="googleapiclient.model.MediaModel-class.html#no_content_response" class="summary-sig-name">no_content_response</a>(<span class="summary-sig-arg">self</span>)</span></td>
    116           <td align="right" valign="top">
    117             <span class="codelink"><a href="googleapiclient.model-pysrc.html#MediaModel.no_content_response">source&nbsp;code</a></span>
    118             
    119           </td>
    120         </tr>
    121       </table>
    122       
    123     </td>
    124   </tr>
    125   <tr>
    126     <td colspan="2" class="summary">
    127     <p class="indent-wrapped-lines"><b>Inherited from <code><a href="googleapiclient.model.JsonModel-class.html">JsonModel</a></code></b>:
    128       <code><a href="googleapiclient.model.JsonModel-class.html#__init__">__init__</a></code>,
    129       <code><a href="googleapiclient.model.JsonModel-class.html#serialize">serialize</a></code>
    130       </p>
    131     <p class="indent-wrapped-lines"><b>Inherited from <code><a href="googleapiclient.model.BaseModel-class.html">BaseModel</a></code></b>:
    132       <code><a href="googleapiclient.model.BaseModel-class.html#request">request</a></code>,
    133       <code><a href="googleapiclient.model.BaseModel-class.html#response">response</a></code>
    134       </p>
    135     <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="googleapiclient.model.BaseModel-class.html">BaseModel</a></code></b> (private):
    136       <code><a href="googleapiclient.model.BaseModel-class.html#_build_query" onclick="show_private();">_build_query</a></code>,
    137       <code><a href="googleapiclient.model.BaseModel-class.html#_log_request" onclick="show_private();">_log_request</a></code>,
    138       <code><a href="googleapiclient.model.BaseModel-class.html#_log_response" onclick="show_private();">_log_response</a></code>
    139       </p></div>
    140     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
    141       <code>__delattr__</code>,
    142       <code>__format__</code>,
    143       <code>__getattribute__</code>,
    144       <code>__hash__</code>,
    145       <code>__new__</code>,
    146       <code>__reduce__</code>,
    147       <code>__reduce_ex__</code>,
    148       <code>__repr__</code>,
    149       <code>__setattr__</code>,
    150       <code>__sizeof__</code>,
    151       <code>__str__</code>,
    152       <code>__subclasshook__</code>
    153       </p>
    154     </td>
    155   </tr>
    156 </table>
    157 <!-- ==================== CLASS VARIABLES ==================== -->
    158 <a name="section-ClassVariables"></a>
    159 <table class="summary" border="1" cellpadding="3"
    160        cellspacing="0" width="100%" bgcolor="white">
    161 <tr bgcolor="#70b0f0" class="table-header">
    162   <td colspan="2" class="table-header">
    163     <table border="0" cellpadding="0" cellspacing="0" width="100%">
    164       <tr valign="top">
    165         <td align="left"><span class="table-header">Class Variables</span></td>
    166         <td align="right" valign="top"
    167          ><span class="options">[<a href="#section-ClassVariables"
    168          class="privatelink" onclick="toggle_private();"
    169          >hide private</a>]</span></td>
    170       </tr>
    171     </table>
    172   </td>
    173 </tr>
    174 <tr>
    175     <td width="15%" align="right" valign="top" class="summary">
    176       <span class="summary-type">&nbsp;</span>
    177     </td><td class="summary">
    178         <a name="accept"></a><span class="summary-name">accept</span> = <code title="'*/*'">'*/*'</code>
    179     </td>
    180   </tr>
    181 <tr>
    182     <td width="15%" align="right" valign="top" class="summary">
    183       <span class="summary-type">&nbsp;</span>
    184     </td><td class="summary">
    185         <a name="content_type"></a><span class="summary-name">content_type</span> = <code title="'application/json'">'application/json'</code>
    186     </td>
    187   </tr>
    188 <tr>
    189     <td width="15%" align="right" valign="top" class="summary">
    190       <span class="summary-type">&nbsp;</span>
    191     </td><td class="summary">
    192         <a name="alt_param"></a><span class="summary-name">alt_param</span> = <code title="'media'">'media'</code>
    193     </td>
    194   </tr>
    195 </table>
    196 <!-- ==================== PROPERTIES ==================== -->
    197 <a name="section-Properties"></a>
    198 <table class="summary" border="1" cellpadding="3"
    199        cellspacing="0" width="100%" bgcolor="white">
    200 <tr bgcolor="#70b0f0" class="table-header">
    201   <td colspan="2" class="table-header">
    202     <table border="0" cellpadding="0" cellspacing="0" width="100%">
    203       <tr valign="top">
    204         <td align="left"><span class="table-header">Properties</span></td>
    205         <td align="right" valign="top"
    206          ><span class="options">[<a href="#section-Properties"
    207          class="privatelink" onclick="toggle_private();"
    208          >hide private</a>]</span></td>
    209       </tr>
    210     </table>
    211   </td>
    212 </tr>
    213   <tr>
    214     <td colspan="2" class="summary">
    215     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
    216       <code>__class__</code>
    217       </p>
    218     </td>
    219   </tr>
    220 </table>
    221 <!-- ==================== METHOD DETAILS ==================== -->
    222 <a name="section-MethodDetails"></a>
    223 <table class="details" border="1" cellpadding="3"
    224        cellspacing="0" width="100%" bgcolor="white">
    225 <tr bgcolor="#70b0f0" class="table-header">
    226   <td colspan="2" class="table-header">
    227     <table border="0" cellpadding="0" cellspacing="0" width="100%">
    228       <tr valign="top">
    229         <td align="left"><span class="table-header">Method Details</span></td>
    230         <td align="right" valign="top"
    231          ><span class="options">[<a href="#section-MethodDetails"
    232          class="privatelink" onclick="toggle_private();"
    233          >hide private</a>]</span></td>
    234       </tr>
    235     </table>
    236   </td>
    237 </tr>
    238 </table>
    239 <a name="deserialize"></a>
    240 <div>
    241 <table class="details" border="1" cellpadding="3"
    242        cellspacing="0" width="100%" bgcolor="white">
    243 <tr><td>
    244   <table width="100%" cellpadding="0" cellspacing="0" border="0">
    245   <tr valign="top"><td>
    246   <h3 class="epydoc"><span class="sig"><span class="sig-name">deserialize</span>(<span class="sig-arg">self</span>,
    247         <span class="sig-arg">content</span>)</span>
    248   </h3>
    249   </td><td align="right" valign="top"
    250     ><span class="codelink"><a href="googleapiclient.model-pysrc.html#MediaModel.deserialize">source&nbsp;code</a></span>&nbsp;
    251     </td>
    252   </tr></table>
    253   
    254   <pre class="literalblock">
    255 Perform the actual deserialization from response string to Python
    256 object.
    257 
    258 Args:
    259   content: string, the body of the HTTP response
    260 
    261 Returns:
    262   The body de-serialized as a Python object.
    263 
    264 </pre>
    265   <dl class="fields">
    266     <dt>Overrides:
    267         <a href="googleapiclient.model.BaseModel-class.html#deserialize">BaseModel.deserialize</a>
    268         <dd><em class="note">(inherited documentation)</em></dd>
    269     </dt>
    270   </dl>
    271 </td></tr></table>
    272 </div>
    273 <a name="no_content_response"></a>
    274 <div>
    275 <table class="details" border="1" cellpadding="3"
    276        cellspacing="0" width="100%" bgcolor="white">
    277 <tr><td>
    278   <table width="100%" cellpadding="0" cellspacing="0" border="0">
    279   <tr valign="top"><td>
    280   <h3 class="epydoc"><span class="sig"><span class="sig-name">no_content_response</span>(<span class="sig-arg">self</span>)</span>
    281   </h3>
    282   </td><td align="right" valign="top"
    283     ><span class="codelink"><a href="googleapiclient.model-pysrc.html#MediaModel.no_content_response">source&nbsp;code</a></span>&nbsp;
    284     </td>
    285   </tr></table>
    286   
    287   
    288   <dl class="fields">
    289     <dt>Decorators:</dt>
    290     <dd><ul class="nomargin-top">
    291         <li><code>@property</code></li>
    292     </ul></dd>
    293     <dt>Overrides:
    294         <a href="googleapiclient.model.BaseModel-class.html#no_content_response">no_content_response</a>
    295     </dt>
    296   </dl>
    297 </td></tr></table>
    298 </div>
    299 <br />
    300 <!-- ==================== NAVIGATION BAR ==================== -->
    301 <table class="navbar" border="0" width="100%" cellpadding="0"
    302        bgcolor="#a0c0ff" cellspacing="0">
    303   <tr valign="middle">
    304   <!-- Home link -->
    305       <th>&nbsp;&nbsp;&nbsp;<a
    306         href="googleapiclient-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
    307 
    308   <!-- Tree link -->
    309       <th>&nbsp;&nbsp;&nbsp;<a
    310         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
    311 
    312   <!-- Index link -->
    313       <th>&nbsp;&nbsp;&nbsp;<a
    314         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
    315 
    316   <!-- Help link -->
    317       <th>&nbsp;&nbsp;&nbsp;<a
    318         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
    319 
    320       <th class="navbar" width="100%"></th>
    321   </tr>
    322 </table>
    323 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
    324   <tr>
    325     <td align="left" class="footer">
    326     Generated by Epydoc 3.0.1 on Mon Jun  5 13:38:40 2017
    327     </td>
    328     <td align="right" class="footer">
    329       <a target="mainFrame" href="http://epydoc.sourceforge.net"
    330         >http://epydoc.sourceforge.net</a>
    331     </td>
    332   </tr>
    333 </table>
    334 
    335 <script type="text/javascript">
    336   <!--
    337   // Private objects are initially displayed (because if
    338   // javascript is turned off then we want them to be
    339   // visible); but by default, we want to hide them.  So hide
    340   // them unless we have a cookie that says to show them.
    341   checkCookie();
    342   // -->
    343 </script>
    344 </body>
    345 </html>
    346