models.banner module

class models.banner.Banner(banner_id=None, content=None, created_time_msecs=None, description=None, last_updated_time_msecs=None)[source]

Bases: object

Implementation of the ‘Banner’ model.

Banner is used for storing the banner content in scribe and also for transferring it over the wire.

Attributes:
banner_id (string): Specifies a banner_id which can uniquely identify

a banner. This may be the cluster_id, or the tenant_id, or the group_id, or the user SID etc. If this field is nil, the it is assumed to be the cluster_id. The content is stored against this ‘row’ in Scribe.

content (string): Specifies the content of the banner. created_time_msecs (int|long): createdTimeMsecs field is deprecated.

Timestamp at which banner was created.

description (string): description field is deprecated. Specifies the

description of this banner.

last_updated_time_msecs (int|long): lastUpdatedTimeMsecs field is

deprecated. Timestamp at which banner was last updated.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.