@@ -72,7 +72,7 @@ type ObjectsInsertResource =
7272 QueryParam "key" AuthKey :>
7373 QueryParam "oauth_token" OAuthToken :>
7474 QueryParam "alt" AltJSON :>
75− MultipartRelated '[JSON] Object Body :>
75+ MultipartRelated '[JSON] Object Stream :>
7676 Post '[JSON] Object
7777 :<|>
7878 "b" :>
@@ -91,8 +91,8 @@ type ObjectsInsertResource =
9191 QueryParam "key" AuthKey :>
9292 QueryParam "oauth_token" OAuthToken :>
9393 QueryParam "alt" AltMedia :>
94− MultipartRelated '[JSON] Object Body :>
95− Post '[OctetStream] Body
94+ MultipartRelated '[JSON] Object Stream :>
95+ Post '[OctetStream] Stream
9696
9797-- | Stores new data blobs and associated metadata.
9898--
@@ -106,14 +106,14 @@ data ObjectsInsert' = ObjectsInsert'
106106 , _oiUserIP :: !(Maybe Text)
107107 , _oiBucket :: !Text
108108 , _oiPayload :: !Object
109− , _oiMedia :: !Body
109+ , _oiMedia :: !Stream
110110 , _oiKey :: !(Maybe AuthKey)
111111 , _oiName :: !(Maybe Text)
112112 , _oiIfMetagenerationNotMatch :: !(Maybe Word64)
113113 , _oiProjection :: !(Maybe ObjectsInsertProjection)
114114 , _oiOAuthToken :: !(Maybe OAuthToken)
115115 , _oiFields :: !(Maybe Text)
116− } deriving (Eq,Show,Data,Typeable,Generic)
116+ }
117117
118118-- | Creates a value of 'ObjectsInsert'' with the minimum fields required to make a request.
119119--
@@ -151,7 +151,7 @@ data ObjectsInsert' = ObjectsInsert'
151151objectsInsert'
152152 :: Text -- ^ 'bucket'
153153 -> Object -- ^ 'payload'
154− -> Body -- ^ 'media'
154+ -> Stream -- ^ 'media'
155155 -> ObjectsInsert'
156156objectsInsert' pOiBucket_ pOiPayload_ pOiMedia_ =
157157 ObjectsInsert'
@@ -221,7 +221,7 @@ oiPayload :: Lens' ObjectsInsert' Object
221221oiPayload
222222 = lens _oiPayload (\ s a -> s{_oiPayload = a})
223223
224−oiMedia :: Lens' ObjectsInsert' Body
224+oiMedia :: Lens' ObjectsInsert' Stream
225225oiMedia = lens _oiMedia (\ s a -> s{_oiMedia = a})
226226
227227-- | API key. Your API key identifies your project and provides you with API
@@ -286,7 +286,7 @@ instance GoogleRequest ObjectsInsert' where
286286
287287instance GoogleRequest (MediaDownload ObjectsInsert')
288288 where
289− type Rs (MediaDownload ObjectsInsert') = Body
289+ type Rs (MediaDownload ObjectsInsert') = Stream
290290 request = requestWith storageRequest
291291 requestWith rq (MediaDownload ObjectsInsert'{..})
292292 = go _oiBucket _oiIfMetagenerationMatch