lib/aws/glacier/client.rb in aws-sdk-1.12.0 vs lib/aws/glacier/client.rb in aws-sdk-1.13.0

- old
+ new

@@ -21,13 +21,27 @@ # glacier = AWS::Glacier.new # resp = glacier.client.list_vaults(:account_id => '-') # class Client < Core::RESTJSONClient + API_VERSION = '2012-06-01' + # @api private CACHEABLE_REQUESTS = Set[] + private + + def build_request *args + request = super(*args) + request.headers['x-amz-glacier-version'] = self.class.const_get(:API_VERSION) + request + end + + end + + class Client::V20120601 < Client + # client methods # # @!method abort_multipart_upload(options = {}) # Calls the DELETE AbortMultipartUpload API operation. # @param [Hash] options @@ -303,17 +317,9 @@ # @return [Core::Response] # end client methods # define_client_methods('2012-06-01') - - private - - def build_request *args - request = super(*args) - request.headers['x-amz-glacier-version'] = API_VERSION - request - end end end end