From 93841708c56f7a1ec080ff5f113cf0c4d7d0eb2a Mon Sep 17 00:00:00 2001 From: Joe Gregorio Date: Wed, 2 Mar 2011 16:12:05 -0800 Subject: [PATCH] Add checks to the release target for confirmation. Also run tests before building a release. Refresh docs. --- Makefile | 5 +++ docs/apiclient.contrib.html | 3 +- docs/apiclient.ext.django_orm.html | 7 +++- docs/apiclient.model.html | 2 +- docs/dyn/buzz.v1.activities.html | 4 +- docs/dyn/buzz.v1.comments.html | 4 +- docs/dyn/buzz.v1.groups.html | 4 +- docs/dyn/buzz.v1.people.html | 2 +- docs/dyn/buzz.v1.photoAlbums.html | 2 +- docs/dyn/buzz.v1.photos.html | 4 +- docs/dyn/customsearch.v1.cse.html | 40 +++++++++++++++++++ docs/dyn/latitude.v1.currentLocation.html | 2 +- docs/dyn/latitude.v1.location.html | 2 +- docs/dyn/moderator.v1.featured.series.html | 2 +- docs/dyn/moderator.v1.global.series.html | 2 +- docs/dyn/moderator.v1.my.series.html | 2 +- docs/dyn/moderator.v1.myrecent.series.html | 2 +- docs/dyn/moderator.v1.profiles.html | 6 +-- docs/dyn/moderator.v1.responses.html | 6 +-- docs/dyn/moderator.v1.series.html | 12 +++--- docs/dyn/moderator.v1.series.responses.html | 2 +- docs/dyn/moderator.v1.series.submissions.html | 2 +- docs/dyn/moderator.v1.submissions.html | 6 +-- docs/dyn/moderator.v1.tags.html | 8 ++-- docs/dyn/moderator.v1.topics.html | 12 +++--- docs/dyn/moderator.v1.topics.submissions.html | 2 +- docs/dyn/moderator.v1.votes.html | 12 +++--- docs/dyn/prediction.v1.1.html | 2 +- docs/dyn/prediction.v1.1.training.html | 2 +- docs/dyn/shopping.v1.products.html | 7 ++-- docs/dyn/urlshortener.v1.url.html | 2 +- docs/oauth2client.client.html | 2 +- runtests.py | 21 +++++----- 33 files changed, 122 insertions(+), 71 deletions(-) diff --git a/Makefile b/Makefile index f31d2bb..e474083 100644 --- a/Makefile +++ b/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 diff --git a/docs/apiclient.contrib.html b/docs/apiclient.contrib.html index 7ac2858..5950718 100644 --- a/docs/apiclient.contrib.html +++ b/docs/apiclient.contrib.html @@ -17,5 +17,6 @@ Package Contents         -
+
buzz (package)
+
\ No newline at end of file diff --git a/docs/apiclient.ext.django_orm.html b/docs/apiclient.ext.django_orm.html index 73e8bea..7d88de9 100644 --- a/docs/apiclient.ext.django_orm.html +++ b/docs/apiclient.ext.django_orm.html @@ -17,8 +17,11 @@ Modules         -
django.db.models
-

+
apiclient
+
base64
+
django.db.models
+
pickle
+

 
diff --git a/docs/apiclient.model.html b/docs/apiclient.model.html index 2439a38..6c0cef4 100644 --- a/docs/apiclient.model.html +++ b/docs/apiclient.model.html @@ -64,7 +64,7 @@ Serializes and de-serializes between JSON and the&
Methods defined here:
-
__init__(self, data_wrapper)
Construct a JsonModel
+
__init__(self, data_wrapper=False)
Construct a JsonModel
 
Args:
  data_wrapper: boolean, wrap requests and responses in a data wrapper
diff --git a/docs/dyn/buzz.v1.activities.html b/docs/dyn/buzz.v1.activities.html index b00ffa7..cdfe90e 100644 --- a/docs/dyn/buzz.v1.activities.html +++ b/docs/dyn/buzz.v1.activities.html @@ -70,7 +70,7 @@ Args:
insert = method(self, **kwargs)
Create a new activity
 
Args:
-  body: object, The request body.
+  body: object, The request body. (required)
  userId: string, ID of the user being referenced. (required)
  hl: string, Language code to limit language results.
  alt: string, Specifies an alternative representation type.
@@ -153,7 +153,7 @@ Args:
update = method(self, **kwargs)
Update an activity
 
Args:
-  body: object, The request body.
+  body: object, The request body. (required)
  userId: string, ID of the user whose post to update. (required)
  abuseType: string, A parameter
  hl: string, Language code to limit language results.
diff --git a/docs/dyn/buzz.v1.comments.html b/docs/dyn/buzz.v1.comments.html index 8a017aa..cae1aa5 100644 --- a/docs/dyn/buzz.v1.comments.html +++ b/docs/dyn/buzz.v1.comments.html @@ -41,7 +41,7 @@ Args:
insert = method(self, **kwargs)
Create a comment
 
Args:
-  body: object, The request body.
+  body: object, The request body. (required)
  userId: string, ID of the user on whose behalf to comment. (required)
  hl: string, Language code to limit language results.
  alt: string, Specifies an alternative representation type.
@@ -69,7 +69,7 @@ Args:
update = method(self, **kwargs)
Update a comment
 
Args:
-  body: object, The request body.
+  body: object, The request body. (required)
  userId: string, ID of the user being referenced. (required)
  abuseType: string, A parameter
  hl: string, Language code to limit language results.
diff --git a/docs/dyn/buzz.v1.groups.html b/docs/dyn/buzz.v1.groups.html index f768c44..2e1404f 100644 --- a/docs/dyn/buzz.v1.groups.html +++ b/docs/dyn/buzz.v1.groups.html @@ -39,7 +39,7 @@ Args:
insert = method(self, **kwargs)
Create a group
 
Args:
-  body: object, The request body.
+  body: object, The request body. (required)
  alt: string, Specifies an alternative representation type.
    Allowed values
      atom - Use Atom XML format
@@ -69,7 +69,7 @@ the collection.
update = method(self, **kwargs)
Update a group
 
Args:
-  body: object, The request body.
+  body: object, The request body. (required)
  userId: string, ID of the user being referenced. (required)
  hl: string, Language code to limit language results.
  alt: string, Specifies an alternative representation type.
diff --git a/docs/dyn/buzz.v1.people.html b/docs/dyn/buzz.v1.people.html index 1c4a424..19d9d35 100644 --- a/docs/dyn/buzz.v1.people.html +++ b/docs/dyn/buzz.v1.people.html @@ -105,7 +105,7 @@ Args:
update = method(self, **kwargs)
Add a person to a group
 
Args:
-  body: object, The request body.
+  body: object, The request body. (required)
  personId: string, ID of the person to add to the group. (required)
  userId: string, ID of the owner of the group. (required)
  hl: string, Language code to limit language results.
diff --git a/docs/dyn/buzz.v1.photoAlbums.html b/docs/dyn/buzz.v1.photoAlbums.html index ee5470d..f7b1cd8 100644 --- a/docs/dyn/buzz.v1.photoAlbums.html +++ b/docs/dyn/buzz.v1.photoAlbums.html @@ -39,7 +39,7 @@ Args:
insert = method(self, **kwargs)
Create a photo album
 
Args:
-  body: object, The request body.
+  body: object, The request body. (required)
  alt: string, Specifies an alternative representation type.
    Allowed values
      atom - Use Atom XML format
diff --git a/docs/dyn/buzz.v1.photos.html b/docs/dyn/buzz.v1.photos.html index 473700a..e9fc4b2 100644 --- a/docs/dyn/buzz.v1.photos.html +++ b/docs/dyn/buzz.v1.photos.html @@ -41,7 +41,7 @@ Args:
insert = method(self, **kwargs)
Upload a photo to an album
 
Args:
-  body: object, The request body.
+  body: object, The request body. (required)
  userId: string, ID of the user being referenced. (required)
  albumId: string, ID of the album to which to upload. (required)
  hl: string, Language code to limit language results.
