mirror of
https://github.com/openkmip/pykmip
synced 2025-12-15 07:43:26 +00:00
Add the ModifyAttribute request and response payloads
This change adds support for the ModifyAttribute operation in the form of request and response payload structures. These will be used in future updates to the client and server to fully support the ModifyAttribute operation. A new unit test suite has been added to cover the new changes. Partially Implements #547
This commit is contained in:
committed by
Peter Hamilton
parent
1bb314d523
commit
4d2d2ba4f1
@@ -35,19 +35,17 @@ class SetAttributeRequestPayload(base.RequestPayload):
|
||||
|
||||
def __init__(self,
|
||||
unique_identifier=None,
|
||||
attribute=None,
|
||||
new_attribute=None):
|
||||
"""
|
||||
Construct a SetAttribute request payload.
|
||||
|
||||
Args:
|
||||
unique_identifier (string): The unique ID of the object on which
|
||||
attribute deletion should be performed. Optional, defaults to
|
||||
the attribute should be set. Optional, defaults to
|
||||
None.
|
||||
new_attribute (struct): A Primitive object (e.g., Enumeration,
|
||||
TextString, etc) representing the value of the attribute to
|
||||
set on the specified object. Optional, defaults to None.
|
||||
Required for read/write.
|
||||
new_attribute (struct): A NewAttribute object containing the new
|
||||
attribute value to set on the specified object. Optional,
|
||||
defaults to None. Required for read/write.
|
||||
"""
|
||||
super(SetAttributeRequestPayload, self).__init__()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user