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

Commit

Permalink
chore: use gapic-generator-python 0.51.2 (#398)
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 b03678b commit 12b4f60
Show file tree
Hide file tree
Showing 124 changed files with 804 additions and 784 deletions.
38 changes: 19 additions & 19 deletions google/cloud/dialogflow_v2/services/agents/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 @@ -351,7 +351,7 @@ def __init__(

def get_agent(
self,
request: agent.GetAgentRequest = None,
request: Union[agent.GetAgentRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -361,7 +361,7 @@ def get_agent(
r"""Retrieves the specified agent.
Args:
request (google.cloud.dialogflow_v2.types.GetAgentRequest):
request (Union[google.cloud.dialogflow_v2.types.GetAgentRequest, dict]):
The request object. The request message for
[Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent].
parent (str):
Expand Down Expand Up @@ -431,7 +431,7 @@ def get_agent(

def set_agent(
self,
request: gcd_agent.SetAgentRequest = None,
request: Union[gcd_agent.SetAgentRequest, dict] = None,
*,
agent: gcd_agent.Agent = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -445,7 +445,7 @@ def set_agent(
documentation <https://cloud.google.com/dialogflow/es/docs/training>`__.
Args:
request (google.cloud.dialogflow_v2.types.SetAgentRequest):
request (Union[google.cloud.dialogflow_v2.types.SetAgentRequest, dict]):
The request object. The request message for
[Agents.SetAgent][google.cloud.dialogflow.v2.Agents.SetAgent].
agent (google.cloud.dialogflow_v2.types.Agent):
Expand Down Expand Up @@ -515,7 +515,7 @@ def set_agent(

def delete_agent(
self,
request: agent.DeleteAgentRequest = None,
request: Union[agent.DeleteAgentRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -525,7 +525,7 @@ def delete_agent(
r"""Deletes the specified agent.
Args:
request (google.cloud.dialogflow_v2.types.DeleteAgentRequest):
request (Union[google.cloud.dialogflow_v2.types.DeleteAgentRequest, dict]):
The request object. The request message for
[Agents.DeleteAgent][google.cloud.dialogflow.v2.Agents.DeleteAgent].
parent (str):
Expand Down Expand Up @@ -579,7 +579,7 @@ def delete_agent(

def search_agents(
self,
request: agent.SearchAgentsRequest = None,
request: Union[agent.SearchAgentsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -595,7 +595,7 @@ def search_agents(
Sub-Collections <https://cloud.google.com/apis/design/design_patterns#list_sub-collections>`__.
Args:
request (google.cloud.dialogflow_v2.types.SearchAgentsRequest):
request (Union[google.cloud.dialogflow_v2.types.SearchAgentsRequest, dict]):
The request object. The request message for
[Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
parent (str):
Expand Down Expand Up @@ -665,7 +665,7 @@ def search_agents(

def train_agent(
self,
request: agent.TrainAgentRequest = None,
request: Union[agent.TrainAgentRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -689,7 +689,7 @@ def train_agent(
documentation <https://cloud.google.com/dialogflow/es/docs/training>`__.
Args:
request (google.cloud.dialogflow_v2.types.TrainAgentRequest):
request (Union[google.cloud.dialogflow_v2.types.TrainAgentRequest, dict]):
The request object. The request message for
[Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent].
parent (str):
Expand Down Expand Up @@ -771,7 +771,7 @@ def train_agent(

def export_agent(
self,
request: agent.ExportAgentRequest = None,
request: Union[agent.ExportAgentRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -791,7 +791,7 @@ def export_agent(
[ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]
Args:
request (google.cloud.dialogflow_v2.types.ExportAgentRequest):
request (Union[google.cloud.dialogflow_v2.types.ExportAgentRequest, dict]):
The request object. The request message for
[Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
parent (str):
Expand Down Expand Up @@ -864,7 +864,7 @@ def export_agent(

def import_agent(
self,
request: agent.ImportAgentRequest = None,
request: Union[agent.ImportAgentRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand Down Expand Up @@ -901,7 +901,7 @@ def import_agent(
documentation <https://cloud.google.com/dialogflow/es/docs/training>`__.
Args:
request (google.cloud.dialogflow_v2.types.ImportAgentRequest):
request (Union[google.cloud.dialogflow_v2.types.ImportAgentRequest, dict]):
The request object. The request message for
[Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent].
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -963,7 +963,7 @@ def import_agent(

def restore_agent(
self,
request: agent.RestoreAgentRequest = None,
request: Union[agent.RestoreAgentRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand Down Expand Up @@ -998,7 +998,7 @@ def restore_agent(
documentation <https://cloud.google.com/dialogflow/es/docs/training>`__.
Args:
request (google.cloud.dialogflow_v2.types.RestoreAgentRequest):
request (Union[google.cloud.dialogflow_v2.types.RestoreAgentRequest, dict]):
The request object. The request message for
[Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent].
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -1060,7 +1060,7 @@ def restore_agent(

def get_validation_result(
self,
request: agent.GetValidationResultRequest = None,
request: Union[agent.GetValidationResultRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -1071,7 +1071,7 @@ def get_validation_result(
automatically when training is completed.
Args:
request (google.cloud.dialogflow_v2.types.GetValidationResultRequest):
request (Union[google.cloud.dialogflow_v2.types.GetValidationResultRequest, dict]):
The request object. The request message for
[Agents.GetValidationResult][google.cloud.dialogflow.v2.Agents.GetValidationResult].
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down
Expand Up @@ -125,7 +125,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/dialogflow_v2/services/agents/transports/grpc.py
Expand Up @@ -85,16 +85,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 @@ -132,16 +132,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
10 changes: 5 additions & 5 deletions google/cloud/dialogflow_v2/services/answer_records/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 @@ -353,7 +353,7 @@ def __init__(

def list_answer_records(
self,
request: answer_record.ListAnswerRecordsRequest = None,
request: Union[answer_record.ListAnswerRecordsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -364,7 +364,7 @@ def list_answer_records(
specified project in reverse chronological order.
Args:
request (google.cloud.dialogflow_v2.types.ListAnswerRecordsRequest):
request (Union[google.cloud.dialogflow_v2.types.ListAnswerRecordsRequest, dict]):
The request object. Request message for
[AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords].
parent (str):
Expand Down Expand Up @@ -435,7 +435,7 @@ def list_answer_records(

def update_answer_record(
self,
request: gcd_answer_record.UpdateAnswerRecordRequest = None,
request: Union[gcd_answer_record.UpdateAnswerRecordRequest, dict] = None,
*,
answer_record: gcd_answer_record.AnswerRecord = None,
update_mask: field_mask_pb2.FieldMask = None,
Expand All @@ -446,7 +446,7 @@ def update_answer_record(
r"""Updates the specified answer record.
Args:
request (google.cloud.dialogflow_v2.types.UpdateAnswerRecordRequest):
request (Union[google.cloud.dialogflow_v2.types.UpdateAnswerRecordRequest, dict]):
The request object. Request message for
[AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord].
answer_record (google.cloud.dialogflow_v2.types.AnswerRecord):
Expand Down
Expand Up @@ -121,7 +121,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 @@ -82,16 +82,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 @@ -129,16 +129,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 12b4f60

Please sign in to comment.