# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::DataFactory::Mgmt::V2017_09_01_preview
  module Models
    #
    # Update integration runtime request.
    #
    class UpdateIntegrationRuntimeRequest

      include MsRestAzure

      # @return [IntegrationRuntimeAutoUpdate] Enables or disables the
      # auto-update feature of the self-hosted integration runtime. See
      # https://go.microsoft.com/fwlink/?linkid=854189. Possible values
      # include: 'On', 'Off'
      attr_accessor :auto_update

      # @return [String] The time offset (in hours) in the day, e.g., PT03H is
      # 3 hours. The integration runtime auto update will happen on that time.
      attr_accessor :update_delay_offset


      #
      # Mapper for UpdateIntegrationRuntimeRequest class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'UpdateIntegrationRuntimeRequest',
          type: {
            name: 'Composite',
            class_name: 'UpdateIntegrationRuntimeRequest',
            model_properties: {
              auto_update: {
                client_side_validation: true,
                required: false,
                serialized_name: 'autoUpdate',
                type: {
                  name: 'String'
                }
              },
              update_delay_offset: {
                client_side_validation: true,
                required: false,
                serialized_name: 'updateDelayOffset',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
