Class: Google::Apis::BackupdrV1::BackupWindow
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::BackupWindow
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/backupdr_v1/classes.rb,
lib/google/apis/backupdr_v1/representations.rb,
lib/google/apis/backupdr_v1/representations.rb
Overview
BackupWindow
defines a window of the day during which backup jobs will run.
Instance Attribute Summary collapse
-
#end_hour_of_day ⇒ Fixnum
Required.
-
#start_hour_of_day ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackupWindow
constructor
A new instance of BackupWindow.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackupWindow
Returns a new instance of BackupWindow.
1153 1154 1155 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1153 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_hour_of_day ⇒ Fixnum
Required. The hour of day (1-24) when the window end for e.g. if value of end
hour of day is 10 that mean backup window end time is 10:00. End hour of day
should be greater than start hour of day. 0 <= start_hour_of_day <
end_hour_of_day <= 24 End hour of day is not include in backup window that
mean if end_hour_of_day= 10 jobs should start before 10:00.
Corresponds to the JSON property endHourOfDay
1145 1146 1147 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1145 def end_hour_of_day @end_hour_of_day end |
#start_hour_of_day ⇒ Fixnum
Required. The hour of day (0-23) when the window starts for e.g. if value of
start hour of day is 6 that mean backup window start at 6:00.
Corresponds to the JSON property startHourOfDay
1151 1152 1153 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1151 def start_hour_of_day @start_hour_of_day end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1158 1159 1160 1161 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1158 def update!(**args) @end_hour_of_day = args[:end_hour_of_day] if args.key?(:end_hour_of_day) @start_hour_of_day = args[:start_hour_of_day] if args.key?(:start_hour_of_day) end |