Sha256: 46bb8a845c2cb9284747c0789b208adaa0c9ab54d2c4e461236cec332a864cff
Contents?: true
Size: 881 Bytes
Versions: 4
Compression:
Stored size: 881 Bytes
Contents
require 'fog/huaweicloud/models/model' module Fog module Identity class HuaweiCloud class V3 class Policy < Fog::HuaweiCloud::Model identity :id attribute :type attribute :blob attribute :links def to_s name end def destroy requires :id service.delete_policy(id) true end def update(attr = nil) requires :id, :blob, :type merge_attributes( service.update_policy(id, attr || attributes).body['policy'] ) self end def create requires :blob, :type merge_attributes( service.create_policy(attributes).body['policy'] ) self end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems