1
0
Fork 0
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:
Paul Thornthwaite 2014-02-19 10:53:43 +00:00
parent acf75a12f9
commit 4146a2364b

View file

@ -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