Class: Google::Apis::GkebackupV1::BackupRuleDetail
- Inherits:
-
Object
- Object
- Google::Apis::GkebackupV1::BackupRuleDetail
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkebackup_v1/classes.rb,
lib/google/apis/gkebackup_v1/representations.rb,
lib/google/apis/gkebackup_v1/representations.rb
Instance Attribute Summary collapse
-
#backup_window ⇒ String
Backup Window For Eg.
-
#backup_window_timezone ⇒ String
Backup Window Timezone in IANA format.
-
#recurrence ⇒ String
Recurrence Type.
-
#recurrence_schedule ⇒ String
Recurrence Repeat Schedule.
-
#retention_days ⇒ Fixnum
Backup Retention in Days.
-
#rule_name ⇒ String
Backup Rule Name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackupRuleDetail
constructor
A new instance of BackupRuleDetail.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackupRuleDetail
Returns a new instance of BackupRuleDetail.
1170 1171 1172 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1170 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_window ⇒ String
Backup Window For Eg. “00:00 to 06:00”
Corresponds to the JSON property backupWindow
1143 1144 1145 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1143 def backup_window @backup_window end |
#backup_window_timezone ⇒ String
Backup Window Timezone in IANA format. For Eg. “America/Los_Angeles”
Corresponds to the JSON property backupWindowTimezone
1148 1149 1150 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1148 def backup_window_timezone @backup_window_timezone end |
#recurrence ⇒ String
Recurrence Type. For Eg. “Weekly”,” Monthly” or “Daily”.
Corresponds to the JSON property recurrence
1153 1154 1155 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1153 def recurrence @recurrence end |
#recurrence_schedule ⇒ String
Recurrence Repeat Schedule. For Eg. “1st and 25th day of the month.”
Corresponds to the JSON property recurrenceSchedule
1158 1159 1160 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1158 def recurrence_schedule @recurrence_schedule end |
#retention_days ⇒ Fixnum
Backup Retention in Days.
Corresponds to the JSON property retentionDays
1163 1164 1165 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1163 def retention_days @retention_days end |
#rule_name ⇒ String
Backup Rule Name.
Corresponds to the JSON property ruleName
1168 1169 1170 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1168 def rule_name @rule_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1175 1176 1177 1178 1179 1180 1181 1182 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1175 def update!(**args) @backup_window = args[:backup_window] if args.key?(:backup_window) @backup_window_timezone = args[:backup_window_timezone] if args.key?(:backup_window_timezone) @recurrence = args[:recurrence] if args.key?(:recurrence) @recurrence_schedule = args[:recurrence_schedule] if args.key?(:recurrence_schedule) @retention_days = args[:retention_days] if args.key?(:retention_days) @rule_name = args[:rule_name] if args.key?(:rule_name) end |