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

Commit

Permalink
chore: use gapic-generator-python 0.51.2 (#256)
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 27, 2021
1 parent d673fbd commit a97f88b
Show file tree
Hide file tree
Showing 18 changed files with 172 additions and 172 deletions.
74 changes: 37 additions & 37 deletions google/cloud/automl_v1/services/auto_ml/client.py
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 @@ -443,7 +443,7 @@ def __init__(

def create_dataset(
self,
request: service.CreateDatasetRequest = None,
request: Union[service.CreateDatasetRequest, dict] = None,
*,
parent: str = None,
dataset: gca_dataset.Dataset = None,
Expand All @@ -454,7 +454,7 @@ def create_dataset(
r"""Creates a dataset.
Args:
request (google.cloud.automl_v1.types.CreateDatasetRequest):
request (Union[google.cloud.automl_v1.types.CreateDatasetRequest, dict]):
The request object. Request message for
[AutoMl.CreateDataset][google.cloud.automl.v1.AutoMl.CreateDataset].
parent (str):
Expand Down Expand Up @@ -532,7 +532,7 @@ def create_dataset(

def get_dataset(
self,
request: service.GetDatasetRequest = None,
request: Union[service.GetDatasetRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -542,7 +542,7 @@ def get_dataset(
r"""Gets a dataset.
Args:
request (google.cloud.automl_v1.types.GetDatasetRequest):
request (Union[google.cloud.automl_v1.types.GetDatasetRequest, dict]):
The request object. Request message for
[AutoMl.GetDataset][google.cloud.automl.v1.AutoMl.GetDataset].
name (str):
Expand Down Expand Up @@ -605,7 +605,7 @@ def get_dataset(

def list_datasets(
self,
request: service.ListDatasetsRequest = None,
request: Union[service.ListDatasetsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -615,7 +615,7 @@ def list_datasets(
r"""Lists datasets in a project.
Args:
request (google.cloud.automl_v1.types.ListDatasetsRequest):
request (Union[google.cloud.automl_v1.types.ListDatasetsRequest, dict]):
The request object. Request message for
[AutoMl.ListDatasets][google.cloud.automl.v1.AutoMl.ListDatasets].
parent (str):
Expand Down Expand Up @@ -685,7 +685,7 @@ def list_datasets(

def update_dataset(
self,
request: service.UpdateDatasetRequest = None,
request: Union[service.UpdateDatasetRequest, dict] = None,
*,
dataset: gca_dataset.Dataset = None,
update_mask: field_mask_pb2.FieldMask = None,
Expand All @@ -696,7 +696,7 @@ def update_dataset(
r"""Updates a dataset.
Args:
request (google.cloud.automl_v1.types.UpdateDatasetRequest):
request (Union[google.cloud.automl_v1.types.UpdateDatasetRequest, dict]):
The request object. Request message for
[AutoMl.UpdateDataset][google.cloud.automl.v1.AutoMl.UpdateDataset]
dataset (google.cloud.automl_v1.types.Dataset):
Expand Down Expand Up @@ -770,7 +770,7 @@ def update_dataset(

def delete_dataset(
self,
request: service.DeleteDatasetRequest = None,
request: Union[service.DeleteDatasetRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -784,7 +784,7 @@ def delete_dataset(
[metadata][google.longrunning.Operation.metadata] field.
Args:
request (google.cloud.automl_v1.types.DeleteDatasetRequest):
request (Union[google.cloud.automl_v1.types.DeleteDatasetRequest, dict]):
The request object. Request message for
[AutoMl.DeleteDataset][google.cloud.automl.v1.AutoMl.DeleteDataset].
name (str):
Expand Down Expand Up @@ -866,7 +866,7 @@ def delete_dataset(

def import_data(
self,
request: service.ImportDataRequest = None,
request: Union[service.ImportDataRequest, dict] = None,
*,
name: str = None,
input_config: io.InputConfig = None,
Expand All @@ -886,7 +886,7 @@ def import_data(
field when it completes.
Args:
request (google.cloud.automl_v1.types.ImportDataRequest):
request (Union[google.cloud.automl_v1.types.ImportDataRequest, dict]):
The request object. Request message for
[AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData].
name (str):
Expand Down Expand Up @@ -979,7 +979,7 @@ def import_data(

def export_data(
self,
request: service.ExportDataRequest = None,
request: Union[service.ExportDataRequest, dict] = None,
*,
name: str = None,
output_config: io.OutputConfig = None,
Expand All @@ -993,7 +993,7 @@ def export_data(
completes.
Args:
request (google.cloud.automl_v1.types.ExportDataRequest):
request (Union[google.cloud.automl_v1.types.ExportDataRequest, dict]):
The request object. Request message for
[AutoMl.ExportData][google.cloud.automl.v1.AutoMl.ExportData].
name (str):
Expand Down Expand Up @@ -1084,7 +1084,7 @@ def export_data(

def get_annotation_spec(
self,
request: service.GetAnnotationSpecRequest = None,
request: Union[service.GetAnnotationSpecRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -1094,7 +1094,7 @@ def get_annotation_spec(
r"""Gets an annotation spec.
Args:
request (google.cloud.automl_v1.types.GetAnnotationSpecRequest):
request (Union[google.cloud.automl_v1.types.GetAnnotationSpecRequest, dict]):
The request object. Request message for
[AutoMl.GetAnnotationSpec][google.cloud.automl.v1.AutoMl.GetAnnotationSpec].
name (str):
Expand Down Expand Up @@ -1153,7 +1153,7 @@ def get_annotation_spec(

def create_model(
self,
request: service.CreateModelRequest = None,
request: Union[service.CreateModelRequest, dict] = None,
*,
parent: str = None,
model: gca_model.Model = None,
Expand All @@ -1168,7 +1168,7 @@ def create_model(
each annotation spec.
Args:
request (google.cloud.automl_v1.types.CreateModelRequest):
request (Union[google.cloud.automl_v1.types.CreateModelRequest, dict]):
The request object. Request message for
[AutoMl.CreateModel][google.cloud.automl.v1.AutoMl.CreateModel].
parent (str):
Expand Down Expand Up @@ -1248,7 +1248,7 @@ def create_model(

def get_model(
self,
request: service.GetModelRequest = None,
request: Union[service.GetModelRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -1258,7 +1258,7 @@ def get_model(
r"""Gets a model.
Args:
request (google.cloud.automl_v1.types.GetModelRequest):
request (Union[google.cloud.automl_v1.types.GetModelRequest, dict]):
The request object. Request message for
[AutoMl.GetModel][google.cloud.automl.v1.AutoMl.GetModel].
name (str):
Expand Down Expand Up @@ -1317,7 +1317,7 @@ def get_model(

def list_models(
self,
request: service.ListModelsRequest = None,
request: Union[service.ListModelsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -1327,7 +1327,7 @@ def list_models(
r"""Lists models.
Args:
request (google.cloud.automl_v1.types.ListModelsRequest):
request (Union[google.cloud.automl_v1.types.ListModelsRequest, dict]):
The request object. Request message for
[AutoMl.ListModels][google.cloud.automl.v1.AutoMl.ListModels].
parent (str):
Expand Down Expand Up @@ -1397,7 +1397,7 @@ def list_models(

def delete_model(
self,
request: service.DeleteModelRequest = None,
request: Union[service.DeleteModelRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -1410,7 +1410,7 @@ def delete_model(
[metadata][google.longrunning.Operation.metadata] field.
Args:
request (google.cloud.automl_v1.types.DeleteModelRequest):
request (Union[google.cloud.automl_v1.types.DeleteModelRequest, dict]):
The request object. Request message for
[AutoMl.DeleteModel][google.cloud.automl.v1.AutoMl.DeleteModel].
name (str):
Expand Down Expand Up @@ -1492,7 +1492,7 @@ def delete_model(

def update_model(
self,
request: service.UpdateModelRequest = None,
request: Union[service.UpdateModelRequest, dict] = None,
*,
model: gca_model.Model = None,
update_mask: field_mask_pb2.FieldMask = None,
Expand All @@ -1503,7 +1503,7 @@ def update_model(
r"""Updates a model.
Args:
request (google.cloud.automl_v1.types.UpdateModelRequest):
request (Union[google.cloud.automl_v1.types.UpdateModelRequest, dict]):
The request object. Request message for
[AutoMl.UpdateModel][google.cloud.automl.v1.AutoMl.UpdateModel]
model (google.cloud.automl_v1.types.Model):
Expand Down Expand Up @@ -1575,7 +1575,7 @@ def update_model(

def deploy_model(
self,
request: service.DeployModelRequest = None,
request: Union[service.DeployModelRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -1599,7 +1599,7 @@ def deploy_model(
completes.
Args:
request (google.cloud.automl_v1.types.DeployModelRequest):
request (Union[google.cloud.automl_v1.types.DeployModelRequest, dict]):
The request object. Request message for
[AutoMl.DeployModel][google.cloud.automl.v1.AutoMl.DeployModel].
name (str):
Expand Down Expand Up @@ -1681,7 +1681,7 @@ def deploy_model(

def undeploy_model(
self,
request: service.UndeployModelRequest = None,
request: Union[service.UndeployModelRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -1699,7 +1699,7 @@ def undeploy_model(
completes.
Args:
request (google.cloud.automl_v1.types.UndeployModelRequest):
request (Union[google.cloud.automl_v1.types.UndeployModelRequest, dict]):
The request object. Request message for
[AutoMl.UndeployModel][google.cloud.automl.v1.AutoMl.UndeployModel].
name (str):
Expand Down Expand Up @@ -1781,7 +1781,7 @@ def undeploy_model(

def export_model(
self,
request: service.ExportModelRequest = None,
request: Union[service.ExportModelRequest, dict] = None,
*,
name: str = None,
output_config: io.ModelExportOutputConfig = None,
Expand All @@ -1799,7 +1799,7 @@ def export_model(
completes.
Args:
request (google.cloud.automl_v1.types.ExportModelRequest):
request (Union[google.cloud.automl_v1.types.ExportModelRequest, dict]):
The request object. Request message for
[AutoMl.ExportModel][google.cloud.automl.v1.AutoMl.ExportModel].
Models need to be enabled for exporting, otherwise an
Expand Down Expand Up @@ -1892,7 +1892,7 @@ def export_model(

def get_model_evaluation(
self,
request: service.GetModelEvaluationRequest = None,
request: Union[service.GetModelEvaluationRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -1902,7 +1902,7 @@ def get_model_evaluation(
r"""Gets a model evaluation.
Args:
request (google.cloud.automl_v1.types.GetModelEvaluationRequest):
request (Union[google.cloud.automl_v1.types.GetModelEvaluationRequest, dict]):
The request object. Request message for
[AutoMl.GetModelEvaluation][google.cloud.automl.v1.AutoMl.GetModelEvaluation].
name (str):
Expand Down Expand Up @@ -1961,7 +1961,7 @@ def get_model_evaluation(

def list_model_evaluations(
self,
request: service.ListModelEvaluationsRequest = None,
request: Union[service.ListModelEvaluationsRequest, dict] = None,
*,
parent: str = None,
filter: str = None,
Expand All @@ -1972,7 +1972,7 @@ def list_model_evaluations(
r"""Lists model evaluations.
Args:
request (google.cloud.automl_v1.types.ListModelEvaluationsRequest):
request (Union[google.cloud.automl_v1.types.ListModelEvaluationsRequest, dict]):
The request object. Request message for
[AutoMl.ListModelEvaluations][google.cloud.automl.v1.AutoMl.ListModelEvaluations].
parent (str):
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/automl_v1/services/auto_ml/transports/base.py
Expand Up @@ -123,7 +123,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
6 changes: 3 additions & 3 deletions google/cloud/automl_v1/services/auto_ml/transports/grpc.py
Expand Up @@ -102,16 +102,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 @@ -149,16 +149,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 a97f88b

Please sign in to comment.