Class: Google::Apis::SqladminV1beta4::SqlScheduledMaintenance

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sqladmin_v1beta4/classes.rb,
generated/google/apis/sqladmin_v1beta4/representations.rb,
generated/google/apis/sqladmin_v1beta4/representations.rb

Overview

Any scheduled maintenancce for this instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SqlScheduledMaintenance

Returns a new instance of SqlScheduledMaintenance.



2669
2670
2671
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2669

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

Instance Attribute Details

#can_deferBoolean Also known as: can_defer?

Corresponds to the JSON property canDefer

Returns:

  • (Boolean)


2655
2656
2657
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2655

def can_defer
  @can_defer
end

#can_rescheduleBoolean Also known as: can_reschedule?

If the scheduled maintenance can be rescheduled. Corresponds to the JSON property canReschedule

Returns:

  • (Boolean)


2661
2662
2663
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2661

def can_reschedule
  @can_reschedule
end

#start_timeString

The start time of any upcoming scheduled maintenance for this instance. Corresponds to the JSON property startTime

Returns:

  • (String)


2667
2668
2669
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2667

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2674
2675
2676
2677
2678
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2674

def update!(**args)
  @can_defer = args[:can_defer] if args.key?(:can_defer)
  @can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
  @start_time = args[:start_time] if args.key?(:start_time)
end