    # File lib/fog/hp/requests/compute/create_security_group_rule.rb, line 45
            def create_security_group_rule(parent_group_id, ip_protocol, from_port, to_port, cidr, group_id=nil)
              response = Excon::Response.new
              group = self.data[:security_groups][parent_group_id]
              if group
                group['rules'] ||= []
                response.status = 200
                data = {
                  'from_port'       => from_port.to_i,
                  'group'           => {},
                  'ip_protocol'     => ip_protocol,
                  'to_port'         => to_port.to_i,
                  'parent_group_id' => parent_group_id,
                  'ip_range'        => {
                    'cidr' => cidr
                  },
                  'id'              => Fog::Mock.random_numbers(3).to_i
                }
                group['rules'][data['id']] = data

                response.body = { 'security_group_rule' => data }
                response
              else
                raise Fog::Compute::HP::NotFound
              end
            end