#StackBounty: #python #google-cloud-talent-solution Google Cloud Talent Solution: how to use page_token

Bounty: 50

I’m trying to use v4beta1 of GCTS – search_jobs()

The docs:
https://cloud.google.com/talent-solution/job-search/docs/reference/rest/v4beta1/projects.jobs/search

There are references to the parameter pageToken but in googlecloudtalent_v4beta1gapicjob_service_client.py there is no such parameter in the function definition:

def search_jobs(
    self,
    parent,
    request_metadata,
    search_mode=None,
    job_query=None,
    enable_broadening=None,
    require_precise_result_size=None,
    histogram_queries=None,
    job_view=None,
    offset=None,
    page_size=None,
    order_by=None,
    diversification_level=None,
    custom_ranking_info=None,
    disable_keyword_match=None,
    retry=google.api_core.gapic_v1.method.DEFAULT,
    timeout=google.api_core.gapic_v1.method.DEFAULT,
    metadata=None,
):

In the comments page_token is mentioned – eg for the Offset parameter.

How do I specify the page token for job searches?

I’ve specified require_precise_result_size=False but the return value doesn’t contain a SearchJobsResponse.estimated_total_size. Is this a clue that search_jobs() isn’t being set to the desired “mode”?


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.