class Fog::Identity::Proxmox::Domain

class Domain model authentication

Public Instance Methods

create(new_attributes = {}) click to toggle source
# File lib/fog/identity/proxmox/models/domain.rb, line 40
def create(new_attributes = {})
  attr = type.attributes.merge(new_attributes).merge(realm: realm)
  service.create_domain(attr)
end
destroy() click to toggle source
# File lib/fog/identity/proxmox/models/domain.rb, line 45
def destroy
  requires :realm
  service.delete_domain(realm)
  true
end
to_s() click to toggle source
# File lib/fog/identity/proxmox/models/domain.rb, line 36
def to_s
  realm
end
update() click to toggle source
# File lib/fog/identity/proxmox/models/domain.rb, line 51
def update
  requires :realm
  attr = type.attributes
  attr.delete_if { |key, _value| key == :type }
  service.update_domain(realm, attr)
end