Class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaSource

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_attributionGoogle::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_typeString

Required. Data type. Corresponds to the JSON property dataType

Returns:

  • (String)


586
587
588
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 586

def data_type
  @data_type
end

#false_positiveBoolean Also known as: false_positive?

Optional. Whether the finding was marked as a false positive. Corresponds to the JSON property falsePositive

Returns:

  • (Boolean)


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