Class: DatadogAPIClient::V2::CustomRuleRevisionInput
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::CustomRuleRevisionInput
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v2/models/custom_rule_revision_input.rb
Overview
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.
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Rule arguments.
-
#category ⇒ Object
Rule category.
-
#checksum ⇒ Object
Code checksum.
-
#code ⇒ Object
Rule code.
-
#created_at ⇒ Object
Creation timestamp.
-
#created_by ⇒ Object
Creator identifier.
-
#creation_message ⇒ Object
Revision creation message.
-
#cve ⇒ Object
Associated CVE.
-
#cwe ⇒ Object
Associated CWE.
-
#description ⇒ Object
Base64-encoded full description.
-
#documentation_url ⇒ Object
Documentation URL.
-
#id ⇒ Object
Revision identifier.
-
#is_published ⇒ Object
Whether the revision should be published.
-
#is_testing ⇒ Object
Whether this is a testing revision.
-
#language ⇒ Object
Programming language.
-
#severity ⇒ Object
Rule severity.
-
#short_description ⇒ Object
Base64-encoded short description.
-
#should_use_ai_fix ⇒ Object
Whether to use AI for fixes.
-
#tags ⇒ Object
Rule tags.
-
#tests ⇒ Object
Rule tests.
-
#tree_sitter_query ⇒ Object
Tree-sitter query.
-
#version_id ⇒ Object
Monotonically increasing version number of the revision.
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#arguments ⇒ Object
Rule arguments
29 30 31 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 29 def arguments @arguments end |
#category ⇒ Object
Rule category
32 33 34 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 32 def category @category end |
#checksum ⇒ Object
Code checksum
35 36 37 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 35 def checksum @checksum end |
#code ⇒ Object
Rule code
38 39 40 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 38 def code @code end |
#created_at ⇒ Object
Creation timestamp
41 42 43 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 41 def created_at @created_at end |
#created_by ⇒ Object
Creator identifier
44 45 46 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 44 def created_by @created_by end |
#creation_message ⇒ Object
Revision creation message
47 48 49 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 47 def @creation_message end |
#cve ⇒ Object
Associated CVE
50 51 52 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 50 def cve @cve end |
#cwe ⇒ Object
Associated CWE
53 54 55 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 53 def cwe @cwe end |
#description ⇒ Object
Base64-encoded full description
56 57 58 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 56 def description @description end |
#documentation_url ⇒ Object
Documentation URL
59 60 61 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 59 def documentation_url @documentation_url end |
#id ⇒ Object
Revision identifier
62 63 64 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 62 def id @id end |
#is_published ⇒ Object
Whether the revision should be published
65 66 67 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 65 def is_published @is_published end |
#is_testing ⇒ Object
Whether this is a testing revision
68 69 70 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 68 def is_testing @is_testing end |
#language ⇒ Object
Programming language
71 72 73 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 71 def language @language end |
#severity ⇒ Object
Rule severity
74 75 76 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 74 def severity @severity end |
#short_description ⇒ Object
Base64-encoded short description
77 78 79 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 77 def short_description @short_description end |
#should_use_ai_fix ⇒ Object
Whether to use AI for fixes
80 81 82 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 80 def should_use_ai_fix @should_use_ai_fix end |
#tags ⇒ Object
Rule tags
83 84 85 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 83 def @tags end |
#tests ⇒ Object
Rule tests
86 87 88 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 86 def tests @tests end |
#tree_sitter_query ⇒ Object
Tree-sitter query
89 90 91 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 89 def tree_sitter_query @tree_sitter_query end |
#version_id ⇒ Object
Monotonically increasing version number of the revision.
92 93 94 |
# File 'lib/datadog_api_client/v2/models/custom_rule_revision_input.rb', line 92 def version_id @version_id end |