Skip to content

Implement the CloudStorage backend #4285

@akolson

Description

@akolson

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 CloudStorage that implements Backend:
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

  1. The CloudStorage backend is created and it implements the Backend class.
  2. The class connects to whichever cloud service(e.g GCS, AWS S3, etc) is used in Studio(if required).
  3. The make_request method is implemented correctly and retrieves stored objects.
  4. Tests are written to validate correctness of the CloudStorage backend logic.
  5. Documentation has been added to the backend class, explaining its purpose, inputs and outputs.

Resources

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions