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

Overview

Security Command Center Issue.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2Issue

Returns a new instance of GoogleCloudSecuritycenterV2Issue.



6112
6113
6114
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6112

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)


6029
6030
6031
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6029

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


6034
6035
6036
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6034

def description
  @description
end

#detectionString

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

Returns:

  • (String)


6039
6040
6041
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6039

def detection
  @detection
end

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

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



6044
6045
6046
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6044

def domains
  @domains
end

#exposure_scoreFloat

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

Returns:

  • (Float)


6049
6050
6051
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6049

def exposure_score
  @exposure_score
end

#issue_typeString

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

Returns:

  • (String)


6054
6055
6056
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6054

def issue_type
  @issue_type
end

#last_observation_timeString

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

Returns:

  • (String)


6059
6060
6061
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6059

def last_observation_time
  @last_observation_time
end

#muteGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueMute

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



6064
6065
6066
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6064

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)


6070
6071
6072
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6070

def name
  @name
end

#primary_resourceGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueResource

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



6075
6076
6077
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6075

def primary_resource
  @primary_resource
end

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



6080
6081
6082
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6080

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


6085
6086
6087
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6085

def remediations
  @remediations
end

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

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



6090
6091
6092
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6090

def secondary_resources
  @secondary_resources
end

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

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



6095
6096
6097
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6095

def security_contexts
  @security_contexts
end

#severityString

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

Returns:

  • (String)


6100
6101
6102
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6100

def severity
  @severity
end

#stateString

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

Returns:

  • (String)


6105
6106
6107
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6105

def state
  @state
end

#update_timeString

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

Returns:

  • (String)


6110
6111
6112
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6110

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6117

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