#NEWLINE# def ex_create_tag( self , name , resource_uuids = None ) : #NEWLINE# #INDENT# '\n        Create a tag.\n\n        :param name: Tag name.\n        :type name: ``str``\n\n        :param resource_uuids: Optional list of resource UUIDs to assign this\n                               tag go.\n        :type resource_uuids: ``list`` of ``str``\n\n        :return: Created tag object.\n        :rtype: :class:`.CloudSigmaTag`\n        ' #NEWLINE# data = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# data [ 'objects' ] = [ { #NEWLINE# #INDENT# 'name' : name , #NEWLINE# #UNINDENT# } ] #NEWLINE# if resource_uuids : #NEWLINE# #INDENT# data [ 'resources' ] = resource_uuids #NEWLINE# #UNINDENT# action = '/tags/' #NEWLINE# response = self . connection . request ( action = action , method = 'POST' , data = data ) . object #NEWLINE# tag = self . _to_tag ( data = response [ 'objects' ] [ 0 ] ) #NEWLINE# return tag