Class: Google::Apis::SecuritycenterV1::CreateResourceValueConfigRequest

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

Overview

Request message to create single resource value config

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateResourceValueConfigRequest

Returns a new instance of CreateResourceValueConfigRequest.



1619
1620
1621
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1619

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

Instance Attribute Details

#parentString

Required. Resource name of the new ResourceValueConfig's parent. Corresponds to the JSON property parent

Returns:

  • (String)


1611
1612
1613
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1611

def parent
  @parent
end

#resource_value_configGoogle::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1ResourceValueConfig

A resource value configuration (RVC) is a mapping configuration of user's resources to resource values. Used in Attack path simulations. Corresponds to the JSON property resourceValueConfig



1617
1618
1619
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1617

def resource_value_config
  @resource_value_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1624
1625
1626
1627
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1624

def update!(**args)
  @parent = args[:parent] if args.key?(:parent)
  @resource_value_config = args[:resource_value_config] if args.key?(:resource_value_config)
end