Sha256: 4c9a77f8564e653c84a494a0d9b90b7bcbe1586033660e1cb8a2a02d9f53ae68
Contents?: true
Size: 1.05 KB
Versions: 13
Compression:
Stored size: 1.05 KB
Contents
require 'fog/openstack/models/model' module Fog module Identity class OpenStack class V3 class Domain < Fog::OpenStack::Model identity :id attribute :description attribute :enabled attribute :name attribute :links def to_s self.name end def destroy @@cache.clear if @@cache requires :id service.delete_domain(self.id) true end def update(attr = nil) @@cache.clear if @@cache requires :id, :name merge_attributes( service.update_domain(self.id, attr || attributes).body['domain']) self end def create @@cache.clear if @@cache requires :name merge_attributes( service.create_domain(attributes).body['domain']) self end def self.use_cache(cache) @@cache = cache end end end end end end
Version data entries
13 entries across 13 versions & 2 rubygems