Sha256: 4b5c65d353748820032f19a58ec1d9ea5ad2c0ab3ed89633518aa04282833f10

Contents?: true

Size: 800 Bytes

Versions: 14

Compression:

Stored size: 800 Bytes

Contents

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

      class Real
        def restore_instance_backup(identity, backup_configuration, due_time)
          api_method = @sql.instances.reset_ssl_config
          parameters = {
            "project" => @project,
            "instance" => identity,
            "backupConfiguration" => backup_configuration,
            "dueTime" => due_time
          }

          request(api_method, parameters)
        end
      end

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