Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
chore: use gapic-generator-python 0.51.2 (#87)
Browse files Browse the repository at this point in the history
- [ ] 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[bot] committed Sep 24, 2021
1 parent 8531382 commit ff8c418
Show file tree
Hide file tree
Showing 17 changed files with 87 additions and 78 deletions.
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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.
Expand Down
Expand Up @@ -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)
Expand Down
Expand Up @@ -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.
Expand Down
Expand Up @@ -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.
Expand Down
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down
Expand Up @@ -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)
Expand Down
Expand Up @@ -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.
Expand Down
Expand Up @@ -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.
Expand Down
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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:
Expand Down
Expand Up @@ -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)
Expand Down
Expand Up @@ -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.
Expand Down
Expand Up @@ -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.
Expand Down

0 comments on commit ff8c418

Please sign in to comment.