# 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::ServiceBus::Mgmt::V2017_04_01 module Models # # Description of a namespace authorization rule. # class SBAuthorizationRule < Resource include MsRestAzure # @return [Array] The rights associated with the rule. attr_accessor :rights # # Mapper for SBAuthorizationRule class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'SBAuthorizationRule', type: { name: 'Composite', class_name: 'SBAuthorizationRule', 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' } }, rights: { client_side_validation: true, required: false, serialized_name: 'properties.rights', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'AccessRightsElementType', type: { name: 'Enum', module: 'AccessRights' } } } } } } } end end end end