Sha256: dbee5718bfcc5456ae2ed57c0a04696d828c2fd83a75bf28df69d29df6cbff09
Contents?: true
Size: 707 Bytes
Versions: 37
Compression:
Stored size: 707 Bytes
Contents
require 'fog/core/collection' require 'fog/hp/models/compute_v2/volume_attachment' module Fog module Compute class HPV2 class VolumeAttachments < Fog::Collection model Fog::Compute::HPV2::VolumeAttachment attr_accessor :server def all requires :server data = service.list_server_volumes(server.id).body['volumeAttachments'] load(data) end def get(volume_id) requires :server if data = service.get_server_volume_details(server.id, volume_id).body['volumeAttachment'] new(data) end rescue Fog::Compute::HPV2::NotFound nil end end end end end
Version data entries
37 entries across 37 versions & 2 rubygems