@@ -53,7 +53,7 @@ Args:
insert2 = method(self, **kwargs)
Upload a photo to an album
 
Args:
-  body: object, The request body.
+  body: object, The request body. (required)
  userId: string, ID of the user being referenced. (required)
  albumId: string, ID of the album to which to upload. (required)
  hl: string, Language code to limit language results.
diff --git a/docs/dyn/customsearch.v1.cse.html b/docs/dyn/customsearch.v1.cse.html index 6d4b718..c783068 100644 --- a/docs/dyn/customsearch.v1.cse.html +++ b/docs/dyn/customsearch.v1.cse.html @@ -20,10 +20,50 @@ Args:
  sort: string, The sort expression to apply to the results
  num: string, Number of search results to return
  safe: string, Search safety level
+    Allowed values
+      high - Enables highest level of safe search filtering.
+      medium - Enables moderate safe search filtering.
+      off - Disables safe search filtering.
  q: string, Query (required)
  start: string, The index of the first result to return
  cx: string, The custom search engine ID to scope this search query
  lr: string, The language restriction for the search results
+    Allowed values
+      lang_ar - Arabic
+      lang_bg - Bulgarian
+      lang_ca - Catalan
+      lang_cs - Czech
+      lang_da - Danish
+      lang_de - German
+      lang_el - Greek
+      lang_en - English
+      lang_es - Spanish
+      lang_et - Estonian
+      lang_fi - Finnish
+      lang_fr - French
+      lang_hr - Croatian
+      lang_hu - Hungarian
+      lang_id - Indonesian
+      lang_is - Icelandic
+      lang_it - Italian
+      lang_iw - Hebrew
+      lang_ja - Japanese
+      lang_ko - Korean
+      lang_lt - Lithuanian
+      lang_lv - Latvian
+      lang_nl - Dutch
+      lang_no - Norwegian
+      lang_pl - Polish
+      lang_pt - Portuguese
+      lang_ro - Romanian
+      lang_ru - Russian
+      lang_sk - Slovak
+      lang_sl - Slovenian
+      lang_sr - Serbian
+      lang_sv - Swedish
+      lang_tr - Turkish
+      lang_zh-CN - Chinese (Simplified)
+      lang_zh-TW - Chinese (Traditional)
  cref: string, The URL of a linked custom search engine

diff --git a/docs/dyn/latitude.v1.currentLocation.html b/docs/dyn/latitude.v1.currentLocation.html index 97ac559..49a1025 100644 --- a/docs/dyn/latitude.v1.currentLocation.html +++ b/docs/dyn/latitude.v1.currentLocation.html @@ -26,7 +26,7 @@ Args:
insert = method(self, **kwargs)
Updates or creates the user's current location.
 
Args:
-  body: object, The request body.
+  body: object, The request body. (required)

Data descriptors defined here:
diff --git a/docs/dyn/latitude.v1.location.html b/docs/dyn/latitude.v1.location.html index d9f98f3..1ddb011 100644 --- a/docs/dyn/latitude.v1.location.html +++ b/docs/dyn/latitude.v1.location.html @@ -28,7 +28,7 @@ Args:
insert = method(self, **kwargs)
Inserts or updates a location in the user's location history.
 
Args:
-  body: object, The request body.
+  body: object, The request body. (required)
list = method(self, **kwargs)
Lists the user's location history.
 
diff --git a/docs/dyn/moderator.v1.featured.series.html b/docs/dyn/moderator.v1.featured.series.html index dcdb802..90a5b89 100644 --- a/docs/dyn/moderator.v1.featured.series.html +++ b/docs/dyn/moderator.v1.featured.series.html @@ -14,7 +14,7 @@
Methods defined here:
__init__(self)
-
list = method(self, **kwargs)
A description of how to use this function
+
list = method(self, **kwargs)
Lists the featured series.
 
