Sha256: 3d4cea162912bf45932314d71f6737771b34a4abb0609d27944695021629ec3a
Contents?: true
Size: 1.13 KB
Versions: 2
Compression:
Stored size: 1.13 KB
Contents
module Fog module Network class AzureRM # FrontendIPConfiguration model for Network Service class FrontendIPConfiguration < Fog::Model identity :name attribute :id attribute :load_balancing_rules attribute :private_ipaddress attribute :private_ipallocation_method attribute :subnet_id attribute :public_ipaddress_id def self.parse(frontend_ip_configuration) hash = {} hash['name'] = frontend_ip_configuration['name'] subnet = frontend_ip_configuration['properties']['subnet'] hash['subnet_id'] = subnet['id'] unless subnet.nil? private_ip_address = frontend_ip_configuration['properties']['privateIPAllocationMethod'] unless private_ip_address.nil? hash['private_ipaddress'] = private_ip_address end public_ip_address = frontend_ip_configuration['properties']['publicIPAddress'] unless public_ip_address.nil? hash['public_ip_address_id'] = public_ip_address['id'] end hash end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.3 | lib/fog/azurerm/models/network/frontend_ip_configuration.rb |
fog-azure-rm-0.0.2 | lib/fog/azurerm/models/network/frontend_ip_configuration.rb |