Skip to content

Commit

Permalink
fix(talent): change default timeout values; edit docstrings; bump cop…
Browse files Browse the repository at this point in the history
…yright year to 2020 (via synth) (#10239)
  • Loading branch information
yoshi-automation authored Jan 30, 2020
1 parent 40c1473 commit a82c74e
Show file tree
Hide file tree
Showing 66 changed files with 1,519 additions and 4,946 deletions.
2 changes: 1 addition & 1 deletion talent/google/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright 2019 Google LLC
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion talent/google/cloud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright 2019 Google LLC
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion talent/google/cloud/talent.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright 2019 Google LLC
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion talent/google/cloud/talent_v4beta1/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright 2019 Google LLC
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright 2019 Google LLC
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -392,8 +392,7 @@ def update_application(
>>> response = client.update_application(application)
Args:
application (Union[dict, ~google.cloud.talent_v4beta1.types.Application]): Required. The application resource to replace the current resource in the
system.
application (Union[dict, ~google.cloud.talent_v4beta1.types.Application]): Required. The application resource to replace the current resource in the system.
If a dict is provided, it must be of the same form as the protobuf
message :class:`~google.cloud.talent_v4beta1.types.Application`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,27 @@
},
"methods": {
"CreateApplication": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"GetApplication": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"UpdateApplication": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"DeleteApplication": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"ListApplications": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright 2019 Google LLC
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -403,8 +403,7 @@ def update_company(
>>> response = client.update_company(company)
Args:
company (Union[dict, ~google.cloud.talent_v4beta1.types.Company]): Required. The company resource to replace the current resource in the
system.
company (Union[dict, ~google.cloud.talent_v4beta1.types.Company]): Required. The company resource to replace the current resource in the system.
If a dict is provided, it must be of the same form as the protobuf
message :class:`~google.cloud.talent_v4beta1.types.Company`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,27 @@
},
"methods": {
"CreateCompany": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"GetCompany": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"UpdateCompany": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"DeleteCompany": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"ListCompanies": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
Expand Down
12 changes: 1 addition & 11 deletions talent/google/cloud/talent_v4beta1/gapic/completion_client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright 2019 Google LLC
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -271,16 +271,6 @@ def complete_query(
such as "en-US" or "sr-Latn". For more information, see `Tags for
Identifying Languages <https://tools.ietf.org/html/bcp47>`__.
For ``CompletionType.JOB_TITLE`` type, only open jobs with the same
``language_codes`` are returned.
For ``CompletionType.COMPANY_NAME`` type, only companies having open
jobs with the same ``language_codes`` are returned.
For ``CompletionType.COMBINED`` type, only open jobs with the same
``language_codes`` or companies having open jobs with the same
``language_codes`` are returned.
The maximum number of allowed characters is 255.
company (str): If provided, restricts completion to specified company.
Expand Down
18 changes: 14 additions & 4 deletions talent/google/cloud/talent_v4beta1/gapic/enums.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright 2019 Google LLC
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -747,9 +747,19 @@ class CompletionType(enum.IntEnum):
Attributes:
COMPLETION_TYPE_UNSPECIFIED (int): Default value.
JOB_TITLE (int): Only suggest job titles.
COMPANY_NAME (int): Only suggest company names.
COMBINED (int): Suggest both job titles and company names.
JOB_TITLE (int): Suggest job titles for jobs autocomplete.
For ``CompletionType.JOB_TITLE`` type, only open jobs with the same
``language_codes`` are returned.
COMPANY_NAME (int): Suggest company names for jobs autocomplete.
For ``CompletionType.COMPANY_NAME`` type, only companies having open
jobs with the same ``language_codes`` are returned.
COMBINED (int): Suggest both job titles and company names for jobs autocomplete.
For ``CompletionType.COMBINED`` type, only open jobs with the same
``language_codes`` or companies having open jobs with the same
``language_codes`` are returned.
"""

COMPLETION_TYPE_UNSPECIFIED = 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright 2019 Google LLC
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -242,8 +242,8 @@ def create_client_event(
The format is "projects/{project\_id}/tenants/{tenant\_id}", for
example, "projects/foo/tenant/bar". If tenant id is unspecified, a
default tenant is created, for example, "projects/foo".
client_event (Union[dict, ~google.cloud.talent_v4beta1.types.ClientEvent]): Required. Events issued when end user interacts with customer's application
that uses Cloud Talent Solution.
client_event (Union[dict, ~google.cloud.talent_v4beta1.types.ClientEvent]): Required. Events issued when end user interacts with customer's application that
uses Cloud Talent Solution.
If a dict is provided, it must be of the same form as the protobuf
message :class:`~google.cloud.talent_v4beta1.types.ClientEvent`
Expand Down
10 changes: 9 additions & 1 deletion talent/google/cloud/talent_v4beta1/gapic/job_service_client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright 2019 Google LLC
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -979,6 +979,10 @@ def search_jobs(
location, amongst the jobs deemed by the API as relevant) in search
results. This field is only considered if ``page_token`` is unset.
The maximum allowed value is 5000. Otherwise an error is thrown.
The maximum allowed value is 5000. Otherwise an error is thrown.
For example, 0 means to return results starting from the first matching
job, and 10 means to return from the 11th job. This can be used for
pagination, (for example, pageSize = 10 and offset = 10 means to return
Expand Down Expand Up @@ -1335,6 +1339,10 @@ def search_jobs_for_alert(
location, amongst the jobs deemed by the API as relevant) in search
results. This field is only considered if ``page_token`` is unset.
The maximum allowed value is 5000. Otherwise an error is thrown.
The maximum allowed value is 5000. Otherwise an error is thrown.
For example, 0 means to return results starting from the first matching
job, and 10 means to return from the 11th job. This can be used for
pagination, (for example, pageSize = 10 and offset = 10 means to return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,52 +18,52 @@
},
"methods": {
"CreateJob": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"GetJob": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"UpdateJob": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"DeleteJob": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"ListJobs": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"BatchDeleteJobs": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"SearchJobs": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"SearchJobsForAlert": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"BatchCreateJobs": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"BatchUpdateJobs": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright 2019 Google LLC
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -773,9 +773,9 @@ def search_profiles(
The format is "projects/{project\_id}/tenants/{tenant\_id}". For
example, "projects/foo/tenants/bar".
request_metadata (Union[dict, ~google.cloud.talent_v4beta1.types.RequestMetadata]): Required. The meta information collected about the profile search user.
This is used to improve the search quality of the service. These values are
provided by users, and must be precise and consistent.
request_metadata (Union[dict, ~google.cloud.talent_v4beta1.types.RequestMetadata]): Required. The meta information collected about the profile search user. This is used
to improve the search quality of the service. These values are provided by
users, and must be precise and consistent.
If a dict is provided, it must be of the same form as the protobuf
message :class:`~google.cloud.talent_v4beta1.types.RequestMetadata`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,32 @@
},
"methods": {
"ListProfiles": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"CreateProfile": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"GetProfile": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"UpdateProfile": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"DeleteProfile": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"SearchProfiles": {
"timeout_millis": 60000,
"timeout_millis": 30000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright 2019 Google LLC
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -396,8 +396,7 @@ def update_tenant(
>>> response = client.update_tenant(tenant)
Args:
tenant (Union[dict, ~google.cloud.talent_v4beta1.types.Tenant]): Required. The tenant resource to replace the current resource in the
system.
tenant (Union[dict, ~google.cloud.talent_v4beta1.types.Tenant]): Required. The tenant resource to replace the current resource in the system.
If a dict is provided, it must be of the same form as the protobuf
message :class:`~google.cloud.talent_v4beta1.types.Tenant`
Expand Down
Loading

0 comments on commit a82c74e

Please sign in to comment.