@rest_initialiser(cluster_init_check=True, version_check=True)
def execute(self, opts):
    (result, errors) = self.rest.list_buckets(extended=True)
    _exit_if_errors(errors)
    if (opts.output == 'json'):
        print(json.dumps(result))
    else:
        for bucket in result:
            print(f"{bucket['name']}")
            print(f" bucketType: {bucket['bucketType']}")
            print(f" numReplicas: {bucket['replicaNumber']}")
            print(f" ramQuota: {bucket['quota']['ram']}")
            print(f" ramUsed: {bucket['basicStats']['memUsed']}")
@rest_initialiser(cluster_init_check=True, version_check=True)
def execute(self, opts):
    (result, errors) = self.rest.list_buckets(extended=True)
    _exit_if_errors(errors)
    if (opts.output == 'json'):
        print(json.dumps(result))
    else:
        for bucket in result:
            print(f"{bucket['name']}")
            print(f" bucketType: {bucket['bucketType']}")
            print(f" numReplicas: {bucket['replicaNumber']}")
            print(f" ramQuota: {bucket['quota']['ram']}")
            print(f" ramUsed: {bucket['basicStats']['memUsed']}")