forked from googleapis/python-retail
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(samples): add resources for interactive tutorials (googleapis#145)
* feat: Retail Interactive Tutorials. Product service code samples * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fail if GOOGLE_CLOUD_PROJECT_NUMBER is not set * remove endpoint * require GOOGLE_CLOUD_PROJECT environment variable * adjust filepaths samples testing * lint * update and move the tests resources setup files * Update create_test_resources.py * Update create_test_resources.py * fix typo * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com> Co-authored-by: t-karasova <tkarasyova@griddynamics.com>
- Loading branch information
1 parent
a8173c4
commit 597e47a
Showing
13 changed files
with
539 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
samples/interactive-tutorials/resources/events_schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
[ | ||
{ | ||
"fields":[ | ||
{ | ||
"mode": "NULLABLE", | ||
"name": "currencyCode", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"mode": "NULLABLE", | ||
"name": "revenue", | ||
"type": "FLOAT" | ||
} | ||
], | ||
"mode": "NULLABLE", | ||
"name": "purchaseTransaction", | ||
"type": "RECORD" | ||
}, | ||
{ | ||
"fields":[ | ||
{ | ||
"mode": "NULLABLE", | ||
"name": "quantity", | ||
"type": "INTEGER" | ||
}, | ||
{ | ||
"fields":[ | ||
{ | ||
"mode": "NULLABLE", | ||
"name": "id", | ||
"type": "STRING" | ||
} | ||
], | ||
"mode": "NULLABLE", | ||
"name": "product", | ||
"type": "RECORD" | ||
} | ||
], | ||
"mode": "REPEATED", | ||
"name": "productDetails", | ||
"type": "RECORD" | ||
}, | ||
{ | ||
"mode": "REQUIRED", | ||
"name": "eventTime", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"mode": "REQUIRED", | ||
"name": "visitorId", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"mode": "REQUIRED", | ||
"name": "eventType", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"mode": "NULLABLE", | ||
"name": "searchQuery", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"mode": "NULLABLE", | ||
"name": "cartId", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"mode": "REPEATED", | ||
"name": "pageCategories", | ||
"type": "STRING" | ||
} | ||
] |
Oops, something went wrong.