def __init__(self, cid=None, name=None,
                 primary_admin_gate=None, gate_uri=None, primary_admin_gate_id=None, primary_admin_gate_name=None,
                 cluster=None, cluster_id=None, parent_container=None, parent_container_id=None,
                 child_containers_id=None, gates_id=None, nodes_id=None, company=None, product=None, c_type=None,
                 properties=None, ignore_sync=False):
        """
        initialize container object
        :param cid: container ID - return by Ariane server on save or sync
        :param name: container name (optional)
        :param gate_uri: primary admin gate uri
        :param primary_admin_gate_id: primary admin gate ID
        :param cluster_id: cluster ID
        :param child_containers_id: list of child container
        :param gates_id: list of child gates
        :param nodes_id: list of child nodes
        :param company: company responsible of the product container
        :param product: product launched by this container
        :param c_type: specify the type in the product spectrum type - optional
        :param properties: the container properties
        :param ignore_sync: ignore ariane server synchronisation if false. (default false)
        :return:
        """
        LOGGER.debug("Container.__init__")
        is_sync = False
        if (cid is not None or name is not None) and not ignore_sync:
            container_on_ariane = ContainerService.find_container(cid=cid, primary_admin_gate_url=gate_uri)
            if container_on_ariane is not None:
                is_sync = True
                self.id = container_on_ariane.id
                self.name = container_on_ariane.name
                self.gate_uri = container_on_ariane.gate_uri
                self.primary_admin_gate_id = container_on_ariane.primary_admin_gate_id
                self.cluster_id = container_on_ariane.cluster_id
                self.parent_container_id = container_on_ariane.parent_container_id
                self.child_containers_id = container_on_ariane.child_containers_id
                self.gates_id = container_on_ariane.gates_id
                self.nodes_id = container_on_ariane.nodes_id
                self.company = container_on_ariane.company
                self.product = container_on_ariane.product
                self.type = container_on_ariane.type
                self.properties = container_on_ariane.properties
        if not is_sync:
            self.id = cid
            self.name = name
            self.gate_uri = gate_uri
            self.primary_admin_gate_id = primary_admin_gate_id
            self.cluster_id = cluster_id
            self.parent_container_id = parent_container_id
            self.child_containers_id = child_containers_id
            self.gates_id = gates_id
            self.nodes_id = nodes_id
            self.company = company
            self.product = product
            self.type = c_type
            self.properties = properties

        self.primary_admin_gate = primary_admin_gate
        self.primary_admin_gate_name = primary_admin_gate_name
        self.cluster = cluster
        self.parent_container = parent_container
        self.child_containers_2_add = []
        self.child_containers_2_rm = []
        self.gates_2_add = []
        self.gates_2_rm = []
        self.nodes_2_add = []
        self.nodes_2_rm = []
        self.properties_2_add = []
        self.properties_2_rm = []
def __init__ ( self , cid = None , name = None , primary_admin_gate = None , gate_uri = None , primary_admin_gate_id = None , primary_admin_gate_name = None , cluster = None , cluster_id = None , parent_container = None , parent_container_id = None , child_containers_id = None , gates_id = None , nodes_id = None , company = None , product = None , c_type = None , properties = None , ignore_sync = False ) : LOGGER . debug ( "Container.__init__" ) is_sync = False if ( cid is not None or name is not None ) and not ignore_sync : container_on_ariane = ContainerService . find_container ( cid = cid , primary_admin_gate_url = gate_uri ) if container_on_ariane is not None : is_sync = True self . id = container_on_ariane . id self . name = container_on_ariane . name self . gate_uri = container_on_ariane . gate_uri self . primary_admin_gate_id = container_on_ariane . primary_admin_gate_id self . cluster_id = container_on_ariane . cluster_id self . parent_container_id = container_on_ariane . parent_container_id self . child_containers_id = container_on_ariane . child_containers_id self . gates_id = container_on_ariane . gates_id self . nodes_id = container_on_ariane . nodes_id self . company = container_on_ariane . company self . product = container_on_ariane . product self . type = container_on_ariane . type self . properties = container_on_ariane . properties if not is_sync : self . id = cid self . name = name self . gate_uri = gate_uri self . primary_admin_gate_id = primary_admin_gate_id self . cluster_id = cluster_id self . parent_container_id = parent_container_id self . child_containers_id = child_containers_id self . gates_id = gates_id self . nodes_id = nodes_id self . company = company self . product = product self . type = c_type self . properties = properties self . primary_admin_gate = primary_admin_gate self . primary_admin_gate_name = primary_admin_gate_name self . cluster = cluster self . parent_container = parent_container self . child_containers_2_add = [ ] self . child_containers_2_rm = [ ] self . gates_2_add = [ ] self . gates_2_rm = [ ] self . nodes_2_add = [ ] self . nodes_2_rm = [ ] self . properties_2_add = [ ] self . properties_2_rm = [ ]
initialize container object
        :param cid: container ID - return by Ariane server on save or sync
        :param name: container name (optional)
        :param gate_uri: primary admin gate uri
        :param primary_admin_gate_id: primary admin gate ID
        :param cluster_id: cluster ID
        :param child_containers_id: list of child container
        :param gates_id: list of child gates
        :param nodes_id: list of child nodes
        :param company: company responsible of the product container
        :param product: product launched by this container
        :param c_type: specify the type in the product spectrum type - optional
        :param properties: the container properties
        :param ignore_sync: ignore ariane server synchronisation if false. (default false)
        :return: