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.
1150 1151 1152 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1150 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
1123 1124 1125 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1123 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
1128 1129 1130 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1128 def backup_window_timezone @backup_window_timezone end |
#recurrence ⇒ String
Recurrence Type. For Eg. “Weekly”,” Monthly” or “Daily”.
Corresponds to the JSON property recurrence
1133 1134 1135 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1133 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
1138 1139 1140 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1138 def recurrence_schedule @recurrence_schedule end |
#retention_days ⇒ Fixnum
Backup Retention in Days.
Corresponds to the JSON property retentionDays
1143 1144 1145 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1143 def retention_days @retention_days end |
#rule_name ⇒ String
Backup Rule Name.
Corresponds to the JSON property ruleName
1148 1149 1150 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1148 def rule_name @rule_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1155 1156 1157 1158 1159 1160 1161 1162 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1155 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 |