Class: Google::Apis::WebsecurityscannerV1beta::Schedule
- Inherits:
-
Object
- Object
- Google::Apis::WebsecurityscannerV1beta::Schedule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/websecurityscanner_v1beta/classes.rb,
generated/google/apis/websecurityscanner_v1beta/representations.rb,
generated/google/apis/websecurityscanner_v1beta/representations.rb
Overview
Scan schedule configuration.
Instance Attribute Summary collapse
-
#interval_duration_days ⇒ Fixnum
Required.
-
#schedule_time ⇒ String
A timestamp indicates when the next run will be scheduled.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Schedule
constructor
A new instance of Schedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Schedule
Returns a new instance of Schedule
819 820 821 |
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 819 def initialize(**args) update!(**args) end |
Instance Attribute Details
#interval_duration_days ⇒ Fixnum
Required. The duration of time between executions in days.
Corresponds to the JSON property intervalDurationDays
809 810 811 |
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 809 def interval_duration_days @interval_duration_days end |
#schedule_time ⇒ String
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
817 818 819 |
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 817 def schedule_time @schedule_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
824 825 826 827 |
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 824 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 |