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
Instance Attribute Summary collapse
-
#display_name ⇒ String
Corresponds to the JSON property
displayName. -
#exposed_score ⇒ Float
Corresponds to the JSON property
exposedScore. -
#name ⇒ String
Corresponds to the JSON property
name. -
#resource ⇒ String
Corresponds to the JSON property
resource. -
#resource_type ⇒ String
Corresponds to the JSON property
resourceType. -
#resource_value ⇒ String
Corresponds to the JSON property
resourceValue. -
#resource_value_configs_used ⇒ Array<Google::Apis::SecuritycenterV1::ResourceValueConfigMetadata>
Corresponds to the JSON property
resourceValueConfigsUsed.
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.
13358 13359 13360 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13358 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Corresponds to the JSON property displayName
13326 13327 13328 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13326 def display_name @display_name end |
#exposed_score ⇒ Float
Corresponds to the JSON property exposedScore
13331 13332 13333 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13331 def exposed_score @exposed_score end |
#name ⇒ String
Corresponds to the JSON property name
13336 13337 13338 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13336 def name @name end |
#resource ⇒ String
Corresponds to the JSON property resource
13341 13342 13343 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13341 def resource @resource end |
#resource_type ⇒ String
Corresponds to the JSON property resourceType
13346 13347 13348 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13346 def resource_type @resource_type end |
#resource_value ⇒ String
Corresponds to the JSON property resourceValue
13351 13352 13353 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13351 def resource_value @resource_value end |
#resource_value_configs_used ⇒ Array<Google::Apis::SecuritycenterV1::ResourceValueConfigMetadata>
Corresponds to the JSON property resourceValueConfigsUsed
13356 13357 13358 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13356 def resource_value_configs_used @resource_value_configs_used end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13363 13364 13365 13366 13367 13368 13369 13370 13371 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13363 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 |