Class: Google::Apis::SecuritycenterV1::ValuedResource
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::ValuedResource
- 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
Overview
A resource that is determined to have value to a user's system
Instance Attribute Summary collapse
-
#display_name ⇒ String
Human-readable name of the valued resource.
-
#exposed_score ⇒ Float
Exposed score for this valued resource.
-
#name ⇒ String
Valued resource name, for example, e.g.:
organizations/123/simulations/456/ valuedResources/789Corresponds to the JSON propertyname. -
#resource ⇒ String
The full resource name of the valued resource.
-
#resource_type ⇒ String
The resource type of the valued resource.
-
#resource_value ⇒ String
How valuable this resource is.
-
#resource_value_configs_used ⇒ Array<Google::Apis::SecuritycenterV1::ResourceValueConfigMetadata>
List of resource value configurations' metadata used to determine the value of this resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ValuedResource
constructor
A new instance of ValuedResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ValuedResource
Returns a new instance of ValuedResource.
11009 11010 11011 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11009 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Human-readable name of the valued resource.
Corresponds to the JSON property displayName
10972 10973 10974 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10972 def display_name @display_name end |
#exposed_score ⇒ Float
Exposed score for this valued resource. A value of 0 means no exposure was
detected exposure.
Corresponds to the JSON property exposedScore
10978 10979 10980 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10978 def exposed_score @exposed_score end |
#name ⇒ String
Valued resource name, for example, e.g.: organizations/123/simulations/456/
valuedResources/789
Corresponds to the JSON property name
10984 10985 10986 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10984 def name @name end |
#resource ⇒ String
The full resource name of the valued resource.
Corresponds to the JSON property resource
10990 10991 10992 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10990 def resource @resource end |
#resource_type ⇒ String
The resource type of the valued resource.
Corresponds to the JSON property resourceType
10996 10997 10998 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10996 def resource_type @resource_type end |
#resource_value ⇒ String
How valuable this resource is.
Corresponds to the JSON property resourceValue
11001 11002 11003 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11001 def resource_value @resource_value end |
#resource_value_configs_used ⇒ Array<Google::Apis::SecuritycenterV1::ResourceValueConfigMetadata>
List of resource value configurations' metadata used to determine the value of
this resource. Maximum of 100.
Corresponds to the JSON property resourceValueConfigsUsed
11007 11008 11009 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11007 def resource_value_configs_used @resource_value_configs_used end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11014 11015 11016 11017 11018 11019 11020 11021 11022 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11014 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @exposed_score = args[:exposed_score] if args.key?(:exposed_score) @name = args[:name] if args.key?(:name) @resource = args[:resource] if args.key?(:resource) @resource_type = args[:resource_type] if args.key?(:resource_type) @resource_value = args[:resource_value] if args.key?(:resource_value) @resource_value_configs_used = args[:resource_value_configs_used] if args.key?(:resource_value_configs_used) end |