# 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::Compute::Mgmt::V2019_12_01
  module Models
    #
    # The protection policy of a virtual machine scale set VM.
    #
    class VirtualMachineScaleSetVMProtectionPolicy

      include MsRestAzure

      # @return [Boolean] Indicates that the virtual machine scale set VM
      # shouldn't be considered for deletion during a scale-in operation.
      attr_accessor :protect_from_scale_in

      # @return [Boolean] Indicates that model updates or actions (including
      # scale-in) initiated on the virtual machine scale set should not be
      # applied to the virtual machine scale set VM.
      attr_accessor :protect_from_scale_set_actions


      #
      # Mapper for VirtualMachineScaleSetVMProtectionPolicy class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'VirtualMachineScaleSetVMProtectionPolicy',
          type: {
            name: 'Composite',
            class_name: 'VirtualMachineScaleSetVMProtectionPolicy',
            model_properties: {
              protect_from_scale_in: {
                client_side_validation: true,
                required: false,
                serialized_name: 'protectFromScaleIn',
                type: {
                  name: 'Boolean'
                }
              },
              protect_from_scale_set_actions: {
                client_side_validation: true,
                required: false,
                serialized_name: 'protectFromScaleSetActions',
                type: {
                  name: 'Boolean'
                }
              }
            }
          }
        }
      end
    end
  end
end
