# 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::ContainerService::Mgmt::V2020_12_01
  module Models
    #
    # OS configurations of Linux agent nodes.
    #
    class LinuxOSConfig

      include MsRestAzure

      # @return [SysctlConfig] Sysctl settings for Linux agent nodes.
      attr_accessor :sysctls

      # @return [String] Transparent Huge Page enabled configuration.
      attr_accessor :transparent_huge_page_enabled

      # @return [String] Transparent Huge Page defrag configuration.
      attr_accessor :transparent_huge_page_defrag

      # @return [Integer] SwapFileSizeMB specifies size in MB of a swap file
      # will be created on each node.
      attr_accessor :swap_file_size_mb


      #
      # Mapper for LinuxOSConfig class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'LinuxOSConfig',
          type: {
            name: 'Composite',
            class_name: 'LinuxOSConfig',
            model_properties: {
              sysctls: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sysctls',
                type: {
                  name: 'Composite',
                  class_name: 'SysctlConfig'
                }
              },
              transparent_huge_page_enabled: {
                client_side_validation: true,
                required: false,
                serialized_name: 'transparentHugePageEnabled',
                type: {
                  name: 'String'
                }
              },
              transparent_huge_page_defrag: {
                client_side_validation: true,
                required: false,
                serialized_name: 'transparentHugePageDefrag',
                type: {
                  name: 'String'
                }
              },
              swap_file_size_mb: {
                client_side_validation: true,
                required: false,
                serialized_name: 'swapFileSizeMB',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
