Sha256: 163a151ecea87ac3f944c3b71ebd1d5d145ddfa03c9454c3f1f859df6438ffe0
Contents?: true
Size: 1.18 KB
Versions: 2
Compression:
Stored size: 1.18 KB
Contents
module Fog module Compute class Google ## # Represents a Subnetwork resource # # @see https://cloud.google.com/compute/docs/reference/latest/sslCertificates class SslCertificate < Fog::Model identity :name attribute :id attribute :creation_timestamp, :aliases => "creationTimestamp" attribute :description attribute :self_link, :aliases => "selfLink" attribute :certificate attribute :private_key, :aliases => "privateKey" 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 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 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/models/ssl_certificate.rb |
fog-google-0.5.5 | lib/fog/compute/google/models/ssl_certificate.rb |