Exemplo n.º 1
0
def regions():
    """
    Get all available regions for the Loadbalancer service.

    :rtype: list
    :return: A list of :class:`niftycloud.RegionInfo` instances
    """
    return get_regions('loadbalancer', connection_cls=LoadbalancerConnection)
Exemplo n.º 2
0
def regions():
    """
    Get all available regions for the Amazon Support service.

    :rtype: list
    :return: A list of :class:`niftycloud.regioninfo.RegionInfo`
    """
    from niftycloud.support.layer1 import SupportConnection
    return get_regions('support', connection_cls=SupportConnection)
Exemplo n.º 3
0
def regions(**kw_params):
    """
    Get all available regions for the Computing service.
    You may pass any of the arguments accepted by the ComputingConnection
    object's constructor as keyword arguments and they will be
    passed along to the ComputingConnection object.

    :rtype: list
    :return: A list of :class:`niftycloud.computing.regioninfo.RegionInfo`
    """
    return get_regions('computing', connection_cls=ComputingConnection)