Module gpycat.models.album
Expand source code
from typing import List, Optional
from pydantic import AnyHttpUrl, BaseModel, conint
class AlbumNode(BaseModel):
id: str
title: str
linkText: str
nsfw: conint(ge=0)
folderSubType: str
coverImageUrl: AnyHttpUrl
coverImageUrlMobile: AnyHttpUrl
width: conint(gt=0)
height: conint(gt=0)
mp4Url: AnyHttpUrl
webmUrl: AnyHttpUrl
webpUrl: AnyHttpUrl
mobileUrl: AnyHttpUrl
mobilePosterUrl: AnyHttpUrl
posterUrl: AnyHttpUrl
thumb360Url: AnyHttpUrl
thumb360PosterUrl: AnyHttpUrl
thumb100PosterUrl: AnyHttpUrl
max5mbGif: AnyHttpUrl
max2mbGif: AnyHttpUrl
miniUrl: AnyHttpUrl
miniPosterUrl: AnyHttpUrl
mjpgUrl: AnyHttpUrl
gifUrl: AnyHttpUrl
published: conint(ge=0)
nodes: List[Optional["AlbumNode"]]
Classes
class AlbumNode (**data: Any)
-
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
Expand source code
class AlbumNode(BaseModel): id: str title: str linkText: str nsfw: conint(ge=0) folderSubType: str coverImageUrl: AnyHttpUrl coverImageUrlMobile: AnyHttpUrl width: conint(gt=0) height: conint(gt=0) mp4Url: AnyHttpUrl webmUrl: AnyHttpUrl webpUrl: AnyHttpUrl mobileUrl: AnyHttpUrl mobilePosterUrl: AnyHttpUrl posterUrl: AnyHttpUrl thumb360Url: AnyHttpUrl thumb360PosterUrl: AnyHttpUrl thumb100PosterUrl: AnyHttpUrl max5mbGif: AnyHttpUrl max2mbGif: AnyHttpUrl miniUrl: AnyHttpUrl miniPosterUrl: AnyHttpUrl mjpgUrl: AnyHttpUrl gifUrl: AnyHttpUrl published: conint(ge=0) nodes: List[Optional["AlbumNode"]]
Ancestors
- pydantic.main.BaseModel
- pydantic.utils.Representation
Class variables
var coverImageUrl : pydantic.networks.AnyHttpUrl
var coverImageUrlMobile : pydantic.networks.AnyHttpUrl
var folderSubType : str
var gifUrl : pydantic.networks.AnyHttpUrl
var height : gpycat.models.album.ConstrainedIntValue
var id : str
var linkText : str
var max2mbGif : pydantic.networks.AnyHttpUrl
var max5mbGif : pydantic.networks.AnyHttpUrl
var miniPosterUrl : pydantic.networks.AnyHttpUrl
var miniUrl : pydantic.networks.AnyHttpUrl
var mjpgUrl : pydantic.networks.AnyHttpUrl
var mobilePosterUrl : pydantic.networks.AnyHttpUrl
var mobileUrl : pydantic.networks.AnyHttpUrl
var mp4Url : pydantic.networks.AnyHttpUrl
var nodes : List[Optional[AlbumNode]]
var nsfw : gpycat.models.album.ConstrainedIntValue
var posterUrl : pydantic.networks.AnyHttpUrl
var published : gpycat.models.album.ConstrainedIntValue
var thumb100PosterUrl : pydantic.networks.AnyHttpUrl
var thumb360PosterUrl : pydantic.networks.AnyHttpUrl
var thumb360Url : pydantic.networks.AnyHttpUrl
var title : str
var webmUrl : pydantic.networks.AnyHttpUrl
var webpUrl : pydantic.networks.AnyHttpUrl
var width : gpycat.models.album.ConstrainedIntValue