Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/278.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在谷歌云人才解决方案(python)中创建公司时,如何使用默认租户?_Python_Google Cloud Talent Solution - Fatal编程技术网

在谷歌云人才解决方案(python)中创建公司时,如何使用默认租户?

在谷歌云人才解决方案(python)中创建公司时,如何使用默认租户?,python,google-cloud-talent-solution,Python,Google Cloud Talent Solution,我可以通过以下方式创建公司: client = talent_v4beta1.CompanyServiceClient() company = {'display_name': ..., 'external_id: ...} response = client.create_company('projects/my-project-id', company) 我没有指定租户,谷歌创建并使用默认租户 如何调用get_company() 我能找到的唯一一个填充name的API是tentant_pa

我可以通过以下方式创建公司:

client = talent_v4beta1.CompanyServiceClient()
company = {'display_name': ..., 'external_id: ...}
response = client.create_company('projects/my-project-id', company)
我没有指定
租户
,谷歌创建并使用默认租户

如何调用
get_company()

我能找到的唯一一个填充
name
的API是
tentant_path()
,它要求传递
tenant
,而我没有该值。如果我调用
project\u path()
,则这不包括任何tentant,并且
get\u company()
无法匹配任何公司

client = talent_v4beta1.CompanyServiceClient()
name = ?
response = client.get_company(name)