Skip to content

Instantly share code, notes, and snippets.

@vijayakumar-psg587
Created April 21, 2020 07:52
Show Gist options
  • Save vijayakumar-psg587/15664eb9722bb46e9a056f2d54fa1f4f to your computer and use it in GitHub Desktop.
Save vijayakumar-psg587/15664eb9722bb46e9a056f2d54fa1f4f to your computer and use it in GitHub Desktop.
getGcloudAuthModel(): AuthenticationModel {
const authModel: GcloudAuthenticationModel = new GcloudAuthenticationModel();
authModel.autoRetry = true;
authModel.keyFilename = GCLOUD_KEY_FILE;
authModel.projectId = GCLOUD_PRJ_ID;
authModel.scope = GCLOUD_STROAGE_SCOPE;
authModel.maxRetries = GCLOUD_CONN_MAX_RETRIES;
return authModel;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment