Sha256: fac3b45b3c126da5dfb231370d98ed7180ebe988a392a64d2734f03831eea679

Contents?: true

Size: 890 Bytes

Versions: 20

Compression:

Stored size: 890 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)
          Fog::Mock.not_implemented
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
fog-google-1.9.1 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.9.0 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.8.2 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.8.1 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.8.0 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.7.1 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.7.0 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.6.0 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.5.0 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.4.0 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.3.3 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.3.2 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.3.1 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.3.0 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.2.2 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.2.1 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.2.0 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.1.0 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.0.1 lib/fog/google/requests/sql/restore_instance_backup.rb
fog-google-1.0.0 lib/fog/google/requests/sql/restore_instance_backup.rb