lib/fog/oraclecloud/models/compute/security_applications.rb in fog-oraclecloud-0.1.15 vs lib/fog/oraclecloud/models/compute/security_applications.rb in fog-oraclecloud-0.1.16
- old
+ new
@@ -1,15 +1,19 @@
-require 'fog/core/collection'
-
module Fog
module Compute
class OracleCloud
class SecurityApplications < Fog::Collection
model Fog::Compute::OracleCloud::SecurityApplication
def all
data = service.list_security_applications().body['result']
+ public_data = service.list_security_applications('public').body['result']
+ load(data.concat(public_data))
+ end
+
+ def all_public
+ data = service.list_security_applications('public').body['result']
load(data)
end
def get(name)
data = service.get_security_application(name).body