Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

chore: Update gapic-generator-python to v1.11.9 #559

Merged
merged 8 commits into from
Oct 20, 2023
16 changes: 8 additions & 8 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ API. By default, you will get ``v1``, the latest stable version.
.. toctree::
:maxdepth: 2

vision_v1/services
vision_v1/types
vision_v1/services_
vision_v1/types_


A new beta release with additional features over the current stable version,
Expand All @@ -96,8 +96,8 @@ usual beta admonishment (changes are possible, etc.) applies.
.. toctree::
:maxdepth: 2

vision_v1p4beta1/services
vision_v1p4beta1/types
vision_v1p4beta1/services_
vision_v1p4beta1/types_

Previous beta releases ``v1p3beta1`` and ``v1p2beta1`` are provided as well.

Expand All @@ -106,17 +106,17 @@ An API and type reference is provided for ``v1p3beta1``:
.. toctree::
:maxdepth: 2

vision_v1p3beta1/services
vision_v1p3beta1/types
vision_v1p3beta1/services_
vision_v1p3beta1/types_


An API and type reference is provided for ``v1p2beta1``:

.. toctree::
:maxdepth: 2

vision_v1p2beta1/services
vision_v1p2beta1/types
vision_v1p2beta1/services_
vision_v1p2beta1/types_

Migration Guide
---------------
Expand Down
File renamed without changes.
34 changes: 18 additions & 16 deletions tests/unit/gapic/vision_v1/test_image_annotator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1585,8 +1585,9 @@ def test_batch_annotate_images_rest(request_type):
# Wrap the value into a proper Response obj
response_value = Response()
response_value.status_code = 200
pb_return_value = image_annotator.BatchAnnotateImagesResponse.pb(return_value)
json_return_value = json_format.MessageToJson(pb_return_value)
# Convert return value to protobuf type
return_value = image_annotator.BatchAnnotateImagesResponse.pb(return_value)
json_return_value = json_format.MessageToJson(return_value)

response_value._content = json_return_value.encode("UTF-8")
req.return_value = response_value
Expand Down Expand Up @@ -1656,10 +1657,9 @@ def test_batch_annotate_images_rest_required_fields(
response_value = Response()
response_value.status_code = 200

pb_return_value = image_annotator.BatchAnnotateImagesResponse.pb(
return_value
)
json_return_value = json_format.MessageToJson(pb_return_value)
# Convert return value to protobuf type
return_value = image_annotator.BatchAnnotateImagesResponse.pb(return_value)
json_return_value = json_format.MessageToJson(return_value)

response_value._content = json_return_value.encode("UTF-8")
req.return_value = response_value
Expand Down Expand Up @@ -1788,8 +1788,9 @@ def test_batch_annotate_images_rest_flattened():
# Wrap the value into a proper Response obj
response_value = Response()
response_value.status_code = 200
pb_return_value = image_annotator.BatchAnnotateImagesResponse.pb(return_value)
json_return_value = json_format.MessageToJson(pb_return_value)
# Convert return value to protobuf type
return_value = image_annotator.BatchAnnotateImagesResponse.pb(return_value)
json_return_value = json_format.MessageToJson(return_value)
response_value._content = json_return_value.encode("UTF-8")
req.return_value = response_value

Expand Down Expand Up @@ -1854,8 +1855,9 @@ def test_batch_annotate_files_rest(request_type):
# Wrap the value into a proper Response obj
response_value = Response()
response_value.status_code = 200
pb_return_value = image_annotator.BatchAnnotateFilesResponse.pb(return_value)
json_return_value = json_format.MessageToJson(pb_return_value)
# Convert return value to protobuf type
return_value = image_annotator.BatchAnnotateFilesResponse.pb(return_value)
json_return_value = json_format.MessageToJson(return_value)

response_value._content = json_return_value.encode("UTF-8")
req.return_value = response_value
Expand Down Expand Up @@ -1925,10 +1927,9 @@ def test_batch_annotate_files_rest_required_fields(
response_value = Response()
response_value.status_code = 200

pb_return_value = image_annotator.BatchAnnotateFilesResponse.pb(
return_value
)
json_return_value = json_format.MessageToJson(pb_return_value)
# Convert return value to protobuf type
return_value = image_annotator.BatchAnnotateFilesResponse.pb(return_value)
json_return_value = json_format.MessageToJson(return_value)

response_value._content = json_return_value.encode("UTF-8")
req.return_value = response_value
Expand Down Expand Up @@ -2059,8 +2060,9 @@ def test_batch_annotate_files_rest_flattened():
# Wrap the value into a proper Response obj
response_value = Response()
response_value.status_code = 200
pb_return_value = image_annotator.BatchAnnotateFilesResponse.pb(return_value)
json_return_value = json_format.MessageToJson(pb_return_value)
# Convert return value to protobuf type
return_value = image_annotator.BatchAnnotateFilesResponse.pb(return_value)
json_return_value = json_format.MessageToJson(return_value)
response_value._content = json_return_value.encode("UTF-8")
req.return_value = response_value

Expand Down
Loading