Class: Fog::Compute::Google::SslCertificate

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/compute/google/models/ssl_certificate.rb

Overview

Represents a Subnetwork resource

Instance Method Summary collapse

Instance Method Details

#destroy(async = true) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/fog/compute/google/models/ssl_certificate.rb', line 25

def destroy(async = true)
  requires :identity
  data = service.delete_ssl_certificate(identity)
  operation = Fog::Compute::Google::Operations.new(:service => service).get(data.body["name"], nil)
  operation.wait_for { ready? } unless async
  operation
end

#saveObject



17
18
19
20
21
22
23
# File 'lib/fog/compute/google/models/ssl_certificate.rb', line 17

def save
  requires :identity, :certificate, :private_key
  data = service.insert_ssl_certificate(identity, certificate, private_key, attributes)
  operation = Fog::Compute::Google::Operations.new(:service => service).get(data.body["name"], nil)
  operation.wait_for { !pending? }
  reload
end