Sha256: 4fa8e5469c2861236a2075f0c65677a7ec9846b460eb2f3c8a0e8000f558f530
Contents?: true
Size: 733 Bytes
Versions: 6
Compression:
Stored size: 733 Bytes
Contents
require 'fog/core/collection' require 'fog/aliyun/models/compute/security_group_rule' module Fog module Compute class Aliyun class SecurityGroupRules < Fog::Collection model Fog::Compute::Aliyun::SecurityGroupRule attribute :security_group_id def get(security_group_id, options = {}) data = Fog::JSON.decode(service.list_security_group_rules(security_group_id, options).body) self.security_group_id = data['SecurityGroupId'] permissions = data['Permissions']['Permission'] permissions.each do |permission| permission['SecurityGroupId'] = self.security_group_id end load(permissions) end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems