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.



6140
6141
6142
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6140

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)


6057
6058
6059
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6057

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


6062
6063
6064
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6062

def description
  @description
end

#detectionString

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

Returns:

  • (String)


6067
6068
6069
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6067

def detection
  @detection
end

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

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



6072
6073
6074
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6072

def domains
  @domains
end

#exposure_scoreFloat

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

Returns:

  • (Float)


6077
6078
6079
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6077

def exposure_score
  @exposure_score
end

#issue_typeString

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

Returns:

  • (String)


6082
6083
6084
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6082

def issue_type
  @issue_type
end

#last_observation_timeString

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

Returns:

  • (String)


6087
6088
6089
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6087

def last_observation_time
  @last_observation_time
end

#muteGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueMute

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



6092
6093
6094
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6092

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)


6098
6099
6100
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6098

def name
  @name
end

#primary_resourceGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueResource

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



6103
6104
6105
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6103

def primary_resource
  @primary_resource
end

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



6108
6109
6110
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6108

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


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

def remediations
  @remediations
end

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

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



6118
6119
6120
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6118

def secondary_resources
  @secondary_resources
end

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

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



6123
6124
6125
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6123

def security_contexts
  @security_contexts
end

#severityString

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

Returns:

  • (String)


6128
6129
6130
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6128

def severity
  @severity
end

#stateString

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

Returns:

  • (String)


6133
6134
6135
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6133

def state
  @state
end

#update_timeString

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

Returns:

  • (String)


6138
6139
6140
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6138

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6145

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