Sha256: 91f4f272da53b0e5bccf5a887df57792b97cd36f8f6781173491a5ee3181b897

Contents?: true

Size: 765 Bytes

Versions: 14

Compression:

Stored size: 765 Bytes

Contents

module Fog
  module Google
    class SQL
      ##
      # Creates an SSL certificate. The new certificate will not be usable until the instance is restarted.
      #
      # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/sslCerts/insert

      class Real
        def insert_ssl_cert(instance_id, common_name)
          @sql.insert_ssl_cert(
            @project,
            instance_id,
            ::Google::Apis::SqladminV1beta4::InsertSslCertsRequest.new(
              common_name: common_name
            )
          )
        end
      end

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