diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 894fb6bc..b8edda51 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:f62c53736eccb0c4934a3ea9316e0d57696bb49c1a7c86c726e9bb8a2f87dadf + digest: sha256:2e247c7bf5154df7f98cce087a20ca7605e236340c7d6d1a14447e5c06791bd6 diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in index cbd7e77f..ec867d9f 100644 --- a/.kokoro/requirements.in +++ b/.kokoro/requirements.in @@ -1,10 +1,10 @@ gcp-docuploader -gcp-releasetool +gcp-releasetool>=1.10.5 # required for compatibility with cryptography>=39.x importlib-metadata typing-extensions twine wheel setuptools -nox +nox>=2022.11.21 # required to remove dependency on py charset-normalizer<3 click<8.1.0 diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index 096e4800..66a2172a 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -1,6 +1,6 @@ # -# This file is autogenerated by pip-compile with python 3.10 -# To update, run: +# This file is autogenerated by pip-compile with Python 3.9 +# by the following command: # # pip-compile --allow-unsafe --generate-hashes requirements.in # @@ -154,9 +154,9 @@ gcp-docuploader==0.6.4 \ --hash=sha256:01486419e24633af78fd0167db74a2763974765ee8078ca6eb6964d0ebd388af \ --hash=sha256:70861190c123d907b3b067da896265ead2eeb9263969d6955c9e0bb091b5ccbf # via -r requirements.in -gcp-releasetool==1.10.0 \ - --hash=sha256:72a38ca91b59c24f7e699e9227c90cbe4dd71b789383cb0164b088abae294c83 \ - --hash=sha256:8c7c99320208383d4bb2b808c6880eb7a81424afe7cdba3c8d84b25f4f0e097d +gcp-releasetool==1.10.5 \ + --hash=sha256:174b7b102d704b254f2a26a3eda2c684fd3543320ec239baf771542a2e58e109 \ + --hash=sha256:e29d29927fe2ca493105a82958c6873bb2b90d503acac56be2c229e74de0eec9 # via -r requirements.in google-api-core==2.10.2 \ --hash=sha256:10c06f7739fe57781f87523375e8e1a3a4674bf6392cd6131a3222182b971320 \ @@ -335,9 +335,9 @@ more-itertools==9.0.0 \ --hash=sha256:250e83d7e81d0c87ca6bd942e6aeab8cc9daa6096d12c5308f3f92fa5e5c1f41 \ --hash=sha256:5a6257e40878ef0520b1803990e3e22303a41b5714006c32a3fd8304b26ea1ab # via jaraco-classes -nox==2022.8.7 \ - --hash=sha256:1b894940551dc5c389f9271d197ca5d655d40bdc6ccf93ed6880e4042760a34b \ - --hash=sha256:96cca88779e08282a699d672258ec01eb7c792d35bbbf538c723172bce23212c +nox==2022.11.21 \ + --hash=sha256:0e41a990e290e274cb205a976c4c97ee3c5234441a8132c8c3fd9ea3c22149eb \ + --hash=sha256:e21c31de0711d1274ca585a2c5fde36b1aa962005ba8e9322bf5eeed16dcd684 # via -r requirements.in packaging==21.3 \ --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ @@ -380,10 +380,6 @@ protobuf==3.20.3 \ # gcp-docuploader # gcp-releasetool # google-api-core -py==1.11.0 \ - --hash=sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719 \ - --hash=sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378 - # via nox pyasn1==0.4.8 \ --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 582db2fa..8c7bf663 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.10.2" + ".": "0.10.3" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a98f7ca..c5c85859 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.10.3](https://github.com/googleapis/python-recommendations-ai/compare/v0.10.2...v0.10.3) (2023-03-23) + + +### Documentation + +* Fix formatting of request arg in docstring ([#221](https://github.com/googleapis/python-recommendations-ai/issues/221)) ([e65988f](https://github.com/googleapis/python-recommendations-ai/commit/e65988fc540f9c2ca0cdf4ccc5cb923fb4fe4387)) + ## [0.10.2](https://github.com/googleapis/python-recommendations-ai/compare/v0.10.1...v0.10.2) (2023-02-17) diff --git a/google/cloud/recommendationengine/gapic_version.py b/google/cloud/recommendationengine/gapic_version.py index fc9ff2af..1f045a29 100644 --- a/google/cloud/recommendationengine/gapic_version.py +++ b/google/cloud/recommendationengine/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.10.2" # {x-release-please-version} +__version__ = "0.10.3" # {x-release-please-version} diff --git a/google/cloud/recommendationengine_v1beta1/gapic_version.py b/google/cloud/recommendationengine_v1beta1/gapic_version.py index fc9ff2af..1f045a29 100644 --- a/google/cloud/recommendationengine_v1beta1/gapic_version.py +++ b/google/cloud/recommendationengine_v1beta1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.10.2" # {x-release-please-version} +__version__ = "0.10.3" # {x-release-please-version} diff --git a/google/cloud/recommendationengine_v1beta1/services/catalog_service/async_client.py b/google/cloud/recommendationengine_v1beta1/services/catalog_service/async_client.py index 60a7bb39..8ad65df1 100644 --- a/google/cloud/recommendationengine_v1beta1/services/catalog_service/async_client.py +++ b/google/cloud/recommendationengine_v1beta1/services/catalog_service/async_client.py @@ -271,8 +271,8 @@ async def sample_create_catalog_item(): Args: request (Optional[Union[google.cloud.recommendationengine_v1beta1.types.CreateCatalogItemRequest, dict]]): - The request object. Request message for - CreateCatalogItem method. + The request object. Request message for CreateCatalogItem + method. parent (:class:`str`): Required. The parent catalog resource name, such as ``projects/*/locations/global/catalogs/default_catalog``. @@ -646,8 +646,8 @@ async def sample_update_catalog_item(): Args: request (Optional[Union[google.cloud.recommendationengine_v1beta1.types.UpdateCatalogItemRequest, dict]]): - The request object. Request message for - UpdateCatalogItem method. + The request object. Request message for UpdateCatalogItem + method. name (:class:`str`): Required. Full resource name of catalog item, such as ``projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id``. @@ -774,8 +774,8 @@ async def sample_delete_catalog_item(): Args: request (Optional[Union[google.cloud.recommendationengine_v1beta1.types.DeleteCatalogItemRequest, dict]]): - The request object. Request message for - DeleteCatalogItem method. + The request object. Request message for DeleteCatalogItem + method. name (:class:`str`): Required. Full resource name of catalog item, such as ``projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id``. diff --git a/google/cloud/recommendationengine_v1beta1/services/catalog_service/client.py b/google/cloud/recommendationengine_v1beta1/services/catalog_service/client.py index bdf03c1f..5fd7ba0d 100644 --- a/google/cloud/recommendationengine_v1beta1/services/catalog_service/client.py +++ b/google/cloud/recommendationengine_v1beta1/services/catalog_service/client.py @@ -520,8 +520,8 @@ def sample_create_catalog_item(): Args: request (Union[google.cloud.recommendationengine_v1beta1.types.CreateCatalogItemRequest, dict]): - The request object. Request message for - CreateCatalogItem method. + The request object. Request message for CreateCatalogItem + method. parent (str): Required. The parent catalog resource name, such as ``projects/*/locations/global/catalogs/default_catalog``. @@ -865,8 +865,8 @@ def sample_update_catalog_item(): Args: request (Union[google.cloud.recommendationengine_v1beta1.types.UpdateCatalogItemRequest, dict]): - The request object. Request message for - UpdateCatalogItem method. + The request object. Request message for UpdateCatalogItem + method. name (str): Required. Full resource name of catalog item, such as ``projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id``. @@ -983,8 +983,8 @@ def sample_delete_catalog_item(): Args: request (Union[google.cloud.recommendationengine_v1beta1.types.DeleteCatalogItemRequest, dict]): - The request object. Request message for - DeleteCatalogItem method. + The request object. Request message for DeleteCatalogItem + method. name (str): Required. Full resource name of catalog item, such as ``projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id``. diff --git a/google/cloud/recommendationengine_v1beta1/services/catalog_service/transports/rest.py b/google/cloud/recommendationengine_v1beta1/services/catalog_service/transports/rest.py index f2cd77a9..899c5515 100644 --- a/google/cloud/recommendationengine_v1beta1/services/catalog_service/transports/rest.py +++ b/google/cloud/recommendationengine_v1beta1/services/catalog_service/transports/rest.py @@ -31,7 +31,7 @@ from requests import __version__ as requests_version import dataclasses import re -from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union +from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union import warnings try: @@ -402,7 +402,7 @@ class _CreateCatalogItem(CatalogServiceRestStub): def __hash__(self): return hash("CreateCatalogItem") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -426,7 +426,6 @@ def __call__( request (~.catalog_service.CreateCatalogItemRequest): The request object. Request message for CreateCatalogItem method. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -503,7 +502,7 @@ class _DeleteCatalogItem(CatalogServiceRestStub): def __hash__(self): return hash("DeleteCatalogItem") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -527,7 +526,6 @@ def __call__( request (~.catalog_service.DeleteCatalogItemRequest): The request object. Request message for DeleteCatalogItem method. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -581,7 +579,7 @@ class _GetCatalogItem(CatalogServiceRestStub): def __hash__(self): return hash("GetCatalogItem") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -605,7 +603,6 @@ def __call__( request (~.catalog_service.GetCatalogItemRequest): The request object. Request message for GetCatalogItem method. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -673,7 +670,7 @@ class _ImportCatalogItems(CatalogServiceRestStub): def __hash__(self): return hash("ImportCatalogItems") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -771,7 +768,7 @@ class _ListCatalogItems(CatalogServiceRestStub): def __hash__(self): return hash("ListCatalogItems") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -795,7 +792,6 @@ def __call__( request (~.catalog_service.ListCatalogItemsRequest): The request object. Request message for ListCatalogItems method. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -863,7 +859,7 @@ class _UpdateCatalogItem(CatalogServiceRestStub): def __hash__(self): return hash("UpdateCatalogItem") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -887,7 +883,6 @@ def __call__( request (~.catalog_service.UpdateCatalogItemRequest): The request object. Request message for UpdateCatalogItem method. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. diff --git a/google/cloud/recommendationengine_v1beta1/services/prediction_api_key_registry/async_client.py b/google/cloud/recommendationengine_v1beta1/services/prediction_api_key_registry/async_client.py index 81f988c1..1441e20e 100644 --- a/google/cloud/recommendationengine_v1beta1/services/prediction_api_key_registry/async_client.py +++ b/google/cloud/recommendationengine_v1beta1/services/prediction_api_key_registry/async_client.py @@ -284,7 +284,7 @@ async def sample_create_prediction_api_key_registration(): Args: request (Optional[Union[google.cloud.recommendationengine_v1beta1.types.CreatePredictionApiKeyRegistrationRequest, dict]]): The request object. Request message for the - `CreatePredictionApiKeyRegistration` method. + ``CreatePredictionApiKeyRegistration`` method. parent (:class:`str`): Required. The parent resource path. ``projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store``. @@ -412,7 +412,7 @@ async def sample_list_prediction_api_key_registrations(): Args: request (Optional[Union[google.cloud.recommendationengine_v1beta1.types.ListPredictionApiKeyRegistrationsRequest, dict]]): The request object. Request message for the - `ListPredictionApiKeyRegistrations`. + ``ListPredictionApiKeyRegistrations``. parent (:class:`str`): Required. The parent placement resource name such as ``projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`` @@ -542,7 +542,7 @@ async def sample_delete_prediction_api_key_registration(): Args: request (Optional[Union[google.cloud.recommendationengine_v1beta1.types.DeletePredictionApiKeyRegistrationRequest, dict]]): The request object. Request message for - `DeletePredictionApiKeyRegistration` method. + ``DeletePredictionApiKeyRegistration`` method. name (:class:`str`): Required. The API key to unregister including full resource path. diff --git a/google/cloud/recommendationengine_v1beta1/services/prediction_api_key_registry/client.py b/google/cloud/recommendationengine_v1beta1/services/prediction_api_key_registry/client.py index 944381c5..bc399198 100644 --- a/google/cloud/recommendationengine_v1beta1/services/prediction_api_key_registry/client.py +++ b/google/cloud/recommendationengine_v1beta1/services/prediction_api_key_registry/client.py @@ -528,7 +528,7 @@ def sample_create_prediction_api_key_registration(): Args: request (Union[google.cloud.recommendationengine_v1beta1.types.CreatePredictionApiKeyRegistrationRequest, dict]): The request object. Request message for the - `CreatePredictionApiKeyRegistration` method. + ``CreatePredictionApiKeyRegistration`` method. parent (str): Required. The parent resource path. ``projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store``. @@ -653,7 +653,7 @@ def sample_list_prediction_api_key_registrations(): Args: request (Union[google.cloud.recommendationengine_v1beta1.types.ListPredictionApiKeyRegistrationsRequest, dict]): The request object. Request message for the - `ListPredictionApiKeyRegistrations`. + ``ListPredictionApiKeyRegistrations``. parent (str): Required. The parent placement resource name such as ``projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`` @@ -776,7 +776,7 @@ def sample_delete_prediction_api_key_registration(): Args: request (Union[google.cloud.recommendationengine_v1beta1.types.DeletePredictionApiKeyRegistrationRequest, dict]): The request object. Request message for - `DeletePredictionApiKeyRegistration` method. + ``DeletePredictionApiKeyRegistration`` method. name (str): Required. The API key to unregister including full resource path. diff --git a/google/cloud/recommendationengine_v1beta1/services/prediction_api_key_registry/transports/rest.py b/google/cloud/recommendationengine_v1beta1/services/prediction_api_key_registry/transports/rest.py index d44df16b..3928e03d 100644 --- a/google/cloud/recommendationengine_v1beta1/services/prediction_api_key_registry/transports/rest.py +++ b/google/cloud/recommendationengine_v1beta1/services/prediction_api_key_registry/transports/rest.py @@ -30,7 +30,7 @@ from requests import __version__ as requests_version import dataclasses import re -from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union +from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union import warnings try: @@ -272,7 +272,7 @@ class _CreatePredictionApiKeyRegistration(PredictionApiKeyRegistryRestStub): def __hash__(self): return hash("CreatePredictionApiKeyRegistration") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -297,7 +297,6 @@ def __call__( request (~.prediction_apikey_registry_service.CreatePredictionApiKeyRegistrationRequest): The request object. Request message for the ``CreatePredictionApiKeyRegistration`` method. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -379,7 +378,7 @@ class _DeletePredictionApiKeyRegistration(PredictionApiKeyRegistryRestStub): def __hash__(self): return hash("DeletePredictionApiKeyRegistration") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -404,7 +403,6 @@ def __call__( request (~.prediction_apikey_registry_service.DeletePredictionApiKeyRegistrationRequest): The request object. Request message for ``DeletePredictionApiKeyRegistration`` method. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -463,7 +461,7 @@ class _ListPredictionApiKeyRegistrations(PredictionApiKeyRegistryRestStub): def __hash__(self): return hash("ListPredictionApiKeyRegistrations") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -488,7 +486,6 @@ def __call__( request (~.prediction_apikey_registry_service.ListPredictionApiKeyRegistrationsRequest): The request object. Request message for the ``ListPredictionApiKeyRegistrations``. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. diff --git a/google/cloud/recommendationengine_v1beta1/services/prediction_service/transports/rest.py b/google/cloud/recommendationengine_v1beta1/services/prediction_service/transports/rest.py index a8018c98..c1b1456b 100644 --- a/google/cloud/recommendationengine_v1beta1/services/prediction_service/transports/rest.py +++ b/google/cloud/recommendationengine_v1beta1/services/prediction_service/transports/rest.py @@ -30,7 +30,7 @@ from requests import __version__ as requests_version import dataclasses import re -from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union +from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union import warnings try: @@ -207,7 +207,7 @@ class _Predict(PredictionServiceRestStub): def __hash__(self): return hash("Predict") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): diff --git a/google/cloud/recommendationengine_v1beta1/services/user_event_service/transports/rest.py b/google/cloud/recommendationengine_v1beta1/services/user_event_service/transports/rest.py index 6819d178..c7046375 100644 --- a/google/cloud/recommendationengine_v1beta1/services/user_event_service/transports/rest.py +++ b/google/cloud/recommendationengine_v1beta1/services/user_event_service/transports/rest.py @@ -31,7 +31,7 @@ from requests import __version__ as requests_version import dataclasses import re -from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union +from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union import warnings try: @@ -386,7 +386,7 @@ class _CollectUserEvent(UserEventServiceRestStub): def __hash__(self): return hash("CollectUserEvent") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = { + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = { "userEvent": "", } @@ -412,7 +412,6 @@ def __call__( request (~.user_event_service.CollectUserEventRequest): The request object. Request message for CollectUserEvent method. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -527,7 +526,7 @@ class _ImportUserEvents(UserEventServiceRestStub): def __hash__(self): return hash("ImportUserEvents") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -551,7 +550,6 @@ def __call__( request (~.import_.ImportUserEventsRequest): The request object. Request message for the ImportUserEvents request. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -627,7 +625,7 @@ class _ListUserEvents(UserEventServiceRestStub): def __hash__(self): return hash("ListUserEvents") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -651,7 +649,6 @@ def __call__( request (~.user_event_service.ListUserEventsRequest): The request object. Request message for ListUserEvents method. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -719,7 +716,7 @@ class _PurgeUserEvents(UserEventServiceRestStub): def __hash__(self): return hash("PurgeUserEvents") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -743,7 +740,6 @@ def __call__( request (~.user_event_service.PurgeUserEventsRequest): The request object. Request message for PurgeUserEvents method. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -819,7 +815,7 @@ class _WriteUserEvent(UserEventServiceRestStub): def __hash__(self): return hash("WriteUserEvent") - __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {} + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} @classmethod def _get_unset_required_fields(cls, message_dict): @@ -843,7 +839,6 @@ def __call__( request (~.user_event_service.WriteUserEventRequest): The request object. Request message for WriteUserEvent method. - retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. diff --git a/google/cloud/recommendationengine_v1beta1/types/catalog.py b/google/cloud/recommendationengine_v1beta1/types/catalog.py index d878212a..b945a53a 100644 --- a/google/cloud/recommendationengine_v1beta1/types/catalog.py +++ b/google/cloud/recommendationengine_v1beta1/types/catalog.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/recommendationengine_v1beta1/types/catalog_service.py b/google/cloud/recommendationengine_v1beta1/types/catalog_service.py index bb66ed55..b63ec459 100644 --- a/google/cloud/recommendationengine_v1beta1/types/catalog_service.py +++ b/google/cloud/recommendationengine_v1beta1/types/catalog_service.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/recommendationengine_v1beta1/types/common.py b/google/cloud/recommendationengine_v1beta1/types/common.py index 15f9251c..917195ee 100644 --- a/google/cloud/recommendationengine_v1beta1/types/common.py +++ b/google/cloud/recommendationengine_v1beta1/types/common.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/recommendationengine_v1beta1/types/import_.py b/google/cloud/recommendationengine_v1beta1/types/import_.py index a59c4c2f..21387470 100644 --- a/google/cloud/recommendationengine_v1beta1/types/import_.py +++ b/google/cloud/recommendationengine_v1beta1/types/import_.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/recommendationengine_v1beta1/types/prediction_apikey_registry_service.py b/google/cloud/recommendationengine_v1beta1/types/prediction_apikey_registry_service.py index 081be7b3..4b6c0431 100644 --- a/google/cloud/recommendationengine_v1beta1/types/prediction_apikey_registry_service.py +++ b/google/cloud/recommendationengine_v1beta1/types/prediction_apikey_registry_service.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/recommendationengine_v1beta1/types/prediction_service.py b/google/cloud/recommendationengine_v1beta1/types/prediction_service.py index 9215daad..fd0368bc 100644 --- a/google/cloud/recommendationengine_v1beta1/types/prediction_service.py +++ b/google/cloud/recommendationengine_v1beta1/types/prediction_service.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/recommendationengine_v1beta1/types/recommendationengine_resources.py b/google/cloud/recommendationengine_v1beta1/types/recommendationengine_resources.py index 54e4ad48..d9f9d15d 100644 --- a/google/cloud/recommendationengine_v1beta1/types/recommendationengine_resources.py +++ b/google/cloud/recommendationengine_v1beta1/types/recommendationengine_resources.py @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +import proto # type: ignore __protobuf__ = proto.module( diff --git a/google/cloud/recommendationengine_v1beta1/types/user_event.py b/google/cloud/recommendationengine_v1beta1/types/user_event.py index 8dfc22fa..3388239f 100644 --- a/google/cloud/recommendationengine_v1beta1/types/user_event.py +++ b/google/cloud/recommendationengine_v1beta1/types/user_event.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/google/cloud/recommendationengine_v1beta1/types/user_event_service.py b/google/cloud/recommendationengine_v1beta1/types/user_event_service.py index 8c4bdb35..0f33844d 100644 --- a/google/cloud/recommendationengine_v1beta1/types/user_event_service.py +++ b/google/cloud/recommendationengine_v1beta1/types/user_event_service.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import annotations + from typing import MutableMapping, MutableSequence import proto # type: ignore diff --git a/samples/generated_samples/snippet_metadata_google.cloud.recommendationengine.v1beta1.json b/samples/generated_samples/snippet_metadata_google.cloud.recommendationengine.v1beta1.json index 98a52d98..f2e652a7 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.recommendationengine.v1beta1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.recommendationengine.v1beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-recommendations-ai", - "version": "0.10.2" + "version": "0.10.3" }, "snippets": [ {