Class: Fog::Network::AzureRM::ApplicationGatewaySslCertificate

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/azurerm/models/network/application_gateway_ssl_certificate.rb

Overview

SSL Certificate model class for Network Service

Class Method Summary collapse

Class Method Details

.parse(ssl_certificate) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/azurerm/models/network/application_gateway_ssl_certificate.rb', line 11

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