docs: def ensure_resource_data(self, update_data=False):
          """Retrieves data from OneView and updates resource object.
  
          Args:
              update_data: Flag to update resource data when it is required.
          """
          # Check for unique identifier in the resource data
          if not any(key in self.data for key in self.UNIQUE_IDENTIFIERS):
              raise exceptions.HPOneViewMissingUniqueIdentifiers(MISSING_UNIQUE_IDENTIFIERS)
  
          # Returns if data update is not required
          if not update_data:
              return
  
          resource_data = None
  
          if 'uri' in self.UNIQUE_IDENTIFIERS and self.data.get('uri'):
              resource_data = self._helper.do_get(self.data['uri'])
          else:
              for identifier in self.UNIQUE_IDENTIFIERS:
                  identifier_value = self.data.get(identifier)
  
                  if identifier_value:
                      result = self.get_by(identifier, identifier_value)
                      if result and isinstance(result, list):
                          resource_data = result[0]
                          break
  
          if resource_data:
              self.data.update(resource_data)
          else:
              raise exceptions.HPOneViewResourceNotFound(RESOURCE_DOES_NOT_EXIST)