Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2IssueSecurityContext

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

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.



7134
7135
7136
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7134

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

Instance Attribute Details

#aggregated_countGoogle::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2IssueSecurityContextAggregatedCount

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



7127
7128
7129
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7127

def aggregated_count
  @aggregated_count
end

#contextGoogle::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2IssueSecurityContextContext

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



7132
7133
7134
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7132

def context
  @context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7139
7140
7141
7142
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7139

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