File: _artifact.py

package info (click to toggle)
python-sarif-python-om 1.0.4-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 424 kB
  • sloc: python: 634; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 1,335 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This file was generated by jschema_to_python version 1.2.3.

import attr


@attr.s
class Artifact(object):
    """A single artifact. In some cases, this artifact might be nested within another artifact."""

    contents = attr.ib(default=None, metadata={"schema_property_name": "contents"})
    description = attr.ib(default=None, metadata={"schema_property_name": "description"})
    encoding = attr.ib(default=None, metadata={"schema_property_name": "encoding"})
    hashes = attr.ib(default=None, metadata={"schema_property_name": "hashes"})
    last_modified_time_utc = attr.ib(default=None, metadata={"schema_property_name": "lastModifiedTimeUtc"})
    length = attr.ib(default=-1, metadata={"schema_property_name": "length"})
    location = attr.ib(default=None, metadata={"schema_property_name": "location"})
    mime_type = attr.ib(default=None, metadata={"schema_property_name": "mimeType"})
    offset = attr.ib(default=None, metadata={"schema_property_name": "offset"})
    parent_index = attr.ib(default=-1, metadata={"schema_property_name": "parentIndex"})
    properties = attr.ib(default=None, metadata={"schema_property_name": "properties"})
    roles = attr.ib(default=None, metadata={"schema_property_name": "roles"})
    source_language = attr.ib(default=None, metadata={"schema_property_name": "sourceLanguage"})