Class: Google::Apis::GkebackupV1::BackupRuleDetail

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BackupRuleDetail

Returns a new instance of BackupRuleDetail.



1182
1183
1184
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1182

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

Instance Attribute Details

#backup_windowString

Backup Window For Eg. “00:00 to 06:00” Corresponds to the JSON property backupWindow

Returns:

  • (String)


1155
1156
1157
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1155

def backup_window
  @backup_window
end

#backup_window_timezoneString

Backup Window Timezone in IANA format. For Eg. “America/Los_Angeles” Corresponds to the JSON property backupWindowTimezone

Returns:

  • (String)


1160
1161
1162
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1160

def backup_window_timezone
  @backup_window_timezone
end

#recurrenceString

Recurrence Type. For Eg. “Weekly”,” Monthly” or “Daily”. Corresponds to the JSON property recurrence

Returns:

  • (String)


1165
1166
1167
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1165

def recurrence
  @recurrence
end

#recurrence_scheduleString

Recurrence Repeat Schedule. For Eg. “1st and 25th day of the month.” Corresponds to the JSON property recurrenceSchedule

Returns:

  • (String)


1170
1171
1172
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1170

def recurrence_schedule
  @recurrence_schedule
end

#retention_daysFixnum

Backup Retention in Days. Corresponds to the JSON property retentionDays

Returns:

  • (Fixnum)


1175
1176
1177
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1175

def retention_days
  @retention_days
end

#rule_nameString

Backup Rule Name. Corresponds to the JSON property ruleName

Returns:

  • (String)


1180
1181
1182
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1180

def rule_name
  @rule_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1187
1188
1189
1190
1191
1192
1193
1194
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1187

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