Sha256: f14cb22859e9fde2b3705ea4a32dcb992d1d8c0e4130a45e103c2baabddcdc02

Contents?: true

Size: 825 Bytes

Versions: 14

Compression:

Stored size: 825 Bytes

Contents

module Fog
  module Google
    class SQL
      ##
      # Lists all backup runs associated with a given instance and configuration in the
      # reverse chronological order of the enqueued time
      #
      # @see https://developers.google.com/cloud-sql/docs/admin-api/v1beta3/backupRuns/list

      class Real
        def list_backup_runs(instance_id, backup_configuration_id)
          api_method = @sql.backup_runs.list
          parameters = {
            "project" => @project,
            "instance" => instance_id,
            "backupConfiguration" => backup_configuration_id
          }

          request(api_method, parameters)
        end
      end

      class Mock
        def list_backup_runs(_instance_id, _backup_configuration_id)
          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/list_backup_runs.rb
fog-google-0.5.5 lib/fog/google/requests/sql/list_backup_runs.rb
fog-google-0.5.4 lib/fog/google/requests/sql/list_backup_runs.rb
fog-google-0.5.3 lib/fog/google/requests/sql/list_backup_runs.rb
fog-google-0.5.2 lib/fog/google/requests/sql/list_backup_runs.rb
fog-google-0.5.1 lib/fog/google/requests/sql/list_backup_runs.rb
fog-google-0.5.0 lib/fog/google/requests/sql/list_backup_runs.rb
fog-google-0.4.2 lib/fog/google/requests/sql/list_backup_runs.rb
fog-google-0.4.1 lib/fog/google/requests/sql/list_backup_runs.rb
fog-google-0.4.0 lib/fog/google/requests/sql/list_backup_runs.rb
fog-google-0.3.2 lib/fog/google/requests/sql/list_backup_runs.rb
fog-google-0.3.1 lib/fog/google/requests/sql/list_backup_runs.rb
fog-google-0.3.0 lib/fog/google/requests/sql/list_backup_runs.rb
fog-google-0.2.0 lib/fog/google/requests/sql/list_backup_runs.rb