appknox.mapper

class appknox.mapper.Analysis(id, risk, status, cvss_base, cvss_vector, cvss_version, cvss_metrics_humanized, findings, updated_on, vulnerability, owasp, pcidss, hipaa, cwe, mstg, masvs, asvs, gdpr, computed_risk, overridden_risk)
asvs

Alias for field number 16

computed_risk

Alias for field number 18

cvss_base

Alias for field number 3

cvss_metrics_humanized

Alias for field number 6

cvss_vector

Alias for field number 4

cvss_version

Alias for field number 5

cwe

Alias for field number 13

findings

Alias for field number 7

gdpr

Alias for field number 17

hipaa

Alias for field number 12

id

Alias for field number 0

masvs

Alias for field number 15

mstg

Alias for field number 14

overridden_risk

Alias for field number 19

owasp

Alias for field number 10

pcidss

Alias for field number 11

risk

Alias for field number 1

status

Alias for field number 2

updated_on

Alias for field number 8

vulnerability

Alias for field number 9

class appknox.mapper.File(id, name, version, version_code, static_scan_progress, profile)
id

Alias for field number 0

name

Alias for field number 1

profile

Alias for field number 5

static_scan_progress

Alias for field number 4

version

Alias for field number 2

version_code

Alias for field number 3

class appknox.mapper.InheritedPreference(value: bool, is_inherited: bool)[source]
class appknox.mapper.OWASP(id, code, title, description, year)
code

Alias for field number 1

description

Alias for field number 3

id

Alias for field number 0

title

Alias for field number 2

year

Alias for field number 4

class appknox.mapper.Organization(id, name)
id

Alias for field number 0

name

Alias for field number 1

class appknox.mapper.PCIDSS(id, code, title, description)
code

Alias for field number 1

description

Alias for field number 3

id

Alias for field number 0

title

Alias for field number 2

appknox.mapper.PersonalToken

alias of AccessToken

class appknox.mapper.ProfileReportPreference(show_gdpr: appknox.mapper.ProfileReportPreferenceConfig, show_hipaa: appknox.mapper.ProfileReportPreferenceConfig, show_pcidss: appknox.mapper.ProfileReportPreferenceConfig)[source]
class appknox.mapper.ProfileReportPreferenceConfig(value: bool)[source]
class appknox.mapper.Project(id, created_on, file_count, package_name, platform, updated_on)
created_on

Alias for field number 1

file_count

Alias for field number 2

id

Alias for field number 0

package_name

Alias for field number 3

platform

Alias for field number 4

updated_on

Alias for field number 5

class appknox.mapper.Report(id: int, language: str, generated_on: datetime.datetime, progress: int, rating: str, preferences: appknox.mapper.ReportPreference)[source]
class appknox.mapper.ReportPreference(show_api_scan: bool, show_manual_scan: bool, show_static_scan: bool, show_dynamic_scan: bool, show_ignored_analyses: bool, show_hipaa: appknox.mapper.InheritedPreference, show_pcidss: appknox.mapper.InheritedPreference)[source]
class appknox.mapper.Submission(id, status, file, package_name, created_on, reason)
created_on

Alias for field number 4

file

Alias for field number 2

id

Alias for field number 0

package_name

Alias for field number 3

reason

Alias for field number 5

status

Alias for field number 1

class appknox.mapper.User(id, email, first_name, lang, last_name, username)
email

Alias for field number 1

first_name

Alias for field number 2

id

Alias for field number 0

lang

Alias for field number 3

last_name

Alias for field number 4

username

Alias for field number 5

class appknox.mapper.Vulnerability(id, name, description, intro, related_to, business_implication, compliant, non_compliant, types)
business_implication

Alias for field number 5

compliant

Alias for field number 6

description

Alias for field number 2

id

Alias for field number 0

intro

Alias for field number 3

name

Alias for field number 1

non_compliant

Alias for field number 7

related_to

Alias for field number 4

types

Alias for field number 8

class appknox.mapper.Whoami(id, email, username, default_organization)
default_organization

Alias for field number 3

email

Alias for field number 1

id

Alias for field number 0

username

Alias for field number 2

appknox.mapper.mapper_drf_api(model: type, resource: dict) object[source]

Returns an obj of type model from dictified JSON resource for DRF APIs

appknox.mapper.mapper_json_api(model: type, resource: dict) object[source]

Returns an obj of type model from dictified JSON resource for JSON APIs