Class: Google::Apis::SecuritycenterV1beta2::Control

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb

Overview

Compliance control associated with the finding.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Control

Returns a new instance of Control.



1465
1466
1467
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1465

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

Instance Attribute Details

#control_nameString

Name of the Control Corresponds to the JSON property controlName

Returns:

  • (String)


1458
1459
1460
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1458

def control_name
  @control_name
end

#display_nameString

Display name of the control. For example, AU-02. Corresponds to the JSON property displayName

Returns:

  • (String)


1463
1464
1465
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1463

def display_name
  @display_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1470
1471
1472
1473
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1470

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