Sha256: ff10f4fa29ebaebc52e024c5e87828f8e4b762c2ded9ba401d08dd83e5d1aca1

Contents?: true

Size: 801 Bytes

Versions: 14

Compression:

Stored size: 801 Bytes

Contents

module Fog
  module Google
    class SQL
      ##
      # Retrieves a resource containing information about a backup run
      #
      # @see https://developers.google.com/cloud-sql/docs/admin-api/v1beta3/backupRuns/get

      class Real
        def get_backup_run(instance_id, backup_configuration_id, due_time)
          api_method = @sql.backup_runs.get
          parameters = {
            "project" => @project,
            "instance" => instance_id,
            "backupConfiguration" => backup_configuration_id,
            "dueTime" => due_time
          }

          request(api_method, parameters)
        end
      end

      class Mock
        def get_backup_run(_instance_id, _backup_configuration_id, _due_time)
          Fog::Mock.not_implemented
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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