Class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2Issue
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2Issue
- 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
-
#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::SecuritycenterV1beta1::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::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueMute
Corresponds to the JSON property
mute. -
#name ⇒ String
Corresponds to the JSON property
name. -
#primary_resource ⇒ Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueResource
Corresponds to the JSON property
primaryResource. -
#related_findings ⇒ Array<Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueFinding>
Corresponds to the JSON property
relatedFindings. -
#remediations ⇒ Array<String>
Corresponds to the JSON property
remediations. -
#secondary_resources ⇒ Array<Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueResource>
Corresponds to the JSON property
secondaryResources. -
#security_contexts ⇒ Array<Google::Apis::SecuritycenterV1beta1::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.
7365 7366 7367 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7365 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Corresponds to the JSON property createTime
7283 7284 7285 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7283 def create_time @create_time end |
#description ⇒ String
Corresponds to the JSON property description
7288 7289 7290 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7288 def description @description end |
#detection ⇒ String
Corresponds to the JSON property detection
7293 7294 7295 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7293 def detection @detection end |
#domains ⇒ Array<Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueDomain>
Corresponds to the JSON property domains
7298 7299 7300 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7298 def domains @domains end |
#exposure_score ⇒ Float
Corresponds to the JSON property exposureScore
7303 7304 7305 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7303 def exposure_score @exposure_score end |
#issue_type ⇒ String
Corresponds to the JSON property issueType
7308 7309 7310 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7308 def issue_type @issue_type end |
#last_observation_time ⇒ String
Corresponds to the JSON property lastObservationTime
7313 7314 7315 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7313 def last_observation_time @last_observation_time end |
#mute ⇒ Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueMute
Corresponds to the JSON property mute
7318 7319 7320 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7318 def mute @mute end |
#name ⇒ String
Corresponds to the JSON property name
7323 7324 7325 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7323 def name @name end |
#primary_resource ⇒ Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueResource
Corresponds to the JSON property primaryResource
7328 7329 7330 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7328 def primary_resource @primary_resource end |
#related_findings ⇒ Array<Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueFinding>
Corresponds to the JSON property relatedFindings
7333 7334 7335 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7333 def @related_findings end |
#remediations ⇒ Array<String>
Corresponds to the JSON property remediations
7338 7339 7340 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7338 def remediations @remediations end |
#secondary_resources ⇒ Array<Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueResource>
Corresponds to the JSON property secondaryResources
7343 7344 7345 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7343 def secondary_resources @secondary_resources end |
#security_contexts ⇒ Array<Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueSecurityContext>
Corresponds to the JSON property securityContexts
7348 7349 7350 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7348 def security_contexts @security_contexts end |
#severity ⇒ String
Corresponds to the JSON property severity
7353 7354 7355 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7353 def severity @severity end |
#state ⇒ String
Corresponds to the JSON property state
7358 7359 7360 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7358 def state @state end |
#update_time ⇒ String
Corresponds to the JSON property updateTime
7363 7364 7365 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7363 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7370 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 |