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 |
- Service Configuration
- API Declaration
- Resources
- Types
- ImageErrorCode
- ObjParseError
- PresentationParams
- ListLikedAssetsResponse
- RemixInfo
- Quaternion
- Asset
- Format
- AssetImportMessageCode
- AssetImportMessage
- StartAssetImportResponse
- AssetVisibility
- ImageError
- FormatComplexity
- ObjParseErrorCode
- ListAssetsResponse
- Xgafv
- ListUserAssetsResponse
- AssetLicense
- PresentationParamsColorSpace
- File
- UserAsset
The Poly API provides read access to assets hosted on poly.google.com to all, and upload access to poly.google.com for whitelisted accounts.
See: Poly API Reference
Synopsis
- polyService :: ServiceConfig
- type PolyAPI = UsersLikedassetsListResource :<|> (UsersAssetsListResource :<|> (AssetsListResource :<|> AssetsGetResource))
- module Network.Google.Resource.Poly.Assets.Get
- module Network.Google.Resource.Poly.Assets.List
- module Network.Google.Resource.Poly.Users.Assets.List
- module Network.Google.Resource.Poly.Users.Likedassets.List
- data ImageErrorCode
- data ObjParseError
- objParseError :: ObjParseError
- opeLineNumber :: Lens' ObjParseError (Maybe Int32)
- opeFilePath :: Lens' ObjParseError (Maybe Text)
- opeLine :: Lens' ObjParseError (Maybe Text)
- opeEndIndex :: Lens' ObjParseError (Maybe Int32)
- opeCode :: Lens' ObjParseError (Maybe ObjParseErrorCode)
- opeStartIndex :: Lens' ObjParseError (Maybe Int32)
- data PresentationParams
- presentationParams :: PresentationParams
- ppBackgRoundColor :: Lens' PresentationParams (Maybe Text)
- ppOrientingRotation :: Lens' PresentationParams (Maybe Quaternion)
- ppColorSpace :: Lens' PresentationParams (Maybe PresentationParamsColorSpace)
- data ListLikedAssetsResponse
- listLikedAssetsResponse :: ListLikedAssetsResponse
- llarNextPageToken :: Lens' ListLikedAssetsResponse (Maybe Text)
- llarTotalSize :: Lens' ListLikedAssetsResponse (Maybe Int32)
- llarAssets :: Lens' ListLikedAssetsResponse [Asset]
- data RemixInfo
- remixInfo :: RemixInfo
- riSourceAsset :: Lens' RemixInfo [Text]
- data Quaternion
- quaternion :: Quaternion
- qW :: Lens' Quaternion (Maybe Double)
- qZ :: Lens' Quaternion (Maybe Double)
- qX :: Lens' Quaternion (Maybe Double)
- qY :: Lens' Quaternion (Maybe Double)
- data Asset
- asset :: Asset
- aThumbnail :: Lens' Asset (Maybe File)
- aPresentationParams :: Lens' Asset (Maybe PresentationParams)
- aIsCurated :: Lens' Asset (Maybe Bool)
- aAuthorName :: Lens' Asset (Maybe Text)
- aRemixInfo :: Lens' Asset (Maybe RemixInfo)
- aFormats :: Lens' Asset [Format]
- aVisibility :: Lens' Asset (Maybe AssetVisibility)
- aUpdateTime :: Lens' Asset (Maybe UTCTime)
- aName :: Lens' Asset (Maybe Text)
- aMetadata :: Lens' Asset (Maybe Text)
- aDisplayName :: Lens' Asset (Maybe Text)
- aLicense :: Lens' Asset (Maybe AssetLicense)
- aDescription :: Lens' Asset (Maybe Text)
- aCreateTime :: Lens' Asset (Maybe UTCTime)
- data Format
- format :: Format
- fRoot :: Lens' Format (Maybe File)
- fResources :: Lens' Format [File]
- fFormatComplexity :: Lens' Format (Maybe FormatComplexity)
- fFormatType :: Lens' Format (Maybe Text)
- data AssetImportMessageCode
- data AssetImportMessage
- assetImportMessage :: AssetImportMessage
- aimObjParseError :: Lens' AssetImportMessage (Maybe ObjParseError)
- aimFilePath :: Lens' AssetImportMessage (Maybe Text)
- aimImageError :: Lens' AssetImportMessage (Maybe ImageError)
- aimCode :: Lens' AssetImportMessage (Maybe AssetImportMessageCode)
- data StartAssetImportResponse
- startAssetImportResponse :: StartAssetImportResponse
- sairPublishURL :: Lens' StartAssetImportResponse (Maybe Text)
- sairAssetImportMessages :: Lens' StartAssetImportResponse [AssetImportMessage]
- sairAssetImportId :: Lens' StartAssetImportResponse (Maybe Text)
- sairAssetId :: Lens' StartAssetImportResponse (Maybe Text)
- data AssetVisibility
- data ImageError
- imageError :: ImageError
- ieFilePath :: Lens' ImageError (Maybe Text)
- ieCode :: Lens' ImageError (Maybe ImageErrorCode)
- data FormatComplexity
- formatComplexity :: FormatComplexity
- fcTriangleCount :: Lens' FormatComplexity (Maybe Int64)
- fcLodHint :: Lens' FormatComplexity (Maybe Int32)
- data ObjParseErrorCode
- = OPECCodeUnspecified
- | OPECInconsistentVertexRefs
- | OPECInvalidCommand
- | OPECInvalidNumber
- | OPECInvalidVertexRef
- | OPECMissingGeometricVertex
- | OPECMissingToken
- | OPECTooFewDimensions
- | OPECTooFewVertices
- | OPECTooManyDimensions
- | OPECUnsupportedCommand
- | OPECUnusedTokens
- | OPECVertexNotFound
- | OPECNumberOutOfRange
- | OPECInvalidValue
- | OPECInvalidTextureOption
- | OPECTooManyProblems
- | OPECMissingFileName
- | OPECFileNotFound
- | OPECUnknownMaterial
- | OPECNoMaterialDefined
- | OPECInvalidSmoothingGroup
- | OPECMissingVertexColors
- | OPECFileSubstitution
- | OPECLineTooLong
- | OPECInvalidFilePath
- data ListAssetsResponse
- listAssetsResponse :: ListAssetsResponse
- larNextPageToken :: Lens' ListAssetsResponse (Maybe Text)
- larTotalSize :: Lens' ListAssetsResponse (Maybe Int32)
- larAssets :: Lens' ListAssetsResponse [Asset]
- data Xgafv
- data ListUserAssetsResponse
- listUserAssetsResponse :: ListUserAssetsResponse
- luarNextPageToken :: Lens' ListUserAssetsResponse (Maybe Text)
- luarTotalSize :: Lens' ListUserAssetsResponse (Maybe Int32)
- luarUserAssets :: Lens' ListUserAssetsResponse [UserAsset]
- data AssetLicense
- data PresentationParamsColorSpace
- data File
- file :: File
- fURL :: Lens' File (Maybe Text)
- fRelativePath :: Lens' File (Maybe Text)
- fContentType :: Lens' File (Maybe Text)
- data UserAsset
- userAsset :: UserAsset
- uaAsset :: Lens' UserAsset (Maybe Asset)
Service Configuration
polyService :: ServiceConfig Source #
Default request referring to version v1
of the Poly API. This contains the host and root path used as a starting point for constructing service requests.
API Declaration
type PolyAPI = UsersLikedassetsListResource :<|> (UsersAssetsListResource :<|> (AssetsListResource :<|> AssetsGetResource)) Source #
Represents the entirety of the methods and resources available for the Poly API service.
Resources
poly.assets.get
poly.assets.list
poly.users.assets.list
poly.users.likedassets.list
Types
ImageErrorCode
data ImageErrorCode Source #
The type of image error encountered. Optional for older image errors.
CodeUnspecified |
|
InvalidImage |
|
ImageTooBig |
|
WrongImageType |
|
Instances
ObjParseError
data ObjParseError Source #
Details of an error resulting from parsing an OBJ file
See: objParseError
smart constructor.
Instances
objParseError :: ObjParseError Source #
Creates a value of ObjParseError
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
opeLineNumber :: Lens' ObjParseError (Maybe Int32) Source #
Line number at which the problem was found.
opeFilePath :: Lens' ObjParseError (Maybe Text) Source #
The file path in which the problem was found.
opeLine :: Lens' ObjParseError (Maybe Text) Source #
The text of the line. Note that this may be truncated if the line was very long. This may not include the error if it occurs after line truncation.
opeEndIndex :: Lens' ObjParseError (Maybe Int32) Source #
The ending character index at which the problem was found.
opeCode :: Lens' ObjParseError (Maybe ObjParseErrorCode) Source #
The type of problem found (required).
opeStartIndex :: Lens' ObjParseError (Maybe Int32) Source #
The starting character index at which the problem was found.
PresentationParams
data PresentationParams Source #
Hints for displaying the asset, based on information available when the asset was uploaded.
See: presentationParams
smart constructor.
Instances
presentationParams :: PresentationParams Source #
Creates a value of PresentationParams
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ppBackgRoundColor :: Lens' PresentationParams (Maybe Text) Source #
A background color which could be used for displaying the 3D asset in a 'thumbnail' or 'palette' style view. Authors have the option to set this background color when publishing or editing their asset. This is represented as a six-digit hexademical triplet specifying the RGB components of the background color, e.g. #FF0000 for Red.
ppOrientingRotation :: Lens' PresentationParams (Maybe Quaternion) Source #
A rotation that should be applied to the object root to make it upright. More precisely, this quaternion transforms from "object space" (the space in which the object is defined) to "presentation space", a coordinate system where +Y is up, +X is right, -Z is forward. For example, if the object is the Eiffel Tower, in its local coordinate system the object might be laid out such that the base of the tower is on the YZ plane and the tip of the tower is towards positive X. In this case this quaternion would specify a rotation (of 90 degrees about the Z axis) such that in the presentation space the base of the tower is aligned with the XZ plane, and the tip of the tower lies towards +Y. This rotation is unrelated to the object's pose in the web preview, which is just a camera position setting and is *not* reflected in this rotation. Please note: this is applicable only to the gLTF.
ppColorSpace :: Lens' PresentationParams (Maybe PresentationParamsColorSpace) Source #
The materials' diffuse/albedo color. This does not apply to vertex colors or texture maps.
ListLikedAssetsResponse
data ListLikedAssetsResponse Source #
A response message from a request to list.
See: listLikedAssetsResponse
smart constructor.
Instances
listLikedAssetsResponse :: ListLikedAssetsResponse Source #
Creates a value of ListLikedAssetsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
llarNextPageToken :: Lens' ListLikedAssetsResponse (Maybe Text) Source #
The continuation token for retrieving the next page. If empty, indicates that there are no more pages. To get the next page, submit the same request specifying this value as the page_token.
llarTotalSize :: Lens' ListLikedAssetsResponse (Maybe Int32) Source #
The total number of assets in the list, without pagination.
llarAssets :: Lens' ListLikedAssetsResponse [Asset] Source #
A list of assets that match the criteria specified in the request.
RemixInfo
Info about the sources of this asset (i.e. assets that were remixed to create this asset).
See: remixInfo
smart constructor.
Instances
Eq RemixInfo Source # | |
Data RemixInfo Source # | |
Defined in Network.Google.Poly.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RemixInfo -> c RemixInfo # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RemixInfo # toConstr :: RemixInfo -> Constr # dataTypeOf :: RemixInfo -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RemixInfo) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RemixInfo) # gmapT :: (forall b. Data b => b -> b) -> RemixInfo -> RemixInfo # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RemixInfo -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RemixInfo -> r # gmapQ :: (forall d. Data d => d -> u) -> RemixInfo -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> RemixInfo -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> RemixInfo -> m RemixInfo # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RemixInfo -> m RemixInfo # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RemixInfo -> m RemixInfo # | |
Show RemixInfo Source # | |
Generic RemixInfo Source # | |
ToJSON RemixInfo Source # | |
Defined in Network.Google.Poly.Types.Product | |
FromJSON RemixInfo Source # | |
type Rep RemixInfo Source # | |
Defined in Network.Google.Poly.Types.Product |
remixInfo :: RemixInfo Source #
Creates a value of RemixInfo
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
riSourceAsset :: Lens' RemixInfo [Text] Source #
Resource ids for the sources of this remix, of the form: `assets/{ASSET_ID}`
Quaternion
data Quaternion Source #
A Quaternion. Please note: if in the response you see "w: 1" and nothing else this is the default value of [0, 0, 0, 1] where x,y, and z are 0.
See: quaternion
smart constructor.
Instances
quaternion :: Quaternion Source #
Creates a value of Quaternion
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Asset
Represents and describes an asset in the Poly library. An asset is a 3D model or scene created using Tilt Brush, Blocks, or any 3D program that produces a file that can be upload to Poly.
See: asset
smart constructor.
Instances
Creates a value of Asset
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aPresentationParams :: Lens' Asset (Maybe PresentationParams) Source #
Hints for displaying the asset. Note that these parameters are not immutable; the author of an asset may change them post-publication.
aIsCurated :: Lens' Asset (Maybe Bool) Source #
Whether this asset has been curated by the Poly team.
aAuthorName :: Lens' Asset (Maybe Text) Source #
The author's publicly visible name. Use this name when giving credit to the author. For more information, see Licensing.
aFormats :: Lens' Asset [Format] Source #
A list of Formats where each format describes one representation of the asset.
aVisibility :: Lens' Asset (Maybe AssetVisibility) Source #
The visibility of the asset and who can access it.
aUpdateTime :: Lens' Asset (Maybe UTCTime) Source #
The time when the asset was last modified. For published assets, whose contents are immutable, the update time changes only when metadata properties, such as visibility, are updated.
aName :: Lens' Asset (Maybe Text) Source #
The unique identifier for the asset in the form: `assets/{ASSET_ID}`.
aMetadata :: Lens' Asset (Maybe Text) Source #
Application-defined opaque metadata for this asset. This field is only returned when querying for the signed-in user's own assets, not for public assets. This string is limited to 1K chars. It is up to the creator of the asset to define the format for this string (for example, JSON).
aDisplayName :: Lens' Asset (Maybe Text) Source #
The human-readable name, set by the asset's author.
aLicense :: Lens' Asset (Maybe AssetLicense) Source #
The license under which the author has made the asset available for use, if any.
aDescription :: Lens' Asset (Maybe Text) Source #
The human-readable description, set by the asset's author.
aCreateTime :: Lens' Asset (Maybe UTCTime) Source #
For published assets, the time when the asset was published. For unpublished assets, the time when the asset was created.
Format
The same asset can be represented in different formats, for example, a WaveFront .obj file with its corresponding .mtl file or a Khronos glTF file with its corresponding .glb binary data. A format refers to a specific representation of an asset and contains all information needed to retrieve and describe this representation.
See: format
smart constructor.
Instances
Eq Format Source # | |
Data Format Source # | |
Defined in Network.Google.Poly.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Format -> c Format # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Format # toConstr :: Format -> Constr # dataTypeOf :: Format -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Format) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Format) # gmapT :: (forall b. Data b => b -> b) -> Format -> Format # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Format -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Format -> r # gmapQ :: (forall d. Data d => d -> u) -> Format -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Format -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Format -> m Format # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Format -> m Format # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Format -> m Format # | |
Show Format Source # | |
Generic Format Source # | |
ToJSON Format Source # | |
Defined in Network.Google.Poly.Types.Product | |
FromJSON Format Source # | |
type Rep Format Source # | |
Defined in Network.Google.Poly.Types.Product type Rep Format = D1 (MetaData "Format" "Network.Google.Poly.Types.Product" "gogol-poly-0.4.0-GC6geLrQx0RHso7Xpq3nv1" False) (C1 (MetaCons "Format'" PrefixI True) ((S1 (MetaSel (Just "_fRoot") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe File)) :*: S1 (MetaSel (Just "_fResources") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [File]))) :*: (S1 (MetaSel (Just "_fFormatComplexity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe FormatComplexity)) :*: S1 (MetaSel (Just "_fFormatType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) |
Creates a value of Format
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
fRoot :: Lens' Format (Maybe File) Source #
The root of the file hierarchy. This will always be populated. For some format_types - such as `TILT`, which are self-contained - this is all of the data. Other types - such as `OBJ` - often reference other data elements. These are contained in the resources field.
fResources :: Lens' Format [File] Source #
A list of dependencies of the root element. May include, but is not limited to, materials, textures, and shader programs.
fFormatComplexity :: Lens' Format (Maybe FormatComplexity) Source #
Complexity stats about this representation of the asset.
fFormatType :: Lens' Format (Maybe Text) Source #
A short string that identifies the format type of this representation. Possible values are: `FBX`, `GLTF`, `GLTF2`, `OBJ`, and `TILT`.
AssetImportMessageCode
data AssetImportMessageCode Source #
The code associated with this message.
AIMCCodeUnspecified |
|
AIMCNoImportableFile |
|
AIMCEmptyModel |
|
AIMCObjParseError |
|
AIMCExpired |
|
AIMCImageError |
|
AIMCExtraFilesWithArchive |
|
AIMCDefaultMaterials |
|
AIMCFatalError |
|
AIMCInvalidElementType |
|
Instances
AssetImportMessage
data AssetImportMessage Source #
A message generated by the asset import process.
See: assetImportMessage
smart constructor.
Instances
assetImportMessage :: AssetImportMessage Source #
Creates a value of AssetImportMessage
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aimObjParseError :: Lens' AssetImportMessage (Maybe ObjParseError) Source #
An optional OBJ parse error. Only present for OBJ_PARSE_ERROR.
aimFilePath :: Lens' AssetImportMessage (Maybe Text) Source #
An optional file path. Only present for those error codes that specify it.
aimImageError :: Lens' AssetImportMessage (Maybe ImageError) Source #
An optional image error. Only present for INVALID_IMAGE_FILE.
aimCode :: Lens' AssetImportMessage (Maybe AssetImportMessageCode) Source #
The code associated with this message.
StartAssetImportResponse
data StartAssetImportResponse Source #
A response message from a request to startImport. This is returned in the response field of the Operation.
See: startAssetImportResponse
smart constructor.
Instances
startAssetImportResponse :: StartAssetImportResponse Source #
Creates a value of StartAssetImportResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sairPublishURL :: Lens' StartAssetImportResponse (Maybe Text) Source #
The publish URL for the asset.
sairAssetImportMessages :: Lens' StartAssetImportResponse [AssetImportMessage] Source #
The message from the asset import. This will contain any warnings (or - in the case of failure - errors) that occurred during import.
sairAssetImportId :: Lens' StartAssetImportResponse (Maybe Text) Source #
The id of the asset import.
sairAssetId :: Lens' StartAssetImportResponse (Maybe Text) Source #
The id of newly created asset. If this is empty when the operation is complete it means the import failed. Please refer to the assetImportMessages field to understand what went wrong.
AssetVisibility
data AssetVisibility Source #
The visibility of the asset and who can access it.
VisibilityUnspecified |
|
Private |
|
UnListed |
|
Public |
|
Instances
ImageError
data ImageError Source #
A message resulting from reading an image file.
See: imageError
smart constructor.
Instances
imageError :: ImageError Source #
Creates a value of ImageError
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ieFilePath :: Lens' ImageError (Maybe Text) Source #
The file path in the import of the image that was rejected.
ieCode :: Lens' ImageError (Maybe ImageErrorCode) Source #
The type of image error encountered. Optional for older image errors.
FormatComplexity
data FormatComplexity Source #
Information on the complexity of this Format.
See: formatComplexity
smart constructor.
Instances
formatComplexity :: FormatComplexity Source #
Creates a value of FormatComplexity
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
fcTriangleCount :: Lens' FormatComplexity (Maybe Int64) Source #
The estimated number of triangles.
fcLodHint :: Lens' FormatComplexity (Maybe Int32) Source #
A non-negative integer that represents the level of detail (LOD) of this format relative to other formats of the same asset with the same format_type. This hint allows you to sort formats from the most-detailed (0) to least-detailed (integers greater than 0).
ObjParseErrorCode
data ObjParseErrorCode Source #
The type of problem found (required).
OPECCodeUnspecified |
|
OPECInconsistentVertexRefs |
|
OPECInvalidCommand |
|
OPECInvalidNumber |
|
OPECInvalidVertexRef |
|
OPECMissingGeometricVertex |
|
OPECMissingToken |
|
OPECTooFewDimensions |
|
OPECTooFewVertices |
|
OPECTooManyDimensions |
|
OPECUnsupportedCommand |
|
OPECUnusedTokens |
|
OPECVertexNotFound |
|
OPECNumberOutOfRange |
|
OPECInvalidValue |
|
OPECInvalidTextureOption |
|
OPECTooManyProblems |
|
OPECMissingFileName |
|
OPECFileNotFound |
|
OPECUnknownMaterial |
|
OPECNoMaterialDefined |
|
OPECInvalidSmoothingGroup |
|
OPECMissingVertexColors |
|
OPECFileSubstitution |
|
OPECLineTooLong |
|
OPECInvalidFilePath |
|
Instances
ListAssetsResponse
data ListAssetsResponse Source #
A response message from a request to list.
See: listAssetsResponse
smart constructor.
Instances
listAssetsResponse :: ListAssetsResponse Source #
Creates a value of ListAssetsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
larNextPageToken :: Lens' ListAssetsResponse (Maybe Text) Source #
The continuation token for retrieving the next page. If empty, indicates that there are no more pages. To get the next page, submit the same request specifying this value as the page_token.
larTotalSize :: Lens' ListAssetsResponse (Maybe Int32) Source #
The total number of assets in the list, without pagination.
larAssets :: Lens' ListAssetsResponse [Asset] Source #
A list of assets that match the criteria specified in the request.
Xgafv
V1 error format.
Instances
ListUserAssetsResponse
data ListUserAssetsResponse Source #
A response message from a request to list.
See: listUserAssetsResponse
smart constructor.
Instances
listUserAssetsResponse :: ListUserAssetsResponse Source #
Creates a value of ListUserAssetsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
luarNextPageToken :: Lens' ListUserAssetsResponse (Maybe Text) Source #
The continuation token for retrieving the next page. If empty, indicates that there are no more pages. To get the next page, submit the same request specifying this value as the page_token.
luarTotalSize :: Lens' ListUserAssetsResponse (Maybe Int32) Source #
The total number of assets in the list, without pagination.
luarUserAssets :: Lens' ListUserAssetsResponse [UserAsset] Source #
A list of UserAssets matching the request.
AssetLicense
data AssetLicense Source #
The license under which the author has made the asset available for use, if any.
Unknown |
|
CreativeCommonsBy |
|
AllRightsReserved |
|
Instances
PresentationParamsColorSpace
data PresentationParamsColorSpace Source #
The materials' diffuse/albedo color. This does not apply to vertex colors or texture maps.
PPCSUnknown |
|
PPCSLinear |
|
PPCSGamma |
|
Instances
File
Represents a file in Poly, which can be a root, resource, or thumbnail file.
See: file
smart constructor.
Instances
Eq File Source # | |
Data File Source # | |
Defined in Network.Google.Poly.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> File -> c File # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c File # dataTypeOf :: File -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c File) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c File) # gmapT :: (forall b. Data b => b -> b) -> File -> File # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> File -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> File -> r # gmapQ :: (forall d. Data d => d -> u) -> File -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> File -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> File -> m File # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> File -> m File # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> File -> m File # | |
Show File Source # | |
Generic File Source # | |
ToJSON File Source # | |
Defined in Network.Google.Poly.Types.Product | |
FromJSON File Source # | |
type Rep File Source # | |
Defined in Network.Google.Poly.Types.Product type Rep File = D1 (MetaData "File" "Network.Google.Poly.Types.Product" "gogol-poly-0.4.0-GC6geLrQx0RHso7Xpq3nv1" False) (C1 (MetaCons "File'" PrefixI True) (S1 (MetaSel (Just "_fURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_fRelativePath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_fContentType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) |
Creates a value of File
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
fRelativePath :: Lens' File (Maybe Text) Source #
The path of the resource file relative to the root file. For root or thumbnail files, this is just the filename.
fContentType :: Lens' File (Maybe Text) Source #
The MIME content-type, such as `image/png`. For more information, see MIME types.
UserAsset
Data about the user's asset.
See: userAsset
smart constructor.
Instances
Eq UserAsset Source # | |
Data UserAsset Source # | |
Defined in Network.Google.Poly.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UserAsset -> c UserAsset # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UserAsset # toConstr :: UserAsset -> Constr # dataTypeOf :: UserAsset -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UserAsset) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UserAsset) # gmapT :: (forall b. Data b => b -> b) -> UserAsset -> UserAsset # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UserAsset -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UserAsset -> r # gmapQ :: (forall d. Data d => d -> u) -> UserAsset -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> UserAsset -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> UserAsset -> m UserAsset # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UserAsset -> m UserAsset # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UserAsset -> m UserAsset # | |
Show UserAsset Source # | |
Generic UserAsset Source # | |
ToJSON UserAsset Source # | |
Defined in Network.Google.Poly.Types.Product | |
FromJSON UserAsset Source # | |
type Rep UserAsset Source # | |
Defined in Network.Google.Poly.Types.Product |