Sha256: feede6ee12d60105584c7021cb0c3d8b99804c76aad1a4e823ee90291026574d

Contents?: true

Size: 1.96 KB

Versions: 10

Compression:

Stored size: 1.96 KB

Contents

# 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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
azure_mgmt_monitor-0.19.0 lib/2015-04-01/generated/azure_mgmt_monitor/models/sender_authorization.rb
azure_mgmt_monitor-0.18.0 lib/2015-04-01/generated/azure_mgmt_monitor/models/sender_authorization.rb
azure_mgmt_monitor-0.17.6 lib/2015-04-01/generated/azure_mgmt_monitor/models/sender_authorization.rb
azure_mgmt_monitor-0.17.5 lib/2015-04-01/generated/azure_mgmt_monitor/models/sender_authorization.rb
azure_mgmt_monitor-0.17.4 lib/2015-04-01/generated/azure_mgmt_monitor/models/sender_authorization.rb
azure_mgmt_monitor-0.17.3 lib/2015-04-01/generated/azure_mgmt_monitor/models/sender_authorization.rb
azure_mgmt_monitor-0.17.2 lib/2015-04-01/generated/azure_mgmt_monitor/models/sender_authorization.rb
azure_mgmt_monitor-0.17.1 lib/2015-04-01/generated/azure_mgmt_monitor/models/sender_authorization.rb
azure_mgmt_monitor-0.17.0 lib/2015-04-01/generated/azure_mgmt_monitor/models/sender_authorization.rb
azure_mgmt_monitor-0.16.1 lib/2015-04-01/generated/azure_mgmt_monitor/models/sender_authorization.rb