Skip to content
Permalink
Browse files
chore: use gapic-generator-python 0.51.2 (#87)
- [ ] Regenerate this pull request now.

fix: add 'dict' annotation type to 'request'

Committer: @busunkim96
PiperOrigin-RevId: 398509016

Source-Link: googleapis/googleapis@b224dfa

Source-Link: googleapis/googleapis-gen@63a1db7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
  • Loading branch information
gcf-owl-bot committed Sep 24, 2021
1 parent 8531382 commit ff8c4189e70770b83b84eb0d6cf886104d62d36a
Showing with 87 additions and 78 deletions.
  1. +13 −13 google/cloud/recommendationengine_v1beta1/services/catalog_service/client.py
  2. +1 −1 google/cloud/recommendationengine_v1beta1/services/catalog_service/transports/base.py
  3. +3 −3 google/cloud/recommendationengine_v1beta1/services/catalog_service/transports/grpc.py
  4. +3 −3 google/cloud/recommendationengine_v1beta1/services/catalog_service/transports/grpc_asyncio.py
  5. +16 −7 google/cloud/recommendationengine_v1beta1/services/prediction_api_key_registry/client.py
  6. +1 −1 google/cloud/recommendationengine_v1beta1/services/prediction_api_key_registry/transports/base.py
  7. +3 −3 google/cloud/recommendationengine_v1beta1/services/prediction_api_key_registry/transports/grpc.py
  8. +3 −3 ...loud/recommendationengine_v1beta1/services/prediction_api_key_registry/transports/grpc_asyncio.py
  9. +3 −3 google/cloud/recommendationengine_v1beta1/services/prediction_service/client.py
  10. +1 −1 google/cloud/recommendationengine_v1beta1/services/prediction_service/transports/base.py
  11. +3 −3 google/cloud/recommendationengine_v1beta1/services/prediction_service/transports/grpc.py
  12. +3 −3 google/cloud/recommendationengine_v1beta1/services/prediction_service/transports/grpc_asyncio.py
  13. +11 −11 google/cloud/recommendationengine_v1beta1/services/user_event_service/client.py
  14. +1 −1 google/cloud/recommendationengine_v1beta1/services/user_event_service/transports/base.py
  15. +3 −3 google/cloud/recommendationengine_v1beta1/services/user_event_service/transports/grpc.py
  16. +3 −3 google/cloud/recommendationengine_v1beta1/services/user_event_service/transports/grpc_asyncio.py
  17. +16 −16 scripts/fixup_recommendationengine_v1beta1_keywords.py
@@ -17,7 +17,7 @@
from distutils import util
import os
import re
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib # type: ignore
@@ -360,7 +360,7 @@ def __init__(

def create_catalog_item(
self,
request: catalog_service.CreateCatalogItemRequest = None,
request: Union[catalog_service.CreateCatalogItemRequest, dict] = None,
*,
parent: str = None,
catalog_item: catalog.CatalogItem = None,
@@ -371,7 +371,7 @@ def create_catalog_item(
r"""Creates a catalog item.
Args:
request (google.cloud.recommendationengine_v1beta1.types.CreateCatalogItemRequest):
request (Union[google.cloud.recommendationengine_v1beta1.types.CreateCatalogItemRequest, dict]):
The request object. Request message for
CreateCatalogItem method.
parent (str):
@@ -439,7 +439,7 @@ def create_catalog_item(

def get_catalog_item(
self,
request: catalog_service.GetCatalogItemRequest = None,
request: Union[catalog_service.GetCatalogItemRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -449,7 +449,7 @@ def get_catalog_item(
r"""Gets a specific catalog item.
Args:
request (google.cloud.recommendationengine_v1beta1.types.GetCatalogItemRequest):
request (Union[google.cloud.recommendationengine_v1beta1.types.GetCatalogItemRequest, dict]):
The request object. Request message for GetCatalogItem
method.
name (str):
@@ -510,7 +510,7 @@ def get_catalog_item(

def list_catalog_items(
self,
request: catalog_service.ListCatalogItemsRequest = None,
request: Union[catalog_service.ListCatalogItemsRequest, dict] = None,
*,
parent: str = None,
filter: str = None,
@@ -521,7 +521,7 @@ def list_catalog_items(
r"""Gets a list of catalog items.
Args:
request (google.cloud.recommendationengine_v1beta1.types.ListCatalogItemsRequest):
request (Union[google.cloud.recommendationengine_v1beta1.types.ListCatalogItemsRequest, dict]):
The request object. Request message for ListCatalogItems
method.
parent (str):
@@ -600,7 +600,7 @@ def list_catalog_items(

def update_catalog_item(
self,
request: catalog_service.UpdateCatalogItemRequest = None,
request: Union[catalog_service.UpdateCatalogItemRequest, dict] = None,
*,
name: str = None,
catalog_item: catalog.CatalogItem = None,
@@ -613,7 +613,7 @@ def update_catalog_item(
supported. Non-existing items will be created.
Args:
request (google.cloud.recommendationengine_v1beta1.types.UpdateCatalogItemRequest):
request (Union[google.cloud.recommendationengine_v1beta1.types.UpdateCatalogItemRequest, dict]):
The request object. Request message for
UpdateCatalogItem method.
name (str):
@@ -693,7 +693,7 @@ def update_catalog_item(

def delete_catalog_item(
self,
request: catalog_service.DeleteCatalogItemRequest = None,
request: Union[catalog_service.DeleteCatalogItemRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -703,7 +703,7 @@ def delete_catalog_item(
r"""Deletes a catalog item.
Args:
request (google.cloud.recommendationengine_v1beta1.types.DeleteCatalogItemRequest):
request (Union[google.cloud.recommendationengine_v1beta1.types.DeleteCatalogItemRequest, dict]):
The request object. Request message for
DeleteCatalogItem method.
name (str):
@@ -757,7 +757,7 @@ def delete_catalog_item(

def import_catalog_items(
self,
request: import_.ImportCatalogItemsRequest = None,
request: Union[import_.ImportCatalogItemsRequest, dict] = None,
*,
parent: str = None,
request_id: str = None,
@@ -776,7 +776,7 @@ def import_catalog_items(
successfully updated.
Args:
request (google.cloud.recommendationengine_v1beta1.types.ImportCatalogItemsRequest):
request (Union[google.cloud.recommendationengine_v1beta1.types.ImportCatalogItemsRequest, dict]):
The request object. Request message for Import methods.
parent (str):
Required.
@@ -122,7 +122,7 @@ def __init__(
**scopes_kwargs, quota_project_id=quota_project_id
)

# If the credentials is service account credentials, then always try to use self signed JWT.
# If the credentials are service account credentials, then always try to use self signed JWT.
if (
always_use_jwt_access
and isinstance(credentials, service_account.Credentials)
@@ -86,16 +86,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
@@ -133,16 +133,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
@@ -17,7 +17,7 @@
from distutils import util
import os
import re
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib # type: ignore
@@ -395,7 +395,10 @@ def __init__(

def create_prediction_api_key_registration(
self,
request: prediction_apikey_registry_service.CreatePredictionApiKeyRegistrationRequest = None,
request: Union[
prediction_apikey_registry_service.CreatePredictionApiKeyRegistrationRequest,
dict,
] = None,
*,
parent: str = None,
prediction_api_key_registration: prediction_apikey_registry_service.PredictionApiKeyRegistration = None,
@@ -406,7 +409,7 @@ def create_prediction_api_key_registration(
r"""Register an API key for use with predict method.
Args:
request (google.cloud.recommendationengine_v1beta1.types.CreatePredictionApiKeyRegistrationRequest):
request (Union[google.cloud.recommendationengine_v1beta1.types.CreatePredictionApiKeyRegistrationRequest, dict]):
The request object. Request message for the
`CreatePredictionApiKeyRegistration` method.
parent (str):
@@ -483,7 +486,10 @@ def create_prediction_api_key_registration(

def list_prediction_api_key_registrations(
self,
request: prediction_apikey_registry_service.ListPredictionApiKeyRegistrationsRequest = None,
request: Union[
prediction_apikey_registry_service.ListPredictionApiKeyRegistrationsRequest,
dict,
] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -494,7 +500,7 @@ def list_prediction_api_key_registrations(
method.
Args:
request (google.cloud.recommendationengine_v1beta1.types.ListPredictionApiKeyRegistrationsRequest):
request (Union[google.cloud.recommendationengine_v1beta1.types.ListPredictionApiKeyRegistrationsRequest, dict]):
The request object. Request message for the
`ListPredictionApiKeyRegistrations`.
parent (str):
@@ -571,7 +577,10 @@ def list_prediction_api_key_registrations(

def delete_prediction_api_key_registration(
self,
request: prediction_apikey_registry_service.DeletePredictionApiKeyRegistrationRequest = None,
request: Union[
prediction_apikey_registry_service.DeletePredictionApiKeyRegistrationRequest,
dict,
] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -581,7 +590,7 @@ def delete_prediction_api_key_registration(
r"""Unregister an apiKey from using for predict method.
Args:
request (google.cloud.recommendationengine_v1beta1.types.DeletePredictionApiKeyRegistrationRequest):
request (Union[google.cloud.recommendationengine_v1beta1.types.DeletePredictionApiKeyRegistrationRequest, dict]):
The request object. Request message for
`DeletePredictionApiKeyRegistration` method.
name (str):
@@ -120,7 +120,7 @@ def __init__(
**scopes_kwargs, quota_project_id=quota_project_id
)

# If the credentials is service account credentials, then always try to use self signed JWT.
# If the credentials are service account credentials, then always try to use self signed JWT.
if (
always_use_jwt_access
and isinstance(credentials, service_account.Credentials)
@@ -88,16 +88,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
@@ -135,16 +135,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
@@ -17,7 +17,7 @@
from distutils import util
import os
import re
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib # type: ignore
@@ -361,7 +361,7 @@ def __init__(

def predict(
self,
request: prediction_service.PredictRequest = None,
request: Union[prediction_service.PredictRequest, dict] = None,
*,
name: str = None,
user_event: gcr_user_event.UserEvent = None,
@@ -376,7 +376,7 @@ def predict(
more </recommendations-ai/docs/setting-up#register-key>`__.
Args:
request (google.cloud.recommendationengine_v1beta1.types.PredictRequest):
request (Union[google.cloud.recommendationengine_v1beta1.types.PredictRequest, dict]):
The request object. Request message for Predict method.
name (str):
Required. Full resource name of the format:
@@ -117,7 +117,7 @@ def __init__(
**scopes_kwargs, quota_project_id=quota_project_id
)

# If the credentials is service account credentials, then always try to use self signed JWT.
# If the credentials are service account credentials, then always try to use self signed JWT.
if (
always_use_jwt_access
and isinstance(credentials, service_account.Credentials)
@@ -80,16 +80,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
@@ -127,16 +127,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
Loading

0 comments on commit ff8c418

Please sign in to comment.