-
Notifications
You must be signed in to change notification settings - Fork 6.6k
feat(contentwarehouse): Document AI Warehouse - Add Manage Documents code samples #10578
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
Conversation
Co-authored-by: Dan Lee <71398022+dandhlee@users.noreply.github.com>
|
||
# [START contentwarehouse_delete_document] | ||
|
||
from google.cloud import contentwarehouse_v1 as contentwarehouse |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, okay. I don't think need to use the .types
moniker for the type checking. I'll make suggestions to change these.
contentwarehouse/snippets/create_get_update_delete_document_test.py
Outdated
Show resolved
Hide resolved
Lint error - Import statements are in the wrong order for create_get_update_delete_document_test.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments
Description
PR contains document code samples
create_document_sample.py: To create a document in Document AI Warehouse using document schema id
get_document_sample.py: To get a document based on document id/name
update_document_sample.py: To update the document present in Document AI Warehouse
delete_document_sample.py: To delete a document from Document AI Warehouse
New env vars needed: user_id (format - user:xxxx@example.com)
Checklist
nox -s py-3.9
(see Test Environment Setup)nox -s lint
(see Test Environment Setup)