Skip to content
Permalink
Browse files
feat: add v1beta2, remove v1beta1 (#13)
* feat: generate v1beta2

* chore: remove extra line in changelog
  • Loading branch information
busunkim96 committed Apr 1, 2020
1 parent a53289f commit 1d8efd9d74b8ae4c865751f60a01baed5a8d8d24
Showing with 2,641 additions and 6,287 deletions.
  1. +6 −0 .eggs/README.txt
  2. +1 −1 .flake8
  3. +1 −1 .repo-metadata.json
  4. +1 −1 CHANGELOG.md
  5. +11 −4 README.rst
  6. +6 −0 docs/documentai_v1beta2/services.rst
  7. +5 −0 docs/documentai_v1beta2/types.rst
  8. +0 −6 docs/gapic/v1beta1/api.rst
  9. +0 −5 docs/gapic/v1beta1/types.rst
  10. +5 −4 docs/index.rst
  11. +0 −25 google/cloud/documentai.py
  12. +83 −0 google/cloud/documentai/__init__.py
  13. +2 −0 google/cloud/documentai/py.typed
  14. +0 −45 google/cloud/documentai_v1beta1/__init__.py
  15. 0 google/cloud/documentai_v1beta1/gapic/__init__.py
  16. +0 −291 google/cloud/documentai_v1beta1/gapic/document_understanding_service_client.py
  17. +0 −28 google/cloud/documentai_v1beta1/gapic/document_understanding_service_client_config.py
  18. +0 −84 google/cloud/documentai_v1beta1/gapic/enums.py
  19. 0 google/cloud/documentai_v1beta1/gapic/transports/__init__.py
  20. +0 −131 google/cloud/documentai_v1beta1/gapic/transports/document_understanding_service_grpc_transport.py
  21. 0 google/cloud/documentai_v1beta1/proto/__init__.py
  22. +0 −446 google/cloud/documentai_v1beta1/proto/document.proto
  23. +0 −2,698 google/cloud/documentai_v1beta1/proto/document_pb2.py
  24. +0 −2 google/cloud/documentai_v1beta1/proto/document_pb2_grpc.py
  25. +0 −299 google/cloud/documentai_v1beta1/proto/document_understanding.proto
  26. +0 −1,559 google/cloud/documentai_v1beta1/proto/document_understanding_pb2.py
  27. +0 −57 google/cloud/documentai_v1beta1/proto/document_understanding_pb2_grpc.py
  28. +0 −55 google/cloud/documentai_v1beta1/proto/geometry.proto
  29. +0 −270 google/cloud/documentai_v1beta1/proto/geometry_pb2.py
  30. +0 −2 google/cloud/documentai_v1beta1/proto/geometry_pb2_grpc.py
  31. +0 −58 google/cloud/documentai_v1beta1/types.py
  32. +64 −0 google/cloud/documentai_v1beta2/__init__.py
  33. +2 −0 google/cloud/documentai_v1beta2/py.typed
  34. +4 −12 google/cloud/{ → documentai_v1beta2/services}/__init__.py
  35. +6 −10 google/{ → cloud/documentai_v1beta2/services/document_understanding_service}/__init__.py
  36. +281 −0 google/cloud/documentai_v1beta2/services/document_understanding_service/client.py
  37. +35 −0 google/cloud/documentai_v1beta2/services/document_understanding_service/transports/__init__.py
  38. +86 −0 google/cloud/documentai_v1beta2/services/document_understanding_service/transports/base.py
  39. +194 −0 google/cloud/documentai_v1beta2/services/document_understanding_service/transports/grpc.py
  40. +61 −0 google/cloud/documentai_v1beta2/types/__init__.py
  41. +756 −0 google/cloud/documentai_v1beta2/types/document.py
  42. +432 −0 google/cloud/documentai_v1beta2/types/document_understanding.py
  43. +75 −0 google/cloud/documentai_v1beta2/types/geometry.py
  44. +3 −0 mypy.ini
  45. +2 −2 noxfile.py
  46. +178 −0 scripts/fixup_keywords.py
  47. +23 −33 setup.py
  48. +9 −24 synth.metadata
  49. +13 −16 synth.py
  50. +296 −0 tests/unit/documentai_v1beta2/test_document_understanding_service.py
  51. +0 −118 tests/unit/gapic/v1beta1/test_document_understanding_service_client_v1beta1.py
@@ -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.

@@ -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/**
@@ -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",
@@ -1 +1 @@
# Changelog
# Changelog
@@ -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/
@@ -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
@@ -0,0 +1,6 @@
Client for Google Cloud Documentai API
======================================

.. automodule:: google.cloud.documentai_v1beta2
:members:
:inherited-members:
@@ -0,0 +1,5 @@
Types for Google Cloud Documentai API
=====================================

.. automodule:: google.cloud.documentai_v1beta2.types
:members:

This file was deleted.

This file was deleted.

@@ -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
---------
@@ -16,4 +17,4 @@ For a list of all ``google-cloud-documentai`` releases:
.. toctree::
:maxdepth: 2

changelog
changelog

This file was deleted.

@@ -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",
)
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-documentai package uses inline types.

This file was deleted.

Empty file.

0 comments on commit 1d8efd9

Please sign in to comment.