'Sets the named ports for the instance group controlled by this manager.
Scopes needed - one of the following:
* https://www.googleapis.com/auth/cloud-platform
* https://www.googleapis.com/auth/compute
:param  named_ports:  Assigns a name to a port number. For example:
{name: "http", port: 80}  This allows the
system to reference ports by the assigned name
instead of a port number. Named ports can also
contain multiple ports. For example: [{name:
"http", port: 80},{name: "http", port: 8080}]
Named ports apply to all instances in this
instance group.
:type   named_ports: ``list`` of {\'name\': ``str``, \'port`: ``int``}
:return:  Return True if successful.
:rtype: ``bool``'

def set_named_ports(self, named_ports):

    return self.driver.ex_instancegroup_set_named_ports(instancegroup=self.instance_group, named_ports=named_ports)
