Sha256: ea872e1f5b4908fe34fe384458fcf4e7364362c7d87e7e8c575a0abd65b26b78

Contents?: true

Size: 581 Bytes

Versions: 2

Compression:

Stored size: 581 Bytes

Contents

module Fog
  module Network
    class AzureRM
      # Frontenf Port model class for Network Service
      class ApplicationGatewayFrontendPort < Fog::Model
        identity :name
        attribute :port

        def self.parse(frontend_port)
          frontend_port_properties = frontend_port['properties']

          hash = {}
          hash['name'] = frontend_port['name']
          unless frontend_port_properties['port'].nil?
            hash['port'] = frontend_port_properties['port']
          end
          hash
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-azure-rm-0.0.4 lib/fog/azurerm/models/network/application_gateway_frontend_port.rb
fog-azure-rm-0.0.3 lib/fog/azurerm/models/network/application_gateway_frontend_port.rb