Sha256: dee3850dc097e87c34c6bef2f261a1187ebe3f9ebc31e82def96f58ffd9f89d0

Contents?: true

Size: 721 Bytes

Versions: 7

Compression:

Stored size: 721 Bytes

Contents

module Fog
  module Google
    class SQL
      ##
      # Creates a new backup run on demand. This method is applicable only to Second
      # Generation instances.
      #
      # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/backupRuns/insert
      class Real
        def insert_backup_run(instance_id, backup_run = {})
          @sql.insert_backup_run(
            @project,
            instance_id,
            ::Google::Apis::SqladminV1beta4::BackupRun.new(backup_run)
          )
        end
      end

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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
gitlab-fog-google-1.14.0 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.13.0 lib/fog/google/requests/sql/insert_backup_run.rb
gitlab-fog-google-1.13.0 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.12.1 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.12.0 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.11.0 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.10.0 lib/fog/google/requests/sql/insert_backup_run.rb