class Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::AutoPatchingSettings

Set a patching window during which Windows and SQL patches will be applied.

Attributes

day_of_week[RW]

@return [DayOfWeek] Day of week to apply the patch on. Possible values include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'

enable[RW]

@return [Boolean] Enable or disable autopatching on SQL virtual machine.

maintenance_window_duration[RW]

@return [Integer] Duration of patching.

maintenance_window_starting_hour[RW]

@return [Integer] Hour of the day when patching is initiated. Local VM time.

Private Class Methods

mapper() click to toggle source

Mapper for AutoPatchingSettings class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2017-03-01-preview/generated/azure_mgmt_sqlvirtualmachine/models/auto_patching_settings.rb, line 37
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AutoPatchingSettings',
    type: {
      name: 'Composite',
      class_name: 'AutoPatchingSettings',
      model_properties: {
        enable: {
          client_side_validation: true,
          required: false,
          serialized_name: 'enable',
          type: {
            name: 'Boolean'
          }
        },
        day_of_week: {
          client_side_validation: true,
          required: false,
          serialized_name: 'dayOfWeek',
          type: {
            name: 'Enum',
            module: 'DayOfWeek'
          }
        },
        maintenance_window_starting_hour: {
          client_side_validation: true,
          required: false,
          serialized_name: 'maintenanceWindowStartingHour',
          type: {
            name: 'Number'
          }
        },
        maintenance_window_duration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'maintenanceWindowDuration',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end