Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Issue

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2Issue

Returns a new instance of GoogleCloudSecuritycenterV2Issue.



7587
7588
7589
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7587

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

Instance Attribute Details

#create_timeString

Corresponds to the JSON property createTime

Returns:

  • (String)


7505
7506
7507
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7505

def create_time
  @create_time
end

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


7510
7511
7512
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7510

def description
  @description
end

#detectionString

Corresponds to the JSON property detection

Returns:

  • (String)


7515
7516
7517
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7515

def detection
  @detection
end

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

Corresponds to the JSON property domains



7520
7521
7522
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7520

def domains
  @domains
end

#exposure_scoreFloat

Corresponds to the JSON property exposureScore

Returns:

  • (Float)


7525
7526
7527
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7525

def exposure_score
  @exposure_score
end

#issue_typeString

Corresponds to the JSON property issueType

Returns:

  • (String)


7530
7531
7532
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7530

def issue_type
  @issue_type
end

#last_observation_timeString

Corresponds to the JSON property lastObservationTime

Returns:

  • (String)


7535
7536
7537
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7535

def last_observation_time
  @last_observation_time
end

#muteGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueMute

Corresponds to the JSON property mute



7540
7541
7542
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7540

def mute
  @mute
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


7545
7546
7547
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7545

def name
  @name
end

#primary_resourceGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueResource

Corresponds to the JSON property primaryResource



7550
7551
7552
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7550

def primary_resource
  @primary_resource
end

Corresponds to the JSON property relatedFindings



7555
7556
7557
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7555

def related_findings
  @related_findings
end

#remediationsArray<String>

Corresponds to the JSON property remediations

Returns:

  • (Array<String>)


7560
7561
7562
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7560

def remediations
  @remediations
end

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

Corresponds to the JSON property secondaryResources



7565
7566
7567
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7565

def secondary_resources
  @secondary_resources
end

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

Corresponds to the JSON property securityContexts



7570
7571
7572
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7570

def security_contexts
  @security_contexts
end

#severityString

Corresponds to the JSON property severity

Returns:

  • (String)


7575
7576
7577
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7575

def severity
  @severity
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


7580
7581
7582
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7580

def state
  @state
end

#update_timeString

Corresponds to the JSON property updateTime

Returns:

  • (String)


7585
7586
7587
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7585

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7592

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