gogol-poly-0.4.0: Google Poly SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Poly.Assets.Get

Contents

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

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

assetsGet Source #

Arguments

:: Text

agName

-> AssetsGet 

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:

data AssetsGet Source #

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
Eq AssetsGet Source # 
Instance details

Defined in Network.Google.Resource.Poly.Assets.Get

Data AssetsGet Source # 
Instance details

Defined in Network.Google.Resource.Poly.Assets.Get

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AssetsGet -> c AssetsGet #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AssetsGet #

toConstr :: AssetsGet -> Constr #

dataTypeOf :: AssetsGet -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AssetsGet) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AssetsGet) #

gmapT :: (forall b. Data b => b -> b) -> AssetsGet -> AssetsGet #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AssetsGet -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AssetsGet -> r #

gmapQ :: (forall d. Data d => d -> u) -> AssetsGet -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AssetsGet -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AssetsGet -> m AssetsGet #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AssetsGet -> m AssetsGet #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AssetsGet -> m AssetsGet #

Show AssetsGet Source # 
Instance details

Defined in Network.Google.Resource.Poly.Assets.Get

Generic AssetsGet Source # 
Instance details

Defined in Network.Google.Resource.Poly.Assets.Get

Associated Types

type Rep AssetsGet :: Type -> Type #

GoogleRequest AssetsGet Source # 
Instance details

Defined in Network.Google.Resource.Poly.Assets.Get

Associated Types

type Rs AssetsGet :: Type #

type Scopes AssetsGet :: [Symbol] #

type Rep AssetsGet Source # 
Instance details

Defined in Network.Google.Resource.Poly.Assets.Get

type Rep AssetsGet = D1 (MetaData "AssetsGet" "Network.Google.Resource.Poly.Assets.Get" "gogol-poly-0.4.0-GC6geLrQx0RHso7Xpq3nv1" False) (C1 (MetaCons "AssetsGet'" PrefixI True) ((S1 (MetaSel (Just "_agXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_agUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_agAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_agUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_agName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_agCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes AssetsGet Source # 
Instance details

Defined in Network.Google.Resource.Poly.Assets.Get

type Scopes AssetsGet = ([] :: [Symbol])
type Rs AssetsGet Source # 
Instance details

Defined in Network.Google.Resource.Poly.Assets.Get

Request Lenses

agXgafv :: Lens' AssetsGet (Maybe Xgafv) Source #

V1 error format.

agUploadProtocol :: Lens' AssetsGet (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

agAccessToken :: Lens' AssetsGet (Maybe Text) Source #

OAuth access token.

agUploadType :: Lens' AssetsGet (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

agName :: Lens' AssetsGet Text Source #

Required. An asset's name in the form `assets/{ASSET_ID}`.