-
Notifications
You must be signed in to change notification settings - Fork 264
Closed
Labels
Description
Overview
To allow storage and access of objects on the cloud in Studio, we need to create a CloudStorage backend class that implements the base Backend class in the appnexus library. The CloudStorage backend should be able to make requests to any Cloud storage service supported by Studio for example GCS, AWS S3, etc.
Description and outcomes
- Create a new class
CloudStoragethat implementsBackend:
CLASS CloudStorage IMPLEMENTS Backend:
METHOD make_request(params):
# make request to cloud storage services(e.g via GCS, AWS S3, etc)
METHOD connect(params):
# Implement the connect method for storage service if any
CLASS METHOD _create_instance(cls)
# initialize a CloudStorage Backend instance- The class should connect to any cloud storage service supported in Studio(if required) by implementing
connect(). - Implement the
make_request()method that performs object retrieval requests. It should return the requested object
Accessibility requirements
Not applicable
Acceptance criteria
- The
CloudStoragebackend is created and it implements theBackendclass. - The class connects to whichever cloud service(e.g GCS, AWS S3, etc) is used in Studio(if required).
- The
make_requestmethod is implemented correctly and retrieves stored objects. - Tests are written to validate correctness of the
CloudStoragebackend logic. - Documentation has been added to the backend class, explaining its purpose, inputs and outputs.