@is_connected
def get_attributes(self, uid=None, attribute_names=None):
    '\n        Get the attributes associated with a managed object.\n\n        If the uid is not specified, the appliance will use the ID placeholder\n        by default.\n\n        If the attribute_names list is not specified, the appliance will\n        return all viable attributes for the managed object.\n\n        Args:\n            uid (string): The unique ID of the managed object with which the\n                retrieved attributes should be associated. Optional, defaults\n                to None.\n            attribute_names (list): A list of string attribute names\n                indicating which attributes should be retrieved. Optional,\n                defaults to None.\n        '
    if (uid is not None):
        if (not isinstance(uid, six.string_types)):
            raise TypeError('uid must be a string')
    if (attribute_names is not None):
        if (not isinstance(attribute_names, list)):
            raise TypeError('attribute_names must be a list of strings')
        else:
            for attribute_name in attribute_names:
                if (not isinstance(attribute_name, six.string_types)):
                    raise TypeError('attribute_names must be a list of strings')
    result = self.proxy.get_attributes(uid, attribute_names)
    status = result.result_status.value
    if (status == enums.ResultStatus.SUCCESS):
        return (result.uuid, result.attributes)
    else:
        reason = result.result_reason.value
        message = result.result_message.value
        raise exceptions.KmipOperationFailure(status, reason, message)
Get the attributes associated with a managed object.

If the uid is not specified, the appliance will use the ID placeholder
by default.

If the attribute_names list is not specified, the appliance will
return all viable attributes for the managed object.

Args:
    uid (string): The unique ID of the managed object with which the
        retrieved attributes should be associated. Optional, defaults
        to None.
    attribute_names (list): A list of string attribute names
        indicating which attributes should be retrieved. Optional,
        defaults to None.
@is_connected
def get_attributes(self, uid=None, attribute_names=None):
    '\n        Get the attributes associated with a managed object.\n\n        If the uid is not specified, the appliance will use the ID placeholder\n        by default.\n\n        If the attribute_names list is not specified, the appliance will\n        return all viable attributes for the managed object.\n\n        Args:\n            uid (string): The unique ID of the managed object with which the\n                retrieved attributes should be associated. Optional, defaults\n                to None.\n            attribute_names (list): A list of string attribute names\n                indicating which attributes should be retrieved. Optional,\n                defaults to None.\n        '
    if (uid is not None):
        if (not isinstance(uid, six.string_types)):
            raise TypeError('uid must be a string')
    if (attribute_names is not None):
        if (not isinstance(attribute_names, list)):
            raise TypeError('attribute_names must be a list of strings')
        else:
            for attribute_name in attribute_names:
                if (not isinstance(attribute_name, six.string_types)):
                    raise TypeError('attribute_names must be a list of strings')
    result = self.proxy.get_attributes(uid, attribute_names)
    status = result.result_status.value
    if (status == enums.ResultStatus.SUCCESS):
        return (result.uuid, result.attributes)
    else:
        reason = result.result_reason.value
        message = result.result_message.value
        raise exceptions.KmipOperationFailure(status, reason, message)