Sha256: 328a72be51993c933ed99c55b1249eff97b6b3f814a090d741b8e868b620333a

Contents?: true

Size: 716 Bytes

Versions: 20

Compression:

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