Skip to content

Commit a82c74e

Browse files
fix(talent): change default timeout values; edit docstrings; bump copyright year to 2020 (via synth) (#10239)
1 parent 40c1473 commit a82c74e

File tree

66 files changed

+1519
-4946
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1519
-4946
lines changed

talent/google/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

talent/google/cloud/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

talent/google/cloud/talent.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

talent/google/cloud/talent_v4beta1/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

talent/google/cloud/talent_v4beta1/gapic/application_service_client.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -392,8 +392,7 @@ def update_application(
392392
>>> response = client.update_application(application)
393393
394394
Args:
395-
application (Union[dict, ~google.cloud.talent_v4beta1.types.Application]): Required. The application resource to replace the current resource in the
396-
system.
395+
application (Union[dict, ~google.cloud.talent_v4beta1.types.Application]): Required. The application resource to replace the current resource in the system.
397396
398397
If a dict is provided, it must be of the same form as the protobuf
399398
message :class:`~google.cloud.talent_v4beta1.types.Application`

talent/google/cloud/talent_v4beta1/gapic/application_service_client_config.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,27 @@
1818
},
1919
"methods": {
2020
"CreateApplication": {
21-
"timeout_millis": 60000,
21+
"timeout_millis": 30000,
2222
"retry_codes_name": "non_idempotent",
2323
"retry_params_name": "default",
2424
},
2525
"GetApplication": {
26-
"timeout_millis": 60000,
26+
"timeout_millis": 30000,
2727
"retry_codes_name": "idempotent",
2828
"retry_params_name": "default",
2929
},
3030
"UpdateApplication": {
31-
"timeout_millis": 60000,
31+
"timeout_millis": 30000,
3232
"retry_codes_name": "non_idempotent",
3333
"retry_params_name": "default",
3434
},
3535
"DeleteApplication": {
36-
"timeout_millis": 60000,
36+
"timeout_millis": 30000,
3737
"retry_codes_name": "idempotent",
3838
"retry_params_name": "default",
3939
},
4040
"ListApplications": {
41-
"timeout_millis": 60000,
41+
"timeout_millis": 30000,
4242
"retry_codes_name": "idempotent",
4343
"retry_params_name": "default",
4444
},

talent/google/cloud/talent_v4beta1/gapic/company_service_client.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -403,8 +403,7 @@ def update_company(
403403
>>> response = client.update_company(company)
404404
405405
Args:
406-
company (Union[dict, ~google.cloud.talent_v4beta1.types.Company]): Required. The company resource to replace the current resource in the
407-
system.
406+
company (Union[dict, ~google.cloud.talent_v4beta1.types.Company]): Required. The company resource to replace the current resource in the system.
408407
409408
If a dict is provided, it must be of the same form as the protobuf
410409
message :class:`~google.cloud.talent_v4beta1.types.Company`

talent/google/cloud/talent_v4beta1/gapic/company_service_client_config.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,27 @@
1818
},
1919
"methods": {
2020
"CreateCompany": {
21-
"timeout_millis": 60000,
21+
"timeout_millis": 30000,
2222
"retry_codes_name": "non_idempotent",
2323
"retry_params_name": "default",
2424
},
2525
"GetCompany": {
26-
"timeout_millis": 60000,
26+
"timeout_millis": 30000,
2727
"retry_codes_name": "idempotent",
2828
"retry_params_name": "default",
2929
},
3030
"UpdateCompany": {
31-
"timeout_millis": 60000,
31+
"timeout_millis": 30000,
3232
"retry_codes_name": "non_idempotent",
3333
"retry_params_name": "default",
3434
},
3535
"DeleteCompany": {
36-
"timeout_millis": 60000,
36+
"timeout_millis": 30000,
3737
"retry_codes_name": "idempotent",
3838
"retry_params_name": "default",
3939
},
4040
"ListCompanies": {
41-
"timeout_millis": 60000,
41+
"timeout_millis": 30000,
4242
"retry_codes_name": "idempotent",
4343
"retry_params_name": "default",
4444
},

talent/google/cloud/talent_v4beta1/gapic/completion_client.py

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -271,16 +271,6 @@ def complete_query(
271271
such as "en-US" or "sr-Latn". For more information, see `Tags for
272272
Identifying Languages <https://tools.ietf.org/html/bcp47>`__.
273273
274-
For ``CompletionType.JOB_TITLE`` type, only open jobs with the same
275-
``language_codes`` are returned.
276-
277-
For ``CompletionType.COMPANY_NAME`` type, only companies having open
278-
jobs with the same ``language_codes`` are returned.
279-
280-
For ``CompletionType.COMBINED`` type, only open jobs with the same
281-
``language_codes`` or companies having open jobs with the same
282-
``language_codes`` are returned.
283-
284274
The maximum number of allowed characters is 255.
285275
company (str): If provided, restricts completion to specified company.
286276

talent/google/cloud/talent_v4beta1/gapic/enums.py

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -747,9 +747,19 @@ class CompletionType(enum.IntEnum):
747747
748748
Attributes:
749749
COMPLETION_TYPE_UNSPECIFIED (int): Default value.
750-
JOB_TITLE (int): Only suggest job titles.
751-
COMPANY_NAME (int): Only suggest company names.
752-
COMBINED (int): Suggest both job titles and company names.
750+
JOB_TITLE (int): Suggest job titles for jobs autocomplete.
751+
752+
For ``CompletionType.JOB_TITLE`` type, only open jobs with the same
753+
``language_codes`` are returned.
754+
COMPANY_NAME (int): Suggest company names for jobs autocomplete.
755+
756+
For ``CompletionType.COMPANY_NAME`` type, only companies having open
757+
jobs with the same ``language_codes`` are returned.
758+
COMBINED (int): Suggest both job titles and company names for jobs autocomplete.
759+
760+
For ``CompletionType.COMBINED`` type, only open jobs with the same
761+
``language_codes`` or companies having open jobs with the same
762+
``language_codes`` are returned.
753763
"""
754764

755765
COMPLETION_TYPE_UNSPECIFIED = 0

talent/google/cloud/talent_v4beta1/gapic/event_service_client.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -242,8 +242,8 @@ def create_client_event(
242242
The format is "projects/{project\_id}/tenants/{tenant\_id}", for
243243
example, "projects/foo/tenant/bar". If tenant id is unspecified, a
244244
default tenant is created, for example, "projects/foo".
245-
client_event (Union[dict, ~google.cloud.talent_v4beta1.types.ClientEvent]): Required. Events issued when end user interacts with customer's application
246-
that uses Cloud Talent Solution.
245+
client_event (Union[dict, ~google.cloud.talent_v4beta1.types.ClientEvent]): Required. Events issued when end user interacts with customer's application that
246+
uses Cloud Talent Solution.
247247
248248
If a dict is provided, it must be of the same form as the protobuf
249249
message :class:`~google.cloud.talent_v4beta1.types.ClientEvent`

talent/google/cloud/talent_v4beta1/gapic/job_service_client.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -979,6 +979,10 @@ def search_jobs(
979979
location, amongst the jobs deemed by the API as relevant) in search
980980
results. This field is only considered if ``page_token`` is unset.
981981
982+
The maximum allowed value is 5000. Otherwise an error is thrown.
983+
984+
The maximum allowed value is 5000. Otherwise an error is thrown.
985+
982986
For example, 0 means to return results starting from the first matching
983987
job, and 10 means to return from the 11th job. This can be used for
984988
pagination, (for example, pageSize = 10 and offset = 10 means to return
@@ -1335,6 +1339,10 @@ def search_jobs_for_alert(
13351339
location, amongst the jobs deemed by the API as relevant) in search
13361340
results. This field is only considered if ``page_token`` is unset.
13371341
1342+
The maximum allowed value is 5000. Otherwise an error is thrown.
1343+
1344+
The maximum allowed value is 5000. Otherwise an error is thrown.
1345+
13381346
For example, 0 means to return results starting from the first matching
13391347
job, and 10 means to return from the 11th job. This can be used for
13401348
pagination, (for example, pageSize = 10 and offset = 10 means to return

talent/google/cloud/talent_v4beta1/gapic/job_service_client_config.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -18,52 +18,52 @@
1818
},
1919
"methods": {
2020
"CreateJob": {
21-
"timeout_millis": 60000,
21+
"timeout_millis": 30000,
2222
"retry_codes_name": "non_idempotent",
2323
"retry_params_name": "default",
2424
},
2525
"GetJob": {
26-
"timeout_millis": 60000,
26+
"timeout_millis": 30000,
2727
"retry_codes_name": "idempotent",
2828
"retry_params_name": "default",
2929
},
3030
"UpdateJob": {
31-
"timeout_millis": 60000,
31+
"timeout_millis": 30000,
3232
"retry_codes_name": "non_idempotent",
3333
"retry_params_name": "default",
3434
},
3535
"DeleteJob": {
36-
"timeout_millis": 60000,
36+
"timeout_millis": 30000,
3737
"retry_codes_name": "idempotent",
3838
"retry_params_name": "default",
3939
},
4040
"ListJobs": {
41-
"timeout_millis": 60000,
41+
"timeout_millis": 30000,
4242
"retry_codes_name": "idempotent",
4343
"retry_params_name": "default",
4444
},
4545
"BatchDeleteJobs": {
46-
"timeout_millis": 60000,
46+
"timeout_millis": 30000,
4747
"retry_codes_name": "non_idempotent",
4848
"retry_params_name": "default",
4949
},
5050
"SearchJobs": {
51-
"timeout_millis": 60000,
51+
"timeout_millis": 30000,
5252
"retry_codes_name": "non_idempotent",
5353
"retry_params_name": "default",
5454
},
5555
"SearchJobsForAlert": {
56-
"timeout_millis": 60000,
56+
"timeout_millis": 30000,
5757
"retry_codes_name": "non_idempotent",
5858
"retry_params_name": "default",
5959
},
6060
"BatchCreateJobs": {
61-
"timeout_millis": 60000,
61+
"timeout_millis": 30000,
6262
"retry_codes_name": "non_idempotent",
6363
"retry_params_name": "default",
6464
},
6565
"BatchUpdateJobs": {
66-
"timeout_millis": 60000,
66+
"timeout_millis": 30000,
6767
"retry_codes_name": "non_idempotent",
6868
"retry_params_name": "default",
6969
},

talent/google/cloud/talent_v4beta1/gapic/profile_service_client.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -773,9 +773,9 @@ def search_profiles(
773773
774774
The format is "projects/{project\_id}/tenants/{tenant\_id}". For
775775
example, "projects/foo/tenants/bar".
776-
request_metadata (Union[dict, ~google.cloud.talent_v4beta1.types.RequestMetadata]): Required. The meta information collected about the profile search user.
777-
This is used to improve the search quality of the service. These values are
778-
provided by users, and must be precise and consistent.
776+
request_metadata (Union[dict, ~google.cloud.talent_v4beta1.types.RequestMetadata]): Required. The meta information collected about the profile search user. This is used
777+
to improve the search quality of the service. These values are provided by
778+
users, and must be precise and consistent.
779779
780780
If a dict is provided, it must be of the same form as the protobuf
781781
message :class:`~google.cloud.talent_v4beta1.types.RequestMetadata`

talent/google/cloud/talent_v4beta1/gapic/profile_service_client_config.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,32 @@
1818
},
1919
"methods": {
2020
"ListProfiles": {
21-
"timeout_millis": 60000,
21+
"timeout_millis": 30000,
2222
"retry_codes_name": "idempotent",
2323
"retry_params_name": "default",
2424
},
2525
"CreateProfile": {
26-
"timeout_millis": 60000,
26+
"timeout_millis": 30000,
2727
"retry_codes_name": "non_idempotent",
2828
"retry_params_name": "default",
2929
},
3030
"GetProfile": {
31-
"timeout_millis": 60000,
31+
"timeout_millis": 30000,
3232
"retry_codes_name": "idempotent",
3333
"retry_params_name": "default",
3434
},
3535
"UpdateProfile": {
36-
"timeout_millis": 60000,
36+
"timeout_millis": 30000,
3737
"retry_codes_name": "non_idempotent",
3838
"retry_params_name": "default",
3939
},
4040
"DeleteProfile": {
41-
"timeout_millis": 60000,
41+
"timeout_millis": 30000,
4242
"retry_codes_name": "idempotent",
4343
"retry_params_name": "default",
4444
},
4545
"SearchProfiles": {
46-
"timeout_millis": 60000,
46+
"timeout_millis": 30000,
4747
"retry_codes_name": "non_idempotent",
4848
"retry_params_name": "default",
4949
},

talent/google/cloud/talent_v4beta1/gapic/tenant_service_client.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -396,8 +396,7 @@ def update_tenant(
396396
>>> response = client.update_tenant(tenant)
397397
398398
Args:
399-
tenant (Union[dict, ~google.cloud.talent_v4beta1.types.Tenant]): Required. The tenant resource to replace the current resource in the
400-
system.
399+
tenant (Union[dict, ~google.cloud.talent_v4beta1.types.Tenant]): Required. The tenant resource to replace the current resource in the system.
401400
402401
If a dict is provided, it must be of the same form as the protobuf
403402
message :class:`~google.cloud.talent_v4beta1.types.Tenant`

0 commit comments

Comments
 (0)