Class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2Issue

Inherits:
Object
  • Object
show all
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

Overview

Security Command Center Issue.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2Issue

Returns a new instance of GoogleCloudSecuritycenterV2Issue.



6456
6457
6458
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6456

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

Instance Attribute Details

#create_timeString

Output only. The time the issue was created. Corresponds to the JSON property createTime

Returns:

  • (String)


6373
6374
6375
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6373

def create_time
  @create_time
end

#descriptionString

The description of the issue in Markdown format. Corresponds to the JSON property description

Returns:

  • (String)


6378
6379
6380
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6378

def description
  @description
end

#detectionString

The finding category or rule name that generated the issue. Corresponds to the JSON property detection

Returns:

  • (String)


6383
6384
6385
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6383

def detection
  @detection
end

#domainsArray<Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueDomain>

The domains of the issue. Corresponds to the JSON property domains



6388
6389
6390
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6388

def domains
  @domains
end

#exposure_scoreFloat

The exposure score of the issue. Corresponds to the JSON property exposureScore

Returns:

  • (Float)


6393
6394
6395
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6393

def exposure_score
  @exposure_score
end

#issue_typeString

The type of the issue. Corresponds to the JSON property issueType

Returns:

  • (String)


6398
6399
6400
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6398

def issue_type
  @issue_type
end

#last_observation_timeString

The time the issue was last observed. Corresponds to the JSON property lastObservationTime

Returns:

  • (String)


6403
6404
6405
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6403

def last_observation_time
  @last_observation_time
end

#muteGoogle::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueMute

The mute information of the issue. Corresponds to the JSON property mute



6408
6409
6410
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6408

def mute
  @mute
end

#nameString

Identifier. The name of the issue. Format: organizations/organization/ locations/location/issues/issue Corresponds to the JSON property name

Returns:

  • (String)


6414
6415
6416
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6414

def name
  @name
end

#primary_resourceGoogle::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueResource

A resource associated with the an issue. Corresponds to the JSON property primaryResource



6419
6420
6421
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6419

def primary_resource
  @primary_resource
end

The findings related to the issue. Corresponds to the JSON property relatedFindings



6424
6425
6426
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6424

def related_findings
  @related_findings
end

#remediationsArray<String>

Approaches to remediate the issue in Markdown format. Corresponds to the JSON property remediations

Returns:

  • (Array<String>)


6429
6430
6431
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6429

def remediations
  @remediations
end

#secondary_resourcesArray<Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueResource>

Additional resources associated with the issue. Corresponds to the JSON property secondaryResources



6434
6435
6436
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6434

def secondary_resources
  @secondary_resources
end

#security_contextsArray<Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueSecurityContext>

The security context of the issue. Corresponds to the JSON property securityContexts



6439
6440
6441
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6439

def security_contexts
  @security_contexts
end

#severityString

The severity of the issue. Corresponds to the JSON property severity

Returns:

  • (String)


6444
6445
6446
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6444

def severity
  @severity
end

#stateString

Output only. The state of the issue. Corresponds to the JSON property state

Returns:

  • (String)


6449
6450
6451
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6449

def state
  @state
end

#update_timeString

Output only. The time the issue was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


6454
6455
6456
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6454

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6461

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