Sha256: 52bb8dcc87a1b8a985975b95872863c890b29168068e85bc50bb19ec61d96447

Contents?: true

Size: 669 Bytes

Versions: 20

Compression:

Stored size: 669 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)
          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/insert_backup_run.rb
fog-google-1.9.0 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.8.2 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.8.1 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.8.0 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.7.1 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.7.0 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.6.0 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.5.0 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.4.0 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.3.3 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.3.2 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.3.1 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.3.0 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.2.2 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.2.1 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.2.0 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.1.0 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.0.1 lib/fog/google/requests/sql/insert_backup_run.rb
fog-google-1.0.0 lib/fog/google/requests/sql/insert_backup_run.rb