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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2AttackExposure

Returns a new instance of GoogleCloudSecuritycenterV2AttackExposure.



4583
4584
4585
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 4583

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

Instance Attribute Details

#attack_exposure_resultString

Corresponds to the JSON property attackExposureResult

Returns:

  • (String)


4551
4552
4553
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 4551

def attack_exposure_result
  @attack_exposure_result
end

#exposed_high_value_resources_countFixnum

Corresponds to the JSON property exposedHighValueResourcesCount

Returns:

  • (Fixnum)


4556
4557
4558
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 4556

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)


4561
4562
4563
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 4561

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)


4566
4567
4568
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 4566

def exposed_medium_value_resources_count
  @exposed_medium_value_resources_count
end

#latest_calculation_timeString

Corresponds to the JSON property latestCalculationTime

Returns:

  • (String)


4571
4572
4573
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 4571

def latest_calculation_time
  @latest_calculation_time
end

#scoreFloat

Corresponds to the JSON property score

Returns:

  • (Float)


4576
4577
4578
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 4576

def score
  @score
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


4581
4582
4583
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 4581

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4588
4589
4590
4591
4592
4593
4594
4595
4596
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 4588

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