@utils.arg('-p', '--policy', metavar='<POLICY>', required=True,
           help=_('ID or name of policy to be updated.'))
@utils.arg('-e', '--enabled', metavar='<BOOLEAN>',
           help=_('Whether the policy should be enabled.'))
@utils.arg('id', metavar='<NAME or ID>',
           help=_('Name or ID of cluster to operate on.'))
def do_cluster_policy_update(service, args):
    show_deprecated('senlin cluster-policy-update',
                    'openstack cluster policy binding update')
    kwargs = {
        'enabled': args.enabled,
    }

    resp = service.cluster_update_policy(args.id, args.policy, **kwargs)
    print('Request accepted by action: %s' % resp['action'])
Returns the number of original observations of the linkage matrix
dataset/ETHPy150Open openstack/python-senlinclient/senlinclient/v1/shell.py/do_cluster_policy_update--crossover with--dataset/ETHPy150Open scipy/scipy/scipy/cluster/hierarchy.py/num_obs_linkage