Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
super(FileService, self).__init__(service_params)
if self.account_name == DEV_ACCOUNT_NAME:
raise ValueError(_ERROR_EMULATOR_DOES_NOT_SUPPORT_FILES)
if self.account_key:
self.authentication = _StorageSharedKeyAuthentication(
self.account_name,
self.account_key,
)
elif self.sas_token:
self.authentication = _StorageSASAuthentication(self.sas_token)
else:
raise ValueError(_ERROR_STORAGE_MISSING_INFO)
self._X_MS_VERSION = X_MS_VERSION
self._update_user_agent_string(package_version)