(self, tag_ids)
return tags
Create tags using vSphere tags prefix + vSphere tag category name as key and vSphere tag name as value.

            <TAGS_PREFIX><TAG_CATEGORY>:<TAG_NAME>

        Examples:
            - os_type:windows
            - application_name:my_app

        Taging best practices:
        https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/techpaper/performance/tagging-vsphere67-perf.pdf
Create tags using vSphere tags prefix + vSphere tag category name as key and vSphere tag name as value.
Create tags using vSphere tags prefix + vSphere tag category name as key and vSphere tag name as value .
def _get_tags(self, tag_ids):
        # type: (Set[str]) -> Dict[str, str]
        """
        Create tags using vSphere tags prefix + vSphere tag category name as key and vSphere tag name as value.

            <TAGS_PREFIX><TAG_CATEGORY>:<TAG_NAME>

        Examples:
            - os_type:windows
            - application_name:my_app

        Taging best practices:
        https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/techpaper/performance/tagging-vsphere67-perf.pdf
        """
        tags = {}
        categories = {}
        for tag_id in tag_ids:
            tag = self._client.tagging_tags_get(tag_id)
            category_id = tag["category_id"]
            if category_id not in categories:
                categories[category_id] = self._client.tagging_category_get(category_id)
            category_name = categories[category_id]["name"]
            tags[tag_id] = "{}{}:{}".format(self.config.tags_prefix, category_name, tag['name'])
        return tags
def _get_tags ( self , tag_ids ) : # type: (Set[str]) -> Dict[str, str] tags = { } categories = { } for tag_id in tag_ids : tag = self . _client . tagging_tags_get ( tag_id ) category_id = tag [ "category_id" ] if category_id not in categories : categories [ category_id ] = self . _client . tagging_category_get ( category_id ) category_name = categories [ category_id ] [ "name" ] tags [ tag_id ] = "{}{}:{}" . format ( self . config . tags_prefix , category_name , tag [ 'name' ] ) return tags