Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 1 | |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 | <html><head><title>Python: module oauth2client.file</title> |
| 4 | </head><body bgcolor="#f0f0f8"> |
| 5 | |
| 6 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> |
| 7 | <tr bgcolor="#7799ee"> |
| 8 | <td valign=bottom> <br> |
| 9 | <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="oauth2client.html"><font color="#ffffff">oauth2client</font></a>.file</strong></big></big></font></td |
| 10 | ><td align=right valign=bottom |
Joe Gregorio | d02bf5e | 2012-03-02 13:21:32 -0800 | [diff] [blame^] | 11 | ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jcgregorio/projects/google-api-python-client/oauth2client/file.py">/home/jcgregorio/projects/google-api-python-client/oauth2client/file.py</a></font></td></tr></table> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 12 | <p><tt>Utilities for OAuth.<br> |
| 13 | <br> |
| 14 | Utilities for making it easier to work with OAuth 2.0<br> |
| 15 | credentials.</tt></p> |
| 16 | <p> |
| 17 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 18 | <tr bgcolor="#aa55cc"> |
| 19 | <td colspan=3 valign=bottom> <br> |
| 20 | <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> |
| 21 | |
| 22 | <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 23 | <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="os.html">os</a><br> |
| 24 | </td><td width="25%" valign=top><a href="json.html">json</a><br> |
| 25 | </td><td width="25%" valign=top><a href="stat.html">stat</a><br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 26 | </td><td width="25%" valign=top><a href="threading.html">threading</a><br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 27 | </td></tr></table></td></tr></table><p> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 28 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 29 | <tr bgcolor="#ee77aa"> |
| 30 | <td colspan=3 valign=bottom> <br> |
| 31 | <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> |
| 32 | |
| 33 | <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> |
| 34 | <td width="100%"><dl> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 35 | <dt><font face="helvetica, arial"><a href="oauth2client.client.html#Storage">oauth2client.client.Storage</a>(<a href="__builtin__.html#object">__builtin__.object</a>) |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 36 | </font></dt><dd> |
| 37 | <dl> |
| 38 | <dt><font face="helvetica, arial"><a href="oauth2client.file.html#Storage">Storage</a> |
| 39 | </font></dt></dl> |
| 40 | </dd> |
| 41 | </dl> |
| 42 | <p> |
| 43 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 44 | <tr bgcolor="#ffc8d8"> |
| 45 | <td colspan=3 valign=bottom> <br> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 46 | <font color="#000000" face="helvetica, arial"><a name="Storage">class <strong>Storage</strong></a>(<a href="oauth2client.client.html#Storage">oauth2client.client.Storage</a>)</font></td></tr> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 47 | |
| 48 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 49 | <td colspan=2><tt>Store and retrieve a single credential to and from a file.<br> </tt></td></tr> |
| 50 | <tr><td> </td> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 51 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 52 | <dd><a href="oauth2client.file.html#Storage">Storage</a></dd> |
| 53 | <dd><a href="oauth2client.client.html#Storage">oauth2client.client.Storage</a></dd> |
| 54 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 55 | </dl> |
| 56 | <hr> |
| 57 | Methods defined here:<br> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 58 | <dl><dt><a name="Storage-__init__"><strong>__init__</strong></a>(self, filename)</dt></dl> |
| 59 | |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 60 | <dl><dt><a name="Storage-acquire_lock"><strong>acquire_lock</strong></a>(self)</dt><dd><tt>Acquires any lock necessary to access this <a href="#Storage">Storage</a>.<br> |
| 61 | <br> |
| 62 | This lock is not reentrant.</tt></dd></dl> |
| 63 | |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 64 | <dl><dt><a name="Storage-locked_delete"><strong>locked_delete</strong></a>(self)</dt><dd><tt>Delete Credentials file.<br> |
| 65 | <br> |
| 66 | Args:<br> |
| 67 | credentials: Credentials, the credentials to store.</tt></dd></dl> |
| 68 | |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 69 | <dl><dt><a name="Storage-locked_get"><strong>locked_get</strong></a>(self)</dt><dd><tt>Retrieve Credential from file.<br> |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 70 | <br> |
| 71 | Returns:<br> |
| 72 | oauth2client.client.Credentials</tt></dd></dl> |
| 73 | |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 74 | <dl><dt><a name="Storage-locked_put"><strong>locked_put</strong></a>(self, credentials)</dt><dd><tt>Write Credentials to file.<br> |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 75 | <br> |
| 76 | Args:<br> |
| 77 | credentials: Credentials, the credentials to store.</tt></dd></dl> |
| 78 | |
| 79 | <dl><dt><a name="Storage-release_lock"><strong>release_lock</strong></a>(self)</dt><dd><tt>Release the <a href="#Storage">Storage</a> lock.<br> |
| 80 | <br> |
| 81 | Trying to release a lock that isn't held will result in a<br> |
| 82 | RuntimeError.</tt></dd></dl> |
| 83 | |
| 84 | <hr> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 85 | Methods inherited from <a href="oauth2client.client.html#Storage">oauth2client.client.Storage</a>:<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 86 | <dl><dt><a name="Storage-delete"><strong>delete</strong></a>(self)</dt><dd><tt>Delete credential.<br> |
| 87 | <br> |
| 88 | Frees any resources associated with storing the credential.<br> |
| 89 | The <a href="#Storage">Storage</a> lock must *not* be held when this is called.<br> |
| 90 | <br> |
| 91 | Returns:<br> |
| 92 | None</tt></dd></dl> |
| 93 | |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 94 | <dl><dt><a name="Storage-get"><strong>get</strong></a>(self)</dt><dd><tt>Retrieve credential.<br> |
| 95 | <br> |
| 96 | The <a href="#Storage">Storage</a> lock must *not* be held when this is called.<br> |
| 97 | <br> |
| 98 | Returns:<br> |
| 99 | oauth2client.client.Credentials</tt></dd></dl> |
| 100 | |
| 101 | <dl><dt><a name="Storage-put"><strong>put</strong></a>(self, credentials)</dt><dd><tt>Write a credential.<br> |
| 102 | <br> |
| 103 | The <a href="#Storage">Storage</a> lock must be held when this is called.<br> |
| 104 | <br> |
| 105 | Args:<br> |
| 106 | credentials: Credentials, the credentials to store.</tt></dd></dl> |
| 107 | |
| 108 | <hr> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 109 | Data descriptors inherited from <a href="oauth2client.client.html#Storage">oauth2client.client.Storage</a>:<br> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 110 | <dl><dt><strong>__dict__</strong></dt> |
| 111 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 112 | </dl> |
| 113 | <dl><dt><strong>__weakref__</strong></dt> |
| 114 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 115 | </dl> |
| 116 | </td></tr></table></td></tr></table><p> |
| 117 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 118 | <tr bgcolor="#55aa55"> |
| 119 | <td colspan=3 valign=bottom> <br> |
| 120 | <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> |
| 121 | |
| 122 | <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> |
| 123 | <td width="100%"><strong>__author__</strong> = 'jcgregorio@google.com (Joe Gregorio)'</td></tr></table><p> |
| 124 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 125 | <tr bgcolor="#7799ee"> |
| 126 | <td colspan=3 valign=bottom> <br> |
| 127 | <font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr> |
| 128 | |
| 129 | <tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td> |
| 130 | <td width="100%">jcgregorio@google.com (Joe Gregorio)</td></tr></table> |
| 131 | </body></html> |