Skip to main content

decentriq_platform.data_connectors.gcs.import_connector

Classes

GcsImportConnector

GcsImportConnector(
name: str,
dcr_id: str,
client: Client,
session: Session,
connector_definition: NodeDefinition,
)

A GcsImportConnector which can import data from GCS.

Initialise a GcsImportConnector.

Parameters:

  • name: Name of the GcsImportConnector.
  • dcr_id: ID of the DCR the connector is a member of.
  • client: A Client object which can be used to perform operations such as uploading data and retrieving computation results.
  • session: The session with which to communicate with the enclave.
  • connector_definition: Definition of the GCS import connector.

Ancestors (in MRO)

  • decentriq_platform.analytics.high_level_node.ComputationNode
  • decentriq_platform.analytics.high_level_node.HighLevelNode
  • abc.ABC

GcsImportConnectorDefinition

GcsImportConnectorDefinition(
name: str,
object_key: str,
bucket: str,
credentials_dependency: str,
)

Helper class that provides a standard way to create an ABC using inheritance.

Initialise a GcsImportConnectorDefinition. This class is used in order to construct GcsImportConnectors.

Parameters:

  • name: Name of the GcsImportConnectorDefinition.
  • object_key: Name of the object to be imported.
  • bucket: The name of the bucket where the object will be imported from.
  • credentials_dependency: Name of the credentials node.

Ancestors (in MRO)

  • decentriq_platform.analytics.node_definitions.NodeDefinition
  • abc.ABC Instance variables

required_workers :

build

def build(
self,
dcr_id: str,
node_definition: NodeDefinition,
client: Client,
session: Session,
)> GcsImportConnector

Construct a GcsImportConnector from the Node Definition.

Parameters:

  • dcr_id: ID of the DCR the node is a member of.
  • node_definition: Definition of the Import Connector Node.
  • client: A Client object which can be used to perform operations such as uploading data and retrieving computation results.
  • session: The session with which to communicate with the enclave.