Sha256: 792e85c57ac6dc3438761ae6faab7086dab0d7c9e5ce10fd72d94952c3dabdb4

Contents?: true

Size: 624 Bytes

Versions: 7

Compression:

Stored size: 624 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def insert_backend_service(_backend_service_name, _opts = {})
          # :no-coverage:
          Fog::Mock.not_implemented
          # :no-coverage:
        end
      end

      class Real
        def insert_backend_service(backend_service_name, opts = {})
          options = opts.reject { |_k, v| v.nil? }
                        .merge(:name => backend_service_name)

          be_service = ::Google::Apis::ComputeV1::BackendService.new(options)
          @compute.insert_backend_service(@project, be_service)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
gitlab-fog-google-1.14.0 lib/fog/compute/google/requests/insert_backend_service.rb
fog-google-1.13.0 lib/fog/compute/google/requests/insert_backend_service.rb
gitlab-fog-google-1.13.0 lib/fog/compute/google/requests/insert_backend_service.rb
fog-google-1.12.1 lib/fog/compute/google/requests/insert_backend_service.rb
fog-google-1.12.0 lib/fog/compute/google/requests/insert_backend_service.rb
fog-google-1.11.0 lib/fog/compute/google/requests/insert_backend_service.rb
fog-google-1.10.0 lib/fog/compute/google/requests/insert_backend_service.rb