Class: Google::Apis::WebsecurityscannerV1::Schedule

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/websecurityscanner_v1/classes.rb,
generated/google/apis/websecurityscanner_v1/representations.rb,
generated/google/apis/websecurityscanner_v1/representations.rb

Overview

Scan schedule configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Schedule

Returns a new instance of Schedule



805
806
807
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 805

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

Instance Attribute Details

#interval_duration_daysFixnum

Required. The duration of time between executions in days. Corresponds to the JSON property intervalDurationDays

Returns:

  • (Fixnum)


795
796
797
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 795

def interval_duration_days
  @interval_duration_days
end

#schedule_timeString

A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately. Corresponds to the JSON property scheduleTime

Returns:

  • (String)


803
804
805
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 803

def schedule_time
  @schedule_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



810
811
812
813
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 810

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