Add checks to the release target for confirmation. Also run tests before building a release. Refresh docs.
This commit is contained in:
		
							
								
								
									
										5
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								Makefile
									
									
									
									
									
								
							| @@ -11,12 +11,17 @@ docs: | ||||
|  | ||||
| .PHONY: prerelease | ||||
| prerelease: | ||||
| 	python runtests.py --exit_on_failure tests | ||||
| 	-rm dist/* | ||||
| 	python setup.py clean | ||||
| 	python setup.py sdist | ||||
|  | ||||
| .PHONY: release | ||||
| release: prerelease | ||||
| 	@echo "This target will upload a new release to PyPi and code.google.com hosting." | ||||
| 	@echo "Are you sure you want to proceed? (yes/no)" | ||||
| 	@read yn; [ "yes" == $$yn ] | ||||
| 	@echo "Here we go..." | ||||
| 	python setup.py sdist register upload | ||||
| 	wget "http://support.googlecode.com/svn/trunk/scripts/googlecode_upload.py" -O googlecode_upload.py | ||||
| 	python googlecode_upload.py --summary="Version $(shell python setup.py --version)" --project=google-api-python-client dist/*.tar.gz | ||||
|   | ||||
| @@ -17,5 +17,6 @@ | ||||
| <font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</strong></big></font></td></tr> | ||||
|      | ||||
| <tr><td bgcolor="#aa55cc"><tt>      </tt></td><td> </td> | ||||
| <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table> | ||||
| <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="apiclient.contrib.buzz.html"><strong>buzz</strong> (package)</a><br> | ||||
| </td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table> | ||||
| </body></html> | ||||
| @@ -17,8 +17,11 @@ | ||||
| <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> | ||||
|      | ||||
| <tr><td bgcolor="#aa55cc"><tt>      </tt></td><td> </td> | ||||
| <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="django.db.models.html">django.db.models</a><br> | ||||
| </td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p> | ||||
| <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="apiclient.html">apiclient</a><br> | ||||
| </td><td width="25%" valign=top><a href="base64.html">base64</a><br> | ||||
| </td><td width="25%" valign=top><a href="django.db.models.html">django.db.models</a><br> | ||||
| </td><td width="25%" valign=top><a href="pickle.html">pickle</a><br> | ||||
| </td></tr></table></td></tr></table><p> | ||||
| <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | ||||
| <tr bgcolor="#ee77aa"> | ||||
| <td colspan=3 valign=bottom> <br> | ||||
|   | ||||
| @@ -64,7 +64,7 @@ Serializes and de-serializes between JSON and the& | ||||
| </dl> | ||||
| <hr> | ||||
| Methods defined here:<br> | ||||
| <dl><dt><a name="JsonModel-__init__"><strong>__init__</strong></a>(self, data_wrapper)</dt><dd><tt>Construct a <a href="#JsonModel">JsonModel</a><br> | ||||
| <dl><dt><a name="JsonModel-__init__"><strong>__init__</strong></a>(self, data_wrapper<font color="#909090">=False</font>)</dt><dd><tt>Construct a <a href="#JsonModel">JsonModel</a><br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   data_wrapper: boolean, wrap requests and responses in a data wrapper</tt></dd></dl> | ||||
|   | ||||
| @@ -70,7 +70,7 @@ Args:<br> | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Create a new activity<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   body: object, The request body.<br> | ||||
|   body: object, The request body. (required)<br> | ||||
|   userId: string, ID of the user being referenced. (required)<br> | ||||
|   hl: string, Language code to limit language results.<br> | ||||
|   alt: string, Specifies an alternative representation type.<br> | ||||
| @@ -153,7 +153,7 @@ Args:<br> | ||||
| <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Update an activity<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   body: object, The request body.<br> | ||||
|   body: object, The request body. (required)<br> | ||||
|   userId: string, ID of the user whose post to update. (required)<br> | ||||
|   abuseType: string, A parameter<br> | ||||
|   hl: string, Language code to limit language results.<br> | ||||
|   | ||||
| @@ -41,7 +41,7 @@ Args:<br> | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Create a comment<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   body: object, The request body.<br> | ||||
|   body: object, The request body. (required)<br> | ||||
|   userId: string, ID of the user on whose behalf to comment. (required)<br> | ||||
|   hl: string, Language code to limit language results.<br> | ||||
|   alt: string, Specifies an alternative representation type.<br> | ||||
| @@ -69,7 +69,7 @@ Args:<br> | ||||
| <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Update a comment<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   body: object, The request body.<br> | ||||
|   body: object, The request body. (required)<br> | ||||
|   userId: string, ID of the user being referenced. (required)<br> | ||||
|   abuseType: string, A parameter<br> | ||||
|   hl: string, Language code to limit language results.<br> | ||||
|   | ||||
| @@ -39,7 +39,7 @@ Args:<br> | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Create a group<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   body: object, The request body.<br> | ||||
|   body: object, The request body. (required)<br> | ||||
|   alt: string, Specifies an alternative representation type.<br> | ||||
|     Allowed values<br> | ||||
|       atom - Use Atom XML format<br> | ||||
| @@ -69,7 +69,7 @@ the collection.</tt></dd></dl> | ||||
| <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Update a group<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   body: object, The request body.<br> | ||||
|   body: object, The request body. (required)<br> | ||||
|   userId: string, ID of the user being referenced. (required)<br> | ||||
|   hl: string, Language code to limit language results.<br> | ||||
|   alt: string, Specifies an alternative representation type.<br> | ||||
|   | ||||
| @@ -105,7 +105,7 @@ Args:<br> | ||||
| <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Add a person to a group<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   body: object, The request body.<br> | ||||
|   body: object, The request body. (required)<br> | ||||
|   personId: string, ID of the person to add to the group. (required)<br> | ||||
|   userId: string, ID of the owner of the group. (required)<br> | ||||
|   hl: string, Language code to limit language results.<br> | ||||
|   | ||||
| @@ -39,7 +39,7 @@ Args:<br> | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Create a photo album<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   body: object, The request body.<br> | ||||
|   body: object, The request body. (required)<br> | ||||
|   alt: string, Specifies an alternative representation type.<br> | ||||
|     Allowed values<br> | ||||
|       atom - Use Atom XML format<br> | ||||
|   | ||||
| @@ -41,7 +41,7 @@ Args:<br> | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Upload a photo to an album<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   body: object, The request body.<br> | ||||
|   body: object, The request body. (required)<br> | ||||
|   userId: string, ID of the user being referenced. (required)<br> | ||||
|   albumId: string, ID of the album to which to upload. (required)<br> | ||||
|   hl: string, Language code to limit language results.<br> | ||||
| @@ -53,7 +53,7 @@ Args:<br> | ||||
| <dl><dt><a name="Resource-insert2"><strong>insert2</strong></a> = method(self, **kwargs)</dt><dd><tt>Upload a photo to an album<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   body: object, The request body.<br> | ||||
|   body: object, The request body. (required)<br> | ||||
|   userId: string, ID of the user being referenced. (required)<br> | ||||
|   albumId: string, ID of the album to which to upload. (required)<br> | ||||
|   hl: string, Language code to limit language results.<br> | ||||
|   | ||||
| @@ -20,10 +20,50 @@ Args:<br> | ||||
|   sort: string, The sort expression to apply to the results<br> | ||||
|   num: string, Number of search results to return<br> | ||||
|   safe: string, Search safety level<br> | ||||
|     Allowed values<br> | ||||
|       high - Enables highest level of safe search filtering.<br> | ||||
|       medium - Enables moderate safe search filtering.<br> | ||||
|       off - Disables safe search filtering.<br> | ||||
|   q: string, Query (required)<br> | ||||
|   start: string, The index of the first result to return<br> | ||||
|   cx: string, The custom search engine ID to scope this search query<br> | ||||
|   lr: string, The language restriction for the search results<br> | ||||
|     Allowed values<br> | ||||
|       lang_ar - Arabic<br> | ||||
|       lang_bg - Bulgarian<br> | ||||
|       lang_ca - Catalan<br> | ||||
|       lang_cs - Czech<br> | ||||
|       lang_da - Danish<br> | ||||
|       lang_de - German<br> | ||||
|       lang_el - Greek<br> | ||||
|       lang_en - English<br> | ||||
|       lang_es - Spanish<br> | ||||
|       lang_et - Estonian<br> | ||||
|       lang_fi - Finnish<br> | ||||
|       lang_fr - French<br> | ||||
|       lang_hr - Croatian<br> | ||||
|       lang_hu - Hungarian<br> | ||||
|       lang_id - Indonesian<br> | ||||
|       lang_is - Icelandic<br> | ||||
|       lang_it - Italian<br> | ||||
|       lang_iw - Hebrew<br> | ||||
|       lang_ja - Japanese<br> | ||||
|       lang_ko - Korean<br> | ||||
|       lang_lt - Lithuanian<br> | ||||
|       lang_lv - Latvian<br> | ||||
|       lang_nl - Dutch<br> | ||||
|       lang_no - Norwegian<br> | ||||
|       lang_pl - Polish<br> | ||||
|       lang_pt - Portuguese<br> | ||||
|       lang_ro - Romanian<br> | ||||
|       lang_ru - Russian<br> | ||||
|       lang_sk - Slovak<br> | ||||
|       lang_sl - Slovenian<br> | ||||
|       lang_sr - Serbian<br> | ||||
|       lang_sv - Swedish<br> | ||||
|       lang_tr - Turkish<br> | ||||
|       lang_zh-CN - Chinese (Simplified)<br> | ||||
|       lang_zh-TW - Chinese (Traditional)<br> | ||||
|   cref: string, The URL of a linked custom search engine</tt></dd></dl> | ||||
|  | ||||
| <hr> | ||||
|   | ||||
| @@ -26,7 +26,7 @@ Args:<br> | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates or creates the user's current location.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   body: object, The request body.</tt></dd></dl> | ||||
|   body: object, The request body. (required)</tt></dd></dl> | ||||
|  | ||||
| <hr> | ||||
| Data descriptors defined here:<br> | ||||
|   | ||||
| @@ -28,7 +28,7 @@ Args:<br> | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Inserts or updates a location in the user's location history.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   body: object, The request body.</tt></dd></dl> | ||||
|   body: object, The request body. (required)</tt></dd></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Lists the user's location history.<br> | ||||
|  <br> | ||||
|   | ||||
| @@ -14,7 +14,7 @@ | ||||
| <td width="100%">Methods defined here:<br> | ||||
| <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Lists the featured series.<br> | ||||
|  <br> | ||||
| Args:</tt></dd></dl> | ||||
|  | ||||
|   | ||||
| @@ -14,7 +14,7 @@ | ||||
| <td width="100%">Methods defined here:<br> | ||||
| <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Searches the public series and returns the search results.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   q: string, Search query.<br> | ||||
|   | ||||
| @@ -14,7 +14,7 @@ | ||||
| <td width="100%">Methods defined here:<br> | ||||
| <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Lists all series created by the authenticated user.<br> | ||||
|  <br> | ||||
| Args:</tt></dd></dl> | ||||
|  | ||||
|   | ||||
| @@ -14,7 +14,7 @@ | ||||
| <td width="100%">Methods defined here:<br> | ||||
| <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Lists the series the authenticated user has visited.<br> | ||||
|  <br> | ||||
| Args:</tt></dd></dl> | ||||
|  | ||||
|   | ||||
| @@ -14,14 +14,14 @@ | ||||
| <td width="100%">Methods defined here:<br> | ||||
| <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns the profile information for the authenticated user.<br> | ||||
|  <br> | ||||
| Args:</tt></dd></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates the profile information for the authenticated user.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   body: object, The request body.</tt></dd></dl> | ||||
|   body: object, The request body. (required)</tt></dd></dl> | ||||
|  | ||||
| <hr> | ||||
| Data descriptors defined here:<br> | ||||
|   | ||||
| @@ -14,16 +14,16 @@ | ||||
| <td width="100%">Methods defined here:<br> | ||||
| <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Inserts a response for the specified submission in the specified topic within the specified series.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   seriesId: integer, The decimal ID of the Series. (required)<br> | ||||
|   body: object, The request body.<br> | ||||
|   body: object, The request body. (required)<br> | ||||
|   topicId: integer, The decimal ID of the Topic within the Series. (required)<br> | ||||
|   parentSubmissionId: integer, The decimal ID of the parent Submission within the Series. (required)<br> | ||||
|   anonymous: boolean, Set to true to mark the new submission as anonymous.</tt></dd></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Lists or searches the responses for the specified submission within the specified series and returns the search results.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   sort: string, Sort order.<br> | ||||
|   | ||||
| @@ -14,17 +14,17 @@ | ||||
| <td width="100%">Methods defined here:<br> | ||||
| <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns the specified series.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   seriesId: integer, The decimal ID of the Series. (required)</tt></dd></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Inserts a new series.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   body: object, The request body.</tt></dd></dl> | ||||
|   body: object, The request body. (required)</tt></dd></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Searches the series and returns the search results.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   q: string, Search query.<br> | ||||
| @@ -35,11 +35,11 @@ Args:<br> | ||||
|  | ||||
| <dl><dt><a name="Resource-submissions"><strong><a href="moderator.v1.series.submissions.html">submissions</a></strong></a> = methodResource(self)</dt><dd><tt>A collection resource.</tt></dd></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates the specified series.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   seriesId: integer, The decimal ID of the Series. (required)<br> | ||||
|   body: object, The request body.</tt></dd></dl> | ||||
|   body: object, The request body. (required)</tt></dd></dl> | ||||
|  | ||||
| <hr> | ||||
| Data descriptors defined here:<br> | ||||
|   | ||||
| @@ -14,7 +14,7 @@ | ||||
| <td width="100%">Methods defined here:<br> | ||||
| <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Searches the responses for the specified series and returns the search results.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   sort: string, Sort order.<br> | ||||
|   | ||||
| @@ -14,7 +14,7 @@ | ||||
| <td width="100%">Methods defined here:<br> | ||||
| <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Searches the submissions for the specified series and returns the search results.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   lang: string, The language code for the language the client prefers resuls in.<br> | ||||
|   | ||||
| @@ -14,19 +14,19 @@ | ||||
| <td width="100%">Methods defined here:<br> | ||||
| <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns the specified submission within the specified series.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   lang: string, The language code for the language the client prefers resuls in.<br> | ||||
|   seriesId: integer, The decimal ID of the Series. (required)<br> | ||||
|   submissionId: integer, The decimal ID of the Submission within the Series. (required)</tt></dd></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Inserts a new submission in the specified topic within the specified series.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   seriesId: integer, The decimal ID of the Series. (required)<br> | ||||
|   topicId: integer, The decimal ID of the Topic within the Series. (required)<br> | ||||
|   body: object, The request body.<br> | ||||
|   body: object, The request body. (required)<br> | ||||
|   anonymous: boolean, Set to true to mark the new submission as anonymous.</tt></dd></dl> | ||||
|  | ||||
| <hr> | ||||
|   | ||||
| @@ -14,21 +14,21 @@ | ||||
| <td width="100%">Methods defined here:<br> | ||||
| <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-delete"><strong>delete</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-delete"><strong>delete</strong></a> = method(self, **kwargs)</dt><dd><tt>Deletes the specified tag from the specified submission within the specified series.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   seriesId: integer, The decimal ID of the Series. (required)<br> | ||||
|   tagId: string, A parameter (required)<br> | ||||
|   submissionId: integer, The decimal ID of the Submission within the Series. (required)</tt></dd></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Inserts a new tag for the specified submission within the specified series.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   seriesId: integer, The decimal ID of the Series. (required)<br> | ||||
|   body: object, The request body.<br> | ||||
|   body: object, The request body. (required)<br> | ||||
|   submissionId: integer, The decimal ID of the Submission within the Series. (required)</tt></dd></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Lists all tags for the specified submission within the specified series.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   seriesId: integer, The decimal ID of the Series. (required)<br> | ||||
|   | ||||
| @@ -14,19 +14,19 @@ | ||||
| <td width="100%">Methods defined here:<br> | ||||
| <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns the specified topic from the specified series.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   seriesId: integer, The decimal ID of the Series. (required)<br> | ||||
|   topicId: integer, The decimal ID of the Topic within the Series. (required)</tt></dd></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Inserts a new topic into the specified series.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   seriesId: integer, The decimal ID of the Series. (required)<br> | ||||
|   body: object, The request body.</tt></dd></dl> | ||||
|   body: object, The request body. (required)</tt></dd></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Searches the topics within the specified series and returns the search results.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   seriesId: integer, The decimal ID of the Series. (required)<br> | ||||
| @@ -37,12 +37,12 @@ Args:<br> | ||||
|  | ||||
| <dl><dt><a name="Resource-submissions"><strong><a href="moderator.v1.topics.submissions.html">submissions</a></strong></a> = methodResource(self)</dt><dd><tt>A collection resource.</tt></dd></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates the specified topic within the specified series.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   seriesId: integer, The decimal ID of the Series. (required)<br> | ||||
|   topicId: integer, The decimal ID of the Topic within the Series. (required)<br> | ||||
|   body: object, The request body.</tt></dd></dl> | ||||
|   body: object, The request body. (required)</tt></dd></dl> | ||||
|  | ||||
| <hr> | ||||
| Data descriptors defined here:<br> | ||||
|   | ||||
| @@ -14,7 +14,7 @@ | ||||
| <td width="100%">Methods defined here:<br> | ||||
| <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Searches the submissions for the specified topic within the specified series and returns the search results.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   sort: string, Sort order.<br> | ||||
|   | ||||
| @@ -14,32 +14,32 @@ | ||||
| <td width="100%">Methods defined here:<br> | ||||
| <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns the votes by the authenticated user for the specified submission within the specified series.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   seriesId: integer, The decimal ID of the Series. (required)<br> | ||||
|   userId: string, A parameter<br> | ||||
|   submissionId: integer, The decimal ID of the Submission within the Series. (required)</tt></dd></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Inserts a new vote by the authenticated user for the specified submission within the specified series.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   seriesId: integer, The decimal ID of the Series. (required)<br> | ||||
|   body: object, The request body.<br> | ||||
|   body: object, The request body. (required)<br> | ||||
|   submissionId: integer, The decimal ID of the Submission within the Series. (required)</tt></dd></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Lists the votes by the authenticated user for the given series.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   seriesId: integer, The decimal ID of the Series. (required)<br> | ||||
|   max_results: integer, Maximum number of results to return.<br> | ||||
|   start_index: integer, Index of the first result to be retrieved.</tt></dd></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
| <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates the votes by the authenticated user for the specified submission within the specified series.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   seriesId: integer, The decimal ID of the Series. (required)<br> | ||||
|   body: object, The request body.<br> | ||||
|   body: object, The request body. (required)<br> | ||||
|   userId: string, A parameter<br> | ||||
|   submissionId: integer, The decimal ID of the Submission within the Series. (required)</tt></dd></dl> | ||||
|  | ||||
|   | ||||
| @@ -17,7 +17,7 @@ | ||||
| <dl><dt><a name="Resource-predict"><strong>predict</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   body: object, The request body.<br> | ||||
|   body: object, The request body. (required)<br> | ||||
|   data: string, mybucket%2Fmydata resource in Google Storage (required)</tt></dd></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-training"><strong><a href="prediction.v1.1.training.html">training</a></strong></a> = methodResource(self)</dt><dd><tt>A collection resource.</tt></dd></dl> | ||||
|   | ||||
| @@ -27,7 +27,7 @@ Args:<br> | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>A description of how to use this function<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   body: object, The request body.<br> | ||||
|   body: object, The request body. (required)<br> | ||||
|   data: string, mybucket%2Fmydata resource in Google Storage (required)</tt></dd></dl> | ||||
|  | ||||
| <hr> | ||||
|   | ||||
| @@ -19,8 +19,7 @@ | ||||
| Args:<br> | ||||
|   productIdType: string, Type of productId (required)<br> | ||||
|   categories_include: string, Category specification<br> | ||||
|   debug_searchResponse: boolean, Google Internal<br> | ||||
|   debug_useGcsConfig: boolean, Google Internal<br> | ||||
|   thumbnails: string, Thumbnail specification<br> | ||||
|   taxonomy: string, Merchant taxonomy<br> | ||||
|   recommendations_include: string, Recommendation specification<br> | ||||
|   debug_enableLogging: boolean, Google Internal<br> | ||||
| @@ -33,7 +32,7 @@ Args:<br> | ||||
|   productId: string, Id of product (required)<br> | ||||
|   categories_useGcsConfig: boolean, This parameter is currently ignored<br> | ||||
|   accountId: string, Merchant center account id (required)<br> | ||||
|   thumbnails: string, Thumbnail specification</tt></dd></dl> | ||||
|   debug_searchResponse: boolean, Google Internal</tt></dd></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns a list of products and content modules<br> | ||||
|  <br> | ||||
| @@ -43,6 +42,7 @@ Args:<br> | ||||
|   debug_searchResponse: boolean, Google Internal<br> | ||||
|   taxonomy: string, Taxonomy name<br> | ||||
|   promotions_enabled: boolean, Whether to return promotion information<br> | ||||
|   debug_rdcResponse: boolean, Google Internal<br> | ||||
|   facets_discover: string, Facets to discover<br> | ||||
|   startIndex: integer, Index (1-based) of first product to return<br> | ||||
|   redirects_useGcsConfig: boolean, Whether to return redirect information as configured in the GCS account<br> | ||||
| @@ -55,7 +55,6 @@ Args:<br> | ||||
|   debug_searchRequest: boolean, Google Internal<br> | ||||
|   facets_useGcsConfig: boolean, Whether to return facet information as configured in the GCS account<br> | ||||
|   boostBy: string, Boosting specification<br> | ||||
|   debug_useGcsConfig: boolean, Google Internal<br> | ||||
|   debug_enableLogging: boolean, Google Internal<br> | ||||
|   maxResults: integer, Maximum number of results to return<br> | ||||
|   categories_enabled: boolean, Whether to return category information<br> | ||||
|   | ||||
| @@ -27,7 +27,7 @@ Args:<br> | ||||
| <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Creates a new short URL.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   body: object, The request body.</tt></dd></dl> | ||||
|   body: object, The request body. (required)</tt></dd></dl> | ||||
|  | ||||
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves a list of URLs shortened by a user.<br> | ||||
|  <br> | ||||
|   | ||||
| @@ -115,7 +115,7 @@ This is one of the few types if <a href= | ||||
| <a href="#Credentials">Credentials</a> objects are usually instantiated by a <a href="#Flow">Flow</a>.<br> | ||||
|  <br> | ||||
| Args:<br> | ||||
|   token_uri: string, URI of token endpoint.<br> | ||||
|   access_token: string, access token.<br> | ||||
|   user_agent: string, The HTTP User-Agent to provide for this application.<br> | ||||
|  <br> | ||||
| Notes:<br> | ||||
|   | ||||
							
								
								
									
										21
									
								
								runtests.py
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								runtests.py
									
									
									
									
									
								
							| @@ -35,17 +35,20 @@ def build_suite(folder, verbosity): | ||||
|       __import__(module) | ||||
|     raise | ||||
|  | ||||
| def run(test_folder_name, verbosity=1): | ||||
| def run(test_folder_name, verbosity, exit_on_failure): | ||||
|   # Build and run the tests in test_folder_name | ||||
|   tests = build_suite(test_folder_name, verbosity) | ||||
|   unittest.TextTestRunner(verbosity=verbosity).run(tests) | ||||
|   result = unittest.TextTestRunner(verbosity=verbosity).run(tests) | ||||
|   if exit_on_failure and not result.wasSuccessful(): | ||||
|     sys.exit(1) | ||||
|   cleanup() | ||||
|  | ||||
| def main(): | ||||
|   if '--help' in sys.argv: | ||||
|     print 'Usage: python runtests.py [--q|-quiet|--v|-verbose] [tests|functional_tests|contrib_tests]' | ||||
|     print 'Usage: python runtests.py [-q|--quiet|-v|--verbose] [--exit_on_failure] [tests|functional_tests|contrib_tests]' | ||||
|     return | ||||
|   verbosity = 1 | ||||
|   exit_on_failure = '--exit_on_failure' in sys.argv | ||||
|   if '-q' in sys.argv or '--quiet' in sys.argv: | ||||
|     verbosity = 0 | ||||
|   if "-v" in sys.argv or '--verbose' in sys.argv: | ||||
| @@ -59,15 +62,15 @@ def main(): | ||||
|  | ||||
|   # Allow user to run a specific folder of tests | ||||
|   if 'tests' in sys.argv: | ||||
|     run('tests', verbosity) | ||||
|     run('tests', verbosity, exit_on_failure) | ||||
|   elif 'functional_tests' in sys.argv: | ||||
|     run('functional_tests', verbosity) | ||||
|     run('functional_tests', verbosity, exit_on_failure) | ||||
|   elif 'contrib_tests' in sys.argv: | ||||
|     run('contrib_tests', verbosity) | ||||
|     run('contrib_tests', verbosity, exit_on_failure) | ||||
|   else: | ||||
|     run('tests', verbosity) | ||||
|     run('functional_tests', verbosity) | ||||
|     run('contrib_tests', verbosity) | ||||
|     run('tests', verbosity, exit_on_failure) | ||||
|     run('functional_tests', verbosity, exit_on_failure) | ||||
|     run('contrib_tests', verbosity, exit_on_failure) | ||||
|  | ||||
| if __name__ == '__main__': | ||||
|   main() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Joe Gregorio
					Joe Gregorio