Class: Google::Apis::SecuritycenterV1beta2::CloudControl

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

CloudControl associated with the finding.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudControl

Returns a new instance of CloudControl.



1088
1089
1090
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1088

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

Instance Attribute Details

#cloud_control_nameString

Name of the CloudControl associated with the finding. Corresponds to the JSON property cloudControlName

Returns:

  • (String)


1071
1072
1073
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1071

def cloud_control_name
  @cloud_control_name
end

#policy_typeString

Policy type of the CloudControl Corresponds to the JSON property policyType

Returns:

  • (String)


1076
1077
1078
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1076

def policy_type
  @policy_type
end

#typeString

Type of cloud control. Corresponds to the JSON property type

Returns:

  • (String)


1081
1082
1083
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1081

def type
  @type
end

#versionFixnum

Version of the Cloud Control Corresponds to the JSON property version

Returns:

  • (Fixnum)


1086
1087
1088
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1086

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1093
1094
1095
1096
1097
1098
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1093

def update!(**args)
  @cloud_control_name = args[:cloud_control_name] if args.key?(:cloud_control_name)
  @policy_type = args[:policy_type] if args.key?(:policy_type)
  @type = args[:type] if args.key?(:type)
  @version = args[:version] if args.key?(:version)
end