Sha256: c983a44690c9c790bc4a95fa131c8a25fb7eaf1f8e2dcbe6e477fff24e5c55ac

Contents?: true

Size: 776 Bytes

Versions: 1

Compression:

Stored size: 776 Bytes

Contents

module Fog
  module ApplicationGateway
    class AzureRM
      # GatewayIPConfiguration model class for Application Gateway Service
      class IPConfiguration < Fog::Model
        identity :name
        attribute :subnet_id

        def self.parse(gateway_ip_configuration)
          hash = {}
          if gateway_ip_configuration.is_a? Hash
            hash['name'] = gateway_ip_configuration['name']
            hash['subnet_id'] = gateway_ip_configuration['subnet']['id'] unless gateway_ip_configuration['subnet'].nil?
          else
            hash['name'] = gateway_ip_configuration.name
            hash['subnet_id'] = gateway_ip_configuration.subnet.id unless gateway_ip_configuration.subnet.nil?
          end
          hash
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-azure-rm-0.1.2 lib/fog/azurerm/models/application_gateway/ip_configuration.rb