Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueSecurityContext

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

Security context associated with an issue.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2IssueSecurityContext

Returns a new instance of GoogleCloudSecuritycenterV2IssueSecurityContext.



8549
8550
8551
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8549

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

Instance Attribute Details

#aggregated_countGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueSecurityContextAggregatedCount

Aggregated count of a security context. Corresponds to the JSON property aggregatedCount



8542
8543
8544
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8542

def aggregated_count
  @aggregated_count
end

#contextGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueSecurityContextContext

Context of a security context. Corresponds to the JSON property context



8547
8548
8549
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8547

def context
  @context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8554
8555
8556
8557
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8554

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