Sha256: 2ba5cdd6365d487ad03eb661e00d7fcfafc6914f2039118782c5299e7ecda472

Contents?: true

Size: 887 Bytes

Versions: 14

Compression:

Stored size: 887 Bytes

Contents

module Fog
  module Google
    class SQL
      ##
      # Updates settings of a Cloud SQL instance
      #
      # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances/update
      class Real
        def update_instance(instance_id, settings_version, tier, settings = {})
          settings = ::Google::Apis::SqladminV1beta4::Settings.new(**settings)
          settings.tier = tier
          settings.settings_version = settings_version

          @sql.update_instance(
            @project,
            instance_id,
            ::Google::Apis::SqladminV1beta4::DatabaseInstance.new(settings: settings)
          )
        end
      end

      class Mock
        def update_instance(_instance_id, _settings_version, _tier, _settings = {})
          # :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/update_instance.rb
fog-google-1.24.0 lib/fog/google/requests/sql/update_instance.rb
fog-google-1.23.0 lib/fog/google/requests/sql/update_instance.rb
fog-google-1.22.0 lib/fog/google/requests/sql/update_instance.rb
fog-google-1.21.1 lib/fog/google/requests/sql/update_instance.rb
fog-google-1.21.0 lib/fog/google/requests/sql/update_instance.rb
fog-google-1.20.0 lib/fog/google/requests/sql/update_instance.rb
fog-google-1.19.0 lib/fog/google/requests/sql/update_instance.rb
fog-google-1.18.0 lib/fog/google/requests/sql/update_instance.rb
fog-google-1.17.0 lib/fog/google/requests/sql/update_instance.rb
fog-google-1.16.1 lib/fog/google/requests/sql/update_instance.rb
fog-google-1.16.0 lib/fog/google/requests/sql/update_instance.rb
fog-google-1.15.0 lib/fog/google/requests/sql/update_instance.rb
fog-google-1.14.0 lib/fog/google/requests/sql/update_instance.rb