Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
chore: use gapic-generator-python 0.51.2 (#174)
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 5b7e6b9 commit 96021b9
Show file tree
Hide file tree
Showing 112 changed files with 620 additions and 604 deletions.
38 changes: 19 additions & 19 deletions google/cloud/dialogflowcx_v3/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 @@ -444,7 +444,7 @@ def __init__(

def list_agents(
self,
request: agent.ListAgentsRequest = None,
request: Union[agent.ListAgentsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -455,7 +455,7 @@ def list_agents(
location.
Args:
request (google.cloud.dialogflowcx_v3.types.ListAgentsRequest):
request (Union[google.cloud.dialogflowcx_v3.types.ListAgentsRequest, dict]):
The request object. The request message for
[Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
parent (str):
Expand Down Expand Up @@ -525,7 +525,7 @@ def list_agents(

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

def create_agent(
self,
request: gcdc_agent.CreateAgentRequest = None,
request: Union[gcdc_agent.CreateAgentRequest, dict] = None,
*,
parent: str = None,
agent: gcdc_agent.Agent = None,
Expand All @@ -623,7 +623,7 @@ def create_agent(
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
Args:
request (google.cloud.dialogflowcx_v3.types.CreateAgentRequest):
request (Union[google.cloud.dialogflowcx_v3.types.CreateAgentRequest, dict]):
The request object. The request message for
[Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent].
parent (str):
Expand Down Expand Up @@ -703,7 +703,7 @@ def create_agent(

def update_agent(
self,
request: gcdc_agent.UpdateAgentRequest = None,
request: Union[gcdc_agent.UpdateAgentRequest, dict] = None,
*,
agent: gcdc_agent.Agent = None,
update_mask: field_mask_pb2.FieldMask = None,
Expand All @@ -718,7 +718,7 @@ def update_agent(
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
Args:
request (google.cloud.dialogflowcx_v3.types.UpdateAgentRequest):
request (Union[google.cloud.dialogflowcx_v3.types.UpdateAgentRequest, dict]):
The request object. The request message for
[Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent].
agent (google.cloud.dialogflowcx_v3.types.Agent):
Expand Down Expand Up @@ -801,7 +801,7 @@ def update_agent(

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

def export_agent(
self,
request: agent.ExportAgentRequest = None,
request: Union[agent.ExportAgentRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -883,7 +883,7 @@ def export_agent(
[ExportAgentResponse][google.cloud.dialogflow.cx.v3.ExportAgentResponse]
Args:
request (google.cloud.dialogflowcx_v3.types.ExportAgentRequest):
request (Union[google.cloud.dialogflowcx_v3.types.ExportAgentRequest, dict]):
The request object. The request message for
[Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent].
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -936,7 +936,7 @@ def export_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 All @@ -953,7 +953,7 @@ def restore_agent(
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
Args:
request (google.cloud.dialogflowcx_v3.types.RestoreAgentRequest):
request (Union[google.cloud.dialogflowcx_v3.types.RestoreAgentRequest, dict]):
The request object. The request message for
[Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent].
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -1015,7 +1015,7 @@ def restore_agent(

def validate_agent(
self,
request: agent.ValidateAgentRequest = None,
request: Union[agent.ValidateAgentRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -1027,7 +1027,7 @@ def validate_agent(
completed to get the complete validation results.
Args:
request (google.cloud.dialogflowcx_v3.types.ValidateAgentRequest):
request (Union[google.cloud.dialogflowcx_v3.types.ValidateAgentRequest, dict]):
The request object. The request message for
[Agents.ValidateAgent][google.cloud.dialogflow.cx.v3.Agents.ValidateAgent].
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -1068,7 +1068,7 @@ def validate_agent(

def get_agent_validation_result(
self,
request: agent.GetAgentValidationResultRequest = None,
request: Union[agent.GetAgentValidationResultRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -1079,7 +1079,7 @@ def get_agent_validation_result(
validation is performed when ValidateAgent is called.
Args:
request (google.cloud.dialogflowcx_v3.types.GetAgentValidationResultRequest):
request (Union[google.cloud.dialogflowcx_v3.types.GetAgentValidationResultRequest, dict]):
The request object. The request message for
[Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult].
name (str):
Expand Down
Expand Up @@ -124,7 +124,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 @@ -84,16 +84,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 @@ -131,16 +131,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
22 changes: 11 additions & 11 deletions google/cloud/dialogflowcx_v3/services/entity_types/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 @@ -356,7 +356,7 @@ def __init__(

def list_entity_types(
self,
request: entity_type.ListEntityTypesRequest = None,
request: Union[entity_type.ListEntityTypesRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -367,7 +367,7 @@ def list_entity_types(
agent.
Args:
request (google.cloud.dialogflowcx_v3.types.ListEntityTypesRequest):
request (Union[google.cloud.dialogflowcx_v3.types.ListEntityTypesRequest, dict]):
The request object. The request message for
[EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
parent (str):
Expand Down Expand Up @@ -438,7 +438,7 @@ def list_entity_types(

def get_entity_type(
self,
request: entity_type.GetEntityTypeRequest = None,
request: Union[entity_type.GetEntityTypeRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -448,7 +448,7 @@ def get_entity_type(
r"""Retrieves the specified entity type.
Args:
request (google.cloud.dialogflowcx_v3.types.GetEntityTypeRequest):
request (Union[google.cloud.dialogflowcx_v3.types.GetEntityTypeRequest, dict]):
The request object. The request message for
[EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType].
name (str):
Expand Down Expand Up @@ -541,7 +541,7 @@ def get_entity_type(

def create_entity_type(
self,
request: gcdc_entity_type.CreateEntityTypeRequest = None,
request: Union[gcdc_entity_type.CreateEntityTypeRequest, dict] = None,
*,
parent: str = None,
entity_type: gcdc_entity_type.EntityType = None,
Expand All @@ -556,7 +556,7 @@ def create_entity_type(
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
Args:
request (google.cloud.dialogflowcx_v3.types.CreateEntityTypeRequest):
request (Union[google.cloud.dialogflowcx_v3.types.CreateEntityTypeRequest, dict]):
The request object. The request message for
[EntityTypes.CreateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityType].
parent (str):
Expand Down Expand Up @@ -656,7 +656,7 @@ def create_entity_type(

def update_entity_type(
self,
request: gcdc_entity_type.UpdateEntityTypeRequest = None,
request: Union[gcdc_entity_type.UpdateEntityTypeRequest, dict] = None,
*,
entity_type: gcdc_entity_type.EntityType = None,
update_mask: field_mask_pb2.FieldMask = None,
Expand All @@ -671,7 +671,7 @@ def update_entity_type(
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
Args:
request (google.cloud.dialogflowcx_v3.types.UpdateEntityTypeRequest):
request (Union[google.cloud.dialogflowcx_v3.types.UpdateEntityTypeRequest, dict]):
The request object. The request message for
[EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
entity_type (google.cloud.dialogflowcx_v3.types.EntityType):
Expand Down Expand Up @@ -773,7 +773,7 @@ def update_entity_type(

def delete_entity_type(
self,
request: entity_type.DeleteEntityTypeRequest = None,
request: Union[entity_type.DeleteEntityTypeRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -787,7 +787,7 @@ def delete_entity_type(
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
Args:
request (google.cloud.dialogflowcx_v3.types.DeleteEntityTypeRequest):
request (Union[google.cloud.dialogflowcx_v3.types.DeleteEntityTypeRequest, dict]):
The request object. The request message for
[EntityTypes.DeleteEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityType].
name (str):
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 @@ -83,16 +83,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 @@ -130,16 +130,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 96021b9

Please sign in to comment.