Adding batch support
This commit is contained in:
1 parent
c44ca3afc1
commit
a666d52770
7 files changed
+691
-39
No files matched your search
@@ -28,6 +28,8 @@ module Google
|
||||
##
|
||||
# Creates a description of a particular method.
|
||||
#
|
||||
# @param [Google::APIClient::API] api
|
||||
# The API this method belongs to.
|
||||
# @param [Addressable::URI] method_base
|
||||
# The base URI for the service.
|
||||
# @param [String] method_name
|
||||
@@ -43,6 +45,12 @@ module Google
|
||||
@discovery_document = discovery_document
|
||||
end
|
||||
|
||||
##
|
||||
# Returns the API this method belongs to.
|
||||
#
|
||||
# @return [Google::APIClient::API] The API this method belongs to.
|
||||
attr_reader :api
|
||||
|
||||
##
|
||||
# Returns the identifier for the method.
|
||||
#
|
||||
@@ -111,7 +119,7 @@ module Google
|
||||
return nil
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
##
|
||||
# Returns the Schema object for the method's request, if any.
|
||||
#
|
||||
@@ -183,7 +191,7 @@ module Google
|
||||
end
|
||||
case upload_type.last
|
||||
when 'media', 'multipart', 'resumable'
|
||||
uri = self.media_upload.uri_template.expand(parameters)
|
||||
uri = self.media_upload.uri_template.expand(parameters)
|
||||
else
|
||||
raise ArgumentException, "Invalid uploadType '#{upload_type}'"
|
||||
end
|
||||
@@ -232,7 +240,7 @@ module Google
|
||||
req.body = body
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
##
|
||||
# Returns a <code>Hash</code> of the parameter descriptions for
|
||||
|
||||
Reference in new issue
Block a user