# 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::ServiceFabric::V6_2_0_9
  module Models
    #
    # Describes a Service Fabric property value of type Binary.
    #
    class BinaryPropertyValue < PropertyValue

      include MsRestAzure


      def initialize
        @Kind = "Binary"
      end

      attr_accessor :Kind

      # @return [Array<Integer>] Array of bytes to be sent as an integer array.
      # Each element of array is a number between 0 and 255.
      attr_accessor :data


      #
      # Mapper for BinaryPropertyValue class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Binary',
          type: {
            name: 'Composite',
            class_name: 'BinaryPropertyValue',
            model_properties: {
              Kind: {
                client_side_validation: true,
                required: true,
                serialized_name: 'Kind',
                type: {
                  name: 'String'
                }
              },
              data: {
                client_side_validation: true,
                required: true,
                serialized_name: 'Data',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'NumberElementType',
                      type: {
                        name: 'Number'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
