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.4.1 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.4.0 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.3.9 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.3.8 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.3.7 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.3.6 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.3.5 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.3.4 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-temp-0.0.4 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-temp-0.0.3 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.3.3 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-temp-0.0.2 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-temp-0.0.1 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.3.2 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-downgraded-0.3.1 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.3.1 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-downgraded-0.3.0 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.3.0 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.2.7 lib/fog/azurerm/models/application_gateway/ip_configuration.rb
fog-azure-rm-0.2.6 lib/fog/azurerm/models/application_gateway/ip_configuration.rb