Class: Fog::Compute::QingCloud::SecurityGroupRules
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::QingCloud::SecurityGroupRules
- Defined in:
- lib/fog/qingcloud/models/compute/security_group_rules.rb
Instance Method Summary collapse
Instance Method Details
#all(filters = self.filters) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/fog/qingcloud/models/compute/security_group_rules.rb', line 13 def all(filters = self.filters) group_id = filters['group-id'] rule_id = filters['rule-id'] direction = filters['direction'] direction = [:ingress, :egress].index(direction) data = service.describe_security_group_rules(group_id, rule_id, direction).body load(data['security_group_rule_set']) end |