Class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaSource
- Inherits:
-
Object
- Object
- Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaSource
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/checks_v1alpha/classes.rb,
lib/google/apis/checks_v1alpha/representations.rb,
lib/google/apis/checks_v1alpha/representations.rb
Overview
Represents a data source finding.
Instance Attribute Summary collapse
-
#code_attribution ⇒ Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCodeAttribution
Source code attribution.
-
#data_type ⇒ String
Required.
-
#false_positive ⇒ Boolean
(also: #false_positive?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChecksRepoScanV1alphaSource
constructor
A new instance of GoogleChecksRepoScanV1alphaSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChecksRepoScanV1alphaSource
Returns a new instance of GoogleChecksRepoScanV1alphaSource.
594 595 596 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 594 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code_attribution ⇒ Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaCodeAttribution
Source code attribution.
Corresponds to the JSON property codeAttribution
581 582 583 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 581 def code_attribution @code_attribution end |
#data_type ⇒ String
Required. Data type.
Corresponds to the JSON property dataType
586 587 588 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 586 def data_type @data_type end |
#false_positive ⇒ Boolean Also known as: false_positive?
Optional. Whether the finding was marked as a false positive.
Corresponds to the JSON property falsePositive
591 592 593 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 591 def false_positive @false_positive end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
599 600 601 602 603 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 599 def update!(**args) @code_attribution = args[:code_attribution] if args.key?(:code_attribution) @data_type = args[:data_type] if args.key?(:data_type) @false_positive = args[:false_positive] if args.key?(:false_positive) end |