signature
stringlengths 8
3.44k
| body
stringlengths 0
1.41M
| docstring
stringlengths 1
122k
| id
stringlengths 5
17
|
---|---|---|---|
@name_encoded.setter<EOL><INDENT>def name_encoded(self, name_encoded):<DEDENT> | self._name_encoded = name_encoded<EOL> | Sets the name_encoded of this TrendingTag.
:param name_encoded: The name_encoded of this TrendingTag.
:type: str | f3049:c0:m4 |
@property<EOL><INDENT>def name(self):<DEDENT> | return self._name<EOL> | Gets the name of this TrendingTag.
:return: The name of this TrendingTag.
:rtype: str | f3049:c0:m5 |
@name.setter<EOL><INDENT>def name(self, name):<DEDENT> | self._name = name<EOL> | Sets the name of this TrendingTag.
:param name: The name of this TrendingTag.
:type: str | f3049: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 | f3049:c0:m7 |
def to_str(self): | return pformat(self.to_dict())<EOL> | Returns the string representation of the model | f3049:c0:m8 |
def __repr__(self): | return self.to_str()<EOL> | For `print` and `pprint` | f3049:c0:m9 |
def __eq__(self, other): | if not isinstance(other, TrendingTag):<EOL><INDENT>return False<EOL><DEDENT>return self.__dict__ == other.__dict__<EOL> | Returns true if both objects are equal | f3049:c0:m10 |
def __ne__(self, other): | return not self == other<EOL> | Returns true if both objects are not equal | f3049: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> | GifImagesDownsizedLarge - 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. | f3050:c0:m0 |
@property<EOL><INDENT>def url(self):<DEDENT> | return self._url<EOL> | Gets the url of this GifImagesDownsizedLarge.
The publicly-accessible direct URL for this GIF.
:return: The url of this GifImagesDownsizedLarge.
:rtype: str | f3050:c0:m1 |
@url.setter<EOL><INDENT>def url(self, url):<DEDENT> | self._url = url<EOL> | Sets the url of this GifImagesDownsizedLarge.
The publicly-accessible direct URL for this GIF.
:param url: The url of this GifImagesDownsizedLarge.
:type: str | f3050:c0:m2 |
@property<EOL><INDENT>def width(self):<DEDENT> | return self._width<EOL> | Gets the width of this GifImagesDownsizedLarge.
The width of this GIF in pixels.
:return: The width of this GifImagesDownsizedLarge.
:rtype: str | f3050:c0:m3 |
@width.setter<EOL><INDENT>def width(self, width):<DEDENT> | self._width = width<EOL> | Sets the width of this GifImagesDownsizedLarge.
The width of this GIF in pixels.
:param width: The width of this GifImagesDownsizedLarge.
:type: str | f3050:c0:m4 |
@property<EOL><INDENT>def height(self):<DEDENT> | return self._height<EOL> | Gets the height of this GifImagesDownsizedLarge.
The height of this GIF in pixels.
:return: The height of this GifImagesDownsizedLarge.
:rtype: str | f3050:c0:m5 |
@height.setter<EOL><INDENT>def height(self, height):<DEDENT> | self._height = height<EOL> | Sets the height of this GifImagesDownsizedLarge.
The height of this GIF in pixels.
:param height: The height of this GifImagesDownsizedLarge.
:type: str | f3050:c0:m6 |
@property<EOL><INDENT>def size(self):<DEDENT> | return self._size<EOL> | Gets the size of this GifImagesDownsizedLarge.
The size of this GIF in bytes.
:return: The size of this GifImagesDownsizedLarge.
:rtype: str | f3050:c0:m7 |
@size.setter<EOL><INDENT>def size(self, size):<DEDENT> | self._size = size<EOL> | Sets the size of this GifImagesDownsizedLarge.
The size of this GIF in bytes.
:param size: The size of this GifImagesDownsizedLarge.
:type: str | f3050: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 | f3050:c0:m9 |
def to_str(self): | return pformat(self.to_dict())<EOL> | Returns the string representation of the model | f3050:c0:m10 |
def __repr__(self): | return self.to_str()<EOL> | For `print` and `pprint` | f3050:c0:m11 |
def __eq__(self, other): | if not isinstance(other, GifImagesDownsizedLarge):<EOL><INDENT>return False<EOL><DEDENT>return self.__dict__ == other.__dict__<EOL> | Returns true if both objects are equal | f3050:c0:m12 |
def __ne__(self, other): | return not self == other<EOL> | Returns true if both objects are not equal | f3050:c0:m13 |
def __init__(self, name=None, name_encoded=None): | self.swagger_types = {<EOL>'<STR_LIT:name>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>'<EOL>}<EOL>self.attribute_map = {<EOL>'<STR_LIT:name>': '<STR_LIT:name>',<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>}<EOL>self._name = name<EOL>self._name_encoded = name_encoded<EOL> | ShallowTag - 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. | f3051:c0:m0 |
@property<EOL><INDENT>def name(self):<DEDENT> | return self._name<EOL> | Gets the name of this ShallowTag.
Category name
:return: The name of this ShallowTag.
:rtype: str | f3051:c0:m1 |
@name.setter<EOL><INDENT>def name(self, name):<DEDENT> | self._name = name<EOL> | Sets the name of this ShallowTag.
Category name
:param name: The name of this ShallowTag.
:type: str | f3051:c0:m2 |
@property<EOL><INDENT>def name_encoded(self):<DEDENT> | return self._name_encoded<EOL> | Gets the name_encoded of this ShallowTag.
Category name, with dashes instead of spaces.
:return: The name_encoded of this ShallowTag.
:rtype: str | f3051:c0:m3 |
@name_encoded.setter<EOL><INDENT>def name_encoded(self, name_encoded):<DEDENT> | self._name_encoded = name_encoded<EOL> | Sets the name_encoded of this ShallowTag.
Category name, with dashes instead of spaces.
:param name_encoded: The name_encoded of this ShallowTag.
:type: str | f3051:c0:m4 |
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 | f3051:c0:m5 |
def to_str(self): | return pformat(self.to_dict())<EOL> | Returns the string representation of the model | f3051:c0:m6 |
def __repr__(self): | return self.to_str()<EOL> | For `print` and `pprint` | f3051:c0:m7 |
def __eq__(self, other): | if not isinstance(other, ShallowTag):<EOL><INDENT>return False<EOL><DEDENT>return self.__dict__ == other.__dict__<EOL> | Returns true if both objects are equal | f3051:c0:m8 |
def __ne__(self, other): | return not self == other<EOL> | Returns true if both objects are not equal | f3051:c0:m9 |
def __init__(self, name=None, name_encoded=None, subcategories=None, gif=None): | self.swagger_types = {<EOL>'<STR_LIT:name>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>}<EOL>self.attribute_map = {<EOL>'<STR_LIT:name>': '<STR_LIT:name>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>}<EOL>self._name = name<EOL>self._name_encoded = name_encoded<EOL>self._subcategories = subcategories<EOL>self._gif = gif<EOL> | Category - 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. | f3052:c0:m0 |
@property<EOL><INDENT>def name(self):<DEDENT> | return self._name<EOL> | Gets the name of this Category.
Category name
:return: The name of this Category.
:rtype: str | f3052:c0:m1 |
@name.setter<EOL><INDENT>def name(self, name):<DEDENT> | self._name = name<EOL> | Sets the name of this Category.
Category name
:param name: The name of this Category.
:type: str | f3052:c0:m2 |
@property<EOL><INDENT>def name_encoded(self):<DEDENT> | return self._name_encoded<EOL> | Gets the name_encoded of this Category.
Category name, with dashes '-' instead of spaces ' '.
:return: The name_encoded of this Category.
:rtype: str | f3052:c0:m3 |
@name_encoded.setter<EOL><INDENT>def name_encoded(self, name_encoded):<DEDENT> | self._name_encoded = name_encoded<EOL> | Sets the name_encoded of this Category.
Category name, with dashes '-' instead of spaces ' '.
:param name_encoded: The name_encoded of this Category.
:type: str | f3052:c0:m4 |
@property<EOL><INDENT>def subcategories(self):<DEDENT> | return self._subcategories<EOL> | Gets the subcategories of this Category.
subcategories are tags for a given category. Use them with the `/gifs/categories/:category/:tag` endpoint
:return: The subcategories of this Category.
:rtype: list[ShallowTag] | f3052:c0:m5 |
@subcategories.setter<EOL><INDENT>def subcategories(self, subcategories):<DEDENT> | self._subcategories = subcategories<EOL> | Sets the subcategories of this Category.
subcategories are tags for a given category. Use them with the `/gifs/categories/:category/:tag` endpoint
:param subcategories: The subcategories of this Category.
:type: list[ShallowTag] | f3052:c0:m6 |
@property<EOL><INDENT>def gif(self):<DEDENT> | return self._gif<EOL> | Gets the gif of this Category.
A gif which can be used as the icon for this category.
:return: The gif of this Category.
:rtype: Gif | f3052:c0:m7 |
@gif.setter<EOL><INDENT>def gif(self, gif):<DEDENT> | self._gif = gif<EOL> | Sets the gif of this Category.
A gif which can be used as the icon for this category.
:param gif: The gif of this Category.
:type: Gif | f3052: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 | f3052:c0:m9 |
def to_str(self): | return pformat(self.to_dict())<EOL> | Returns the string representation of the model | f3052:c0:m10 |
def __repr__(self): | return self.to_str()<EOL> | For `print` and `pprint` | f3052:c0:m11 |
def __eq__(self, other): | if not isinstance(other, Category):<EOL><INDENT>return False<EOL><DEDENT>return self.__dict__ == other.__dict__<EOL> | Returns true if both objects are equal | f3052:c0:m12 |
def __ne__(self, other): | return not self == other<EOL> | Returns true if both objects are not equal | f3052:c0:m13 |
def __init__(self, url=None, width=None, height=None, 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>}<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>}<EOL>self._url = url<EOL>self._width = width<EOL>self._height = height<EOL>self._size = size<EOL>self._webp = webp<EOL>self._webp_size = webp_size<EOL> | GifImagesFixedHeightDownsampled - 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. | f3053:c0:m0 |
@property<EOL><INDENT>def url(self):<DEDENT> | return self._url<EOL> | Gets the url of this GifImagesFixedHeightDownsampled.
The publicly-accessible direct URL for this GIF.
:return: The url of this GifImagesFixedHeightDownsampled.
:rtype: str | f3053:c0:m1 |
@url.setter<EOL><INDENT>def url(self, url):<DEDENT> | self._url = url<EOL> | Sets the url of this GifImagesFixedHeightDownsampled.
The publicly-accessible direct URL for this GIF.
:param url: The url of this GifImagesFixedHeightDownsampled.
:type: str | f3053:c0:m2 |
@property<EOL><INDENT>def width(self):<DEDENT> | return self._width<EOL> | Gets the width of this GifImagesFixedHeightDownsampled.
The width of this GIF in pixels.
:return: The width of this GifImagesFixedHeightDownsampled.
:rtype: str | f3053:c0:m3 |
@width.setter<EOL><INDENT>def width(self, width):<DEDENT> | self._width = width<EOL> | Sets the width of this GifImagesFixedHeightDownsampled.
The width of this GIF in pixels.
:param width: The width of this GifImagesFixedHeightDownsampled.
:type: str | f3053:c0:m4 |
@property<EOL><INDENT>def height(self):<DEDENT> | return self._height<EOL> | Gets the height of this GifImagesFixedHeightDownsampled.
The height of this GIF in pixels.
:return: The height of this GifImagesFixedHeightDownsampled.
:rtype: str | f3053:c0:m5 |
@height.setter<EOL><INDENT>def height(self, height):<DEDENT> | self._height = height<EOL> | Sets the height of this GifImagesFixedHeightDownsampled.
The height of this GIF in pixels.
:param height: The height of this GifImagesFixedHeightDownsampled.
:type: str | f3053:c0:m6 |
@property<EOL><INDENT>def size(self):<DEDENT> | return self._size<EOL> | Gets the size of this GifImagesFixedHeightDownsampled.
The size of this GIF in bytes.
:return: The size of this GifImagesFixedHeightDownsampled.
:rtype: str | f3053:c0:m7 |
@size.setter<EOL><INDENT>def size(self, size):<DEDENT> | self._size = size<EOL> | Sets the size of this GifImagesFixedHeightDownsampled.
The size of this GIF in bytes.
:param size: The size of this GifImagesFixedHeightDownsampled.
:type: str | f3053:c0:m8 |
@property<EOL><INDENT>def webp(self):<DEDENT> | return self._webp<EOL> | Gets the webp of this GifImagesFixedHeightDownsampled.
The URL for this GIF in .webp format.
:return: The webp of this GifImagesFixedHeightDownsampled.
:rtype: str | f3053:c0:m9 |
@webp.setter<EOL><INDENT>def webp(self, webp):<DEDENT> | self._webp = webp<EOL> | Sets the webp of this GifImagesFixedHeightDownsampled.
The URL for this GIF in .webp format.
:param webp: The webp of this GifImagesFixedHeightDownsampled.
:type: str | f3053:c0:m10 |
@property<EOL><INDENT>def webp_size(self):<DEDENT> | return self._webp_size<EOL> | Gets the webp_size of this GifImagesFixedHeightDownsampled.
The size in bytes of the .webp file corresponding to this GIF.
:return: The webp_size of this GifImagesFixedHeightDownsampled.
:rtype: str | f3053:c0:m11 |
@webp_size.setter<EOL><INDENT>def webp_size(self, webp_size):<DEDENT> | self._webp_size = webp_size<EOL> | Sets the webp_size of this GifImagesFixedHeightDownsampled.
The size in bytes of the .webp file corresponding to this GIF.
:param webp_size: The webp_size of this GifImagesFixedHeightDownsampled.
:type: str | f3053:c0:m12 |
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 | f3053:c0:m13 |
def to_str(self): | return pformat(self.to_dict())<EOL> | Returns the string representation of the model | f3053:c0:m14 |
def __repr__(self): | return self.to_str()<EOL> | For `print` and `pprint` | f3053:c0:m15 |
def __eq__(self, other): | if not isinstance(other, GifImagesFixedHeightDownsampled):<EOL><INDENT>return False<EOL><DEDENT>return self.__dict__ == other.__dict__<EOL> | Returns true if both objects are equal | f3053:c0:m16 |
def __ne__(self, other): | return not self == other<EOL> | Returns true if both objects are not equal | f3053:c0:m17 |
def __init__(self, url=None, width=None, height=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>}<EOL>self.attribute_map = {<EOL>'<STR_LIT:url>': '<STR_LIT:url>',<EOL>'<STR_LIT:width>': '<STR_LIT:width>',<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>}<EOL>self._url = url<EOL>self._width = width<EOL>self._height = height<EOL> | GifImagesFixedHeightStill - 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. | f3054:c0:m0 |
@property<EOL><INDENT>def url(self):<DEDENT> | return self._url<EOL> | Gets the url of this GifImagesFixedHeightStill.
The publicly-accessible direct URL for this GIF.
:return: The url of this GifImagesFixedHeightStill.
:rtype: str | f3054:c0:m1 |
@url.setter<EOL><INDENT>def url(self, url):<DEDENT> | self._url = url<EOL> | Sets the url of this GifImagesFixedHeightStill.
The publicly-accessible direct URL for this GIF.
:param url: The url of this GifImagesFixedHeightStill.
:type: str | f3054:c0:m2 |
@property<EOL><INDENT>def width(self):<DEDENT> | return self._width<EOL> | Gets the width of this GifImagesFixedHeightStill.
The width of this GIF in pixels.
:return: The width of this GifImagesFixedHeightStill.
:rtype: str | f3054:c0:m3 |
@width.setter<EOL><INDENT>def width(self, width):<DEDENT> | self._width = width<EOL> | Sets the width of this GifImagesFixedHeightStill.
The width of this GIF in pixels.
:param width: The width of this GifImagesFixedHeightStill.
:type: str | f3054:c0:m4 |
@property<EOL><INDENT>def height(self):<DEDENT> | return self._height<EOL> | Gets the height of this GifImagesFixedHeightStill.
The height of this GIF in pixels.
:return: The height of this GifImagesFixedHeightStill.
:rtype: str | f3054:c0:m5 |
@height.setter<EOL><INDENT>def height(self, height):<DEDENT> | self._height = height<EOL> | Sets the height of this GifImagesFixedHeightStill.
The height of this GIF in pixels.
:param height: The height of this GifImagesFixedHeightStill.
:type: str | f3054: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 | f3054:c0:m7 |
def to_str(self): | return pformat(self.to_dict())<EOL> | Returns the string representation of the model | f3054:c0:m8 |
def __repr__(self): | return self.to_str()<EOL> | For `print` and `pprint` | f3054:c0:m9 |
def __eq__(self, other): | if not isinstance(other, GifImagesFixedHeightStill):<EOL><INDENT>return False<EOL><DEDENT>return self.__dict__ == other.__dict__<EOL> | Returns true if both objects are equal | f3054:c0:m10 |
def __ne__(self, other): | return not self == other<EOL> | Returns true if both objects are not equal | f3054:c0:m11 |
def __init__(self, type='<STR_LIT>', id=None, slug=None, url=None, bitly_gif_url=None, bitly_url=None, embed_url=None, username=None, source=None, rating=None, content_url=None, tags=None, featured_tags=None, user=None, source_tld=None, source_post_url=None, is_hidden=None, is_removed=None, is_community=None, is_anonymous=None, is_featured=None, is_realtime=None, is_indexable=None, is_sticker=None, update_datetime=None, create_datetime=None, import_datetime=None, trending_datetime=None, images=None): | self.swagger_types = {<EOL>'<STR_LIT:type>': '<STR_LIT:str>',<EOL>'<STR_LIT:id>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT:url>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT:username>': '<STR_LIT:str>',<EOL>'<STR_LIT:source>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:user>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:bool>',<EOL>'<STR_LIT>': '<STR_LIT:bool>',<EOL>'<STR_LIT>': '<STR_LIT:bool>',<EOL>'<STR_LIT>': '<STR_LIT:bool>',<EOL>'<STR_LIT>': '<STR_LIT:bool>',<EOL>'<STR_LIT>': '<STR_LIT:bool>',<EOL>'<STR_LIT>': '<STR_LIT:bool>',<EOL>'<STR_LIT>': '<STR_LIT:bool>',<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>'<EOL>}<EOL>self.attribute_map = {<EOL>'<STR_LIT:type>': '<STR_LIT:type>',<EOL>'<STR_LIT:id>': '<STR_LIT:id>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:url>': '<STR_LIT:url>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:username>': '<STR_LIT:username>',<EOL>'<STR_LIT:source>': '<STR_LIT:source>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:user>': '<STR_LIT:user>',<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>'<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>'<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._type = type<EOL>self._id = id<EOL>self._slug = slug<EOL>self._url = url<EOL>self._bitly_gif_url = bitly_gif_url<EOL>self._bitly_url = bitly_url<EOL>self._embed_url = embed_url<EOL>self._username = username<EOL>self._source = source<EOL>self._rating = rating<EOL>self._content_url = content_url<EOL>self._tags = tags<EOL>self._featured_tags = featured_tags<EOL>self._user = user<EOL>self._source_tld = source_tld<EOL>self._source_post_url = source_post_url<EOL>self._is_hidden = is_hidden<EOL>self._is_removed = is_removed<EOL>self._is_community = is_community<EOL>self._is_anonymous = is_anonymous<EOL>self._is_featured = is_featured<EOL>self._is_realtime = is_realtime<EOL>self._is_indexable = is_indexable<EOL>self._is_sticker = is_sticker<EOL>self._update_datetime = update_datetime<EOL>self._create_datetime = create_datetime<EOL>self._import_datetime = import_datetime<EOL>self._trending_datetime = trending_datetime<EOL>self._images = images<EOL> | Gif - 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. | f3055:c0:m0 |
@property<EOL><INDENT>def type(self):<DEDENT> | return self._type<EOL> | Gets the type of this Gif.
By default, this is almost always gif
:return: The type of this Gif.
:rtype: str | f3055:c0:m1 |
@type.setter<EOL><INDENT>def type(self, type):<DEDENT> | self._type = type<EOL> | Sets the type of this Gif.
By default, this is almost always gif
:param type: The type of this Gif.
:type: str | f3055:c0:m2 |
@property<EOL><INDENT>def id(self):<DEDENT> | return self._id<EOL> | Gets the id of this Gif.
This GIF's unique ID
:return: The id of this Gif.
:rtype: str | f3055:c0:m3 |
@id.setter<EOL><INDENT>def id(self, id):<DEDENT> | self._id = id<EOL> | Sets the id of this Gif.
This GIF's unique ID
:param id: The id of this Gif.
:type: str | f3055:c0:m4 |
@property<EOL><INDENT>def slug(self):<DEDENT> | return self._slug<EOL> | Gets the slug of this Gif.
The unique slug used in this GIF's URL
:return: The slug of this Gif.
:rtype: str | f3055:c0:m5 |
@slug.setter<EOL><INDENT>def slug(self, slug):<DEDENT> | self._slug = slug<EOL> | Sets the slug of this Gif.
The unique slug used in this GIF's URL
:param slug: The slug of this Gif.
:type: str | f3055:c0:m6 |
@property<EOL><INDENT>def url(self):<DEDENT> | return self._url<EOL> | Gets the url of this Gif.
The unique URL for this GIF
:return: The url of this Gif.
:rtype: str | f3055:c0:m7 |
@url.setter<EOL><INDENT>def url(self, url):<DEDENT> | self._url = url<EOL> | Sets the url of this Gif.
The unique URL for this GIF
:param url: The url of this Gif.
:type: str | f3055:c0:m8 |
@property<EOL><INDENT>def bitly_gif_url(self):<DEDENT> | return self._bitly_gif_url<EOL> | Gets the bitly_gif_url of this Gif.
The unique bit.ly URL for this GIF
:return: The bitly_gif_url of this Gif.
:rtype: str | f3055:c0:m9 |
@bitly_gif_url.setter<EOL><INDENT>def bitly_gif_url(self, bitly_gif_url):<DEDENT> | self._bitly_gif_url = bitly_gif_url<EOL> | Sets the bitly_gif_url of this Gif.
The unique bit.ly URL for this GIF
:param bitly_gif_url: The bitly_gif_url of this Gif.
:type: str | f3055:c0:m10 |
@property<EOL><INDENT>def bitly_url(self):<DEDENT> | return self._bitly_url<EOL> | Gets the bitly_url of this Gif.
The unique bit.ly URL for this GIF
:return: The bitly_url of this Gif.
:rtype: str | f3055:c0:m11 |
@bitly_url.setter<EOL><INDENT>def bitly_url(self, bitly_url):<DEDENT> | self._bitly_url = bitly_url<EOL> | Sets the bitly_url of this Gif.
The unique bit.ly URL for this GIF
:param bitly_url: The bitly_url of this Gif.
:type: str | f3055:c0:m12 |
@property<EOL><INDENT>def embed_url(self):<DEDENT> | return self._embed_url<EOL> | Gets the embed_url of this Gif.
A URL used for embedding this GIF
:return: The embed_url of this Gif.
:rtype: str | f3055:c0:m13 |
@embed_url.setter<EOL><INDENT>def embed_url(self, embed_url):<DEDENT> | self._embed_url = embed_url<EOL> | Sets the embed_url of this Gif.
A URL used for embedding this GIF
:param embed_url: The embed_url of this Gif.
:type: str | f3055:c0:m14 |
@property<EOL><INDENT>def username(self):<DEDENT> | return self._username<EOL> | Gets the username of this Gif.
The username this GIF is attached to, if applicable
:return: The username of this Gif.
:rtype: str | f3055:c0:m15 |
@username.setter<EOL><INDENT>def username(self, username):<DEDENT> | self._username = username<EOL> | Sets the username of this Gif.
The username this GIF is attached to, if applicable
:param username: The username of this Gif.
:type: str | f3055:c0:m16 |
@property<EOL><INDENT>def source(self):<DEDENT> | return self._source<EOL> | Gets the source of this Gif.
The page on which this GIF was found
:return: The source of this Gif.
:rtype: str | f3055:c0:m17 |
@source.setter<EOL><INDENT>def source(self, source):<DEDENT> | self._source = source<EOL> | Sets the source of this Gif.
The page on which this GIF was found
:param source: The source of this Gif.
:type: str | f3055:c0:m18 |
@property<EOL><INDENT>def rating(self):<DEDENT> | return self._rating<EOL> | Gets the rating of this Gif.
The MPAA-style rating for this content. Examples include Y, G, PG, PG-13 and R
:return: The rating of this Gif.
:rtype: str | f3055:c0:m19 |
@rating.setter<EOL><INDENT>def rating(self, rating):<DEDENT> | self._rating = rating<EOL> | Sets the rating of this Gif.
The MPAA-style rating for this content. Examples include Y, G, PG, PG-13 and R
:param rating: The rating of this Gif.
:type: str | f3055:c0:m20 |
@property<EOL><INDENT>def content_url(self):<DEDENT> | return self._content_url<EOL> | Gets the content_url of this Gif.
Currently unused
:return: The content_url of this Gif.
:rtype: str | f3055:c0:m21 |
@content_url.setter<EOL><INDENT>def content_url(self, content_url):<DEDENT> | self._content_url = content_url<EOL> | Sets the content_url of this Gif.
Currently unused
:param content_url: The content_url of this Gif.
:type: str | f3055:c0:m22 |
@property<EOL><INDENT>def tags(self):<DEDENT> | return self._tags<EOL> | Gets the tags of this Gif.
An array of tags for this GIF (Note\\: Not available when using the Public Beta Key)
:return: The tags of this Gif.
:rtype: list[str] | f3055:c0:m23 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.