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:
committed by
Peter Hamilton
parent
48350a4166
commit
e5281cbd35
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user