Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -578,7 +578,6 @@ async def delete_company(
Prerequisite: The company has no jobs associated with
it.


.. code-block:: python

from google.cloud import talent_v4
Expand Down
3 changes: 1 addition & 2 deletions google/cloud/talent_v4/services/company_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -807,7 +807,6 @@ def delete_company(
Prerequisite: The company has no jobs associated with
it.


.. code-block:: python

from google.cloud import talent_v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -240,5 +241,9 @@ def list_companies(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("CompanyServiceTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -368,5 +368,9 @@ def list_companies(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("CompanyServiceGrpcTransport",)
3 changes: 1 addition & 2 deletions google/cloud/talent_v4/services/completion/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -210,7 +210,6 @@ async def complete_query(
suggestions. Intended for use by a job search
auto-complete search box.


.. code-block:: python

from google.cloud import talent_v4
Expand Down
3 changes: 1 addition & 2 deletions google/cloud/talent_v4/services/completion/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -453,7 +453,6 @@ def complete_query(
suggestions. Intended for use by a job search
auto-complete search box.


.. code-block:: python

from google.cloud import talent_v4
Expand Down
5 changes: 5 additions & 0 deletions google/cloud/talent_v4/services/completion/transports/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -161,5 +162,9 @@ def complete_query(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("CompletionTransport",)
4 changes: 4 additions & 0 deletions google/cloud/talent_v4/services/completion/transports/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,5 +261,9 @@ def complete_query(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("CompletionGrpcTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -217,7 +217,6 @@ async def create_client_event(
more <https://cloud.google.com/talent-solution/docs/management-tools>`__
about self service tools.


.. code-block:: python

from google.cloud import talent_v4
Expand Down
3 changes: 1 addition & 2 deletions google/cloud/talent_v4/services/event_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -438,7 +438,6 @@ def create_client_event(
more <https://cloud.google.com/talent-solution/docs/management-tools>`__
about self service tools.


.. code-block:: python

from google.cloud import talent_v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -149,5 +150,9 @@ def create_client_event(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("EventServiceTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -263,5 +263,9 @@ def create_client_event(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("EventServiceGrpcTransport",)
8 changes: 1 addition & 7 deletions google/cloud/talent_v4/services/job_service/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -224,7 +224,6 @@ async def create_job(
Typically, the job becomes searchable within 10 seconds,
but it may take up to 5 minutes.


.. code-block:: python

from google.cloud import talent_v4
Expand Down Expand Up @@ -472,7 +471,6 @@ async def get_job(
r"""Retrieves the specified job, whose status is OPEN or
recently EXPIRED within the last 90 days.


.. code-block:: python

from google.cloud import talent_v4
Expand Down Expand Up @@ -586,7 +584,6 @@ async def update_job(
results within 10 seconds, but it may take up to 5
minutes.


.. code-block:: python

from google.cloud import talent_v4
Expand Down Expand Up @@ -839,7 +836,6 @@ async def delete_job(
Typically, the job becomes unsearchable within 10
seconds, but it may take up to 5 minutes.


.. code-block:: python

from google.cloud import talent_v4
Expand Down Expand Up @@ -1228,7 +1224,6 @@ async def search_jobs(
present in the database, and only returns jobs that the caller
has permission to search against.


.. code-block:: python

from google.cloud import talent_v4
Expand Down Expand Up @@ -1312,7 +1307,6 @@ async def search_jobs_for_alert(
present in the database, and only returns jobs the caller has
permission to search against.


.. code-block:: python

from google.cloud import talent_v4
Expand Down
8 changes: 1 addition & 7 deletions google/cloud/talent_v4/services/job_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -487,7 +487,6 @@ def create_job(
Typically, the job becomes searchable within 10 seconds,
but it may take up to 5 minutes.


.. code-block:: python

from google.cloud import talent_v4
Expand Down Expand Up @@ -735,7 +734,6 @@ def get_job(
r"""Retrieves the specified job, whose status is OPEN or
recently EXPIRED within the last 90 days.


.. code-block:: python

from google.cloud import talent_v4
Expand Down Expand Up @@ -839,7 +837,6 @@ def update_job(
results within 10 seconds, but it may take up to 5
minutes.


.. code-block:: python

from google.cloud import talent_v4
Expand Down Expand Up @@ -1092,7 +1089,6 @@ def delete_job(
Typically, the job becomes unsearchable within 10
seconds, but it may take up to 5 minutes.


.. code-block:: python

from google.cloud import talent_v4
Expand Down Expand Up @@ -1461,7 +1457,6 @@ def search_jobs(
present in the database, and only returns jobs that the caller
has permission to search against.


.. code-block:: python

from google.cloud import talent_v4
Expand Down Expand Up @@ -1546,7 +1541,6 @@ def search_jobs_for_alert(
present in the database, and only returns jobs the caller has
permission to search against.


.. code-block:: python

from google.cloud import talent_v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -313,5 +314,9 @@ def search_jobs_for_alert(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("JobServiceTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -529,5 +529,9 @@ def search_jobs_for_alert(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("JobServiceGrpcTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/talent_v4/services/tenant_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -240,5 +241,9 @@ def list_tenants(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("TenantServiceTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -364,5 +364,9 @@ def list_tenants(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("TenantServiceGrpcTransport",)
Loading