Args:
diff --git a/docs/dyn/moderator.v1.global.series.html b/docs/dyn/moderator.v1.global.series.html index eaa7fae..0448fb2 100644 --- a/docs/dyn/moderator.v1.global.series.html +++ b/docs/dyn/moderator.v1.global.series.html @@ -14,7 +14,7 @@
Methods defined here:
__init__(self)
-
list = method(self, **kwargs)
A description of how to use this function
+
list = method(self, **kwargs)
Searches the public series and returns the search results.
 
Args:
  q: string, Search query.
diff --git a/docs/dyn/moderator.v1.my.series.html b/docs/dyn/moderator.v1.my.series.html index dcdb802..faf5bd2 100644 --- a/docs/dyn/moderator.v1.my.series.html +++ b/docs/dyn/moderator.v1.my.series.html @@ -14,7 +14,7 @@
Methods defined here:
__init__(self)
-
list = method(self, **kwargs)
A description of how to use this function
+
list = method(self, **kwargs)
Lists all series created by the authenticated user.
 
Args:
diff --git a/docs/dyn/moderator.v1.myrecent.series.html b/docs/dyn/moderator.v1.myrecent.series.html index dcdb802..8ab5c8c 100644 --- a/docs/dyn/moderator.v1.myrecent.series.html +++ b/docs/dyn/moderator.v1.myrecent.series.html @@ -14,7 +14,7 @@
Methods defined here:
__init__(self)
-
list = method(self, **kwargs)
A description of how to use this function
+
list = method(self, **kwargs)
Lists the series the authenticated user has visited.
 
Args:
diff --git a/docs/dyn/moderator.v1.profiles.html b/docs/dyn/moderator.v1.profiles.html index a497cb6..d99ab25 100644 --- a/docs/dyn/moderator.v1.profiles.html +++ b/docs/dyn/moderator.v1.profiles.html @@ -14,14 +14,14 @@
Methods defined here:
__init__(self)
-
get = method(self, **kwargs)
A description of how to use this function
+
get = method(self, **kwargs)
Returns the profile information for the authenticated user.
 
Args:
-
update = method(self, **kwargs)
A description of how to use this function
+
update = method(self, **kwargs)
Updates the profile information for the authenticated user.
 
Args:
-  body: object, The request body.
+  body: object, The request body. (required)

Data descriptors defined here:
diff --git a/docs/dyn/moderator.v1.responses.html b/docs/dyn/moderator.v1.responses.html index 25eb8f7..d5f7c7e 100644 --- a/docs/dyn/moderator.v1.responses.html +++ b/docs/dyn/moderator.v1.responses.html @@ -14,16 +14,16 @@
Methods defined here:
__init__(self)
-
insert = method(self, **kwargs)
A description of how to use this function
+
insert = method(self, **kwargs)
Inserts a response for the specified submission in the specified topic within the specified series.
 
Args:
  seriesId: integer, The decimal ID of the Series. (required)
-  body: object, The request body.
+  body: object, The request body. (required)
  topicId: integer, The decimal ID of the Topic within the Series. (required)
  parentSubmissionId: integer, The decimal ID of the parent Submission within the Series. (required)
  anonymous: boolean, Set to true to mark the new submission as anonymous.
-
list = method(self, **kwargs)
A description of how to use this function
+
list = method(self, **kwargs)
Lists or searches the responses for the specified submission within the specified series and returns the search results.
 
Args:
  sort: string, Sort order.
diff --git a/docs/dyn/moderator.v1.series.html b/docs/dyn/moderator.v1.series.html index d216362..05bb4f8 100644 --- a/docs/dyn/moderator.v1.series.html +++ b/docs/dyn/moderator.v1.series.html @@ -14,17 +14,17 @@
Methods defined here:
__init__(self)
-
get = method(self, **kwargs)
A description of how to use this function
+
get = method(self, **kwargs)
Returns the specified series.
 
Args:
  seriesId: integer, The decimal ID of the Series. (required)
-
insert = method(self, **kwargs)
A description of how to use this function
+
insert = method(self, **kwargs)
Inserts a new series.
 
Args:
-  body: object, The request body.
+  body: object, The request body. (required)
-
list = method(self, **kwargs)
A description of how to use this function
+
list = method(self, **kwargs)
Searches the series and returns the search results.
 
