コード例 #1
0
 def subscription_id(self, config: dict) -> str:
     return super()._credentials([
         config["azure"]["keyvault_keys"][current_filename(__file__)]
     ])["subscription-id"]
コード例 #2
0
 def credentials(self, config: dict, env: str) -> SpCredentials:
     credential_kwargs = super(
     )._transform_environment_key_to_credential_kwargs(
         config[f"ci_environment_keys_{env}"][current_filename(__file__)])
     return SpCredentials(**credential_kwargs)
コード例 #3
0
 def store_settings(self, config: dict) -> Settings:
     credential_kwargs = super()._transform_key_to_credential_kwargs(
         config["azure"]["keyvault_keys"][current_filename(__file__)])
     return Settings(**credential_kwargs)
コード例 #4
0
 def service_client(self, config: dict) -> BlockBlobService:
     credential_kwargs = super()._transform_key_to_credential_kwargs(
         config["azure"]["keyvault_keys"][current_filename(__file__)])
     return BlockBlobService(**credential_kwargs)
コード例 #5
0
ファイル: databricks.py プロジェクト: schipholgroup/takeoff
 def api_client(self, config: dict) -> ApiClient:
     credential_kwargs = super()._transform_key_to_credential_kwargs(
         config["azure"]["keyvault_keys"][current_filename(__file__)])
     return ApiClient(**credential_kwargs)
コード例 #6
0
 def credentials(self, config: dict) -> UserPassCredentials:
     credential_kwargs = super()._transform_key_to_credential_kwargs(
         config["azure"]["keyvault_keys"][current_filename(__file__)]
     )
     return UserPassCredentials(**credential_kwargs)
コード例 #7
0
 def get(self) -> str:
     filename = current_filename(__file__)
     return self.get_credentials(
         (filename, self.config["environment_keys"][filename]))[filename]