mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[Brightbox] Support Cloud SQL maintenance windows
Enables setting of `maintenance_weekday` and `maintenance_hour` values to specify the maintenance window where updates may be applied to the SQL instance.
This commit is contained in:
parent
acf75a12f9
commit
4146a2364b
1 changed files with 8 additions and 0 deletions
|
@ -18,6 +18,9 @@ module Fog
|
|||
attribute :database_engine
|
||||
attribute :database_version
|
||||
|
||||
attribute :maintenance_weekday
|
||||
attribute :maintenance_hour
|
||||
|
||||
attribute :created_at, :type => :time
|
||||
attribute :updated_at, :type => :time
|
||||
attribute :deleted_at, :type => :time
|
||||
|
@ -37,6 +40,11 @@ module Fog
|
|||
|
||||
options[:allow_access] = allow_access if allow_access
|
||||
|
||||
# These may be nil which sets them to default values upstream
|
||||
# TODO: Dirty track the values so we don't send them when already nil
|
||||
options[:maintenance_weekday] = maintenance_weekday
|
||||
options[:maintenance_hour] = maintenance_hour
|
||||
|
||||
if persisted?
|
||||
data = update_database_server(options)
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue