fog/fog-azure-rm

View on GitHub
lib/fog/azurerm/models/application_gateway/frontend_port.rb

Summary

Maintainability
A
0 mins
Test Coverage
D
61%
module Fog
  module ApplicationGateway
    class AzureRM
      # Frontenf Port model class for Application Gateway Service
      class FrontendPort < Fog::Model
        identity :name
        attribute :id
        attribute :port

        def self.parse(frontend_port)
          hash = {}
          hash['id'] = frontend_port.id
          hash['name'] = frontend_port.name
          hash['port'] = frontend_port.port
          hash
        end
      end
    end
  end
end