Class: Google::Apis::SecuritycenterV1::AttackExposure
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::AttackExposure
- 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
-
#attack_exposure_result ⇒ String
Corresponds to the JSON property
attackExposureResult. -
#exposed_high_value_resources_count ⇒ Fixnum
Corresponds to the JSON property
exposedHighValueResourcesCount. -
#exposed_low_value_resources_count ⇒ Fixnum
Corresponds to the JSON property
exposedLowValueResourcesCount. -
#exposed_medium_value_resources_count ⇒ Fixnum
Corresponds to the JSON property
exposedMediumValueResourcesCount. -
#latest_calculation_time ⇒ String
Corresponds to the JSON property
latestCalculationTime. -
#score ⇒ Float
Corresponds to the JSON property
score. -
#state ⇒ String
Corresponds to the JSON property
state.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AttackExposure
constructor
A new instance of AttackExposure.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AttackExposure
Returns a new instance of AttackExposure.
632 633 634 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 632 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attack_exposure_result ⇒ String
Corresponds to the JSON property attackExposureResult
600 601 602 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 600 def attack_exposure_result @attack_exposure_result end |
#exposed_high_value_resources_count ⇒ Fixnum
Corresponds to the JSON property exposedHighValueResourcesCount
605 606 607 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 605 def exposed_high_value_resources_count @exposed_high_value_resources_count end |
#exposed_low_value_resources_count ⇒ Fixnum
Corresponds to the JSON property exposedLowValueResourcesCount
610 611 612 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 610 def exposed_low_value_resources_count @exposed_low_value_resources_count end |
#exposed_medium_value_resources_count ⇒ Fixnum
Corresponds to the JSON property exposedMediumValueResourcesCount
615 616 617 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 615 def exposed_medium_value_resources_count @exposed_medium_value_resources_count end |
#latest_calculation_time ⇒ String
Corresponds to the JSON property latestCalculationTime
620 621 622 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 620 def latest_calculation_time @latest_calculation_time end |
#score ⇒ Float
Corresponds to the JSON property score
625 626 627 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 625 def score @score end |
#state ⇒ String
Corresponds to the JSON property state
630 631 632 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 630 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
637 638 639 640 641 642 643 644 645 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 637 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 |