Class: Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleRequest
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::SimulateSecurityHealthAnalyticsCustomModuleRequest
- 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 simulate a CustomConfig against a given test resource. Maximum size of the request is 4 MB by default.
Instance Attribute Summary collapse
-
#custom_config ⇒ Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1CustomConfig
Defines the properties in a custom module configuration for Security Health Analytics.
-
#resource ⇒ Google::Apis::SecuritycenterV1::SimulatedResource
Manually constructed resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SimulateSecurityHealthAnalyticsCustomModuleRequest
constructor
A new instance of SimulateSecurityHealthAnalyticsCustomModuleRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SimulateSecurityHealthAnalyticsCustomModuleRequest
Returns a new instance of SimulateSecurityHealthAnalyticsCustomModuleRequest.
5193 5194 5195 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5193 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_config ⇒ Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1CustomConfig
Defines the properties in a custom module configuration for Security Health
Analytics. Use the custom module configuration to create custom detectors that
generate custom findings for resources that you specify.
Corresponds to the JSON property customConfig
5185 5186 5187 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5185 def custom_config @custom_config end |
#resource ⇒ Google::Apis::SecuritycenterV1::SimulatedResource
Manually constructed resource. If the custom module only evaluates against the
resource data, the iam_policy_data field can be omitted, and vice versa.
Corresponds to the JSON property resource
5191 5192 5193 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5191 def resource @resource end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5198 5199 5200 5201 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 5198 def update!(**args) @custom_config = args[:custom_config] if args.key?(:custom_config) @resource = args[:resource] if args.key?(:resource) end |