Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2AttackExposure

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2AttackExposure

Returns a new instance of GoogleCloudSecuritycenterV2AttackExposure.



5103
5104
5105
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5103

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

Instance Attribute Details

#attack_exposure_resultString

Corresponds to the JSON property attackExposureResult

Returns:

  • (String)


5071
5072
5073
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5071

def attack_exposure_result
  @attack_exposure_result
end

#exposed_high_value_resources_countFixnum

Corresponds to the JSON property exposedHighValueResourcesCount

Returns:

  • (Fixnum)


5076
5077
5078
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5076

def exposed_high_value_resources_count
  @exposed_high_value_resources_count
end

#exposed_low_value_resources_countFixnum

Corresponds to the JSON property exposedLowValueResourcesCount

Returns:

  • (Fixnum)


5081
5082
5083
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5081

def exposed_low_value_resources_count
  @exposed_low_value_resources_count
end

#exposed_medium_value_resources_countFixnum

Corresponds to the JSON property exposedMediumValueResourcesCount

Returns:

  • (Fixnum)


5086
5087
5088
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5086

def exposed_medium_value_resources_count
  @exposed_medium_value_resources_count
end

#latest_calculation_timeString

Corresponds to the JSON property latestCalculationTime

Returns:

  • (String)


5091
5092
5093
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5091

def latest_calculation_time
  @latest_calculation_time
end

#scoreFloat

Corresponds to the JSON property score

Returns:

  • (Float)


5096
5097
5098
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5096

def score
  @score
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


5101
5102
5103
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5101

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5108
5109
5110
5111
5112
5113
5114
5115
5116
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5108

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