Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2Issue

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2Issue

Returns a new instance of GoogleCloudSecuritycenterV2Issue.



7710
7711
7712
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7710

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

Instance Attribute Details

#create_timeString

Corresponds to the JSON property createTime

Returns:

  • (String)


7628
7629
7630
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7628

def create_time
  @create_time
end

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


7633
7634
7635
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7633

def description
  @description
end

#detectionString

Corresponds to the JSON property detection

Returns:

  • (String)


7638
7639
7640
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7638

def detection
  @detection
end

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

Corresponds to the JSON property domains



7643
7644
7645
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7643

def domains
  @domains
end

#exposure_scoreFloat

Corresponds to the JSON property exposureScore

Returns:

  • (Float)


7648
7649
7650
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7648

def exposure_score
  @exposure_score
end

#issue_typeString

Corresponds to the JSON property issueType

Returns:

  • (String)


7653
7654
7655
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7653

def issue_type
  @issue_type
end

#last_observation_timeString

Corresponds to the JSON property lastObservationTime

Returns:

  • (String)


7658
7659
7660
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7658

def last_observation_time
  @last_observation_time
end

#muteGoogle::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2IssueMute

Corresponds to the JSON property mute



7663
7664
7665
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7663

def mute
  @mute
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


7668
7669
7670
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7668

def name
  @name
end

#primary_resourceGoogle::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2IssueResource

Corresponds to the JSON property primaryResource



7673
7674
7675
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7673

def primary_resource
  @primary_resource
end

Corresponds to the JSON property relatedFindings



7678
7679
7680
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7678

def related_findings
  @related_findings
end

#remediationsArray<String>

Corresponds to the JSON property remediations

Returns:

  • (Array<String>)


7683
7684
7685
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7683

def remediations
  @remediations
end

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

Corresponds to the JSON property secondaryResources



7688
7689
7690
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7688

def secondary_resources
  @secondary_resources
end

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

Corresponds to the JSON property securityContexts



7693
7694
7695
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7693

def security_contexts
  @security_contexts
end

#severityString

Corresponds to the JSON property severity

Returns:

  • (String)


7698
7699
7700
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7698

def severity
  @severity
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


7703
7704
7705
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7703

def state
  @state
end

#update_timeString

Corresponds to the JSON property updateTime

Returns:

  • (String)


7708
7709
7710
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7708

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7715

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