Sha256: a90cbff39aae3b74dd0dfd010c4c3634955a478b86d07ee436bdd1edca4ce1e1
Contents?: true
Size: 798 Bytes
Versions: 2
Compression:
Stored size: 798 Bytes
Contents
module Fog module Compute class Google class Mock def insert_ssl_certificate(_certificate_name, _certificate, _private_key, _options = {}) Fog::Mock.not_implemented end end class Real def insert_ssl_certificate(certificate_name, certificate, private_key, options = {}) api_method = @compute.ssl_certificates.insert parameters = { "project" => @project } body_object = { "certificate" => certificate, "name" => certificate_name, "privateKey" => private_key } body_object["description"] = options[:description] if options[:description] request(api_method, parameters, body_object) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-google-0.6.0 | lib/fog/compute/google/requests/insert_ssl_certificate.rb |
fog-google-0.5.5 | lib/fog/compute/google/requests/insert_ssl_certificate.rb |