Sha256: 5cad8146d438fb888f3e5e56712ef3fb26d44dcec66c568ae61120788924f9f4

Contents?: true

Size: 733 Bytes

Versions: 13

Compression:

Stored size: 733 Bytes

Contents

module Fog
  module Compute
    class Google

      class Mock

        def insert_image(image_name)
          Fog::Mock.not_implemented
        end

      end

      class Real

        def insert_image(image_name, source)
          api_method = @compute.images.insert
          parameters = {
            'project' => @project,
          }
          body_object = {
            "name" => image_name,
            "sourceType" => "RAW",
            "source" => source,
            "preferredKernel" => '',
          }

          result = self.build_result(
            api_method,
            parameters,
            body_object=body_object)
          response = self.build_response(result)
        end

      end

    end
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
gapinc-fog-1.12.1.2.1 lib/fog/google/requests/compute/insert_image.rb
gapinc-fog-1.14.0 lib/fog/google/requests/compute/insert_image.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/google/requests/compute/insert_image.rb
fog-1.14.0 lib/fog/google/requests/compute/insert_image.rb
fog-1.13.0 lib/fog/google/requests/compute/insert_image.rb
gapinc-fog-1.12.1.2 lib/fog/google/requests/compute/insert_image.rb
gapinc-fog-1.12.1.1 lib/fog/google/requests/compute/insert_image.rb
gapinc-fog-1.12.1a lib/fog/google/requests/compute/insert_image.rb
gapinc-fog-1.12.1 lib/fog/google/requests/compute/insert_image.rb
fog-1.12.1 lib/fog/google/requests/compute/insert_image.rb
fog-1.12.0 lib/fog/google/requests/compute/insert_image.rb
fog-1.11.1 lib/fog/google/requests/compute/insert_image.rb
fog-1.11.0 lib/fog/google/requests/compute/insert_image.rb