signature
stringlengths 8
3.44k
| body
stringlengths 0
1.41M
| docstring
stringlengths 1
122k
| id
stringlengths 5
17
|
---|---|---|---|
@fixed_width_small_url.setter<EOL><INDENT>def fixed_width_small_url(self, fixed_width_small_url):<DEDENT> | self._fixed_width_small_url = fixed_width_small_url<EOL> | Sets the fixed_width_small_url of this RandomGif.
:param fixed_width_small_url: The fixed_width_small_url of this RandomGif.
:type: str | f3077:c0:m40 |
@property<EOL><INDENT>def fixed_width_small_still_url(self):<DEDENT> | return self._fixed_width_small_still_url<EOL> | Gets the fixed_width_small_still_url of this RandomGif.
A still version of this GIF with a fixed width of 100 pixels.
:return: The fixed_width_small_still_url of this RandomGif.
:rtype: str | f3077:c0:m41 |
@fixed_width_small_still_url.setter<EOL><INDENT>def fixed_width_small_still_url(self, fixed_width_small_still_url):<DEDENT> | self._fixed_width_small_still_url = fixed_width_small_still_url<EOL> | Sets the fixed_width_small_still_url of this RandomGif.
A still version of this GIF with a fixed width of 100 pixels.
:param fixed_width_small_still_url: The fixed_width_small_still_url of this RandomGif.
:type: str | f3077:c0:m42 |
@property<EOL><INDENT>def fixed_width_small_width(self):<DEDENT> | return self._fixed_width_small_width<EOL> | Gets the fixed_width_small_width of this RandomGif.
:return: The fixed_width_small_width of this RandomGif.
:rtype: str | f3077:c0:m43 |
@fixed_width_small_width.setter<EOL><INDENT>def fixed_width_small_width(self, fixed_width_small_width):<DEDENT> | self._fixed_width_small_width = fixed_width_small_width<EOL> | Sets the fixed_width_small_width of this RandomGif.
:param fixed_width_small_width: The fixed_width_small_width of this RandomGif.
:type: str | f3077:c0:m44 |
@property<EOL><INDENT>def fixed_width_small_height(self):<DEDENT> | return self._fixed_width_small_height<EOL> | Gets the fixed_width_small_height of this RandomGif.
:return: The fixed_width_small_height of this RandomGif.
:rtype: str | f3077:c0:m45 |
@fixed_width_small_height.setter<EOL><INDENT>def fixed_width_small_height(self, fixed_width_small_height):<DEDENT> | self._fixed_width_small_height = fixed_width_small_height<EOL> | Sets the fixed_width_small_height of this RandomGif.
:param fixed_width_small_height: The fixed_width_small_height of this RandomGif.
:type: str | f3077:c0:m46 |
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 | f3077:c0:m47 |
def to_str(self): | return pformat(self.to_dict())<EOL> | Returns the string representation of the model | f3077:c0:m48 |
def __repr__(self): | return self.to_str()<EOL> | For `print` and `pprint` | f3077:c0:m49 |
def __eq__(self, other): | if not isinstance(other, RandomGif):<EOL><INDENT>return False<EOL><DEDENT>return self.__dict__ == other.__dict__<EOL> | Returns true if both objects are equal | f3077:c0:m50 |
def __ne__(self, other): | return not self == other<EOL> | Returns true if both objects are not equal | f3077:c0:m51 |
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> | GifImagesOriginalStill - 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. | f3078:c0:m0 |
@property<EOL><INDENT>def url(self):<DEDENT> | return self._url<EOL> | Gets the url of this GifImagesOriginalStill.
The publicly-accessible direct URL for this GIF.
:return: The url of this GifImagesOriginalStill.
:rtype: str | f3078:c0:m1 |
@url.setter<EOL><INDENT>def url(self, url):<DEDENT> | self._url = url<EOL> | Sets the url of this GifImagesOriginalStill.
The publicly-accessible direct URL for this GIF.
:param url: The url of this GifImagesOriginalStill.
:type: str | f3078:c0:m2 |
@property<EOL><INDENT>def width(self):<DEDENT> | return self._width<EOL> | Gets the width of this GifImagesOriginalStill.
The width of this GIF in pixels.
:return: The width of this GifImagesOriginalStill.
:rtype: str | f3078:c0:m3 |
@width.setter<EOL><INDENT>def width(self, width):<DEDENT> | self._width = width<EOL> | Sets the width of this GifImagesOriginalStill.
The width of this GIF in pixels.
:param width: The width of this GifImagesOriginalStill.
:type: str | f3078:c0:m4 |
@property<EOL><INDENT>def height(self):<DEDENT> | return self._height<EOL> | Gets the height of this GifImagesOriginalStill.
The height of this GIF in pixels.
:return: The height of this GifImagesOriginalStill.
:rtype: str | f3078:c0:m5 |
@height.setter<EOL><INDENT>def height(self, height):<DEDENT> | self._height = height<EOL> | Sets the height of this GifImagesOriginalStill.
The height of this GIF in pixels.
:param height: The height of this GifImagesOriginalStill.
:type: str | f3078: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 | f3078:c0:m7 |
def to_str(self): | return pformat(self.to_dict())<EOL> | Returns the string representation of the model | f3078:c0:m8 |
def __repr__(self): | return self.to_str()<EOL> | For `print` and `pprint` | f3078:c0:m9 |
def __eq__(self, other): | if not isinstance(other, GifImagesOriginalStill):<EOL><INDENT>return False<EOL><DEDENT>return self.__dict__ == other.__dict__<EOL> | Returns true if both objects are equal | f3078:c0:m10 |
def __ne__(self, other): | return not self == other<EOL> | Returns true if both objects are not equal | f3078:c0:m11 |
def __init__(self, type='<STR_LIT>', id=None, parent=None, create_datetime=None, breadcrumbs=None, username=None, slug=None, title=None, short_title=None, description=None, featured_gif=None, banner_image=None, avatar_image=None, screensaver_gif=None, is_private=None, is_live=None, event_start_datetime=None, event_end_datetime=None, has_children=None, url=None, website_url=None, instagram_url=None, twitter_url=None, facebook_url=None, pinterest_url=None, tumblr_url=None, user=None, trending_tags=None, gifs=None): | self.swagger_types = {<EOL>'<STR_LIT:type>': '<STR_LIT:str>',<EOL>'<STR_LIT:id>': '<STR_LIT:int>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:username>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT:title>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT:description>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT>',<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:bool>',<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>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT>': '<STR_LIT:str>',<EOL>'<STR_LIT:user>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<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>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:username>': '<STR_LIT:username>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:title>': '<STR_LIT:title>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:description>': '<STR_LIT:description>',<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:url>': '<STR_LIT:url>',<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:user>': '<STR_LIT:user>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>}<EOL>self._type = type<EOL>self._id = id<EOL>self._parent = parent<EOL>self._create_datetime = create_datetime<EOL>self._breadcrumbs = breadcrumbs<EOL>self._username = username<EOL>self._slug = slug<EOL>self._title = title<EOL>self._short_title = short_title<EOL>self._description = description<EOL>self._featured_gif = featured_gif<EOL>self._banner_image = banner_image<EOL>self._avatar_image = avatar_image<EOL>self._screensaver_gif = screensaver_gif<EOL>self._is_private = is_private<EOL>self._is_live = is_live<EOL>self._event_start_datetime = event_start_datetime<EOL>self._event_end_datetime = event_end_datetime<EOL>self._has_children = has_children<EOL>self._url = url<EOL>self._website_url = website_url<EOL>self._instagram_url = instagram_url<EOL>self._twitter_url = twitter_url<EOL>self._facebook_url = facebook_url<EOL>self._pinterest_url = pinterest_url<EOL>self._tumblr_url = tumblr_url<EOL>self._user = user<EOL>self._trending_tags = trending_tags<EOL>self._gifs = gifs<EOL> | BaseChannelModel - 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. | f3079:c0:m0 |
@property<EOL><INDENT>def type(self):<DEDENT> | return self._type<EOL> | Gets the type of this BaseChannelModel.
Always \"channel\"
:return: The type of this BaseChannelModel.
:rtype: str | f3079:c0:m1 |
@type.setter<EOL><INDENT>def type(self, type):<DEDENT> | self._type = type<EOL> | Sets the type of this BaseChannelModel.
Always \"channel\"
:param type: The type of this BaseChannelModel.
:type: str | f3079:c0:m2 |
@property<EOL><INDENT>def id(self):<DEDENT> | return self._id<EOL> | Gets the id of this BaseChannelModel.
123
:return: The id of this BaseChannelModel.
:rtype: int | f3079:c0:m3 |
@id.setter<EOL><INDENT>def id(self, id):<DEDENT> | self._id = id<EOL> | Sets the id of this BaseChannelModel.
123
:param id: The id of this BaseChannelModel.
:type: int | f3079:c0:m4 |
@property<EOL><INDENT>def parent(self):<DEDENT> | return self._parent<EOL> | Gets the parent of this BaseChannelModel.
parent's slug
:return: The parent of this BaseChannelModel.
:rtype: str | f3079:c0:m5 |
@parent.setter<EOL><INDENT>def parent(self, parent):<DEDENT> | self._parent = parent<EOL> | Sets the parent of this BaseChannelModel.
parent's slug
:param parent: The parent of this BaseChannelModel.
:type: str | f3079:c0:m6 |
@property<EOL><INDENT>def create_datetime(self):<DEDENT> | return self._create_datetime<EOL> | Gets the create_datetime of this BaseChannelModel.
xyz
:return: The create_datetime of this BaseChannelModel.
:rtype: str | f3079:c0:m7 |
@create_datetime.setter<EOL><INDENT>def create_datetime(self, create_datetime):<DEDENT> | self._create_datetime = create_datetime<EOL> | Sets the create_datetime of this BaseChannelModel.
xyz
:param create_datetime: The create_datetime of this BaseChannelModel.
:type: str | f3079:c0:m8 |
@property<EOL><INDENT>def breadcrumbs(self):<DEDENT> | return self._breadcrumbs<EOL> | Gets the breadcrumbs of this BaseChannelModel.
:return: The breadcrumbs of this BaseChannelModel.
:rtype: list[Breadcrumb] | f3079:c0:m9 |
@breadcrumbs.setter<EOL><INDENT>def breadcrumbs(self, breadcrumbs):<DEDENT> | self._breadcrumbs = breadcrumbs<EOL> | Sets the breadcrumbs of this BaseChannelModel.
:param breadcrumbs: The breadcrumbs of this BaseChannelModel.
:type: list[Breadcrumb] | f3079:c0:m10 |
@property<EOL><INDENT>def username(self):<DEDENT> | return self._username<EOL> | Gets the username of this BaseChannelModel.
xyz
:return: The username of this BaseChannelModel.
:rtype: str | f3079:c0:m11 |
@username.setter<EOL><INDENT>def username(self, username):<DEDENT> | self._username = username<EOL> | Sets the username of this BaseChannelModel.
xyz
:param username: The username of this BaseChannelModel.
:type: str | f3079:c0:m12 |
@property<EOL><INDENT>def slug(self):<DEDENT> | return self._slug<EOL> | Gets the slug of this BaseChannelModel.
:return: The slug of this BaseChannelModel.
:rtype: str | f3079:c0:m13 |
@slug.setter<EOL><INDENT>def slug(self, slug):<DEDENT> | self._slug = slug<EOL> | Sets the slug of this BaseChannelModel.
:param slug: The slug of this BaseChannelModel.
:type: str | f3079:c0:m14 |
@property<EOL><INDENT>def title(self):<DEDENT> | return self._title<EOL> | Gets the title of this BaseChannelModel.
xyz
:return: The title of this BaseChannelModel.
:rtype: str | f3079:c0:m15 |
@title.setter<EOL><INDENT>def title(self, title):<DEDENT> | self._title = title<EOL> | Sets the title of this BaseChannelModel.
xyz
:param title: The title of this BaseChannelModel.
:type: str | f3079:c0:m16 |
@property<EOL><INDENT>def short_title(self):<DEDENT> | return self._short_title<EOL> | Gets the short_title of this BaseChannelModel.
xyz
:return: The short_title of this BaseChannelModel.
:rtype: str | f3079:c0:m17 |
@short_title.setter<EOL><INDENT>def short_title(self, short_title):<DEDENT> | self._short_title = short_title<EOL> | Sets the short_title of this BaseChannelModel.
xyz
:param short_title: The short_title of this BaseChannelModel.
:type: str | f3079:c0:m18 |
@property<EOL><INDENT>def description(self):<DEDENT> | return self._description<EOL> | Gets the description of this BaseChannelModel.
xyz
:return: The description of this BaseChannelModel.
:rtype: str | f3079:c0:m19 |
@description.setter<EOL><INDENT>def description(self, description):<DEDENT> | self._description = description<EOL> | Sets the description of this BaseChannelModel.
xyz
:param description: The description of this BaseChannelModel.
:type: str | f3079:c0:m20 |
@property<EOL><INDENT>def featured_gif(self):<DEDENT> | return self._featured_gif<EOL> | Gets the featured_gif of this BaseChannelModel.
:return: The featured_gif of this BaseChannelModel.
:rtype: Gif | f3079:c0:m21 |
@featured_gif.setter<EOL><INDENT>def featured_gif(self, featured_gif):<DEDENT> | self._featured_gif = featured_gif<EOL> | Sets the featured_gif of this BaseChannelModel.
:param featured_gif: The featured_gif of this BaseChannelModel.
:type: Gif | f3079:c0:m22 |
@property<EOL><INDENT>def banner_image(self):<DEDENT> | return self._banner_image<EOL> | Gets the banner_image of this BaseChannelModel.
xyz
:return: The banner_image of this BaseChannelModel.
:rtype: str | f3079:c0:m23 |
@banner_image.setter<EOL><INDENT>def banner_image(self, banner_image):<DEDENT> | self._banner_image = banner_image<EOL> | Sets the banner_image of this BaseChannelModel.
xyz
:param banner_image: The banner_image of this BaseChannelModel.
:type: str | f3079:c0:m24 |
@property<EOL><INDENT>def avatar_image(self):<DEDENT> | return self._avatar_image<EOL> | Gets the avatar_image of this BaseChannelModel.
xyz
:return: The avatar_image of this BaseChannelModel.
:rtype: str | f3079:c0:m25 |
@avatar_image.setter<EOL><INDENT>def avatar_image(self, avatar_image):<DEDENT> | self._avatar_image = avatar_image<EOL> | Sets the avatar_image of this BaseChannelModel.
xyz
:param avatar_image: The avatar_image of this BaseChannelModel.
:type: str | f3079:c0:m26 |
@property<EOL><INDENT>def screensaver_gif(self):<DEDENT> | return self._screensaver_gif<EOL> | Gets the screensaver_gif of this BaseChannelModel.
:return: The screensaver_gif of this BaseChannelModel.
:rtype: Gif | f3079:c0:m27 |
@screensaver_gif.setter<EOL><INDENT>def screensaver_gif(self, screensaver_gif):<DEDENT> | self._screensaver_gif = screensaver_gif<EOL> | Sets the screensaver_gif of this BaseChannelModel.
:param screensaver_gif: The screensaver_gif of this BaseChannelModel.
:type: Gif | f3079:c0:m28 |
@property<EOL><INDENT>def is_private(self):<DEDENT> | return self._is_private<EOL> | Gets the is_private of this BaseChannelModel.
:return: The is_private of this BaseChannelModel.
:rtype: bool | f3079:c0:m29 |
@is_private.setter<EOL><INDENT>def is_private(self, is_private):<DEDENT> | self._is_private = is_private<EOL> | Sets the is_private of this BaseChannelModel.
:param is_private: The is_private of this BaseChannelModel.
:type: bool | f3079:c0:m30 |
@property<EOL><INDENT>def is_live(self):<DEDENT> | return self._is_live<EOL> | Gets the is_live of this BaseChannelModel.
:return: The is_live of this BaseChannelModel.
:rtype: bool | f3079:c0:m31 |
@is_live.setter<EOL><INDENT>def is_live(self, is_live):<DEDENT> | self._is_live = is_live<EOL> | Sets the is_live of this BaseChannelModel.
:param is_live: The is_live of this BaseChannelModel.
:type: bool | f3079:c0:m32 |
@property<EOL><INDENT>def event_start_datetime(self):<DEDENT> | return self._event_start_datetime<EOL> | Gets the event_start_datetime of this BaseChannelModel.
xyz
:return: The event_start_datetime of this BaseChannelModel.
:rtype: str | f3079:c0:m33 |
@event_start_datetime.setter<EOL><INDENT>def event_start_datetime(self, event_start_datetime):<DEDENT> | self._event_start_datetime = event_start_datetime<EOL> | Sets the event_start_datetime of this BaseChannelModel.
xyz
:param event_start_datetime: The event_start_datetime of this BaseChannelModel.
:type: str | f3079:c0:m34 |
@property<EOL><INDENT>def event_end_datetime(self):<DEDENT> | return self._event_end_datetime<EOL> | Gets the event_end_datetime of this BaseChannelModel.
xyz
:return: The event_end_datetime of this BaseChannelModel.
:rtype: str | f3079:c0:m35 |
@event_end_datetime.setter<EOL><INDENT>def event_end_datetime(self, event_end_datetime):<DEDENT> | self._event_end_datetime = event_end_datetime<EOL> | Sets the event_end_datetime of this BaseChannelModel.
xyz
:param event_end_datetime: The event_end_datetime of this BaseChannelModel.
:type: str | f3079:c0:m36 |
@property<EOL><INDENT>def has_children(self):<DEDENT> | return self._has_children<EOL> | Gets the has_children of this BaseChannelModel.
:return: The has_children of this BaseChannelModel.
:rtype: bool | f3079:c0:m37 |
@has_children.setter<EOL><INDENT>def has_children(self, has_children):<DEDENT> | self._has_children = has_children<EOL> | Sets the has_children of this BaseChannelModel.
:param has_children: The has_children of this BaseChannelModel.
:type: bool | f3079:c0:m38 |
@property<EOL><INDENT>def url(self):<DEDENT> | return self._url<EOL> | Gets the url of this BaseChannelModel.
xyz
:return: The url of this BaseChannelModel.
:rtype: str | f3079:c0:m39 |
@url.setter<EOL><INDENT>def url(self, url):<DEDENT> | self._url = url<EOL> | Sets the url of this BaseChannelModel.
xyz
:param url: The url of this BaseChannelModel.
:type: str | f3079:c0:m40 |
@property<EOL><INDENT>def website_url(self):<DEDENT> | return self._website_url<EOL> | Gets the website_url of this BaseChannelModel.
xyz
:return: The website_url of this BaseChannelModel.
:rtype: str | f3079:c0:m41 |
@website_url.setter<EOL><INDENT>def website_url(self, website_url):<DEDENT> | self._website_url = website_url<EOL> | Sets the website_url of this BaseChannelModel.
xyz
:param website_url: The website_url of this BaseChannelModel.
:type: str | f3079:c0:m42 |
@property<EOL><INDENT>def instagram_url(self):<DEDENT> | return self._instagram_url<EOL> | Gets the instagram_url of this BaseChannelModel.
xyz
:return: The instagram_url of this BaseChannelModel.
:rtype: str | f3079:c0:m43 |
@instagram_url.setter<EOL><INDENT>def instagram_url(self, instagram_url):<DEDENT> | self._instagram_url = instagram_url<EOL> | Sets the instagram_url of this BaseChannelModel.
xyz
:param instagram_url: The instagram_url of this BaseChannelModel.
:type: str | f3079:c0:m44 |
@property<EOL><INDENT>def twitter_url(self):<DEDENT> | return self._twitter_url<EOL> | Gets the twitter_url of this BaseChannelModel.
xyz
:return: The twitter_url of this BaseChannelModel.
:rtype: str | f3079:c0:m45 |
@twitter_url.setter<EOL><INDENT>def twitter_url(self, twitter_url):<DEDENT> | self._twitter_url = twitter_url<EOL> | Sets the twitter_url of this BaseChannelModel.
xyz
:param twitter_url: The twitter_url of this BaseChannelModel.
:type: str | f3079:c0:m46 |
@property<EOL><INDENT>def facebook_url(self):<DEDENT> | return self._facebook_url<EOL> | Gets the facebook_url of this BaseChannelModel.
xyz
:return: The facebook_url of this BaseChannelModel.
:rtype: str | f3079:c0:m47 |
@facebook_url.setter<EOL><INDENT>def facebook_url(self, facebook_url):<DEDENT> | self._facebook_url = facebook_url<EOL> | Sets the facebook_url of this BaseChannelModel.
xyz
:param facebook_url: The facebook_url of this BaseChannelModel.
:type: str | f3079:c0:m48 |
@property<EOL><INDENT>def pinterest_url(self):<DEDENT> | return self._pinterest_url<EOL> | Gets the pinterest_url of this BaseChannelModel.
xyz
:return: The pinterest_url of this BaseChannelModel.
:rtype: str | f3079:c0:m49 |
@pinterest_url.setter<EOL><INDENT>def pinterest_url(self, pinterest_url):<DEDENT> | self._pinterest_url = pinterest_url<EOL> | Sets the pinterest_url of this BaseChannelModel.
xyz
:param pinterest_url: The pinterest_url of this BaseChannelModel.
:type: str | f3079:c0:m50 |
@property<EOL><INDENT>def tumblr_url(self):<DEDENT> | return self._tumblr_url<EOL> | Gets the tumblr_url of this BaseChannelModel.
xyz
:return: The tumblr_url of this BaseChannelModel.
:rtype: str | f3079:c0:m51 |
@tumblr_url.setter<EOL><INDENT>def tumblr_url(self, tumblr_url):<DEDENT> | self._tumblr_url = tumblr_url<EOL> | Sets the tumblr_url of this BaseChannelModel.
xyz
:param tumblr_url: The tumblr_url of this BaseChannelModel.
:type: str | f3079:c0:m52 |
@property<EOL><INDENT>def user(self):<DEDENT> | return self._user<EOL> | Gets the user of this BaseChannelModel.
:return: The user of this BaseChannelModel.
:rtype: User | f3079:c0:m53 |
@user.setter<EOL><INDENT>def user(self, user):<DEDENT> | self._user = user<EOL> | Sets the user of this BaseChannelModel.
:param user: The user of this BaseChannelModel.
:type: User | f3079:c0:m54 |
@property<EOL><INDENT>def trending_tags(self):<DEDENT> | return self._trending_tags<EOL> | Gets the trending_tags of this BaseChannelModel.
:return: The trending_tags of this BaseChannelModel.
:rtype: list[TrendingTag] | f3079:c0:m55 |
@trending_tags.setter<EOL><INDENT>def trending_tags(self, trending_tags):<DEDENT> | self._trending_tags = trending_tags<EOL> | Sets the trending_tags of this BaseChannelModel.
:param trending_tags: The trending_tags of this BaseChannelModel.
:type: list[TrendingTag] | f3079:c0:m56 |
@property<EOL><INDENT>def gifs(self):<DEDENT> | return self._gifs<EOL> | Gets the gifs of this BaseChannelModel.
:return: The gifs of this BaseChannelModel.
:rtype: BaseChannelModelGifs | f3079:c0:m57 |
@gifs.setter<EOL><INDENT>def gifs(self, gifs):<DEDENT> | self._gifs = gifs<EOL> | Sets the gifs of this BaseChannelModel.
:param gifs: The gifs of this BaseChannelModel.
:type: BaseChannelModelGifs | f3079: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 | f3079:c0:m59 |
def to_str(self): | return pformat(self.to_dict())<EOL> | Returns the string representation of the model | f3079:c0:m60 |
def __repr__(self): | return self.to_str()<EOL> | For `print` and `pprint` | f3079:c0:m61 |
def __eq__(self, other): | if not isinstance(other, BaseChannelModel):<EOL><INDENT>return False<EOL><DEDENT>return self.__dict__ == other.__dict__<EOL> | Returns true if both objects are equal | f3079:c0:m62 |
def __ne__(self, other): | return not self == other<EOL> | Returns true if both objects are not equal | f3079:c0:m63 |
def __init__(self, url=None, width=None, height=None, size=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>}<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>}<EOL>self._url = url<EOL>self._width = width<EOL>self._height = height<EOL>self._size = size<EOL>self._mp4 = mp4<EOL>self._mp4_size = mp4_size<EOL>self._webp = webp<EOL>self._webp_size = webp_size<EOL> | GifImagesFixedHeight - 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. | f3080:c0:m0 |
@property<EOL><INDENT>def url(self):<DEDENT> | return self._url<EOL> | Gets the url of this GifImagesFixedHeight.
The publicly-accessible direct URL for this GIF.
:return: The url of this GifImagesFixedHeight.
:rtype: str | f3080:c0:m1 |
@url.setter<EOL><INDENT>def url(self, url):<DEDENT> | self._url = url<EOL> | Sets the url of this GifImagesFixedHeight.
The publicly-accessible direct URL for this GIF.
:param url: The url of this GifImagesFixedHeight.
:type: str | f3080:c0:m2 |
@property<EOL><INDENT>def width(self):<DEDENT> | return self._width<EOL> | Gets the width of this GifImagesFixedHeight.
The width of this GIF in pixels.
:return: The width of this GifImagesFixedHeight.
:rtype: str | f3080:c0:m3 |
@width.setter<EOL><INDENT>def width(self, width):<DEDENT> | self._width = width<EOL> | Sets the width of this GifImagesFixedHeight.
The width of this GIF in pixels.
:param width: The width of this GifImagesFixedHeight.
:type: str | f3080:c0:m4 |
@property<EOL><INDENT>def height(self):<DEDENT> | return self._height<EOL> | Gets the height of this GifImagesFixedHeight.
The height of this GIF in pixels.
:return: The height of this GifImagesFixedHeight.
:rtype: str | f3080:c0:m5 |
@height.setter<EOL><INDENT>def height(self, height):<DEDENT> | self._height = height<EOL> | Sets the height of this GifImagesFixedHeight.
The height of this GIF in pixels.
:param height: The height of this GifImagesFixedHeight.
:type: str | f3080:c0:m6 |
@property<EOL><INDENT>def size(self):<DEDENT> | return self._size<EOL> | Gets the size of this GifImagesFixedHeight.
The size of this GIF in bytes.
:return: The size of this GifImagesFixedHeight.
:rtype: str | f3080:c0:m7 |
@size.setter<EOL><INDENT>def size(self, size):<DEDENT> | self._size = size<EOL> | Sets the size of this GifImagesFixedHeight.
The size of this GIF in bytes.
:param size: The size of this GifImagesFixedHeight.
:type: str | f3080:c0:m8 |
@property<EOL><INDENT>def mp4(self):<DEDENT> | return self._mp4<EOL> | Gets the mp4 of this GifImagesFixedHeight.
The URL for this GIF in .MP4 format.
:return: The mp4 of this GifImagesFixedHeight.
:rtype: str | f3080:c0:m9 |
@mp4.setter<EOL><INDENT>def mp4(self, mp4):<DEDENT> | self._mp4 = mp4<EOL> | Sets the mp4 of this GifImagesFixedHeight.
The URL for this GIF in .MP4 format.
:param mp4: The mp4 of this GifImagesFixedHeight.
:type: str | f3080:c0:m10 |
@property<EOL><INDENT>def mp4_size(self):<DEDENT> | return self._mp4_size<EOL> | Gets the mp4_size of this GifImagesFixedHeight.
The size in bytes of the .MP4 file corresponding to this GIF.
:return: The mp4_size of this GifImagesFixedHeight.
:rtype: str | f3080:c0:m11 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.