docs: def save(self):
          """
          :return: save this environment on Ariane server (create or update)
          """
          LOGGER.debug("Environment.save")
          post_payload = {}
          consolidated_osi_id = []
  
          if self.id is not None:
              post_payload['environmentID'] = self.id
  
          if self.name is not None:
              post_payload['environmentName'] = self.name
  
          if self.description is not None:
              post_payload['environmentDescription'] = self.description
  
          if self.color_code is not None:
              post_payload['environmentColorCode'] = self.color_code
  
          if self.osi_ids is not None:
              consolidated_osi_id = copy.deepcopy(self.osi_ids)
          if self.osi_2_rm is not None:
              for osi_2_rm in self.osi_2_rm:
                  if osi_2_rm.id is None:
                      osi_2_rm.sync()
                  consolidated_osi_id.remove(osi_2_rm.id)
          if self.osi_2_add is not None:
              for osi_id_2_add in self.osi_2_add:
                  if osi_id_2_add.id is None:
                      osi_id_2_add.save()
                  consolidated_osi_id.append(osi_id_2_add.id)
          post_payload['environmentOSInstancesID'] = consolidated_osi_id
  
          args = {'http_operation': 'POST', 'operation_path': '', 'parameters': {'payload': json.dumps(post_payload)}}
          response = EnvironmentService.requester.call(args)
          if response.rc != 0:
              LOGGER.warning(
                  'Environment.save - Problem while saving environment ' + self.name +
                  '. Reason: ' + str(response.response_content) + '-' + str(response.error_message) +
                  " (" + str(response.rc) + ")"
              )
          else:
              self.id = response.response_content['environmentID']
              if self.osi_2_add is not None:
                  for osi_2_add in self.osi_2_add:
                      osi_2_add.sync()
              if self.osi_2_rm is not None:
                  for osi_2_rm in self.osi_2_rm:
                      osi_2_rm.sync()
          self.osi_2_add.clear()
          self.osi_2_rm.clear()
          self.sync()
          return self