Sha256: 46782e910a4990487413412a7f8ce7ff7075cf53873de8fc392ed41caba7fd27

Contents?: true

Size: 525 Bytes

Versions: 14

Compression:

Stored size: 525 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def insert_image(_image_name, _image = {})
          # :no-coverage:
          Fog::Mock.not_implemented
          # :no-coverage:
        end
      end

      class Real
        def insert_image(image_name, image = {}, project = @project)
          image = image.merge(:name => image_name)
          @compute.insert_image(
            project,
            ::Google::Apis::ComputeV1::Image.new(**image)
          )
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-1.24.1 lib/fog/compute/google/requests/insert_image.rb
fog-google-1.24.0 lib/fog/compute/google/requests/insert_image.rb
fog-google-1.23.0 lib/fog/compute/google/requests/insert_image.rb
fog-google-1.22.0 lib/fog/compute/google/requests/insert_image.rb
fog-google-1.21.1 lib/fog/compute/google/requests/insert_image.rb
fog-google-1.21.0 lib/fog/compute/google/requests/insert_image.rb
fog-google-1.20.0 lib/fog/compute/google/requests/insert_image.rb
fog-google-1.19.0 lib/fog/compute/google/requests/insert_image.rb
fog-google-1.18.0 lib/fog/compute/google/requests/insert_image.rb
fog-google-1.17.0 lib/fog/compute/google/requests/insert_image.rb
fog-google-1.16.1 lib/fog/compute/google/requests/insert_image.rb
fog-google-1.16.0 lib/fog/compute/google/requests/insert_image.rb
fog-google-1.15.0 lib/fog/compute/google/requests/insert_image.rb
fog-google-1.14.0 lib/fog/compute/google/requests/insert_image.rb