class Fog::Compute::HuaweiCloud::VolumeAttachments

Public Instance Methods

get(server_id) click to toggle source
# File lib/fog/compute/huaweicloud/models/volume_attachments.rb, line 9
def get(server_id)
  if server_id
    puts service.list_volume_attachments(server_id).body
    load(service.list_volume_attachments(server_id).body['volumeAttachments'])
  end
rescue Fog::Compute::HuaweiCloud::NotFound
  nil
end