Sha256: cf6df10b1f6a725eeee6bb6fdf767749159dd487eb99045591cab88b4691793d

Contents?: true

Size: 809 Bytes

Versions: 14

Compression:

Stored size: 809 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

14 entries across 14 versions & 1 rubygems

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