Sha256: f80dd9a54059fe459d02c5345f4f7dca451168275fe051f9baf62c4636842591
Contents?: true
Size: 679 Bytes
Versions: 4
Compression:
Stored size: 679 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 connection.delete_tags(resource_id, key => value) true end def save requires :key, :resource_id connection.create_tags(resource_id, key => value) true end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems