Sha256: 093a55739b7406cd4a8e9246a73321e75bc99d075a70307a75474755298b36ea

Contents?: true

Size: 811 Bytes

Versions: 2

Compression:

Stored size: 811 Bytes

Contents

module Fog
  module Network
    class AzureRM
      # SSL Certificate model class for Network Service
      class ApplicationGatewaySslCertificate < Fog::Model
        identity :name
        attribute :data
        attribute :password
        attribute :public_cert_data

        def self.parse(ssl_certificate)
          ssl_certificate_properties = ssl_certificate['properties']

          hash = {}
          hash['name'] = ssl_certificate['name']
          unless ssl_certificate_properties.nil?
            hash['data'] = ssl_certificate_properties['data']
            hash['password'] = ssl_certificate_properties['password']
            hash['public_cert_data'] = ssl_certificate_properties['publicCertData']
          end
          hash
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-azure-rm-0.0.4 lib/fog/azurerm/models/network/application_gateway_ssl_certificate.rb
fog-azure-rm-0.0.3 lib/fog/azurerm/models/network/application_gateway_ssl_certificate.rb