Args:
  q: string, Search query.
@@ -35,11 +35,11 @@ Args:
submissions = methodResource(self)
A collection resource.
-
update = method(self, **kwargs)
A description of how to use this function
+
update = method(self, **kwargs)
Updates the specified series.
 
Args:
  seriesId: integer, The decimal ID of the Series. (required)
-  body: object, The request body.
+  body: object, The request body. (required)

Data descriptors defined here:
diff --git a/docs/dyn/moderator.v1.series.responses.html b/docs/dyn/moderator.v1.series.responses.html index 28eae93..4d2ce0d 100644 --- a/docs/dyn/moderator.v1.series.responses.html +++ b/docs/dyn/moderator.v1.series.responses.html @@ -14,7 +14,7 @@
Methods defined here:
__init__(self)
-
list = method(self, **kwargs)
A description of how to use this function
+
list = method(self, **kwargs)
Searches the responses for the specified series and returns the search results.
 
Args:
  sort: string, Sort order.
diff --git a/docs/dyn/moderator.v1.series.submissions.html b/docs/dyn/moderator.v1.series.submissions.html index e5006ec..d1ef85c 100644 --- a/docs/dyn/moderator.v1.series.submissions.html +++ b/docs/dyn/moderator.v1.series.submissions.html @@ -14,7 +14,7 @@
Methods defined here:
__init__(self)
-
list = method(self, **kwargs)
A description of how to use this function
+
list = method(self, **kwargs)
Searches the submissions for the specified series and returns the search results.
 
Args:
  lang: string, The language code for the language the client prefers resuls in.
diff --git a/docs/dyn/moderator.v1.submissions.html b/docs/dyn/moderator.v1.submissions.html index 566294a..4cc5493 100644 --- a/docs/dyn/moderator.v1.submissions.html +++ b/docs/dyn/moderator.v1.submissions.html @@ -14,19 +14,19 @@
Methods defined here:
__init__(self)
-
get = method(self, **kwargs)
A description of how to use this function
+
get = method(self, **kwargs)
Returns the specified submission within the specified series.
 
Args:
  lang: string, The language code for the language the client prefers resuls in.
  seriesId: integer, The decimal ID of the Series. (required)
  submissionId: integer, The decimal ID of the Submission within the Series. (required)
-
insert = method(self, **kwargs)
A description of how to use this function
+
insert = method(self, **kwargs)
Inserts a new submission in the specified topic within the specified series.
 
Args:
  seriesId: integer, The decimal ID of the Series. (required)
  topicId: integer, The decimal ID of the Topic within the Series. (required)
-  body: object, The request body.
+  body: object, The request body. (required)
  anonymous: boolean, Set to true to mark the new submission as anonymous.

diff --git a/docs/dyn/moderator.v1.tags.html b/docs/dyn/moderator.v1.tags.html index 23af6a6..1fe8964 100644 --- a/docs/dyn/moderator.v1.tags.html +++ b/docs/dyn/moderator.v1.tags.html @@ -14,21 +14,21 @@
Methods defined here:
__init__(self)
-
delete = method(self, **kwargs)
A description of how to use this function
+
delete = method(self, **kwargs)
Deletes the specified tag from the specified submission within the specified series.
 
Args:
  seriesId: integer, The decimal ID of the Series. (required)
  tagId: string, A parameter (required)
  submissionId: integer, The decimal ID of the Submission within the Series. (required)
-
insert = method(self, **kwargs)
A description of how to use this function
+
insert = method(self, **kwargs)
Inserts a new tag for the specified submission within the specified series.
 
Args:
  seriesId: integer, The decimal ID of the Series. (required)
-  body: object, The request body.
+  body: object, The request body. (required)
  submissionId: integer, The decimal ID of the Submission within the Series. (required)
-
list = method(self, **kwargs)
A description of how to use this function
+
list = method(self, **kwargs)
Lists all tags for the specified submission within the specified series.
 
Args:
  seriesId: integer, The decimal ID of the Series. (required)
