Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

feat: add v1beta2, remove v1beta1 #13

Merged
merged 2 commits into from Apr 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions .eggs/README.txt
@@ -0,0 +1,6 @@
This directory contains eggs that were downloaded by setuptools to build, test, and run plug-ins.

This directory caches those eggs to prevent repeated downloads.

However, it is safe to delete this directory.

2 changes: 1 addition & 1 deletion .flake8
@@ -1,6 +1,6 @@
# Generated by synthtool. DO NOT EDIT!
[flake8]
ignore = E203, E266, E501, W503
ignore = E203, E266, E501, W503, F401, F841
exclude =
# Exclude generated code.
**/proto/**
Expand Down
2 changes: 1 addition & 1 deletion .repo-metadata.json
Expand Up @@ -4,7 +4,7 @@
"product_documentation": "https://cloud.google.com/document-understanding/docs/",
"client_documentation": "https://googleapis.dev/python/documentai/latest",
"issue_tracker": "",
"release_level": "alpha",
"release_level": "beta",
"language": "python",
"repo": "googleapis/python-documentai",
"distribution_name": "google-cloud-documentai",
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
@@ -1 +1 @@
# Changelog
# Changelog
15 changes: 11 additions & 4 deletions README.rst
@@ -1,14 +1,21 @@
Python Client for Cloud Document AI API (`Alpha`_)
Python Client for Cloud Document AI API
==================================================

|beta| |pypi| |versions|

`Cloud Document AI API`_: Service to parse structured information from unstructured or
semi-structured documents using state-of-the-art Google AI such as natural
language, computer vision, translation, and AutoML.

- `Client Library Documentation`_
- `Product Documentation`_

.. _Alpha: https://github.com/googleapis/google-cloud-python/blob/master/README.rst
.. |beta| image:: https://img.shields.io/badge/support-beta-orange.svg
:target: https://github.com/googleapis/google-cloud-python/blob/master/README.rst#beta-support
.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-service-directory.svg
:target: https://pypi.org/project/google-cloud-service-directory/
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-service-directory.svg
:target: https://pypi.org/project/google-cloud-service-directory/
.. _Cloud Document AI API: https://cloud.google.com/document-understanding/docs/
.. _Client Library Documentation: https://googleapis.dev/python/documentai/latest
.. _Product Documentation: https://cloud.google.com/document-understanding/docs/
Expand Down Expand Up @@ -70,8 +77,8 @@ Next Steps
API to see other available methods on the client.
- Read the `Cloud Document AI API Product documentation`_ to learn
more about the product and see How-to Guides.
- View this `repository’s main README`_ to see the full list of Cloud
- View this `README`_ to see the full list of Cloud
APIs that we cover.

.. _Cloud Document AI API Product documentation: https://cloud.google.com/document-understanding/docs/
.. _repository’s main README: https://github.com/googleapis/google-cloud-python/blob/master/README.rst
.. _README: https://github.com/googleapis/google-cloud-python/blob/master/README.rst
6 changes: 6 additions & 0 deletions docs/documentai_v1beta2/services.rst
@@ -0,0 +1,6 @@
Client for Google Cloud Documentai API
======================================

.. automodule:: google.cloud.documentai_v1beta2
:members:
:inherited-members:
5 changes: 5 additions & 0 deletions docs/documentai_v1beta2/types.rst
@@ -0,0 +1,5 @@
Types for Google Cloud Documentai API
=====================================

.. automodule:: google.cloud.documentai_v1beta2.types
:members:
6 changes: 0 additions & 6 deletions docs/gapic/v1beta1/api.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/gapic/v1beta1/types.rst

This file was deleted.

9 changes: 5 additions & 4 deletions docs/index.rst
@@ -1,12 +1,13 @@
.. include:: README.rst

Api Reference
API Reference
-------------
.. toctree::
:maxdepth: 2

gapic/v1beta1/api
gapic/v1beta1/types
documentai_v1beta2/services
documentai_v1beta2/types


Changelog
---------
Expand All @@ -16,4 +17,4 @@ For a list of all ``google-cloud-documentai`` releases:
.. toctree::
:maxdepth: 2

changelog
changelog
25 changes: 0 additions & 25 deletions google/cloud/documentai.py

This file was deleted.

83 changes: 83 additions & 0 deletions google/cloud/documentai/__init__.py
@@ -0,0 +1,83 @@
# -*- coding: utf-8 -*-

# Copyright (C) 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#


from google.cloud.documentai_v1beta2.services.document_understanding_service.client import (
DocumentUnderstandingServiceClient,
)
from google.cloud.documentai_v1beta2.types.document import Document
from google.cloud.documentai_v1beta2.types.document_understanding import AutoMlParams
from google.cloud.documentai_v1beta2.types.document_understanding import (
BatchProcessDocumentsRequest,
)
from google.cloud.documentai_v1beta2.types.document_understanding import (
BatchProcessDocumentsResponse,
)
from google.cloud.documentai_v1beta2.types.document_understanding import (
EntityExtractionParams,
)
from google.cloud.documentai_v1beta2.types.document_understanding import (
FormExtractionParams,
)
from google.cloud.documentai_v1beta2.types.document_understanding import GcsDestination
from google.cloud.documentai_v1beta2.types.document_understanding import GcsSource
from google.cloud.documentai_v1beta2.types.document_understanding import InputConfig
from google.cloud.documentai_v1beta2.types.document_understanding import (
KeyValuePairHint,
)
from google.cloud.documentai_v1beta2.types.document_understanding import OcrParams
from google.cloud.documentai_v1beta2.types.document_understanding import (
OperationMetadata,
)
from google.cloud.documentai_v1beta2.types.document_understanding import OutputConfig
from google.cloud.documentai_v1beta2.types.document_understanding import (
ProcessDocumentRequest,
)
from google.cloud.documentai_v1beta2.types.document_understanding import (
ProcessDocumentResponse,
)
from google.cloud.documentai_v1beta2.types.document_understanding import TableBoundHint
from google.cloud.documentai_v1beta2.types.document_understanding import (
TableExtractionParams,
)
from google.cloud.documentai_v1beta2.types.geometry import BoundingPoly
from google.cloud.documentai_v1beta2.types.geometry import NormalizedVertex
from google.cloud.documentai_v1beta2.types.geometry import Vertex

__all__ = (
"AutoMlParams",
"BatchProcessDocumentsRequest",
"BatchProcessDocumentsResponse",
"BoundingPoly",
"Document",
"DocumentUnderstandingServiceClient",
"EntityExtractionParams",
"FormExtractionParams",
"GcsDestination",
"GcsSource",
"InputConfig",
"KeyValuePairHint",
"NormalizedVertex",
"OcrParams",
"OperationMetadata",
"OutputConfig",
"ProcessDocumentRequest",
"ProcessDocumentResponse",
"TableBoundHint",
"TableExtractionParams",
"Vertex",
)
2 changes: 2 additions & 0 deletions google/cloud/documentai/py.typed
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-documentai package uses inline types.
45 changes: 0 additions & 45 deletions google/cloud/documentai_v1beta1/__init__.py

This file was deleted.

Empty file.