Class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2CloudControl

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2CloudControl

Returns a new instance of GoogleCloudSecuritycenterV2CloudControl.



5299
5300
5301
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 5299

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

Instance Attribute Details

#cloud_control_nameString

Corresponds to the JSON property cloudControlName

Returns:

  • (String)


5282
5283
5284
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 5282

def cloud_control_name
  @cloud_control_name
end

#policy_typeString

Corresponds to the JSON property policyType

Returns:

  • (String)


5287
5288
5289
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 5287

def policy_type
  @policy_type
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


5292
5293
5294
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 5292

def type
  @type
end

#versionFixnum

Corresponds to the JSON property version

Returns:

  • (Fixnum)


5297
5298
5299
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 5297

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5304
5305
5306
5307
5308
5309
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 5304

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