(resource: JsonRecord)
| 732 | } |
| 733 | |
| 734 | function normalizeVantaVulnerableAssetScanner(resource: JsonRecord): VantaVulnerableAssetScanner { |
| 735 | return { |
| 736 | resourceId: getString(resource.resourceId), |
| 737 | integrationId: getString(resource.integrationId), |
| 738 | targetId: getString(resource.targetId), |
| 739 | imageDigest: getString(resource.imageDigest), |
| 740 | imagePushedAtDate: getString(resource.imagePushedAtDate), |
| 741 | imageTags: getStringArray(resource.imageTags), |
| 742 | assetTags: getRecordArray(resource.assetTags).map((tag) => ({ |
| 743 | key: getString(tag.key), |
| 744 | value: getString(tag.value), |
| 745 | })), |
| 746 | parentAccountOrOrganization: getString(resource.parentAccountOrOrganization), |
| 747 | biosUuid: getString(resource.biosUuid), |
| 748 | ipv4s: getStringArray(resource.ipv4s), |
| 749 | ipv6s: getStringArray(resource.ipv6s), |
| 750 | macAddresses: getStringArray(resource.macAddresses), |
| 751 | hostnames: getStringArray(resource.hostnames), |
| 752 | fqdns: getStringArray(resource.fqdns), |
| 753 | operatingSystems: getStringArray(resource.operatingSystems), |
| 754 | } |
| 755 | } |
| 756 | |
| 757 | export function normalizeVantaVulnerableAsset(resource: JsonRecord): VantaVulnerableAsset { |
| 758 | return { |
nothing calls this directly
no test coverage detected