Skip to content

Commit 9318d94

Browse files
docs: [google-cloud-documentai] Update the comment to add a note about documentai.processors.create permission (#12807)
BEGIN_COMMIT_OVERRIDE docs: Update the comment to add a note about `documentai.processors.create` permission END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. PiperOrigin-RevId: 643086644 Source-Link: googleapis/googleapis@65337c6 Source-Link: googleapis/googleapis-gen@4e96e9e Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvY3VtZW50YWkvLk93bEJvdC55YW1sIiwiaCI6IjRlOTZlOWUzMzBmYTlhNTI1ZDlhMmVjZDM2ZTYzODU0ZTkwZDNhOTUifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 4974a1f commit 9318d94

File tree

12 files changed

+30
-12
lines changed

12 files changed

+30
-12
lines changed

packages/google-cloud-documentai/google/cloud/documentai/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.29.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-documentai/google/cloud/documentai_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.29.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-documentai/google/cloud/documentai_v1/services/document_processor_service/async_client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1934,7 +1934,11 @@ async def create_processor(
19341934
r"""Creates a processor from the
19351935
[ProcessorType][google.cloud.documentai.v1.ProcessorType]
19361936
provided. The processor will be at ``ENABLED`` state by default
1937-
after its creation.
1937+
after its creation. Note that this method requires the
1938+
``documentai.processors.create`` permission on the project,
1939+
which is highly privileged. A user or service account with this
1940+
permission can create new processors that can interact with any
1941+
gcs bucket in your project.
19381942
19391943
.. code-block:: python
19401944

packages/google-cloud-documentai/google/cloud/documentai_v1/services/document_processor_service/client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2385,7 +2385,11 @@ def create_processor(
23852385
r"""Creates a processor from the
23862386
[ProcessorType][google.cloud.documentai.v1.ProcessorType]
23872387
provided. The processor will be at ``ENABLED`` state by default
2388-
after its creation.
2388+
after its creation. Note that this method requires the
2389+
``documentai.processors.create`` permission on the project,
2390+
which is highly privileged. A user or service account with this
2391+
permission can create new processors that can interact with any
2392+
gcs bucket in your project.
23892393
23902394
.. code-block:: python
23912395

packages/google-cloud-documentai/google/cloud/documentai_v1/services/document_processor_service/transports/grpc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,11 @@ def create_processor(
649649
Creates a processor from the
650650
[ProcessorType][google.cloud.documentai.v1.ProcessorType]
651651
provided. The processor will be at ``ENABLED`` state by default
652-
after its creation.
652+
after its creation. Note that this method requires the
653+
``documentai.processors.create`` permission on the project,
654+
which is highly privileged. A user or service account with this
655+
permission can create new processors that can interact with any
656+
gcs bucket in your project.
653657
654658
Returns:
655659
Callable[[~.CreateProcessorRequest],

packages/google-cloud-documentai/google/cloud/documentai_v1/services/document_processor_service/transports/grpc_asyncio.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,11 @@ def create_processor(
657657
Creates a processor from the
658658
[ProcessorType][google.cloud.documentai.v1.ProcessorType]
659659
provided. The processor will be at ``ENABLED`` state by default
660-
after its creation.
660+
after its creation. Note that this method requires the
661+
``documentai.processors.create`` permission on the project,
662+
which is highly privileged. A user or service account with this
663+
permission can create new processors that can interact with any
664+
gcs bucket in your project.
661665
662666
Returns:
663667
Callable[[~.CreateProcessorRequest],

packages/google-cloud-documentai/google/cloud/documentai_v1beta2/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.29.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-documentai/google/cloud/documentai_v1beta3/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.29.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-documentai/google/cloud/documentai_v1beta3/types/document_service.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,10 @@ class ListDocumentsRequest(proto.Message):
396396
https://google.aip.dev/160.
397397
398398
Currently support query strings are:
399+
------------------------------------
400+
401+
``SplitType=DATASET_SPLIT_TEST|DATASET_SPLIT_TRAIN|DATASET_SPLIT_UNASSIGNED``
399402
400-
- ``SplitType=DATASET_SPLIT_TEST|DATASET_SPLIT_TRAIN|DATASET_SPLIT_UNASSIGNED``
401403
- ``LabelingState=DOCUMENT_LABELED|DOCUMENT_UNLABELED|DOCUMENT_AUTO_LABELED``
402404
- ``DisplayName=\"file_name.pdf\"``
403405
- ``EntityType=abc/def``

packages/google-cloud-documentai/samples/generated_samples/snippet_metadata_google.cloud.documentai.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-documentai",
11-
"version": "2.29.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)