'constructor for handling service options'

def __init__(self, sname, namespace, ports, selector=None, labels=None, cluster_ip=None, portal_ip=None, session_affinity=None, service_type=None, external_ips=None):

    self.name = sname
    self.namespace = namespace
    self.ports = ports
    self.selector = selector
    self.labels = labels
    self.cluster_ip = cluster_ip
    self.portal_ip = portal_ip
    self.session_affinity = session_affinity
    self.service_type = service_type
    self.external_ips = external_ips
    self.data = {}
    self.create_dict()
