Sha256: 56cd1965d08341c4e43d66027fcad6c98f9cdc720b2b2ceb39a18a7d4014ffa3

Contents?: true

Size: 885 Bytes

Versions: 53

Compression:

Stored size: 885 Bytes

Contents

module Fog
  module Network
    class AzureRM
      # InboundNatRule model for Network Service
      class InboundNatRule < Fog::Model
        identity :name
        attribute :id
        attribute :frontend_ip_configuration_id
        attribute :protocol
        attribute :frontend_port
        attribute :backend_port

        def self.parse(inbound_nat_rule)
          hash = {}
          hash['id'] = inbound_nat_rule.id
          hash['name'] = inbound_nat_rule.name
          hash['frontend_ip_configuration_id'] = inbound_nat_rule.frontend_ipconfiguration.id unless inbound_nat_rule.frontend_ipconfiguration.nil?
          hash['protocol'] = inbound_nat_rule.protocol
          hash['frontend_port'] = inbound_nat_rule.frontend_port
          hash['backend_port'] = inbound_nat_rule.backend_port
          hash
        end
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 4 rubygems

Version Path
fog-azure-rm-0.4.1 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-0.4.0 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-0.3.9 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-0.3.8 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-0.3.7 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-0.3.6 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-0.3.5 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-0.3.4 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-temp-0.0.4 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-temp-0.0.3 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-0.3.3 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-temp-0.0.2 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-temp-0.0.1 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-0.3.2 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-downgraded-0.3.1 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-0.3.1 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-downgraded-0.3.0 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-0.3.0 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-0.2.7 lib/fog/azurerm/models/network/inbound_nat_rule.rb
fog-azure-rm-0.2.6 lib/fog/azurerm/models/network/inbound_nat_rule.rb