# 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::ApiManagement::Mgmt::V2018_01_01
  module Models
    #
    # Issue Attachment Contract details.
    #
    class IssueAttachmentContract < Resource

      include MsRestAzure

      # @return [String] Filename by which the binary data will be saved.
      attr_accessor :title

      # @return [String] Either 'link' if content is provided via an HTTP link
      # or the MIME type of the Base64-encoded binary data provided in the
      # 'content' property.
      attr_accessor :content_format

      # @return [String] An HTTP link or Base64-encoded binary data.
      attr_accessor :content


      #
      # Mapper for IssueAttachmentContract class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'IssueAttachmentContract',
          type: {
            name: 'Composite',
            class_name: 'IssueAttachmentContract',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              title: {
                client_side_validation: true,
                required: true,
                serialized_name: 'properties.title',
                type: {
                  name: 'String'
                }
              },
              content_format: {
                client_side_validation: true,
                required: true,
                serialized_name: 'properties.contentFormat',
                type: {
                  name: 'String'
                }
              },
              content: {
                client_side_validation: true,
                required: true,
                serialized_name: 'properties.content',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
