From c0945ebabb75f0cc53c09ce30dce46fd424fa0d4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 24 Sep 2021 15:10:28 +0000 Subject: [PATCH] chore: use gapic-generator-python 0.51.2 (#163) - [ ] Regenerate this pull request now. fix: add 'dict' annotation type to 'request' Committer: @busunkim96 PiperOrigin-RevId: 398509016 Source-Link: https://github.com/googleapis/googleapis/commit/b224dfa52642a733ea64849d4e06d15c274bc08f Source-Link: https://github.com/googleapis/googleapis-gen/commit/63a1db7a38d74b9639592f521ed1daaf7299ad9a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9 --- .../services/company_service/client.py | 22 +++--- .../company_service/transports/base.py | 2 +- .../company_service/transports/grpc.py | 6 +- .../transports/grpc_asyncio.py | 6 +- .../talent_v4/services/completion/client.py | 6 +- .../services/completion/transports/base.py | 2 +- .../services/completion/transports/grpc.py | 6 +- .../completion/transports/grpc_asyncio.py | 6 +- .../services/event_service/client.py | 6 +- .../services/event_service/transports/base.py | 2 +- .../services/event_service/transports/grpc.py | 6 +- .../event_service/transports/grpc_asyncio.py | 6 +- .../talent_v4/services/job_service/client.py | 42 ++++++------ .../services/job_service/transports/base.py | 2 +- .../services/job_service/transports/grpc.py | 6 +- .../job_service/transports/grpc_asyncio.py | 6 +- .../services/tenant_service/client.py | 22 +++--- .../tenant_service/transports/base.py | 2 +- .../tenant_service/transports/grpc.py | 6 +- .../tenant_service/transports/grpc_asyncio.py | 6 +- .../services/application_service/client.py | 22 +++--- .../application_service/transports/base.py | 2 +- .../application_service/transports/grpc.py | 6 +- .../transports/grpc_asyncio.py | 6 +- .../services/company_service/client.py | 22 +++--- .../company_service/transports/base.py | 2 +- .../company_service/transports/grpc.py | 6 +- .../transports/grpc_asyncio.py | 6 +- .../services/completion/client.py | 6 +- .../services/completion/transports/base.py | 2 +- .../services/completion/transports/grpc.py | 6 +- .../completion/transports/grpc_asyncio.py | 6 +- .../services/event_service/client.py | 6 +- .../services/event_service/transports/base.py | 2 +- .../services/event_service/transports/grpc.py | 6 +- .../event_service/transports/grpc_asyncio.py | 6 +- .../services/job_service/client.py | 42 ++++++------ .../services/job_service/transports/base.py | 2 +- .../services/job_service/transports/grpc.py | 6 +- .../job_service/transports/grpc_asyncio.py | 6 +- .../services/profile_service/client.py | 26 +++---- .../profile_service/transports/base.py | 2 +- .../profile_service/transports/grpc.py | 6 +- .../transports/grpc_asyncio.py | 6 +- .../services/tenant_service/client.py | 22 +++--- .../tenant_service/transports/base.py | 2 +- .../tenant_service/transports/grpc.py | 6 +- .../tenant_service/transports/grpc_asyncio.py | 6 +- scripts/fixup_talent_v4_keywords.py | 46 ++++++------- scripts/fixup_talent_v4beta1_keywords.py | 68 +++++++++---------- 50 files changed, 263 insertions(+), 263 deletions(-) diff --git a/google/cloud/talent_v4/services/company_service/client.py b/google/cloud/talent_v4/services/company_service/client.py index f28753b2..477d37fe 100644 --- a/google/cloud/talent_v4/services/company_service/client.py +++ b/google/cloud/talent_v4/services/company_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 @@ -371,7 +371,7 @@ def __init__( def create_company( self, - request: company_service.CreateCompanyRequest = None, + request: Union[company_service.CreateCompanyRequest, dict] = None, *, parent: str = None, company: gct_company.Company = None, @@ -382,7 +382,7 @@ def create_company( r"""Creates a new company entity. Args: - request (google.cloud.talent_v4.types.CreateCompanyRequest): + request (Union[google.cloud.talent_v4.types.CreateCompanyRequest, dict]): The request object. The Request of the CreateCompany method. parent (str): @@ -458,7 +458,7 @@ def create_company( def get_company( self, - request: company_service.GetCompanyRequest = None, + request: Union[company_service.GetCompanyRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -468,7 +468,7 @@ def get_company( r"""Retrieves specified company. Args: - request (google.cloud.talent_v4.types.GetCompanyRequest): + request (Union[google.cloud.talent_v4.types.GetCompanyRequest, dict]): The request object. Request for getting a company by name. name (str): @@ -538,7 +538,7 @@ def get_company( def update_company( self, - request: company_service.UpdateCompanyRequest = None, + request: Union[company_service.UpdateCompanyRequest, dict] = None, *, company: gct_company.Company = None, update_mask: field_mask_pb2.FieldMask = None, @@ -549,7 +549,7 @@ def update_company( r"""Updates specified company. Args: - request (google.cloud.talent_v4.types.UpdateCompanyRequest): + request (Union[google.cloud.talent_v4.types.UpdateCompanyRequest, dict]): The request object. Request for updating a specified company. company (google.cloud.talent_v4.types.Company): @@ -635,7 +635,7 @@ def update_company( def delete_company( self, - request: company_service.DeleteCompanyRequest = None, + request: Union[company_service.DeleteCompanyRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -647,7 +647,7 @@ def delete_company( it. Args: - request (google.cloud.talent_v4.types.DeleteCompanyRequest): + request (Union[google.cloud.talent_v4.types.DeleteCompanyRequest, dict]): The request object. Request to delete a company. name (str): Required. The resource name of the company to be @@ -704,7 +704,7 @@ def delete_company( def list_companies( self, - request: company_service.ListCompaniesRequest = None, + request: Union[company_service.ListCompaniesRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -714,7 +714,7 @@ def list_companies( r"""Lists all companies associated with the project. Args: - request (google.cloud.talent_v4.types.ListCompaniesRequest): + request (Union[google.cloud.talent_v4.types.ListCompaniesRequest, dict]): The request object. List companies for which the client has ACL visibility. parent (str): diff --git a/google/cloud/talent_v4/services/company_service/transports/base.py b/google/cloud/talent_v4/services/company_service/transports/base.py index a4680262..88f0693d 100644 --- a/google/cloud/talent_v4/services/company_service/transports/base.py +++ b/google/cloud/talent_v4/services/company_service/transports/base.py @@ -121,7 +121,7 @@ def __init__( **scopes_kwargs, quota_project_id=quota_project_id ) - # If the credentials is service account credentials, then always try to use self signed JWT. + # If the credentials are service account credentials, then always try to use self signed JWT. if ( always_use_jwt_access and isinstance(credentials, service_account.Credentials) diff --git a/google/cloud/talent_v4/services/company_service/transports/grpc.py b/google/cloud/talent_v4/services/company_service/transports/grpc.py index aefcd800..fe216e44 100644 --- a/google/cloud/talent_v4/services/company_service/transports/grpc.py +++ b/google/cloud/talent_v4/services/company_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/talent_v4/services/company_service/transports/grpc_asyncio.py b/google/cloud/talent_v4/services/company_service/transports/grpc_asyncio.py index 24aa0045..cd9e7563 100644 --- a/google/cloud/talent_v4/services/company_service/transports/grpc_asyncio.py +++ b/google/cloud/talent_v4/services/company_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/talent_v4/services/completion/client.py b/google/cloud/talent_v4/services/completion/client.py index b77d4179..6df6c0a5 100644 --- a/google/cloud/talent_v4/services/completion/client.py +++ b/google/cloud/talent_v4/services/completion/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 @@ -363,7 +363,7 @@ def __init__( def complete_query( self, - request: completion_service.CompleteQueryRequest = None, + request: Union[completion_service.CompleteQueryRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -374,7 +374,7 @@ def complete_query( complete search box. Args: - request (google.cloud.talent_v4.types.CompleteQueryRequest): + request (Union[google.cloud.talent_v4.types.CompleteQueryRequest, dict]): The request object. Auto-complete parameters. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. diff --git a/google/cloud/talent_v4/services/completion/transports/base.py b/google/cloud/talent_v4/services/completion/transports/base.py index 95edf7a4..da036322 100644 --- a/google/cloud/talent_v4/services/completion/transports/base.py +++ b/google/cloud/talent_v4/services/completion/transports/base.py @@ -118,7 +118,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/talent_v4/services/completion/transports/grpc.py b/google/cloud/talent_v4/services/completion/transports/grpc.py index 3b272950..2431955d 100644 --- a/google/cloud/talent_v4/services/completion/transports/grpc.py +++ b/google/cloud/talent_v4/services/completion/transports/grpc.py @@ -80,16 +80,16 @@ def __init__( api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint. If provided, it overrides the ``host`` argument and tries to create a mutual TLS channel with client SSL credentials from - ``client_cert_source`` or applicatin default SSL credentials. + ``client_cert_source`` or application default SSL credentials. client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]): Deprecated. A callback to provide client SSL certificate bytes and private key bytes, both in PEM format. It is ignored if ``api_mtls_endpoint`` is None. ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials - for grpc channel. It is ignored if ``channel`` is provided. + for the grpc channel. It is ignored if ``channel`` is provided. client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]): A callback to provide client certificate bytes and private key bytes, - both in PEM format. It is used to configure mutual TLS channel. It is + both in PEM format. It is used to configure a mutual TLS channel. It is ignored if ``channel`` or ``ssl_channel_credentials`` is provided. quota_project_id (Optional[str]): An optional project to use for billing and quota. diff --git a/google/cloud/talent_v4/services/completion/transports/grpc_asyncio.py b/google/cloud/talent_v4/services/completion/transports/grpc_asyncio.py index b4c6bc68..6e2714c7 100644 --- a/google/cloud/talent_v4/services/completion/transports/grpc_asyncio.py +++ b/google/cloud/talent_v4/services/completion/transports/grpc_asyncio.py @@ -127,16 +127,16 @@ def __init__( api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint. If provided, it overrides the ``host`` argument and tries to create a mutual TLS channel with client SSL credentials from - ``client_cert_source`` or applicatin default SSL credentials. + ``client_cert_source`` or application default SSL credentials. client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]): Deprecated. A callback to provide client SSL certificate bytes and private key bytes, both in PEM format. It is ignored if ``api_mtls_endpoint`` is None. ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials - for grpc channel. It is ignored if ``channel`` is provided. + for the grpc channel. It is ignored if ``channel`` is provided. client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]): A callback to provide client certificate bytes and private key bytes, - both in PEM format. It is used to configure mutual TLS channel. It is + both in PEM format. It is used to configure a mutual TLS channel. It is ignored if ``channel`` or ``ssl_channel_credentials`` is provided. quota_project_id (Optional[str]): An optional project to use for billing and quota. diff --git a/google/cloud/talent_v4/services/event_service/client.py b/google/cloud/talent_v4/services/event_service/client.py index dd72e6be..52a80780 100644 --- a/google/cloud/talent_v4/services/event_service/client.py +++ b/google/cloud/talent_v4/services/event_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 @@ -348,7 +348,7 @@ def __init__( def create_client_event( self, - request: event_service.CreateClientEventRequest = None, + request: Union[event_service.CreateClientEventRequest, dict] = None, *, parent: str = None, client_event: event.ClientEvent = None, @@ -365,7 +365,7 @@ def create_client_event( about self service tools. Args: - request (google.cloud.talent_v4.types.CreateClientEventRequest): + request (Union[google.cloud.talent_v4.types.CreateClientEventRequest, dict]): The request object. The report event request. parent (str): Required. Resource name of the tenant under which the diff --git a/google/cloud/talent_v4/services/event_service/transports/base.py b/google/cloud/talent_v4/services/event_service/transports/base.py index 7400fc68..4ec75b7b 100644 --- a/google/cloud/talent_v4/services/event_service/transports/base.py +++ b/google/cloud/talent_v4/services/event_service/transports/base.py @@ -119,7 +119,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/talent_v4/services/event_service/transports/grpc.py b/google/cloud/talent_v4/services/event_service/transports/grpc.py index 3a577771..97ae0ae9 100644 --- a/google/cloud/talent_v4/services/event_service/transports/grpc.py +++ b/google/cloud/talent_v4/services/event_service/transports/grpc.py @@ -81,16 +81,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/talent_v4/services/event_service/transports/grpc_asyncio.py b/google/cloud/talent_v4/services/event_service/transports/grpc_asyncio.py index 48405b66..507b7019 100644 --- a/google/cloud/talent_v4/services/event_service/transports/grpc_asyncio.py +++ b/google/cloud/talent_v4/services/event_service/transports/grpc_asyncio.py @@ -128,16 +128,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/talent_v4/services/job_service/client.py b/google/cloud/talent_v4/services/job_service/client.py index 52e02fc3..98d0f97f 100644 --- a/google/cloud/talent_v4/services/job_service/client.py +++ b/google/cloud/talent_v4/services/job_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 @@ -389,7 +389,7 @@ def __init__( def create_job( self, - request: job_service.CreateJobRequest = None, + request: Union[job_service.CreateJobRequest, dict] = None, *, parent: str = None, job: gct_job.Job = None, @@ -402,7 +402,7 @@ def create_job( but it may take up to 5 minutes. Args: - request (google.cloud.talent_v4.types.CreateJobRequest): + request (Union[google.cloud.talent_v4.types.CreateJobRequest, dict]): The request object. Create job request. parent (str): Required. The resource name of the tenant under which @@ -475,7 +475,7 @@ def create_job( def batch_create_jobs( self, - request: job_service.BatchCreateJobsRequest = None, + request: Union[job_service.BatchCreateJobsRequest, dict] = None, *, parent: str = None, jobs: Sequence[job.Job] = None, @@ -486,7 +486,7 @@ def batch_create_jobs( r"""Begins executing a batch create jobs operation. Args: - request (google.cloud.talent_v4.types.BatchCreateJobsRequest): + request (Union[google.cloud.talent_v4.types.BatchCreateJobsRequest, dict]): The request object. Request to create a batch of jobs. parent (str): Required. The resource name of the tenant under which @@ -572,7 +572,7 @@ def batch_create_jobs( def get_job( self, - request: job_service.GetJobRequest = None, + request: Union[job_service.GetJobRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -583,7 +583,7 @@ def get_job( recently EXPIRED within the last 90 days. Args: - request (google.cloud.talent_v4.types.GetJobRequest): + request (Union[google.cloud.talent_v4.types.GetJobRequest, dict]): The request object. Get job request. name (str): Required. The resource name of the job to retrieve. @@ -648,7 +648,7 @@ def get_job( def update_job( self, - request: job_service.UpdateJobRequest = None, + request: Union[job_service.UpdateJobRequest, dict] = None, *, job: gct_job.Job = None, update_mask: field_mask_pb2.FieldMask = None, @@ -662,7 +662,7 @@ def update_job( minutes. Args: - request (google.cloud.talent_v4.types.UpdateJobRequest): + request (Union[google.cloud.talent_v4.types.UpdateJobRequest, dict]): The request object. Update job request. job (google.cloud.talent_v4.types.Job): Required. The Job to be updated. @@ -740,7 +740,7 @@ def update_job( def batch_update_jobs( self, - request: job_service.BatchUpdateJobsRequest = None, + request: Union[job_service.BatchUpdateJobsRequest, dict] = None, *, parent: str = None, jobs: Sequence[job.Job] = None, @@ -751,7 +751,7 @@ def batch_update_jobs( r"""Begins executing a batch update jobs operation. Args: - request (google.cloud.talent_v4.types.BatchUpdateJobsRequest): + request (Union[google.cloud.talent_v4.types.BatchUpdateJobsRequest, dict]): The request object. Request to update a batch of jobs. parent (str): Required. The resource name of the tenant under which @@ -837,7 +837,7 @@ def batch_update_jobs( def delete_job( self, - request: job_service.DeleteJobRequest = None, + request: Union[job_service.DeleteJobRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -849,7 +849,7 @@ def delete_job( seconds, but it may take up to 5 minutes. Args: - request (google.cloud.talent_v4.types.DeleteJobRequest): + request (Union[google.cloud.talent_v4.types.DeleteJobRequest, dict]): The request object. Delete job request. name (str): Required. The resource name of the job to be deleted. @@ -905,7 +905,7 @@ def delete_job( def batch_delete_jobs( self, - request: job_service.BatchDeleteJobsRequest = None, + request: Union[job_service.BatchDeleteJobsRequest, dict] = None, *, parent: str = None, names: Sequence[str] = None, @@ -916,7 +916,7 @@ def batch_delete_jobs( r"""Begins executing a batch delete jobs operation. Args: - request (google.cloud.talent_v4.types.BatchDeleteJobsRequest): + request (Union[google.cloud.talent_v4.types.BatchDeleteJobsRequest, dict]): The request object. Request to delete a batch of jobs. parent (str): Required. The resource name of the tenant under which @@ -1009,7 +1009,7 @@ def batch_delete_jobs( def list_jobs( self, - request: job_service.ListJobsRequest = None, + request: Union[job_service.ListJobsRequest, dict] = None, *, parent: str = None, filter: str = None, @@ -1020,7 +1020,7 @@ def list_jobs( r"""Lists jobs by filter. Args: - request (google.cloud.talent_v4.types.ListJobsRequest): + request (Union[google.cloud.talent_v4.types.ListJobsRequest, dict]): The request object. List jobs request. parent (str): Required. The resource name of the tenant under which @@ -1126,7 +1126,7 @@ def list_jobs( def search_jobs( self, - request: job_service.SearchJobsRequest = None, + request: Union[job_service.SearchJobsRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -1141,7 +1141,7 @@ def search_jobs( has permission to search against. Args: - request (google.cloud.talent_v4.types.SearchJobsRequest): + request (Union[google.cloud.talent_v4.types.SearchJobsRequest, dict]): The request object. The Request body of the `SearchJobs` call. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1180,7 +1180,7 @@ def search_jobs( def search_jobs_for_alert( self, - request: job_service.SearchJobsRequest = None, + request: Union[job_service.SearchJobsRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -1201,7 +1201,7 @@ def search_jobs_for_alert( permission to search against. Args: - request (google.cloud.talent_v4.types.SearchJobsRequest): + request (Union[google.cloud.talent_v4.types.SearchJobsRequest, dict]): The request object. The Request body of the `SearchJobs` call. retry (google.api_core.retry.Retry): Designation of what errors, if any, diff --git a/google/cloud/talent_v4/services/job_service/transports/base.py b/google/cloud/talent_v4/services/job_service/transports/base.py index 6e4ab3c0..e7111f09 100644 --- a/google/cloud/talent_v4/services/job_service/transports/base.py +++ b/google/cloud/talent_v4/services/job_service/transports/base.py @@ -123,7 +123,7 @@ def __init__( **scopes_kwargs, quota_project_id=quota_project_id ) - # If the credentials is service account credentials, then always try to use self signed JWT. + # If the credentials are service account credentials, then always try to use self signed JWT. if ( always_use_jwt_access and isinstance(credentials, service_account.Credentials) diff --git a/google/cloud/talent_v4/services/job_service/transports/grpc.py b/google/cloud/talent_v4/services/job_service/transports/grpc.py index 1803ecd1..43204ac0 100644 --- a/google/cloud/talent_v4/services/job_service/transports/grpc.py +++ b/google/cloud/talent_v4/services/job_service/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/talent_v4/services/job_service/transports/grpc_asyncio.py b/google/cloud/talent_v4/services/job_service/transports/grpc_asyncio.py index c4c98ad9..0be2e7a1 100644 --- a/google/cloud/talent_v4/services/job_service/transports/grpc_asyncio.py +++ b/google/cloud/talent_v4/services/job_service/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/talent_v4/services/tenant_service/client.py b/google/cloud/talent_v4/services/tenant_service/client.py index 3bf10182..9a29f501 100644 --- a/google/cloud/talent_v4/services/tenant_service/client.py +++ b/google/cloud/talent_v4/services/tenant_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 @@ -352,7 +352,7 @@ def __init__( def create_tenant( self, - request: tenant_service.CreateTenantRequest = None, + request: Union[tenant_service.CreateTenantRequest, dict] = None, *, parent: str = None, tenant: gct_tenant.Tenant = None, @@ -363,7 +363,7 @@ def create_tenant( r"""Creates a new tenant entity. Args: - request (google.cloud.talent_v4.types.CreateTenantRequest): + request (Union[google.cloud.talent_v4.types.CreateTenantRequest, dict]): The request object. The Request of the CreateTenant method. parent (str): @@ -439,7 +439,7 @@ def create_tenant( def get_tenant( self, - request: tenant_service.GetTenantRequest = None, + request: Union[tenant_service.GetTenantRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -449,7 +449,7 @@ def get_tenant( r"""Retrieves specified tenant. Args: - request (google.cloud.talent_v4.types.GetTenantRequest): + request (Union[google.cloud.talent_v4.types.GetTenantRequest, dict]): The request object. Request for getting a tenant by name. name (str): @@ -519,7 +519,7 @@ def get_tenant( def update_tenant( self, - request: tenant_service.UpdateTenantRequest = None, + request: Union[tenant_service.UpdateTenantRequest, dict] = None, *, tenant: gct_tenant.Tenant = None, update_mask: field_mask_pb2.FieldMask = None, @@ -530,7 +530,7 @@ def update_tenant( r"""Updates specified tenant. Args: - request (google.cloud.talent_v4.types.UpdateTenantRequest): + request (Union[google.cloud.talent_v4.types.UpdateTenantRequest, dict]): The request object. Request for updating a specified tenant. tenant (google.cloud.talent_v4.types.Tenant): @@ -617,7 +617,7 @@ def update_tenant( def delete_tenant( self, - request: tenant_service.DeleteTenantRequest = None, + request: Union[tenant_service.DeleteTenantRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -627,7 +627,7 @@ def delete_tenant( r"""Deletes specified tenant. Args: - request (google.cloud.talent_v4.types.DeleteTenantRequest): + request (Union[google.cloud.talent_v4.types.DeleteTenantRequest, dict]): The request object. Request to delete a tenant. name (str): Required. The resource name of the tenant to be deleted. @@ -683,7 +683,7 @@ def delete_tenant( def list_tenants( self, - request: tenant_service.ListTenantsRequest = None, + request: Union[tenant_service.ListTenantsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -693,7 +693,7 @@ def list_tenants( r"""Lists all tenants associated with the project. Args: - request (google.cloud.talent_v4.types.ListTenantsRequest): + request (Union[google.cloud.talent_v4.types.ListTenantsRequest, dict]): The request object. List tenants for which the client has ACL visibility. parent (str): diff --git a/google/cloud/talent_v4/services/tenant_service/transports/base.py b/google/cloud/talent_v4/services/tenant_service/transports/base.py index 1ac777a7..da4a036c 100644 --- a/google/cloud/talent_v4/services/tenant_service/transports/base.py +++ b/google/cloud/talent_v4/services/tenant_service/transports/base.py @@ -121,7 +121,7 @@ def __init__( **scopes_kwargs, quota_project_id=quota_project_id ) - # If the credentials is service account credentials, then always try to use self signed JWT. + # If the credentials are service account credentials, then always try to use self signed JWT. if ( always_use_jwt_access and isinstance(credentials, service_account.Credentials) diff --git a/google/cloud/talent_v4/services/tenant_service/transports/grpc.py b/google/cloud/talent_v4/services/tenant_service/transports/grpc.py index 4dc57d85..b9b1fa33 100644 --- a/google/cloud/talent_v4/services/tenant_service/transports/grpc.py +++ b/google/cloud/talent_v4/services/tenant_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/talent_v4/services/tenant_service/transports/grpc_asyncio.py b/google/cloud/talent_v4/services/tenant_service/transports/grpc_asyncio.py index ec413046..09b3a775 100644 --- a/google/cloud/talent_v4/services/tenant_service/transports/grpc_asyncio.py +++ b/google/cloud/talent_v4/services/tenant_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/talent_v4beta1/services/application_service/client.py b/google/cloud/talent_v4beta1/services/application_service/client.py index ec33aa8d..1a35c6de 100644 --- a/google/cloud/talent_v4beta1/services/application_service/client.py +++ b/google/cloud/talent_v4beta1/services/application_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 @@ -412,7 +412,7 @@ def __init__( def create_application( self, - request: application_service.CreateApplicationRequest = None, + request: Union[application_service.CreateApplicationRequest, dict] = None, *, parent: str = None, application: gct_application.Application = None, @@ -423,7 +423,7 @@ def create_application( r"""Creates a new application entity. Args: - request (google.cloud.talent_v4beta1.types.CreateApplicationRequest): + request (Union[google.cloud.talent_v4beta1.types.CreateApplicationRequest, dict]): The request object. The Request of the CreateApplication method. parent (str): @@ -497,7 +497,7 @@ def create_application( def get_application( self, - request: application_service.GetApplicationRequest = None, + request: Union[application_service.GetApplicationRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -507,7 +507,7 @@ def get_application( r"""Retrieves specified application. Args: - request (google.cloud.talent_v4beta1.types.GetApplicationRequest): + request (Union[google.cloud.talent_v4beta1.types.GetApplicationRequest, dict]): The request object. Request for getting a application by name. name (str): @@ -573,7 +573,7 @@ def get_application( def update_application( self, - request: application_service.UpdateApplicationRequest = None, + request: Union[application_service.UpdateApplicationRequest, dict] = None, *, application: gct_application.Application = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -583,7 +583,7 @@ def update_application( r"""Updates specified application. Args: - request (google.cloud.talent_v4beta1.types.UpdateApplicationRequest): + request (Union[google.cloud.talent_v4beta1.types.UpdateApplicationRequest, dict]): The request object. Request for updating a specified application. application (google.cloud.talent_v4beta1.types.Application): @@ -647,7 +647,7 @@ def update_application( def delete_application( self, - request: application_service.DeleteApplicationRequest = None, + request: Union[application_service.DeleteApplicationRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -657,7 +657,7 @@ def delete_application( r"""Deletes specified application. Args: - request (google.cloud.talent_v4beta1.types.DeleteApplicationRequest): + request (Union[google.cloud.talent_v4beta1.types.DeleteApplicationRequest, dict]): The request object. Request to delete a application. name (str): Required. The resource name of the application to be @@ -715,7 +715,7 @@ def delete_application( def list_applications( self, - request: application_service.ListApplicationsRequest = None, + request: Union[application_service.ListApplicationsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -725,7 +725,7 @@ def list_applications( r"""Lists all applications associated with the profile. Args: - request (google.cloud.talent_v4beta1.types.ListApplicationsRequest): + request (Union[google.cloud.talent_v4beta1.types.ListApplicationsRequest, dict]): The request object. List applications for which the client has ACL visibility. parent (str): diff --git a/google/cloud/talent_v4beta1/services/application_service/transports/base.py b/google/cloud/talent_v4beta1/services/application_service/transports/base.py index b4cf38f7..aba2627b 100644 --- a/google/cloud/talent_v4beta1/services/application_service/transports/base.py +++ b/google/cloud/talent_v4beta1/services/application_service/transports/base.py @@ -121,7 +121,7 @@ def __init__( **scopes_kwargs, quota_project_id=quota_project_id ) - # If the credentials is service account credentials, then always try to use self signed JWT. + # If the credentials are service account credentials, then always try to use self signed JWT. if ( always_use_jwt_access and isinstance(credentials, service_account.Credentials) diff --git a/google/cloud/talent_v4beta1/services/application_service/transports/grpc.py b/google/cloud/talent_v4beta1/services/application_service/transports/grpc.py index 1d2b753d..fdc03f2f 100644 --- a/google/cloud/talent_v4beta1/services/application_service/transports/grpc.py +++ b/google/cloud/talent_v4beta1/services/application_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/talent_v4beta1/services/application_service/transports/grpc_asyncio.py b/google/cloud/talent_v4beta1/services/application_service/transports/grpc_asyncio.py index 9601825e..5aa4db65 100644 --- a/google/cloud/talent_v4beta1/services/application_service/transports/grpc_asyncio.py +++ b/google/cloud/talent_v4beta1/services/application_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/talent_v4beta1/services/company_service/client.py b/google/cloud/talent_v4beta1/services/company_service/client.py index c60b591c..9e795e60 100644 --- a/google/cloud/talent_v4beta1/services/company_service/client.py +++ b/google/cloud/talent_v4beta1/services/company_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 @@ -357,7 +357,7 @@ def __init__( def create_company( self, - request: company_service.CreateCompanyRequest = None, + request: Union[company_service.CreateCompanyRequest, dict] = None, *, parent: str = None, company: gct_company.Company = None, @@ -368,7 +368,7 @@ def create_company( r"""Creates a new company entity. Args: - request (google.cloud.talent_v4beta1.types.CreateCompanyRequest): + request (Union[google.cloud.talent_v4beta1.types.CreateCompanyRequest, dict]): The request object. The Request of the CreateCompany method. parent (str): @@ -446,7 +446,7 @@ def create_company( def get_company( self, - request: company_service.GetCompanyRequest = None, + request: Union[company_service.GetCompanyRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -456,7 +456,7 @@ def get_company( r"""Retrieves specified company. Args: - request (google.cloud.talent_v4beta1.types.GetCompanyRequest): + request (Union[google.cloud.talent_v4beta1.types.GetCompanyRequest, dict]): The request object. Request for getting a company by name. name (str): @@ -529,7 +529,7 @@ def get_company( def update_company( self, - request: company_service.UpdateCompanyRequest = None, + request: Union[company_service.UpdateCompanyRequest, dict] = None, *, company: gct_company.Company = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -539,7 +539,7 @@ def update_company( r"""Updates specified company. Args: - request (google.cloud.talent_v4beta1.types.UpdateCompanyRequest): + request (Union[google.cloud.talent_v4beta1.types.UpdateCompanyRequest, dict]): The request object. Request for updating a specified company. company (google.cloud.talent_v4beta1.types.Company): @@ -607,7 +607,7 @@ def update_company( def delete_company( self, - request: company_service.DeleteCompanyRequest = None, + request: Union[company_service.DeleteCompanyRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -619,7 +619,7 @@ def delete_company( it. Args: - request (google.cloud.talent_v4beta1.types.DeleteCompanyRequest): + request (Union[google.cloud.talent_v4beta1.types.DeleteCompanyRequest, dict]): The request object. Request to delete a company. name (str): Required. The resource name of the company to be @@ -679,7 +679,7 @@ def delete_company( def list_companies( self, - request: company_service.ListCompaniesRequest = None, + request: Union[company_service.ListCompaniesRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -689,7 +689,7 @@ def list_companies( r"""Lists all companies associated with the project. Args: - request (google.cloud.talent_v4beta1.types.ListCompaniesRequest): + request (Union[google.cloud.talent_v4beta1.types.ListCompaniesRequest, dict]): The request object. List companies for which the client has ACL visibility. parent (str): diff --git a/google/cloud/talent_v4beta1/services/company_service/transports/base.py b/google/cloud/talent_v4beta1/services/company_service/transports/base.py index 787483fc..4ba666d7 100644 --- a/google/cloud/talent_v4beta1/services/company_service/transports/base.py +++ b/google/cloud/talent_v4beta1/services/company_service/transports/base.py @@ -121,7 +121,7 @@ def __init__( **scopes_kwargs, quota_project_id=quota_project_id ) - # If the credentials is service account credentials, then always try to use self signed JWT. + # If the credentials are service account credentials, then always try to use self signed JWT. if ( always_use_jwt_access and isinstance(credentials, service_account.Credentials) diff --git a/google/cloud/talent_v4beta1/services/company_service/transports/grpc.py b/google/cloud/talent_v4beta1/services/company_service/transports/grpc.py index ef3cb4db..852a6e10 100644 --- a/google/cloud/talent_v4beta1/services/company_service/transports/grpc.py +++ b/google/cloud/talent_v4beta1/services/company_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/talent_v4beta1/services/company_service/transports/grpc_asyncio.py b/google/cloud/talent_v4beta1/services/company_service/transports/grpc_asyncio.py index 32721d7b..850233aa 100644 --- a/google/cloud/talent_v4beta1/services/company_service/transports/grpc_asyncio.py +++ b/google/cloud/talent_v4beta1/services/company_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/talent_v4beta1/services/completion/client.py b/google/cloud/talent_v4beta1/services/completion/client.py index 6d004521..abc1dd73 100644 --- a/google/cloud/talent_v4beta1/services/completion/client.py +++ b/google/cloud/talent_v4beta1/services/completion/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 @@ -350,7 +350,7 @@ def __init__( def complete_query( self, - request: completion_service.CompleteQueryRequest = None, + request: Union[completion_service.CompleteQueryRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -361,7 +361,7 @@ def complete_query( complete search box. Args: - request (google.cloud.talent_v4beta1.types.CompleteQueryRequest): + request (Union[google.cloud.talent_v4beta1.types.CompleteQueryRequest, dict]): The request object. Auto-complete parameters. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. diff --git a/google/cloud/talent_v4beta1/services/completion/transports/base.py b/google/cloud/talent_v4beta1/services/completion/transports/base.py index 77969b7a..d630c487 100644 --- a/google/cloud/talent_v4beta1/services/completion/transports/base.py +++ b/google/cloud/talent_v4beta1/services/completion/transports/base.py @@ -118,7 +118,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/talent_v4beta1/services/completion/transports/grpc.py b/google/cloud/talent_v4beta1/services/completion/transports/grpc.py index 4f416c44..d43ed487 100644 --- a/google/cloud/talent_v4beta1/services/completion/transports/grpc.py +++ b/google/cloud/talent_v4beta1/services/completion/transports/grpc.py @@ -80,16 +80,16 @@ def __init__( api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint. If provided, it overrides the ``host`` argument and tries to create a mutual TLS channel with client SSL credentials from - ``client_cert_source`` or applicatin default SSL credentials. + ``client_cert_source`` or application default SSL credentials. client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]): Deprecated. A callback to provide client SSL certificate bytes and private key bytes, both in PEM format. It is ignored if ``api_mtls_endpoint`` is None. ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials - for grpc channel. It is ignored if ``channel`` is provided. + for the grpc channel. It is ignored if ``channel`` is provided. client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]): A callback to provide client certificate bytes and private key bytes, - both in PEM format. It is used to configure mutual TLS channel. It is + both in PEM format. It is used to configure a mutual TLS channel. It is ignored if ``channel`` or ``ssl_channel_credentials`` is provided. quota_project_id (Optional[str]): An optional project to use for billing and quota. diff --git a/google/cloud/talent_v4beta1/services/completion/transports/grpc_asyncio.py b/google/cloud/talent_v4beta1/services/completion/transports/grpc_asyncio.py index 98af1d8f..878ef04a 100644 --- a/google/cloud/talent_v4beta1/services/completion/transports/grpc_asyncio.py +++ b/google/cloud/talent_v4beta1/services/completion/transports/grpc_asyncio.py @@ -127,16 +127,16 @@ def __init__( api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint. If provided, it overrides the ``host`` argument and tries to create a mutual TLS channel with client SSL credentials from - ``client_cert_source`` or applicatin default SSL credentials. + ``client_cert_source`` or application default SSL credentials. client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]): Deprecated. A callback to provide client SSL certificate bytes and private key bytes, both in PEM format. It is ignored if ``api_mtls_endpoint`` is None. ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials - for grpc channel. It is ignored if ``channel`` is provided. + for the grpc channel. It is ignored if ``channel`` is provided. client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]): A callback to provide client certificate bytes and private key bytes, - both in PEM format. It is used to configure mutual TLS channel. It is + both in PEM format. It is used to configure a mutual TLS channel. It is ignored if ``channel`` or ``ssl_channel_credentials`` is provided. quota_project_id (Optional[str]): An optional project to use for billing and quota. diff --git a/google/cloud/talent_v4beta1/services/event_service/client.py b/google/cloud/talent_v4beta1/services/event_service/client.py index 6092b16f..46275d74 100644 --- a/google/cloud/talent_v4beta1/services/event_service/client.py +++ b/google/cloud/talent_v4beta1/services/event_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 @@ -351,7 +351,7 @@ def __init__( def create_client_event( self, - request: event_service.CreateClientEventRequest = None, + request: Union[event_service.CreateClientEventRequest, dict] = None, *, parent: str = None, client_event: event.ClientEvent = None, @@ -368,7 +368,7 @@ def create_client_event( about self service tools. Args: - request (google.cloud.talent_v4beta1.types.CreateClientEventRequest): + request (Union[google.cloud.talent_v4beta1.types.CreateClientEventRequest, dict]): The request object. The report event request. parent (str): Required. Resource name of the tenant under which the diff --git a/google/cloud/talent_v4beta1/services/event_service/transports/base.py b/google/cloud/talent_v4beta1/services/event_service/transports/base.py index 95e666ac..247aa005 100644 --- a/google/cloud/talent_v4beta1/services/event_service/transports/base.py +++ b/google/cloud/talent_v4beta1/services/event_service/transports/base.py @@ -119,7 +119,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/talent_v4beta1/services/event_service/transports/grpc.py b/google/cloud/talent_v4beta1/services/event_service/transports/grpc.py index f8cc600f..b7e8369f 100644 --- a/google/cloud/talent_v4beta1/services/event_service/transports/grpc.py +++ b/google/cloud/talent_v4beta1/services/event_service/transports/grpc.py @@ -81,16 +81,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/talent_v4beta1/services/event_service/transports/grpc_asyncio.py b/google/cloud/talent_v4beta1/services/event_service/transports/grpc_asyncio.py index 797cbde3..1789f751 100644 --- a/google/cloud/talent_v4beta1/services/event_service/transports/grpc_asyncio.py +++ b/google/cloud/talent_v4beta1/services/event_service/transports/grpc_asyncio.py @@ -128,16 +128,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/talent_v4beta1/services/job_service/client.py b/google/cloud/talent_v4beta1/services/job_service/client.py index e703ffb9..7852bd7a 100644 --- a/google/cloud/talent_v4beta1/services/job_service/client.py +++ b/google/cloud/talent_v4beta1/services/job_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 @@ -374,7 +374,7 @@ def __init__( def create_job( self, - request: job_service.CreateJobRequest = None, + request: Union[job_service.CreateJobRequest, dict] = None, *, parent: str = None, job: gct_job.Job = None, @@ -387,7 +387,7 @@ def create_job( but it may take up to 5 minutes. Args: - request (google.cloud.talent_v4beta1.types.CreateJobRequest): + request (Union[google.cloud.talent_v4beta1.types.CreateJobRequest, dict]): The request object. Create job request. parent (str): Required. The resource name of the tenant under which @@ -462,7 +462,7 @@ def create_job( def batch_create_jobs( self, - request: job_service.BatchCreateJobsRequest = None, + request: Union[job_service.BatchCreateJobsRequest, dict] = None, *, parent: str = None, jobs: Sequence[job.Job] = None, @@ -473,7 +473,7 @@ def batch_create_jobs( r"""Begins executing a batch create jobs operation. Args: - request (google.cloud.talent_v4beta1.types.BatchCreateJobsRequest): + request (Union[google.cloud.talent_v4beta1.types.BatchCreateJobsRequest, dict]): The request object. Request to create a batch of jobs. parent (str): Required. The resource name of the tenant under which @@ -559,7 +559,7 @@ def batch_create_jobs( def get_job( self, - request: job_service.GetJobRequest = None, + request: Union[job_service.GetJobRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -570,7 +570,7 @@ def get_job( recently EXPIRED within the last 90 days. Args: - request (google.cloud.talent_v4beta1.types.GetJobRequest): + request (Union[google.cloud.talent_v4beta1.types.GetJobRequest, dict]): The request object. Get job request. name (str): Required. The resource name of the job to retrieve. @@ -638,7 +638,7 @@ def get_job( def update_job( self, - request: job_service.UpdateJobRequest = None, + request: Union[job_service.UpdateJobRequest, dict] = None, *, job: gct_job.Job = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -651,7 +651,7 @@ def update_job( minutes. Args: - request (google.cloud.talent_v4beta1.types.UpdateJobRequest): + request (Union[google.cloud.talent_v4beta1.types.UpdateJobRequest, dict]): The request object. Update job request. job (google.cloud.talent_v4beta1.types.Job): Required. The Job to be updated. @@ -711,7 +711,7 @@ def update_job( def batch_update_jobs( self, - request: job_service.BatchUpdateJobsRequest = None, + request: Union[job_service.BatchUpdateJobsRequest, dict] = None, *, parent: str = None, jobs: Sequence[job.Job] = None, @@ -722,7 +722,7 @@ def batch_update_jobs( r"""Begins executing a batch update jobs operation. Args: - request (google.cloud.talent_v4beta1.types.BatchUpdateJobsRequest): + request (Union[google.cloud.talent_v4beta1.types.BatchUpdateJobsRequest, dict]): The request object. Request to update a batch of jobs. parent (str): Required. The resource name of the tenant under which @@ -808,7 +808,7 @@ def batch_update_jobs( def delete_job( self, - request: job_service.DeleteJobRequest = None, + request: Union[job_service.DeleteJobRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -820,7 +820,7 @@ def delete_job( seconds, but it may take up to 5 minutes. Args: - request (google.cloud.talent_v4beta1.types.DeleteJobRequest): + request (Union[google.cloud.talent_v4beta1.types.DeleteJobRequest, dict]): The request object. Delete job request. name (str): Required. The resource name of the job to be deleted. @@ -879,7 +879,7 @@ def delete_job( def batch_delete_jobs( self, - request: job_service.BatchDeleteJobsRequest = None, + request: Union[job_service.BatchDeleteJobsRequest, dict] = None, *, parent: str = None, filter: str = None, @@ -891,7 +891,7 @@ def batch_delete_jobs( filter. Args: - request (google.cloud.talent_v4beta1.types.BatchDeleteJobsRequest): + request (Union[google.cloud.talent_v4beta1.types.BatchDeleteJobsRequest, dict]): The request object. Batch delete jobs request. parent (str): Required. The resource name of the tenant under which @@ -969,7 +969,7 @@ def batch_delete_jobs( def list_jobs( self, - request: job_service.ListJobsRequest = None, + request: Union[job_service.ListJobsRequest, dict] = None, *, parent: str = None, filter: str = None, @@ -980,7 +980,7 @@ def list_jobs( r"""Lists jobs by filter. Args: - request (google.cloud.talent_v4beta1.types.ListJobsRequest): + request (Union[google.cloud.talent_v4beta1.types.ListJobsRequest, dict]): The request object. List jobs request. parent (str): Required. The resource name of the tenant under which @@ -1083,7 +1083,7 @@ def list_jobs( def search_jobs( self, - request: job_service.SearchJobsRequest = None, + request: Union[job_service.SearchJobsRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -1098,7 +1098,7 @@ def search_jobs( has permission to search against. Args: - request (google.cloud.talent_v4beta1.types.SearchJobsRequest): + request (Union[google.cloud.talent_v4beta1.types.SearchJobsRequest, dict]): The request object. The Request body of the `SearchJobs` call. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1147,7 +1147,7 @@ def search_jobs( def search_jobs_for_alert( self, - request: job_service.SearchJobsRequest = None, + request: Union[job_service.SearchJobsRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -1168,7 +1168,7 @@ def search_jobs_for_alert( permission to search against. Args: - request (google.cloud.talent_v4beta1.types.SearchJobsRequest): + request (Union[google.cloud.talent_v4beta1.types.SearchJobsRequest, dict]): The request object. The Request body of the `SearchJobs` call. retry (google.api_core.retry.Retry): Designation of what errors, if any, diff --git a/google/cloud/talent_v4beta1/services/job_service/transports/base.py b/google/cloud/talent_v4beta1/services/job_service/transports/base.py index 687c85e8..b231bb73 100644 --- a/google/cloud/talent_v4beta1/services/job_service/transports/base.py +++ b/google/cloud/talent_v4beta1/services/job_service/transports/base.py @@ -123,7 +123,7 @@ def __init__( **scopes_kwargs, quota_project_id=quota_project_id ) - # If the credentials is service account credentials, then always try to use self signed JWT. + # If the credentials are service account credentials, then always try to use self signed JWT. if ( always_use_jwt_access and isinstance(credentials, service_account.Credentials) diff --git a/google/cloud/talent_v4beta1/services/job_service/transports/grpc.py b/google/cloud/talent_v4beta1/services/job_service/transports/grpc.py index 79503e45..4bb46567 100644 --- a/google/cloud/talent_v4beta1/services/job_service/transports/grpc.py +++ b/google/cloud/talent_v4beta1/services/job_service/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/talent_v4beta1/services/job_service/transports/grpc_asyncio.py b/google/cloud/talent_v4beta1/services/job_service/transports/grpc_asyncio.py index 5a391e79..7e730a7b 100644 --- a/google/cloud/talent_v4beta1/services/job_service/transports/grpc_asyncio.py +++ b/google/cloud/talent_v4beta1/services/job_service/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/talent_v4beta1/services/profile_service/client.py b/google/cloud/talent_v4beta1/services/profile_service/client.py index a5ea9786..9e85bec2 100644 --- a/google/cloud/talent_v4beta1/services/profile_service/client.py +++ b/google/cloud/talent_v4beta1/services/profile_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 @@ -373,7 +373,7 @@ def __init__( def list_profiles( self, - request: profile_service.ListProfilesRequest = None, + request: Union[profile_service.ListProfilesRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -383,7 +383,7 @@ def list_profiles( r"""Lists profiles by filter. The order is unspecified. Args: - request (google.cloud.talent_v4beta1.types.ListProfilesRequest): + request (Union[google.cloud.talent_v4beta1.types.ListProfilesRequest, dict]): The request object. List profiles request. parent (str): Required. The resource name of the tenant under which @@ -455,7 +455,7 @@ def list_profiles( def create_profile( self, - request: profile_service.CreateProfileRequest = None, + request: Union[profile_service.CreateProfileRequest, dict] = None, *, parent: str = None, profile: gct_profile.Profile = None, @@ -466,7 +466,7 @@ def create_profile( r"""Creates and returns a new profile. Args: - request (google.cloud.talent_v4beta1.types.CreateProfileRequest): + request (Union[google.cloud.talent_v4beta1.types.CreateProfileRequest, dict]): The request object. Create profile request. parent (str): Required. The name of the tenant this profile belongs @@ -539,7 +539,7 @@ def create_profile( def get_profile( self, - request: profile_service.GetProfileRequest = None, + request: Union[profile_service.GetProfileRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -549,7 +549,7 @@ def get_profile( r"""Gets the specified profile. Args: - request (google.cloud.talent_v4beta1.types.GetProfileRequest): + request (Union[google.cloud.talent_v4beta1.types.GetProfileRequest, dict]): The request object. Get profile request. name (str): Required. Resource name of the profile to get. @@ -614,7 +614,7 @@ def get_profile( def update_profile( self, - request: profile_service.UpdateProfileRequest = None, + request: Union[profile_service.UpdateProfileRequest, dict] = None, *, profile: gct_profile.Profile = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -625,7 +625,7 @@ def update_profile( result. Args: - request (google.cloud.talent_v4beta1.types.UpdateProfileRequest): + request (Union[google.cloud.talent_v4beta1.types.UpdateProfileRequest, dict]): The request object. Update profile request profile (google.cloud.talent_v4beta1.types.Profile): Required. Profile to be updated. @@ -687,7 +687,7 @@ def update_profile( def delete_profile( self, - request: profile_service.DeleteProfileRequest = None, + request: Union[profile_service.DeleteProfileRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -699,7 +699,7 @@ def delete_profile( or assignments associated. Args: - request (google.cloud.talent_v4beta1.types.DeleteProfileRequest): + request (Union[google.cloud.talent_v4beta1.types.DeleteProfileRequest, dict]): The request object. Delete profile request. name (str): Required. Resource name of the profile to be deleted. @@ -755,7 +755,7 @@ def delete_profile( def search_profiles( self, - request: profile_service.SearchProfilesRequest = None, + request: Union[profile_service.SearchProfilesRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -772,7 +772,7 @@ def search_profiles( for more information. Args: - request (google.cloud.talent_v4beta1.types.SearchProfilesRequest): + request (Union[google.cloud.talent_v4beta1.types.SearchProfilesRequest, dict]): The request object. The request body of the `SearchProfiles` call. retry (google.api_core.retry.Retry): Designation of what errors, if any, diff --git a/google/cloud/talent_v4beta1/services/profile_service/transports/base.py b/google/cloud/talent_v4beta1/services/profile_service/transports/base.py index e444b27e..a381abb1 100644 --- a/google/cloud/talent_v4beta1/services/profile_service/transports/base.py +++ b/google/cloud/talent_v4beta1/services/profile_service/transports/base.py @@ -121,7 +121,7 @@ def __init__( **scopes_kwargs, quota_project_id=quota_project_id ) - # If the credentials is service account credentials, then always try to use self signed JWT. + # If the credentials are service account credentials, then always try to use self signed JWT. if ( always_use_jwt_access and isinstance(credentials, service_account.Credentials) diff --git a/google/cloud/talent_v4beta1/services/profile_service/transports/grpc.py b/google/cloud/talent_v4beta1/services/profile_service/transports/grpc.py index 1bc5089e..7e7cd849 100644 --- a/google/cloud/talent_v4beta1/services/profile_service/transports/grpc.py +++ b/google/cloud/talent_v4beta1/services/profile_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/talent_v4beta1/services/profile_service/transports/grpc_asyncio.py b/google/cloud/talent_v4beta1/services/profile_service/transports/grpc_asyncio.py index d4eb0b6c..03163c91 100644 --- a/google/cloud/talent_v4beta1/services/profile_service/transports/grpc_asyncio.py +++ b/google/cloud/talent_v4beta1/services/profile_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/talent_v4beta1/services/tenant_service/client.py b/google/cloud/talent_v4beta1/services/tenant_service/client.py index c60eb5d9..91a1154b 100644 --- a/google/cloud/talent_v4beta1/services/tenant_service/client.py +++ b/google/cloud/talent_v4beta1/services/tenant_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 @@ -351,7 +351,7 @@ def __init__( def create_tenant( self, - request: tenant_service.CreateTenantRequest = None, + request: Union[tenant_service.CreateTenantRequest, dict] = None, *, parent: str = None, tenant: gct_tenant.Tenant = None, @@ -362,7 +362,7 @@ def create_tenant( r"""Creates a new tenant entity. Args: - request (google.cloud.talent_v4beta1.types.CreateTenantRequest): + request (Union[google.cloud.talent_v4beta1.types.CreateTenantRequest, dict]): The request object. The Request of the CreateTenant method. parent (str): @@ -438,7 +438,7 @@ def create_tenant( def get_tenant( self, - request: tenant_service.GetTenantRequest = None, + request: Union[tenant_service.GetTenantRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -448,7 +448,7 @@ def get_tenant( r"""Retrieves specified tenant. Args: - request (google.cloud.talent_v4beta1.types.GetTenantRequest): + request (Union[google.cloud.talent_v4beta1.types.GetTenantRequest, dict]): The request object. Request for getting a tenant by name. name (str): @@ -518,7 +518,7 @@ def get_tenant( def update_tenant( self, - request: tenant_service.UpdateTenantRequest = None, + request: Union[tenant_service.UpdateTenantRequest, dict] = None, *, tenant: gct_tenant.Tenant = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -528,7 +528,7 @@ def update_tenant( r"""Updates specified tenant. Args: - request (google.cloud.talent_v4beta1.types.UpdateTenantRequest): + request (Union[google.cloud.talent_v4beta1.types.UpdateTenantRequest, dict]): The request object. Request for updating a specified tenant. tenant (google.cloud.talent_v4beta1.types.Tenant): @@ -597,7 +597,7 @@ def update_tenant( def delete_tenant( self, - request: tenant_service.DeleteTenantRequest = None, + request: Union[tenant_service.DeleteTenantRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -607,7 +607,7 @@ def delete_tenant( r"""Deletes specified tenant. Args: - request (google.cloud.talent_v4beta1.types.DeleteTenantRequest): + request (Union[google.cloud.talent_v4beta1.types.DeleteTenantRequest, dict]): The request object. Request to delete a tenant. name (str): Required. The resource name of the tenant to be deleted. @@ -663,7 +663,7 @@ def delete_tenant( def list_tenants( self, - request: tenant_service.ListTenantsRequest = None, + request: Union[tenant_service.ListTenantsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -673,7 +673,7 @@ def list_tenants( r"""Lists all tenants associated with the project. Args: - request (google.cloud.talent_v4beta1.types.ListTenantsRequest): + request (Union[google.cloud.talent_v4beta1.types.ListTenantsRequest, dict]): The request object. List tenants for which the client has ACL visibility. parent (str): diff --git a/google/cloud/talent_v4beta1/services/tenant_service/transports/base.py b/google/cloud/talent_v4beta1/services/tenant_service/transports/base.py index 8fc83e74..a63f94c8 100644 --- a/google/cloud/talent_v4beta1/services/tenant_service/transports/base.py +++ b/google/cloud/talent_v4beta1/services/tenant_service/transports/base.py @@ -121,7 +121,7 @@ def __init__( **scopes_kwargs, quota_project_id=quota_project_id ) - # If the credentials is service account credentials, then always try to use self signed JWT. + # If the credentials are service account credentials, then always try to use self signed JWT. if ( always_use_jwt_access and isinstance(credentials, service_account.Credentials) diff --git a/google/cloud/talent_v4beta1/services/tenant_service/transports/grpc.py b/google/cloud/talent_v4beta1/services/tenant_service/transports/grpc.py index 6315e8c4..e4073f25 100644 --- a/google/cloud/talent_v4beta1/services/tenant_service/transports/grpc.py +++ b/google/cloud/talent_v4beta1/services/tenant_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/talent_v4beta1/services/tenant_service/transports/grpc_asyncio.py b/google/cloud/talent_v4beta1/services/tenant_service/transports/grpc_asyncio.py index 25884b61..8b8970e8 100644 --- a/google/cloud/talent_v4beta1/services/tenant_service/transports/grpc_asyncio.py +++ b/google/cloud/talent_v4beta1/services/tenant_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/scripts/fixup_talent_v4_keywords.py b/scripts/fixup_talent_v4_keywords.py index 1aa2d168..e7a8aa86 100644 --- a/scripts/fixup_talent_v4_keywords.py +++ b/scripts/fixup_talent_v4_keywords.py @@ -39,28 +39,28 @@ def partition( class talentCallTransformer(cst.CSTTransformer): CTRL_PARAMS: Tuple[str] = ('retry', 'timeout', 'metadata') METHOD_TO_PARAMS: Dict[str, Tuple[str]] = { - 'batch_create_jobs': ('parent', 'jobs', ), - 'batch_delete_jobs': ('parent', 'names', ), - 'batch_update_jobs': ('parent', 'jobs', 'update_mask', ), - 'complete_query': ('tenant', 'query', 'page_size', 'language_codes', 'company', 'scope', 'type_', ), - 'create_client_event': ('parent', 'client_event', ), - 'create_company': ('parent', 'company', ), - 'create_job': ('parent', 'job', ), - 'create_tenant': ('parent', 'tenant', ), - 'delete_company': ('name', ), - 'delete_job': ('name', ), - 'delete_tenant': ('name', ), - 'get_company': ('name', ), - 'get_job': ('name', ), - 'get_tenant': ('name', ), - 'list_companies': ('parent', 'page_token', 'page_size', 'require_open_jobs', ), - 'list_jobs': ('parent', 'filter', 'page_token', 'page_size', 'job_view', ), - 'list_tenants': ('parent', 'page_token', 'page_size', ), - 'search_jobs': ('parent', 'request_metadata', 'search_mode', 'job_query', 'enable_broadening', 'histogram_queries', 'job_view', 'offset', 'max_page_size', 'page_token', 'order_by', 'diversification_level', 'custom_ranking_info', 'disable_keyword_match', 'keyword_match_mode', ), - 'search_jobs_for_alert': ('parent', 'request_metadata', 'search_mode', 'job_query', 'enable_broadening', 'histogram_queries', 'job_view', 'offset', 'max_page_size', 'page_token', 'order_by', 'diversification_level', 'custom_ranking_info', 'disable_keyword_match', 'keyword_match_mode', ), - 'update_company': ('company', 'update_mask', ), - 'update_job': ('job', 'update_mask', ), - 'update_tenant': ('tenant', 'update_mask', ), + 'batch_create_jobs': ('parent', 'jobs', ), + 'batch_delete_jobs': ('parent', 'names', ), + 'batch_update_jobs': ('parent', 'jobs', 'update_mask', ), + 'complete_query': ('tenant', 'query', 'page_size', 'language_codes', 'company', 'scope', 'type_', ), + 'create_client_event': ('parent', 'client_event', ), + 'create_company': ('parent', 'company', ), + 'create_job': ('parent', 'job', ), + 'create_tenant': ('parent', 'tenant', ), + 'delete_company': ('name', ), + 'delete_job': ('name', ), + 'delete_tenant': ('name', ), + 'get_company': ('name', ), + 'get_job': ('name', ), + 'get_tenant': ('name', ), + 'list_companies': ('parent', 'page_token', 'page_size', 'require_open_jobs', ), + 'list_jobs': ('parent', 'filter', 'page_token', 'page_size', 'job_view', ), + 'list_tenants': ('parent', 'page_token', 'page_size', ), + 'search_jobs': ('parent', 'request_metadata', 'search_mode', 'job_query', 'enable_broadening', 'histogram_queries', 'job_view', 'offset', 'max_page_size', 'page_token', 'order_by', 'diversification_level', 'custom_ranking_info', 'disable_keyword_match', 'keyword_match_mode', ), + 'search_jobs_for_alert': ('parent', 'request_metadata', 'search_mode', 'job_query', 'enable_broadening', 'histogram_queries', 'job_view', 'offset', 'max_page_size', 'page_token', 'order_by', 'diversification_level', 'custom_ranking_info', 'disable_keyword_match', 'keyword_match_mode', ), + 'update_company': ('company', 'update_mask', ), + 'update_job': ('job', 'update_mask', ), + 'update_tenant': ('tenant', 'update_mask', ), } def leave_Call(self, original: cst.Call, updated: cst.Call) -> cst.CSTNode: @@ -79,7 +79,7 @@ def leave_Call(self, original: cst.Call, updated: cst.Call) -> cst.CSTNode: return updated kwargs, ctrl_kwargs = partition( - lambda a: not a.keyword.value in self.CTRL_PARAMS, + lambda a: a.keyword.value not in self.CTRL_PARAMS, kwargs ) diff --git a/scripts/fixup_talent_v4beta1_keywords.py b/scripts/fixup_talent_v4beta1_keywords.py index 429343a3..3ea9cc62 100644 --- a/scripts/fixup_talent_v4beta1_keywords.py +++ b/scripts/fixup_talent_v4beta1_keywords.py @@ -39,39 +39,39 @@ def partition( class talentCallTransformer(cst.CSTTransformer): CTRL_PARAMS: Tuple[str] = ('retry', 'timeout', 'metadata') METHOD_TO_PARAMS: Dict[str, Tuple[str]] = { - 'batch_create_jobs': ('parent', 'jobs', ), - 'batch_delete_jobs': ('parent', 'filter', ), - 'batch_update_jobs': ('parent', 'jobs', 'update_mask', ), - 'complete_query': ('parent', 'query', 'page_size', 'language_codes', 'company', 'scope', 'type_', ), - 'create_application': ('parent', 'application', ), - 'create_client_event': ('parent', 'client_event', ), - 'create_company': ('parent', 'company', ), - 'create_job': ('parent', 'job', ), - 'create_profile': ('parent', 'profile', ), - 'create_tenant': ('parent', 'tenant', ), - 'delete_application': ('name', ), - 'delete_company': ('name', ), - 'delete_job': ('name', ), - 'delete_profile': ('name', ), - 'delete_tenant': ('name', ), - 'get_application': ('name', ), - 'get_company': ('name', ), - 'get_job': ('name', ), - 'get_profile': ('name', ), - 'get_tenant': ('name', ), - 'list_applications': ('parent', 'page_token', 'page_size', ), - 'list_companies': ('parent', 'page_token', 'page_size', 'require_open_jobs', ), - 'list_jobs': ('parent', 'filter', 'page_token', 'page_size', 'job_view', ), - 'list_profiles': ('parent', 'filter', 'page_token', 'page_size', 'read_mask', ), - 'list_tenants': ('parent', 'page_token', 'page_size', ), - 'search_jobs': ('parent', 'request_metadata', 'search_mode', 'job_query', 'enable_broadening', 'require_precise_result_size', 'histogram_queries', 'job_view', 'offset', 'page_size', 'page_token', 'order_by', 'diversification_level', 'custom_ranking_info', 'disable_keyword_match', ), - 'search_jobs_for_alert': ('parent', 'request_metadata', 'search_mode', 'job_query', 'enable_broadening', 'require_precise_result_size', 'histogram_queries', 'job_view', 'offset', 'page_size', 'page_token', 'order_by', 'diversification_level', 'custom_ranking_info', 'disable_keyword_match', ), - 'search_profiles': ('parent', 'request_metadata', 'profile_query', 'page_size', 'page_token', 'offset', 'disable_spell_check', 'order_by', 'case_sensitive_sort', 'histogram_queries', 'result_set_id', 'strict_keywords_search', ), - 'update_application': ('application', 'update_mask', ), - 'update_company': ('company', 'update_mask', ), - 'update_job': ('job', 'update_mask', ), - 'update_profile': ('profile', 'update_mask', ), - 'update_tenant': ('tenant', 'update_mask', ), + 'batch_create_jobs': ('parent', 'jobs', ), + 'batch_delete_jobs': ('parent', 'filter', ), + 'batch_update_jobs': ('parent', 'jobs', 'update_mask', ), + 'complete_query': ('parent', 'query', 'page_size', 'language_codes', 'company', 'scope', 'type_', ), + 'create_application': ('parent', 'application', ), + 'create_client_event': ('parent', 'client_event', ), + 'create_company': ('parent', 'company', ), + 'create_job': ('parent', 'job', ), + 'create_profile': ('parent', 'profile', ), + 'create_tenant': ('parent', 'tenant', ), + 'delete_application': ('name', ), + 'delete_company': ('name', ), + 'delete_job': ('name', ), + 'delete_profile': ('name', ), + 'delete_tenant': ('name', ), + 'get_application': ('name', ), + 'get_company': ('name', ), + 'get_job': ('name', ), + 'get_profile': ('name', ), + 'get_tenant': ('name', ), + 'list_applications': ('parent', 'page_token', 'page_size', ), + 'list_companies': ('parent', 'page_token', 'page_size', 'require_open_jobs', ), + 'list_jobs': ('parent', 'filter', 'page_token', 'page_size', 'job_view', ), + 'list_profiles': ('parent', 'filter', 'page_token', 'page_size', 'read_mask', ), + 'list_tenants': ('parent', 'page_token', 'page_size', ), + 'search_jobs': ('parent', 'request_metadata', 'search_mode', 'job_query', 'enable_broadening', 'require_precise_result_size', 'histogram_queries', 'job_view', 'offset', 'page_size', 'page_token', 'order_by', 'diversification_level', 'custom_ranking_info', 'disable_keyword_match', ), + 'search_jobs_for_alert': ('parent', 'request_metadata', 'search_mode', 'job_query', 'enable_broadening', 'require_precise_result_size', 'histogram_queries', 'job_view', 'offset', 'page_size', 'page_token', 'order_by', 'diversification_level', 'custom_ranking_info', 'disable_keyword_match', ), + 'search_profiles': ('parent', 'request_metadata', 'profile_query', 'page_size', 'page_token', 'offset', 'disable_spell_check', 'order_by', 'case_sensitive_sort', 'histogram_queries', 'result_set_id', 'strict_keywords_search', ), + 'update_application': ('application', 'update_mask', ), + 'update_company': ('company', 'update_mask', ), + 'update_job': ('job', 'update_mask', ), + 'update_profile': ('profile', 'update_mask', ), + 'update_tenant': ('tenant', 'update_mask', ), } def leave_Call(self, original: cst.Call, updated: cst.Call) -> cst.CSTNode: @@ -90,7 +90,7 @@ def leave_Call(self, original: cst.Call, updated: cst.Call) -> cst.CSTNode: return updated kwargs, ctrl_kwargs = partition( - lambda a: not a.keyword.value in self.CTRL_PARAMS, + lambda a: a.keyword.value not in self.CTRL_PARAMS, kwargs )