PyDataSource
class PyDataSource(data_source)
Bases: PyPublishedContent
, PyDescriptionContent
, PyExtractContent
, PyWithTags
, PyContainerContent
, PyWithOwner
Interface for a data source content item.
- Parameters: data_source (IDataSource)
__init__(data_source)
Creates a new PyDataSource object.
Args: : data_source: A IDataSource object.
Returns: None.
- Parameters: data_source (IDataSource)
- Return type: None
Methods
__init__ (data_source) |
Creates a new PyDataSource object. |
---|
Attributes
container |
Gets the container for the content item. |
---|---|
content_url |
Get the site-unique "content URL" of the content item, or an empty string if the content type does not use a content URL. |
created_at |
Gets the created timestamp. |
description |
Gets or sets the description. |
encrypt_extracts |
Gets or sets whether or not extracts are encrypted. |
has_extracts |
Gets whether or not the data source has extracts. |
id |
Gets the unique identifier. |
is_certified |
Gets the IsCertified flag for the data source. |
location |
Gets the logical location path of the content item, for project-level content this is the project path and the content item name. |
name |
Gets the name of the content item. |
owner |
Gets or sets the owner for the content item. |
tags |
Gets or sets the tags for the content item. |
updated_at |
Gets the updated timestamp. |
use_remote_query_agent |
Gets or sets the UseRemoteQueryAgent flag for the data source. |
webpage_url |
Gets the webpage URL. |
property container : PyContentReference
Gets the container for the content item. Relocating the content should be done through mapping.
property content_url : str
Get the site-unique “content URL” of the content item, or an empty string if the content type does not use a content URL.
property created_at : str
Gets the created timestamp.
property description : str
Gets or sets the description.
property encrypt_extracts : bool
Gets or sets whether or not extracts are encrypted.
property has_extracts : bool
Gets whether or not the data source has extracts.
property id : UUID
Gets the unique identifier.
property is_certified : bool
Gets the IsCertified flag for the data source. Should be updated through a post-publish hook.
property location : PyContentLocation
Gets the logical location path of the content item, for project-level content this is the project path and the content item name.
property name : str
Gets the name of the content item. This is equivalent to the last segment of the Location. Renames should be performed through mapping.
property owner : PyContentReference
Gets or sets the owner for the content item.
property tags : List[PyTag]
Gets or sets the tags for the content item.
property updated_at : str
Gets the updated timestamp.
property use_remote_query_agent : bool
Gets or sets the UseRemoteQueryAgent flag for the data source.
property webpage_url : str
Gets the webpage URL.