diff --git a/docs/dyn/moderator.v1.topics.html b/docs/dyn/moderator.v1.topics.html index 163aec3..f78626b 100644 --- a/docs/dyn/moderator.v1.topics.html +++ b/docs/dyn/moderator.v1.topics.html @@ -14,19 +14,19 @@
Methods defined here:
__init__(self)
-
get = method(self, **kwargs)
A description of how to use this function
+
get = method(self, **kwargs)
Returns the specified topic from the specified series.
 
Args:
  seriesId: integer, The decimal ID of the Series. (required)
  topicId: integer, The decimal ID of the Topic within the Series. (required)
-
insert = method(self, **kwargs)
A description of how to use this function
+
insert = method(self, **kwargs)
Inserts a new topic into the specified series.
 
Args:
  seriesId: integer, The decimal ID of the Series. (required)
-  body: object, The request body.
+  body: object, The request body. (required)
-
list = method(self, **kwargs)
A description of how to use this function
+
list = method(self, **kwargs)
Searches the topics within the specified series and returns the search results.
 
Args:
  seriesId: integer, The decimal ID of the Series. (required)
@@ -37,12 +37,12 @@ Args:
submissions = methodResource(self)
A collection resource.
-
update = method(self, **kwargs)
A description of how to use this function
+
update = method(self, **kwargs)
Updates the specified topic within the specified series.
 
Args:
  seriesId: integer, The decimal ID of the Series. (required)
  topicId: integer, The decimal ID of the Topic within the Series. (required)
-  body: object, The request body.
+  body: object, The request body. (required)

Data descriptors defined here:
diff --git a/docs/dyn/moderator.v1.topics.submissions.html b/docs/dyn/moderator.v1.topics.submissions.html index f1f7a8a..064f595 100644 --- a/docs/dyn/moderator.v1.topics.submissions.html +++ b/docs/dyn/moderator.v1.topics.submissions.html @@ -14,7 +14,7 @@
Methods defined here:
__init__(self)
-
list = method(self, **kwargs)
A description of how to use this function
+
list = method(self, **kwargs)
Searches the submissions for the specified topic within the specified series and returns the search results.
 
Args:
  sort: string, Sort order.
diff --git a/docs/dyn/moderator.v1.votes.html b/docs/dyn/moderator.v1.votes.html index 168807e..ce70da7 100644 --- a/docs/dyn/moderator.v1.votes.html +++ b/docs/dyn/moderator.v1.votes.html @@ -14,32 +14,32 @@
Methods defined here:
__init__(self)
-
get = method(self, **kwargs)
A description of how to use this function
+
get = method(self, **kwargs)
Returns the votes by the authenticated user for the specified submission within the specified series.
 
Args:
  seriesId: integer, The decimal ID of the Series. (required)
  userId: string, A parameter
  submissionId: integer, The decimal ID of the Submission within the Series. (required)
-
insert = method(self, **kwargs)
A description of how to use this function
+
insert = method(self, **kwargs)
Inserts a new vote by the authenticated user for the specified submission within the specified series.
 
Args:
  seriesId: integer, The decimal ID of the Series. (required)
-  body: object, The request body.
+  body: object, The request body. (required)
  submissionId: integer, The decimal ID of the Submission within the Series. (required)
-
list = method(self, **kwargs)
A description of how to use this function
+
list = method(self, **kwargs)
Lists the votes by the authenticated user for the given series.
 
Args:
  seriesId: integer, The decimal ID of the Series. (required)
  max_results: integer, Maximum number of results to return.
  start_index: integer, Index of the first result to be retrieved.
-
update = method(self, **kwargs)
A description of how to use this function
+
update = method(self, **kwargs)
Updates the votes by the authenticated user for the specified submission within the specified series.
 
Args:
  seriesId: integer, The decimal ID of the Series. (required)
-  body: object, The request body.
+  body: object, The request body. (required)
  userId: string, A parameter
  submissionId: integer, The decimal ID of the Submission within the Series. (required)
