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

Overview

Security Command Center Issue.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2Issue

Returns a new instance of GoogleCloudSecuritycenterV2Issue.



6806
6807
6808
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6806

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)


6723
6724
6725
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6723

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


6728
6729
6730
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6728

def description
  @description
end

#detectionString

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

Returns:

  • (String)


6733
6734
6735
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6733

def detection
  @detection
end

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

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



6738
6739
6740
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6738

def domains
  @domains
end

#exposure_scoreFloat

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

Returns:

  • (Float)


6743
6744
6745
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6743

def exposure_score
  @exposure_score
end

#issue_typeString

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

Returns:

  • (String)


6748
6749
6750
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6748

def issue_type
  @issue_type
end

#last_observation_timeString

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

Returns:

  • (String)


6753
6754
6755
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6753

def last_observation_time
  @last_observation_time
end

#muteGoogle::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2IssueMute

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



6758
6759
6760
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6758

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)


6764
6765
6766
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6764

def name
  @name
end

#primary_resourceGoogle::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2IssueResource

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



6769
6770
6771
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6769

def primary_resource
  @primary_resource
end

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



6774
6775
6776
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6774

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>)


6779
6780
6781
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6779

def remediations
  @remediations
end

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

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



6784
6785
6786
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6784

def secondary_resources
  @secondary_resources
end

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

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



6789
6790
6791
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6789

def security_contexts
  @security_contexts
end

#severityString

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

Returns:

  • (String)


6794
6795
6796
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6794

def severity
  @severity
end

#stateString

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

Returns:

  • (String)


6799
6800
6801
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6799

def state
  @state
end

#update_timeString

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

Returns:

  • (String)


6804
6805
6806
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6804

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6811

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