Sha256: 8852e29d36918dd172501972535c6c56369bd4c9c44bf722405bbdbcd271baf4
Contents?: true
Size: 511 Bytes
Versions: 4
Compression:
Stored size: 511 Bytes
Contents
require 'fog/core/collection' require 'fog/google/models/compute/disk' module Fog module Compute class Google class Disks < Fog::Collection model Fog::Compute::Google::Disk def all(zone) data = service.list_disks(zone).body["items"] load(data) end def get(identity, zone) data = service.get_disk(identity, zone).body new(data) rescue Excon::Errors::NotFound nil end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems