module Fog module Compute class Google class Mock def delete_zone_operation(zone, operation) Fog::Mock.not_implemented end end class Real # https://developers.google.com/compute/docs/reference/latest/zoneOperations def delete_zone_operation(zone_name, operation) if zone_name.start_with? 'http' zone_name = zone_name.split('/')[-1] end api_method = @compute.zone_operations.delete parameters = { 'project' => @project, 'zone' => zone_name, 'operation' => operation } result = self.build_result(api_method, parameters) response = self.build_response(result) end end end end end