def subscription_id(self, config: dict) -> str: return super()._credentials([ config["azure"]["keyvault_keys"][current_filename(__file__)] ])["subscription-id"]
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)
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)
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)
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)
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)
def get(self) -> str: filename = current_filename(__file__) return self.get_credentials( (filename, self.config["environment_keys"][filename]))[filename]