Exemplo n.º 1
0
def ensure_volume_access_right_exists( principal_id, volume_name, caps, allowed_gateways=[] ):
    """
    Ensure that a particular user has particular access to a particular volume.
    Do not try to ensure that the user or volume exist, however!
    """
    client = connect_syndicate()
    return syndicate_provisioning.ensure_volume_access_right_exists( client, principal_id, volume_name, caps, allowed_gateways )
Exemplo n.º 2
0
def ensure_volume_access_right_exists( user_email, volume_name, caps, allowed_gateways=[msconfig.GATEWAY_TYPE_UG] ):
    """
    Ensure that a particular user has particular access to a particular volume.
    Do not try to ensure that the user or volume exist, however!
    """
    client = connect_syndicate()
    return syndicate_provisioning.ensure_volume_access_right_exists( client, user_email, volume_name, caps, allowed_gateways )
Exemplo n.º 3
0
def ensure_volume_access_right_exists(
        principal_id,
        volume_name,
        caps,
        allowed_gateways=[msconfig.GATEWAY_TYPE_UG]):
    """
    Ensure that a particular user has particular access to a particular volume.
    Do not try to ensure that the user or volume exist, however!
    """
    client = connect_syndicate()
    return syndicate_provisioning.ensure_volume_access_right_exists(
        client, principal_id, volume_name, caps, allowed_gateways)