diff --git a/google/cloud/dialogflowcx_v3/services/agents/client.py b/google/cloud/dialogflowcx_v3/services/agents/client.py index 26626f2e..be832cc0 100644 --- a/google/cloud/dialogflowcx_v3/services/agents/client.py +++ b/google/cloud/dialogflowcx_v3/services/agents/client.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 @@ -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, @@ -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): @@ -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, @@ -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): @@ -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, @@ -623,7 +623,7 @@ def create_agent( documentation `__. 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): @@ -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, @@ -718,7 +718,7 @@ def update_agent( documentation `__. 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): @@ -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, @@ -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): @@ -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, @@ -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, @@ -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, @@ -953,7 +953,7 @@ def restore_agent( documentation `__. 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, @@ -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, @@ -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, @@ -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, @@ -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): diff --git a/google/cloud/dialogflowcx_v3/services/agents/transports/base.py b/google/cloud/dialogflowcx_v3/services/agents/transports/base.py index ee150fc4..22322803 100644 --- a/google/cloud/dialogflowcx_v3/services/agents/transports/base.py +++ b/google/cloud/dialogflowcx_v3/services/agents/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3/services/agents/transports/grpc.py b/google/cloud/dialogflowcx_v3/services/agents/transports/grpc.py index 36408525..198a8c62 100644 --- a/google/cloud/dialogflowcx_v3/services/agents/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3/services/agents/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/agents/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3/services/agents/transports/grpc_asyncio.py index 491694cf..c2c72a6f 100644 --- a/google/cloud/dialogflowcx_v3/services/agents/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3/services/agents/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/entity_types/client.py b/google/cloud/dialogflowcx_v3/services/entity_types/client.py index d59f86b7..3e1d2dfd 100644 --- a/google/cloud/dialogflowcx_v3/services/entity_types/client.py +++ b/google/cloud/dialogflowcx_v3/services/entity_types/client.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 @@ -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, @@ -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): @@ -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, @@ -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): @@ -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, @@ -556,7 +556,7 @@ def create_entity_type( documentation `__. 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): @@ -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, @@ -671,7 +671,7 @@ def update_entity_type( documentation `__. 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): @@ -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, @@ -787,7 +787,7 @@ def delete_entity_type( documentation `__. 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): diff --git a/google/cloud/dialogflowcx_v3/services/entity_types/transports/base.py b/google/cloud/dialogflowcx_v3/services/entity_types/transports/base.py index fe44ea0f..4c976e4f 100644 --- a/google/cloud/dialogflowcx_v3/services/entity_types/transports/base.py +++ b/google/cloud/dialogflowcx_v3/services/entity_types/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3/services/entity_types/transports/grpc.py b/google/cloud/dialogflowcx_v3/services/entity_types/transports/grpc.py index 9ad26c81..9abac77f 100644 --- a/google/cloud/dialogflowcx_v3/services/entity_types/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3/services/entity_types/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/entity_types/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3/services/entity_types/transports/grpc_asyncio.py index 167661be..68f854f4 100644 --- a/google/cloud/dialogflowcx_v3/services/entity_types/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3/services/entity_types/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/environments/client.py b/google/cloud/dialogflowcx_v3/services/environments/client.py index c12674ef..82df3db8 100644 --- a/google/cloud/dialogflowcx_v3/services/environments/client.py +++ b/google/cloud/dialogflowcx_v3/services/environments/client.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 @@ -426,7 +426,7 @@ def __init__( def list_environments( self, - request: environment.ListEnvironmentsRequest = None, + request: Union[environment.ListEnvironmentsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -437,7 +437,7 @@ def list_environments( [Agent][google.cloud.dialogflow.cx.v3.Agent]. Args: - request (google.cloud.dialogflowcx_v3.types.ListEnvironmentsRequest): + request (Union[google.cloud.dialogflowcx_v3.types.ListEnvironmentsRequest, dict]): The request object. The request message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments]. parent (str): @@ -509,7 +509,7 @@ def list_environments( def get_environment( self, - request: environment.GetEnvironmentRequest = None, + request: Union[environment.GetEnvironmentRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -520,7 +520,7 @@ def get_environment( [Environment][google.cloud.dialogflow.cx.v3.Environment]. Args: - request (google.cloud.dialogflowcx_v3.types.GetEnvironmentRequest): + request (Union[google.cloud.dialogflowcx_v3.types.GetEnvironmentRequest, dict]): The request object. The request message for [Environments.GetEnvironment][google.cloud.dialogflow.cx.v3.Environments.GetEnvironment]. name (str): @@ -596,7 +596,7 @@ def get_environment( def create_environment( self, - request: gcdc_environment.CreateEnvironmentRequest = None, + request: Union[gcdc_environment.CreateEnvironmentRequest, dict] = None, *, parent: str = None, environment: gcdc_environment.Environment = None, @@ -609,7 +609,7 @@ def create_environment( specified [Agent][google.cloud.dialogflow.cx.v3.Agent]. Args: - request (google.cloud.dialogflowcx_v3.types.CreateEnvironmentRequest): + request (Union[google.cloud.dialogflowcx_v3.types.CreateEnvironmentRequest, dict]): The request object. The request message for [Environments.CreateEnvironment][google.cloud.dialogflow.cx.v3.Environments.CreateEnvironment]. parent (str): @@ -700,7 +700,7 @@ def create_environment( def update_environment( self, - request: gcdc_environment.UpdateEnvironmentRequest = None, + request: Union[gcdc_environment.UpdateEnvironmentRequest, dict] = None, *, environment: gcdc_environment.Environment = None, update_mask: field_mask_pb2.FieldMask = None, @@ -712,7 +712,7 @@ def update_environment( [Environment][google.cloud.dialogflow.cx.v3.Environment]. Args: - request (google.cloud.dialogflowcx_v3.types.UpdateEnvironmentRequest): + request (Union[google.cloud.dialogflowcx_v3.types.UpdateEnvironmentRequest, dict]): The request object. The request message for [Environments.UpdateEnvironment][google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironment]. environment (google.cloud.dialogflowcx_v3.types.Environment): @@ -801,7 +801,7 @@ def update_environment( def delete_environment( self, - request: environment.DeleteEnvironmentRequest = None, + request: Union[environment.DeleteEnvironmentRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -812,7 +812,7 @@ def delete_environment( [Environment][google.cloud.dialogflow.cx.v3.Environment]. Args: - request (google.cloud.dialogflowcx_v3.types.DeleteEnvironmentRequest): + request (Union[google.cloud.dialogflowcx_v3.types.DeleteEnvironmentRequest, dict]): The request object. The request message for [Environments.DeleteEnvironment][google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironment]. name (str): @@ -868,7 +868,7 @@ def delete_environment( def lookup_environment_history( self, - request: environment.LookupEnvironmentHistoryRequest = None, + request: Union[environment.LookupEnvironmentHistoryRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -879,7 +879,7 @@ def lookup_environment_history( [Environment][google.cloud.dialogflow.cx.v3.Environment]. Args: - request (google.cloud.dialogflowcx_v3.types.LookupEnvironmentHistoryRequest): + request (Union[google.cloud.dialogflowcx_v3.types.LookupEnvironmentHistoryRequest, dict]): The request object. The request message for [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory]. name (str): @@ -952,7 +952,7 @@ def lookup_environment_history( def run_continuous_test( self, - request: environment.RunContinuousTestRequest = None, + request: Union[environment.RunContinuousTestRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -962,7 +962,7 @@ def run_continuous_test( [Environment][google.cloud.dialogflow.cx.v3.Environment]. Args: - request (google.cloud.dialogflowcx_v3.types.RunContinuousTestRequest): + request (Union[google.cloud.dialogflowcx_v3.types.RunContinuousTestRequest, dict]): The request object. The request message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1017,7 +1017,7 @@ def run_continuous_test( def list_continuous_test_results( self, - request: environment.ListContinuousTestResultsRequest = None, + request: Union[environment.ListContinuousTestResultsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -1028,7 +1028,7 @@ def list_continuous_test_results( environment. Args: - request (google.cloud.dialogflowcx_v3.types.ListContinuousTestResultsRequest): + request (Union[google.cloud.dialogflowcx_v3.types.ListContinuousTestResultsRequest, dict]): The request object. The request message for [Environments.ListContinuousTestResults][google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResults]. parent (str): diff --git a/google/cloud/dialogflowcx_v3/services/environments/transports/base.py b/google/cloud/dialogflowcx_v3/services/environments/transports/base.py index a065d0b1..fc8ac583 100644 --- a/google/cloud/dialogflowcx_v3/services/environments/transports/base.py +++ b/google/cloud/dialogflowcx_v3/services/environments/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3/services/environments/transports/grpc.py b/google/cloud/dialogflowcx_v3/services/environments/transports/grpc.py index 1f2abf3d..ba7e152e 100644 --- a/google/cloud/dialogflowcx_v3/services/environments/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3/services/environments/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/environments/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3/services/environments/transports/grpc_asyncio.py index 79606cbf..b8422702 100644 --- a/google/cloud/dialogflowcx_v3/services/environments/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3/services/environments/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/experiments/client.py b/google/cloud/dialogflowcx_v3/services/experiments/client.py index 8f0f9606..76ab8bf0 100644 --- a/google/cloud/dialogflowcx_v3/services/experiments/client.py +++ b/google/cloud/dialogflowcx_v3/services/experiments/client.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 @@ -380,7 +380,7 @@ def __init__( def list_experiments( self, - request: experiment.ListExperimentsRequest = None, + request: Union[experiment.ListExperimentsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -391,7 +391,7 @@ def list_experiments( [Environment][google.cloud.dialogflow.cx.v3.Environment]. Args: - request (google.cloud.dialogflowcx_v3.types.ListExperimentsRequest): + request (Union[google.cloud.dialogflowcx_v3.types.ListExperimentsRequest, dict]): The request object. The request message for [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments]. parent (str): @@ -463,7 +463,7 @@ def list_experiments( def get_experiment( self, - request: experiment.GetExperimentRequest = None, + request: Union[experiment.GetExperimentRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -474,7 +474,7 @@ def get_experiment( [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. Args: - request (google.cloud.dialogflowcx_v3.types.GetExperimentRequest): + request (Union[google.cloud.dialogflowcx_v3.types.GetExperimentRequest, dict]): The request object. The request message for [Experiments.GetExperiment][google.cloud.dialogflow.cx.v3.Experiments.GetExperiment]. name (str): @@ -537,7 +537,7 @@ def get_experiment( def create_experiment( self, - request: gcdc_experiment.CreateExperimentRequest = None, + request: Union[gcdc_experiment.CreateExperimentRequest, dict] = None, *, parent: str = None, experiment: gcdc_experiment.Experiment = None, @@ -551,7 +551,7 @@ def create_experiment( [Environment][google.cloud.dialogflow.cx.v3.Environment]. Args: - request (google.cloud.dialogflowcx_v3.types.CreateExperimentRequest): + request (Union[google.cloud.dialogflowcx_v3.types.CreateExperimentRequest, dict]): The request object. The request message for [Experiments.CreateExperiment][google.cloud.dialogflow.cx.v3.Experiments.CreateExperiment]. parent (str): @@ -623,7 +623,7 @@ def create_experiment( def update_experiment( self, - request: gcdc_experiment.UpdateExperimentRequest = None, + request: Union[gcdc_experiment.UpdateExperimentRequest, dict] = None, *, experiment: gcdc_experiment.Experiment = None, update_mask: field_mask_pb2.FieldMask = None, @@ -635,7 +635,7 @@ def update_experiment( [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. Args: - request (google.cloud.dialogflowcx_v3.types.UpdateExperimentRequest): + request (Union[google.cloud.dialogflowcx_v3.types.UpdateExperimentRequest, dict]): The request object. The request message for [Experiments.UpdateExperiment][google.cloud.dialogflow.cx.v3.Experiments.UpdateExperiment]. experiment (google.cloud.dialogflowcx_v3.types.Experiment): @@ -705,7 +705,7 @@ def update_experiment( def delete_experiment( self, - request: experiment.DeleteExperimentRequest = None, + request: Union[experiment.DeleteExperimentRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -716,7 +716,7 @@ def delete_experiment( [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. Args: - request (google.cloud.dialogflowcx_v3.types.DeleteExperimentRequest): + request (Union[google.cloud.dialogflowcx_v3.types.DeleteExperimentRequest, dict]): The request object. The request message for [Experiments.DeleteExperiment][google.cloud.dialogflow.cx.v3.Experiments.DeleteExperiment]. name (str): @@ -772,7 +772,7 @@ def delete_experiment( def start_experiment( self, - request: experiment.StartExperimentRequest = None, + request: Union[experiment.StartExperimentRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -784,7 +784,7 @@ def start_experiment( only changes the state of experiment from PENDING to RUNNING. Args: - request (google.cloud.dialogflowcx_v3.types.StartExperimentRequest): + request (Union[google.cloud.dialogflowcx_v3.types.StartExperimentRequest, dict]): The request object. The request message for [Experiments.StartExperiment][google.cloud.dialogflow.cx.v3.Experiments.StartExperiment]. name (str): @@ -846,7 +846,7 @@ def start_experiment( def stop_experiment( self, - request: experiment.StopExperimentRequest = None, + request: Union[experiment.StopExperimentRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -858,7 +858,7 @@ def stop_experiment( only changes the state of experiment from RUNNING to DONE. Args: - request (google.cloud.dialogflowcx_v3.types.StopExperimentRequest): + request (Union[google.cloud.dialogflowcx_v3.types.StopExperimentRequest, dict]): The request object. The request message for [Experiments.StopExperiment][google.cloud.dialogflow.cx.v3.Experiments.StopExperiment]. name (str): diff --git a/google/cloud/dialogflowcx_v3/services/experiments/transports/base.py b/google/cloud/dialogflowcx_v3/services/experiments/transports/base.py index f783fa00..eb9a2468 100644 --- a/google/cloud/dialogflowcx_v3/services/experiments/transports/base.py +++ b/google/cloud/dialogflowcx_v3/services/experiments/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3/services/experiments/transports/grpc.py b/google/cloud/dialogflowcx_v3/services/experiments/transports/grpc.py index 81456f08..3405b1be 100644 --- a/google/cloud/dialogflowcx_v3/services/experiments/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3/services/experiments/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/experiments/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3/services/experiments/transports/grpc_asyncio.py index fd4a8100..5fed363d 100644 --- a/google/cloud/dialogflowcx_v3/services/experiments/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3/services/experiments/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/flows/client.py b/google/cloud/dialogflowcx_v3/services/flows/client.py index a01607b7..fca4b181 100644 --- a/google/cloud/dialogflowcx_v3/services/flows/client.py +++ b/google/cloud/dialogflowcx_v3/services/flows/client.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 @@ -449,7 +449,7 @@ def __init__( def create_flow( self, - request: gcdc_flow.CreateFlowRequest = None, + request: Union[gcdc_flow.CreateFlowRequest, dict] = None, *, parent: str = None, flow: gcdc_flow.Flow = None, @@ -464,7 +464,7 @@ def create_flow( documentation `__. Args: - request (google.cloud.dialogflowcx_v3.types.CreateFlowRequest): + request (Union[google.cloud.dialogflowcx_v3.types.CreateFlowRequest, dict]): The request object. The request message for [Flows.CreateFlow][google.cloud.dialogflow.cx.v3.Flows.CreateFlow]. parent (str): @@ -553,7 +553,7 @@ def create_flow( def delete_flow( self, - request: flow.DeleteFlowRequest = None, + request: Union[flow.DeleteFlowRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -563,7 +563,7 @@ def delete_flow( r"""Deletes a specified flow. Args: - request (google.cloud.dialogflowcx_v3.types.DeleteFlowRequest): + request (Union[google.cloud.dialogflowcx_v3.types.DeleteFlowRequest, dict]): The request object. The request message for [Flows.DeleteFlow][google.cloud.dialogflow.cx.v3.Flows.DeleteFlow]. name (str): @@ -617,7 +617,7 @@ def delete_flow( def list_flows( self, - request: flow.ListFlowsRequest = None, + request: Union[flow.ListFlowsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -627,7 +627,7 @@ def list_flows( r"""Returns the list of all flows in the specified agent. Args: - request (google.cloud.dialogflowcx_v3.types.ListFlowsRequest): + request (Union[google.cloud.dialogflowcx_v3.types.ListFlowsRequest, dict]): The request object. The request message for [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows]. parent (str): @@ -697,7 +697,7 @@ def list_flows( def get_flow( self, - request: flow.GetFlowRequest = None, + request: Union[flow.GetFlowRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -707,7 +707,7 @@ def get_flow( r"""Retrieves the specified flow. Args: - request (google.cloud.dialogflowcx_v3.types.GetFlowRequest): + request (Union[google.cloud.dialogflowcx_v3.types.GetFlowRequest, dict]): The request object. The response message for [Flows.GetFlow][google.cloud.dialogflow.cx.v3.Flows.GetFlow]. name (str): @@ -789,7 +789,7 @@ def get_flow( def update_flow( self, - request: gcdc_flow.UpdateFlowRequest = None, + request: Union[gcdc_flow.UpdateFlowRequest, dict] = None, *, flow: gcdc_flow.Flow = None, update_mask: field_mask_pb2.FieldMask = None, @@ -804,7 +804,7 @@ def update_flow( documentation `__. Args: - request (google.cloud.dialogflowcx_v3.types.UpdateFlowRequest): + request (Union[google.cloud.dialogflowcx_v3.types.UpdateFlowRequest, dict]): The request object. The request message for [Flows.UpdateFlow][google.cloud.dialogflow.cx.v3.Flows.UpdateFlow]. flow (google.cloud.dialogflowcx_v3.types.Flow): @@ -896,7 +896,7 @@ def update_flow( def train_flow( self, - request: flow.TrainFlowRequest = None, + request: Union[flow.TrainFlowRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -911,7 +911,7 @@ def train_flow( documentation `__. Args: - request (google.cloud.dialogflowcx_v3.types.TrainFlowRequest): + request (Union[google.cloud.dialogflowcx_v3.types.TrainFlowRequest, dict]): The request object. The request message for [Flows.TrainFlow][google.cloud.dialogflow.cx.v3.Flows.TrainFlow]. name (str): @@ -993,7 +993,7 @@ def train_flow( def validate_flow( self, - request: flow.ValidateFlowRequest = None, + request: Union[flow.ValidateFlowRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -1005,7 +1005,7 @@ def validate_flow( results. Args: - request (google.cloud.dialogflowcx_v3.types.ValidateFlowRequest): + request (Union[google.cloud.dialogflowcx_v3.types.ValidateFlowRequest, dict]): The request object. The request message for [Flows.ValidateFlow][google.cloud.dialogflow.cx.v3.Flows.ValidateFlow]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1046,7 +1046,7 @@ def validate_flow( def get_flow_validation_result( self, - request: flow.GetFlowValidationResultRequest = None, + request: Union[flow.GetFlowValidationResultRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -1057,7 +1057,7 @@ def get_flow_validation_result( validation is performed when ValidateFlow is called. Args: - request (google.cloud.dialogflowcx_v3.types.GetFlowValidationResultRequest): + request (Union[google.cloud.dialogflowcx_v3.types.GetFlowValidationResultRequest, dict]): The request object. The request message for [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult]. name (str): @@ -1120,7 +1120,7 @@ def get_flow_validation_result( def import_flow( self, - request: flow.ImportFlowRequest = None, + request: Union[flow.ImportFlowRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -1134,7 +1134,7 @@ def import_flow( documentation `__. Args: - request (google.cloud.dialogflowcx_v3.types.ImportFlowRequest): + request (Union[google.cloud.dialogflowcx_v3.types.ImportFlowRequest, dict]): The request object. The request message for [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1187,7 +1187,7 @@ def import_flow( def export_flow( self, - request: flow.ExportFlowRequest = None, + request: Union[flow.ExportFlowRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -1198,7 +1198,7 @@ def export_flow( that the flow references will also be exported. Args: - request (google.cloud.dialogflowcx_v3.types.ExportFlowRequest): + request (Union[google.cloud.dialogflowcx_v3.types.ExportFlowRequest, dict]): The request object. The request message for [Flows.ExportFlow][google.cloud.dialogflow.cx.v3.Flows.ExportFlow]. retry (google.api_core.retry.Retry): Designation of what errors, if any, diff --git a/google/cloud/dialogflowcx_v3/services/flows/transports/base.py b/google/cloud/dialogflowcx_v3/services/flows/transports/base.py index dc4046ea..4f3a7e81 100644 --- a/google/cloud/dialogflowcx_v3/services/flows/transports/base.py +++ b/google/cloud/dialogflowcx_v3/services/flows/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3/services/flows/transports/grpc.py b/google/cloud/dialogflowcx_v3/services/flows/transports/grpc.py index ca5c69e2..a13a65bd 100644 --- a/google/cloud/dialogflowcx_v3/services/flows/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3/services/flows/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/flows/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3/services/flows/transports/grpc_asyncio.py index b502f59c..a46d3437 100644 --- a/google/cloud/dialogflowcx_v3/services/flows/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3/services/flows/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/intents/client.py b/google/cloud/dialogflowcx_v3/services/intents/client.py index 7d56981b..8080c823 100644 --- a/google/cloud/dialogflowcx_v3/services/intents/client.py +++ b/google/cloud/dialogflowcx_v3/services/intents/client.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 @@ -372,7 +372,7 @@ def __init__( def list_intents( self, - request: intent.ListIntentsRequest = None, + request: Union[intent.ListIntentsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -383,7 +383,7 @@ def list_intents( agent. Args: - request (google.cloud.dialogflowcx_v3.types.ListIntentsRequest): + request (Union[google.cloud.dialogflowcx_v3.types.ListIntentsRequest, dict]): The request object. The request message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents]. parent (str): @@ -453,7 +453,7 @@ def list_intents( def get_intent( self, - request: intent.GetIntentRequest = None, + request: Union[intent.GetIntentRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -463,7 +463,7 @@ def get_intent( r"""Retrieves the specified intent. Args: - request (google.cloud.dialogflowcx_v3.types.GetIntentRequest): + request (Union[google.cloud.dialogflowcx_v3.types.GetIntentRequest, dict]): The request object. The request message for [Intents.GetIntent][google.cloud.dialogflow.cx.v3.Intents.GetIntent]. name (str): @@ -529,7 +529,7 @@ def get_intent( def create_intent( self, - request: gcdc_intent.CreateIntentRequest = None, + request: Union[gcdc_intent.CreateIntentRequest, dict] = None, *, parent: str = None, intent: gcdc_intent.Intent = None, @@ -544,7 +544,7 @@ def create_intent( documentation `__. Args: - request (google.cloud.dialogflowcx_v3.types.CreateIntentRequest): + request (Union[google.cloud.dialogflowcx_v3.types.CreateIntentRequest, dict]): The request object. The request message for [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]. parent (str): @@ -617,7 +617,7 @@ def create_intent( def update_intent( self, - request: gcdc_intent.UpdateIntentRequest = None, + request: Union[gcdc_intent.UpdateIntentRequest, dict] = None, *, intent: gcdc_intent.Intent = None, update_mask: field_mask_pb2.FieldMask = None, @@ -632,7 +632,7 @@ def update_intent( documentation `__. Args: - request (google.cloud.dialogflowcx_v3.types.UpdateIntentRequest): + request (Union[google.cloud.dialogflowcx_v3.types.UpdateIntentRequest, dict]): The request object. The request message for [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]. intent (google.cloud.dialogflowcx_v3.types.Intent): @@ -708,7 +708,7 @@ def update_intent( def delete_intent( self, - request: intent.DeleteIntentRequest = None, + request: Union[intent.DeleteIntentRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -722,7 +722,7 @@ def delete_intent( documentation `__. Args: - request (google.cloud.dialogflowcx_v3.types.DeleteIntentRequest): + request (Union[google.cloud.dialogflowcx_v3.types.DeleteIntentRequest, dict]): The request object. The request message for [Intents.DeleteIntent][google.cloud.dialogflow.cx.v3.Intents.DeleteIntent]. name (str): diff --git a/google/cloud/dialogflowcx_v3/services/intents/transports/base.py b/google/cloud/dialogflowcx_v3/services/intents/transports/base.py index 90a38908..21ee1af6 100644 --- a/google/cloud/dialogflowcx_v3/services/intents/transports/base.py +++ b/google/cloud/dialogflowcx_v3/services/intents/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3/services/intents/transports/grpc.py b/google/cloud/dialogflowcx_v3/services/intents/transports/grpc.py index f42155f4..af4b4c32 100644 --- a/google/cloud/dialogflowcx_v3/services/intents/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3/services/intents/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/intents/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3/services/intents/transports/grpc_asyncio.py index 95f1dfb6..7a2517d0 100644 --- a/google/cloud/dialogflowcx_v3/services/intents/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3/services/intents/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/pages/client.py b/google/cloud/dialogflowcx_v3/services/pages/client.py index 57d87d17..4a2a6145 100644 --- a/google/cloud/dialogflowcx_v3/services/pages/client.py +++ b/google/cloud/dialogflowcx_v3/services/pages/client.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 @@ -443,7 +443,7 @@ def __init__( def list_pages( self, - request: page.ListPagesRequest = None, + request: Union[page.ListPagesRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -453,7 +453,7 @@ def list_pages( r"""Returns the list of all pages in the specified flow. Args: - request (google.cloud.dialogflowcx_v3.types.ListPagesRequest): + request (Union[google.cloud.dialogflowcx_v3.types.ListPagesRequest, dict]): The request object. The request message for [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages]. parent (str): @@ -523,7 +523,7 @@ def list_pages( def get_page( self, - request: page.GetPageRequest = None, + request: Union[page.GetPageRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -533,7 +533,7 @@ def get_page( r"""Retrieves the specified page. Args: - request (google.cloud.dialogflowcx_v3.types.GetPageRequest): + request (Union[google.cloud.dialogflowcx_v3.types.GetPageRequest, dict]): The request object. The request message for [Pages.GetPage][google.cloud.dialogflow.cx.v3.Pages.GetPage]. name (str): @@ -614,7 +614,7 @@ def get_page( def create_page( self, - request: gcdc_page.CreatePageRequest = None, + request: Union[gcdc_page.CreatePageRequest, dict] = None, *, parent: str = None, page: gcdc_page.Page = None, @@ -629,7 +629,7 @@ def create_page( documentation `__. Args: - request (google.cloud.dialogflowcx_v3.types.CreatePageRequest): + request (Union[google.cloud.dialogflowcx_v3.types.CreatePageRequest, dict]): The request object. The request message for [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]. parent (str): @@ -717,7 +717,7 @@ def create_page( def update_page( self, - request: gcdc_page.UpdatePageRequest = None, + request: Union[gcdc_page.UpdatePageRequest, dict] = None, *, page: gcdc_page.Page = None, update_mask: field_mask_pb2.FieldMask = None, @@ -732,7 +732,7 @@ def update_page( documentation `__. Args: - request (google.cloud.dialogflowcx_v3.types.UpdatePageRequest): + request (Union[google.cloud.dialogflowcx_v3.types.UpdatePageRequest, dict]): The request object. The request message for [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage]. page (google.cloud.dialogflowcx_v3.types.Page): @@ -823,7 +823,7 @@ def update_page( def delete_page( self, - request: page.DeletePageRequest = None, + request: Union[page.DeletePageRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -837,7 +837,7 @@ def delete_page( documentation `__. Args: - request (google.cloud.dialogflowcx_v3.types.DeletePageRequest): + request (Union[google.cloud.dialogflowcx_v3.types.DeletePageRequest, dict]): The request object. The request message for [Pages.DeletePage][google.cloud.dialogflow.cx.v3.Pages.DeletePage]. name (str): diff --git a/google/cloud/dialogflowcx_v3/services/pages/transports/base.py b/google/cloud/dialogflowcx_v3/services/pages/transports/base.py index a8a0312d..ec8ddc6b 100644 --- a/google/cloud/dialogflowcx_v3/services/pages/transports/base.py +++ b/google/cloud/dialogflowcx_v3/services/pages/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3/services/pages/transports/grpc.py b/google/cloud/dialogflowcx_v3/services/pages/transports/grpc.py index 0fc211bf..8b8803da 100644 --- a/google/cloud/dialogflowcx_v3/services/pages/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3/services/pages/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/pages/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3/services/pages/transports/grpc_asyncio.py index c6c574bf..38725f4d 100644 --- a/google/cloud/dialogflowcx_v3/services/pages/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3/services/pages/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/security_settings_service/client.py b/google/cloud/dialogflowcx_v3/services/security_settings_service/client.py index 0e876f3b..03232067 100644 --- a/google/cloud/dialogflowcx_v3/services/security_settings_service/client.py +++ b/google/cloud/dialogflowcx_v3/services/security_settings_service/client.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 @@ -400,7 +400,9 @@ def __init__( def create_security_settings( self, - request: gcdc_security_settings.CreateSecuritySettingsRequest = None, + request: Union[ + gcdc_security_settings.CreateSecuritySettingsRequest, dict + ] = None, *, parent: str = None, security_settings: gcdc_security_settings.SecuritySettings = None, @@ -411,7 +413,7 @@ def create_security_settings( r"""Create security settings in the specified location. Args: - request (google.cloud.dialogflowcx_v3.types.CreateSecuritySettingsRequest): + request (Union[google.cloud.dialogflowcx_v3.types.CreateSecuritySettingsRequest, dict]): The request object. The request message for [SecuritySettings.CreateSecuritySettings][]. parent (str): @@ -489,7 +491,7 @@ def create_security_settings( def get_security_settings( self, - request: security_settings.GetSecuritySettingsRequest = None, + request: Union[security_settings.GetSecuritySettingsRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -501,7 +503,7 @@ def get_security_settings( The returned settings may be stale by up to 1 minute. Args: - request (google.cloud.dialogflowcx_v3.types.GetSecuritySettingsRequest): + request (Union[google.cloud.dialogflowcx_v3.types.GetSecuritySettingsRequest, dict]): The request object. The request message for [SecuritySettingsService.GetSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettings]. name (str): @@ -566,7 +568,9 @@ def get_security_settings( def update_security_settings( self, - request: gcdc_security_settings.UpdateSecuritySettingsRequest = None, + request: Union[ + gcdc_security_settings.UpdateSecuritySettingsRequest, dict + ] = None, *, security_settings: gcdc_security_settings.SecuritySettings = None, update_mask: field_mask_pb2.FieldMask = None, @@ -578,7 +582,7 @@ def update_security_settings( [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. Args: - request (google.cloud.dialogflowcx_v3.types.UpdateSecuritySettingsRequest): + request (Union[google.cloud.dialogflowcx_v3.types.UpdateSecuritySettingsRequest, dict]): The request object. The request message for [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]. security_settings (google.cloud.dialogflowcx_v3.types.SecuritySettings): @@ -657,7 +661,7 @@ def update_security_settings( def list_security_settings( self, - request: security_settings.ListSecuritySettingsRequest = None, + request: Union[security_settings.ListSecuritySettingsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -668,7 +672,7 @@ def list_security_settings( specified location. Args: - request (google.cloud.dialogflowcx_v3.types.ListSecuritySettingsRequest): + request (Union[google.cloud.dialogflowcx_v3.types.ListSecuritySettingsRequest, dict]): The request object. The request message for [SecuritySettings.ListSecuritySettings][]. parent (str): @@ -739,7 +743,7 @@ def list_security_settings( def delete_security_settings( self, - request: security_settings.DeleteSecuritySettingsRequest = None, + request: Union[security_settings.DeleteSecuritySettingsRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -750,7 +754,7 @@ def delete_security_settings( [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. Args: - request (google.cloud.dialogflowcx_v3.types.DeleteSecuritySettingsRequest): + request (Union[google.cloud.dialogflowcx_v3.types.DeleteSecuritySettingsRequest, dict]): The request object. The request message for [SecuritySettings.DeleteSecuritySettings][]. name (str): diff --git a/google/cloud/dialogflowcx_v3/services/security_settings_service/transports/base.py b/google/cloud/dialogflowcx_v3/services/security_settings_service/transports/base.py index ad18cc76..b0be9fe3 100644 --- a/google/cloud/dialogflowcx_v3/services/security_settings_service/transports/base.py +++ b/google/cloud/dialogflowcx_v3/services/security_settings_service/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3/services/security_settings_service/transports/grpc.py b/google/cloud/dialogflowcx_v3/services/security_settings_service/transports/grpc.py index 7ed00ca3..035f6452 100644 --- a/google/cloud/dialogflowcx_v3/services/security_settings_service/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3/services/security_settings_service/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/security_settings_service/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3/services/security_settings_service/transports/grpc_asyncio.py index 5c7b6461..83d130ab 100644 --- a/google/cloud/dialogflowcx_v3/services/security_settings_service/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3/services/security_settings_service/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/session_entity_types/client.py b/google/cloud/dialogflowcx_v3/services/session_entity_types/client.py index 3cff0520..29a5f19e 100644 --- a/google/cloud/dialogflowcx_v3/services/session_entity_types/client.py +++ b/google/cloud/dialogflowcx_v3/services/session_entity_types/client.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 @@ -367,7 +367,7 @@ def __init__( def list_session_entity_types( self, - request: session_entity_type.ListSessionEntityTypesRequest = None, + request: Union[session_entity_type.ListSessionEntityTypesRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -378,7 +378,7 @@ def list_session_entity_types( specified session. Args: - request (google.cloud.dialogflowcx_v3.types.ListSessionEntityTypesRequest): + request (Union[google.cloud.dialogflowcx_v3.types.ListSessionEntityTypesRequest, dict]): The request object. The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes]. parent (str): @@ -455,7 +455,7 @@ def list_session_entity_types( def get_session_entity_type( self, - request: session_entity_type.GetSessionEntityTypeRequest = None, + request: Union[session_entity_type.GetSessionEntityTypeRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -465,7 +465,7 @@ def get_session_entity_type( r"""Retrieves the specified session entity type. Args: - request (google.cloud.dialogflowcx_v3.types.GetSessionEntityTypeRequest): + request (Union[google.cloud.dialogflowcx_v3.types.GetSessionEntityTypeRequest, dict]): The request object. The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityType]. name (str): @@ -544,7 +544,9 @@ def get_session_entity_type( def create_session_entity_type( self, - request: gcdc_session_entity_type.CreateSessionEntityTypeRequest = None, + request: Union[ + gcdc_session_entity_type.CreateSessionEntityTypeRequest, dict + ] = None, *, parent: str = None, session_entity_type: gcdc_session_entity_type.SessionEntityType = None, @@ -555,7 +557,7 @@ def create_session_entity_type( r"""Creates a session entity type. Args: - request (google.cloud.dialogflowcx_v3.types.CreateSessionEntityTypeRequest): + request (Union[google.cloud.dialogflowcx_v3.types.CreateSessionEntityTypeRequest, dict]): The request object. The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityType]. parent (str): @@ -648,7 +650,9 @@ def create_session_entity_type( def update_session_entity_type( self, - request: gcdc_session_entity_type.UpdateSessionEntityTypeRequest = None, + request: Union[ + gcdc_session_entity_type.UpdateSessionEntityTypeRequest, dict + ] = None, *, session_entity_type: gcdc_session_entity_type.SessionEntityType = None, update_mask: field_mask_pb2.FieldMask = None, @@ -659,7 +663,7 @@ def update_session_entity_type( r"""Updates the specified session entity type. Args: - request (google.cloud.dialogflowcx_v3.types.UpdateSessionEntityTypeRequest): + request (Union[google.cloud.dialogflowcx_v3.types.UpdateSessionEntityTypeRequest, dict]): The request object. The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityType]. session_entity_type (google.cloud.dialogflowcx_v3.types.SessionEntityType): @@ -753,7 +757,7 @@ def update_session_entity_type( def delete_session_entity_type( self, - request: session_entity_type.DeleteSessionEntityTypeRequest = None, + request: Union[session_entity_type.DeleteSessionEntityTypeRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -763,7 +767,7 @@ def delete_session_entity_type( r"""Deletes the specified session entity type. Args: - request (google.cloud.dialogflowcx_v3.types.DeleteSessionEntityTypeRequest): + request (Union[google.cloud.dialogflowcx_v3.types.DeleteSessionEntityTypeRequest, dict]): The request object. The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityType]. name (str): diff --git a/google/cloud/dialogflowcx_v3/services/session_entity_types/transports/base.py b/google/cloud/dialogflowcx_v3/services/session_entity_types/transports/base.py index 67c904a6..1b43453b 100644 --- a/google/cloud/dialogflowcx_v3/services/session_entity_types/transports/base.py +++ b/google/cloud/dialogflowcx_v3/services/session_entity_types/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3/services/session_entity_types/transports/grpc.py b/google/cloud/dialogflowcx_v3/services/session_entity_types/transports/grpc.py index 224ebcfd..73deb497 100644 --- a/google/cloud/dialogflowcx_v3/services/session_entity_types/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3/services/session_entity_types/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/session_entity_types/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3/services/session_entity_types/transports/grpc_asyncio.py index d8afcfc7..a7b2032a 100644 --- a/google/cloud/dialogflowcx_v3/services/session_entity_types/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3/services/session_entity_types/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/sessions/client.py b/google/cloud/dialogflowcx_v3/services/sessions/client.py index 7236c980..41decc00 100644 --- a/google/cloud/dialogflowcx_v3/services/sessions/client.py +++ b/google/cloud/dialogflowcx_v3/services/sessions/client.py @@ -17,17 +17,7 @@ from distutils import util import os import re -from typing import ( - Callable, - Dict, - Optional, - Iterable, - Iterator, - Sequence, - Tuple, - Type, - Union, -) +from typing import Dict, Optional, Iterable, Iterator, Sequence, Tuple, Type, Union import pkg_resources from google.api_core import client_options as client_options_lib # type: ignore @@ -511,7 +501,7 @@ def __init__( def detect_intent( self, - request: session.DetectIntentRequest = None, + request: Union[session.DetectIntentRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -527,7 +517,7 @@ def detect_intent( environments `__. Args: - request (google.cloud.dialogflowcx_v3.types.DetectIntentRequest): + request (Union[google.cloud.dialogflowcx_v3.types.DetectIntentRequest, dict]): The request object. The request to detect user's intent. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. @@ -659,7 +649,7 @@ def streaming_detect_intent( def match_intent( self, - request: session.MatchIntentRequest = None, + request: Union[session.MatchIntentRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -669,7 +659,7 @@ def match_intent( change the session status. Args: - request (google.cloud.dialogflowcx_v3.types.MatchIntentRequest): + request (Union[google.cloud.dialogflowcx_v3.types.MatchIntentRequest, dict]): The request object. Request of [MatchIntent][]. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. @@ -707,7 +697,7 @@ def match_intent( def fulfill_intent( self, - request: session.FulfillIntentRequest = None, + request: Union[session.FulfillIntentRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -722,7 +712,7 @@ def fulfill_intent( Otherwise, the behavior is undefined. Args: - request (google.cloud.dialogflowcx_v3.types.FulfillIntentRequest): + request (Union[google.cloud.dialogflowcx_v3.types.FulfillIntentRequest, dict]): The request object. Request of [FulfillIntent][] retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. diff --git a/google/cloud/dialogflowcx_v3/services/sessions/transports/base.py b/google/cloud/dialogflowcx_v3/services/sessions/transports/base.py index cce0d59f..1d51ba97 100644 --- a/google/cloud/dialogflowcx_v3/services/sessions/transports/base.py +++ b/google/cloud/dialogflowcx_v3/services/sessions/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3/services/sessions/transports/grpc.py b/google/cloud/dialogflowcx_v3/services/sessions/transports/grpc.py index a78d8c27..2530123b 100644 --- a/google/cloud/dialogflowcx_v3/services/sessions/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3/services/sessions/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/sessions/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3/services/sessions/transports/grpc_asyncio.py index ff58d6a2..1d858068 100644 --- a/google/cloud/dialogflowcx_v3/services/sessions/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3/services/sessions/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/test_cases/client.py b/google/cloud/dialogflowcx_v3/services/test_cases/client.py index 1638c23b..39a4358b 100644 --- a/google/cloud/dialogflowcx_v3/services/test_cases/client.py +++ b/google/cloud/dialogflowcx_v3/services/test_cases/client.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 @@ -520,7 +520,7 @@ def __init__( def list_test_cases( self, - request: test_case.ListTestCasesRequest = None, + request: Union[test_case.ListTestCasesRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -530,7 +530,7 @@ def list_test_cases( r"""Fetches a list of test cases for a given agent. Args: - request (google.cloud.dialogflowcx_v3.types.ListTestCasesRequest): + request (Union[google.cloud.dialogflowcx_v3.types.ListTestCasesRequest, dict]): The request object. The request message for [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases]. parent (str): @@ -600,7 +600,7 @@ def list_test_cases( def batch_delete_test_cases( self, - request: test_case.BatchDeleteTestCasesRequest = None, + request: Union[test_case.BatchDeleteTestCasesRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -610,7 +610,7 @@ def batch_delete_test_cases( r"""Batch deletes test cases. Args: - request (google.cloud.dialogflowcx_v3.types.BatchDeleteTestCasesRequest): + request (Union[google.cloud.dialogflowcx_v3.types.BatchDeleteTestCasesRequest, dict]): The request object. The request message for [TestCases.BatchDeleteTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCases]. parent (str): @@ -664,7 +664,7 @@ def batch_delete_test_cases( def get_test_case( self, - request: test_case.GetTestCaseRequest = None, + request: Union[test_case.GetTestCaseRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -674,7 +674,7 @@ def get_test_case( r"""Gets a test case. Args: - request (google.cloud.dialogflowcx_v3.types.GetTestCaseRequest): + request (Union[google.cloud.dialogflowcx_v3.types.GetTestCaseRequest, dict]): The request object. The request message for [TestCases.GetTestCase][google.cloud.dialogflow.cx.v3.TestCases.GetTestCase]. name (str): @@ -733,7 +733,7 @@ def get_test_case( def create_test_case( self, - request: gcdc_test_case.CreateTestCaseRequest = None, + request: Union[gcdc_test_case.CreateTestCaseRequest, dict] = None, *, parent: str = None, test_case: gcdc_test_case.TestCase = None, @@ -744,7 +744,7 @@ def create_test_case( r"""Creates a test case for the given agent. Args: - request (google.cloud.dialogflowcx_v3.types.CreateTestCaseRequest): + request (Union[google.cloud.dialogflowcx_v3.types.CreateTestCaseRequest, dict]): The request object. The request message for [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]. parent (str): @@ -810,7 +810,7 @@ def create_test_case( def update_test_case( self, - request: gcdc_test_case.UpdateTestCaseRequest = None, + request: Union[gcdc_test_case.UpdateTestCaseRequest, dict] = None, *, test_case: gcdc_test_case.TestCase = None, update_mask: field_mask_pb2.FieldMask = None, @@ -821,7 +821,7 @@ def update_test_case( r"""Updates the specified test case. Args: - request (google.cloud.dialogflowcx_v3.types.UpdateTestCaseRequest): + request (Union[google.cloud.dialogflowcx_v3.types.UpdateTestCaseRequest, dict]): The request object. The request message for [TestCases.UpdateTestCase][google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCase]. test_case (google.cloud.dialogflowcx_v3.types.TestCase): @@ -893,7 +893,7 @@ def update_test_case( def run_test_case( self, - request: test_case.RunTestCaseRequest = None, + request: Union[test_case.RunTestCaseRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -910,7 +910,7 @@ def run_test_case( [RunTestCaseResponse][google.cloud.dialogflow.cx.v3.RunTestCaseResponse] Args: - request (google.cloud.dialogflowcx_v3.types.RunTestCaseRequest): + request (Union[google.cloud.dialogflowcx_v3.types.RunTestCaseRequest, dict]): The request object. The request message for [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -963,7 +963,7 @@ def run_test_case( def batch_run_test_cases( self, - request: test_case.BatchRunTestCasesRequest = None, + request: Union[test_case.BatchRunTestCasesRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -972,7 +972,7 @@ def batch_run_test_cases( r"""Kicks off a batch run of test cases. Args: - request (google.cloud.dialogflowcx_v3.types.BatchRunTestCasesRequest): + request (Union[google.cloud.dialogflowcx_v3.types.BatchRunTestCasesRequest, dict]): The request object. The request message for [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1025,7 +1025,7 @@ def batch_run_test_cases( def calculate_coverage( self, - request: test_case.CalculateCoverageRequest = None, + request: Union[test_case.CalculateCoverageRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -1034,7 +1034,7 @@ def calculate_coverage( r"""Calculates the test coverage for an agent. Args: - request (google.cloud.dialogflowcx_v3.types.CalculateCoverageRequest): + request (Union[google.cloud.dialogflowcx_v3.types.CalculateCoverageRequest, dict]): The request object. The request message for [TestCases.CalculateCoverage][google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverage]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1075,7 +1075,7 @@ def calculate_coverage( def import_test_cases( self, - request: test_case.ImportTestCasesRequest = None, + request: Union[test_case.ImportTestCasesRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -1087,7 +1087,7 @@ def import_test_cases( imported test case is neglected. Args: - request (google.cloud.dialogflowcx_v3.types.ImportTestCasesRequest): + request (Union[google.cloud.dialogflowcx_v3.types.ImportTestCasesRequest, dict]): The request object. The request message for [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1140,7 +1140,7 @@ def import_test_cases( def export_test_cases( self, - request: test_case.ExportTestCasesRequest = None, + request: Union[test_case.ExportTestCasesRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -1151,7 +1151,7 @@ def export_test_cases( export a subset of test cases. Args: - request (google.cloud.dialogflowcx_v3.types.ExportTestCasesRequest): + request (Union[google.cloud.dialogflowcx_v3.types.ExportTestCasesRequest, dict]): The request object. The request message for [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1204,7 +1204,7 @@ def export_test_cases( def list_test_case_results( self, - request: test_case.ListTestCaseResultsRequest = None, + request: Union[test_case.ListTestCaseResultsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -1214,7 +1214,7 @@ def list_test_case_results( r"""Fetches a list of results for a given test case. Args: - request (google.cloud.dialogflowcx_v3.types.ListTestCaseResultsRequest): + request (Union[google.cloud.dialogflowcx_v3.types.ListTestCaseResultsRequest, dict]): The request object. The request message for [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults]. parent (str): @@ -1286,7 +1286,7 @@ def list_test_case_results( def get_test_case_result( self, - request: test_case.GetTestCaseResultRequest = None, + request: Union[test_case.GetTestCaseResultRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -1296,7 +1296,7 @@ def get_test_case_result( r"""Gets a test case result. Args: - request (google.cloud.dialogflowcx_v3.types.GetTestCaseResultRequest): + request (Union[google.cloud.dialogflowcx_v3.types.GetTestCaseResultRequest, dict]): The request object. The request message for [TestCases.GetTestCaseResult][google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResult]. name (str): diff --git a/google/cloud/dialogflowcx_v3/services/test_cases/transports/base.py b/google/cloud/dialogflowcx_v3/services/test_cases/transports/base.py index 5ec51667..359f9728 100644 --- a/google/cloud/dialogflowcx_v3/services/test_cases/transports/base.py +++ b/google/cloud/dialogflowcx_v3/services/test_cases/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3/services/test_cases/transports/grpc.py b/google/cloud/dialogflowcx_v3/services/test_cases/transports/grpc.py index f33ddf4d..345f1680 100644 --- a/google/cloud/dialogflowcx_v3/services/test_cases/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3/services/test_cases/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/test_cases/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3/services/test_cases/transports/grpc_asyncio.py index 59dfdae6..a6092def 100644 --- a/google/cloud/dialogflowcx_v3/services/test_cases/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3/services/test_cases/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/transition_route_groups/client.py b/google/cloud/dialogflowcx_v3/services/transition_route_groups/client.py index cfaa1995..ced5f341 100644 --- a/google/cloud/dialogflowcx_v3/services/transition_route_groups/client.py +++ b/google/cloud/dialogflowcx_v3/services/transition_route_groups/client.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 @@ -433,7 +433,9 @@ def __init__( def list_transition_route_groups( self, - request: transition_route_group.ListTransitionRouteGroupsRequest = None, + request: Union[ + transition_route_group.ListTransitionRouteGroupsRequest, dict + ] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -444,7 +446,7 @@ def list_transition_route_groups( the specified flow. Args: - request (google.cloud.dialogflowcx_v3.types.ListTransitionRouteGroupsRequest): + request (Union[google.cloud.dialogflowcx_v3.types.ListTransitionRouteGroupsRequest, dict]): The request object. The request message for [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups]. parent (str): @@ -519,7 +521,9 @@ def list_transition_route_groups( def get_transition_route_group( self, - request: transition_route_group.GetTransitionRouteGroupRequest = None, + request: Union[ + transition_route_group.GetTransitionRouteGroupRequest, dict + ] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -530,7 +534,7 @@ def get_transition_route_group( [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. Args: - request (google.cloud.dialogflowcx_v3.types.GetTransitionRouteGroupRequest): + request (Union[google.cloud.dialogflowcx_v3.types.GetTransitionRouteGroupRequest, dict]): The request object. The request message for [TransitionRouteGroups.GetTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroup]. name (str): @@ -599,7 +603,9 @@ def get_transition_route_group( def create_transition_route_group( self, - request: gcdc_transition_route_group.CreateTransitionRouteGroupRequest = None, + request: Union[ + gcdc_transition_route_group.CreateTransitionRouteGroupRequest, dict + ] = None, *, parent: str = None, transition_route_group: gcdc_transition_route_group.TransitionRouteGroup = None, @@ -616,7 +622,7 @@ def create_transition_route_group( documentation `__. Args: - request (google.cloud.dialogflowcx_v3.types.CreateTransitionRouteGroupRequest): + request (Union[google.cloud.dialogflowcx_v3.types.CreateTransitionRouteGroupRequest, dict]): The request object. The request message for [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]. parent (str): @@ -696,7 +702,9 @@ def create_transition_route_group( def update_transition_route_group( self, - request: gcdc_transition_route_group.UpdateTransitionRouteGroupRequest = None, + request: Union[ + gcdc_transition_route_group.UpdateTransitionRouteGroupRequest, dict + ] = None, *, transition_route_group: gcdc_transition_route_group.TransitionRouteGroup = None, update_mask: field_mask_pb2.FieldMask = None, @@ -712,7 +720,7 @@ def update_transition_route_group( documentation `__. Args: - request (google.cloud.dialogflowcx_v3.types.UpdateTransitionRouteGroupRequest): + request (Union[google.cloud.dialogflowcx_v3.types.UpdateTransitionRouteGroupRequest, dict]): The request object. The request message for [TransitionRouteGroups.UpdateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroup]. transition_route_group (google.cloud.dialogflowcx_v3.types.TransitionRouteGroup): @@ -792,7 +800,9 @@ def update_transition_route_group( def delete_transition_route_group( self, - request: transition_route_group.DeleteTransitionRouteGroupRequest = None, + request: Union[ + transition_route_group.DeleteTransitionRouteGroupRequest, dict + ] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -807,7 +817,7 @@ def delete_transition_route_group( documentation `__. Args: - request (google.cloud.dialogflowcx_v3.types.DeleteTransitionRouteGroupRequest): + request (Union[google.cloud.dialogflowcx_v3.types.DeleteTransitionRouteGroupRequest, dict]): The request object. The request message for [TransitionRouteGroups.DeleteTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroup]. name (str): diff --git a/google/cloud/dialogflowcx_v3/services/transition_route_groups/transports/base.py b/google/cloud/dialogflowcx_v3/services/transition_route_groups/transports/base.py index aeb1c799..69c6f910 100644 --- a/google/cloud/dialogflowcx_v3/services/transition_route_groups/transports/base.py +++ b/google/cloud/dialogflowcx_v3/services/transition_route_groups/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3/services/transition_route_groups/transports/grpc.py b/google/cloud/dialogflowcx_v3/services/transition_route_groups/transports/grpc.py index 256252a0..0e035448 100644 --- a/google/cloud/dialogflowcx_v3/services/transition_route_groups/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3/services/transition_route_groups/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/transition_route_groups/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3/services/transition_route_groups/transports/grpc_asyncio.py index f67f5d3f..7f900749 100644 --- a/google/cloud/dialogflowcx_v3/services/transition_route_groups/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3/services/transition_route_groups/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/versions/client.py b/google/cloud/dialogflowcx_v3/services/versions/client.py index 869f0f46..b8a434fa 100644 --- a/google/cloud/dialogflowcx_v3/services/versions/client.py +++ b/google/cloud/dialogflowcx_v3/services/versions/client.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 @@ -362,7 +362,7 @@ def __init__( def list_versions( self, - request: version.ListVersionsRequest = None, + request: Union[version.ListVersionsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -373,7 +373,7 @@ def list_versions( [Flow][google.cloud.dialogflow.cx.v3.Flow]. Args: - request (google.cloud.dialogflowcx_v3.types.ListVersionsRequest): + request (Union[google.cloud.dialogflowcx_v3.types.ListVersionsRequest, dict]): The request object. The request message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions]. parent (str): @@ -444,7 +444,7 @@ def list_versions( def get_version( self, - request: version.GetVersionRequest = None, + request: Union[version.GetVersionRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -455,7 +455,7 @@ def get_version( [Version][google.cloud.dialogflow.cx.v3.Version]. Args: - request (google.cloud.dialogflowcx_v3.types.GetVersionRequest): + request (Union[google.cloud.dialogflowcx_v3.types.GetVersionRequest, dict]): The request object. The request message for [Versions.GetVersion][google.cloud.dialogflow.cx.v3.Versions.GetVersion]. name (str): @@ -516,7 +516,7 @@ def get_version( def create_version( self, - request: gcdc_version.CreateVersionRequest = None, + request: Union[gcdc_version.CreateVersionRequest, dict] = None, *, parent: str = None, version: gcdc_version.Version = None, @@ -528,7 +528,7 @@ def create_version( the specified [Flow][google.cloud.dialogflow.cx.v3.Flow]. Args: - request (google.cloud.dialogflowcx_v3.types.CreateVersionRequest): + request (Union[google.cloud.dialogflowcx_v3.types.CreateVersionRequest, dict]): The request object. The request message for [Versions.CreateVersion][google.cloud.dialogflow.cx.v3.Versions.CreateVersion]. parent (str): @@ -610,7 +610,7 @@ def create_version( def update_version( self, - request: gcdc_version.UpdateVersionRequest = None, + request: Union[gcdc_version.UpdateVersionRequest, dict] = None, *, version: gcdc_version.Version = None, update_mask: field_mask_pb2.FieldMask = None, @@ -622,7 +622,7 @@ def update_version( [Version][google.cloud.dialogflow.cx.v3.Version]. Args: - request (google.cloud.dialogflowcx_v3.types.UpdateVersionRequest): + request (Union[google.cloud.dialogflowcx_v3.types.UpdateVersionRequest, dict]): The request object. The request message for [Versions.UpdateVersion][google.cloud.dialogflow.cx.v3.Versions.UpdateVersion]. version (google.cloud.dialogflowcx_v3.types.Version): @@ -691,7 +691,7 @@ def update_version( def delete_version( self, - request: version.DeleteVersionRequest = None, + request: Union[version.DeleteVersionRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -702,7 +702,7 @@ def delete_version( [Version][google.cloud.dialogflow.cx.v3.Version]. Args: - request (google.cloud.dialogflowcx_v3.types.DeleteVersionRequest): + request (Union[google.cloud.dialogflowcx_v3.types.DeleteVersionRequest, dict]): The request object. The request message for [Versions.DeleteVersion][google.cloud.dialogflow.cx.v3.Versions.DeleteVersion]. name (str): @@ -758,7 +758,7 @@ def delete_version( def load_version( self, - request: version.LoadVersionRequest = None, + request: Union[version.LoadVersionRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -769,7 +769,7 @@ def load_version( flow. Args: - request (google.cloud.dialogflowcx_v3.types.LoadVersionRequest): + request (Union[google.cloud.dialogflowcx_v3.types.LoadVersionRequest, dict]): The request object. The request message for [Versions.LoadVersion][google.cloud.dialogflow.cx.v3.Versions.LoadVersion]. name (str): diff --git a/google/cloud/dialogflowcx_v3/services/versions/transports/base.py b/google/cloud/dialogflowcx_v3/services/versions/transports/base.py index c6950934..d6df1c4f 100644 --- a/google/cloud/dialogflowcx_v3/services/versions/transports/base.py +++ b/google/cloud/dialogflowcx_v3/services/versions/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3/services/versions/transports/grpc.py b/google/cloud/dialogflowcx_v3/services/versions/transports/grpc.py index d26c214c..939d095a 100644 --- a/google/cloud/dialogflowcx_v3/services/versions/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3/services/versions/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/versions/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3/services/versions/transports/grpc_asyncio.py index f58db509..e79bdd55 100644 --- a/google/cloud/dialogflowcx_v3/services/versions/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3/services/versions/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/webhooks/client.py b/google/cloud/dialogflowcx_v3/services/webhooks/client.py index f9abeb15..e3748b87 100644 --- a/google/cloud/dialogflowcx_v3/services/webhooks/client.py +++ b/google/cloud/dialogflowcx_v3/services/webhooks/client.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 @@ -371,7 +371,7 @@ def __init__( def list_webhooks( self, - request: webhook.ListWebhooksRequest = None, + request: Union[webhook.ListWebhooksRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -382,7 +382,7 @@ def list_webhooks( agent. Args: - request (google.cloud.dialogflowcx_v3.types.ListWebhooksRequest): + request (Union[google.cloud.dialogflowcx_v3.types.ListWebhooksRequest, dict]): The request object. The request message for [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks]. parent (str): @@ -452,7 +452,7 @@ def list_webhooks( def get_webhook( self, - request: webhook.GetWebhookRequest = None, + request: Union[webhook.GetWebhookRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -462,7 +462,7 @@ def get_webhook( r"""Retrieves the specified webhook. Args: - request (google.cloud.dialogflowcx_v3.types.GetWebhookRequest): + request (Union[google.cloud.dialogflowcx_v3.types.GetWebhookRequest, dict]): The request object. The request message for [Webhooks.GetWebhook][google.cloud.dialogflow.cx.v3.Webhooks.GetWebhook]. name (str): @@ -528,7 +528,7 @@ def get_webhook( def create_webhook( self, - request: gcdc_webhook.CreateWebhookRequest = None, + request: Union[gcdc_webhook.CreateWebhookRequest, dict] = None, *, parent: str = None, webhook: gcdc_webhook.Webhook = None, @@ -539,7 +539,7 @@ def create_webhook( r"""Creates a webhook in the specified agent. Args: - request (google.cloud.dialogflowcx_v3.types.CreateWebhookRequest): + request (Union[google.cloud.dialogflowcx_v3.types.CreateWebhookRequest, dict]): The request object. The request message for [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]. parent (str): @@ -612,7 +612,7 @@ def create_webhook( def update_webhook( self, - request: gcdc_webhook.UpdateWebhookRequest = None, + request: Union[gcdc_webhook.UpdateWebhookRequest, dict] = None, *, webhook: gcdc_webhook.Webhook = None, update_mask: field_mask_pb2.FieldMask = None, @@ -623,7 +623,7 @@ def update_webhook( r"""Updates the specified webhook. Args: - request (google.cloud.dialogflowcx_v3.types.UpdateWebhookRequest): + request (Union[google.cloud.dialogflowcx_v3.types.UpdateWebhookRequest, dict]): The request object. The request message for [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]. webhook (google.cloud.dialogflowcx_v3.types.Webhook): @@ -699,7 +699,7 @@ def update_webhook( def delete_webhook( self, - request: webhook.DeleteWebhookRequest = None, + request: Union[webhook.DeleteWebhookRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -709,7 +709,7 @@ def delete_webhook( r"""Deletes the specified webhook. Args: - request (google.cloud.dialogflowcx_v3.types.DeleteWebhookRequest): + request (Union[google.cloud.dialogflowcx_v3.types.DeleteWebhookRequest, dict]): The request object. The request message for [Webhooks.DeleteWebhook][google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhook]. name (str): diff --git a/google/cloud/dialogflowcx_v3/services/webhooks/transports/base.py b/google/cloud/dialogflowcx_v3/services/webhooks/transports/base.py index ff16859b..b317b3de 100644 --- a/google/cloud/dialogflowcx_v3/services/webhooks/transports/base.py +++ b/google/cloud/dialogflowcx_v3/services/webhooks/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3/services/webhooks/transports/grpc.py b/google/cloud/dialogflowcx_v3/services/webhooks/transports/grpc.py index 91cbe743..b49cbba1 100644 --- a/google/cloud/dialogflowcx_v3/services/webhooks/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3/services/webhooks/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3/services/webhooks/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3/services/webhooks/transports/grpc_asyncio.py index 8fb5962e..42e6bf98 100644 --- a/google/cloud/dialogflowcx_v3/services/webhooks/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3/services/webhooks/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/agents/client.py b/google/cloud/dialogflowcx_v3beta1/services/agents/client.py index 875b108c..8522c68d 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/agents/client.py +++ b/google/cloud/dialogflowcx_v3beta1/services/agents/client.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 @@ -446,7 +446,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, @@ -457,7 +457,7 @@ def list_agents( location. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ListAgentsRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ListAgentsRequest, dict]): The request object. The request message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3beta1.Agents.ListAgents]. parent (str): @@ -527,7 +527,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, @@ -537,7 +537,7 @@ def get_agent( r"""Retrieves the specified agent. Args: - request (google.cloud.dialogflowcx_v3beta1.types.GetAgentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.GetAgentRequest, dict]): The request object. The request message for [Agents.GetAgent][google.cloud.dialogflow.cx.v3beta1.Agents.GetAgent]. name (str): @@ -610,7 +610,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, @@ -625,7 +625,7 @@ def create_agent( documentation `__. Args: - request (google.cloud.dialogflowcx_v3beta1.types.CreateAgentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.CreateAgentRequest, dict]): The request object. The request message for [Agents.CreateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgent]. parent (str): @@ -705,7 +705,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, @@ -720,7 +720,7 @@ def update_agent( documentation `__. Args: - request (google.cloud.dialogflowcx_v3beta1.types.UpdateAgentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.UpdateAgentRequest, dict]): The request object. The request message for [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent]. agent (google.cloud.dialogflowcx_v3beta1.types.Agent): @@ -803,7 +803,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, @@ -813,7 +813,7 @@ def delete_agent( r"""Deletes the specified agent. Args: - request (google.cloud.dialogflowcx_v3beta1.types.DeleteAgentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.DeleteAgentRequest, dict]): The request object. The request message for [Agents.DeleteAgent][google.cloud.dialogflow.cx.v3beta1.Agents.DeleteAgent]. name (str): @@ -867,7 +867,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, @@ -885,7 +885,7 @@ def export_agent( [ExportAgentResponse][google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse] Args: - request (google.cloud.dialogflowcx_v3beta1.types.ExportAgentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ExportAgentRequest, dict]): The request object. The request message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgent]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -938,7 +938,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, @@ -955,7 +955,7 @@ def restore_agent( documentation `__. Args: - request (google.cloud.dialogflowcx_v3beta1.types.RestoreAgentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.RestoreAgentRequest, dict]): The request object. The request message for [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgent]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1017,7 +1017,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, @@ -1029,7 +1029,7 @@ def validate_agent( completed to get the complete validation results. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ValidateAgentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ValidateAgentRequest, dict]): The request object. The request message for [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.ValidateAgent]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1070,7 +1070,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, @@ -1081,7 +1081,7 @@ def get_agent_validation_result( validation is performed when ValidateAgent is called. Args: - request (google.cloud.dialogflowcx_v3beta1.types.GetAgentValidationResultRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.GetAgentValidationResultRequest, dict]): The request object. The request message for [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentValidationResult]. name (str): diff --git a/google/cloud/dialogflowcx_v3beta1/services/agents/transports/base.py b/google/cloud/dialogflowcx_v3beta1/services/agents/transports/base.py index c23a2ffb..328d2586 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/agents/transports/base.py +++ b/google/cloud/dialogflowcx_v3beta1/services/agents/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3beta1/services/agents/transports/grpc.py b/google/cloud/dialogflowcx_v3beta1/services/agents/transports/grpc.py index 58994846..9ca06b42 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/agents/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3beta1/services/agents/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/agents/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3beta1/services/agents/transports/grpc_asyncio.py index d9f562df..dddee692 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/agents/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3beta1/services/agents/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/entity_types/client.py b/google/cloud/dialogflowcx_v3beta1/services/entity_types/client.py index 896b8c2f..0e4d80ae 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/entity_types/client.py +++ b/google/cloud/dialogflowcx_v3beta1/services/entity_types/client.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 @@ -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, @@ -367,7 +367,7 @@ def list_entity_types( agent. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ListEntityTypesRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ListEntityTypesRequest, dict]): The request object. The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityTypes.ListEntityTypes]. parent (str): @@ -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, @@ -448,7 +448,7 @@ def get_entity_type( r"""Retrieves the specified entity type. Args: - request (google.cloud.dialogflowcx_v3beta1.types.GetEntityTypeRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.GetEntityTypeRequest, dict]): The request object. The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3beta1.EntityTypes.GetEntityType]. name (str): @@ -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, @@ -552,7 +552,7 @@ def create_entity_type( r"""Creates an entity type in the specified agent. Args: - request (google.cloud.dialogflowcx_v3beta1.types.CreateEntityTypeRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.CreateEntityTypeRequest, dict]): The request object. The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.cx.v3beta1.EntityTypes.CreateEntityType]. parent (str): @@ -652,7 +652,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, @@ -667,7 +667,7 @@ def update_entity_type( documentation `__. Args: - request (google.cloud.dialogflowcx_v3beta1.types.UpdateEntityTypeRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.UpdateEntityTypeRequest, dict]): The request object. The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityType]. entity_type (google.cloud.dialogflowcx_v3beta1.types.EntityType): @@ -769,7 +769,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, @@ -783,7 +783,7 @@ def delete_entity_type( documentation `__. Args: - request (google.cloud.dialogflowcx_v3beta1.types.DeleteEntityTypeRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.DeleteEntityTypeRequest, dict]): The request object. The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.cx.v3beta1.EntityTypes.DeleteEntityType]. name (str): diff --git a/google/cloud/dialogflowcx_v3beta1/services/entity_types/transports/base.py b/google/cloud/dialogflowcx_v3beta1/services/entity_types/transports/base.py index 63558e18..dd606494 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/entity_types/transports/base.py +++ b/google/cloud/dialogflowcx_v3beta1/services/entity_types/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3beta1/services/entity_types/transports/grpc.py b/google/cloud/dialogflowcx_v3beta1/services/entity_types/transports/grpc.py index bd5823bd..7b7a3e83 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/entity_types/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3beta1/services/entity_types/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/entity_types/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3beta1/services/entity_types/transports/grpc_asyncio.py index 918ec7e6..06c8547d 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/entity_types/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3beta1/services/entity_types/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/environments/client.py b/google/cloud/dialogflowcx_v3beta1/services/environments/client.py index 8eb53959..3d3ffc65 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/environments/client.py +++ b/google/cloud/dialogflowcx_v3beta1/services/environments/client.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 @@ -426,7 +426,7 @@ def __init__( def list_environments( self, - request: environment.ListEnvironmentsRequest = None, + request: Union[environment.ListEnvironmentsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -437,7 +437,7 @@ def list_environments( [Agent][google.cloud.dialogflow.cx.v3beta1.Agent]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ListEnvironmentsRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ListEnvironmentsRequest, dict]): The request object. The request message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3beta1.Environments.ListEnvironments]. parent (str): @@ -509,7 +509,7 @@ def list_environments( def get_environment( self, - request: environment.GetEnvironmentRequest = None, + request: Union[environment.GetEnvironmentRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -520,7 +520,7 @@ def get_environment( [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.GetEnvironmentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.GetEnvironmentRequest, dict]): The request object. The request message for [Environments.GetEnvironment][google.cloud.dialogflow.cx.v3beta1.Environments.GetEnvironment]. name (str): @@ -596,7 +596,7 @@ def get_environment( def create_environment( self, - request: gcdc_environment.CreateEnvironmentRequest = None, + request: Union[gcdc_environment.CreateEnvironmentRequest, dict] = None, *, parent: str = None, environment: gcdc_environment.Environment = None, @@ -609,7 +609,7 @@ def create_environment( the specified [Agent][google.cloud.dialogflow.cx.v3beta1.Agent]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.CreateEnvironmentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.CreateEnvironmentRequest, dict]): The request object. The request message for [Environments.CreateEnvironment][google.cloud.dialogflow.cx.v3beta1.Environments.CreateEnvironment]. parent (str): @@ -700,7 +700,7 @@ def create_environment( def update_environment( self, - request: gcdc_environment.UpdateEnvironmentRequest = None, + request: Union[gcdc_environment.UpdateEnvironmentRequest, dict] = None, *, environment: gcdc_environment.Environment = None, update_mask: field_mask_pb2.FieldMask = None, @@ -712,7 +712,7 @@ def update_environment( [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.UpdateEnvironmentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.UpdateEnvironmentRequest, dict]): The request object. The request message for [Environments.UpdateEnvironment][google.cloud.dialogflow.cx.v3beta1.Environments.UpdateEnvironment]. environment (google.cloud.dialogflowcx_v3beta1.types.Environment): @@ -801,7 +801,7 @@ def update_environment( def delete_environment( self, - request: environment.DeleteEnvironmentRequest = None, + request: Union[environment.DeleteEnvironmentRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -812,7 +812,7 @@ def delete_environment( [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.DeleteEnvironmentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.DeleteEnvironmentRequest, dict]): The request object. The request message for [Environments.DeleteEnvironment][google.cloud.dialogflow.cx.v3beta1.Environments.DeleteEnvironment]. name (str): @@ -868,7 +868,7 @@ def delete_environment( def lookup_environment_history( self, - request: environment.LookupEnvironmentHistoryRequest = None, + request: Union[environment.LookupEnvironmentHistoryRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -879,7 +879,7 @@ def lookup_environment_history( [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.LookupEnvironmentHistoryRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.LookupEnvironmentHistoryRequest, dict]): The request object. The request message for [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3beta1.Environments.LookupEnvironmentHistory]. name (str): @@ -952,7 +952,7 @@ def lookup_environment_history( def run_continuous_test( self, - request: environment.RunContinuousTestRequest = None, + request: Union[environment.RunContinuousTestRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -962,7 +962,7 @@ def run_continuous_test( [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.RunContinuousTestRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.RunContinuousTestRequest, dict]): The request object. The request message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3beta1.Environments.RunContinuousTest]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1017,7 +1017,7 @@ def run_continuous_test( def list_continuous_test_results( self, - request: environment.ListContinuousTestResultsRequest = None, + request: Union[environment.ListContinuousTestResultsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -1028,7 +1028,7 @@ def list_continuous_test_results( environment. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ListContinuousTestResultsRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ListContinuousTestResultsRequest, dict]): The request object. The request message for [Environments.ListContinuousTestResults][google.cloud.dialogflow.cx.v3beta1.Environments.ListContinuousTestResults]. parent (str): diff --git a/google/cloud/dialogflowcx_v3beta1/services/environments/transports/base.py b/google/cloud/dialogflowcx_v3beta1/services/environments/transports/base.py index 5ee2f205..ab43720e 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/environments/transports/base.py +++ b/google/cloud/dialogflowcx_v3beta1/services/environments/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3beta1/services/environments/transports/grpc.py b/google/cloud/dialogflowcx_v3beta1/services/environments/transports/grpc.py index a56496d1..9f007ffa 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/environments/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3beta1/services/environments/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/environments/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3beta1/services/environments/transports/grpc_asyncio.py index 2d6bfcc0..4b13fdd9 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/environments/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3beta1/services/environments/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/experiments/client.py b/google/cloud/dialogflowcx_v3beta1/services/experiments/client.py index 6eb709ca..acf5b81f 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/experiments/client.py +++ b/google/cloud/dialogflowcx_v3beta1/services/experiments/client.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 @@ -380,7 +380,7 @@ def __init__( def list_experiments( self, - request: experiment.ListExperimentsRequest = None, + request: Union[experiment.ListExperimentsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -391,7 +391,7 @@ def list_experiments( [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ListExperimentsRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ListExperimentsRequest, dict]): The request object. The request message for [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3beta1.Experiments.ListExperiments]. parent (str): @@ -463,7 +463,7 @@ def list_experiments( def get_experiment( self, - request: experiment.GetExperimentRequest = None, + request: Union[experiment.GetExperimentRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -474,7 +474,7 @@ def get_experiment( [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.GetExperimentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.GetExperimentRequest, dict]): The request object. The request message for [Experiments.GetExperiment][google.cloud.dialogflow.cx.v3beta1.Experiments.GetExperiment]. name (str): @@ -537,7 +537,7 @@ def get_experiment( def create_experiment( self, - request: gcdc_experiment.CreateExperimentRequest = None, + request: Union[gcdc_experiment.CreateExperimentRequest, dict] = None, *, parent: str = None, experiment: gcdc_experiment.Experiment = None, @@ -551,7 +551,7 @@ def create_experiment( [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.CreateExperimentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.CreateExperimentRequest, dict]): The request object. The request message for [Experiments.CreateExperiment][google.cloud.dialogflow.cx.v3beta1.Experiments.CreateExperiment]. parent (str): @@ -623,7 +623,7 @@ def create_experiment( def update_experiment( self, - request: gcdc_experiment.UpdateExperimentRequest = None, + request: Union[gcdc_experiment.UpdateExperimentRequest, dict] = None, *, experiment: gcdc_experiment.Experiment = None, update_mask: field_mask_pb2.FieldMask = None, @@ -635,7 +635,7 @@ def update_experiment( [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.UpdateExperimentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.UpdateExperimentRequest, dict]): The request object. The request message for [Experiments.UpdateExperiment][google.cloud.dialogflow.cx.v3beta1.Experiments.UpdateExperiment]. experiment (google.cloud.dialogflowcx_v3beta1.types.Experiment): @@ -705,7 +705,7 @@ def update_experiment( def delete_experiment( self, - request: experiment.DeleteExperimentRequest = None, + request: Union[experiment.DeleteExperimentRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -716,7 +716,7 @@ def delete_experiment( [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.DeleteExperimentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.DeleteExperimentRequest, dict]): The request object. The request message for [Experiments.DeleteExperiment][google.cloud.dialogflow.cx.v3beta1.Experiments.DeleteExperiment]. name (str): @@ -772,7 +772,7 @@ def delete_experiment( def start_experiment( self, - request: experiment.StartExperimentRequest = None, + request: Union[experiment.StartExperimentRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -785,7 +785,7 @@ def start_experiment( RUNNING. Args: - request (google.cloud.dialogflowcx_v3beta1.types.StartExperimentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.StartExperimentRequest, dict]): The request object. The request message for [Experiments.StartExperiment][google.cloud.dialogflow.cx.v3beta1.Experiments.StartExperiment]. name (str): @@ -847,7 +847,7 @@ def start_experiment( def stop_experiment( self, - request: experiment.StopExperimentRequest = None, + request: Union[experiment.StopExperimentRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -860,7 +860,7 @@ def stop_experiment( DONE. Args: - request (google.cloud.dialogflowcx_v3beta1.types.StopExperimentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.StopExperimentRequest, dict]): The request object. The request message for [Experiments.StopExperiment][google.cloud.dialogflow.cx.v3beta1.Experiments.StopExperiment]. name (str): diff --git a/google/cloud/dialogflowcx_v3beta1/services/experiments/transports/base.py b/google/cloud/dialogflowcx_v3beta1/services/experiments/transports/base.py index 2ef669b2..a17a5340 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/experiments/transports/base.py +++ b/google/cloud/dialogflowcx_v3beta1/services/experiments/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3beta1/services/experiments/transports/grpc.py b/google/cloud/dialogflowcx_v3beta1/services/experiments/transports/grpc.py index 93b5e9be..a12801f4 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/experiments/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3beta1/services/experiments/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/experiments/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3beta1/services/experiments/transports/grpc_asyncio.py index 47425f1e..96ddbf80 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/experiments/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3beta1/services/experiments/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/flows/client.py b/google/cloud/dialogflowcx_v3beta1/services/flows/client.py index aa2690b0..7d93adaf 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/flows/client.py +++ b/google/cloud/dialogflowcx_v3beta1/services/flows/client.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 @@ -451,7 +451,7 @@ def __init__( def create_flow( self, - request: gcdc_flow.CreateFlowRequest = None, + request: Union[gcdc_flow.CreateFlowRequest, dict] = None, *, parent: str = None, flow: gcdc_flow.Flow = None, @@ -466,7 +466,7 @@ def create_flow( documentation `__. Args: - request (google.cloud.dialogflowcx_v3beta1.types.CreateFlowRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.CreateFlowRequest, dict]): The request object. The request message for [Flows.CreateFlow][google.cloud.dialogflow.cx.v3beta1.Flows.CreateFlow]. parent (str): @@ -555,7 +555,7 @@ def create_flow( def delete_flow( self, - request: flow.DeleteFlowRequest = None, + request: Union[flow.DeleteFlowRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -565,7 +565,7 @@ def delete_flow( r"""Deletes a specified flow. Args: - request (google.cloud.dialogflowcx_v3beta1.types.DeleteFlowRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.DeleteFlowRequest, dict]): The request object. The request message for [Flows.DeleteFlow][google.cloud.dialogflow.cx.v3beta1.Flows.DeleteFlow]. name (str): @@ -619,7 +619,7 @@ def delete_flow( def list_flows( self, - request: flow.ListFlowsRequest = None, + request: Union[flow.ListFlowsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -629,7 +629,7 @@ def list_flows( r"""Returns the list of all flows in the specified agent. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ListFlowsRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ListFlowsRequest, dict]): The request object. The request message for [Flows.ListFlows][google.cloud.dialogflow.cx.v3beta1.Flows.ListFlows]. parent (str): @@ -699,7 +699,7 @@ def list_flows( def get_flow( self, - request: flow.GetFlowRequest = None, + request: Union[flow.GetFlowRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -709,7 +709,7 @@ def get_flow( r"""Retrieves the specified flow. Args: - request (google.cloud.dialogflowcx_v3beta1.types.GetFlowRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.GetFlowRequest, dict]): The request object. The response message for [Flows.GetFlow][google.cloud.dialogflow.cx.v3beta1.Flows.GetFlow]. name (str): @@ -791,7 +791,7 @@ def get_flow( def update_flow( self, - request: gcdc_flow.UpdateFlowRequest = None, + request: Union[gcdc_flow.UpdateFlowRequest, dict] = None, *, flow: gcdc_flow.Flow = None, update_mask: field_mask_pb2.FieldMask = None, @@ -806,7 +806,7 @@ def update_flow( documentation `__. Args: - request (google.cloud.dialogflowcx_v3beta1.types.UpdateFlowRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.UpdateFlowRequest, dict]): The request object. The request message for [Flows.UpdateFlow][google.cloud.dialogflow.cx.v3beta1.Flows.UpdateFlow]. flow (google.cloud.dialogflowcx_v3beta1.types.Flow): @@ -898,7 +898,7 @@ def update_flow( def train_flow( self, - request: flow.TrainFlowRequest = None, + request: Union[flow.TrainFlowRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -913,7 +913,7 @@ def train_flow( documentation `__. Args: - request (google.cloud.dialogflowcx_v3beta1.types.TrainFlowRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.TrainFlowRequest, dict]): The request object. The request message for [Flows.TrainFlow][google.cloud.dialogflow.cx.v3beta1.Flows.TrainFlow]. name (str): @@ -995,7 +995,7 @@ def train_flow( def validate_flow( self, - request: flow.ValidateFlowRequest = None, + request: Union[flow.ValidateFlowRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -1007,7 +1007,7 @@ def validate_flow( results. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ValidateFlowRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ValidateFlowRequest, dict]): The request object. The request message for [Flows.ValidateFlow][google.cloud.dialogflow.cx.v3beta1.Flows.ValidateFlow]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1048,7 +1048,7 @@ def validate_flow( def get_flow_validation_result( self, - request: flow.GetFlowValidationResultRequest = None, + request: Union[flow.GetFlowValidationResultRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -1059,7 +1059,7 @@ def get_flow_validation_result( validation is performed when ValidateFlow is called. Args: - request (google.cloud.dialogflowcx_v3beta1.types.GetFlowValidationResultRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.GetFlowValidationResultRequest, dict]): The request object. The request message for [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowValidationResult]. name (str): @@ -1122,7 +1122,7 @@ def get_flow_validation_result( def import_flow( self, - request: flow.ImportFlowRequest = None, + request: Union[flow.ImportFlowRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -1136,7 +1136,7 @@ def import_flow( documentation `__. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ImportFlowRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ImportFlowRequest, dict]): The request object. The request message for [Flows.ImportFlow][google.cloud.dialogflow.cx.v3beta1.Flows.ImportFlow]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1189,7 +1189,7 @@ def import_flow( def export_flow( self, - request: flow.ExportFlowRequest = None, + request: Union[flow.ExportFlowRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -1200,7 +1200,7 @@ def export_flow( that the flow references will also be exported. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ExportFlowRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ExportFlowRequest, dict]): The request object. The request message for [Flows.ExportFlow][google.cloud.dialogflow.cx.v3beta1.Flows.ExportFlow]. retry (google.api_core.retry.Retry): Designation of what errors, if any, diff --git a/google/cloud/dialogflowcx_v3beta1/services/flows/transports/base.py b/google/cloud/dialogflowcx_v3beta1/services/flows/transports/base.py index 3f6e2e3a..7d9d697b 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/flows/transports/base.py +++ b/google/cloud/dialogflowcx_v3beta1/services/flows/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3beta1/services/flows/transports/grpc.py b/google/cloud/dialogflowcx_v3beta1/services/flows/transports/grpc.py index e8f66cba..0dcb359e 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/flows/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3beta1/services/flows/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/flows/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3beta1/services/flows/transports/grpc_asyncio.py index 034f02ec..a573f358 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/flows/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3beta1/services/flows/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/intents/client.py b/google/cloud/dialogflowcx_v3beta1/services/intents/client.py index 598fb687..3a96a571 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/intents/client.py +++ b/google/cloud/dialogflowcx_v3beta1/services/intents/client.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 @@ -372,7 +372,7 @@ def __init__( def list_intents( self, - request: intent.ListIntentsRequest = None, + request: Union[intent.ListIntentsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -383,7 +383,7 @@ def list_intents( agent. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ListIntentsRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ListIntentsRequest, dict]): The request object. The request message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ListIntents]. parent (str): @@ -453,7 +453,7 @@ def list_intents( def get_intent( self, - request: intent.GetIntentRequest = None, + request: Union[intent.GetIntentRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -463,7 +463,7 @@ def get_intent( r"""Retrieves the specified intent. Args: - request (google.cloud.dialogflowcx_v3beta1.types.GetIntentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.GetIntentRequest, dict]): The request object. The request message for [Intents.GetIntent][google.cloud.dialogflow.cx.v3beta1.Intents.GetIntent]. name (str): @@ -529,7 +529,7 @@ def get_intent( def create_intent( self, - request: gcdc_intent.CreateIntentRequest = None, + request: Union[gcdc_intent.CreateIntentRequest, dict] = None, *, parent: str = None, intent: gcdc_intent.Intent = None, @@ -544,7 +544,7 @@ def create_intent( documentation `__. Args: - request (google.cloud.dialogflowcx_v3beta1.types.CreateIntentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.CreateIntentRequest, dict]): The request object. The request message for [Intents.CreateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntent]. parent (str): @@ -617,7 +617,7 @@ def create_intent( def update_intent( self, - request: gcdc_intent.UpdateIntentRequest = None, + request: Union[gcdc_intent.UpdateIntentRequest, dict] = None, *, intent: gcdc_intent.Intent = None, update_mask: field_mask_pb2.FieldMask = None, @@ -632,7 +632,7 @@ def update_intent( documentation `__. Args: - request (google.cloud.dialogflowcx_v3beta1.types.UpdateIntentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.UpdateIntentRequest, dict]): The request object. The request message for [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntent]. intent (google.cloud.dialogflowcx_v3beta1.types.Intent): @@ -708,7 +708,7 @@ def update_intent( def delete_intent( self, - request: intent.DeleteIntentRequest = None, + request: Union[intent.DeleteIntentRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -722,7 +722,7 @@ def delete_intent( documentation `__. Args: - request (google.cloud.dialogflowcx_v3beta1.types.DeleteIntentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.DeleteIntentRequest, dict]): The request object. The request message for [Intents.DeleteIntent][google.cloud.dialogflow.cx.v3beta1.Intents.DeleteIntent]. name (str): diff --git a/google/cloud/dialogflowcx_v3beta1/services/intents/transports/base.py b/google/cloud/dialogflowcx_v3beta1/services/intents/transports/base.py index d26294b6..b26e318e 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/intents/transports/base.py +++ b/google/cloud/dialogflowcx_v3beta1/services/intents/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3beta1/services/intents/transports/grpc.py b/google/cloud/dialogflowcx_v3beta1/services/intents/transports/grpc.py index c9881ace..24fe0788 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/intents/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3beta1/services/intents/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/intents/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3beta1/services/intents/transports/grpc_asyncio.py index 337db908..5a06cd2f 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/intents/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3beta1/services/intents/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/pages/client.py b/google/cloud/dialogflowcx_v3beta1/services/pages/client.py index 9a871c38..ee4eb84b 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/pages/client.py +++ b/google/cloud/dialogflowcx_v3beta1/services/pages/client.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 @@ -445,7 +445,7 @@ def __init__( def list_pages( self, - request: page.ListPagesRequest = None, + request: Union[page.ListPagesRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -455,7 +455,7 @@ def list_pages( r"""Returns the list of all pages in the specified flow. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ListPagesRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ListPagesRequest, dict]): The request object. The request message for [Pages.ListPages][google.cloud.dialogflow.cx.v3beta1.Pages.ListPages]. parent (str): @@ -525,7 +525,7 @@ def list_pages( def get_page( self, - request: page.GetPageRequest = None, + request: Union[page.GetPageRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -535,7 +535,7 @@ def get_page( r"""Retrieves the specified page. Args: - request (google.cloud.dialogflowcx_v3beta1.types.GetPageRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.GetPageRequest, dict]): The request object. The request message for [Pages.GetPage][google.cloud.dialogflow.cx.v3beta1.Pages.GetPage]. name (str): @@ -616,7 +616,7 @@ def get_page( def create_page( self, - request: gcdc_page.CreatePageRequest = None, + request: Union[gcdc_page.CreatePageRequest, dict] = None, *, parent: str = None, page: gcdc_page.Page = None, @@ -627,7 +627,7 @@ def create_page( r"""Creates a page in the specified flow. Args: - request (google.cloud.dialogflowcx_v3beta1.types.CreatePageRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.CreatePageRequest, dict]): The request object. The request message for [Pages.CreatePage][google.cloud.dialogflow.cx.v3beta1.Pages.CreatePage]. parent (str): @@ -715,7 +715,7 @@ def create_page( def update_page( self, - request: gcdc_page.UpdatePageRequest = None, + request: Union[gcdc_page.UpdatePageRequest, dict] = None, *, page: gcdc_page.Page = None, update_mask: field_mask_pb2.FieldMask = None, @@ -726,7 +726,7 @@ def update_page( r"""Updates the specified page. Args: - request (google.cloud.dialogflowcx_v3beta1.types.UpdatePageRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.UpdatePageRequest, dict]): The request object. The request message for [Pages.UpdatePage][google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePage]. page (google.cloud.dialogflowcx_v3beta1.types.Page): @@ -817,7 +817,7 @@ def update_page( def delete_page( self, - request: page.DeletePageRequest = None, + request: Union[page.DeletePageRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -827,7 +827,7 @@ def delete_page( r"""Deletes the specified page. Args: - request (google.cloud.dialogflowcx_v3beta1.types.DeletePageRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.DeletePageRequest, dict]): The request object. The request message for [Pages.DeletePage][google.cloud.dialogflow.cx.v3beta1.Pages.DeletePage]. name (str): diff --git a/google/cloud/dialogflowcx_v3beta1/services/pages/transports/base.py b/google/cloud/dialogflowcx_v3beta1/services/pages/transports/base.py index d85b439e..0d629c1a 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/pages/transports/base.py +++ b/google/cloud/dialogflowcx_v3beta1/services/pages/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3beta1/services/pages/transports/grpc.py b/google/cloud/dialogflowcx_v3beta1/services/pages/transports/grpc.py index 15bbd9ba..d8f6f698 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/pages/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3beta1/services/pages/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/pages/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3beta1/services/pages/transports/grpc_asyncio.py index 25f2b4cf..3bf69b0f 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/pages/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3beta1/services/pages/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/security_settings_service/client.py b/google/cloud/dialogflowcx_v3beta1/services/security_settings_service/client.py index 55692ece..240e9311 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/security_settings_service/client.py +++ b/google/cloud/dialogflowcx_v3beta1/services/security_settings_service/client.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 @@ -400,7 +400,9 @@ def __init__( def create_security_settings( self, - request: gcdc_security_settings.CreateSecuritySettingsRequest = None, + request: Union[ + gcdc_security_settings.CreateSecuritySettingsRequest, dict + ] = None, *, parent: str = None, security_settings: gcdc_security_settings.SecuritySettings = None, @@ -411,7 +413,7 @@ def create_security_settings( r"""Create security settings in the specified location. Args: - request (google.cloud.dialogflowcx_v3beta1.types.CreateSecuritySettingsRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.CreateSecuritySettingsRequest, dict]): The request object. The request message for [SecuritySettings.CreateSecuritySettings][]. parent (str): @@ -489,7 +491,7 @@ def create_security_settings( def get_security_settings( self, - request: security_settings.GetSecuritySettingsRequest = None, + request: Union[security_settings.GetSecuritySettingsRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -501,7 +503,7 @@ def get_security_settings( The returned settings may be stale by up to 1 minute. Args: - request (google.cloud.dialogflowcx_v3beta1.types.GetSecuritySettingsRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.GetSecuritySettingsRequest, dict]): The request object. The request message for [SecuritySettingsService.GetSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.GetSecuritySettings]. name (str): @@ -566,7 +568,9 @@ def get_security_settings( def update_security_settings( self, - request: gcdc_security_settings.UpdateSecuritySettingsRequest = None, + request: Union[ + gcdc_security_settings.UpdateSecuritySettingsRequest, dict + ] = None, *, security_settings: gcdc_security_settings.SecuritySettings = None, update_mask: field_mask_pb2.FieldMask = None, @@ -578,7 +582,7 @@ def update_security_settings( [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.UpdateSecuritySettingsRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.UpdateSecuritySettingsRequest, dict]): The request object. The request message for [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettings]. security_settings (google.cloud.dialogflowcx_v3beta1.types.SecuritySettings): @@ -657,7 +661,7 @@ def update_security_settings( def list_security_settings( self, - request: security_settings.ListSecuritySettingsRequest = None, + request: Union[security_settings.ListSecuritySettingsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -668,7 +672,7 @@ def list_security_settings( specified location. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ListSecuritySettingsRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ListSecuritySettingsRequest, dict]): The request object. The request message for [SecuritySettings.ListSecuritySettings][]. parent (str): @@ -739,7 +743,7 @@ def list_security_settings( def delete_security_settings( self, - request: security_settings.DeleteSecuritySettingsRequest = None, + request: Union[security_settings.DeleteSecuritySettingsRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -750,7 +754,7 @@ def delete_security_settings( [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.DeleteSecuritySettingsRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.DeleteSecuritySettingsRequest, dict]): The request object. The request message for [SecuritySettings.DeleteSecuritySettings][]. name (str): diff --git a/google/cloud/dialogflowcx_v3beta1/services/security_settings_service/transports/base.py b/google/cloud/dialogflowcx_v3beta1/services/security_settings_service/transports/base.py index c1b5f444..dae526b3 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/security_settings_service/transports/base.py +++ b/google/cloud/dialogflowcx_v3beta1/services/security_settings_service/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3beta1/services/security_settings_service/transports/grpc.py b/google/cloud/dialogflowcx_v3beta1/services/security_settings_service/transports/grpc.py index 7aa0c48e..069fc5f4 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/security_settings_service/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3beta1/services/security_settings_service/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/security_settings_service/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3beta1/services/security_settings_service/transports/grpc_asyncio.py index 5b475c22..f32f3f5e 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/security_settings_service/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3beta1/services/security_settings_service/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/session_entity_types/client.py b/google/cloud/dialogflowcx_v3beta1/services/session_entity_types/client.py index b0eb10e2..17687bcb 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/session_entity_types/client.py +++ b/google/cloud/dialogflowcx_v3beta1/services/session_entity_types/client.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 @@ -367,7 +367,7 @@ def __init__( def list_session_entity_types( self, - request: session_entity_type.ListSessionEntityTypesRequest = None, + request: Union[session_entity_type.ListSessionEntityTypesRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -378,7 +378,7 @@ def list_session_entity_types( specified session. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ListSessionEntityTypesRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ListSessionEntityTypesRequest, dict]): The request object. The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.ListSessionEntityTypes]. parent (str): @@ -455,7 +455,7 @@ def list_session_entity_types( def get_session_entity_type( self, - request: session_entity_type.GetSessionEntityTypeRequest = None, + request: Union[session_entity_type.GetSessionEntityTypeRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -465,7 +465,7 @@ def get_session_entity_type( r"""Retrieves the specified session entity type. Args: - request (google.cloud.dialogflowcx_v3beta1.types.GetSessionEntityTypeRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.GetSessionEntityTypeRequest, dict]): The request object. The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.GetSessionEntityType]. name (str): @@ -545,7 +545,9 @@ def get_session_entity_type( def create_session_entity_type( self, - request: gcdc_session_entity_type.CreateSessionEntityTypeRequest = None, + request: Union[ + gcdc_session_entity_type.CreateSessionEntityTypeRequest, dict + ] = None, *, parent: str = None, session_entity_type: gcdc_session_entity_type.SessionEntityType = None, @@ -556,7 +558,7 @@ def create_session_entity_type( r"""Creates a session entity type. Args: - request (google.cloud.dialogflowcx_v3beta1.types.CreateSessionEntityTypeRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.CreateSessionEntityTypeRequest, dict]): The request object. The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.CreateSessionEntityType]. parent (str): @@ -650,7 +652,9 @@ def create_session_entity_type( def update_session_entity_type( self, - request: gcdc_session_entity_type.UpdateSessionEntityTypeRequest = None, + request: Union[ + gcdc_session_entity_type.UpdateSessionEntityTypeRequest, dict + ] = None, *, session_entity_type: gcdc_session_entity_type.SessionEntityType = None, update_mask: field_mask_pb2.FieldMask = None, @@ -661,7 +665,7 @@ def update_session_entity_type( r"""Updates the specified session entity type. Args: - request (google.cloud.dialogflowcx_v3beta1.types.UpdateSessionEntityTypeRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.UpdateSessionEntityTypeRequest, dict]): The request object. The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.UpdateSessionEntityType]. session_entity_type (google.cloud.dialogflowcx_v3beta1.types.SessionEntityType): @@ -756,7 +760,7 @@ def update_session_entity_type( def delete_session_entity_type( self, - request: session_entity_type.DeleteSessionEntityTypeRequest = None, + request: Union[session_entity_type.DeleteSessionEntityTypeRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -766,7 +770,7 @@ def delete_session_entity_type( r"""Deletes the specified session entity type. Args: - request (google.cloud.dialogflowcx_v3beta1.types.DeleteSessionEntityTypeRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.DeleteSessionEntityTypeRequest, dict]): The request object. The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.DeleteSessionEntityType]. name (str): diff --git a/google/cloud/dialogflowcx_v3beta1/services/session_entity_types/transports/base.py b/google/cloud/dialogflowcx_v3beta1/services/session_entity_types/transports/base.py index 33369a64..7f321315 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/session_entity_types/transports/base.py +++ b/google/cloud/dialogflowcx_v3beta1/services/session_entity_types/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3beta1/services/session_entity_types/transports/grpc.py b/google/cloud/dialogflowcx_v3beta1/services/session_entity_types/transports/grpc.py index 933f2540..a022f72d 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/session_entity_types/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3beta1/services/session_entity_types/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/session_entity_types/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3beta1/services/session_entity_types/transports/grpc_asyncio.py index b410bd40..8061dada 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/session_entity_types/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3beta1/services/session_entity_types/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/sessions/client.py b/google/cloud/dialogflowcx_v3beta1/services/sessions/client.py index 5a896517..106c5b3b 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/sessions/client.py +++ b/google/cloud/dialogflowcx_v3beta1/services/sessions/client.py @@ -17,17 +17,7 @@ from distutils import util import os import re -from typing import ( - Callable, - Dict, - Optional, - Iterable, - Iterator, - Sequence, - Tuple, - Type, - Union, -) +from typing import Dict, Optional, Iterable, Iterator, Sequence, Tuple, Type, Union import pkg_resources from google.api_core import client_options as client_options_lib # type: ignore @@ -511,7 +501,7 @@ def __init__( def detect_intent( self, - request: session.DetectIntentRequest = None, + request: Union[session.DetectIntentRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -527,7 +517,7 @@ def detect_intent( environments `__. Args: - request (google.cloud.dialogflowcx_v3beta1.types.DetectIntentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.DetectIntentRequest, dict]): The request object. The request to detect user's intent. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. @@ -659,7 +649,7 @@ def streaming_detect_intent( def match_intent( self, - request: session.MatchIntentRequest = None, + request: Union[session.MatchIntentRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -669,7 +659,7 @@ def match_intent( change the session status. Args: - request (google.cloud.dialogflowcx_v3beta1.types.MatchIntentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.MatchIntentRequest, dict]): The request object. Request of [MatchIntent][]. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. @@ -707,7 +697,7 @@ def match_intent( def fulfill_intent( self, - request: session.FulfillIntentRequest = None, + request: Union[session.FulfillIntentRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -722,7 +712,7 @@ def fulfill_intent( Otherwise, the behavior is undefined. Args: - request (google.cloud.dialogflowcx_v3beta1.types.FulfillIntentRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.FulfillIntentRequest, dict]): The request object. Request of [FulfillIntent][] retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. diff --git a/google/cloud/dialogflowcx_v3beta1/services/sessions/transports/base.py b/google/cloud/dialogflowcx_v3beta1/services/sessions/transports/base.py index 07bc22d7..01a8723b 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/sessions/transports/base.py +++ b/google/cloud/dialogflowcx_v3beta1/services/sessions/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3beta1/services/sessions/transports/grpc.py b/google/cloud/dialogflowcx_v3beta1/services/sessions/transports/grpc.py index 03d404a8..4957668b 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/sessions/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3beta1/services/sessions/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/sessions/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3beta1/services/sessions/transports/grpc_asyncio.py index 4ec71476..dccf65aa 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/sessions/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3beta1/services/sessions/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/test_cases/client.py b/google/cloud/dialogflowcx_v3beta1/services/test_cases/client.py index e76084ab..473be451 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/test_cases/client.py +++ b/google/cloud/dialogflowcx_v3beta1/services/test_cases/client.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 @@ -520,7 +520,7 @@ def __init__( def list_test_cases( self, - request: test_case.ListTestCasesRequest = None, + request: Union[test_case.ListTestCasesRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -530,7 +530,7 @@ def list_test_cases( r"""Fetches a list of test cases for a given agent. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ListTestCasesRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ListTestCasesRequest, dict]): The request object. The request message for [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCases]. parent (str): @@ -600,7 +600,7 @@ def list_test_cases( def batch_delete_test_cases( self, - request: test_case.BatchDeleteTestCasesRequest = None, + request: Union[test_case.BatchDeleteTestCasesRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -610,7 +610,7 @@ def batch_delete_test_cases( r"""Batch deletes test cases. Args: - request (google.cloud.dialogflowcx_v3beta1.types.BatchDeleteTestCasesRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.BatchDeleteTestCasesRequest, dict]): The request object. The request message for [TestCases.BatchDeleteTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.BatchDeleteTestCases]. parent (str): @@ -664,7 +664,7 @@ def batch_delete_test_cases( def get_test_case( self, - request: test_case.GetTestCaseRequest = None, + request: Union[test_case.GetTestCaseRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -674,7 +674,7 @@ def get_test_case( r"""Gets a test case. Args: - request (google.cloud.dialogflowcx_v3beta1.types.GetTestCaseRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.GetTestCaseRequest, dict]): The request object. The request message for [TestCases.GetTestCase][google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCase]. name (str): @@ -733,7 +733,7 @@ def get_test_case( def create_test_case( self, - request: gcdc_test_case.CreateTestCaseRequest = None, + request: Union[gcdc_test_case.CreateTestCaseRequest, dict] = None, *, parent: str = None, test_case: gcdc_test_case.TestCase = None, @@ -744,7 +744,7 @@ def create_test_case( r"""Creates a test case for the given agent. Args: - request (google.cloud.dialogflowcx_v3beta1.types.CreateTestCaseRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.CreateTestCaseRequest, dict]): The request object. The request message for [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3beta1.TestCases.CreateTestCase]. parent (str): @@ -810,7 +810,7 @@ def create_test_case( def update_test_case( self, - request: gcdc_test_case.UpdateTestCaseRequest = None, + request: Union[gcdc_test_case.UpdateTestCaseRequest, dict] = None, *, test_case: gcdc_test_case.TestCase = None, update_mask: field_mask_pb2.FieldMask = None, @@ -821,7 +821,7 @@ def update_test_case( r"""Updates the specified test case. Args: - request (google.cloud.dialogflowcx_v3beta1.types.UpdateTestCaseRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.UpdateTestCaseRequest, dict]): The request object. The request message for [TestCases.UpdateTestCase][google.cloud.dialogflow.cx.v3beta1.TestCases.UpdateTestCase]. test_case (google.cloud.dialogflowcx_v3beta1.types.TestCase): @@ -893,7 +893,7 @@ def update_test_case( def run_test_case( self, - request: test_case.RunTestCaseRequest = None, + request: Union[test_case.RunTestCaseRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -910,7 +910,7 @@ def run_test_case( [RunTestCaseResponse][google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse] Args: - request (google.cloud.dialogflowcx_v3beta1.types.RunTestCaseRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.RunTestCaseRequest, dict]): The request object. The request message for [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3beta1.TestCases.RunTestCase]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -963,7 +963,7 @@ def run_test_case( def batch_run_test_cases( self, - request: test_case.BatchRunTestCasesRequest = None, + request: Union[test_case.BatchRunTestCasesRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -972,7 +972,7 @@ def batch_run_test_cases( r"""Kicks off a batch run of test cases. Args: - request (google.cloud.dialogflowcx_v3beta1.types.BatchRunTestCasesRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.BatchRunTestCasesRequest, dict]): The request object. The request message for [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.BatchRunTestCases]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1025,7 +1025,7 @@ def batch_run_test_cases( def calculate_coverage( self, - request: test_case.CalculateCoverageRequest = None, + request: Union[test_case.CalculateCoverageRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -1034,7 +1034,7 @@ def calculate_coverage( r"""Calculates the test coverage for an agent. Args: - request (google.cloud.dialogflowcx_v3beta1.types.CalculateCoverageRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.CalculateCoverageRequest, dict]): The request object. The request message for [TestCases.CalculateCoverage][google.cloud.dialogflow.cx.v3beta1.TestCases.CalculateCoverage]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1075,7 +1075,7 @@ def calculate_coverage( def import_test_cases( self, - request: test_case.ImportTestCasesRequest = None, + request: Union[test_case.ImportTestCasesRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -1087,7 +1087,7 @@ def import_test_cases( imported test case is neglected. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ImportTestCasesRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ImportTestCasesRequest, dict]): The request object. The request message for [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.ImportTestCases]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1140,7 +1140,7 @@ def import_test_cases( def export_test_cases( self, - request: test_case.ExportTestCasesRequest = None, + request: Union[test_case.ExportTestCasesRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -1151,7 +1151,7 @@ def export_test_cases( export a subset of test cases. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ExportTestCasesRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ExportTestCasesRequest, dict]): The request object. The request message for [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.ExportTestCases]. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1204,7 +1204,7 @@ def export_test_cases( def list_test_case_results( self, - request: test_case.ListTestCaseResultsRequest = None, + request: Union[test_case.ListTestCaseResultsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -1214,7 +1214,7 @@ def list_test_case_results( r"""Fetches a list of results for a given test case. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ListTestCaseResultsRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ListTestCaseResultsRequest, dict]): The request object. The request message for [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCaseResults]. parent (str): @@ -1286,7 +1286,7 @@ def list_test_case_results( def get_test_case_result( self, - request: test_case.GetTestCaseResultRequest = None, + request: Union[test_case.GetTestCaseResultRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -1296,7 +1296,7 @@ def get_test_case_result( r"""Gets a test case result. Args: - request (google.cloud.dialogflowcx_v3beta1.types.GetTestCaseResultRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.GetTestCaseResultRequest, dict]): The request object. The request message for [TestCases.GetTestCaseResult][google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseResult]. name (str): diff --git a/google/cloud/dialogflowcx_v3beta1/services/test_cases/transports/base.py b/google/cloud/dialogflowcx_v3beta1/services/test_cases/transports/base.py index 5aabda79..5def3919 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/test_cases/transports/base.py +++ b/google/cloud/dialogflowcx_v3beta1/services/test_cases/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3beta1/services/test_cases/transports/grpc.py b/google/cloud/dialogflowcx_v3beta1/services/test_cases/transports/grpc.py index aeeeab80..d4fd4a3d 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/test_cases/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3beta1/services/test_cases/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/test_cases/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3beta1/services/test_cases/transports/grpc_asyncio.py index 0a2c2c52..04c29c8a 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/test_cases/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3beta1/services/test_cases/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/transition_route_groups/client.py b/google/cloud/dialogflowcx_v3beta1/services/transition_route_groups/client.py index 9fbfb9a1..c35e3a11 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/transition_route_groups/client.py +++ b/google/cloud/dialogflowcx_v3beta1/services/transition_route_groups/client.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 @@ -433,7 +433,9 @@ def __init__( def list_transition_route_groups( self, - request: transition_route_group.ListTransitionRouteGroupsRequest = None, + request: Union[ + transition_route_group.ListTransitionRouteGroupsRequest, dict + ] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -444,7 +446,7 @@ def list_transition_route_groups( the specified flow. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ListTransitionRouteGroupsRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ListTransitionRouteGroupsRequest, dict]): The request object. The request message for [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.ListTransitionRouteGroups]. parent (str): @@ -519,7 +521,9 @@ def list_transition_route_groups( def get_transition_route_group( self, - request: transition_route_group.GetTransitionRouteGroupRequest = None, + request: Union[ + transition_route_group.GetTransitionRouteGroupRequest, dict + ] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -530,7 +534,7 @@ def get_transition_route_group( [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.GetTransitionRouteGroupRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.GetTransitionRouteGroupRequest, dict]): The request object. The request message for [TransitionRouteGroups.GetTransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.GetTransitionRouteGroup]. name (str): @@ -599,7 +603,9 @@ def get_transition_route_group( def create_transition_route_group( self, - request: gcdc_transition_route_group.CreateTransitionRouteGroupRequest = None, + request: Union[ + gcdc_transition_route_group.CreateTransitionRouteGroupRequest, dict + ] = None, *, parent: str = None, transition_route_group: gcdc_transition_route_group.TransitionRouteGroup = None, @@ -616,7 +622,7 @@ def create_transition_route_group( documentation `__. Args: - request (google.cloud.dialogflowcx_v3beta1.types.CreateTransitionRouteGroupRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.CreateTransitionRouteGroupRequest, dict]): The request object. The request message for [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroup]. parent (str): @@ -696,7 +702,9 @@ def create_transition_route_group( def update_transition_route_group( self, - request: gcdc_transition_route_group.UpdateTransitionRouteGroupRequest = None, + request: Union[ + gcdc_transition_route_group.UpdateTransitionRouteGroupRequest, dict + ] = None, *, transition_route_group: gcdc_transition_route_group.TransitionRouteGroup = None, update_mask: field_mask_pb2.FieldMask = None, @@ -712,7 +720,7 @@ def update_transition_route_group( documentation `__. Args: - request (google.cloud.dialogflowcx_v3beta1.types.UpdateTransitionRouteGroupRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.UpdateTransitionRouteGroupRequest, dict]): The request object. The request message for [TransitionRouteGroups.UpdateTransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.UpdateTransitionRouteGroup]. transition_route_group (google.cloud.dialogflowcx_v3beta1.types.TransitionRouteGroup): @@ -792,7 +800,9 @@ def update_transition_route_group( def delete_transition_route_group( self, - request: transition_route_group.DeleteTransitionRouteGroupRequest = None, + request: Union[ + transition_route_group.DeleteTransitionRouteGroupRequest, dict + ] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -807,7 +817,7 @@ def delete_transition_route_group( documentation `__. Args: - request (google.cloud.dialogflowcx_v3beta1.types.DeleteTransitionRouteGroupRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.DeleteTransitionRouteGroupRequest, dict]): The request object. The request message for [TransitionRouteGroups.DeleteTransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.DeleteTransitionRouteGroup]. name (str): diff --git a/google/cloud/dialogflowcx_v3beta1/services/transition_route_groups/transports/base.py b/google/cloud/dialogflowcx_v3beta1/services/transition_route_groups/transports/base.py index 56c11af2..0dec9350 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/transition_route_groups/transports/base.py +++ b/google/cloud/dialogflowcx_v3beta1/services/transition_route_groups/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3beta1/services/transition_route_groups/transports/grpc.py b/google/cloud/dialogflowcx_v3beta1/services/transition_route_groups/transports/grpc.py index a916616b..d2503627 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/transition_route_groups/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3beta1/services/transition_route_groups/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/transition_route_groups/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3beta1/services/transition_route_groups/transports/grpc_asyncio.py index e935b305..83de8f6a 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/transition_route_groups/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3beta1/services/transition_route_groups/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/versions/client.py b/google/cloud/dialogflowcx_v3beta1/services/versions/client.py index 82dec718..7b5e5ca7 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/versions/client.py +++ b/google/cloud/dialogflowcx_v3beta1/services/versions/client.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 @@ -362,7 +362,7 @@ def __init__( def list_versions( self, - request: version.ListVersionsRequest = None, + request: Union[version.ListVersionsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -373,7 +373,7 @@ def list_versions( [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ListVersionsRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ListVersionsRequest, dict]): The request object. The request message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3beta1.Versions.ListVersions]. parent (str): @@ -445,7 +445,7 @@ def list_versions( def get_version( self, - request: version.GetVersionRequest = None, + request: Union[version.GetVersionRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -456,7 +456,7 @@ def get_version( [Version][google.cloud.dialogflow.cx.v3beta1.Version]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.GetVersionRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.GetVersionRequest, dict]): The request object. The request message for [Versions.GetVersion][google.cloud.dialogflow.cx.v3beta1.Versions.GetVersion]. name (str): @@ -517,7 +517,7 @@ def get_version( def create_version( self, - request: gcdc_version.CreateVersionRequest = None, + request: Union[gcdc_version.CreateVersionRequest, dict] = None, *, parent: str = None, version: gcdc_version.Version = None, @@ -530,7 +530,7 @@ def create_version( [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.CreateVersionRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.CreateVersionRequest, dict]): The request object. The request message for [Versions.CreateVersion][google.cloud.dialogflow.cx.v3beta1.Versions.CreateVersion]. parent (str): @@ -613,7 +613,7 @@ def create_version( def update_version( self, - request: gcdc_version.UpdateVersionRequest = None, + request: Union[gcdc_version.UpdateVersionRequest, dict] = None, *, version: gcdc_version.Version = None, update_mask: field_mask_pb2.FieldMask = None, @@ -625,7 +625,7 @@ def update_version( [Version][google.cloud.dialogflow.cx.v3beta1.Version]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.UpdateVersionRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.UpdateVersionRequest, dict]): The request object. The request message for [Versions.UpdateVersion][google.cloud.dialogflow.cx.v3beta1.Versions.UpdateVersion]. version (google.cloud.dialogflowcx_v3beta1.types.Version): @@ -694,7 +694,7 @@ def update_version( def delete_version( self, - request: version.DeleteVersionRequest = None, + request: Union[version.DeleteVersionRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -705,7 +705,7 @@ def delete_version( [Version][google.cloud.dialogflow.cx.v3beta1.Version]. Args: - request (google.cloud.dialogflowcx_v3beta1.types.DeleteVersionRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.DeleteVersionRequest, dict]): The request object. The request message for [Versions.DeleteVersion][google.cloud.dialogflow.cx.v3beta1.Versions.DeleteVersion]. name (str): @@ -761,7 +761,7 @@ def delete_version( def load_version( self, - request: version.LoadVersionRequest = None, + request: Union[version.LoadVersionRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -772,7 +772,7 @@ def load_version( flow. Args: - request (google.cloud.dialogflowcx_v3beta1.types.LoadVersionRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.LoadVersionRequest, dict]): The request object. The request message for [Versions.LoadVersion][google.cloud.dialogflow.cx.v3beta1.Versions.LoadVersion]. name (str): diff --git a/google/cloud/dialogflowcx_v3beta1/services/versions/transports/base.py b/google/cloud/dialogflowcx_v3beta1/services/versions/transports/base.py index 7428f2cc..7cb9990b 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/versions/transports/base.py +++ b/google/cloud/dialogflowcx_v3beta1/services/versions/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3beta1/services/versions/transports/grpc.py b/google/cloud/dialogflowcx_v3beta1/services/versions/transports/grpc.py index 292e45c9..ff78ec16 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/versions/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3beta1/services/versions/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/versions/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3beta1/services/versions/transports/grpc_asyncio.py index ad212622..a161444b 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/versions/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3beta1/services/versions/transports/grpc_asyncio.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/webhooks/client.py b/google/cloud/dialogflowcx_v3beta1/services/webhooks/client.py index 7f31e27b..2febbf7e 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/webhooks/client.py +++ b/google/cloud/dialogflowcx_v3beta1/services/webhooks/client.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 @@ -371,7 +371,7 @@ def __init__( def list_webhooks( self, - request: webhook.ListWebhooksRequest = None, + request: Union[webhook.ListWebhooksRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -382,7 +382,7 @@ def list_webhooks( agent. Args: - request (google.cloud.dialogflowcx_v3beta1.types.ListWebhooksRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.ListWebhooksRequest, dict]): The request object. The request message for [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3beta1.Webhooks.ListWebhooks]. parent (str): @@ -452,7 +452,7 @@ def list_webhooks( def get_webhook( self, - request: webhook.GetWebhookRequest = None, + request: Union[webhook.GetWebhookRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -462,7 +462,7 @@ def get_webhook( r"""Retrieves the specified webhook. Args: - request (google.cloud.dialogflowcx_v3beta1.types.GetWebhookRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.GetWebhookRequest, dict]): The request object. The request message for [Webhooks.GetWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.GetWebhook]. name (str): @@ -528,7 +528,7 @@ def get_webhook( def create_webhook( self, - request: gcdc_webhook.CreateWebhookRequest = None, + request: Union[gcdc_webhook.CreateWebhookRequest, dict] = None, *, parent: str = None, webhook: gcdc_webhook.Webhook = None, @@ -539,7 +539,7 @@ def create_webhook( r"""Creates a webhook in the specified agent. Args: - request (google.cloud.dialogflowcx_v3beta1.types.CreateWebhookRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.CreateWebhookRequest, dict]): The request object. The request message for [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhook]. parent (str): @@ -612,7 +612,7 @@ def create_webhook( def update_webhook( self, - request: gcdc_webhook.UpdateWebhookRequest = None, + request: Union[gcdc_webhook.UpdateWebhookRequest, dict] = None, *, webhook: gcdc_webhook.Webhook = None, update_mask: field_mask_pb2.FieldMask = None, @@ -623,7 +623,7 @@ def update_webhook( r"""Updates the specified webhook. Args: - request (google.cloud.dialogflowcx_v3beta1.types.UpdateWebhookRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.UpdateWebhookRequest, dict]): The request object. The request message for [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.UpdateWebhook]. webhook (google.cloud.dialogflowcx_v3beta1.types.Webhook): @@ -699,7 +699,7 @@ def update_webhook( def delete_webhook( self, - request: webhook.DeleteWebhookRequest = None, + request: Union[webhook.DeleteWebhookRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -709,7 +709,7 @@ def delete_webhook( r"""Deletes the specified webhook. Args: - request (google.cloud.dialogflowcx_v3beta1.types.DeleteWebhookRequest): + request (Union[google.cloud.dialogflowcx_v3beta1.types.DeleteWebhookRequest, dict]): The request object. The request message for [Webhooks.DeleteWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.DeleteWebhook]. name (str): diff --git a/google/cloud/dialogflowcx_v3beta1/services/webhooks/transports/base.py b/google/cloud/dialogflowcx_v3beta1/services/webhooks/transports/base.py index 504b1752..1d793308 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/webhooks/transports/base.py +++ b/google/cloud/dialogflowcx_v3beta1/services/webhooks/transports/base.py @@ -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) diff --git a/google/cloud/dialogflowcx_v3beta1/services/webhooks/transports/grpc.py b/google/cloud/dialogflowcx_v3beta1/services/webhooks/transports/grpc.py index 0c91f64a..dffd18e1 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/webhooks/transports/grpc.py +++ b/google/cloud/dialogflowcx_v3beta1/services/webhooks/transports/grpc.py @@ -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. diff --git a/google/cloud/dialogflowcx_v3beta1/services/webhooks/transports/grpc_asyncio.py b/google/cloud/dialogflowcx_v3beta1/services/webhooks/transports/grpc_asyncio.py index bb86cf6e..441eee68 100644 --- a/google/cloud/dialogflowcx_v3beta1/services/webhooks/transports/grpc_asyncio.py +++ b/google/cloud/dialogflowcx_v3beta1/services/webhooks/transports/grpc_asyncio.py @@ -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.