Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2AttackExposure

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb

Overview

An attack exposure contains the results of an attack path simulation run.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2AttackExposure

Returns a new instance of GoogleCloudSecuritycenterV2AttackExposure.



3630
3631
3632
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3630

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#attack_exposure_resultString

The resource name of the attack path simulation result that contains the details regarding this attack exposure score. Example: organizations/123/ simulations/456/attackExposureResults/789 Corresponds to the JSON property attackExposureResult

Returns:

  • (String)


3592
3593
3594
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3592

def attack_exposure_result
  @attack_exposure_result
end

#exposed_high_value_resources_countFixnum

The number of high value resources that are exposed as a result of this finding. Corresponds to the JSON property exposedHighValueResourcesCount

Returns:

  • (Fixnum)


3598
3599
3600
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3598

def exposed_high_value_resources_count
  @exposed_high_value_resources_count
end

#exposed_low_value_resources_countFixnum

The number of high value resources that are exposed as a result of this finding. Corresponds to the JSON property exposedLowValueResourcesCount

Returns:

  • (Fixnum)


3604
3605
3606
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3604

def exposed_low_value_resources_count
  @exposed_low_value_resources_count
end

#exposed_medium_value_resources_countFixnum

The number of medium value resources that are exposed as a result of this finding. Corresponds to the JSON property exposedMediumValueResourcesCount

Returns:

  • (Fixnum)


3610
3611
3612
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3610

def exposed_medium_value_resources_count
  @exposed_medium_value_resources_count
end

#latest_calculation_timeString

The most recent time the attack exposure was updated on this finding. Corresponds to the JSON property latestCalculationTime

Returns:

  • (String)


3615
3616
3617
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3615

def latest_calculation_time
  @latest_calculation_time
end

#scoreFloat

A number between 0 (inclusive) and infinity that represents how important this finding is to remediate. The higher the score, the more important it is to remediate. Corresponds to the JSON property score

Returns:

  • (Float)


3622
3623
3624
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3622

def score
  @score
end

#stateString

Output only. What state this AttackExposure is in. This captures whether or not an attack exposure has been calculated or not. Corresponds to the JSON property state

Returns:

  • (String)


3628
3629
3630
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3628

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3635
3636
3637
3638
3639
3640
3641
3642
3643
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3635

def update!(**args)
  @attack_exposure_result = args[:attack_exposure_result] if args.key?(:attack_exposure_result)
  @exposed_high_value_resources_count = args[:exposed_high_value_resources_count] if args.key?(:exposed_high_value_resources_count)
  @exposed_low_value_resources_count = args[:exposed_low_value_resources_count] if args.key?(:exposed_low_value_resources_count)
  @exposed_medium_value_resources_count = args[:exposed_medium_value_resources_count] if args.key?(:exposed_medium_value_resources_count)
  @latest_calculation_time = args[:latest_calculation_time] if args.key?(:latest_calculation_time)
  @score = args[:score] if args.key?(:score)
  @state = args[:state] if args.key?(:state)
end