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.



8003
8004
8005
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8003

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)


7920
7921
7922
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7920

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


7925
7926
7927
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7925

def description
  @description
end

#detectionString

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

Returns:

  • (String)


7930
7931
7932
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7930

def detection
  @detection
end

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

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



7935
7936
7937
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7935

def domains
  @domains
end

#exposure_scoreFloat

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

Returns:

  • (Float)


7940
7941
7942
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7940

def exposure_score
  @exposure_score
end

#issue_typeString

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

Returns:

  • (String)


7945
7946
7947
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7945

def issue_type
  @issue_type
end

#last_observation_timeString

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

Returns:

  • (String)


7950
7951
7952
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7950

def last_observation_time
  @last_observation_time
end

#muteGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueMute

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



7955
7956
7957
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7955

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)


7961
7962
7963
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7961

def name
  @name
end

#primary_resourceGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueResource

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



7966
7967
7968
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7966

def primary_resource
  @primary_resource
end

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



7971
7972
7973
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7971

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


7976
7977
7978
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7976

def remediations
  @remediations
end

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

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



7981
7982
7983
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7981

def secondary_resources
  @secondary_resources
end

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

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



7986
7987
7988
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7986

def security_contexts
  @security_contexts
end

#severityString

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

Returns:

  • (String)


7991
7992
7993
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7991

def severity
  @severity
end

#stateString

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

Returns:

  • (String)


7996
7997
7998
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7996

def state
  @state
end

#update_timeString

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

Returns:

  • (String)


8001
8002
8003
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8001

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8008

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