l.c.d.o.OpenStackSecurityGroupRule(object) : class documentation

Part of libcloud.compute.drivers.openstack View Source View In Hierarchy

A Rule of a Security Group.
Method __init__ Constructor.
Method __repr__ Undocumented
def __init__(self, id, parent_group_id, ip_protocol, from_port, to_port, driver, ip_range=None, group=None, tenant_id=None, extra=None): (source)
Constructor.

@keyword    id: Rule id.
@type       id: C{str}

@keyword    parent_group_id: ID of the parent security group.
@type       parent_group_id: C{str}

@keyword    ip_protocol: IP Protocol (icmp, tcp, udp, etc).
@type       ip_protocol: C{str}

@keyword    from_port: Port at start of range.
@type       from_port: C{int}

@keyword    to_port: Port at end of range.
@type       to_port: C{int}

@keyword    ip_range: CIDR for address range.
@type       ip_range: C{str}

@keyword    group: Name of a source security group to apply to rule.
@type       group: C{str}

@keyword    tenant_id: Owner of the security group.
@type       tenant_id: C{str}

@keyword    extra: Extra attributes associated with this rule.
@type       extra: C{dict}
def __repr__(self): (source)
Undocumented
API Documentation for libcloud, generated by pydoctor at 2013-02-18 10:41:20.