Sha256: d3b8071c9eb9023fb112f03dd1dc371a1a1673d56c417f8ec0a350ca77d46078

Contents?: true

Size: 1.12 KB

Versions: 6

Compression:

Stored size: 1.12 KB

Contents

module Fog
  module ApplicationGateway
    class AzureRM
      # Http Listener class for Application Gateway Service
      class HttpListener < Fog::Model
        identity :name
        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['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

6 entries across 6 versions & 1 rubygems

Version Path
fog-azure-rm-0.1.1 lib/fog/azurerm/models/application_gateway/http_listener.rb
fog-azure-rm-0.1.0 lib/fog/azurerm/models/application_gateway/http_listener.rb
fog-azure-rm-0.0.9 lib/fog/azurerm/models/application_gateway/http_listener.rb
fog-azure-rm-0.0.8 lib/fog/azurerm/models/application_gateway/http_listener.rb
fog-azure-rm-0.0.6 lib/fog/azurerm/models/application_gateway/http_listener.rb
fog-azure-rm-0.0.5 lib/fog/azurerm/models/application_gateway/http_listener.rb