1 /**
  2  * @fileOverview Google Connection.
  3  */
  4 
  5 /** @ignore */
  6 (function () {
  7   var util = require('util'),
  8     utils = require("../../utils"),
  9     BaseConnection = require("../aws/connection").Connection,
 10     GoogleConnection;
 11 
 12   /**
 13    * Connection class.
 14    *
 15    * @param {Authentication} auth Authentication object.
 16    * @extends provider.aws.Connection
 17    * @exports GoogleConnection as provider.google.Connection
 18    * @constructor
 19    */
 20   GoogleConnection = function (auth) {
 21     var self = this;
 22 
 23     BaseConnection.apply(self, arguments);
 24 
 25     // Header prefixes.
 26     self._HEADER_PREFIX = "x-goog-";
 27     self._METADATA_PREFIX = "x-goog-meta-";
 28 
 29     // Update variables.
 30     self._ERRORS.CONTAINER_OTHER_OWNER.attrs = {
 31       statusCode: 409,
 32       errorCode: "BucketNameUnavailable"
 33     };
 34     self._ERRORS.CONTAINER_ALREADY_OWNED_BY_YOU.attrs = {
 35       statusCode: 409,
 36       errorCode: "BucketAlreadyOwnedByYou"
 37     };
 38   };
 39 
 40   util.inherits(GoogleConnection, BaseConnection);
 41 
 42   module.exports.Connection = GoogleConnection;
 43 }());
 44