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.List

Contents

Description

Lists all public, remixable assets. These are assets with an access level of PUBLIC and published under the CC-By license.

See: Poly API Reference for poly.assets.list.

Synopsis

REST Resource

type AssetsListResource = "v1" :> ("assets" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "orderBy" Text :> (QueryParam "category" Text :> (QueryParam "access_token" Text :> (QueryParam "format" Text :> (QueryParam "uploadType" Text :> (QueryParam "keywords" Text :> (QueryParam "pageToken" Text :> (QueryParam "curated" Bool :> (QueryParam "maxComplexity" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListAssetsResponse))))))))))))))) Source #

A resource alias for poly.assets.list method which the AssetsList request conforms to.

Creating a Request

assetsList :: AssetsList Source #

Creates a value of AssetsList with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data AssetsList Source #

Lists all public, remixable assets. These are assets with an access level of PUBLIC and published under the CC-By license.

See: assetsList smart constructor.

Instances
Eq AssetsList Source # 
Instance details

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

Data AssetsList Source # 
Instance details

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

Methods

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

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

toConstr :: AssetsList -> Constr #

dataTypeOf :: AssetsList -> DataType #

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

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

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

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

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

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

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

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

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

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

Show AssetsList Source # 
Instance details

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

Generic AssetsList Source # 
Instance details

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

Associated Types

type Rep AssetsList :: Type -> Type #

GoogleRequest AssetsList Source # 
Instance details

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

Associated Types

type Rs AssetsList :: Type #

type Scopes AssetsList :: [Symbol] #

type Rep AssetsList Source # 
Instance details

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

type Rep AssetsList = D1 (MetaData "AssetsList" "Network.Google.Resource.Poly.Assets.List" "gogol-poly-0.4.0-GC6geLrQx0RHso7Xpq3nv1" False) (C1 (MetaCons "AssetsList'" PrefixI True) (((S1 (MetaSel (Just "_alXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_alUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_alOrderBy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_alCategory") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_alAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_alFormat") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 (MetaSel (Just "_alUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_alKeywords") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_alPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_alCurated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_alMaxComplexity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_alPageSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_alCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))
type Scopes AssetsList Source # 
Instance details

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

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

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

Request Lenses

alXgafv :: Lens' AssetsList (Maybe Xgafv) Source #

V1 error format.

alUploadProtocol :: Lens' AssetsList (Maybe Text) Source #

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

alOrderBy :: Lens' AssetsList (Maybe Text) Source #

Specifies an ordering for assets. Acceptable values are: `BEST`, `NEWEST`, `OLDEST`. Defaults to `BEST`, which ranks assets based on a combination of popularity and other features.

alCategory :: Lens' AssetsList (Maybe Text) Source #

Filter assets based on the specified category. Supported values are: `animals`, `architecture`, `art`, `food`, `nature`, `objects`, `people`, `scenes`, `technology`, and `transport`.

alAccessToken :: Lens' AssetsList (Maybe Text) Source #

OAuth access token.

alFormat :: Lens' AssetsList (Maybe Text) Source #

Return only assets with the matching format. Acceptable values are: `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`.

alUploadType :: Lens' AssetsList (Maybe Text) Source #

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

alKeywords :: Lens' AssetsList (Maybe Text) Source #

One or more search terms to be matched against all text that Poly has indexed for assets, which includes display_name, description, and tags. Multiple keywords should be separated by spaces.

alPageToken :: Lens' AssetsList (Maybe Text) Source #

Specifies a continuation token from a previous search whose results were split into multiple pages. To get the next page, submit the same request specifying the value from next_page_token.

alCurated :: Lens' AssetsList (Maybe Bool) Source #

Return only assets that have been curated by the Poly team.

alMaxComplexity :: Lens' AssetsList (Maybe Text) Source #

Returns assets that are of the specified complexity or less. Defaults to COMPLEX. For example, a request for MEDIUM assets also includes SIMPLE assets.

alPageSize :: Lens' AssetsList (Maybe Int32) Source #

The maximum number of assets to be returned. This value must be between `1` and `100`. Defaults to `20`.