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.



12822
12823
12824
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12822

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

Instance Attribute Details

#start_timeString

Corresponds to the JSON property startTime

Returns:

  • (String)


12815
12816
12817
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12815

def start_time
  @start_time
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


12820
12821
12822
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12820

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12827
12828
12829
12830
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12827

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