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
35 changes: 35 additions & 0 deletions google/cloud/talent_v4/services/company_service/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,13 @@ async def create_company(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

async def sample_create_company():
Expand Down Expand Up @@ -341,6 +348,13 @@ async def get_company(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

async def sample_get_company():
Expand Down Expand Up @@ -456,6 +470,13 @@ async def update_company(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

async def sample_update_company():
Expand Down Expand Up @@ -582,6 +603,13 @@ async def delete_company(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

async def sample_delete_company():
Expand Down Expand Up @@ -678,6 +706,13 @@ async def list_companies(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

async def sample_list_companies():
Expand Down
35 changes: 35 additions & 0 deletions google/cloud/talent_v4/services/company_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,13 @@ def create_company(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

def sample_create_company():
Expand Down Expand Up @@ -581,6 +588,13 @@ def get_company(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

def sample_get_company():
Expand Down Expand Up @@ -686,6 +700,13 @@ def update_company(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

def sample_update_company():
Expand Down Expand Up @@ -812,6 +833,13 @@ def delete_company(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

def sample_delete_company():
Expand Down Expand Up @@ -898,6 +926,13 @@ def list_companies(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

def sample_list_companies():
Expand Down
7 changes: 7 additions & 0 deletions google/cloud/talent_v4/services/completion/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,13 @@ async def complete_query(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

async def sample_complete_query():
Expand Down
7 changes: 7 additions & 0 deletions google/cloud/talent_v4/services/completion/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,13 @@ def complete_query(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

def sample_complete_query():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,13 @@ async def create_client_event(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

async def sample_create_client_event():
Expand All @@ -229,7 +236,7 @@ async def sample_create_client_event():
# Initialize request argument(s)
client_event = talent_v4.ClientEvent()
client_event.job_event.type_ = "INTERVIEW_GRANTED"
client_event.job_event.jobs = ['jobs_value_1', 'jobs_value_2']
client_event.job_event.jobs = ['jobs_value1', 'jobs_value2']
client_event.event_id = "event_id_value"

request = talent_v4.CreateClientEventRequest(
Expand Down
9 changes: 8 additions & 1 deletion google/cloud/talent_v4/services/event_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,13 @@ def create_client_event(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

def sample_create_client_event():
Expand All @@ -451,7 +458,7 @@ def sample_create_client_event():
# Initialize request argument(s)
client_event = talent_v4.ClientEvent()
client_event.job_event.type_ = "INTERVIEW_GRANTED"
client_event.job_event.jobs = ['jobs_value_1', 'jobs_value_2']
client_event.job_event.jobs = ['jobs_value1', 'jobs_value2']
client_event.event_id = "event_id_value"

request = talent_v4.CreateClientEventRequest(
Expand Down
70 changes: 70 additions & 0 deletions google/cloud/talent_v4/services/job_service/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,13 @@ async def create_job(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

async def sample_create_job():
Expand Down Expand Up @@ -342,6 +349,13 @@ async def batch_create_jobs(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

async def sample_batch_create_jobs():
Expand Down Expand Up @@ -474,6 +488,13 @@ async def get_job(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

async def sample_get_job():
Expand Down Expand Up @@ -587,6 +608,13 @@ async def update_job(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

async def sample_update_job():
Expand Down Expand Up @@ -706,6 +734,13 @@ async def batch_update_jobs(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

async def sample_batch_update_jobs():
Expand Down Expand Up @@ -839,6 +874,13 @@ async def delete_job(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

async def sample_delete_job():
Expand Down Expand Up @@ -935,6 +977,13 @@ async def batch_delete_jobs(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

async def sample_batch_delete_jobs():
Expand Down Expand Up @@ -1067,6 +1116,13 @@ async def list_jobs(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

async def sample_list_jobs():
Expand Down Expand Up @@ -1227,6 +1283,13 @@ async def search_jobs(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

async def sample_search_jobs():
Expand Down Expand Up @@ -1310,6 +1373,13 @@ async def search_jobs_for_alert(

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import talent_v4

async def sample_search_jobs_for_alert():
Expand Down
Loading