diff --git a/docs/dyn/prediction.v1.1.html b/docs/dyn/prediction.v1.1.html index b416459..623b832 100644 --- a/docs/dyn/prediction.v1.1.html +++ b/docs/dyn/prediction.v1.1.html @@ -17,7 +17,7 @@
predict = method(self, **kwargs)
A description of how to use this function
 
Args:
-  body: object, The request body.
+  body: object, The request body. (required)
  data: string, mybucket%2Fmydata resource in Google Storage (required)
training = methodResource(self)
A collection resource.
diff --git a/docs/dyn/prediction.v1.1.training.html b/docs/dyn/prediction.v1.1.training.html index 97a11c9..e838e86 100644 --- a/docs/dyn/prediction.v1.1.training.html +++ b/docs/dyn/prediction.v1.1.training.html @@ -27,7 +27,7 @@ Args:
insert = method(self, **kwargs)
A description of how to use this function
 
Args:
-  body: object, The request body.
+  body: object, The request body. (required)
  data: string, mybucket%2Fmydata resource in Google Storage (required)

diff --git a/docs/dyn/shopping.v1.products.html b/docs/dyn/shopping.v1.products.html index b7b4e18..b304fcb 100644 --- a/docs/dyn/shopping.v1.products.html +++ b/docs/dyn/shopping.v1.products.html @@ -19,8 +19,7 @@ Args:
  productIdType: string, Type of productId (required)
  categories_include: string, Category specification
-  debug_searchResponse: boolean, Google Internal
-  debug_useGcsConfig: boolean, Google Internal
+  thumbnails: string, Thumbnail specification
  taxonomy: string, Merchant taxonomy
  recommendations_include: string, Recommendation specification
  debug_enableLogging: boolean, Google Internal
@@ -33,7 +32,7 @@ Args:
  productId: string, Id of product (required)
  categories_useGcsConfig: boolean, This parameter is currently ignored
  accountId: string, Merchant center account id (required)
-  thumbnails: string, Thumbnail specification
+  debug_searchResponse: boolean, Google Internal
list = method(self, **kwargs)
Returns a list of products and content modules
 
@@ -43,6 +42,7 @@ Args:
  debug_searchResponse: boolean, Google Internal
  taxonomy: string, Taxonomy name
  promotions_enabled: boolean, Whether to return promotion information
+  debug_rdcResponse: boolean, Google Internal
  facets_discover: string, Facets to discover
  startIndex: integer, Index (1-based) of first product to return
  redirects_useGcsConfig: boolean, Whether to return redirect information as configured in the GCS account
@@ -55,7 +55,6 @@ Args:
  debug_searchRequest: boolean, Google Internal
  facets_useGcsConfig: boolean, Whether to return facet information as configured in the GCS account
  boostBy: string, Boosting specification
-  debug_useGcsConfig: boolean, Google Internal
  debug_enableLogging: boolean, Google Internal
  maxResults: integer, Maximum number of results to return
  categories_enabled: boolean, Whether to return category information
diff --git a/docs/dyn/urlshortener.v1.url.html b/docs/dyn/urlshortener.v1.url.html index 1638157..23a753d 100644 --- a/docs/dyn/urlshortener.v1.url.html +++ b/docs/dyn/urlshortener.v1.url.html @@ -27,7 +27,7 @@ Args:
insert = method(self, **kwargs)
Creates a new short URL.
 
Args:
-  body: object, The request body.
+  body: object, The request body. (required)
list = method(self, **kwargs)
Retrieves a list of URLs shortened by a user.
 
diff --git a/docs/oauth2client.client.html b/docs/oauth2client.client.html index e840140..daefaab 100644 --- a/docs/oauth2client.client.html +++ b/docs/oauth2client.client.html @@ -115,7 +115,7 @@ This is one of the few types if Credentials objects are usually instantiated by a Flow.
 
Args:
-  token_uri: string, URI of token endpoint.
+  access_token: string, access token.
  user_agent: string, The HTTP User-Agent to provide for this application.
 
Notes:
diff --git a/runtests.py b/runtests.py index 6fd426d..d331e01 100644 --- a/runtests.py +++ b/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()