Class: Fog::Compute::Aliyun::SecurityGroupRules
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Aliyun::SecurityGroupRules
- Defined in:
- lib/fog/aliyun/models/compute/security_group_rules.rb
Instance Method Summary collapse
Instance Method Details
#get(security_group_id, options = {}) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/aliyun/models/compute/security_group_rules.rb', line 13 def get(security_group_id, = {}) data = Fog::JSON.decode(service.list_security_group_rules(security_group_id, ).body) self.security_group_id = data['SecurityGroupId'] = data['Permissions']['Permission'] .each do || ['SecurityGroupId'] = self.security_group_id end load() end |