

def ex_create_tag_key(self, name, description=None, value_required=True, display_on_report=True):
    '\n        Creates a tag key in the Dimension Data Cloud\n\n        :param name: The name of the tag key (required)\n        :type  name: ``str``\n\n        :param description: The description of the tag key\n        :type  description: ``str``\n\n        :param value_required: If a value is required for the tag\n                               Tags themselves can be just a tag,\n                               or be a key/value pair\n        :type  value_required: ``bool``\n\n        :param display_on_report: Should this key show up on the usage reports\n        :type  display_on_report: ``bool``\n\n        :rtype: ``bool``\n        '
    create_tag_key = ET.Element('createTagKey', {
        'xmlns': TYPES_URN,
    })
    ET.SubElement(create_tag_key, 'name').text = name
    if (description is not None):
        ET.SubElement(create_tag_key, 'description').text = description
    ET.SubElement(create_tag_key, 'valueRequired').text = str(value_required).lower()
    ET.SubElement(create_tag_key, 'displayOnReport').text = str(display_on_report).lower()
    response = self.connection.request_with_orgId_api_2('tag/createTagKey', method='POST', data=ET.tostring(create_tag_key)).object
    response_code = findtext(response, 'responseCode', TYPES_URN)
    return (response_code in ['IN_PROGRESS', 'OK'])

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver.ex_create_tag_key/original