# 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::Reservations::Mgmt::V2018_06_01_preview
  module Models
    #
    # Model object.
    #
    #
    class Patch

      include MsRestAzure

      # @return [AppliedScopeType] Possible values include: 'Single', 'Shared'
      attr_accessor :applied_scope_type

      # @return [Array<String>]
      attr_accessor :applied_scopes

      # @return [InstanceFlexibility] Possible values include: 'On', 'Off',
      # 'NotSupported'
      attr_accessor :instance_flexibility

      # @return [String] Name of the Reservation
      attr_accessor :name


      #
      # Mapper for Patch class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Patch',
          type: {
            name: 'Composite',
            class_name: 'Patch',
            model_properties: {
              applied_scope_type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.appliedScopeType',
                type: {
                  name: 'String'
                }
              },
              applied_scopes: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.appliedScopes',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              instance_flexibility: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.instanceFlexibility',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.name',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
