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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2Issue

Returns a new instance of GoogleCloudSecuritycenterV2Issue.



7196
7197
7198
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7196

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Corresponds to the JSON property createTime

Returns:

  • (String)


7114
7115
7116
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7114

def create_time
  @create_time
end

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


7119
7120
7121
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7119

def description
  @description
end

#detectionString

Corresponds to the JSON property detection

Returns:

  • (String)


7124
7125
7126
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7124

def detection
  @detection
end

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

Corresponds to the JSON property domains



7129
7130
7131
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7129

def domains
  @domains
end

#exposure_scoreFloat

Corresponds to the JSON property exposureScore

Returns:

  • (Float)


7134
7135
7136
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7134

def exposure_score
  @exposure_score
end

#issue_typeString

Corresponds to the JSON property issueType

Returns:

  • (String)


7139
7140
7141
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7139

def issue_type
  @issue_type
end

#last_observation_timeString

Corresponds to the JSON property lastObservationTime

Returns:

  • (String)


7144
7145
7146
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7144

def last_observation_time
  @last_observation_time
end

#muteGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueMute

Corresponds to the JSON property mute



7149
7150
7151
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7149

def mute
  @mute
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


7154
7155
7156
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7154

def name
  @name
end

#primary_resourceGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueResource

Corresponds to the JSON property primaryResource



7159
7160
7161
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7159

def primary_resource
  @primary_resource
end

Corresponds to the JSON property relatedFindings



7164
7165
7166
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7164

def related_findings
  @related_findings
end

#remediationsArray<String>

Corresponds to the JSON property remediations

Returns:

  • (Array<String>)


7169
7170
7171
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7169

def remediations
  @remediations
end

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

Corresponds to the JSON property secondaryResources



7174
7175
7176
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7174

def secondary_resources
  @secondary_resources
end

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

Corresponds to the JSON property securityContexts



7179
7180
7181
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7179

def security_contexts
  @security_contexts
end

#severityString

Corresponds to the JSON property severity

Returns:

  • (String)


7184
7185
7186
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7184

def severity
  @severity
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


7189
7190
7191
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7189

def state
  @state
end

#update_timeString

Corresponds to the JSON property updateTime

Returns:

  • (String)


7194
7195
7196
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7194

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7201

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