code: def sync(self):
          
          LOGGER.debug("Subnet.sync")
          params = None
          if self.id is not None:
              params = {'id': self.id}
          elif self.name is not None:
              params = {'name': self.name}
  
          if params is not None:
              args = {'http_operation': 'GET', 'operation_path': 'get', 'parameters': params}
              response = SubnetService.requester.call(args)
              if response.rc != 0:
                  LOGGER.warning(
                      'Subnet.sync - Problem while syncing subnet (name:' + self.name + ', id:' + str(self.id) +
                      '). Reason: ' + str(response.response_content) + '-' + str(response.error_message) +
                      " (" + str(response.rc) + ")"
                  )
              else:
                  json_obj = response.response_content
                  self.id = json_obj['subnetID']
                  self.name = json_obj['subnetName']
                  self.description = json_obj['subnetDescription']
                  self.ip = json_obj['subnetIP']
                  self.mask = json_obj['subnetMask']
                  self.routing_area_id = json_obj['subnetRoutingAreaID']
                  self.loc_ids = json_obj['subnetLocationsID']
                  self.ipAddress_ids = json_obj['subnetIPAddressesID']
                  self.osi_ids = json_obj['subnetOSInstancesID']
docs: synchronize self from Ariane server according its id (prioritary) or name
          :return: