Sha256: 8b7742ee3b4362527f6f5dd80d01a2a17be5c1c21258a1f511508efbdb104440
Contents?: true
Size: 665 Bytes
Versions: 65
Compression:
Stored size: 665 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
65 entries across 65 versions & 6 rubygems