Sets the certificate metadata from the JSON object that contains it.
It is used by fog’s attribute setting and should not be used for attempting to set a certificate on a load balancer.
@private
# File lib/fog/brightbox/models/compute/load_balancer.rb, line 87 def certificate=(cert_metadata) if cert_metadata attributes[:certificate_valid_from] = time_or_original(cert_metadata["valid_from"]) attributes[:certificate_expires_at] = time_or_original(cert_metadata["expires_at"]) attributes[:certificate_issuer] = cert_metadata["issuer"] attributes[:certificate_subject] = cert_metadata["subject"] else attributes[:certificate_valid_from] = nil attributes[:certificate_expires_at] = nil attributes[:certificate_issuer] = nil attributes[:certificate_subject] = nil end end
SSL cert metadata for expiration of certificate
# File lib/fog/brightbox/models/compute/load_balancer.rb, line 72 def certificate_expires_at attributes[:certificate_expires_at] end
SSL cert metadata for subject
# File lib/fog/brightbox/models/compute/load_balancer.rb, line 77 def certificate_subject attributes[:certificate_subject] end
# File lib/fog/brightbox/models/compute/load_balancer.rb, line 65 def destroy requires :identity service.destroy_load_balancer(identity) true end
# File lib/fog/brightbox/models/compute/load_balancer.rb, line 43 def ready? status == 'active' end
# File lib/fog/brightbox/models/compute/load_balancer.rb, line 47 def save raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if persisted? requires :nodes, :listeners, :healthcheck options = { :nodes => nodes, :listeners => listeners, :healthcheck => healthcheck, :policy => policy, :name => name, :buffer_size => buffer_size, :certificate_pem => certificate_pem, :certificate_private_key => certificate_private_key }.delete_if { |k, v| v.nil? || v == "" } data = service.create_load_balancer(options) merge_attributes(data) true end
Generated with the Darkfish Rdoc Generator 2.