Class: Google::Apis::SecuritycenterV1::SetFindingStateRequest

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

Returns a new instance of SetFindingStateRequest.



12922
12923
12924
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12922

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

Instance Attribute Details

#start_timeString

Corresponds to the JSON property startTime

Returns:

  • (String)


12915
12916
12917
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12915

def start_time
  @start_time
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


12920
12921
12922
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12920

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12927
12928
12929
12930
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12927

def update!(**args)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
end