Class: Google::Apis::SecuritycenterV1::ValuedResource

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ValuedResource

Returns a new instance of ValuedResource.



13458
13459
13460
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13458

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

Instance Attribute Details

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


13426
13427
13428
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13426

def display_name
  @display_name
end

#exposed_scoreFloat

Corresponds to the JSON property exposedScore

Returns:

  • (Float)


13431
13432
13433
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13431

def exposed_score
  @exposed_score
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


13436
13437
13438
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13436

def name
  @name
end

#resourceString

Corresponds to the JSON property resource

Returns:

  • (String)


13441
13442
13443
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13441

def resource
  @resource
end

#resource_typeString

Corresponds to the JSON property resourceType

Returns:

  • (String)


13446
13447
13448
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13446

def resource_type
  @resource_type
end

#resource_valueString

Corresponds to the JSON property resourceValue

Returns:

  • (String)


13451
13452
13453
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13451

def resource_value
  @resource_value
end

#resource_value_configs_usedArray<Google::Apis::SecuritycenterV1::ResourceValueConfigMetadata>

Corresponds to the JSON property resourceValueConfigsUsed



13456
13457
13458
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13456

def resource_value_configs_used
  @resource_value_configs_used
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13463
13464
13465
13466
13467
13468
13469
13470
13471
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13463

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