# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ARM::IotHub module Models # # Model object. # # class SharedAccessAuthorizationRule include MsRestAzure # @return [String] The key name. attr_accessor :key_name # @return [String] The primary key. attr_accessor :primary_key # @return [String] The issuer name. attr_accessor :issuer_name # @return [String] The secondary key. attr_accessor :secondary_key # @return [String] The claim type. attr_accessor :claim_type # @return [String] The claim value. attr_accessor :claim_value # @return [Array] The rights. attr_accessor :rights # @return [DateTime] The created time. attr_accessor :created_time # @return [DateTime] The modified time. attr_accessor :modified_time # @return [Integer] The revision. attr_accessor :revision # # Mapper for SharedAccessAuthorizationRule class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { required: false, serialized_name: 'SharedAccessAuthorizationRule', type: { name: 'Composite', class_name: 'SharedAccessAuthorizationRule', model_properties: { key_name: { required: false, serialized_name: 'KeyName', type: { name: 'String' } }, primary_key: { required: false, serialized_name: 'PrimaryKey', type: { name: 'String' } }, issuer_name: { required: false, serialized_name: 'IssuerName', type: { name: 'String' } }, secondary_key: { required: false, serialized_name: 'SecondaryKey', type: { name: 'String' } }, claim_type: { required: false, serialized_name: 'ClaimType', type: { name: 'String' } }, claim_value: { required: false, serialized_name: 'ClaimValue', type: { name: 'String' } }, rights: { required: false, serialized_name: 'Rights', type: { name: 'Sequence', element: { required: false, serialized_name: 'SBAccessRightsElementType', type: { name: 'Enum', module: 'SBAccessRights' } } } }, created_time: { required: false, serialized_name: 'CreatedTime', type: { name: 'DateTime' } }, modified_time: { required: false, serialized_name: 'ModifiedTime', type: { name: 'DateTime' } }, revision: { required: false, serialized_name: 'Revision', type: { name: 'Number' } } } } } end end end end