Skip to content

ConnectionItem

Source code in docs_src/capo_assurance/types/connection_item.py
class ConnectionItem(TypedDict, closed=True):
    id: "capo_assurance.types.connection_item_id.ConnectionItemId"
    """<p>The identifier of the item. To list the contents of the item, pass this value as <code>parentId</code>. This doesn't apply to a <code>FILE</code>.</p>"""
    kind: "capo_assurance.types.connection_item_kind.ConnectionItemKind"
    """<p>The type of item. Valid values:</p> <ul> <li> <p> <code>FILE</code> – A document that you can link as evidence.</p> </li> <li> <p> <code>FOLDER</code> – A folder that contains other items.</p> </li> <li> <p> <code>LIBRARY</code> – A SharePoint document library.</p> </li> <li> <p> <code>REPOSITORY</code> – A GitHub repository.</p> </li> <li> <p> <code>SITE</code> – A SharePoint site.</p> </li> </ul>"""
    name: "capo_assurance.types.connection_item_name.ConnectionItemName"
    """<p>The display name of the item.</p>"""
    url: NotRequired["capo_assurance.types.connection_item_url.ConnectionItemUrl"]
    """<p>The URL of the item. This field is present for a <code>FILE</code>. To add the file as evidence, pass this value as <code>reference</code> to <code>PutEvidence</code>.</p>"""
    size_bytes: NotRequired["int"]
    """<p>The size of the item in bytes. This field is present for a <code>FILE</code>.</p>"""
    updated_at: NotRequired["datetime.datetime"]
    """<p>The time when the provider last recorded a change to the item. This field is present for a <code>FILE</code>.</p>"""

id instance-attribute

The identifier of the item. To list the contents of the item, pass this value as parentId. This doesn't apply to a FILE.

kind instance-attribute

The type of item. Valid values:

  • FILE – A document that you can link as evidence.

  • FOLDER – A folder that contains other items.

  • LIBRARY – A SharePoint document library.

  • REPOSITORY – A GitHub repository.

  • SITE – A SharePoint site.

name instance-attribute

The display name of the item.

size_bytes instance-attribute

size_bytes: NotRequired[int]

The size of the item in bytes. This field is present for a FILE.

updated_at instance-attribute

updated_at: NotRequired[datetime]

The time when the provider last recorded a change to the item. This field is present for a FILE.

url instance-attribute

url: NotRequired[ConnectionItemUrl]

The URL of the item. This field is present for a FILE. To add the file as evidence, pass this value as reference to PutEvidence.