# 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::Links::Mgmt::V2016_09_01
  module Models
    #
    # The resource link.
    #
    class ResourceLink

      include MsRestAzure

      # @return [String] The fully qualified ID of the resource link.
      attr_accessor :id

      # @return [String] The name of the resource link.
      attr_accessor :name

      # @return The resource link object.
      attr_accessor :type

      # @return [ResourceLinkProperties] Properties for resource link.
      attr_accessor :properties


      #
      # Mapper for ResourceLink class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ResourceLink',
          type: {
            name: 'Composite',
            class_name: 'ResourceLink',
            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: 'Object'
                }
              },
              properties: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties',
                type: {
                  name: 'Composite',
                  class_name: 'ResourceLinkProperties'
                }
              }
            }
          }
        }
      end
    end
  end
end
