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.



8075
8076
8077
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8075

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)


7992
7993
7994
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7992

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


7997
7998
7999
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7997

def description
  @description
end

#detectionString

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

Returns:

  • (String)


8002
8003
8004
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8002

def detection
  @detection
end

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

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



8007
8008
8009
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8007

def domains
  @domains
end

#exposure_scoreFloat

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

Returns:

  • (Float)


8012
8013
8014
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8012

def exposure_score
  @exposure_score
end

#issue_typeString

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

Returns:

  • (String)


8017
8018
8019
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8017

def issue_type
  @issue_type
end

#last_observation_timeString

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

Returns:

  • (String)


8022
8023
8024
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8022

def last_observation_time
  @last_observation_time
end

#muteGoogle::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2IssueMute

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



8027
8028
8029
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8027

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)


8033
8034
8035
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8033

def name
  @name
end

#primary_resourceGoogle::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2IssueResource

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



8038
8039
8040
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8038

def primary_resource
  @primary_resource
end

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



8043
8044
8045
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8043

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


8048
8049
8050
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8048

def remediations
  @remediations
end

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

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



8053
8054
8055
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8053

def secondary_resources
  @secondary_resources
end

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

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



8058
8059
8060
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8058

def security_contexts
  @security_contexts
end

#severityString

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

Returns:

  • (String)


8063
8064
8065
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8063

def severity
  @severity
end

#stateString

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

Returns:

  • (String)


8068
8069
8070
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8068

def state
  @state
end

#update_timeString

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

Returns:

  • (String)


8073
8074
8075
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8073

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8080

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