Sha256: 38a389f4be846ca5828e69b6756aaa474abe74786d59fda79b456dbd126b76fd
Contents?: true
Size: 662 Bytes
Versions: 22
Compression:
Stored size: 662 Bytes
Contents
require 'fog/core/model' module Fog module Compute class AWS class Tag < Fog::Model identity :key attribute :value attribute :resource_id, :aliases => 'resourceId' attribute :resource_type, :aliases => 'resourceType' def initialize(attributes = {}) super end def destroy requires :key, :resource_id service.delete_tags(resource_id, key => value) true end def save requires :key, :resource_id service.create_tags(resource_id, key => value) true end end end end end
Version data entries
22 entries across 22 versions & 5 rubygems