Class: Fog::Compute::Google::SslCertificates
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Google::SslCertificates
- Defined in:
- lib/fog/compute/google/models/ssl_certificates.rb
Instance Method Summary collapse
Instance Method Details
#all(_filters = {}) ⇒ Object
17 18 19 20 |
# File 'lib/fog/compute/google/models/ssl_certificates.rb', line 17 def all(_filters = {}) data = service.list_ssl_certificates.to_h[:items] || [] load(data) end |
#get(identity) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/fog/compute/google/models/ssl_certificates.rb', line 7 def get(identity) if identity ssl_certificate = service.get_ssl_certificate(identity).to_h return new(ssl_certificate) end rescue ::Google::Apis::ClientError => e raise e unless e.status_code == 404 nil end |