Sha256: e544b615665e39f598b99853a5a280b3a00bd47d97f7dd979fc04bf09f0315d3
Contents?: true
Size: 795 Bytes
Versions: 4
Compression:
Stored size: 795 Bytes
Contents
require 'fog/huaweicloud/models/model' module Fog module Identity class HuaweiCloud class V3 class Role < Fog::HuaweiCloud::Model identity :id attribute :name attribute :links def to_s name end def destroy requires :id service.delete_role(id) true end def update(attr = nil) requires :id merge_attributes( service.update_role(id, attr || attributes).body['role'] ) self end def create merge_attributes( service.create_role(attributes).body['role'] ) self end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems