)]}'
{"README.rst":[{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"ebfa1275ee0453494d2d3c5d155dfd3ab5e8caf2","unresolved":false,"context_lines":[{"line_number":8,"context_line":"Installation"},{"line_number":9,"context_line":"------------"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"The client is"},{"line_number":12,"context_line":"`pip installable \u003chttps://pypi.python.org/pypi/python-barbicanclient\u003e`__ as"},{"line_number":13,"context_line":"follows:"},{"line_number":14,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_e2c37b36","line":11,"updated":"2015-08-06 18:29:11.000000000","message":"Good work making the lines shorter!!","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"5c3a026645ff57810029d60bea51a35b293a5377","unresolved":false,"context_lines":[{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    Commands:"},{"line_number":157,"context_line":"      acl add        Add ACL users to a secret or container as identified by its href."},{"line_number":158,"context_line":"      acl delete     Delete ACLs for a secret or container as identified by its href."},{"line_number":159,"context_line":"      acl get        Retrieve ACLs for a secret or container by providing its href."},{"line_number":160,"context_line":"      acl remove     Remove ACL users from a secret or container as identified by its href."},{"line_number":161,"context_line":"      acl submit     Submit ACL on a secret or container as identified by its href."}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa1b9901_d121e6b5","line":158,"updated":"2015-08-18 15:12:32.000000000","message":"I don\u0027t think we \u0027delete\u0027 ACLs, but rather \u0027remove\u0027 them per #160. So this line/command is not needed.","commit_id":"15dd91891af53fe5f04bb39e0195c4012a941290"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"e5a90c0cee54ab6fc3f4dc004098a5d145faba86","unresolved":false,"context_lines":[{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    Commands:"},{"line_number":157,"context_line":"      acl add        Add ACL users to a secret or container as identified by its href."},{"line_number":158,"context_line":"      acl delete     Delete ACLs for a secret or container as identified by its href."},{"line_number":159,"context_line":"      acl get        Retrieve ACLs for a secret or container by providing its href."},{"line_number":160,"context_line":"      acl remove     Remove ACL users from a secret or container as identified by its href."},{"line_number":161,"context_line":"      acl submit     Submit ACL on a secret or container as identified by its href."}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa1b9901_12b36451","line":158,"in_reply_to":"fa1b9901_d121e6b5","updated":"2015-08-20 15:48:00.000000000","message":"Modified cli commands in next patch.","commit_id":"15dd91891af53fe5f04bb39e0195c4012a941290"},{"author":{"_account_id":15274,"name":"Christopher Solis","email":"cnsolis@us.ibm.com","username":"cplusone"},"change_message_id":"6aa467d7f32dee22de5e82c1cb54b8272565f29b","unresolved":false,"context_lines":[{"line_number":153,"context_line":"      --os-key \u003ckey\u003e        Defaults to env[OS_KEY]."},{"line_number":154,"context_line":"      --timeout \u003cseconds\u003e   Set request timeout (in seconds)."},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    Commands:"},{"line_number":157,"context_line":"      acl add-user      Add ACL users to a secret or container as identified by its href."},{"line_number":158,"context_line":"      acl delete        Delete ACLs for a secret or container as identified by its href."},{"line_number":159,"context_line":"      acl get           Retrieve ACLs for a secret or container by providing its href."}],"source_content_type":"text/x-rst","patch_set":7,"id":"fa1b9901_ff7ee2ad","line":156,"updated":"2015-08-25 21:46:40.000000000","message":"Looking at other clients it looks like they put the resource before the action being done upon it. e.g. \"user-add\", \"user-remove\".","commit_id":"7eff7ce67c393ad4656b7db87d9618b98ee8b05b"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"8fb612c61cbc468eed22709d0929eb76e3c74ae5","unresolved":false,"context_lines":[{"line_number":153,"context_line":"      --os-key \u003ckey\u003e        Defaults to env[OS_KEY]."},{"line_number":154,"context_line":"      --timeout \u003cseconds\u003e   Set request timeout (in seconds)."},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    Commands:"},{"line_number":157,"context_line":"      acl add-user      Add ACL users to a secret or container as identified by its href."},{"line_number":158,"context_line":"      acl delete        Delete ACLs for a secret or container as identified by its href."},{"line_number":159,"context_line":"      acl get           Retrieve ACLs for a secret or container by providing its href."}],"source_content_type":"text/x-rst","patch_set":7,"id":"fa1b9901_9a0a4925","line":156,"in_reply_to":"fa1b9901_ff7ee2ad","updated":"2015-08-26 04:58:23.000000000","message":"I did look into openstack client earlier and noticed same that resource is used first. From barbican perspective, here resource is \u0027acl\u0027 and add-user is an action on that resource.\n\nIts quite similar to this command in openstack client when user is added to keystone group (\u0027osc group add user\u0027).\n\nhttps://github.com/openstack/python-openstackclient/blob/master/setup.cfg#L223.","commit_id":"7eff7ce67c393ad4656b7db87d9618b98ee8b05b"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"5aab26f51aa66965fb3972b2f27603beda7d1455","unresolved":false,"context_lines":[{"line_number":154,"context_line":"      --timeout \u003cseconds\u003e   Set request timeout (in seconds)."},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    Commands:"},{"line_number":157,"context_line":"      acl add-user      Add ACL users to a secret or container as identified by its href."},{"line_number":158,"context_line":"      acl delete        Delete ACLs for a secret or container as identified by its href."},{"line_number":159,"context_line":"      acl get           Retrieve ACLs for a secret or container by providing its href."},{"line_number":160,"context_line":"      acl remove-user   Remove ACL users from a secret or container as identified by its href."}],"source_content_type":"text/x-rst","patch_set":8,"id":"da20952f_29c25986","line":157,"updated":"2015-08-27 07:40:59.000000000","message":"Same comment as Christopher Solis did in the past patchset. lets not use dashes here. We also had a conversation about this with the openstacksdk people and the use of dashes was discouraged.","commit_id":"50c984304a14a1584c121896796b401e91bd9061"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"59c99c8e2dc39611099324bc440004fd652f9b92","unresolved":false,"context_lines":[{"line_number":154,"context_line":"      --timeout \u003cseconds\u003e   Set request timeout (in seconds)."},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    Commands:"},{"line_number":157,"context_line":"      acl add-user      Add ACL users to a secret or container as identified by its href."},{"line_number":158,"context_line":"      acl delete        Delete ACLs for a secret or container as identified by its href."},{"line_number":159,"context_line":"      acl get           Retrieve ACLs for a secret or container by providing its href."},{"line_number":160,"context_line":"      acl remove-user   Remove ACL users from a secret or container as identified by its href."}],"source_content_type":"text/x-rst","patch_set":8,"id":"da20952f_78e43de0","line":157,"in_reply_to":"da20952f_29c25986","updated":"2015-08-28 19:02:42.000000000","message":"Okay. Will change the action to \u0027user add\u0027 and \u0027user remove\u0027","commit_id":"50c984304a14a1584c121896796b401e91bd9061"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"7ceec1afa4252e7288904ba458b691e2e778f996","unresolved":false,"context_lines":[{"line_number":175,"context_line":"      secret get        Retrieve a secret by providing its URI."},{"line_number":176,"context_line":"      secret list       List secrets."},{"line_number":177,"context_line":"      secret store      Store a secret in Barbican."},{"line_number":178,"context_line":"\t  secret update\t\tUpdate a secret with no payload in Barbican."},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"* License: Apache License, Version 2.0"},{"line_number":181,"context_line":"* Documentation: http://docs.openstack.org/developer/python-barbicanclient"}],"source_content_type":"text/x-rst","patch_set":12,"id":"da20952f_9ccc9c36","line":178,"updated":"2015-09-11 07:51:37.000000000","message":"Watch out with the tabs","commit_id":"07e81813714ed53f4836666f1fa1f047b451edfa"}],"barbicanclient/barbican_cli/acls.py":[{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"ebfa1275ee0453494d2d3c5d155dfd3ab5e8caf2","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from barbicanclient import acls"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"class ArgMixin(object):"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def add_ref_args(self, parser):"},{"line_number":27,"context_line":"        group \u003d parser.add_mutually_exclusive_group(required\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_626c4b08","line":24,"updated":"2015-08-06 18:29:11.000000000","message":"Add class description","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"6228ffeb9e8f8725faccc8e48b2f67fb06582537","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from barbicanclient import acls"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"class ArgMixin(object):"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def add_ref_args(self, parser):"},{"line_number":27,"context_line":"        group \u003d parser.add_mutually_exclusive_group(required\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_605d2346","line":24,"in_reply_to":"1a4dcd0f_626c4b08","updated":"2015-08-06 19:18:04.000000000","message":"Its simple mixin thinking name is self-explanatory. Will add description.","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"ebfa1275ee0453494d2d3c5d155dfd3ab5e8caf2","unresolved":false,"context_lines":[{"line_number":33,"context_line":"        group.add_argument(\u0027--container\u0027, \u0027-t\u0027,"},{"line_number":34,"context_line":"                           default\u003dNone, dest\u003d\u0027container_ref\u0027,"},{"line_number":35,"context_line":"                           help\u003d\u0027The URI reference for the container.\u0027)"},{"line_number":36,"context_line":"        # group.add_argument(\u0027URI\u0027,"},{"line_number":37,"context_line":"        #                   nargs\u003d\u0027?\u0027,"},{"line_number":38,"context_line":"        #                   help\u003d\u0027The URI reference for the secret or \u0027"},{"line_number":39,"context_line":"        #                   \u0027container.\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_a215739c","line":36,"updated":"2015-08-06 18:29:11.000000000","message":"Remove this comment","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"6228ffeb9e8f8725faccc8e48b2f67fb06582537","unresolved":false,"context_lines":[{"line_number":33,"context_line":"        group.add_argument(\u0027--container\u0027, \u0027-t\u0027,"},{"line_number":34,"context_line":"                           default\u003dNone, dest\u003d\u0027container_ref\u0027,"},{"line_number":35,"context_line":"                           help\u003d\u0027The URI reference for the container.\u0027)"},{"line_number":36,"context_line":"        # group.add_argument(\u0027URI\u0027,"},{"line_number":37,"context_line":"        #                   nargs\u003d\u0027?\u0027,"},{"line_number":38,"context_line":"        #                   help\u003d\u0027The URI reference for the secret or \u0027"},{"line_number":39,"context_line":"        #                   \u0027container.\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_80114f5f","line":36,"in_reply_to":"1a4dcd0f_a215739c","updated":"2015-08-06 19:18:04.000000000","message":"Plan to remove once doc review is done as want to see if URI arg comes up in discussion.","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"ebfa1275ee0453494d2d3c5d155dfd3ab5e8caf2","unresolved":false,"context_lines":[{"line_number":63,"context_line":"    def identity_ref_args_and_validate(self, args):"},{"line_number":64,"context_line":"        entity_ref \u003d None"},{"line_number":65,"context_line":"        arg_ref_type \u003d None"},{"line_number":66,"context_line":"        # if args.URI:"},{"line_number":67,"context_line":"        #    entity_ref \u003d args.URI"},{"line_number":68,"context_line":"        if args.secret_ref:"},{"line_number":69,"context_line":"            entity_ref \u003d args.secret_ref"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_820e378a","line":66,"updated":"2015-08-06 18:29:11.000000000","message":"Remove this comment","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"6228ffeb9e8f8725faccc8e48b2f67fb06582537","unresolved":false,"context_lines":[{"line_number":63,"context_line":"    def identity_ref_args_and_validate(self, args):"},{"line_number":64,"context_line":"        entity_ref \u003d None"},{"line_number":65,"context_line":"        arg_ref_type \u003d None"},{"line_number":66,"context_line":"        # if args.URI:"},{"line_number":67,"context_line":"        #    entity_ref \u003d args.URI"},{"line_number":68,"context_line":"        if args.secret_ref:"},{"line_number":69,"context_line":"            entity_ref \u003d args.secret_ref"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_1be28e2f","line":66,"in_reply_to":"1a4dcd0f_820e378a","updated":"2015-08-06 19:18:04.000000000","message":"Same as reply on line #36","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"ebfa1275ee0453494d2d3c5d155dfd3ab5e8caf2","unresolved":false,"context_lines":[{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def take_action(self, args):"},{"line_number":100,"context_line":"        entity_ref \u003d self.identity_ref_args_and_validate(args)"},{"line_number":101,"context_line":"        entity_ref \u003d entity_ref.rstrip(\u0027/\u0027)  # remove trailing slashes if there"},{"line_number":102,"context_line":"        acl_ref \u003d \"{0}/{1}\".format(entity_ref, acls.ACL._entity)"},{"line_number":103,"context_line":"        self.app.client.acls.delete(acl_ref)"},{"line_number":104,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_0249c7b6","line":101,"updated":"2015-08-06 18:29:11.000000000","message":"remove this comment","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"6228ffeb9e8f8725faccc8e48b2f67fb06582537","unresolved":false,"context_lines":[{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def take_action(self, args):"},{"line_number":100,"context_line":"        entity_ref \u003d self.identity_ref_args_and_validate(args)"},{"line_number":101,"context_line":"        entity_ref \u003d entity_ref.rstrip(\u0027/\u0027)  # remove trailing slashes if there"},{"line_number":102,"context_line":"        acl_ref \u003d \"{0}/{1}\".format(entity_ref, acls.ACL._entity)"},{"line_number":103,"context_line":"        self.app.client.acls.delete(acl_ref)"},{"line_number":104,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_fbbd6202","line":101,"in_reply_to":"1a4dcd0f_0249c7b6","updated":"2015-08-06 19:18:04.000000000","message":"Did not see any pep8 error. Not sure why its concern. Can you please clarify.","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"3fce1180c2b55abcc5c79d776208f098989f42e5","unresolved":false,"context_lines":[{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def take_action(self, args):"},{"line_number":100,"context_line":"        entity_ref \u003d self.identity_ref_args_and_validate(args)"},{"line_number":101,"context_line":"        entity_ref \u003d entity_ref.rstrip(\u0027/\u0027)  # remove trailing slashes if there"},{"line_number":102,"context_line":"        acl_ref \u003d \"{0}/{1}\".format(entity_ref, acls.ACL._entity)"},{"line_number":103,"context_line":"        self.app.client.acls.delete(acl_ref)"},{"line_number":104,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_7b8152fa","line":101,"in_reply_to":"1a4dcd0f_fbbd6202","updated":"2015-08-06 19:25:42.000000000","message":"I guess this is fine since user may not know what rstrip does.\nGo to: https://www.python.org/dev/peps/pep-0008/#inline-comments\nand seach \u0027inline\u0027","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"ebfa1275ee0453494d2d3c5d155dfd3ab5e8caf2","unresolved":false,"context_lines":[{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    def get_parser(self, prog_name):"},{"line_number":110,"context_line":"        parser \u003d super(GetACLs, self).get_parser(prog_name)"},{"line_number":111,"context_line":"        # del parser._option_string_actions[\u0027-c\u0027]"},{"line_number":112,"context_line":"        self.add_ref_args(parser)"},{"line_number":113,"context_line":"        return parser"},{"line_number":114,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_e21ffbb4","line":111,"updated":"2015-08-06 18:29:11.000000000","message":"remove this comment","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"6228ffeb9e8f8725faccc8e48b2f67fb06582537","unresolved":false,"context_lines":[{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    def get_parser(self, prog_name):"},{"line_number":110,"context_line":"        parser \u003d super(GetACLs, self).get_parser(prog_name)"},{"line_number":111,"context_line":"        # del parser._option_string_actions[\u0027-c\u0027]"},{"line_number":112,"context_line":"        self.add_ref_args(parser)"},{"line_number":113,"context_line":"        return parser"},{"line_number":114,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_5b39f6d5","line":111,"in_reply_to":"1a4dcd0f_e21ffbb4","updated":"2015-08-06 19:18:04.000000000","message":"Will remove in next patch.","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"ebfa1275ee0453494d2d3c5d155dfd3ab5e8caf2","unresolved":false,"context_lines":[{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def take_action(self, args):"},{"line_number":116,"context_line":"        entity_ref \u003d self.identity_ref_args_and_validate(args)"},{"line_number":117,"context_line":"        entity_ref \u003d entity_ref.rstrip(\u0027/\u0027)  # remove trailing slashes if there"},{"line_number":118,"context_line":"        acl_ref \u003d \"{0}/{1}\".format(entity_ref, acls.ACL._entity)"},{"line_number":119,"context_line":"        acls_list \u003d self.app.client.acls.get(acl_ref)"},{"line_number":120,"context_line":"        return acls.ACLFormatter._list_objects(acls_list)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_6259ab8d","line":117,"updated":"2015-08-06 18:29:11.000000000","message":"Move this comment to being in a single line","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"6228ffeb9e8f8725faccc8e48b2f67fb06582537","unresolved":false,"context_lines":[{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def take_action(self, args):"},{"line_number":116,"context_line":"        entity_ref \u003d self.identity_ref_args_and_validate(args)"},{"line_number":117,"context_line":"        entity_ref \u003d entity_ref.rstrip(\u0027/\u0027)  # remove trailing slashes if there"},{"line_number":118,"context_line":"        acl_ref \u003d \"{0}/{1}\".format(entity_ref, acls.ACL._entity)"},{"line_number":119,"context_line":"        acls_list \u003d self.app.client.acls.get(acl_ref)"},{"line_number":120,"context_line":"        return acls.ACLFormatter._list_objects(acls_list)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_9b70dea5","line":117,"in_reply_to":"1a4dcd0f_6259ab8d","updated":"2015-08-06 19:18:04.000000000","message":"Did not see any pep8 error. Not sure why its concern. Can you please clarify.","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"3fce1180c2b55abcc5c79d776208f098989f42e5","unresolved":false,"context_lines":[{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def take_action(self, args):"},{"line_number":116,"context_line":"        entity_ref \u003d self.identity_ref_args_and_validate(args)"},{"line_number":117,"context_line":"        entity_ref \u003d entity_ref.rstrip(\u0027/\u0027)  # remove trailing slashes if there"},{"line_number":118,"context_line":"        acl_ref \u003d \"{0}/{1}\".format(entity_ref, acls.ACL._entity)"},{"line_number":119,"context_line":"        acls_list \u003d self.app.client.acls.get(acl_ref)"},{"line_number":120,"context_line":"        return acls.ACLFormatter._list_objects(acls_list)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_bbb91ace","line":117,"in_reply_to":"1a4dcd0f_9b70dea5","updated":"2015-08-06 19:25:42.000000000","message":"See Line 101","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":16046,"name":"Fernando Diaz","email":"diazjf@us.ibm.com","username":"diazjf"},"change_message_id":"ebfa1275ee0453494d2d3c5d155dfd3ab5e8caf2","unresolved":false,"context_lines":[{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    def get_parser(self, prog_name):"},{"line_number":127,"context_line":"        parser \u003d super(SetACL, self).get_parser(prog_name)"},{"line_number":128,"context_line":"        # del parser._option_string_actions[\u0027-c\u0027]"},{"line_number":129,"context_line":"        self.add_ref_args(parser)"},{"line_number":130,"context_line":"        self.add_per_acl_args(parser)"},{"line_number":131,"context_line":"        return parser"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_021b07cb","line":128,"updated":"2015-08-06 18:29:11.000000000","message":"remove this comment","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"6228ffeb9e8f8725faccc8e48b2f67fb06582537","unresolved":false,"context_lines":[{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    def get_parser(self, prog_name):"},{"line_number":127,"context_line":"        parser \u003d super(SetACL, self).get_parser(prog_name)"},{"line_number":128,"context_line":"        # del parser._option_string_actions[\u0027-c\u0027]"},{"line_number":129,"context_line":"        self.add_ref_args(parser)"},{"line_number":130,"context_line":"        self.add_per_acl_args(parser)"},{"line_number":131,"context_line":"        return parser"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_dba186f9","line":128,"in_reply_to":"1a4dcd0f_021b07cb","updated":"2015-08-06 19:18:04.000000000","message":"Will remove in next patch.","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"5c3a026645ff57810029d60bea51a35b293a5377","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        return acls.ACLFormatter._list_objects(acl_entity.operation_acls)"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"class DeleteACLs(command.Command, ArgMixin):"},{"line_number":80,"context_line":"    \"\"\"Delete ACLs for a secret or container as identified by its href.\"\"\""},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    def get_parser(self, prog_name):"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa1b9901_3c4ef96f","line":79,"updated":"2015-08-18 15:12:32.000000000","message":"Per previous comment, I think we only need the \u0027RemoveACLs\u0027 class below.","commit_id":"15dd91891af53fe5f04bb39e0195c4012a941290"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"45866d7b62c08bf6caaf3fbb81e3029738462688","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        return acls.ACLFormatter._list_objects(acl_entity.operation_acls)"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"class DeleteACLs(command.Command, ArgMixin):"},{"line_number":80,"context_line":"    \"\"\"Delete ACLs for a secret or container as identified by its href.\"\"\""},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    def get_parser(self, prog_name):"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa1b9901_5af39c9e","line":79,"in_reply_to":"fa1b9901_3c4ef96f","updated":"2015-08-18 22:50:18.000000000","message":"This removes (or set to default setting) ACL settings added on a secret or container. Its different from remove behavior. Please see my reply below on # 186","commit_id":"15dd91891af53fe5f04bb39e0195c4012a941290"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"e5a90c0cee54ab6fc3f4dc004098a5d145faba86","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        return acls.ACLFormatter._list_objects(acl_entity.operation_acls)"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"class DeleteACLs(command.Command, ArgMixin):"},{"line_number":80,"context_line":"    \"\"\"Delete ACLs for a secret or container as identified by its href.\"\"\""},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    def get_parser(self, prog_name):"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa1b9901_b20b98d5","line":79,"in_reply_to":"fa1b9901_5af39c9e","updated":"2015-08-20 15:48:00.000000000","message":"Delete ACL is still needed. Modified add/remove to add-user/remove-user commands in next patch","commit_id":"15dd91891af53fe5f04bb39e0195c4012a941290"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"5c3a026645ff57810029d60bea51a35b293a5377","unresolved":false,"context_lines":[{"line_number":183,"context_line":"        return parser"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"    def take_action(self, args):"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"        \"\"\"Remove users from a secret or a container ACL defined in Barbican"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"        Provided users are removed from existing ACL users if there. If any of"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa1b9901_3c7a79f2","line":186,"updated":"2015-08-18 15:12:32.000000000","message":"So this action just operates on the user list within an operation. If the operation is not specified though, I think this could just delete/remove the entire ACL setting on the target secret/container.\n\nThis would require that --operation be provided always though, rather than defaulting to \u0027read\u0027.\n\nSo this is similar to the Python client approach, but would folks think this double mode is dangerous, so the explicit \u0027delete\u0027 to remove ACLs should be distinct from the remove user action? \n\nIf so, then I\u0027d suggest at least changing the name of this class to RemoveUsersACL or some such. Also, I think it\u0027s confusing to have a \u0027delete\u0027 and \u0027remove\u0027 command...maybe use \u0027remove-user\u0027 for \u0027remove\u0027 instead?\n\nOr maybe do away with remove user altogether, and just allow the empty user list to be submitted to remove users?","commit_id":"15dd91891af53fe5f04bb39e0195c4012a941290"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"45866d7b62c08bf6caaf3fbb81e3029738462688","unresolved":false,"context_lines":[{"line_number":183,"context_line":"        return parser"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"    def take_action(self, args):"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"        \"\"\"Remove users from a secret or a container ACL defined in Barbican"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"        Provided users are removed from existing ACL users if there. If any of"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa1b9901_da26cc67","line":186,"in_reply_to":"fa1b9901_3c7a79f2","updated":"2015-08-18 22:50:18.000000000","message":"This action provides mechanism to remove some users from existing ACL users. I mean if read ACL has user u1, u2 and u3. With this command, cli client can remove u2 user from the ACL list. \n\nIt seems that might be more frequent use case, where clients add or remove few users from existing ACL list instead of completely remove all users at once and then add modified users list.\n\nI have tried to be clear in docs about difference between delete and add/remove commands. May be for delete, I can say \u0027clear-all\u0027 command if its clear. \u0027add/remove\u0027 command modifies existing users ACL but they also allow mechanism to flip project-access flag without changing any other data. If there is suggestion for better names, please let me know.\n\nOperation is an optional argument so can be provided by client. Currently only supported operation is \u0027read\u0027 that\u0027s why its not mandatory.","commit_id":"15dd91891af53fe5f04bb39e0195c4012a941290"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"e5a90c0cee54ab6fc3f4dc004098a5d145faba86","unresolved":false,"context_lines":[{"line_number":183,"context_line":"        return parser"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"    def take_action(self, args):"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"        \"\"\"Remove users from a secret or a container ACL defined in Barbican"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"        Provided users are removed from existing ACL users if there. If any of"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa1b9901_72df403a","line":186,"in_reply_to":"fa1b9901_da26cc67","updated":"2015-08-20 15:48:00.000000000","message":"Renamed class in next patch.","commit_id":"15dd91891af53fe5f04bb39e0195c4012a941290"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"5aab26f51aa66965fb3972b2f27603beda7d1455","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":8,"id":"da20952f_89ba85e0","updated":"2015-08-27 07:40:59.000000000","message":"It\u0027s a bit weird for me that while some \"take_action\" functions have quite proper documentation, others do not. Can you add documentation to the ones that are missing it?","commit_id":"50c984304a14a1584c121896796b401e91bd9061"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"215179bc882415294f582444cd22a8f30b07a135","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":8,"id":"da20952f_4a867f66","in_reply_to":"da20952f_89ba85e0","updated":"2015-08-27 16:56:57.000000000","message":"I added documentation where some little bit logic is involved in specific action. I saw missing ones as short and self-explanatory. Will add doc in them as well.","commit_id":"50c984304a14a1584c121896796b401e91bd9061"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"5aab26f51aa66965fb3972b2f27603beda7d1455","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        group.add_argument(\u0027--project-access\u0027,"},{"line_number":40,"context_line":"                           dest\u003d\u0027project_access\u0027,"},{"line_number":41,"context_line":"                           action\u003d\u0027store_true\u0027,"},{"line_number":42,"context_line":"                           default\u003dNone,"},{"line_number":43,"context_line":"                           help\u003d\u0027Flag to enable project access behavior.\u0027)"},{"line_number":44,"context_line":"        group.add_argument(\u0027--no-project-access\u0027,"},{"line_number":45,"context_line":"                           dest\u003d\u0027project_access\u0027,"}],"source_content_type":"text/x-python","patch_set":8,"id":"da20952f_490f8de1","line":42,"updated":"2015-08-27 07:40:59.000000000","message":"why is there a None as a default here? Wouldn\u0027t False make more sense?","commit_id":"50c984304a14a1584c121896796b401e91bd9061"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"215179bc882415294f582444cd22a8f30b07a135","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        group.add_argument(\u0027--project-access\u0027,"},{"line_number":40,"context_line":"                           dest\u003d\u0027project_access\u0027,"},{"line_number":41,"context_line":"                           action\u003d\u0027store_true\u0027,"},{"line_number":42,"context_line":"                           default\u003dNone,"},{"line_number":43,"context_line":"                           help\u003d\u0027Flag to enable project access behavior.\u0027)"},{"line_number":44,"context_line":"        group.add_argument(\u0027--no-project-access\u0027,"},{"line_number":45,"context_line":"                           dest\u003d\u0027project_access\u0027,"}],"source_content_type":"text/x-python","patch_set":8,"id":"da20952f_8a681789","line":42,"in_reply_to":"da20952f_490f8de1","updated":"2015-08-27 16:56:57.000000000","message":"project_access (dest) is expected to store True or  False value to indicate boolean input. Whereas None is used as default to indicate that no value is provided in command line.","commit_id":"50c984304a14a1584c121896796b401e91bd9061"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"5aab26f51aa66965fb3972b2f27603beda7d1455","unresolved":false,"context_lines":[{"line_number":43,"context_line":"                           help\u003d\u0027Flag to enable project access behavior.\u0027)"},{"line_number":44,"context_line":"        group.add_argument(\u0027--no-project-access\u0027,"},{"line_number":45,"context_line":"                           dest\u003d\u0027project_access\u0027,"},{"line_number":46,"context_line":"                           action\u003d\u0027store_false\u0027,"},{"line_number":47,"context_line":"                           help\u003d\u0027Flag to disable project access behavior.\u0027)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        parser.add_argument(\u0027--operation-type\u0027, \u0027-o\u0027,"}],"source_content_type":"text/x-python","patch_set":8,"id":"da20952f_29f7b9d4","line":46,"updated":"2015-08-27 07:40:59.000000000","message":"Should there be a default here?","commit_id":"50c984304a14a1584c121896796b401e91bd9061"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"215179bc882415294f582444cd22a8f30b07a135","unresolved":false,"context_lines":[{"line_number":43,"context_line":"                           help\u003d\u0027Flag to enable project access behavior.\u0027)"},{"line_number":44,"context_line":"        group.add_argument(\u0027--no-project-access\u0027,"},{"line_number":45,"context_line":"                           dest\u003d\u0027project_access\u0027,"},{"line_number":46,"context_line":"                           action\u003d\u0027store_false\u0027,"},{"line_number":47,"context_line":"                           help\u003d\u0027Flag to disable project access behavior.\u0027)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        parser.add_argument(\u0027--operation-type\u0027, \u0027-o\u0027,"}],"source_content_type":"text/x-python","patch_set":8,"id":"da20952f_0aeba7b1","line":46,"in_reply_to":"da20952f_29f7b9d4","updated":"2015-08-27 16:56:57.000000000","message":"If neither --project-access or --no-project-access field is provided, then default (None) from --project-access is used. So there is no default needed here.","commit_id":"50c984304a14a1584c121896796b401e91bd9061"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"5aab26f51aa66965fb3972b2f27603beda7d1455","unresolved":false,"context_lines":[{"line_number":51,"context_line":"                            dest\u003d\u0027operation_type\u0027, choices\u003d[\u0027read\u0027],"},{"line_number":52,"context_line":"                            help\u003d\u0027Type of Barbican operation ACL is set for\u0027)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def identity_ref_and_validate(self, acl_manager, args):"},{"line_number":55,"context_line":"        entity_ref \u003d args.URI"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"        entity \u003d acl_manager.create(entity_ref)"}],"source_content_type":"text/x-python","patch_set":8,"id":"da20952f_a93189a4","line":54,"updated":"2015-08-27 07:40:59.000000000","message":"This function name is not very descriptive.","commit_id":"50c984304a14a1584c121896796b401e91bd9061"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"215179bc882415294f582444cd22a8f30b07a135","unresolved":false,"context_lines":[{"line_number":51,"context_line":"                            dest\u003d\u0027operation_type\u0027, choices\u003d[\u0027read\u0027],"},{"line_number":52,"context_line":"                            help\u003d\u0027Type of Barbican operation ACL is set for\u0027)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def identity_ref_and_validate(self, acl_manager, args):"},{"line_number":55,"context_line":"        entity_ref \u003d args.URI"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"        entity \u003d acl_manager.create(entity_ref)"}],"source_content_type":"text/x-python","patch_set":8,"id":"da20952f_ea351346","line":54,"in_reply_to":"da20952f_a93189a4","updated":"2015-08-27 16:56:57.000000000","message":"Okay. Will try to be more creative here and change it in next patch.","commit_id":"50c984304a14a1584c121896796b401e91bd9061"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"7ceec1afa4252e7288904ba458b691e2e778f996","unresolved":false,"context_lines":[{"line_number":33,"context_line":"        parser.add_argument(\u0027--users\u0027, \u0027-u\u0027,"},{"line_number":34,"context_line":"                            default\u003dNone, nargs\u003d\u0027?\u0027,"},{"line_number":35,"context_line":"                            help\u003d\u0027Keystone userid(s) for ACL. \u0027"},{"line_number":36,"context_line":"                            \u0027Provide comma separated multiple ids.\u0027)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"        group \u003d parser.add_mutually_exclusive_group()"},{"line_number":39,"context_line":"        group.add_argument(\u0027--project-access\u0027,"}],"source_content_type":"text/x-python","patch_set":12,"id":"da20952f_774d2371","line":36,"updated":"2015-09-11 07:51:37.000000000","message":"It would be better if you use action\u003d\u0027append\u0027 and so you could specify multiple users through bash without having to deal with string operations yourself.\n\nSo you would be able to do this\n\nbarbican \u003coperation\u003e --user user1 --user user2 ...\n\nWhich is also equivalent in bash to:\n\nbarbican \u003coperation\u003e --user\u003d{user1,user2} ...\n\nSo, in summary, I recommend letting the shell do it\u0027s thing and focus on simplicity in the patch.\n\nAs an additional thing it would be storing an empty list if no user is given, so there need to be proper checks for that.","commit_id":"07e81813714ed53f4836666f1fa1f047b451edfa"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"7ceec1afa4252e7288904ba458b691e2e778f996","unresolved":false,"context_lines":[{"line_number":192,"context_line":"                    server_acl.project_access \u003d input_acl.project_access"},{"line_number":193,"context_line":"                # if input data has users, add it to existing users list"},{"line_number":194,"context_line":"                if input_acl.users is not None:"},{"line_number":195,"context_line":"                    server_acl.users.extend(input_acl.users)"},{"line_number":196,"context_line":"            # provided input operation_type does not exist in server entity"},{"line_number":197,"context_line":"            else:"},{"line_number":198,"context_line":"                server_entity.add_operation_acl("}],"source_content_type":"text/x-python","patch_set":12,"id":"da20952f_97eeb720","line":195,"updated":"2015-09-11 07:51:37.000000000","message":"This would also be more simple if the users are already given as a list","commit_id":"07e81813714ed53f4836666f1fa1f047b451edfa"}],"doc/source/cli_usage.rst":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"70b3c0aaa987bd5813abc6db1bca6e5835960143","unresolved":false,"context_lines":[{"line_number":242,"context_line":"    usage: barbican acl set [-h] [-f {csv,table,value}] [-c COLUMN]"},{"line_number":243,"context_line":"                            [--max-width \u003cinteger\u003e]"},{"line_number":244,"context_line":"                            [--quote {all,minimal,none,nonnumeric}]"},{"line_number":245,"context_line":"                            (--secret SECRET_REF | --container CONTAINER_REF)"},{"line_number":246,"context_line":"                            [--users [USERS [USERS ...]]]"},{"line_number":247,"context_line":"                            [--project-access | --no-project-access]"},{"line_number":248,"context_line":"                            [--operation-type {read}]"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_580f8e36","line":245,"updated":"2015-08-07 15:53:36.000000000","message":"It seems like the last arg could be either a secret or container ref...so no need to have an option for it (e.g. the -s and -t)? Also the URI distinguishes the resource type","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"70040ba90409cb5d90ab010fa1ff6990a673fccc","unresolved":false,"context_lines":[{"line_number":242,"context_line":"    usage: barbican acl set [-h] [-f {csv,table,value}] [-c COLUMN]"},{"line_number":243,"context_line":"                            [--max-width \u003cinteger\u003e]"},{"line_number":244,"context_line":"                            [--quote {all,minimal,none,nonnumeric}]"},{"line_number":245,"context_line":"                            (--secret SECRET_REF | --container CONTAINER_REF)"},{"line_number":246,"context_line":"                            [--users [USERS [USERS ...]]]"},{"line_number":247,"context_line":"                            [--project-access | --no-project-access]"},{"line_number":248,"context_line":"                            [--operation-type {read}]"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_5e953186","line":245,"in_reply_to":"1a4dcd0f_580f8e36","updated":"2015-08-07 17:57:47.000000000","message":"I have initially implemented using URI but then modified to match as per weekly team discussion notes where it mentioned about using specific arguments. I also prefer URI argument as URI indicates whether its for secret or for container. I think one argument can be to make it explicit with specific argument .\n\nhttps://review.openstack.org/#/c/208343/2/barbicanclient/barbican_cli/acls.py,cm (line 36).","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"70b3c0aaa987bd5813abc6db1bca6e5835960143","unresolved":false,"context_lines":[{"line_number":303,"context_line":""},{"line_number":304,"context_line":".. code-block:: bash"},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"    $ barbican acl get -t -s http://localhost:9311/v1/secrets/7776adb8-e865-413c-8ccc-4f09c3fe0213"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"    usage: barbican acl get [-h] [-f {csv,table,value}] [-c COLUMN]"},{"line_number":309,"context_line":"                            [--max-width \u003cinteger\u003e]"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_fba0d4f5","line":306,"updated":"2015-08-07 15:53:36.000000000","message":"I think \u0027-t -s\u0027 could be removed per above comment?","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"70040ba90409cb5d90ab010fa1ff6990a673fccc","unresolved":false,"context_lines":[{"line_number":303,"context_line":""},{"line_number":304,"context_line":".. code-block:: bash"},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"    $ barbican acl get -t -s http://localhost:9311/v1/secrets/7776adb8-e865-413c-8ccc-4f09c3fe0213"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"    usage: barbican acl get [-h] [-f {csv,table,value}] [-c COLUMN]"},{"line_number":309,"context_line":"                            [--max-width \u003cinteger\u003e]"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_9ef17904","line":306,"in_reply_to":"1a4dcd0f_fba0d4f5","updated":"2015-08-07 17:57:47.000000000","message":"Yes, will do once team agrees to go with URI preference.","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"70b3c0aaa987bd5813abc6db1bca6e5835960143","unresolved":false,"context_lines":[{"line_number":368,"context_line":"    barbican acl set: error: argument --no-project-access: not allowed with argument --project-access"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":""},{"line_number":371,"context_line":"    $ barbican acl set --users 2d0ee7c681cc4549b6d76769c320d91f 721e27b8505b499e8ab3b38154705b9e -s http://localhost:9311/v1/containers/83c302c7-86fe-4f07-a277-c4962f121f19"},{"line_number":372,"context_line":"    Invalid secret URI reference specified."},{"line_number":373,"context_line":""},{"line_number":374,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_dbeb9811","line":371,"updated":"2015-08-07 15:53:36.000000000","message":"This error would go away per above...","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"70040ba90409cb5d90ab010fa1ff6990a673fccc","unresolved":false,"context_lines":[{"line_number":368,"context_line":"    barbican acl set: error: argument --no-project-access: not allowed with argument --project-access"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":""},{"line_number":371,"context_line":"    $ barbican acl set --users 2d0ee7c681cc4549b6d76769c320d91f 721e27b8505b499e8ab3b38154705b9e -s http://localhost:9311/v1/containers/83c302c7-86fe-4f07-a277-c4962f121f19"},{"line_number":372,"context_line":"    Invalid secret URI reference specified."},{"line_number":373,"context_line":""},{"line_number":374,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_1e0249b5","line":371,"in_reply_to":"1a4dcd0f_dbeb9811","updated":"2015-08-07 17:57:47.000000000","message":"Yes, will do once team agrees to go with URI preference.","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"3d64710dfd2cc9d41634d1b92ab5639f8007c6ff","unresolved":false,"context_lines":[{"line_number":372,"context_line":"    Invalid secret URI reference specified."},{"line_number":373,"context_line":""},{"line_number":374,"context_line":""},{"line_number":375,"context_line":"ACL Add User(s)"},{"line_number":376,"context_line":"~~~~~~~~~~~~~~~"},{"line_number":377,"context_line":""},{"line_number":378,"context_line":"To add ACL users for a secret or container, use this ACL action."}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_fb1d3473","line":375,"updated":"2015-08-07 15:54:50.000000000","message":"I think the word \u0027read\u0027 needs to be added in here somehow...as there can be more than one list group per secret/container ACL. Or else that should be the default value?","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"70040ba90409cb5d90ab010fa1ff6990a673fccc","unresolved":false,"context_lines":[{"line_number":372,"context_line":"    Invalid secret URI reference specified."},{"line_number":373,"context_line":""},{"line_number":374,"context_line":""},{"line_number":375,"context_line":"ACL Add User(s)"},{"line_number":376,"context_line":"~~~~~~~~~~~~~~~"},{"line_number":377,"context_line":""},{"line_number":378,"context_line":"To add ACL users for a secret or container, use this ACL action."}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_5ef8d1c4","line":375,"in_reply_to":"1a4dcd0f_fb1d3473","updated":"2015-08-07 17:57:47.000000000","message":"Yes, that is the default everywhere for \u0027operation-type\u0027 argument if not specified.","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"5c3a026645ff57810029d60bea51a35b293a5377","unresolved":false,"context_lines":[{"line_number":187,"context_line":".. code-block:: bash"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"    acl add        Add ACL users to a secret or container as identified by its href."},{"line_number":190,"context_line":"    acl delete     Delete ACLs for a secret or container as identified by its href."},{"line_number":191,"context_line":"    acl get        Retrieve ACLs for a secret or container by providing its href."},{"line_number":192,"context_line":"    acl remove     Remove ACL users from a secret or container as identified by its href."},{"line_number":193,"context_line":"    acl submit     Submit ACL on a secret or container as identified by its href."}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa1b9901_dc69fd26","line":190,"updated":"2015-08-18 15:12:32.000000000","message":"See previous comments about delete vs remove","commit_id":"15dd91891af53fe5f04bb39e0195c4012a941290"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"5c3a026645ff57810029d60bea51a35b293a5377","unresolved":false,"context_lines":[{"line_number":304,"context_line":""},{"line_number":305,"context_line":"    usage: barbican acl get [-h] [-f {csv,table,value}] [-c COLUMN]"},{"line_number":306,"context_line":"                            [--max-width \u003cinteger\u003e]"},{"line_number":307,"context_line":"                            [--quote {all,minimal,none,nonnumeric}]"},{"line_number":308,"context_line":"                            URI"},{"line_number":309,"context_line":"    barbican acl get: error: too few arguments"},{"line_number":310,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa1b9901_9cf8654b","line":307,"updated":"2015-08-18 15:12:32.000000000","message":"I think \u0027--operation-type {read}\u0027 should be in this list too.","commit_id":"15dd91891af53fe5f04bb39e0195c4012a941290"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"45866d7b62c08bf6caaf3fbb81e3029738462688","unresolved":false,"context_lines":[{"line_number":304,"context_line":""},{"line_number":305,"context_line":"    usage: barbican acl get [-h] [-f {csv,table,value}] [-c COLUMN]"},{"line_number":306,"context_line":"                            [--max-width \u003cinteger\u003e]"},{"line_number":307,"context_line":"                            [--quote {all,minimal,none,nonnumeric}]"},{"line_number":308,"context_line":"                            URI"},{"line_number":309,"context_line":"    barbican acl get: error: too few arguments"},{"line_number":310,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa1b9901_372a817f","line":307,"in_reply_to":"fa1b9901_9cf8654b","updated":"2015-08-18 22:50:18.000000000","message":"This \u0027get\u0027 operation retrieves all ACL which is similar to data returned by supporting server API. There are no explicit per operation ACL data by server API.\nWe can certainly filter data on client side if needed. But so far, there is only one operation supported so did not see much value in this.","commit_id":"15dd91891af53fe5f04bb39e0195c4012a941290"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"5c3a026645ff57810029d60bea51a35b293a5377","unresolved":false,"context_lines":[{"line_number":334,"context_line":""},{"line_number":335,"context_line":".. code-block:: bash"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"    $ barbican acl submit http://localhost:9311/v1/secrets/7776adb8-e865-413c-8ccc-4f09c3fe0213 --users --no-project-access"},{"line_number":338,"context_line":""},{"line_number":339,"context_line":"    +----------------+----------------+-------+----------------------------------+----------------------------------+---------------------------------------------------------------------------+"},{"line_number":340,"context_line":"    | Operation Type | Project Access | Users | Created                          | Updated                          | Secret ACL Ref                                                            |"}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa1b9901_fcb64189","line":337,"updated":"2015-08-18 15:12:32.000000000","message":"In general, should the URI be at the end of the call always?","commit_id":"15dd91891af53fe5f04bb39e0195c4012a941290"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"e5a90c0cee54ab6fc3f4dc004098a5d145faba86","unresolved":false,"context_lines":[{"line_number":334,"context_line":""},{"line_number":335,"context_line":".. code-block:: bash"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"    $ barbican acl submit http://localhost:9311/v1/secrets/7776adb8-e865-413c-8ccc-4f09c3fe0213 --users --no-project-access"},{"line_number":338,"context_line":""},{"line_number":339,"context_line":"    +----------------+----------------+-------+----------------------------------+----------------------------------+---------------------------------------------------------------------------+"},{"line_number":340,"context_line":"    | Operation Type | Project Access | Users | Created                          | Updated                          | Secret ACL Ref                                                            |"}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa1b9901_32cd4885","line":337,"in_reply_to":"fa1b9901_d70c6596","updated":"2015-08-20 15:48:00.000000000","message":"Modified users to provided as comma separated list, so now the order of ---users argument would not matter.","commit_id":"15dd91891af53fe5f04bb39e0195c4012a941290"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"45866d7b62c08bf6caaf3fbb81e3029738462688","unresolved":false,"context_lines":[{"line_number":334,"context_line":""},{"line_number":335,"context_line":".. code-block:: bash"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"    $ barbican acl submit http://localhost:9311/v1/secrets/7776adb8-e865-413c-8ccc-4f09c3fe0213 --users --no-project-access"},{"line_number":338,"context_line":""},{"line_number":339,"context_line":"    +----------------+----------------+-------+----------------------------------+----------------------------------+---------------------------------------------------------------------------+"},{"line_number":340,"context_line":"    | Operation Type | Project Access | Users | Created                          | Updated                          | Secret ACL Ref                                                            |"}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa1b9901_d70c6596","line":337,"in_reply_to":"fa1b9901_fcb64189","updated":"2015-08-18 22:50:18.000000000","message":"I tried to explain the issue via note at line # 382.\n\nCurrently multiple users value are passed as space separated values and if URI is provided without any other optional argument, then argparse takes URI as user value (http://argparse.googlecode.com/svn/trunk/doc/add_argument.html#nargs). \nIf there is additional optional argument present after --users, then URI can be last as argparse can differentiate between argument and positional argument value.\n\nThe other option is to use comma separated values for multiple user values and then cli logic will internally convert into list. And in that case, position of users argument will not matter.\n\nJohn: Do you prefer that way?","commit_id":"15dd91891af53fe5f04bb39e0195c4012a941290"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"eefee311f7b5f5b3fc9ae0cf8a4f32d5a90adfc6","unresolved":false,"context_lines":[{"line_number":379,"context_line":""},{"line_number":380,"context_line":".. note::"},{"line_number":381,"context_line":""},{"line_number":382,"context_line":"    As indicated in above error, postional argument URI value needs to be passed"},{"line_number":383,"context_line":"    *before* --users argument when no other optional argument is present. URI can"},{"line_number":384,"context_line":"    be passed in last only when there is optional argument like --project-access"},{"line_number":385,"context_line":"    is present before URI value."}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa1b9901_71b92c2e","line":382,"updated":"2015-08-17 16:46:06.000000000","message":"typo, positional. Will fix in next patch.","commit_id":"15dd91891af53fe5f04bb39e0195c4012a941290"},{"author":{"_account_id":15274,"name":"Christopher Solis","email":"cnsolis@us.ibm.com","username":"cplusone"},"change_message_id":"6aa467d7f32dee22de5e82c1cb54b8272565f29b","unresolved":false,"context_lines":[{"line_number":185,"context_line":"Subcommand actions that a user can take for ACLs are:"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":".. code-block:: bash"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"    acl add-user        Add ACL users to a secret or container as identified by its href."},{"line_number":190,"context_line":"    acl delete          Delete ACLs for a secret or container as identified by its href."},{"line_number":191,"context_line":"    acl get             Retrieve ACLs for a secret or container by providing its href."}],"source_content_type":"text/x-rst","patch_set":7,"id":"fa1b9901_9f14864d","line":188,"updated":"2015-08-25 21:46:40.000000000","message":"Documentation should be changed if add-user and add-remove are altered as per comment on README.rst","commit_id":"7eff7ce67c393ad4656b7db87d9618b98ee8b05b"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"8fb612c61cbc468eed22709d0929eb76e3c74ae5","unresolved":false,"context_lines":[{"line_number":185,"context_line":"Subcommand actions that a user can take for ACLs are:"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":".. code-block:: bash"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"    acl add-user        Add ACL users to a secret or container as identified by its href."},{"line_number":190,"context_line":"    acl delete          Delete ACLs for a secret or container as identified by its href."},{"line_number":191,"context_line":"    acl get             Retrieve ACLs for a secret or container by providing its href."}],"source_content_type":"text/x-rst","patch_set":7,"id":"fa1b9901_f526f6b8","line":188,"in_reply_to":"fa1b9901_9f14864d","updated":"2015-08-26 04:58:23.000000000","message":"Please see my reply on README.rst comment. Current strucuture seems to match with openstack client convention.","commit_id":"7eff7ce67c393ad4656b7db87d9618b98ee8b05b"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"92e2aa11131506bd8aca04c92781d290949942eb","unresolved":false,"context_lines":[{"line_number":186,"context_line":""},{"line_number":187,"context_line":".. code-block:: bash"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"    acl delete          Delete ACLs for a secret or container as identified by its href."},{"line_number":190,"context_line":"    acl get             Retrieve ACLs for a secret or container by providing its href."},{"line_number":191,"context_line":"    acl submit          Submit ACL on a secret or container as identified by its href."},{"line_number":192,"context_line":"    acl user add        Add ACL users to a secret or container as identified by its href."}],"source_content_type":"text/x-rst","patch_set":9,"id":"da20952f_754f636b","line":189,"updated":"2015-08-28 20:12:01.000000000","message":"I like the delete and user add/remove approach better now.","commit_id":"02cb0230e72bc7149a8b5fcad09161cd4939fbac"}],"doc/source/usage.rst":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"41f608a6fa26d776df6a12b0fa5114df1c2dc7f3","unresolved":false,"context_lines":[{"line_number":202,"context_line":"    # List is returned as ACLs are defined per operation type. That being said,"},{"line_number":203,"context_line":"    # currently Barbican only supports \u0027read\u0027 operation type."},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"    secret_acls \u003d barbican.acls.get(acl_ref)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"If need to add users to existing ACL settings on a secret or container,"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_960ac777","line":205,"updated":"2015-08-07 16:12:33.000000000","message":"So the default is \u0027read\u0027 effectively then? So we could do ...get(acl_ref, access\u003d\u0027read\u0027) or some such?","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"70040ba90409cb5d90ab010fa1ff6990a673fccc","unresolved":false,"context_lines":[{"line_number":202,"context_line":"    # List is returned as ACLs are defined per operation type. That being said,"},{"line_number":203,"context_line":"    # currently Barbican only supports \u0027read\u0027 operation type."},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"    secret_acls \u003d barbican.acls.get(acl_ref)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"If need to add users to existing ACL settings on a secret or container,"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_7eca6d70","line":205,"in_reply_to":"1a4dcd0f_960ac777","updated":"2015-08-07 17:57:47.000000000","message":"No, it gives back all of ACLs (currently its only \u0027read\u0027 operation) defied for that secret (or container)","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"41f608a6fa26d776df6a12b0fa5114df1c2dc7f3","unresolved":false,"context_lines":[{"line_number":214,"context_line":"    acl_entity \u003d barbican.acls.create(entity_ref\u003dsecret_ref,"},{"line_number":215,"context_line":"                                      users\u003d[new_u3, new_u4])"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"    acl_ref \u003d acl_entity.add() # adds new ACL users in db at this point"},{"line_number":218,"context_line":""},{"line_number":219,"context_line":""},{"line_number":220,"context_line":"If need to remove users to existing ACL settings on a secret or container,"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_b684a3d2","line":217,"updated":"2015-08-07 16:12:33.000000000","message":"Could the example be modified to set a real user ID on this add() method?","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"70040ba90409cb5d90ab010fa1ff6990a673fccc","unresolved":false,"context_lines":[{"line_number":214,"context_line":"    acl_entity \u003d barbican.acls.create(entity_ref\u003dsecret_ref,"},{"line_number":215,"context_line":"                                      users\u003d[new_u3, new_u4])"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"    acl_ref \u003d acl_entity.add() # adds new ACL users in db at this point"},{"line_number":218,"context_line":""},{"line_number":219,"context_line":""},{"line_number":220,"context_line":"If need to remove users to existing ACL settings on a secret or container,"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_de862116","line":217,"in_reply_to":"1a4dcd0f_b684a3d2","updated":"2015-08-07 17:57:47.000000000","message":"Whichever ID(s) provided in entity creation, that is used for \u0027add\u0027 call.","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"41f608a6fa26d776df6a12b0fa5114df1c2dc7f3","unresolved":false,"context_lines":[{"line_number":227,"context_line":"                                      users\u003d[new_u3])"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"    # removes provided users from ACL in db at this point"},{"line_number":230,"context_line":"    acl_ref \u003d acl_entity.remove()"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"If need to unset or delete ACL settings on a secret or container,"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_76005b34","line":230,"updated":"2015-08-07 16:12:33.000000000","message":"It might be good to add comment that remove() with no args removes all users from the \u0027read\u0027 group (by default). Maybe the example should remove a real user ID instead though?","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"70040ba90409cb5d90ab010fa1ff6990a673fccc","unresolved":false,"context_lines":[{"line_number":227,"context_line":"                                      users\u003d[new_u3])"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"    # removes provided users from ACL in db at this point"},{"line_number":230,"context_line":"    acl_ref \u003d acl_entity.remove()"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"If need to unset or delete ACL settings on a secret or container,"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_beb315e9","line":230,"in_reply_to":"1a4dcd0f_76005b34","updated":"2015-08-07 17:57:47.000000000","message":"Whatever list of users are provided in creation of entity are removed from ACL. Operation_type is option when creating the entity which is by default is for \u0027read\u0027.","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"41f608a6fa26d776df6a12b0fa5114df1c2dc7f3","unresolved":false,"context_lines":[{"line_number":238,"context_line":"    # create ACL entity object with needed settings"},{"line_number":239,"context_line":"    acl_entity \u003d barbican.acls.create(entity_ref\u003dsecret_ref, users\u003d[u1, u2],"},{"line_number":240,"context_line":"                                      project_access\u003dFalse)"},{"line_number":241,"context_line":"    acl_ref \u003d acl_entity.set()"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"    barbican.acls.delete(acl_ref) # removes ACL setting for above secret"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_d6336f12","line":241,"updated":"2015-08-07 16:12:33.000000000","message":"I thought we were doing this for deletes now?:\n\nacl_entity.delete()  or   acl_entity.remove()\n\nAlso why is the line #241 step needed?","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"70040ba90409cb5d90ab010fa1ff6990a673fccc","unresolved":false,"context_lines":[{"line_number":238,"context_line":"    # create ACL entity object with needed settings"},{"line_number":239,"context_line":"    acl_entity \u003d barbican.acls.create(entity_ref\u003dsecret_ref, users\u003d[u1, u2],"},{"line_number":240,"context_line":"                                      project_access\u003dFalse)"},{"line_number":241,"context_line":"    acl_ref \u003d acl_entity.set()"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"    barbican.acls.delete(acl_ref) # removes ACL setting for above secret"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_be86b5d9","line":241,"in_reply_to":"1a4dcd0f_d6336f12","updated":"2015-08-07 17:57:47.000000000","message":"Line #238 is just creating entity on barbican client side. It does not do any changes on barbican server side. So \u0027set\u0027, \u0027add\u0027, \u0027remove\u0027 are invoked to apply changes on server side.\n\nhttp://docs-draft.openstack.org/43/208343/2/check/gate-python-barbicanclient-docs/6d1389c//doc/build/html/reference.html#barbicanclient.secrets.SecretManager.create","commit_id":"9246442acdd5d718655fcd71b53bd9fdacf4242c"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"5c3a026645ff57810029d60bea51a35b293a5377","unresolved":false,"context_lines":[{"line_number":295,"context_line":""},{"line_number":296,"context_line":"Example::"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":"    # create ACL entity object with needed settings"},{"line_number":299,"context_line":"    blank_acl_entity \u003d barbican.acls.create(entity_ref\u003dsecret_ref)"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"    barbican.acls.delete(blank_acl_entity.acl_ref) # removes ACL setting for above secret"}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa1b9901_91f84e4b","line":298,"updated":"2015-08-18 15:12:32.000000000","message":"I still think the remove steps should something like this:\n\nacl_entity_to_remove \u003d barbican.acls.get(entity_ref\u003dsecret_ref)\n\nacl_entity_to_remove.read.remove()  # To remove \u0027read\u0027 ACLs from secret\n\nacl_entity_to_remove.remove()  # To remove all ACLs from secret","commit_id":"15dd91891af53fe5f04bb39e0195c4012a941290"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"45866d7b62c08bf6caaf3fbb81e3029738462688","unresolved":false,"context_lines":[{"line_number":295,"context_line":""},{"line_number":296,"context_line":"Example::"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":"    # create ACL entity object with needed settings"},{"line_number":299,"context_line":"    blank_acl_entity \u003d barbican.acls.create(entity_ref\u003dsecret_ref)"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"    barbican.acls.delete(blank_acl_entity.acl_ref) # removes ACL setting for above secret"}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa1b9901_cd20549e","line":298,"in_reply_to":"fa1b9901_91f84e4b","updated":"2015-08-18 22:50:18.000000000","message":"In most of barbican client entity delete apis, it takes the entity ref and deletes the entity. \n\nhttp://docs.openstack.org/developer/python-barbicanclient/reference.html#barbicanclient.secrets.SecretManager.delete\n\nhttp://docs.openstack.org/developer/python-barbicanclient/reference.html#barbicanclient.containers.ContainerManager.delete\n\nI tried to follow the existing pattern. I can move delete functionality to entity operation instead of manager. Under the cover, it still can be same as it does not have to read ACL as delete means delete custom ACL settings if set otherwise leave default settings as-is.\n\nlet me know if having delete on entity is preferred.","commit_id":"15dd91891af53fe5f04bb39e0195c4012a941290"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"e5a90c0cee54ab6fc3f4dc004098a5d145faba86","unresolved":false,"context_lines":[{"line_number":295,"context_line":""},{"line_number":296,"context_line":"Example::"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":"    # create ACL entity object with needed settings"},{"line_number":299,"context_line":"    blank_acl_entity \u003d barbican.acls.create(entity_ref\u003dsecret_ref)"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"    barbican.acls.delete(blank_acl_entity.acl_ref) # removes ACL setting for above secret"}],"source_content_type":"text/x-rst","patch_set":5,"id":"fa1b9901_b28e382c","line":298,"in_reply_to":"fa1b9901_cd20549e","updated":"2015-08-20 15:48:00.000000000","message":"Incorporated changes in next patch as per above comments.","commit_id":"15dd91891af53fe5f04bb39e0195c4012a941290"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"92e2aa11131506bd8aca04c92781d290949942eb","unresolved":false,"context_lines":[{"line_number":206,"context_line":""},{"line_number":207,"context_line":"    # To retrieve ACL using secret or container ref"},{"line_number":208,"context_line":"    blank_entity \u003d barbican.acls.create(entity_ref\u003dsecret_ref)"},{"line_number":209,"context_line":"    secret_acl \u003d barbican.acls.get(blank_entity.acl_ref)"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"If need to add users to existing \u0027read\u0027 ACL settings on a secret or container,"}],"source_content_type":"text/x-rst","patch_set":9,"id":"da20952f_1513875c","line":209,"updated":"2015-08-28 20:12:01.000000000","message":"I think this is the crux of the Python client for me and what others should weigh in on:\nThe barbican.acls.create() operation uses the parent secret\u0027s ref, whereas the barbican.acls.get() operation utilizes the secret\u0027s acl\u0027s ref. The mismatch here is due to the fact that acl is not a true sub-entity off a secret entity, but rather more like metadata that is associated with a secret entity. \n\nFor that reason, I\u0027m favoring only using secret refs for all acl operations. \n\nAnother option is to insist on getting a secret entity first, and then getting the acl info from it such as \u0027secret_acl \u003d secret.acl\u0027 or some such.\n\nLet\u0027s have a wider discussion here...","commit_id":"02cb0230e72bc7149a8b5fcad09161cd4939fbac"},{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"29b8a651205a1acfcebad0c03be825be4eb8b288","unresolved":false,"context_lines":[{"line_number":206,"context_line":"    secret_acl \u003d barbican.acls.get(secret_ref)"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"    # To retrieve (load) ACL using existing ACL entity e.g. container_acl"},{"line_number":209,"context_line":"    container_acl.load_acls_data()    "},{"line_number":210,"context_line":""},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"If need to add users to existing \u0027read\u0027 ACL settings on a secret or container,"}],"source_content_type":"text/x-rst","patch_set":10,"id":"da20952f_17e06628","line":209,"updated":"2015-08-28 23:49:00.000000000","message":"I like the revamped secret/container_ref based changes (others may not!). \n\nAs for this one though, is this refreshing the acl entity from the server?\n\nAlso, could there also be an \u0027acls\u0027 property on the secret/container that lazy loads the acls for the given secret/container?","commit_id":"1acec5806dda0d310d6346e5b6e18d6f3b19e7bc"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"7a2c6ed0fb63bbcb3ee33670ad42d8fc647d41ca","unresolved":false,"context_lines":[{"line_number":206,"context_line":"    secret_acl \u003d barbican.acls.get(secret_ref)"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"    # To retrieve (load) ACL using existing ACL entity e.g. container_acl"},{"line_number":209,"context_line":"    container_acl.load_acls_data()    "},{"line_number":210,"context_line":""},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"If need to add users to existing \u0027read\u0027 ACL settings on a secret or container,"}],"source_content_type":"text/x-rst","patch_set":10,"id":"da20952f_770f6288","line":209,"in_reply_to":"da20952f_17e06628","updated":"2015-08-29 00:06:24.000000000","message":"Yes, #load_acls_data() refreshes data from server.\n\nI have not looked on secrets and container side but I guess it should be doable to load acls whenever \u0027acls\u0027 attr is accessed on secrets or containers. Do you see common pattern of using that way?","commit_id":"1acec5806dda0d310d6346e5b6e18d6f3b19e7bc"}]}
