Helium Large File Transfer Google Cloud Functions and Library.
$ cat ./configuration.json
{
"CLOUD_REGION": "us-central1",
"REGISTRY_ID": "myregistry",
"DEVICE_ID": "Helium-1111111111111111",
"ASSEMBLE_TOPIC_NAME": "projects/xx/topics/xx",
"ML_MODEL_RESOURCE": "projects/xx/models/xx/versions/xx",
"DETECTION_SCORE_THRESHOLD": 0.5
}
cat ./service-account.json
{
"type": "service_account",
"project_id": "xx",
"private_key_id": "xx",
"private_key": "-----BEGIN PRIVATE KEY-----\xx\n-----END PRIVATE KEY-----\n",
"client_email": xx@xx.iam.gserviceaccount.com",
"client_id": "xx",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://accounts.google.com/o/oauth2/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/xx%xx.iam.gserviceaccount.com"
}
npm run deploy
assembleBlobFromDatastore(datastore, transaction_id, function(err, file) {
if( err != null ) {
console.log(err);
return err;
}
console.log(file);
})
npm test
npm run test_integration