# 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::DataMigration::Mgmt::V2018_04_19
  module Models
    #
    # Description of an action supported by the Database Migration Service
    #
    class ServiceOperation

      include MsRestAzure

      # @return [String] The fully qualified action name, e.g.
      # Microsoft.DataMigration/services/read
      attr_accessor :name

      # @return [ServiceOperationDisplay] Localized display text
      attr_accessor :display


      #
      # Mapper for ServiceOperation class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ServiceOperation',
          type: {
            name: 'Composite',
            class_name: 'ServiceOperation',
            model_properties: {
              name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              display: {
                client_side_validation: true,
                required: false,
                serialized_name: 'display',
                type: {
                  name: 'Composite',
                  class_name: 'ServiceOperationDisplay'
                }
              }
            }
          }
        }
      end
    end
  end
end
