Sha256: bd3b1fd6a05591c59ba638fd6a73ed07f56f36f88ec60df358429fc12bd53c0e

Contents?: true

Size: 815 Bytes

Versions: 7

Compression:

Stored size: 815 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def set_target_pool_backup(_target_pool, _region, _backup_target,
                                   _failover_ratio: nil)
          # :no-coverage:
          Fog::Mock.not_implemented
          # :no-coverage:
        end
      end

      class Real
        def set_target_pool_backup(target_pool, region, backup_target,
                                   failover_ratio: nil)
          target_ref = ::Google::Apis::ComputeV1::TargetReference.new(
            :target => backup_target
          )

          @compute.set_target_pool_backup(
            project,
            region.split("/")[-1],
            target_pool,
            target_ref,
            :failover_ratio => failover_ratio
          )
        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/set_target_pool_backup.rb
fog-google-1.13.0 lib/fog/compute/google/requests/set_target_pool_backup.rb
gitlab-fog-google-1.13.0 lib/fog/compute/google/requests/set_target_pool_backup.rb
fog-google-1.12.1 lib/fog/compute/google/requests/set_target_pool_backup.rb
fog-google-1.12.0 lib/fog/compute/google/requests/set_target_pool_backup.rb
fog-google-1.11.0 lib/fog/compute/google/requests/set_target_pool_backup.rb
fog-google-1.10.0 lib/fog/compute/google/requests/set_target_pool_backup.rb