ONDEMANDSCANNING

ondemandscanning.projects.locations.operations.cancel

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

ondemandscanning.projects.locations.operations.delete

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

ondemandscanning.projects.locations.operations.get

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

ondemandscanning.projects.locations.operations.list

valid {
    input.ReqMap.name == STRING
    input.Qs.filter == STRING
    input.Qs.pageSize == INTEGER
    input.Qs.pageToken == STRING
    input.ProviderMetadata.Region == STRING
}

ondemandscanning.projects.locations.operations.wait

valid {
    input.ReqMap.name == STRING
    input.Qs.timeout == STRING
    input.ProviderMetadata.Region == STRING
}

ondemandscanning.projects.locations.scans.analyzePackages

enum_PackageDataPackageType := [ "PACKAGE_TYPE_UNSPECIFIED", "OS", "MAVEN", "GO", "GO_STDLIB", "PYPI", "NPM", "NUGET", "RUBYGEMS", "RUST", "COMPOSER", "SWIFT" ]

valid {
    input.Body.includeOsvData == BOOLEAN
    input.Body.packages[_].architecture == STRING
    input.Body.packages[_].binarySourceInfo[_].binaryVersion.licenses[_] == STRING
    input.Body.packages[_].binarySourceInfo[_].binaryVersion.name == STRING
    input.Body.packages[_].binarySourceInfo[_].binaryVersion.version == STRING
    input.Body.packages[_].binarySourceInfo[_].sourceVersion.licenses[_] == STRING
    input.Body.packages[_].binarySourceInfo[_].sourceVersion.name == STRING
    input.Body.packages[_].binarySourceInfo[_].sourceVersion.version == STRING
    input.Body.packages[_].binaryVersion.licenses[_] == STRING
    input.Body.packages[_].binaryVersion.name == STRING
    input.Body.packages[_].binaryVersion.version == STRING
    input.Body.packages[_].cpeUri == STRING
    input.Body.packages[_].dependencyChain[_].package == STRING
    input.Body.packages[_].dependencyChain[_].version == STRING
    input.Body.packages[_].fileLocation[_].filePath == STRING
    input.Body.packages[_].hashDigest == STRING
    input.Body.packages[_].licenses[_] == STRING
    input.Body.packages[_].maintainer.email == STRING
    input.Body.packages[_].maintainer.kind == STRING
    input.Body.packages[_].maintainer.name == STRING
    input.Body.packages[_].maintainer.url == STRING
    input.Body.packages[_].os == STRING
    input.Body.packages[_].osVersion == STRING
    input.Body.packages[_].package == STRING
    input.Body.packages[_].packageType == enum_PackageDataPackageType[_]
    input.Body.packages[_].patchedCve[_] == STRING
    input.Body.packages[_].sourceVersion.licenses[_] == STRING
    input.Body.packages[_].sourceVersion.name == STRING
    input.Body.packages[_].sourceVersion.version == STRING
    input.Body.packages[_].unused == STRING
    input.Body.packages[_].version == STRING
    input.Body.resourceUri == STRING
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

ondemandscanning.projects.locations.scans.vulnerabilities.list

valid {
    input.ReqMap.parent == STRING
    input.Qs.pageSize == INTEGER
    input.Qs.pageToken == STRING
    input.ProviderMetadata.Region == STRING
}