Skip to content
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

docs: [google-cloud-documentai] Update the comment to add a note about documentai.processors.create permission #12807

Merged
merged 2 commits into from
Jun 21, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.29.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.29.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -1934,7 +1934,11 @@ async def create_processor(
r"""Creates a processor from the
[ProcessorType][google.cloud.documentai.v1.ProcessorType]
provided. The processor will be at ``ENABLED`` state by default
after its creation.
after its creation. Note that this method requires the
``documentai.processors.create`` permission on the project,
which is highly privileged. A user or service account with this
permission can create new processors that can interact with any
gcs bucket in your project.

.. code-block:: python

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2385,7 +2385,11 @@ def create_processor(
r"""Creates a processor from the
[ProcessorType][google.cloud.documentai.v1.ProcessorType]
provided. The processor will be at ``ENABLED`` state by default
after its creation.
after its creation. Note that this method requires the
``documentai.processors.create`` permission on the project,
which is highly privileged. A user or service account with this
permission can create new processors that can interact with any
gcs bucket in your project.

.. code-block:: python

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,11 @@ def create_processor(
Creates a processor from the
[ProcessorType][google.cloud.documentai.v1.ProcessorType]
provided. The processor will be at ``ENABLED`` state by default
after its creation.
after its creation. Note that this method requires the
``documentai.processors.create`` permission on the project,
which is highly privileged. A user or service account with this
permission can create new processors that can interact with any
gcs bucket in your project.

Returns:
Callable[[~.CreateProcessorRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,11 @@ def create_processor(
Creates a processor from the
[ProcessorType][google.cloud.documentai.v1.ProcessorType]
provided. The processor will be at ``ENABLED`` state by default
after its creation.
after its creation. Note that this method requires the
``documentai.processors.create`` permission on the project,
which is highly privileged. A user or service account with this
permission can create new processors that can interact with any
gcs bucket in your project.

Returns:
Callable[[~.CreateProcessorRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.29.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.29.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,10 @@ class ListDocumentsRequest(proto.Message):
https://google.aip.dev/160.

Currently support query strings are:
------------------------------------

``SplitType=DATASET_SPLIT_TEST|DATASET_SPLIT_TRAIN|DATASET_SPLIT_UNASSIGNED``

- ``SplitType=DATASET_SPLIT_TEST|DATASET_SPLIT_TRAIN|DATASET_SPLIT_UNASSIGNED``
- ``LabelingState=DOCUMENT_LABELED|DOCUMENT_UNLABELED|DOCUMENT_AUTO_LABELED``
- ``DisplayName=\"file_name.pdf\"``
- ``EntityType=abc/def``
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-documentai",
"version": "2.29.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-documentai",
"version": "2.29.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-documentai",
"version": "2.29.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Loading