Sha256: eda655cb684869d1bf98691aceb32727d2085ee43f6566196004a81442693f25

Contents?: true

Size: 1.15 KB

Versions: 46

Compression:

Stored size: 1.15 KB

Contents

module Fog
  module ApplicationGateway
    class AzureRM
      # Http Listener class for Application Gateway Service
      class HttpListener < Fog::Model
        identity :name
        attribute :id
        attribute :frontend_ip_config_id
        attribute :frontend_port_id
        attribute :protocol
        attribute :host_name
        attribute :ssl_certificate_id
        attribute :require_server_name_indication

        def self.parse(http_listener)
          hash = {}
          hash['id'] = http_listener.id
          hash['name'] = http_listener.name
          hash['frontend_ip_config_id'] = http_listener.frontend_ipconfiguration.id unless http_listener.frontend_ipconfiguration.nil?
          hash['frontend_port_id'] = http_listener.frontend_port.id unless http_listener.frontend_port.nil?
          hash['protocol'] = http_listener.protocol
          hash['host_name'] = http_listener.host_name
          hash['ssl_certificate_id'] = http_listener.ssl_certificate.id unless http_listener.ssl_certificate.nil?
          hash['require_server_name_indication'] = http_listener.require_server_name_indication
          hash
        end
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 4 rubygems

Version Path
fog-azure-rm-0.2.5 lib/fog/azurerm/models/application_gateway/http_listener.rb
fog-azure-rm-0.2.4 lib/fog/azurerm/models/application_gateway/http_listener.rb
fog-azure-rm-0.2.3 lib/fog/azurerm/models/application_gateway/http_listener.rb
fog-azure-rm-0.2.2 lib/fog/azurerm/models/application_gateway/http_listener.rb
fog-azure-rm-0.2.1 lib/fog/azurerm/models/application_gateway/http_listener.rb
fog-azure-rm-0.2.0 lib/fog/azurerm/models/application_gateway/http_listener.rb