Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md to use gcloud beta functions #366

Merged
merged 1 commit into from
Apr 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions functions/datastore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ Functions for your project.

1. Deploy the "get" function with an HTTP trigger:

gcloud alpha functions deploy get --stage-bucket YOUR_BUCKET_NAME --trigger-http
gcloud beta functions deploy get --stage-bucket YOUR_BUCKET_NAME --trigger-http

1. Deploy the "set" function with an HTTP trigger:

gcloud alpha functions deploy set --stage-bucket YOUR_BUCKET_NAME --trigger-http
gcloud beta functions deploy set --stage-bucket YOUR_BUCKET_NAME --trigger-http

1. Deploy the "del" function with an HTTP trigger:

gcloud alpha functions deploy del --stage-bucket YOUR_BUCKET_NAME --trigger-http
gcloud beta functions deploy del --stage-bucket YOUR_BUCKET_NAME --trigger-http

1. Call the "set" function to create a new entity:

gcloud alpha functions call set --data '{"kind":"Task","key":"sampletask1","value":{"description":"Buy milk"}}'
gcloud beta functions call set --data '{"kind":"Task","key":"sampletask1","value":{"description":"Buy milk"}}'

or

Expand All @@ -54,7 +54,7 @@ Functions for your project.

1. Call the "get" function to read the newly created entity:

gcloud alpha functions call get --data '{"kind":"Task","key":"sampletask1"}'
gcloud beta functions call get --data '{"kind":"Task","key":"sampletask1"}'

or

Expand All @@ -76,7 +76,7 @@ Functions for your project.

1. Call the "get" function again to verify it was deleted:

gcloud alpha functions call get --data '{"kind":"Task","key":"sampletask1"}'
gcloud beta functions call get --data '{"kind":"Task","key":"sampletask1"}'

or

Expand Down