/** * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ import { Argument } from "./Argument"; import { CustomRuleRevisionAttributesCategory } from "./CustomRuleRevisionAttributesCategory"; import { CustomRuleRevisionAttributesSeverity } from "./CustomRuleRevisionAttributesSeverity"; import { CustomRuleRevisionTest } from "./CustomRuleRevisionTest"; import { Language } from "./Language"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** * A revision of a custom static analysis rule as embedded in a rule supplied by a create * or update request. Nested revisions are sent flat, without a `data`/`type`/`attributes` * envelope. `id`, `version_id`, `checksum`, `created_at` and `created_by` are server-assigned * and read-only; they are declared so that a ruleset previously read back can be supplied * unchanged. */ export declare class CustomRuleRevisionInput { /** * Rule arguments */ "arguments"?: Array; /** * Rule category */ "category"?: CustomRuleRevisionAttributesCategory; /** * Code checksum */ "checksum"?: string; /** * Rule code */ "code"?: string; /** * Creation timestamp */ "createdAt"?: Date; /** * Creator identifier */ "createdBy"?: string; /** * Revision creation message */ "creationMessage"?: string; /** * Associated CVE */ "cve"?: string; /** * Associated CWE */ "cwe"?: string; /** * Base64-encoded full description */ "description"?: string; /** * Documentation URL */ "documentationUrl"?: string; /** * Revision identifier */ "id"?: string; /** * Whether the revision should be published */ "isPublished"?: boolean; /** * Whether this is a testing revision */ "isTesting"?: boolean; /** * Programming language */ "language"?: Language; /** * Rule severity */ "severity"?: CustomRuleRevisionAttributesSeverity; /** * Base64-encoded short description */ "shortDescription"?: string; /** * Whether to use AI for fixes */ "shouldUseAiFix"?: boolean; /** * Rule tags */ "tags"?: Array; /** * Rule tests */ "tests"?: Array; /** * Tree-sitter query */ "treeSitterQuery"?: string; /** * Monotonically increasing version number of the revision. */ "versionId"?: number; /** * @ignore */ "_unparsed"?: boolean; /** * @ignore */ static readonly attributeTypeMap: AttributeTypeMap; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap; constructor(); }