Beispiel #1
0
    def _get_context(self, secrets_configuration: models.SecretsConfiguration):
        self.secrets_configuration = secrets_configuration

        azure_api.validate_secrets(secrets_configuration)
        self.batch_client = azure_api.make_batch_client(secrets_configuration)
        self.blob_client = azure_api.make_blob_client(secrets_configuration)
        context = {
            'batch_client': self.batch_client,
            'blob_client': self.blob_client,
            'secrets_configuration': self.secrets_configuration,
        }
        return context
Beispiel #2
0
    def __init__(self, secrets_config: models.SecretsConfiguration):
        self.secrets_config = secrets_config

        self.blob_config = azure_api.BlobConfig(
            account_key=self.secrets_config.storage_account_key,
            account_name=self.secrets_config.storage_account_name,
            account_suffix=self.secrets_config.storage_account_suffix)
        self.batch_config = azure_api.BatchConfig(
            account_key=self.secrets_config.batch_account_key,
            account_name=self.secrets_config.batch_account_name,
            account_url=self.secrets_config.batch_service_url)

        self.batch_client = azure_api.make_batch_client(self.batch_config)
        self.blob_client = azure_api.make_blob_client(self.blob_config)
Beispiel #3
0
    def _get_context(self, secrets_configuration: models.SecretsConfiguration):
        self.secrets_configuration = secrets_configuration

        azure_api.validate_secrets(secrets_configuration)
        self.batch_client = azure_api.make_batch_client(secrets_configuration)
        self.blob_client = azure_api.make_blob_client(secrets_configuration)
        self.table_service = azure_api.make_table_service(
            secrets_configuration)
        context = {
            "batch_client": self.batch_client,
            "blob_client": self.blob_client,
            "table_service": self.table_service,
            "secrets_configuration": self.secrets_configuration,
        }
        return context
Beispiel #4
0
    def __init__(self, secrets_config: models.SecretsConfiguration):
        self.secrets_config = secrets_config

        azure_api.validate_secrets(secrets_config)
        self.batch_client = azure_api.make_batch_client(secrets_config)
        self.blob_client = azure_api.make_blob_client(secrets_config)