Sha256: fd6879e92236422e6b20be856ee746643ebc61d70cb5ece667a33c8cab7e26a6
Contents?: true
Size: 968 Bytes
Versions: 10
Compression:
Stored size: 968 Bytes
Contents
module Fog module Compute class Google # Returns the latest non-deprecated image that is part of an image family. # # ==== Parameters # * family<~String> - Name of the image resource to return. # # ==== Returns # * response<~Excon::Response>: # * body<~Hash> - corresponding compute#image resource # # ==== See also: # https://cloud.google.com/compute/docs/reference/latest/images/getFromFamily class Mock def get_image_from_family(_family, _project = @project) Fog::Mock.not_implemented end end class Real def get_image_from_family(family, project = nil) api_method = @compute.images.get_from_family project = @project if project.nil? parameters = { "family" => family, "project" => project } request(api_method, parameters) end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems