signature
stringlengths
8
3.44k
body
stringlengths
0
1.41M
docstring
stringlengths
1
122k
id
stringlengths
5
17
@tags.setter<EOL><INDENT>def tags(self, tags):<DEDENT>
self._tags = tags<EOL>
Sets the tags of this Gif. An array of tags for this GIF (Note\\: Not available when using the Public Beta Key) :param tags: The tags of this Gif. :type: list[str]
f3055:c0:m24
@property<EOL><INDENT>def featured_tags(self):<DEDENT>
return self._featured_tags<EOL>
Gets the featured_tags of this Gif. An array of featured tags for this GIF (Note\\: Not available when using the Public Beta Key) :return: The featured_tags of this Gif. :rtype: list[str]
f3055:c0:m25
@featured_tags.setter<EOL><INDENT>def featured_tags(self, featured_tags):<DEDENT>
self._featured_tags = featured_tags<EOL>
Sets the featured_tags of this Gif. An array of featured tags for this GIF (Note\\: Not available when using the Public Beta Key) :param featured_tags: The featured_tags of this Gif. :type: list[str]
f3055:c0:m26
@property<EOL><INDENT>def user(self):<DEDENT>
return self._user<EOL>
Gets the user of this Gif. An object containing data about the user associated with this GIF, if applicable. :return: The user of this Gif. :rtype: User
f3055:c0:m27
@user.setter<EOL><INDENT>def user(self, user):<DEDENT>
self._user = user<EOL>
Sets the user of this Gif. An object containing data about the user associated with this GIF, if applicable. :param user: The user of this Gif. :type: User
f3055:c0:m28
@property<EOL><INDENT>def source_tld(self):<DEDENT>
return self._source_tld<EOL>
Gets the source_tld of this Gif. The top level domain of the source URL. :return: The source_tld of this Gif. :rtype: str
f3055:c0:m29
@source_tld.setter<EOL><INDENT>def source_tld(self, source_tld):<DEDENT>
self._source_tld = source_tld<EOL>
Sets the source_tld of this Gif. The top level domain of the source URL. :param source_tld: The source_tld of this Gif. :type: str
f3055:c0:m30
@property<EOL><INDENT>def source_post_url(self):<DEDENT>
return self._source_post_url<EOL>
Gets the source_post_url of this Gif. The URL of the webpage on which this GIF was found. :return: The source_post_url of this Gif. :rtype: str
f3055:c0:m31
@source_post_url.setter<EOL><INDENT>def source_post_url(self, source_post_url):<DEDENT>
self._source_post_url = source_post_url<EOL>
Sets the source_post_url of this Gif. The URL of the webpage on which this GIF was found. :param source_post_url: The source_post_url of this Gif. :type: str
f3055:c0:m32
@property<EOL><INDENT>def is_hidden(self):<DEDENT>
return self._is_hidden<EOL>
Gets the is_hidden of this Gif. Denotes whether or not this GIF is private. :return: The is_hidden of this Gif. :rtype: bool
f3055:c0:m33
@is_hidden.setter<EOL><INDENT>def is_hidden(self, is_hidden):<DEDENT>
self._is_hidden = is_hidden<EOL>
Sets the is_hidden of this Gif. Denotes whether or not this GIF is private. :param is_hidden: The is_hidden of this Gif. :type: bool
f3055:c0:m34
@property<EOL><INDENT>def is_removed(self):<DEDENT>
return self._is_removed<EOL>
Gets the is_removed of this Gif. Denotes whether or not this GIF has been deleted. :return: The is_removed of this Gif. :rtype: bool
f3055:c0:m35
@is_removed.setter<EOL><INDENT>def is_removed(self, is_removed):<DEDENT>
self._is_removed = is_removed<EOL>
Sets the is_removed of this Gif. Denotes whether or not this GIF has been deleted. :param is_removed: The is_removed of this Gif. :type: bool
f3055:c0:m36
@property<EOL><INDENT>def is_community(self):<DEDENT>
return self._is_community<EOL>
Gets the is_community of this Gif. Denotes whether or not this GIF has been uploaded by a GIPHY user. :return: The is_community of this Gif. :rtype: bool
f3055:c0:m37
@is_community.setter<EOL><INDENT>def is_community(self, is_community):<DEDENT>
self._is_community = is_community<EOL>
Sets the is_community of this Gif. Denotes whether or not this GIF has been uploaded by a GIPHY user. :param is_community: The is_community of this Gif. :type: bool
f3055:c0:m38
@property<EOL><INDENT>def is_anonymous(self):<DEDENT>
return self._is_anonymous<EOL>
Gets the is_anonymous of this Gif. Denotes whether or not this GIF has been uploaded to GIPHY by an anonymous user. :return: The is_anonymous of this Gif. :rtype: bool
f3055:c0:m39
@is_anonymous.setter<EOL><INDENT>def is_anonymous(self, is_anonymous):<DEDENT>
self._is_anonymous = is_anonymous<EOL>
Sets the is_anonymous of this Gif. Denotes whether or not this GIF has been uploaded to GIPHY by an anonymous user. :param is_anonymous: The is_anonymous of this Gif. :type: bool
f3055:c0:m40
@property<EOL><INDENT>def is_featured(self):<DEDENT>
return self._is_featured<EOL>
Gets the is_featured of this Gif. Denotes whether or not this GIF is featured on giphy.com (deprecated). :return: The is_featured of this Gif. :rtype: bool
f3055:c0:m41
@is_featured.setter<EOL><INDENT>def is_featured(self, is_featured):<DEDENT>
self._is_featured = is_featured<EOL>
Sets the is_featured of this Gif. Denotes whether or not this GIF is featured on giphy.com (deprecated). :param is_featured: The is_featured of this Gif. :type: bool
f3055:c0:m42
@property<EOL><INDENT>def is_realtime(self):<DEDENT>
return self._is_realtime<EOL>
Gets the is_realtime of this Gif. Denotes whether or not this GIF has been sourced from a realtime crawl. :return: The is_realtime of this Gif. :rtype: bool
f3055:c0:m43
@is_realtime.setter<EOL><INDENT>def is_realtime(self, is_realtime):<DEDENT>
self._is_realtime = is_realtime<EOL>
Sets the is_realtime of this Gif. Denotes whether or not this GIF has been sourced from a realtime crawl. :param is_realtime: The is_realtime of this Gif. :type: bool
f3055:c0:m44
@property<EOL><INDENT>def is_indexable(self):<DEDENT>
return self._is_indexable<EOL>
Gets the is_indexable of this Gif. Denotes whether or not this GIF is indexable. :return: The is_indexable of this Gif. :rtype: bool
f3055:c0:m45
@is_indexable.setter<EOL><INDENT>def is_indexable(self, is_indexable):<DEDENT>
self._is_indexable = is_indexable<EOL>
Sets the is_indexable of this Gif. Denotes whether or not this GIF is indexable. :param is_indexable: The is_indexable of this Gif. :type: bool
f3055:c0:m46
@property<EOL><INDENT>def is_sticker(self):<DEDENT>
return self._is_sticker<EOL>
Gets the is_sticker of this Gif. Denotes whether this GIF is a sticker (has a transparent background). :return: The is_sticker of this Gif. :rtype: bool
f3055:c0:m47
@is_sticker.setter<EOL><INDENT>def is_sticker(self, is_sticker):<DEDENT>
self._is_sticker = is_sticker<EOL>
Sets the is_sticker of this Gif. Denotes whether this GIF is a sticker (has a transparent background). :param is_sticker: The is_sticker of this Gif. :type: bool
f3055:c0:m48
@property<EOL><INDENT>def update_datetime(self):<DEDENT>
return self._update_datetime<EOL>
Gets the update_datetime of this Gif. The date on which this GIF was last updated. :return: The update_datetime of this Gif. :rtype: str
f3055:c0:m49
@update_datetime.setter<EOL><INDENT>def update_datetime(self, update_datetime):<DEDENT>
self._update_datetime = update_datetime<EOL>
Sets the update_datetime of this Gif. The date on which this GIF was last updated. :param update_datetime: The update_datetime of this Gif. :type: str
f3055:c0:m50
@property<EOL><INDENT>def create_datetime(self):<DEDENT>
return self._create_datetime<EOL>
Gets the create_datetime of this Gif. The date this GIF was added to the GIPHY database. :return: The create_datetime of this Gif. :rtype: str
f3055:c0:m51
@create_datetime.setter<EOL><INDENT>def create_datetime(self, create_datetime):<DEDENT>
self._create_datetime = create_datetime<EOL>
Sets the create_datetime of this Gif. The date this GIF was added to the GIPHY database. :param create_datetime: The create_datetime of this Gif. :type: str
f3055:c0:m52
@property<EOL><INDENT>def import_datetime(self):<DEDENT>
return self._import_datetime<EOL>
Gets the import_datetime of this Gif. The creation or upload date from this GIF's source. :return: The import_datetime of this Gif. :rtype: str
f3055:c0:m53
@import_datetime.setter<EOL><INDENT>def import_datetime(self, import_datetime):<DEDENT>
self._import_datetime = import_datetime<EOL>
Sets the import_datetime of this Gif. The creation or upload date from this GIF's source. :param import_datetime: The import_datetime of this Gif. :type: str
f3055:c0:m54
@property<EOL><INDENT>def trending_datetime(self):<DEDENT>
return self._trending_datetime<EOL>
Gets the trending_datetime of this Gif. The date on which this gif was marked trending, if applicable. :return: The trending_datetime of this Gif. :rtype: str
f3055:c0:m55
@trending_datetime.setter<EOL><INDENT>def trending_datetime(self, trending_datetime):<DEDENT>
self._trending_datetime = trending_datetime<EOL>
Sets the trending_datetime of this Gif. The date on which this gif was marked trending, if applicable. :param trending_datetime: The trending_datetime of this Gif. :type: str
f3055:c0:m56
@property<EOL><INDENT>def images(self):<DEDENT>
return self._images<EOL>
Gets the images of this Gif. :return: The images of this Gif. :rtype: GifImages
f3055:c0:m57
@images.setter<EOL><INDENT>def images(self, images):<DEDENT>
self._images = images<EOL>
Sets the images of this Gif. :param images: The images of this Gif. :type: GifImages
f3055:c0:m58
def to_dict(self):
result = {}<EOL>for attr, _ in iteritems(self.swagger_types):<EOL><INDENT>value = getattr(self, attr)<EOL>if isinstance(value, list):<EOL><INDENT>result[attr] = list(map(<EOL>lambda x: x.to_dict() if hasattr(x, "<STR_LIT>") else x,<EOL>value<EOL>))<EOL><DEDENT>elif hasattr(value, "<STR_LIT>"):<EOL><INDENT>result[attr] = value.to_dict()<EOL><DEDENT>elif isinstance(value, dict):<EOL><INDENT>result[attr] = dict(map(<EOL>lambda item: (item[<NUM_LIT:0>], item[<NUM_LIT:1>].to_dict())<EOL>if hasattr(item[<NUM_LIT:1>], "<STR_LIT>") else item,<EOL>value.items()<EOL>))<EOL><DEDENT>else:<EOL><INDENT>result[attr] = value<EOL><DEDENT><DEDENT>return result<EOL>
Returns the model properties as a dict
f3055:c0:m59
def to_str(self):
return pformat(self.to_dict())<EOL>
Returns the string representation of the model
f3055:c0:m60
def __repr__(self):
return self.to_str()<EOL>
For `print` and `pprint`
f3055:c0:m61
def __eq__(self, other):
if not isinstance(other, Gif):<EOL><INDENT>return False<EOL><DEDENT>return self.__dict__ == other.__dict__<EOL>
Returns true if both objects are equal
f3055:c0:m62
def __ne__(self, other):
return not self == other<EOL>
Returns true if both objects are not equal
f3055:c0:m63
def __init__(self, msg=None, status=None, response_id=None):
self.swagger_types = {<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT:status>': '<STR_LIT:int>',<EOL>'<STR_LIT>': '<STR_LIT:str>'<EOL>}<EOL>self.attribute_map = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:status>': '<STR_LIT:status>',<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>}<EOL>self._msg = msg<EOL>self._status = status<EOL>self._response_id = response_id<EOL>
MetaContent - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition.
f3056:c0:m0
@property<EOL><INDENT>def msg(self):<DEDENT>
return self._msg<EOL>
Gets the msg of this MetaContent. HTTP Response Message :return: The msg of this MetaContent. :rtype: str
f3056:c0:m1
@msg.setter<EOL><INDENT>def msg(self, msg):<DEDENT>
if msg is None:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self._msg = msg<EOL>
Sets the msg of this MetaContent. HTTP Response Message :param msg: The msg of this MetaContent. :type: str
f3056:c0:m2
@property<EOL><INDENT>def status(self):<DEDENT>
return self._status<EOL>
Gets the status of this MetaContent. HTTP Response Code :return: The status of this MetaContent. :rtype: int
f3056:c0:m3
@status.setter<EOL><INDENT>def status(self, status):<DEDENT>
if status is None:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self._status = status<EOL>
Sets the status of this MetaContent. HTTP Response Code :param status: The status of this MetaContent. :type: int
f3056:c0:m4
@property<EOL><INDENT>def response_id(self):<DEDENT>
return self._response_id<EOL>
Gets the response_id of this MetaContent. A unique ID paired with this response from the API. :return: The response_id of this MetaContent. :rtype: str
f3056:c0:m5
@response_id.setter<EOL><INDENT>def response_id(self, response_id):<DEDENT>
self._response_id = response_id<EOL>
Sets the response_id of this MetaContent. A unique ID paired with this response from the API. :param response_id: The response_id of this MetaContent. :type: str
f3056:c0:m6
def to_dict(self):
result = {}<EOL>for attr, _ in iteritems(self.swagger_types):<EOL><INDENT>value = getattr(self, attr)<EOL>if isinstance(value, list):<EOL><INDENT>result[attr] = list(map(<EOL>lambda x: x.to_dict() if hasattr(x, "<STR_LIT>") else x,<EOL>value<EOL>))<EOL><DEDENT>elif hasattr(value, "<STR_LIT>"):<EOL><INDENT>result[attr] = value.to_dict()<EOL><DEDENT>elif isinstance(value, dict):<EOL><INDENT>result[attr] = dict(map(<EOL>lambda item: (item[<NUM_LIT:0>], item[<NUM_LIT:1>].to_dict())<EOL>if hasattr(item[<NUM_LIT:1>], "<STR_LIT>") else item,<EOL>value.items()<EOL>))<EOL><DEDENT>else:<EOL><INDENT>result[attr] = value<EOL><DEDENT><DEDENT>return result<EOL>
Returns the model properties as a dict
f3056:c0:m7
def to_str(self):
return pformat(self.to_dict())<EOL>
Returns the string representation of the model
f3056:c0:m8
def __repr__(self):
return self.to_str()<EOL>
For `print` and `pprint`
f3056:c0:m9
def __eq__(self, other):
if not isinstance(other, MetaContent):<EOL><INDENT>return False<EOL><DEDENT>return self.__dict__ == other.__dict__<EOL>
Returns true if both objects are equal
f3056:c0:m10
def __ne__(self, other):
return not self == other<EOL>
Returns true if both objects are not equal
f3056:c0:m11
def __init__(self, data=None, pagination=None, meta=None):
self.swagger_types = {<EOL>'<STR_LIT:data>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>}<EOL>self.attribute_map = {<EOL>'<STR_LIT:data>': '<STR_LIT:data>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>}<EOL>self._data = data<EOL>self._pagination = pagination<EOL>self._meta = meta<EOL>
InlineResponse2004 - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition.
f3057:c0:m0
@property<EOL><INDENT>def data(self):<DEDENT>
return self._data<EOL>
Gets the data of this InlineResponse2004. :return: The data of this InlineResponse2004. :rtype: list[Tag]
f3057:c0:m1
@data.setter<EOL><INDENT>def data(self, data):<DEDENT>
self._data = data<EOL>
Sets the data of this InlineResponse2004. :param data: The data of this InlineResponse2004. :type: list[Tag]
f3057:c0:m2
@property<EOL><INDENT>def pagination(self):<DEDENT>
return self._pagination<EOL>
Gets the pagination of this InlineResponse2004. :return: The pagination of this InlineResponse2004. :rtype: Pagination
f3057:c0:m3
@pagination.setter<EOL><INDENT>def pagination(self, pagination):<DEDENT>
self._pagination = pagination<EOL>
Sets the pagination of this InlineResponse2004. :param pagination: The pagination of this InlineResponse2004. :type: Pagination
f3057:c0:m4
@property<EOL><INDENT>def meta(self):<DEDENT>
return self._meta<EOL>
Gets the meta of this InlineResponse2004. :return: The meta of this InlineResponse2004. :rtype: MetaContent
f3057:c0:m5
@meta.setter<EOL><INDENT>def meta(self, meta):<DEDENT>
self._meta = meta<EOL>
Sets the meta of this InlineResponse2004. :param meta: The meta of this InlineResponse2004. :type: MetaContent
f3057:c0:m6
def to_dict(self):
result = {}<EOL>for attr, _ in iteritems(self.swagger_types):<EOL><INDENT>value = getattr(self, attr)<EOL>if isinstance(value, list):<EOL><INDENT>result[attr] = list(map(<EOL>lambda x: x.to_dict() if hasattr(x, "<STR_LIT>") else x,<EOL>value<EOL>))<EOL><DEDENT>elif hasattr(value, "<STR_LIT>"):<EOL><INDENT>result[attr] = value.to_dict()<EOL><DEDENT>elif isinstance(value, dict):<EOL><INDENT>result[attr] = dict(map(<EOL>lambda item: (item[<NUM_LIT:0>], item[<NUM_LIT:1>].to_dict())<EOL>if hasattr(item[<NUM_LIT:1>], "<STR_LIT>") else item,<EOL>value.items()<EOL>))<EOL><DEDENT>else:<EOL><INDENT>result[attr] = value<EOL><DEDENT><DEDENT>return result<EOL>
Returns the model properties as a dict
f3057:c0:m7
def to_str(self):
return pformat(self.to_dict())<EOL>
Returns the string representation of the model
f3057:c0:m8
def __repr__(self):
return self.to_str()<EOL>
For `print` and `pprint`
f3057:c0:m9
def __eq__(self, other):
if not isinstance(other, InlineResponse2004):<EOL><INDENT>return False<EOL><DEDENT>return self.__dict__ == other.__dict__<EOL>
Returns true if both objects are equal
f3057:c0:m10
def __ne__(self, other):
return not self == other<EOL>
Returns true if both objects are not equal
f3057:c0:m11
def __init__(self, url=None, width=None, height=None, size=None):
self.swagger_types = {<EOL>'<STR_LIT:url>': '<STR_LIT:str>',<EOL>'<STR_LIT:width>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT:size>': '<STR_LIT:str>'<EOL>}<EOL>self.attribute_map = {<EOL>'<STR_LIT:url>': '<STR_LIT:url>',<EOL>'<STR_LIT:width>': '<STR_LIT:width>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:size>': '<STR_LIT:size>'<EOL>}<EOL>self._url = url<EOL>self._width = width<EOL>self._height = height<EOL>self._size = size<EOL>
GifImagesDownsizedMedium - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition.
f3058:c0:m0
@property<EOL><INDENT>def url(self):<DEDENT>
return self._url<EOL>
Gets the url of this GifImagesDownsizedMedium. The publicly-accessible direct URL for this GIF. :return: The url of this GifImagesDownsizedMedium. :rtype: str
f3058:c0:m1
@url.setter<EOL><INDENT>def url(self, url):<DEDENT>
self._url = url<EOL>
Sets the url of this GifImagesDownsizedMedium. The publicly-accessible direct URL for this GIF. :param url: The url of this GifImagesDownsizedMedium. :type: str
f3058:c0:m2
@property<EOL><INDENT>def width(self):<DEDENT>
return self._width<EOL>
Gets the width of this GifImagesDownsizedMedium. The width of this GIF in pixels. :return: The width of this GifImagesDownsizedMedium. :rtype: str
f3058:c0:m3
@width.setter<EOL><INDENT>def width(self, width):<DEDENT>
self._width = width<EOL>
Sets the width of this GifImagesDownsizedMedium. The width of this GIF in pixels. :param width: The width of this GifImagesDownsizedMedium. :type: str
f3058:c0:m4
@property<EOL><INDENT>def height(self):<DEDENT>
return self._height<EOL>
Gets the height of this GifImagesDownsizedMedium. The height of this GIF in pixels. :return: The height of this GifImagesDownsizedMedium. :rtype: str
f3058:c0:m5
@height.setter<EOL><INDENT>def height(self, height):<DEDENT>
self._height = height<EOL>
Sets the height of this GifImagesDownsizedMedium. The height of this GIF in pixels. :param height: The height of this GifImagesDownsizedMedium. :type: str
f3058:c0:m6
@property<EOL><INDENT>def size(self):<DEDENT>
return self._size<EOL>
Gets the size of this GifImagesDownsizedMedium. The size of this GIF in bytes. :return: The size of this GifImagesDownsizedMedium. :rtype: str
f3058:c0:m7
@size.setter<EOL><INDENT>def size(self, size):<DEDENT>
self._size = size<EOL>
Sets the size of this GifImagesDownsizedMedium. The size of this GIF in bytes. :param size: The size of this GifImagesDownsizedMedium. :type: str
f3058:c0:m8
def to_dict(self):
result = {}<EOL>for attr, _ in iteritems(self.swagger_types):<EOL><INDENT>value = getattr(self, attr)<EOL>if isinstance(value, list):<EOL><INDENT>result[attr] = list(map(<EOL>lambda x: x.to_dict() if hasattr(x, "<STR_LIT>") else x,<EOL>value<EOL>))<EOL><DEDENT>elif hasattr(value, "<STR_LIT>"):<EOL><INDENT>result[attr] = value.to_dict()<EOL><DEDENT>elif isinstance(value, dict):<EOL><INDENT>result[attr] = dict(map(<EOL>lambda item: (item[<NUM_LIT:0>], item[<NUM_LIT:1>].to_dict())<EOL>if hasattr(item[<NUM_LIT:1>], "<STR_LIT>") else item,<EOL>value.items()<EOL>))<EOL><DEDENT>else:<EOL><INDENT>result[attr] = value<EOL><DEDENT><DEDENT>return result<EOL>
Returns the model properties as a dict
f3058:c0:m9
def to_str(self):
return pformat(self.to_dict())<EOL>
Returns the string representation of the model
f3058:c0:m10
def __repr__(self):
return self.to_str()<EOL>
For `print` and `pprint`
f3058:c0:m11
def __eq__(self, other):
if not isinstance(other, GifImagesDownsizedMedium):<EOL><INDENT>return False<EOL><DEDENT>return self.__dict__ == other.__dict__<EOL>
Returns true if both objects are equal
f3058:c0:m12
def __ne__(self, other):
return not self == other<EOL>
Returns true if both objects are not equal
f3058:c0:m13
def __init__(self, url=None, width=None, height=None, size=None, frames=None, mp4=None, mp4_size=None, webp=None, webp_size=None):
self.swagger_types = {<EOL>'<STR_LIT:url>': '<STR_LIT:str>',<EOL>'<STR_LIT:width>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT:size>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>'<EOL>}<EOL>self.attribute_map = {<EOL>'<STR_LIT:url>': '<STR_LIT:url>',<EOL>'<STR_LIT:width>': '<STR_LIT:width>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:size>': '<STR_LIT:size>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>}<EOL>self._url = url<EOL>self._width = width<EOL>self._height = height<EOL>self._size = size<EOL>self._frames = frames<EOL>self._mp4 = mp4<EOL>self._mp4_size = mp4_size<EOL>self._webp = webp<EOL>self._webp_size = webp_size<EOL>
GifImagesOriginal - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition.
f3059:c0:m0
@property<EOL><INDENT>def url(self):<DEDENT>
return self._url<EOL>
Gets the url of this GifImagesOriginal. The publicly-accessible direct URL for this GIF. :return: The url of this GifImagesOriginal. :rtype: str
f3059:c0:m1
@url.setter<EOL><INDENT>def url(self, url):<DEDENT>
self._url = url<EOL>
Sets the url of this GifImagesOriginal. The publicly-accessible direct URL for this GIF. :param url: The url of this GifImagesOriginal. :type: str
f3059:c0:m2
@property<EOL><INDENT>def width(self):<DEDENT>
return self._width<EOL>
Gets the width of this GifImagesOriginal. The width of this GIF in pixels. :return: The width of this GifImagesOriginal. :rtype: str
f3059:c0:m3
@width.setter<EOL><INDENT>def width(self, width):<DEDENT>
self._width = width<EOL>
Sets the width of this GifImagesOriginal. The width of this GIF in pixels. :param width: The width of this GifImagesOriginal. :type: str
f3059:c0:m4
@property<EOL><INDENT>def height(self):<DEDENT>
return self._height<EOL>
Gets the height of this GifImagesOriginal. The height of this GIF in pixels. :return: The height of this GifImagesOriginal. :rtype: str
f3059:c0:m5
@height.setter<EOL><INDENT>def height(self, height):<DEDENT>
self._height = height<EOL>
Sets the height of this GifImagesOriginal. The height of this GIF in pixels. :param height: The height of this GifImagesOriginal. :type: str
f3059:c0:m6
@property<EOL><INDENT>def size(self):<DEDENT>
return self._size<EOL>
Gets the size of this GifImagesOriginal. The size of this GIF in bytes. :return: The size of this GifImagesOriginal. :rtype: str
f3059:c0:m7
@size.setter<EOL><INDENT>def size(self, size):<DEDENT>
self._size = size<EOL>
Sets the size of this GifImagesOriginal. The size of this GIF in bytes. :param size: The size of this GifImagesOriginal. :type: str
f3059:c0:m8
@property<EOL><INDENT>def frames(self):<DEDENT>
return self._frames<EOL>
Gets the frames of this GifImagesOriginal. The number of frames in this GIF. :return: The frames of this GifImagesOriginal. :rtype: str
f3059:c0:m9
@frames.setter<EOL><INDENT>def frames(self, frames):<DEDENT>
self._frames = frames<EOL>
Sets the frames of this GifImagesOriginal. The number of frames in this GIF. :param frames: The frames of this GifImagesOriginal. :type: str
f3059:c0:m10
@property<EOL><INDENT>def mp4(self):<DEDENT>
return self._mp4<EOL>
Gets the mp4 of this GifImagesOriginal. The URL for this GIF in .MP4 format. :return: The mp4 of this GifImagesOriginal. :rtype: str
f3059:c0:m11
@mp4.setter<EOL><INDENT>def mp4(self, mp4):<DEDENT>
self._mp4 = mp4<EOL>
Sets the mp4 of this GifImagesOriginal. The URL for this GIF in .MP4 format. :param mp4: The mp4 of this GifImagesOriginal. :type: str
f3059:c0:m12
@property<EOL><INDENT>def mp4_size(self):<DEDENT>
return self._mp4_size<EOL>
Gets the mp4_size of this GifImagesOriginal. The size in bytes of the .MP4 file corresponding to this GIF. :return: The mp4_size of this GifImagesOriginal. :rtype: str
f3059:c0:m13
@mp4_size.setter<EOL><INDENT>def mp4_size(self, mp4_size):<DEDENT>
self._mp4_size = mp4_size<EOL>
Sets the mp4_size of this GifImagesOriginal. The size in bytes of the .MP4 file corresponding to this GIF. :param mp4_size: The mp4_size of this GifImagesOriginal. :type: str
f3059:c0:m14
@property<EOL><INDENT>def webp(self):<DEDENT>
return self._webp<EOL>
Gets the webp of this GifImagesOriginal. The URL for this GIF in .webp format. :return: The webp of this GifImagesOriginal. :rtype: str
f3059:c0:m15
@webp.setter<EOL><INDENT>def webp(self, webp):<DEDENT>
self._webp = webp<EOL>
Sets the webp of this GifImagesOriginal. The URL for this GIF in .webp format. :param webp: The webp of this GifImagesOriginal. :type: str
f3059:c0:m16
@property<EOL><INDENT>def webp_size(self):<DEDENT>
return self._webp_size<EOL>
Gets the webp_size of this GifImagesOriginal. The size in bytes of the .webp file corresponding to this GIF. :return: The webp_size of this GifImagesOriginal. :rtype: str
f3059:c0:m17
@webp_size.setter<EOL><INDENT>def webp_size(self, webp_size):<DEDENT>
self._webp_size = webp_size<EOL>
Sets the webp_size of this GifImagesOriginal. The size in bytes of the .webp file corresponding to this GIF. :param webp_size: The webp_size of this GifImagesOriginal. :type: str
f3059:c0:m18
def to_dict(self):
result = {}<EOL>for attr, _ in iteritems(self.swagger_types):<EOL><INDENT>value = getattr(self, attr)<EOL>if isinstance(value, list):<EOL><INDENT>result[attr] = list(map(<EOL>lambda x: x.to_dict() if hasattr(x, "<STR_LIT>") else x,<EOL>value<EOL>))<EOL><DEDENT>elif hasattr(value, "<STR_LIT>"):<EOL><INDENT>result[attr] = value.to_dict()<EOL><DEDENT>elif isinstance(value, dict):<EOL><INDENT>result[attr] = dict(map(<EOL>lambda item: (item[<NUM_LIT:0>], item[<NUM_LIT:1>].to_dict())<EOL>if hasattr(item[<NUM_LIT:1>], "<STR_LIT>") else item,<EOL>value.items()<EOL>))<EOL><DEDENT>else:<EOL><INDENT>result[attr] = value<EOL><DEDENT><DEDENT>return result<EOL>
Returns the model properties as a dict
f3059:c0:m19
def to_str(self):
return pformat(self.to_dict())<EOL>
Returns the string representation of the model
f3059:c0:m20
def __repr__(self):
return self.to_str()<EOL>
For `print` and `pprint`
f3059:c0:m21