Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1CustomConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV1CustomConfig

Returns a new instance of GoogleCloudSecuritycenterV1CustomConfig.



3571
3572
3573
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 3571

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

Instance Attribute Details

#custom_outputGoogle::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1CustomOutputSpec

Corresponds to the JSON property customOutput



3544
3545
3546
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 3544

def custom_output
  @custom_output
end

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


3549
3550
3551
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 3549

def description
  @description
end

#predicateGoogle::Apis::SecuritycenterV1::Expr

Corresponds to the JSON property predicate



3554
3555
3556
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 3554

def predicate
  @predicate
end

#recommendationString

Corresponds to the JSON property recommendation

Returns:

  • (String)


3559
3560
3561
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 3559

def recommendation
  @recommendation
end

#resource_selectorGoogle::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1ResourceSelector

Corresponds to the JSON property resourceSelector



3564
3565
3566
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 3564

def resource_selector
  @resource_selector
end

#severityString

Corresponds to the JSON property severity

Returns:

  • (String)


3569
3570
3571
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 3569

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3576
3577
3578
3579
3580
3581
3582
3583
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 3576

def update!(**args)
  @custom_output = args[:custom_output] if args.key?(:custom_output)
  @description = args[:description] if args.key?(:description)
  @predicate = args[:predicate] if args.key?(:predicate)
  @recommendation = args[:recommendation] if args.key?(:recommendation)
  @resource_selector = args[:resource_selector] if args.key?(:resource_selector)
  @severity = args[:severity] if args.key?(:severity)
end