parameters: (self, index_fields)
return_statement: return ret
docstring: Add object of ShardSchema.
  
          Args:
            index_fields (list[str]):
  
          Returns:
              MSRStatus, SUCCESS or FAILED.
  
          Raises:
              MRMAddSchemaError: If failed to add index field.
docstring_summary: Add object of ShardSchema.
docstring_tokens: Add object of ShardSchema .
function: def add_index_fields(self, index_fields):
          """
          Add object of ShardSchema.
  
          Args:
            index_fields (list[str]):
  
          Returns:
              MSRStatus, SUCCESS or FAILED.
  
          Raises:
              MRMAddSchemaError: If failed to add index field.
          """
          ret = self._header.add_index_fields(index_fields)
          if ret != ms.MSRStatus.SUCCESS:
              logger.critical("Failed to add index field.")
              raise MRMAddIndexError
          return ret
function_tokens: def add_index_fields ( self , index_fields ) : ret = self . _header . add_index_fields ( index_fields ) if ret != ms . MSRStatus . SUCCESS : logger . critical ( "Failed to add index field." ) raise MRMAddIndexError return ret