8000 feat(contentwarehouse): Document AI Warehouse - Add Manage Documents code samples by dmoonat · Pull Request #10578 · GoogleCloudPlatform/python-docs-samples · GitHub
[go: up one dir, main page]

Skip to content
8000

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

Merged
merged 85 commits into from
Oct 2, 2023

Conversation

dmoonat
Copy link
Contributor
@dmoonat dmoonat commented Aug 31, 2023

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

@dmoonat dmoonat requested a review from holtskinner September 25, 2023 07:41

# [START contentwarehouse_delete_document]

from google.cloud import contentwarehouse_v1 as contentwarehouse
Copy link
Contributor

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.

@holtskinner holtskinner added the kokoro:run Add this label to force Kokoro to re-run the tests. label Sep 25, 2023
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Sep 25, 2023
@msampathkumar
Copy link
Member

Lint error - Import statements are in the wrong order for create_get_update_delete_document_test.py

@dmoonat dmoonat requested a review from holtskinner September 28, 2023 16:17
@holtskinner holtskinner added kokoro:run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Sep 28, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 28, 2023
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Sep 28, 2023
Copy link
Contributor
@holtskinner holtskinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments

@dmoonat dmoonat requested a review from holtskinner September 29, 2023 16:44
@holtskinner holtskinner added kokoro:run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Sep 29, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 29, 2023
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Sep 29, 2023
@rsamborski rsamborski merged commit 138219c into GoogleCloudPlatform:main Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: contentwarehouse Issues related to the Document AI Warehouse API. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants
0