Class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2AttackExposure
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2AttackExposure
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1beta1/classes.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb,
lib/google/apis/securitycenter_v1beta1/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) ⇒ GoogleCloudSecuritycenterV2AttackExposure
constructor
A new instance of GoogleCloudSecuritycenterV2AttackExposure.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2AttackExposure
Returns a new instance of GoogleCloudSecuritycenterV2AttackExposure.
4770 4771 4772 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 4770 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attack_exposure_result ⇒ String
Corresponds to the JSON property attackExposureResult
4738 4739 4740 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 4738 def attack_exposure_result @attack_exposure_result end |
#exposed_high_value_resources_count ⇒ Fixnum
Corresponds to the JSON property exposedHighValueResourcesCount
4743 4744 4745 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 4743 def exposed_high_value_resources_count @exposed_high_value_resources_count end |
#exposed_low_value_resources_count ⇒ Fixnum
Corresponds to the JSON property exposedLowValueResourcesCount
4748 4749 4750 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 4748 def exposed_low_value_resources_count @exposed_low_value_resources_count end |
#exposed_medium_value_resources_count ⇒ Fixnum
Corresponds to the JSON property exposedMediumValueResourcesCount
4753 4754 4755 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 4753 def exposed_medium_value_resources_count @exposed_medium_value_resources_count end |
#latest_calculation_time ⇒ String
Corresponds to the JSON property latestCalculationTime
4758 4759 4760 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 4758 def latest_calculation_time @latest_calculation_time end |
#score ⇒ Float
Corresponds to the JSON property score
4763 4764 4765 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 4763 def score @score end |
#state ⇒ String
Corresponds to the JSON property state
4768 4769 4770 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 4768 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4775 4776 4777 4778 4779 4780 4781 4782 4783 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 4775 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 |