Sha256: 0e8a3762021f2988c7613bd3f41bb5022f0d74154a08dd15792c419cceee39e0

Contents?: true

Size: 907 Bytes

Versions: 46

Compression:

Stored size: 907 Bytes

Contents

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

        def self.parse(gateway_ip_configuration)
          hash = {}
          if gateway_ip_configuration.is_a? Hash
            hash['id'] = gateway_ip_configuration['id']
            hash['name'] = gateway_ip_configuration['name']
            hash['subnet_id'] = gateway_ip_configuration['subnet']['id'] unless gateway_ip_configuration['subnet'].nil?
          else
            hash['id'] = gateway_ip_configuration.id
            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

46 entries across 46 versions & 4 rubygems

Version Path
fog-azure-rm-0.6.0 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
far-gem-0.5.6 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
far-gem-0.5.5 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
far-gem-0.5.4 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
far-gem-0.5.3 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
far-gem-0.5.2 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
far-gem-0.5.1 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/models/application_gateway/ip_configuration.rb