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.



1150
1151
1152
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1150

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)


1123
1124
1125
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1123

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)


1128
1129
1130
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1128

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)


1133
1134
1135
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1133

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)


1138
1139
1140
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1138

def recurrence_schedule
  @recurrence_schedule
end

#retention_daysFixnum

Backup Retention in Days. Corresponds to the JSON property retentionDays

Returns:

  • (Fixnum)


1143
1144
1145
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1143

def retention_days
  @retention_days
end

#rule_nameString

Backup Rule Name. Corresponds to the JSON property ruleName

Returns:

  • (String)


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