# 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::Monitor::Mgmt::V2015_04_01
  module Models
    #
    # the authorization used by the user who has performed the operation that
    # led to this event. This captures the RBAC properties of the event. These
    # usually include the 'action', 'role' and the 'scope'
    #
    class SenderAuthorization

      include MsRestAzure

      # @return [String] the permissible actions. For instance:
      # microsoft.support/supporttickets/write
      attr_accessor :action

      # @return [String] the role of the user. For instance: Subscription Admin
      attr_accessor :role

      # @return [String] the scope.
      attr_accessor :scope


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