2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-21 02:33:33 +00:00

Add ProxyKmipClient demos for the new attribute operations

This change adds ProxyKmipClient demos for the new Set, Modify,
and Delete Attribute operations. The demos are not intended for
general use but instead to show how the client can be used to
execute these new operations against a KMIP server. See the
demo scripts themselves for more information.

Partially implements #547
This commit is contained in:
Peter Hamilton
2019-12-13 13:35:40 -05:00
committed by Peter Hamilton
parent 48350a4166
commit e5281cbd35
4 changed files with 209 additions and 0 deletions

View File

@@ -229,6 +229,33 @@ def build_cli_parser(operation):
dest="attribute_names",
help="List of attribute names to retrieve, defaults to all "
"attributes")
elif operation is Operation.MODIFY_ATTRIBUTE:
parser.add_option(
"-i",
"--uuid",
action="store",
type="str",
default=None,
dest="uuid",
help="UID of a managed object")
elif operation is Operation.DELETE_ATTRIBUTE:
parser.add_option(
"-i",
"--uuid",
action="store",
type="str",
default=None,
dest="uuid",
help="UID of a managed object")
elif operation is Operation.SET_ATTRIBUTE:
parser.add_option(
"-i",
"--uuid",
action="store",
type="str",
default=None,
dest="uuid",
help="UID of a managed object")
elif operation is Operation.LOCATE:
parser.add_option(
"--offset-items",