| Copyright | (c) 2015-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.Poly.Assets.Get
Description
Returns detailed information about an asset given its name. PRIVATE assets are returned only if the currently authenticated user (via OAuth token) is the author of the asset.
See: Poly API Reference for poly.assets.get.
Synopsis
- type AssetsGetResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Asset)))))))
- assetsGet :: Text -> AssetsGet
- data AssetsGet
- agXgafv :: Lens' AssetsGet (Maybe Xgafv)
- agUploadProtocol :: Lens' AssetsGet (Maybe Text)
- agAccessToken :: Lens' AssetsGet (Maybe Text)
- agUploadType :: Lens' AssetsGet (Maybe Text)
- agName :: Lens' AssetsGet Text
- agCallback :: Lens' AssetsGet (Maybe Text)
REST Resource
type AssetsGetResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Asset))))))) Source #
A resource alias for poly.assets.get method which the
AssetsGet request conforms to.
Creating a Request
Creates a value of AssetsGet with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Returns detailed information about an asset given its name. PRIVATE assets are returned only if the currently authenticated user (via OAuth token) is the author of the asset.
See: assetsGet smart constructor.
Instances
Request Lenses
agUploadProtocol :: Lens' AssetsGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").