Sha256: e995bd99dc655acd780dbcfe403250ec424b7b2ceabefa50d0bf54a12d7291bd

Contents?: true

Size: 777 Bytes

Versions: 14

Compression:

Stored size: 777 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def add_backend_service_backends(_backend_service, _new_backends)
          Fog::Mock.not_implemented
        end
      end

      class Real
        def add_backend_service_backends(backend_service, new_backends)
          api_method = @compute.backend_services.patch
          parameters = {
            "project" => @project,
            "backendService" => backend_service.name
          }
          if backend_service.backends
            backend_service.backends.concat(new_backends)
          else
            backend_service.backends = new_backends
          end
          body_object = backend_service

          request(api_method, parameters, body_object)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-0.6.0 lib/fog/compute/google/requests/add_backend_service_backends.rb
fog-google-0.5.5 lib/fog/compute/google/requests/add_backend_service_backends.rb
fog-google-0.5.4 lib/fog/compute/google/requests/add_backend_service_backends.rb
fog-google-0.5.3 lib/fog/compute/google/requests/add_backend_service_backends.rb
fog-google-0.5.2 lib/fog/compute/google/requests/add_backend_service_backends.rb
fog-google-0.5.1 lib/fog/compute/google/requests/add_backend_service_backends.rb
fog-google-0.5.0 lib/fog/compute/google/requests/add_backend_service_backends.rb
fog-google-0.4.2 lib/fog/compute/google/requests/add_backend_service_backends.rb
fog-google-0.4.1 lib/fog/compute/google/requests/add_backend_service_backends.rb
fog-google-0.4.0 lib/fog/compute/google/requests/add_backend_service_backends.rb
fog-google-0.3.2 lib/fog/compute/google/requests/add_backend_service_backends.rb
fog-google-0.3.1 lib/fog/compute/google/requests/add_backend_service_backends.rb
fog-google-0.3.0 lib/fog/compute/google/requests/add_backend_service_backends.rb
fog-google-0.2.0 lib/fog/compute/google/requests/add_backend_service_backends.rb