Sha256: 9a74a9def172884e3efebff72a5bf4463b1efc663cd5812e5adba407a5d518fd
Contents?: true
Size: 624 Bytes
Versions: 4
Compression:
Stored size: 624 Bytes
Contents
require 'fog/huaweicloud/models/collection' require 'fog/compute/huaweicloud/models/aggregate' module Fog module Compute class HuaweiCloud class Aggregates < Fog::HuaweiCloud::Collection model Fog::Compute::HuaweiCloud::Aggregate def all(options = {}) load_response(service.list_aggregates(options), 'aggregates') end def find_by_id(id) new(service.get_aggregate(id).body['aggregate']) end alias get find_by_id def destroy(id) aggregate = find_by_id(id) aggregate.destroy end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems