class Fog::Compute::Google::SslCertificate

Represents a SslCertificate resource

@see cloud.google.com/compute/docs/reference/latest/sslCertificates

Public Instance Methods

destroy(async = true) click to toggle source
# File lib/fog/compute/google/models/ssl_certificate.rb, line 31
def destroy(async = true)
  requires :identity
  data = service.delete_ssl_certificate(identity)
  operation = Fog::Compute::Google::Operations.new(:service => service)
                                              .get(data.name)
  operation.wait_for { ready? } unless async
  operation
end
save() click to toggle source
# File lib/fog/compute/google/models/ssl_certificate.rb, line 19
def save
  requires :identity, :certificate, :private_key
  data = service.insert_ssl_certificate(
    identity, certificate, private_key,
    :description => description
  )
  operation = Fog::Compute::Google::Operations.new(:service => service)
                                              .get(data.name)
  operation.wait_for { ready? }
  reload
end