Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- type GoogleEnv = Env BigQueryScopes
- makeGoogleEnvWithCredentials :: (MonadIO m, MonadCatch m, Katip m) => Maybe Text -> Maybe Seconds -> Credentials BigQueryScopes -> m (Env BigQueryScopes)
- makeGoogleEnv :: (MonadCatch m, Katip m) => FilePath -> Maybe Seconds -> m GoogleEnv
- googleEnvFromJSONCredentials :: MonadCatch m => ByteString -> m (Credentials BigQueryScopes)
- googleCredentialsFromJson :: (MonadIO m, MonadCatch m) => CredentialsJson -> m (Credentials BigQueryScopes)
- sdkCredentialFilePath :: MonadIO m => m (Maybe FilePath)
- jsonCredentialsFromWellKnownPath :: MonadIO m => m (Maybe CredentialsJson)
Documentation
type GoogleEnv = Env BigQueryScopes #
makeGoogleEnvWithCredentials :: (MonadIO m, MonadCatch m, Katip m) => Maybe Text -> Maybe Seconds -> Credentials BigQueryScopes -> m (Env BigQueryScopes) #
Creates a google env with the scopes required for bigquery ops
Creates google env from the input file The main purpose for this function is to validate the generated napkin credentials. Note, function only validates if we can create a google env.
googleEnvFromJSONCredentials #
:: MonadCatch m | |
=> ByteString | oAuth2 token ByteString |
-> m (Credentials BigQueryScopes) |
Creates google environment from credentials json
googleCredentialsFromJson :: (MonadIO m, MonadCatch m) => CredentialsJson -> m (Credentials BigQueryScopes) #
sdkCredentialFilePath :: MonadIO m => m (Maybe FilePath) #
jsonCredentialsFromWellKnownPath :: MonadIO m => m (Maybe CredentialsJson) #