Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Issue
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Issue
- 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
Instance Attribute Summary collapse
-
#create_time ⇒ String
Corresponds to the JSON property
createTime. -
#description ⇒ String
Corresponds to the JSON property
description. -
#detection ⇒ String
Corresponds to the JSON property
detection. -
#domains ⇒ Array<Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueDomain>
Corresponds to the JSON property
domains. -
#exposure_score ⇒ Float
Corresponds to the JSON property
exposureScore. -
#issue_type ⇒ String
Corresponds to the JSON property
issueType. -
#last_observation_time ⇒ String
Corresponds to the JSON property
lastObservationTime. -
#mute ⇒ Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueMute
Corresponds to the JSON property
mute. -
#name ⇒ String
Corresponds to the JSON property
name. -
#primary_resource ⇒ Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueResource
Corresponds to the JSON property
primaryResource. -
#related_findings ⇒ Array<Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueFinding>
Corresponds to the JSON property
relatedFindings. -
#remediations ⇒ Array<String>
Corresponds to the JSON property
remediations. -
#secondary_resources ⇒ Array<Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueResource>
Corresponds to the JSON property
secondaryResources. -
#security_contexts ⇒ Array<Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueSecurityContext>
Corresponds to the JSON property
securityContexts. -
#severity ⇒ String
Corresponds to the JSON property
severity. -
#state ⇒ String
Corresponds to the JSON property
state. -
#update_time ⇒ String
Corresponds to the JSON property
updateTime.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2Issue
constructor
A new instance of GoogleCloudSecuritycenterV2Issue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2Issue
Returns a new instance of GoogleCloudSecuritycenterV2Issue.
7184 7185 7186 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7184 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Corresponds to the JSON property createTime
7102 7103 7104 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7102 def create_time @create_time end |
#description ⇒ String
Corresponds to the JSON property description
7107 7108 7109 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7107 def description @description end |
#detection ⇒ String
Corresponds to the JSON property detection
7112 7113 7114 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7112 def detection @detection end |
#domains ⇒ Array<Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueDomain>
Corresponds to the JSON property domains
7117 7118 7119 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7117 def domains @domains end |
#exposure_score ⇒ Float
Corresponds to the JSON property exposureScore
7122 7123 7124 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7122 def exposure_score @exposure_score end |
#issue_type ⇒ String
Corresponds to the JSON property issueType
7127 7128 7129 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7127 def issue_type @issue_type end |
#last_observation_time ⇒ String
Corresponds to the JSON property lastObservationTime
7132 7133 7134 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7132 def last_observation_time @last_observation_time end |
#mute ⇒ Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueMute
Corresponds to the JSON property mute
7137 7138 7139 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7137 def mute @mute end |
#name ⇒ String
Corresponds to the JSON property name
7142 7143 7144 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7142 def name @name end |
#primary_resource ⇒ Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueResource
Corresponds to the JSON property primaryResource
7147 7148 7149 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7147 def primary_resource @primary_resource end |
#related_findings ⇒ Array<Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueFinding>
Corresponds to the JSON property relatedFindings
7152 7153 7154 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7152 def @related_findings end |
#remediations ⇒ Array<String>
Corresponds to the JSON property remediations
7157 7158 7159 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7157 def remediations @remediations end |
#secondary_resources ⇒ Array<Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueResource>
Corresponds to the JSON property secondaryResources
7162 7163 7164 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7162 def secondary_resources @secondary_resources end |
#security_contexts ⇒ Array<Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueSecurityContext>
Corresponds to the JSON property securityContexts
7167 7168 7169 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7167 def security_contexts @security_contexts end |
#severity ⇒ String
Corresponds to the JSON property severity
7172 7173 7174 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7172 def severity @severity end |
#state ⇒ String
Corresponds to the JSON property state
7177 7178 7179 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7177 def state @state end |
#update_time ⇒ String
Corresponds to the JSON property updateTime
7182 7183 7184 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7182 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7189 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @detection = args[:detection] if args.key?(:detection) @domains = args[:domains] if args.key?(:domains) @exposure_score = args[:exposure_score] if args.key?(:exposure_score) @issue_type = args[:issue_type] if args.key?(:issue_type) @last_observation_time = args[:last_observation_time] if args.key?(:last_observation_time) @mute = args[:mute] if args.key?(:mute) @name = args[:name] if args.key?(:name) @primary_resource = args[:primary_resource] if args.key?(:primary_resource) @related_findings = args[:related_findings] if args.key?(:related_findings) @remediations = args[:remediations] if args.key?(:remediations) @secondary_resources = args[:secondary_resources] if args.key?(:secondary_resources) @security_contexts = args[:security_contexts] if args.key?(:security_contexts) @severity = args[:severity] if args.key?(:severity) @state = args[:state] if args.key?(:state) @update_time = args[:update_time] if args.key?(:update_time) end |