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.



1967
1968
1969
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1967

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)


1959
1960
1961
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1959

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



1965
1966
1967
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1965

def resource_value_config
  @resource_value_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1972
1973
1974
1975
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1972

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