Sha256: ef3992e0922b3bdef1de92d3de76e604cfe42d6ffbd27d5999d8f305bef286fc

Contents?: true

Size: 930 Bytes

Versions: 14

Compression:

Stored size: 930 Bytes

Contents

module Fog
  module Google
    class SQL
      ##
      # Restores a backup of a Cloud SQL instance
      #
      # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances/restoreBackup

      class Real
        def restore_instance_backup(instance_id, backup_run_id)
          request = ::Google::Apis::SqladminV1beta4::RestoreInstancesBackupRequest.new(
            restore_backup_context: ::Google::Apis::SqladminV1beta4::RestoreBackupContext.new(
              backup_run_id: backup_run_id,
              instance_id: instance_id,
              kind: "sql#restoreBackupContext"
            )
          )
          @sql.restore_instance_backup(@project, instance_id, request)
        end
      end

      class Mock
        def restore_instance_backup(_instance_id, _backup_run_id)
          # :no-coverage:
          Fog::Mock.not_implemented
          # :no-coverage:
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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