Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2CloudControl

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

CloudControl associated with the finding.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2CloudControl

Returns a new instance of GoogleCloudSecuritycenterV2CloudControl.



6435
6436
6437
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6435

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)


6418
6419
6420
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6418

def cloud_control_name
  @cloud_control_name
end

#policy_typeString

Policy type of the CloudControl Corresponds to the JSON property policyType

Returns:

  • (String)


6423
6424
6425
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6423

def policy_type
  @policy_type
end

#typeString

Type of cloud control. Corresponds to the JSON property type

Returns:

  • (String)


6428
6429
6430
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6428

def type
  @type
end

#versionFixnum

Version of the Cloud Control Corresponds to the JSON property version

Returns:

  • (Fixnum)


6433
6434
6435
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6433

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6440
6441
6442
6443
6444
6445
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6440

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