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