Skip to content

Commit 4ffe186

Browse files
fix(talent): change default timeout values; edit docstrings; bump copyright year to 2020 (via synth) (#10239)
1 parent 784d356 commit 4ffe186

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

packages/google-cloud-talent/google/__init__.py

Lines changed: 1 addition & 1 deletion
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.

packages/google-cloud-talent/google/cloud/__init__.py

Lines changed: 1 addition & 1 deletion
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.

packages/google-cloud-talent/google/cloud/talent.py

Lines changed: 1 addition & 1 deletion
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.

packages/google-cloud-talent/google/cloud/talent_v4beta1/__init__.py

Lines changed: 1 addition & 1 deletion
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.

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

Lines changed: 2 additions & 3 deletions
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`

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

Lines changed: 5 additions & 5 deletions
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
},

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

Lines changed: 2 additions & 3 deletions
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`

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

Lines changed: 5 additions & 5 deletions
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
},

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

Lines changed: 1 addition & 11 deletions
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

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

Lines changed: 14 additions & 4 deletions
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

0 commit comments

Comments
 (0)