Class: Google::Apis::SecuritycenterV1::SimulatedResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SimulatedResult

Returns a new instance of SimulatedResult.



13381
13382
13383
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13381

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

Instance Attribute Details

#errorGoogle::Apis::SecuritycenterV1::Status

Corresponds to the JSON property error



13369
13370
13371
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13369

def error
  @error
end

#findingGoogle::Apis::SecuritycenterV1::Finding

Corresponds to the JSON property finding



13374
13375
13376
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13374

def finding
  @finding
end

#no_violationGoogle::Apis::SecuritycenterV1::Empty

Corresponds to the JSON property noViolation



13379
13380
13381
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13379

def no_violation
  @no_violation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13386
13387
13388
13389
13390
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13386

def update!(**args)
  @error = args[:error] if args.key?(:error)
  @finding = args[:finding] if args.key?(:finding)
  @no_violation = args[:no_violation] if args.key?(:no_violation)
end