Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2Control

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

Compliance control associated with the finding.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2Control

Returns a new instance of GoogleCloudSecuritycenterV2Control.



6831
6832
6833
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6831

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

Instance Attribute Details

#control_nameString

Name of the Control Corresponds to the JSON property controlName

Returns:

  • (String)


6824
6825
6826
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6824

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)


6829
6830
6831
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6829

def display_name
  @display_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6836
6837
6838
6839
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6836

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