github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/python/aistore/sdk/multiobj/object_collection.py (about)

     1  #
     2  # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
     3  #
     4  
     5  from abc import abstractmethod, ABC
     6  from typing import Iterator, Dict
     7  
     8  
     9  class ObjectCollection(ABC):
    10      """
    11      Abstract class for collections of object names
    12      """
    13  
    14      @abstractmethod
    15      def get_value(self) -> Dict[str, any]:
    16          """
    17          Get the json representation of the names to send to the API
    18  
    19          Returns:
    20              Dictionary of request entry to name representation
    21  
    22          """
    23  
    24      @abstractmethod
    25      def __iter__(self) -> Iterator[str]:
    26          pass