Class: Fog::KeyVault::AzureRM::AccessPolicyEntry

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

Overview

AccessPolicyEntry Model for Storage Service

Class Method Summary collapse

Class Method Details

.parse(access_policy_entry) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/azurerm/models/key_vault/access_policy_entry.rb', line 13

def self.parse(access_policy_entry)
  access_policy_entry_hash = get_hash_from_object(access_policy_entry)
  permissions = access_policy_entry.permissions
  unless permissions.nil?
    access_policy_entry_hash['keys'] = permissions.keys
    access_policy_entry_hash['secrets'] = permissions.secrets
    access_policy_entry_hash['certificates'] = permissions.certificates
  end

  access_policy_entry_hash
end