Mostly doc updates, +remove support for method as string

This commit is contained in:
Steven Bazyl committed 2012-09-28 12:07:11 -07:00
1 parent 9bbc3224ff
commit 4d3c1801b7
11 files changed
+404 -158

No files matched your search

+4 -8
View File
@@ -29,13 +29,9 @@ module Google
##
# Creates a description of a particular version of a service.
#
# @param [String] api
# The identifier for the service. Note that while this frequently
# matches the first segment of all of the service's RPC names, this
# should not be assumed. There is no requirement that these match.
# @param [String] version
# The identifier for the service version.
# @param [Hash] api_description
# @param [String] document_base
# Base URI for the service
# @param [Hash] discovery_document
# The section of the discovery document that applies to this service
# version.
#
@@ -159,7 +155,7 @@ module Google
##
# Updates the hierarchy of resources and methods with the new base.
#
# @param [Addressable::URI, #to_str, String] new_base
# @param [Addressable::URI, #to_str, String] new_method_base
# The new base URI to use for the service.
def method_base=(new_method_base)
@method_base = Addressable::URI.parse(new_method_base)
+5 -2
View File
@@ -34,7 +34,7 @@ module Google
# The base URI for the service.
# @param [String] method_name
# The identifier for the method.
# @param [Hash] method_description
# @param [Hash] discovery_document
# The section of the discovery document that applies to this method.
#
# @return [Google::APIClient::Method] The constructed method object.
@@ -74,7 +74,7 @@ module Google
##
# Updates the method with the new base.
#
# @param [Addressable::URI, #to_str, String] new_base
# @param [Addressable::URI, #to_str, String] new_method_base
# The new base URI to use for the method.
def method_base=(new_method_base)
@method_base = Addressable::URI.parse(new_method_base)
@@ -176,6 +176,7 @@ module Google
##
# Expands the method's URI template using a parameter list.
#
# @api private
# @param [Hash, Array] parameters
# The parameter list to use.
#
@@ -214,6 +215,7 @@ module Google
##
# Generates an HTTP request for this method.
#
# @api private
# @param [Hash, Array] parameters
# The parameters to send.
# @param [String, StringIO] body The body for the HTTP request.
@@ -288,6 +290,7 @@ module Google
# Verifies that the parameters are valid for this method. Raises an
# exception if validation fails.
#
# @api private
# @param [Hash, Array] parameters
# The parameters to verify.
#
+5 -3
View File
@@ -28,11 +28,13 @@ module Google
##
# Creates a description of a particular version of a resource.
#
# @param [Addressable::URI] base
# @param [Google::APIClient::API] api
# The API this resource belongs to.
# @param [Addressable::URI] method_base
# The base URI for the service.
# @param [String] resource_name
# The identifier for the resource.
# @param [Hash] resource_description
# @param [Hash] discovery_document
# The section of the discovery document that applies to this resource.
#
# @return [Google::APIClient::Resource] The constructed resource object.
@@ -78,7 +80,7 @@ module Google
##
# Updates the hierarchy of resources and methods with the new base.
#
# @param [Addressable::URI, #to_str, String] new_base
# @param [Addressable::URI, #to_str, String] new_method_base
# The new base URI to use for the resource.
def method_base=(new_method_base)
@method_base = Addressable::URI.parse(new_method_base)
@@ -27,6 +27,8 @@ require 'google/api_client/errors'
module Google
class APIClient
##
# @api private
module Schema
def self.parse(api, schema_data)
# This method is super-long, but hard to break up due to the