# 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::EventHub::Mgmt::V2018_01_01_preview module Models # # Description of topic resource. # class NetworkRuleSet < Resource include MsRestAzure # @return [DefaultAction] Default Action for Network Rule Set. Possible # values include: 'Allow', 'Deny' attr_accessor :default_action # @return [Array] List VirtualNetwork Rules attr_accessor :virtual_network_rules # @return [Array] List of IpRules attr_accessor :ip_rules # # Mapper for NetworkRuleSet class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'NetworkRuleSet', type: { name: 'Composite', class_name: 'NetworkRuleSet', 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' } }, default_action: { client_side_validation: true, required: false, serialized_name: 'properties.defaultAction', type: { name: 'String' } }, virtual_network_rules: { client_side_validation: true, required: false, serialized_name: 'properties.virtualNetworkRules', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'NWRuleSetVirtualNetworkRulesElementType', type: { name: 'Composite', class_name: 'NWRuleSetVirtualNetworkRules' } } } }, ip_rules: { client_side_validation: true, required: false, serialized_name: 'properties.ipRules', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'NWRuleSetIpRulesElementType', type: { name: 'Composite', class_name: 'NWRuleSetIpRules' } } } } } } } end end end end