Sha256: 01fc11b202e1a95bf054559ed2a7817b0fcfef6e029d4970497fac7f6b93910a
Contents?: true
Size: 966 Bytes
Versions: 22
Compression:
Stored size: 966 Bytes
Contents
require 'fog/openstack/models/model' module Fog module OpenStack class Identity class V3 class Service < Fog::OpenStack::Model identity :id attribute :description attribute :type attribute :name attribute :links def to_s name end def destroy requires :id service.delete_service(id) true end def update(attr = nil) requires :id merge_attributes( service.update_service(id, attr || attributes).body['service'] ) self end def save requires :name identity ? update : create end def create merge_attributes( service.create_service(attributes).body['service'] ) self end end end end end end
Version data entries
22 entries across 22 versions & 3 rubygems